Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 133
Timer and Counter Instructions (TON, TOF, RTO, TONR, TOFR, RTOR, CTU, CTD, CTUD, RES) Chapter 3
Timer Off Delay with Reset
(TOFR)
The TOFR instruction is a non-retentive timer that accumulates time when
TimerEnable is cleared. This instruction is available in relay ladder as two
separate instructions:
· TOF (See page 116
).
· RES (See page 153
).
Operands:
Structured Text
Function Block Operands
FBD_TIMER Structure
Variable Type Format Description
TOFR tag FBD_TIMER Structure TOFR structure
Operand Type Format Description
TOFR tag FBD_TIMER Structure TOFR structure
Input Parameter Data Type Description
EnableIn BOOL Function Block
If cleared, the instruction does not execute and outputs are not updated.
If set, the instruction executes.
Default is set.
Structured Text
No effect. The instruction executes.
TimerEnable BOOL If cleared, this enables the timer to run and accumulate time.
Default is cleared.
PRE DINT Timer preset value. This is the value in 1ms units that ACC must reach before timing is finished. If
invalid, the instructions sets the appropriate bit in Status and the timer does not execute.
Valid = 0 to maximum positive integer
Reset BOOL Request to reset the timer. When set, the timer resets.
Default is cleared.
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.
ACC BOOL Accumulated time in milliseconds.
EN BOOL Timer enabled output. Indicates the timer instruction is enabled.
TT BOOL Timer timing output. When set, a timing operation is in progress.
DN BOOL Timing done output. Indicates when accumulated time is greater than or equal to preset.