![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532198.webp)
193
Bank 1
Bank 5
5-16 Comparison Instructions
Comparison Instructions are used for comparing data. All comparison instruc-
tions affect only the comparison flags and/or results output words. They do not
affect the content of the data being compared.
5-16-1 COMPARE: CMP(020)
Cp
2
: 2
nd
compare word CIO, G, A, T, C, #, DM, DR, IR
Cp
1
: 1
st
compare word CIO, G, A, T, C, #, DM, DR, IR
Operand Data Areas
Ladder Symbol
Variations
! CMP(020)
(020)
CMP Cp
1
Cp
2
When the execution condition is OFF, CMP(020) is not executed. When the ex-
ecution condition is ON, CMP(020) compares Cp
1
and Cp
2
and outputs the re-
sult to the GR, EQ, and LE Flags in the Auxiliary Area.
If !CMP(020) is used, any input bits used for Cp
1
and Cp
2
are refreshed just be-
fore execution. (The immediate-refresh variations of CMP(020) can be used in
simplex mode only; it cannot be used in duplex mode.)
CMP(020) is an intermediate instruction, like NOT(010), CMPL(021), and
EQU(025). Intermediate instructions are entered between conditions or be-
tween a condition and a right-hand instruction. Intermediate instructions cannot
be placed at the end of an instruction.
CVM1D CPUs are equipped with a similar non-intermediate instruction:
CMP(028).
When comparing a value to the PV of a timer or counter, the value must be in
BCD.
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...