waitFor
Short summary
This method waits for a boolean signal until the step can be changed.
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| value | BOOL | the value to wait for | input |
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