Input Comparison Instructions (300 To 328) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Comparison Instructions
Example
0000
00
(025)
EQU

5-16-7 Input Comparison Instructions (300 to 328)

Ladder Symbol
(
)
***
Mnemonic S
Description
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.
(030)
0010 D05000
MOV
(090)
INC
Operand Data Areas
S
: Comparison data 1
1
S
1
2
S
: Comparison data 2
2
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
=
(Equal)
< >
(Not equal)
<
(Less than)
<=
(Less than or equal)
>
(Greater than)
>=
(Greater than or equal)
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.
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
300
=
301
=L
302
=S
303
=SL
0101 D05001
0100
Option (data format)
S (signed data)
Name
EQUAL
DOUBLE EQUAL
SIGNED EQUAL
DOUBLE SIGNED EQUAL
Section 5-16
Address Instruction
00000
LD
00001
EQU(025)
00002
MOV(030)
00003
INC(090)
(CVM1 V2)
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
Option (data length)
L (double length)
Function
TRUE WHEN S
1
1
Operands
000000
0010
D05000
0101
D05001
0100
= S
2
2
213

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents