beautypg.com

Cnr/cnrx, Applicable program areas operands, Flags function – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 122: 2 instructions, N1: first number in range, N2: last number in range, Operand specifications

background image

2 Instructions

2-86

CP1E CPU Unit Instructions Reference Manual(W483)

CNR/CNRX

Applicable Program Areas

Operands

N1: First Number in Range

N1 must be a timer number between T000 and T255 or a counter number between C000 and C255.

N2: Last Number in Range

N2 must be a timer number between T000 and T255 or a counter number between C000 and C255.

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

Step program areas

Subroutines

Interrupt tasks

Usage

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 addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

N1,N2

---

---

---

---

OK

OK

---

---

---

---

---

---

---

Name

Label

Operation

Error Flag

P_ER

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

This manual is related to the following products: