3. Instructions
250
CS/CJ/NSJ Series Instructions Reference Manual (W474)
CNR/CNRX
Applicable Program Areas
Operands
N1: First Number in Range
N1 must be a timer number between T0000 and T4095 or a counter number between C0000 and
C4095.
N2: Last Number in Range
N2 must be a timer number between T0000 and T4095 or a counter number between C0000 and
C4095
Note N1 and N2 must be in the same data area, i.e., N1 and N2 must be timer numbers or counter numbers.
z Operand Specifications
Flags
Function
CNR(545)/CNRX(547) resets the Completion Flags of all timers or counters from N1 to N2. 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.)
Instruction Mnemonic Variations
Function
code
Function
RESET TIMER/COUNTER
CNR @CNR 545
Resets the timers or counters within the specified
range of timer or counter numbers.
CNRX @CNRX 547
Symbol
CNR CNRX
BCD Binary
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description
Data type
Size
CNT CNTX
N1
First number in range
TIMER/COUNTER
*1
Variable
N2
Last number in range
TIMER/COUNTER
*1
Variable
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N1
--- --- --- --- OK OK --- --- --- --- --- --- --- OK --- --- --- ---
N2
Name Label Operation
Error Flag P_ER • ON if N1 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 N2 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 N1 and N2 are not in the same data area.
• OFF in all other cases.
CNR(545)
N1
N2
N1: First number in range
N2: Last number in range
CNRX(547)
N1
N2
N1: First number in range
N2: Last number in range