handleCycleManagerTimeout
Short summary
This method handles the timeout of the current step. Call at any point each cycle.
- Return type:
BOOL
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| step | BOOL | must be TRUE if stepping is enabled to proceed steps automatically | input |
Code
Declaration
METHOD PROTECTED handleCycleManagerTimeout : BOOL
VAR_INPUT
(* must be TRUE if stepping is enabled to proceed steps automatically *)
step :BOOL;
END_VAR
Implementation
IF ((THIS^.currentState = CNM_ReturnTypes.SingleExecutionState.BUSY) AND (THIS^.currentTimeout > T#0S)) THEN
THIS^.timeoutTimer(
IN := (
(NOT THIS^.currentSteppingEnabled)
OR
(NOT step)
),
PT := THIS^.currentTimeout,
Q => THIS^.wasTimeoutError
);
END_IF