Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 231

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Timer and Counter Instructions
Flags
Precautions
198
When decrementing, the Completion Flag will be turned ON when the PV is
decremented from 0 up to the SV and it will be turned OFF again when the PV
is decremented from the SV to SV
SV
Counter PV
Completion Flag
Name
Label
Error Flag
ER
Counter numbers are shared by the CNT, CNTX(546), CNTR(012),
CNTRX(548), CNTW(814), and CNTWX(818) instructions. If two counters
share the same counter number but are not used simultaneously, a duplica-
tion error will be generated when the program is checked but the counters will
operate normally. Counters which share the same counter number will not
operate properly if they are used simultaneously.
The PV will not be changed if the increment and decrement inputs both go
from OFF to ON at the same time. When the reset input is ON, the PV will be
reset to 0 and both count inputs will be ignored.
The Completion Flag will be ON only when the PV has been incremented
from the SV to 0 or decremented from 0 to the SV; it will be OFF in all other
cases.
When inputting the CNTR(012)/CNTRX(548) instruction with mnemonics, first
enter the increment input (II), then the decrement input (DI), the reset input
(R), and finally the CNTR(012)/CNTRX(548) instruction. When entering with
the ladder diagrams, first input the increment input (II), then the CNTR(012)/
CNTRX(548) instruction, the decrement input (DI), and finally the reset input
(R).
1.
1
Operation
ON if N is indirectly addressed through an Index Register
but the address in the Index Register is not the PV
address of a counter.
ON if in BCD mode and S does not contain BCD data.
OFF in all other cases.
Section 3-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents