MC_Stop

The MC_Stop FB leads to stopping of motion and takes the axis to the ‘Stopping’ state. The motion stop is always jerk limited with the constant set input ‘jerk’ for the braking rate.

It aborts every ongoing command by other motion FBs. Contrary to the definition of the state graph in the case of PLCopen, it has proven useful in practice to also be able to cancel an axis that is in the ‘Stopping’ state by commanding with another motion FB. The MC_Stop FB sets the ‘Done’ output as soon as the axis has stopped. However, the ‘Stopping’ state of the axis is retained for as long as the ‘Execute’ input is still TRUE.

Block diagram

MC_Stop 1:

Parameters of the FB

VAR_IN_OUT

 

Axis

AXIS_REF

Axis reference.

VAR_INPUT

 

Execute

BOOL

Start the action at rising edge.

 

Deceleration

LREAL

Value of the deceleration (always positive).

Range [1.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

 

Jerk

LREAL

Value of the Jerk (always positive).

Range [1.0, 2147483647.0]
Default unit [1m/s3 or 1000°/s3]

VAR_OUTPUT

 

Done

BOOL

Zero velocity reached and execute is not True.

Note:

The output ‘Done’ indicates merely that the axis is stationary. The automatic axis state indicator remains initially in the state ‘Stopping’. Only in addition the input ‘Execute’ = FALSE does the automatic axis state indicator change over to the state ‘Standstill’.

 

Error

BOOL

Indicates if an error has occurred.

 

ErrorID

WORD

Error identification.

Behavior of the FB