MC_ReadAxisError (motion control read axis error)

The MC_ReadAxisError instruction reads the axis errors not related to the motion control instruction blocks.
When an axis is in a Disabled state, MC_ReadAxisError might or might not get a nonzero Error ID for the axis because a Disabled axis can contain errors or be error-free.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_ReadAxisError
MC_ReadAxisError
MC_ReadAxisError parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
Instruction block enable.
  • TRUE: Execute current MC_ReadAxisError computation.
  • FALSE: Error, ErrorID, and AxisErrorID are reset to False(or 0).
Applies only to ladder diagram programs.
AxisIn
Input
AXIS_REF
FB_AXIS_REF
Use the AXIS_REF data type parameters to define AxisIn.
For an FB_Axis (feedback axis), use the FB_AXIS_REF data type to define AxisIn.
Enable
Input
BOOL
  • TRUE: Get the value of the parameter continuously while enabled.
  • FALSE: Resets Error, ErrorID, and AxisErrorID outputs to 0.
ENO
Output
BOOL
Enable output.
Applies only to ladder diagram programs.
Axis
Output
AXIS_REF
Axis output is read-only in ladder diagram programs.
The Axis output parameters are defined in the FB_AXIS_REF data type.
Valid
Output
BOOL
  • TRUE: The instruction block is active and new output values are expected.
  • FALSE: The instruction block is inactive.
Busy
Output
BOOL
  • TRUE: The instruction block is not finished.
  • FALSE: The instruction block is finished.
Error
Output
BOOL
Indicates that an error occurred.
  • TRUE: An error is detected.
  • FALSE: No error.
ErrorID
Output
UINT
A unique numeric that identifies the error. The errors for this instruction are defined in motion control function block error IDs.
AxisErrorID
Output
UINT
A unique numeric that identifies the axis error. The errors for this instruction are defined in Motion control function block error IDs.

MC_ReadAxisError examples

MC_ReadAxisError function block diagram example
MC_ReadAxisError function block diagram example
MC_ReadAxisError ladder diagram example
MC_ReadAxisError ladder diagram example
MC_ReadAxisError structured text example
MC_ReadAxisError structured text example
Results
Results
Axis monitoring
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal