9.3
Switch-on delay
The following diagram illustrates the operating principle of the switch-on delay:
Call
TON<instance> (IN, PT, TimeBase);
Inputs
Parameter
<Instance>
IN
PT
TimeBase
Outputs
Parameter
Q
ET
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.
Data type
Description
01 to xx (specify instance with two digits)
BOOL
IN = TRUE sets Q = TRUE, after the time PT is expired
UINT
Delay time (unit: TimeBase)
UINT
Unit of PT:
1 = ms
2 = s
3 = min
Data type
Query; (* description *)
BOOL
OUT := TON<instance>.Q;
(* OUT = TRUE, if IN = TRUE and PT expired *)
UINT
OUT := TON<instance>.ET;
(* OUT = time passed since IN = TRUE until Q = TRUE or until
IN = FALSE *)
9 Function modules
53