Omron CS1G/H-CPUxxH Instructions Manual page 260

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Timer and Counter Instructions
Description
Flags
Precautions
Example
Area
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
CNR(545)/CNRX(547) resets the Completion Flags of all timers or counters
from N
to N
. At the same time, the PVs will all be set to the maximum value
1
2
(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.
Name
Lab-
el
Error Flag
ER
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.
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.
N
1
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
ON if N
is indirectly addressed through an Index Register but the
1
address in the Index Register is not the PV address of a timer or
counter.
ON if N
is indirectly addressed through an Index Register but the
2
address in the Index Register is not the PV address of a timer or
counter.
ON if N
and N
are not in the same data area.
1
2
OFF in all other cases.
Section 3-6
N
2
---
---
---
Operation
239

Advertisement

Table of Contents
loading

Table of Contents