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
| Name | Type | Comment | Kind |
|---|---|---|---|
| execute | BOOL | control bit to start or abort the cycle manager | input |
| stopRequest | BOOL | used for StopRequest evaluation if configured | input |
| pause | BOOL | if true and Pausing Enabled and busy will proceed with PAUSE | input |
| resume | BOOL | if true, will acknowledge error and return to previous step | input |
| stepControl | BOOL | must be TRUE if stepping is enabled to proceed steps automatically | input |
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();