2-85
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)

Timer and Counter Instructions

2

CNTR/CNTRX

The add and subtract count inputs increase/decrease the count once when the signal rises (OFF toON). When both inputs turn ON at the same time, neither increases/decreases the count. When thereset 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. Whenthe content of CIO 0001 is controlled by an external switch, the set value can be changed manuallyfrom 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
49995000
012
49995000
01
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