MC_ReadAxisError

Function block MC_ReadAxisError
Reads general axis errors not relating to the function blocks. For example, axis errors, drive errors, and communication errors.
VAR_IN_OUT
B AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
B Enable BOOL Gets the value of the parameter continuously while enabled.
VAR_OUTPUT
B Valid BOOL TRUE if a valid output is available at the function block.
E Busy BOOL The function block is not finished and new output values are to be expected.
B Error BOOL Signals that an error has occurred within the function block.
B ErrorID MC_Error Error identification.
E AxisErrorID WORD The value of the axis error. These values are vendor-specific.
  • If ErrorId is 11, it could be KINGSTAR position error, or servo drive's error (see your servo drive's manual).
  • If real axes are used, the code read from 0x603F will be displayed first.
Error Code Description
0x01 Communication error. Using MC_ReadAxisError while an axis is in non-Op state returns this error.
0x02 Position lag error. Same as mcFollowingError in MC_Error. The maximum following error is reached. The motion is stopped and the axis is disabled.
0x03

Command jump error. Same as mcCommandJump in MC_Error. The new target position is too far from the previous target position.

Other error code If an alarm occurs on a servo drive, MC_ReadAxisError will read from the 0x603F object.

 

  MC_ReadAxisError  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
        Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error
        AxisErrorID   WORD