updateCycleManager
Short summary
This method updates the step and state of the cycle manager. Should be called after all handles each cycle.
Parameters
none
Code
Declaration
METHOD PROTECTED updateCycleManager
Implementation
THIS^.externalExecute := NOT THIS^.firstCycle;
IF (THIS^.firstCycle AND_THEN (THIS^.currentStep <> CNM_ReturnTypes.DefaultSteps.STEP.SUCCESS)) THEN
THIS^.timeoutTimer(IN := FALSE);
THIS^.last := THIS^.currentStep;
THIS^.currentStep := THIS^.step.next;
THIS^.resetInternalVariables();
THIS^.resetCurrentStepParametersToDefaults();
END_IF
//Set State for external use
THIS^.state := getStateFromStep(THIS^.currentStep);
THIS^.wasError := FALSE;
THIS^.wasNotSuccess := FALSE;
THIS^.wasSuccess := FALSE;