Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 317

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Timer and Counter Instructions
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 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.
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.
When a CNT/CNTX(546) counter is forced set, its Completion Flag will be
turned ON and its PV will be reset to 0000. When a CNT/CNTX(546) counter
is forced reset, its Completion Flag will be turned OFF and its PV will be set to
the SV.
Be sure to reset the counter by turning the reset input from
OFF
ON
OFF before beginning counting with the count input, as shown
in the following diagram. The count input will not be received if the reset input
is ON.
Reset input
Count input
Counter PV
Completion
Flag
The reset input will take precedence and the counter will be reset if the reset
input and count input are both ON at the same time. (The PV will be reset to
the SV and the Completion Flag will be turned OFF.)
Reset input
Count input
Counter PV
Completion
Flag
The operation of the = Flag and N Flag depends on the model of the CPU
Unit. Refer to Flags, above, for details.
Note If online editing is used to add a counter, the counter must be reset before it
will work properly. If the counter is not reset, the previous value will be used as
the counter's present value (PV), and the counter may not operate properly
after it is written.
SV
Ready to start
counting
SV
Count input
Reset input
Count input
can be re-
takes pre-
can be re-
ceived.
cedence.
ceived.
Section 3-6
277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents