Call Syntax
TOF(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 falling 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
TOF_01( IN:=input, PT:=T#1s200ms );
output := TOF_01.Q;
elapsedTime := TOF_01.ET;