![Omron CVM1D Operation Manual Download Page 200](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532200.webp)
195
The branching structure of this diagram is important in order to ensure that
000200, 000201, and 000202 are controlled properly as the timer counts down.
Because all of the comparisons here use the timer’s PV as reference, the other
operand for each CMP(020) must be in 4-digit BCD.
00000
LD
000000
00001
TIM
0010
#5000
00002
CMP(020)
T0010
#4000
00003
AND
A50007
00004
OUT
000200
00005
LD
000200
00006
CMP(020)
T0010
#3000
00007
AND
A50007
00008
OUT
000201
00009
LD
000201
00010
CMP(020)
T0010
#2000
00011
AND
A50007
00012
OUT
000202
00013
LD
T0010
00014
OUT
000203
0000
00
(020)
CMP
T0010
#4000
A500
07(<)
TIM
0010
#5000
0002
00
0002
01
(020)
CMP
T0010
#3000
0002
02
(020)
CMP
T0010
#2000
0002
03
0002
00
0002
01
T0010
A500
07(<)
A500
07(<)
Output at
100 s.
Output at
200 s.
Output at
300 s.
Output at
500 s.
Address Instruction
Operands
5-16-2 DOUBLE COMPARE: CMPL(021)
Cp2: 2
nd
compare word CIO, G, A, T, C, #, DM
Cp1: 1
st
compare word CIO, G, A, T, C, #, DM
Operand Data Areas
Ladder Symbol
(021)
CMPL Cp1
Cp2
When the execution condition is OFF, CMPL(021) is not executed. When the ex-
ecution condition is ON, CMPL(021) compares the eight-digit content of Cp1+1
and Cp1 to the eight-digit content of Cp2+1 and Cp2 and outputs the result to the
GR, EQ, and LE Flags in the Auxiliary Area.
CMPL(021) is an intermediate instruction, like CMP(020). Intermediate instruc-
tions are entered between conditions or between a condition and a right-hand
instruction. Intermediate instructions cannot be placed at the end of an instruc-
tion line.
CVM1D CPUs are equipped with a similar non-intermediate instruction:
CMPL(029).
Constants are expressed in eight digits.
When comparing a value to the PVs of timers or counters, the value must be in
BCD.
Placing other instructions between CMPL(021) and the operation which ac-
cesses the EQ, LE, and GR Flags may change the status of these flags. Be sure
to access them before the desired status is changed.
Note Refer to page 101 for general precautions on operand data areas.
Description
Precautions
Comparison Instructions
Section 5-16
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...