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
ExecuteBOOLFALSE
Starts the controlled stop on a rising edge.
DecelerationREAL5.0
Deceleration rate, range>0 (user units/sec^2 for e5x0, sec for ACSx80).
StopModeMDI_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
AxisReference to the axis structure.
Output
DoneBOOLSets to true when the axis becomes idle after completing the controlled stop or if an error occurs when the stop command is issued.
BusyBOOLSets to true while the stop is in progress.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDContains the error code when there is an error.