Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 334

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
294
comparison will be for one-word unsigned data. With the three input types and
two options, there are 72 different input comparison instructions.
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 instruc-
tions (i.e., instructions with the S option) handle signed binary data.
Summary of Input Comparison Instructions
The following table shows the function codes, mnemonics, names, and func-
tions of the 72 input comparison instructions. (For one-word comparisons
C1=S
and C2=S
; for double comparisons C1=S
1
2
Code Mnemonic
300
LD=
LOAD EQUAL
AND=
AND EQUAL
OR=
OR EQUAL
301
LD=L
LOAD DOUBLE EQUAL
AND=L
AND DOUBLE EQUAL
OR=L
OR DOUBLE EQUAL
302
LD=S
LOAD SIGNED EQUAL
AND=S
AND SIGNED EQUAL
OR=S
OR SIGNED EQUAL
303
LD=SL
LOAD DOUBLE SIGNED EQUAL
AND=SL
AND DOUBLE SIGNED EQUAL
OR=SL
OR DOUBLE SIGNED EQUAL
305
LD<>
LOAD NOT EQUAL
AND<>
AND NOT EQUAL
OR<>
OR NOT EQUAL
306
LD<>L
LOAD DOUBLE NOT EQUAL
AND<>L
AND DOUBLE NOT EQUAL
OR<>L
OR DOUBLE NOT EQUAL
307
LD<>S
LOAD SIGNED NOT EQUAL
AND<>S
AND SIGNED NOT EQUAL
OR<>S
OR SIGNED NOT EQUAL
308
LD<>SL
LOAD DOUBLE SIGNED NOT EQUAL
AND<>SL
AND DOUBLE SIGNED NOT EQUAL
OR<>SL
OR DOUBLE SIGNED NOT EQUAL
Option (data format)
Option (data length)
None: Unsigned data
None: One-word data
S: Signed data
L: Double-length data
+1, S
1
1
Name
Section 3-7
and C2=S
+1, S
.)
2
2
Function
True if
C1 = C2
True if
C1
C2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents