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
| 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