55
9 Function modules
9.4 Switch-off delay
The following diagram illustrates the operating principle of the switch-off delay:
Call
TOF<instance> (IN, PT, TimeBase);
Inputs
Outputs
Parameter Data type Description
<Instance> 01 to xx (specify instance with two digits)
IN BOOL IN = TRUE sets Q = TRUE
IN = FALSE sets Q around the time PT delayed to FALSE
PT UINT Delay time (unit: TimeBase)
TimeBase UINT Unit of PT:
1 = ms
2 = s
3 = min
Parameter Data type Query; (* description *)
Q BOOL OUT := TOF<instance>.Q;
(* OUT = TRUE, if IN = TRUE or if IN = FALSE and PT has not
yet expired *)
ET UINT OUT := TOF<instance>.ET;
(* OUT = time passed since IN = FALSE until Q = FALSE
or until IN = TRUE *)