TON

Function Block - On timer.

Inputs

IN : BOOL  Timer command
PT : TIME  Programmed time

Outputs

Q : BOOL   Timer elapsed output signal
ET : TIME  Elapsed time

Time diagram

TonDiag.gif (2698 octets)

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 LD language, the input rung is the IN command. The output rung is Q the output signal.

ST Language

(* MyTimer is a declared instance of TON function block *)
MyTimer (IN, PT);
Q := MyTimer.Q;
ET := MyTimer.ET;

FBD Language

TonFbd.gif (1255 octets)

LD Language

TonLd.gif (1365 octets)

IL Language:

(* MyTimer is a declared instance of TON function block *)
Op1: CAL MyTimer (IN, PT)
     LD  MyTimer.Q
     ST  Q
     LD  MyTimer.ET
     ST  ET

See also

TOF   TP   BLINK