![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532146.webp)
141
The counter will not restarted after it has counted down to zero until it is reset by
turning ON R or executing CNR(236).
Changes in execution conditions, the Completion Flag, and the PV are illus-
trated below. PV line height is meant only to indicate changes in the PV and not
absolute values.
Execution condition
on count pulse (CP)
Execution condition
on reset (R)
ON
OFF
ON
OFF
Completion Flag
ON
OFF
PV
SV
SV – 1
SV – 2
0002
0001
0000
SV
When inputting CNT using ladder diagrams, first input the count pulse (CP), then
the CNT instruction, and then the reset input (R). When using mnemonics, first
input the count pulse, then the reset input, and then the CNT instruction.
Precautions
SV must be BCD between 0000 and 9999.
Counter numbers range from C0000 through C1023. Each counter number can
be used to define only one counter instruction unless the counters are never ac-
tive simultaneously. The CNT and CNTR(012) counters use counter numbers.
Note: Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
Content of S (SV) is not BCD.
In the following example, the PV will be decremented whenever both 000000
and 000001 are ON provided that 000002 is OFF and either 000000 or 000001
was OFF the last time C0004 was executed. When 150 pulses have been
counted down (i.e., when PV reaches zero), 000205 will be turned ON.
Address
Instruction
00000
LD
000000
00001
AND
000001
00002
LD
000002
00003
CNT
0004
#0150
00004
LD
C0004
00005
OUT
000205
Operands
0000
00
0002
05
0000
01
0000
02
C0004
CNT
0004
#0150
CP
R
Here, 000000 can be used to control when CNT is operative and 000001 can be
used as the bit whose OFF to ON changes are being counted.
Example 1:
Basic Application
Timer and Counter Instructions
Section 5-13
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...