Omron CVM1D Operation Manual page 146

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Timer and Counter Instructions
Precautions
Flags
Example 1:
Basic Application
0000
0000
00
01
0000
02
C0004
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)
Completion Flag
PV
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.
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.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
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.
CP
CNT
0004
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.
ON
OFF
ON
OFF
ON
OFF
SV
SV – 1
SV – 2
#0150
0002
05
Section 5-13
0002
0001
0000
Address Instruction
Operands
00000
LD
000000
00001
AND
000001
00002
LD
000002
00003
CNT
0004
#0150
00004
LD
C0004
00005
OUT
000205
SV
141

Advertisement

Table of Contents
loading

Table of Contents