leave
Short summary
This method performs the given invoke only in the last cycle of the current step.
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| invoke | CNM_CommandInterfaces.ISingleAttempt | command to execute | input |
| errorStep | DINT | step to proceed with in case of error | input |
| forceOnError | BOOL | whether the attempt should be called even if there was an error in the current step | input |
Code
Declaration
METHOD leave
VAR_INPUT
(* command to execute *)
invoke :CNM_CommandInterfaces.ISingleAttempt;
(* step to proceed with in case of error *)
errorStep :DINT := CNM_ReturnTypes.DefaultSteps.STEP.ERROR;
(* whether the attempt should be called even if there was an error in the current step *)
forceOnError :BOOL := FALSE;
END_VAR