Cnr/Cnrx - Omron CJ - INSTRUCTIONS Reference Manual

Table of Contents

Advertisement

3. Instructions

CNR/CNRX

Instruction
RESET TIMER/COUNTER
BCD
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
First number in range
N1
Last number in range
N2
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.
Operand Specifications
Word addresses
Area
CIO
WR
HR
N1
---
---
---
N2
Flags
Name
Error Flag
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.)
250
Mnemonic
Variations
CNR
@CNR
CNRX
@CNRX
CNR
CNR(545)
N1
N1: First number in range
N2
N2: Last number in range
Block program areas
Step program areas
OK
OK
Description
@DM
AR
T
C
DM
EM
---
OK
OK
---
---
Label
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.
Function
code
545
Resets the timers or counters within the specified
range of timer or counter numbers.
547
Binary
CNRX(547)
Subroutines
OK
Data type
CNT
TIMER/COUNTER
TIMER/COUNTER
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
CNRX
N1: First number in range
N1
N2
N2: Last number in range
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
CNTX
*1
Variable
*1
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents