Documentation

Switch-On Delay (IEC 61131)

Block name

TON

ST call

PROGRAM TON_DEMO
VAR
BOOL1,BOOL2: BOOL;
TIME1,TIME2: TIME;
FB:TON;
END_VAR
FB(IN:=BOOL1,PT:=TIME1,Q=>BOOL2,ET=>TIME2);
END_PROGRAM

Description

The block delays the rising edge of the input signal.

Inputs

Input Type Description Default value
IN BOOL Input signal False
PT TIME Time of the On delay 0 s

Outputs

Output Type Description
Q BOOL Output signal
ET TIME Time since the in signal rising edge

Application example