beautypg.com

2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 121

background image

2-85

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Tim

er and

Cou

nter

I

n

stru

ctio

ns

2

CNT

R/CNT

RX

The add and subtract count inputs increase/decrease the count once when the signal rises (OFF to
ON). When both inputs turn ON at the same time, neither increases/decreases the count. When the
reset input turns ON, the PV changes to 0 and count input is not accepted.

In the following example, the SV for CNTR(012) 0007 is determined by the content of CIO 0001. When
the content of CIO 0001 is controlled by an external switch, the set value can be changed manually
from the switch.

SV

Increment input
0.00

Counter PV
C0001

Completion Flag
C0001

Decrement input
0.01

Reset input
0.02

Increment input

Reset input

Decrement
input

CNTR

0001

#0003

0.00

0.01

0.02

CNTRX

0001

&3

0.00

0.01

0.02

or

ON

OFF

ON

OFF

ON

OFF

ON

OFF

3

0

Increment input

Reset input

Decrement
input

CNTR

0006

#5000

CNTR

0007

1

0.00

0.01

0.02

C0006

0.03

0.04

0.05

C0007

200.07

200.08

4999 5000 0

1

2

4999

5000

0

1

SV:
CIO 0001

Increment input

Decrement input

Completion Flag

Roll-over

Roll-over

Fixed SV:
5000

0.00

0.01

0.02

#5000

200.07

0.03

0.04

0.05

0007

1

C0007

200.08

CNTR (012)

CNTR (012)

LD NOT

0006

Instruction

Operands

LD

OUT

LD

LD

LD

LD

OUT

LD

LD

This manual is related to the following products: