MC_ReadAxisError
MC_ReadAxisError reads the axis error of an axis.
Inputs
VAR_INPUT
Enable : BOOL; (* B *)
END_VAR
Enable |
The axis error is output at the AxisErrorID output as long as Enable is active |
Outputs
VAR_OUTPUT
Valid : BOOL; (* B *)
Busy : BOOL; (* E *)
Error : BOOL; (* B *)
ErrorID : DWORD; (* B *)
AxisErrorID : DWORD; (* B *)
END_VAR
Valid |
The error signaled at the AxisErrorID output is valid |
Busy |
The Busy output becomes TRUE when the command is started with Enable and remains TRUE as long as the command is processed. If Busy becomes FALSE again, the function block is ready for a new job. |
Error |
Becomes TRUE if an error occurs. |
ErrorID |
If the error output is set, this parameter supplies the error number |
AxisErrorID |
Error number for the axis |
Inputs/outputs
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
Axis |
Axis data structure |
The axis data structure of type AXIS_REF addresses an axis uniquely within the system. Among other parameters it contains the current axis status, including position, velocity or error status.