TON![This function or function block supports PLCopen motion PLCopen motion icon](../Resources/Images/Icon_PLCopen.png)
A function block groups an algorithm and a set of private data. It has inputs and outputs. - On timer.
Inputs
IN : BOOL Timer command
PT : TIME Programmed time
Outputs
Q : BOOL Timer elapsed output signal
ET : TIME Elapsed time
Time diagram
Remarks
- The timer starts on a rising pulse of IN input. It stops when the elapsed time is equal to the programmed time. A falling pulse of IN input resets the timer to 0. The output signal is set to TRUE when programmed time is elapsed, and reset to FALSE when the input command falls.
- In FFLD language, the input rung is the IN command. The output rung is Q the output signal.
ST Language
(* Inst_TON is a declared instance of TON function block *)
Inst_TON( FALSE, T#2s );
Q := Inst_TON.Q;
ET := Inst_TON.ET;
FBD Language
FFLD Language
IL Language:
(* MyTimer is a declared instance of TON function block *)
Op1: CAL MyTimer (IN, PT)
FFLD MyTimer.Q
ST Q
FFLD MyTimer.ET
ST ET
See also