FB_Motion
Represents the standard class for all motion objects, based on TF8560 motion objects.
Syntax:
FUNCTION_BLOCK FB_Motion EXTENDS FB_BaseMd
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_Motion | ||||
Motion | Get | NULL | Interface to the assigned TF8560 motion object. | |
ErrorAlarmTL | Get, Set | Error (3) | Severity of the alarm that the axis triggers in the error state. | |
Specific | Get | - | Technology-specific functions/values | |
FB_BaseMd | ||||
MachineData | Get | - | Interface for machine data handling. | |
FB_Base | ||||
BaseState | Get | eNotHandled | Initialization state of the class instance. | |
Error | BOOL | Get | FALSE | Class is in an error state. |
ResultMessage | Get | - | Access to the class-internal EventLogger. | |
[ | STRING | Get | <SourceName> |
|
Methods
Name | Description |
---|---|
Reset() | Resets the error state of the class. |
FB_Motion | |
Checks the current state of the axis. | |
FeedEnable( | Enable of a direction of movement. |
JogNegative( | Starts/stops a jog movement in negative direction. |
JogPositive( | Starts/stops a jog movement in positive direction. |
Power( | Switching on the drive control. |
SetMotionRef( | Assignment method for the TF8560 motion object. |
FB_BaseMd | |
[ | Adds a component of type I_MdComponent to the machine data container. |
FB_Base | |
SetHMI( | General assignment method for an FB_BaseHmi extending class. |
[ | Extracts the first part of the instance path as an object namespace. |
[ | Extracts the last part of the instance path as the object name. |
Cycle methods
Name | Description |
---|---|
Cyclic() | Cycle method - Call once per PLC cycle (default 10 ms) |
CoreCyclic() | Cycle method with short cycle time (default: 2 ms). |
Possible events
ID | Description | Alarm/Message |
---|---|---|
11 | Object error state | Alarm |
21 | Command rejected | Alarm |
Component | Description | Index range | Number of instances |
---|---|---|---|
File information | 0x0000 Fxxx | 1 | |
Actuator-specific parameters, only if | 0x0000 8xxx | 1 |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_Motion | Standard interface on FB_Motion |
I_TwoTaskInterface | Runtime interface for two PLC tasks. |
I_BaseMd | Standard interface on FB_BaseMd. |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.7.0) |