MC_STOP
(Original Document)
Function Description
The MC_STOP function is used to stop any motion in progress and place the AXIS in Stopping status.
As soon as the axis is at zero speed, the output parameter DONE is set to TRUE, and the axis is therefore in stopping status. The AXIS moves into Standby status if the input parameter returns to FALSE.
The input and output parameters of the block are basic parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Axis
CAL MC_STOP_Instance(AXIS:=AXIS, EXECUTE:=EXEC, ERROR=>ERR, DONE=>DO, BUSY=>B, ERRORID=>ERRID, COMMANDABORTED=>ABORT)
Representation in ST
Representation:
MC_STOP_Instance(AXIS:=AXIS, EXECUTE:=EXEC, ERROR=>ERR, DONE=>DO, BUSY=>B, ERRORID=>ERRID, COMMANDABORTED=>ABORT);
Stop on Z Axis
The example below shows how the MC_STOP behaves in combination with MC_MOVEVELOCITY.
The graph below shows the timing chart for the example with:
a) A rotating axis stopped with an MC_Stop MFB
b) The axis rejects the move command when the Execute parameter of the MC_STOP block equals 1. The MC_MOVEVELOCITY MFB raises an error indicating that the MC_STOP command is active.
The graph below shows the timing chart for stopping the axis: