Skip to main content

update

Short summary

This method handles all updates of the cycle manager. Should be called first each cycle befor evaluating the steps and only once per cycle!

Parameters

NameTypeCommentKind
executeBOOLcontrol bit to start or abort the cycle managerinput
stopRequestBOOLused for StopRequest evaluation if configuredinput
pauseBOOLif true and Pausing Enabled and busy will proceed with PAUSEinput
resumeBOOLif true, will acknowledge error and return to previous stepinput
stepControlBOOLmust be TRUE if stepping is enabled to proceed steps automaticallyinput

Code

Declaration

METHOD update
VAR_INPUT
(*control bit to start or abort the cycle manager*)
execute :BOOL;
(*used for StopRequest evaluation if configured*)
stopRequest :BOOL := FALSE;
(*if true and Pausing Enabled and busy will proceed with PAUSE*)
pause :BOOL := FALSE;
(*if true, will acknowledge error and return to previous step*)
resume :BOOL := FALSE;
(* must be TRUE if stepping is enabled to proceed steps automatically *)
stepControl :BOOL := TRUE;
END_VAR

Implementation

RETURN (NOT THIS^.handleCycleManagerExecute(execute));
THIS^.handleCycleManagerError(resume);
THIS^.handleStepChange(stepControl, stopRequest);
THIS^.handleCycleManagerPause(pause);
THIS^.handleCycleManagerTimeout(stepControl);
THIS^.updateCycleManager();