MC_AbortHoming_BkPlcMc
The function block is used to cancel a referencing process.
Inputs
VAR_INPUT
Execute: BOOL;
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | A rising edge at this input starts the abort. |
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
Done: BOOL;
Busy: BOOL;
Active: BOOL;
CommandAborted: BOOL;
Error: BOOL;
ErrorID: UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Done | BOOL | Successful processing is indicated here |
Busy | BOOL | Indicates that a command is being processed. |
Active | BOOL | Readiness for operation is indicated here. |
CommandAborted | BOOL | Here an abort of the command is indicated. |
Error | BOOL | The occurrence of an error is indicated here. |
ErrorID | UDINT | An encoded error message is provided here. |
Behavior of the function block
On a rising edge at Execute the function block checks the transferred axis interface whether an active movement is executed. If the axis is not in an active movement, referencing is aborted directly. If the axis is in an active movement, this movement is stopped via a MC_Stop_BkPlcMc. If the stop is successful, the function block reports Done. If an error occurs during the stop, this error is indicated via Error and ErrorId.
A falling edge at Execute clears all the pending output signals. If, while the movement is still active, Execute is set to FALSE, execution of the command that had started continues unaffected