MC_READSTATUS
(Original Document)
Function Description
The MC_READSTATUS function is used to determine the logical status of the servodrive.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Axis
CAL MC_READSTATUS_Instance(AXIS:=AXIS, ENABLE:=ENABLE, ERROR=>ERR, VALID=>DO, BUSY=>B, ERRORID=>ERRID, ERRORSTOP=>ERRSTOP, STOPPING=>STOP, STANDSTILL=>ST, DISCRETMOTION=>DM, CONTINUOUSMOTION=>CM, SYNCHRONIZEDMOTION=>SM, MOTIONTASKMOTION=>MTM, REFERENCED=>REF, DOWNLOADING=>DWNLD, DISABLED=>DIS, HOMING=>HOM)
Representation in ST
Representation:
MC_READSTATUS_Instance(AXIS:=AXIS, ENABLE:=ENABLE, ERROR=>ERR, VALID=>DO, BUSY=>B, ERRORID=>ERRID, ERRORSTOP=>ERRSTOP, STOPPING=>STOP, STANDSTILL=>ST, DISCRETMOTION=>DM, CONTINUOUSMOTION=>CM, SYNCHRONIZEDMOTION=>SM, MOTIONTASKMOTION=>MTM, REFERENCED=>REF, DOWNLOADING=>DWNLD, DISABLED=>DIS, HOMING=>HOM);
Description of the Output Parameters
The following table describes the output parameters that are in addition to the basic parameters:
Parameter
Type
Comment
ERROR
When ERROR is TRUE, an execution error is detected by the function block.
ERRORID
Axis is missing or faulty.
ERRORSTOP
When ERRORSTOP is TRUE, stop with an error.
STOPPING
When STOPPING is TRUE, MC_STOP is in progress.
STANDSTILL
When StandStill is TRUE, the servodrive is in StandStill status.
DSICRETMOTION
When DISCRETMOTION is TRUE, a move in absolute or relative mode is in progress, or Jog.
CONTINUOUSMOTION
When CONTINUOUSMOTION is TRUE, a move in speed mode is in progress, or torque.
SYNCHRONIZEDMOTION
A synchronization operation is in progress, via the gearing operating mode.
MOTIONTASKMOTION
An MotionTask operation is in progress via the LXM_STARTMTASK block.
REFERENCED
The servodrive is referenced (homing performed).
Note: This bit is not taken into account for ATV type servodrives.
DOWNLOADING
When DOWNLOADING is TRUE, downloading is in progress.
DISABLED
Axis is in disable status.
HOMING
When HOMING is TRUE:
  • MC_HOME is in progress
  • MC_JOG going out of the LimitSwitches is in progress for Lexium 05 / Icla.