Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 143
Timer and Counter Instructions (TON, TOF, RTO, TONR, TOFR, RTOR, CTU, CTD, CTUD, RES) Chapter 3
Execution:
Condition Relay Ladder Action
Prescan The .CU bit is set to prevent invalid increments during the first program scan.
The rung-condition-out is set to false.
Rung-condition-in is false The .CU bit is cleared.
The rung-condition-out is set to false.
Postscan The rung-condition-out is set to false.
Examine .CU bit.
.CU Bit = 0
.CU Bit = 1
Rung-condition-in is true
.ACC Value
rolls over
Yes
No
Examine .UN Bit
.UN Bit = 0
.UN Bit = 1
.CU bit is set.
.ACC = .ACC + 1
Examine .OV Bit
.OV Bit = 0
Examine .UN Bit
.UN bit = 1
.UN bit = 0
.UN bit is cleared.
.DN Bit is cleared
OV bit is cleared
.OV bit is set.
Examine .ACC
.ACC ≥ .PRE
.ACC < .PRE
.DN bit is set.
Rung-condition-out is set to
true.
End
.OV Bit = 1
.DN bit is cleared.