MC_ResetAndStop_BkPlcMc (from V3.0)
The function block puts a faulty axis in an operational state. If the axis is processing a travel command, this is aborted, and the associated required stop operation is monitored.
Inputs
VAR_INPUT
Execute: BOOL;
Deceleration: LREAL; (ab/from V3.0.5)
Jerk: LREAL; (ab/from V3.0.5)
RampTime: LREAL; (ab/from V3.0.5)
BufferMode: MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc; (ab/from V3.0.8)
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | A rising edge at this input triggers an axis reset and a stop operation. |
Deceleration | LREAL | [mm/s2] The deceleration to be applied. |
Jerk | LREAL | [mm/s3] The jerk to be applied. |
RampTime | LREAL | [s] The required stopping time. |
BufferMode | MC_BufferMode_BkPlcMc | reserved. This input is provided in preparation for a future build. It should currently either not be assigned or assigned the constant Aborting_BkPlcMc. (from V3.0.8) |
Inputs/outputs
VAR_INOUT
Axis: Axis_Ref_BkPlcMc;
END_VAR
Name | Type | Description |
---|---|---|
Axis | Axis_Ref_BkPlcMc | Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred. |
Outputs
VAR_OUTPUT
Busy: BOOL;
Done: BOOL;
Error: BOOL;
ErrorID: UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Busy | BOOL | Indicates that a command is being processed. |
Done | BOOL | Successful execution of the axis reset is indicated here. |
Error | BOOL | The occurrence of an error is indicated here. |
ErrorID | UDINT | An encoded indication of the cause of the error is provided here. |
Behavior of the function block
On a rising edge at Execute the function block checks the transferred axis interface. A number of problems can be detected and reported during this process:
- If it is not possible to successfully clear an existing error state for an axis through a reset operation, the system responds with Error and ErrorID:= the ErrorCode for the axis.
- If the axis is placed into an error state in the course of a stop operation that may have been necessary, the system responds with Error and ErrorID:= the ErrorCode for the axis.
Successful completion of both operations is reported with Done. The axis is then without error and stationary.
A falling edge at Execute clears all the pending output signals.
If the axis is executing a motion, it is decelerated until it stops. In some drive types, signal exchange with an external device is required, in order to rectify certain errors. During the time required for this, the function block is unable to report a final result (Done or Error). Instead, Busy is used to indicate that the function is in progress. |