5 I/O Memory
5-16
CP2E CPU Unit Software User’s Manual(W614)
Precautions for Correct UsePrecautions for Correct Use
It is not recommended to use the same counter number in two counter instructions because the
counters will not operate correctly if they are counting simultaneously.
If two or more counter instructions use the same counter number, an error will be generated dur-
ing the program check.
z Counter Example: Counter Number 0 with a Counter Set Value of 10
z Resetting or Maintaining Counter PVs
• Counter Completion Flags can be force-set and force-reset.
• Counter PVs cannot be force-set or force-reset, although the PVs can be refreshed indirectly by
force-setting/resetting the Counter Completion Flag.
• There are no restrictions in the order of using counter numbers or in the number of N.C. or N.O.
conditions that can be programmed.
• Counter PVs can be read as word data and used in programming.
• The following table shows when counters PVs are reset or maintained.
Instruction
CNT/CNTX CNTR/CNTRX
COUNTER REVERSIBLE COUNTER
PV and Counter Completion Flag when counter
is reset
PV=0
Counter Completion Flag = OFF
When the operating mode is changed between
PROGRAM or MONITOR mode and RUN mode
Retained
When the PLC power is reset Retained
Reset Input Reset
CNR/CNRX instructions Reset
Interlocks (IL-ILC) with OFF interlock conditions Retained
CNT
000
#10
or #A
Counter Completion Flag
Counter Completion Flag
· BCD mode
· Binary mode
C000
C000
CNTX
000
&10