![Omron CJ1G-CPUxx Instructions Manual Download Page 260](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491260.webp)
239
Timer and Counter Instructions
Section 3-6
Description
CNR(545)/CNRX(547) resets the Completion Flags of all timers or counters
from N
1
to N
2
. At the same time, the PVs will all be set to the maximum value
(9999 for BCD and FFFF for binary). (The PV will be set to the SV the next
time that the timer or counter instruction is executed.)
Timers Reset by CNR(545)/CNRX(547)
The following timers will be reset if their timer numbers fall within the specified
range: TIM, TIMX(550), TIMH(015), TIMHX(551), TMHH(540), TMHHX(552),
TTIM(087), TTIMX(555), TIMW(813), TIMWX(816), TMHW(815), and
TMHWX(817). When a timer is reset, its Completion Flag is turned OFF and
its PV is set to the maximum value of 9999.
Note The TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) timers are not
reset by CNR(545)/CNRX(547) because these timers do not use timer num-
bers.
Counters Reset by CNR(545)/CNRX(547)
The following counters will be reset if their counter numbers fall within the
specified range: CNT, CNTX(546), CNTR(012), CNTRX(548), CNTW(814),
and CNTWX(818). When a counter is reset, its Completion Flag is turned
OFF and its PV is set to the maximum value of 9999.
Flags
Precautions
CNR(545)/CNRX(547) doesn’t reset the timer/counter instructions them-
selves, it resets the PVs and Completion Flags allocated to those instructions.
In most cases, the effect of CNR(545)/CNRX(547) is different from directly
resetting the instructions. For example, when a TIM/TIMX(550) instruction is
reset directly its PV is set to the SV, but when that timer is reset by CNR(545)/
CNRX(547) its PV is set to the maximum value of 9999.
When N1 and N2 are specified with N1>N2, only the Completion Flag for the
timer/counter number will be reset.
Example
When CIO 000000 is ON in the following example, the Completion Flags for
timers T0002 to T0005 are turned OFF and the timers’ PVs are set to the
maximum value of 9999.
Constants
---
---
Data Registers
---
---
Index Registers
---
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
N
1
N
2
Name
Lab-
el
Operation
Error Flag
ER
ON if N
1
is indirectly addressed through an Index Register but the
address in the Index Register is not the PV address of a timer or
counter.
ON if N
2
is indirectly addressed through an Index Register but the
address in the Index Register is not the PV address of a timer or
counter.
ON if N
1
and N
2
are not in the same data area.
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...