MDI_Stop (FB)

FUNCTION_BLOCK MDI_Stop

This function block is used to perform a controlled stop on the axis at the programmed deceleration rate.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Starts the controlled stop on a rising edge.

Deceleration

REAL

5.0

Deceleration rate, range>0 (user units/sec^2 for e5x0, sec for ACSx80).

StopMode

MDI_StopType

MDI_StopType.RampDown

0:RampDown, stop along the active deceleration ramp. 1:CoastStop, stop by switching off the output semiconductors of the drive. The motor coasts to a stop. 2:EmergencyStop, stop immediately by using the shortest possible time the mechanical system will allow.

Inout

Axis

MDI_AxisRef

Reference to the axis structure.

Output

Done

BOOL

Sets to true when the axis becomes idle after completing the controlled stop or if an error occurs when the stop command is issued.

Busy

BOOL

Sets to true while the stop is in progress.

Error

BOOL

Signals that an error has occurred within function block.

ErrorID

ERROR_ID

Contains the error code when there is an error.