Skip to main content

leave

Short summary

This method performs the given invoke only in the last cycle of the current step.

Parameters

NameTypeCommentKind
invokeCNM_CommandInterfaces.ISingleAttemptcommand to executeinput
errorStepDINTstep to proceed with in case of errorinput
forceOnErrorBOOLwhether the attempt should be called even if there was an error in the current stepinput

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