Skip to main content

waitFor

Short summary

This method waits for a boolean signal until the step can be changed.

Parameters

NameTypeCommentKind
valueBOOLthe value to wait forinput

Code

Declaration

METHOD waitFor
VAR_INPUT
(* the value to wait for *)
value :BOOL;
END_VAR

Implementation

RETURN (THIS^.state <> CNM_ReturnTypes.SingleExecutionState.BUSY);

THIS^.registeredEval := TRUE;

IF(value)THEN
IF(NOT wasError)THEN
THIS^.wasSuccess := TRUE;
END_IF
ELSE
THIS^.wasNotSuccess := TRUE;
END_IF