MC_Halt

The MC_Halt FB leads to a controlled motion stop. The motion stop is always jerk-limited with the constant set input "Jerk” to build up the deceleration rate. It aborts every ongoing command by other motion FBs.

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

Contrary to the FB MC_Stop, a commanded FB MC_Halt may be aborted by commanding another motion FB. The “CommandAborted” output is then set to TRUE.

The MC_Halt FB sets the “Done” output as soon as the axis is at standstill.

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.

CommandAborted

BOOL

TRUE indicates that the command was aborted by another command.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

Behaviour of the FB: