Skip to main content

update

Short summary

This method updates the current state and current step of the cycle manager. It needs to be called exactly once per PLC cycle per cycle manager instance.

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