Chapter 8 Logic Instructions
8-45
FB/FC
FB
TOF is used for the off delay.
Parameters
Meaning
Description Valid range
In Timer input
Input
Controls the timer to start or reset TRUE or FALSE
PT Set time
Input
Set the time from when the timer starts
until Q changes to TRUE
Q Timer output
Output
Q is FALSE when the set time PT is
reached.
TRUE or FALSE
ET Elapsed time
Output
Elapsed time from the time when the
timer starts to current time.
T#0ms ~ 213503d23h34m33s709.551ms
Boolean
Bit string Integer
Real
number
Time, date
String
BYTE
WORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
DATE
DT
STRING
In
●
PT
●
Q
●
ET
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data
type.
Function Explanation
The TOF instruction is defined as the function of a timer for the OFF delay.
When In is TRUE, Q is TRUE. When In changes from TRUE to FALSE, the timer starts to measure
the time and the value of ET increases accordingly. At the moment, Q remains TRUE. When ET
equals PT, Q is FALSE and the timer stops measuring time. When In is set to TRUE, ET is reset
and Q changes to TRUE again.
Precautions for Correct Use
When the output value of ET reaches the set value of PT, the timer stops measuring time. ET is
reset to 0 (0ms) when In changes from FALSE to TRUE.
TOF
EN ENO
Q
TOF_instance
In
PT
ET