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