MC_Stop

The MC_Stop FB leads to a controlled motion stop and sets the axis to the “Stopping” state. The motion stop is always jerk-limited with the constant set input "jerk” for the deceleration rate.

If the optional parameters ”Deceleration” and “Jerk” are not specified or set to <= 0, the dynamic values are taken from the corresponding axis list.

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

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Starts the command on the rising edge.

Deceleration

LREAL

Deceleration value. This value must be always be specified positive.

Value range [0.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

Jerk

LREAL

Jerk value. This value must be always be specified positive.

Value range [0.0, 2147483647.0]
Default unit [1mm/s3 or 1°/s3]

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

0 velocity was reached.

Caution: The "Done“ output merely indicates that the axis is stationary. The automatic axis state indicator remains initially in the STOPPING state. Only when the "Execute” input is also FALSE does the automatic axis state indicator change to the “STANDSTILL” state.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

Behaviour of the FB: