53
9 Function modules
9.3 Switch-on delay
The following diagram illustrates the operating principle of the switch-on delay:
Call
TON<instance> (IN, PT, TimeBase);
Inputs
Outputs
Comment
The TimeBase parameter is an extension to DIN IEC 61131-3. This extension does not constitute a lim-
itation to the standard. According to the standard, the time limit is "implementation-dependent".
The values of the inputs/outputs are not retained when the power is turned off.
Parameter Data type Description
<Instance> 01 to xx (specify instance with two digits)
IN BOOL IN = TRUE sets Q = TRUE, after the time PT is expired
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 := TON<instance>.Q;
(* OUT = TRUE, if IN = TRUE and PT expired *)
ET UINT OUT := TON<instance>.ET;
(* OUT = time passed since IN = TRUE until Q = TRUE or until
IN = FALSE *)