![Omron CVM1D Operation Manual Download Page 206](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532206.webp)
201
Example
When CIO 000000 is ON in the following example, the content of CIO 0010 is
compared to the content of D05000 and MOV(030) and INC(090) are executed
only if the contents are the same.
Address
Instruction
Operands
00000
LD
000000
00001
EQU(025)
0010
D05000
00002
MOV(030)
0101
D05001
00003
INC(090)
0100
5-16-7 Input Comparison Instructions (300 to 328)
(
***
)
Mnemonic S
1
S
2
Ladder Symbol
Operand Data Areas
S
1
: Comparison data 1
CIO, G, A, T, C, #, DM, DR, IR
S
2
: Comparison data 2
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, input comparison instructions are not
executed and execution continues to the remainder of the instruction line. When
the execution is ON, input comparison instructions compare constants and/or
the contents of specified words for either signed or unsigned data and will create
an ON execution condition when the comparison condition is met. If the compar-
ison condition is not met, the remainder of the instruction line will be skipped and
execution will move to the next instruction line.
A total of 24 input comparison instructions are available. These can be input us-
ing various combinations of symbols and options. If no options are specified, the
comparison will be for one-word unsigned data.
Symbol
Option (data format)
Option (data length)
=
(Equal)
< >
(Not equal)
<
(Less than)
<=
(Less than or equal)
>
(Greater than)
>=
(Greater than or equal)
S (signed data)
L (double length)
Unsigned input comparison instructions (i.e., instructions without the S option)
can handle unsigned binary or BCD data. Signed input comparison instructions
(i.e., instructions with the S option) handle signed binary data. For information
concerning signed binary data, refer to 4-12 Data Formats.
When using input comparison instructions, follow each input comparison
instruction in the program with another instruction on the same instruction line.
The following table shows the function codes, mnemonics, names, and func-
tions of the input comparison instructions.
Code
Mnemonic
Name
Function
300
=
EQUAL
TRUE WHEN S
1
= S
2
301
=L
DOUBLE EQUAL
1
2
302
=S
SIGNED EQUAL
303
=SL
DOUBLE SIGNED EQUAL
Description
Comparison Instructions
Section 5-16
0000
00
(030)
MOV
0101 D05001
(025)
EQU
0010 D05000
(090)
INC
0100
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...