Skip to main content

executeCommand

Short summary

This method performs the given command and evaluates the return value. The command will be called with execute := FALSE in the first cycle and with execute := TRUE in all following

Parameters

NameTypeCommentKind
commandCNM_CommandInterfaces.ICommandcommand to executeinput
errorStepDINTstep to proceed with in case of errorinput

Code

Declaration

METHOD executeCommand
VAR_INPUT
(* command to execute *)
command :CNM_CommandInterfaces.ICommand;
(* step to proceed with in case of error *)
errorStep :DINT := CNM_ReturnTypes.DefaultSteps.STEP.ERROR;
END_VAR