Timer Accumulated Value (.ACC)
IMPORTANT
Arithmetic Status Flags:
Fault Conditions:
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Timer and Counter Instructions (TON, TOF, RTO, TONR, TOFR, RTOR, CTU, CTD, CTUD, RES)
When the TOF instruction is disabled, the .ACC value is cleared.
Rung-condition-in
Timer Enable Bit (.EN)
Timer Timing Bit (.TT)
Timer Done Bit (.DN)
Preset
0
A timer runs by subtracting the time of its last scan from the time now:
ACC = ACC + (current_time - last_time_scanned)
After it updates the ACC, the timer sets last_time_scanned = current_time. This
gets the timer ready for the next scan.
Make sure to scan the timer at least every 69 minutes while it runs. Otherwise, the ACC
value won't be correct.
The last_time_scanned value has a range of up to 69 minutes. The timer's calculation rolls
over if you don't scan the timer within 69 minutes. The ACC value won't be correct if this
happens.
While a timer runs, scan it within 69 minutes if you put it in the following:
• A subroutine
• A section of code that is between JMP and LBL instructions
• A sequential function chart (SFC)
• An event or periodic task
• A state routine of a phase
Not affected
A major fault will occur if
.PRE < 0
.ACC < 0
OFF Delay
Timer did not reach .PRE value
Fault type
Fault code
4
34
4
34
Chapter 3
16650
121