B&R – PLC – Structured Text – TON

Call Syntax

TON(IN,PT,Q,ET)

Parameters

I/OParameterData TypeDescription
ININBOOLInput signal
INPTTIMEDelay Time
OUTQBOOLOutput signal, the rising edge of the input signal is delayed by PT
OUTETTIMEElapsed time

 Time Diagram

This function block works on a 10 ms base, i.e. it is not precise down to 1 ms.

 

Example Code

TON_01( IN:=input, PT:=T#1s200ms );

 

output := TON_01.Q;

elapsedTime := TON_01.ET;