Call Syntax
TON(IN,PT,Q,ET)
Parameters
I/O | Parameter | Data Type | Description |
---|---|---|---|
IN | IN | BOOL | Input signal |
IN | PT | TIME | Delay Time |
OUT | Q | BOOL | Output signal, the rising edge of the input signal is delayed by PT |
OUT | ET | TIME | Elapsed time |
Time Diagram
This function block works on a 10 ms base, i.e. it is not precise down to 1 ms.
Example Code
TON_01( IN:=input, PT:=T#1s200ms );
output := TON_01.Q;
elapsedTime := TON_01.ET;