Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 279

Table of Contents

Advertisement

Function
• The counter PV is decremented by 1 every
time that the count input goes from OFF to
ON. The Completion Flag is turned ON
when the PV reaches 0.
• Once the Completion Flag is turned ON,
reset the counter by turning the reset input
ON or by using the CNR(545)/CNRX(547)
instruction. Otherwise, the counter cannot
be restarted.
• The counter is reset and the count input is
ignored when the reset input is ON. (When
a counter is reset, its PV is reset to the SV
and the Completion Flag is turned OFF.)
• The setting range 0 to 9,999 for CNT and 0 to 65,535 for CNTX(546).
Hint
• Counter PVs are retained even through a
power interruption. If you want to restart
counting from the SV instead of resuming
the count from the retained PV, add the
First Cycle Flag (A200.11) as a reset input
to the counter.
Precautions
• 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 duplication 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.
• A counter's PV is refreshed when the count input goes from OFF to ON and the Completion Flag is
refreshed each time that CNT/CNTX(546) is executed. The Completion Flag is turned ON if the PV is
0 and it is turned OFF if the PV is not 0.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Count input
Reset input
SV
Counter PV
Completion
Flag
First Cycle Flag
(A200.11)
3. Instructions
3
243

Advertisement

Table of Contents
loading

Table of Contents