FB_ParkAxis
The function block FB_ParkAxis enables the parking functionality of a supported Beckhoff drive. A parked channel of a drive is temporarily disabled.
In the case of a modular machine concept, certain motors may not be available. So that this does not lead directly to errors (e.g. feedback errors), the channels can be disabled via this.
Notice | |
Unintentional stopping of axes For multi-channel devices, the controller enables must be switched off for all axes of the corresponding channels before one or more channels are parked. The same applies to activating channels of a multi-channel device. Otherwise, the axes of the other channels may be deactivated unintentionally. |
Supported Beckhoff hardware | ||
---|---|---|
AX5xxx | AX8xxx / MD8xxx | Compact drive technology |
|
|
Inputs
VAR_INPUT
Execute : BOOL;
Mode : E_ParkMode;
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | The function block is enabled via a positive edge at this input. |
Mode | Mode for selecting whether the FB parks or releases the axis. |
Inputs/outputs
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
Name | Type | Description |
---|---|---|
Axis | Axis data structure that unambiguously addresses an axis in the system. Among other parameters it contains the current axis status, including position, velocity or error state. |
Outputs
VAR_OUTPUT
Busy : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Busy | BOOL | This output is set when the function block is activated, and remains set until a feedback is received. |
Error | BOOL | This output is set after the Busy output has been reset when an error occurs in the transmission of the command. |
ErrorID | UDINT | In the event of a set error output returns the ADS error code. |
Requirements
Development environment | Target platform type | PLC library |
---|---|---|
TwinCAT ≥4024.60 | PC or CX (x86 or x64) | Tc2_MC2_Drive ≥V3.3.41.0 |