202
Timer and Counter Instructions Section 3-5
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) does not 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 0.00 is ON in the following example, the Completion Flags for tim-
ers T0002 to T0005 are turned OFF and the timers’ PVs are set to the maxi-
mum value of 9999.
When CIO 0.01 is ON, the Completion Flags for counters C0003 to C0007 are
turned OFF and the counters’ PVs are set to the maximum value of 9999.
Name Label 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.
0.00
0.01