MC_ReadAxisError
The function block is used to read the axis error of an axis.
Inputs
VAR_INPUT
Enable : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
Enable | BOOL | If Enable = TRUE, the axis error is output at the "AxisErrorID" output. |
See also: General rules for MC function blocks
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
Valid : BOOL; (* B *)
Busy : BOOL; (* E *)
Error : BOOL; (* B *)
ErrorID : UDINT; (* B *)
AxisErrorID : DWORD; (* B *)
END_VAR
Name | Type | Description |
---|---|---|
Valid | BOOL | TRUE if the error signaled at the "AxisErrorID" output is valid. |
Busy | BOOL | TRUE as soon as the command is started with Enable and as long as the command is processed. If Busy is FALSE, the function block is ready for a new order. |
Error | BOOL | TRUE, if an error occurs. |
ErrorID | UDINT | If the error output is set, this parameter supplies the error number. |
AxisErrorID | DWORD | Error number for the axis |
See also: General rules for MC function blocks
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.0.0 | PC or CX (x86 or x64) | Tc2_MC2 |