The TON on delay timer function block turns an output on after a delay.
The TON Function Block has this syntax:
TON( IN:=Expression, PT:=Expression, Q=>Variable-Reference, ET=>Variable-Reference );
Note: All parameters are optional.
Parameter | Type | Direction | Description |
---|---|---|---|
IN | BOOL | Input | A rising edge starts the timer. |
PT | TIME | Input | The duration of timer. |
Q | BOOL | Output | Set to true after delay PT. |
ET | TIME | Output | The elapsed time of the timer. |
The TON Function Block uses this logic:
These timing diagrams show the relationship of the TON Function Block inputs and outputs:
Example 1 Example 2 +--------+ +-+ IN | | | | --+ +--- --+ +--- +---+ Q | | -------+ +--- -------- +---+ / | / | ET / | + / | /| --+ +--- --+ +---
Notes:
IEC 61131-3 Second Edition: Table 37.2.
IEC 61131-3 Third Edition: Table 46.2a.
To learn about a function block that turns an output off after a delay.
To learn about other standard function blocks.
To learn about the different types supported by Fernhill SCADA.
To learn about other IEC 61131-3 Common Elements.
For the meaning of terms used in Fernhill SCADA.