Documentation

Switch-Off Delay (IEC 61131)

Block name

TOF

ST call

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

Description

The block delays the falling edge of the input signal.

Inputs

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

Outputs

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

Application example