GET
- Getter:
public
Code
Declaration
VAR CONSTANT
WAITING : DINT := 42;
END_VAR
Implementation
IF(
NOT THIS^.sequenceRequireSuccessStep
AND_THEN NOT THIS^.wasError
AND_THEN wasSuccess
AND_THEN (THIS^.executeStep OR NOT(THIS^.registeredEval OR THIS^.registeredCommand OR THIS^.registeredLeave))
AND_THEN THIS^.step.next = STEP_SUCCESS
)THEN
//this allows the cycle manager to return SUCCESS one cycle earlier, saving many cycles in nested use
THIS^.currentState := CNM_ReturnTypes.SingleExecutionState.SUCCESS;
END_IF
state := THIS^.currentState;