Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 289

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
Code
Mnemonic
325
LD>=
AND>=
OR>=
326
LD>=L
AND>=L
OR>=L
327
LD>=S
AND>=S
OR>=S
328
LD>=SL
AND>=SL
OR>=SL
Hint
• Unlike instructions such as CMP(020) and CMPL(060), the result of an input comparison instruction
is reflected directly as an execution condition, so it is not necessary to access the result of the
comparison through an Arithmetic Flag and the program is simpler and faster.
Precautions
• Input comparison instructions cannot be used as right-hand instructions, i.e., another instruction
must be used between them and the right bus bar.
Sample program
AND LESS THAN: AND<(310)
When CIO 0.00 is ON in the following example, the contents of D100 and D200 are compared in as
unsigned binary data. If the content of D100 is less than that of D200, CIO 50.00 is turned ON and
execution proceeds to the next line. If the content of D100 is not less than that of D200, the remainder
of the instruction line is skipped and execution moves to the next instruction line.
0.00
0.01
AND SIGNED LESS THAN: AND<S(312)
When CIO 0.01 is ON in the following example, the contents of D110 and D210 are compared as
signed binary data. If the content of D110 is less than that of D210, CIO 50.01 is turned ON and
execution proceeds to the next line. If the content of D110 is not less than that of D210, the remainder
of the instruction line is skipped and execution moves to the next instruction line.
0.00
0.01
252
Name
LOAD GREATER THAN OR EQUAL
AND GREATER THAN OR EQUAL
OR GREATER THAN OR EQUAL
LOAD DOUBLE GREATER THAN OR EQUAL
AND DOUBLE GREATER THAN OR EQUAL
OR DOUBLE GREATER THAN OR EQUAL
LOAD SIGNED GREATER THAN OR EQUAL
AND SIGNED GREATER THAN OR EQUAL
OR SIGNED GREATER THAN OR EQUAL
LOAD DBL SIGNED GREATER THAN OR EQUAL
AND DBL SIGNED GREATER THAN OR EQUAL
OR DBL SIGNED GREATER THAN OR EQUAL
50.00
<
D100
D200
50.01
<S
D110
D210
50.00
D100
D200
50.01
D110
D210
Function
True if
C1
C2
i
S
: D100
Unsigned
1
LESS THAN
8714
Comparison
Decimal: 34,580
S
: D110
Signed
1
LESS THAN
8714
Comparison
Decimal:
CS/CJ/NSJ Series Instructions Reference Manual (W474)
S
: D200
2
3A1C
Decimal: 14,876
34,580 > 14,876
(Will not proceed to next line.)
S
: D210
2
3A1C
30,956
Decimal:
14,876
−30,956 < 14,876
(Will proceed to next line.)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents