Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 285

Table of Contents

Advertisement

Precautions
The timer/counter that is reset is as follows.
BCD
TIM:
HUNDRED-MS TIMER
TIMH(015):
TEN-MS TIMER
TMHH(540): ONE-MS TIMER
TTIM(087):
ACCUMULATIVE TIMER
TIMW(813):
HUNDRED-MS TIMER WAIT
TMHW(815): TEN-MS TIMER WAIT
CNT:
COUNTER
CNTR(012): REVERSIBLE COUNTER
CNTW(814): COUNTER WAIT
TIMU(541): TENTH-MS TIMER
TMUH(544): HUNDREDTH-MS TIMER
Binary
TIMX(550):
HUNDRED-MS TIMER
TIMHX(551): TEN-MS TIMER
TMHHX(552): ONE-MS TIMER
TTIMX(555): ACCUMULATIVE TIMER
TIMWX(816): HUNDRED-MS TIMER WAIT
TMHWX(817):TEN-MS TIMER WAIT
CNTX(546):
COUNTER
CNTRX(548): REVERSIBLE COUNTER
CNTWX(818): COUNTER WAIT
TIMUX(556): TENTH-MS TIMER
TMUHX(557): HUNDREDTH-MS TIMER
• The CNR(545)/CNRX(547) instructions do not reset TIML(542), TIMLX(553), MTIM(543), and
MTIMX(554), because these timers do not use timer numbers.
• The CNR(545)/CNRX(547) instructions do not reset the timer/counter instructions themselves, they
reset 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 (9999 for BCD and FFFF for binary).
• When N1 and N2 are specified with N1>N2, only the Completion Flag for the timer/counter number
will be reset.
Sample program
0.00
CNR
0.01
CNR
0.00
CNRX
0.01
CNRX
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Instructions reset
Instructions reset
When CIO 0.00 is ON in the following example,
the Completion Flags for timers T0002 to T0005
T0002
are turned OFF and the timers' PVs are set to
T0005
the maximum value (9999 for BCD).
When CIO 0.01 is ON, the Completion Flags for counters
C0003
C0003 to C0007 are turned OFF and the counters' PVs are
set to the maximum value (9999 for BCD).
C0007
When CIO 0.00 is ON in the following example,
the Completion Flags for timers T0002 to T0005
T0002
are turned OFF and the timers' PVs are set to
T0005
the maximum value (FFFF for binary).
When CIO 0.01 is ON, the Completion Flags for counters
C0003 to C0007 are turned OFF and the counters' PVs are
C0003
set to the maximum value (FFFF for binary).
C0007
Operation of CNR(545)
The PV is set to its maximum value (9,999 BCD) and
the Completion Flag is turned OFF.
The Completion Flag is turned OFF. (The PV cannot
be read.)
Operation of CNRX(547)
The PV is set to its maximum value (FFFF hex) and
the Completion Flag is turned OFF.
The Completion Flag is turned OFF. (The PV cannot
be read.)
T
3. Instructions
3
247

Advertisement

Table of Contents
loading

Table of Contents