Omron CJ - INSTRUCTIONS Reference Manual page 586

Table of Contents

Advertisement

3. Instructions
Code
Mnemonic
340
LD>=D
AND>=D
OR>=D
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.
Example Programming
When CIO 0.00 is ON in the following example, the floating point data in words D100 to D103 is
compared to the floating point data in words D200 to D203. If the content of D100 to D103 is less than
that of D200 to D203, execution proceeds to the next line and CIO 50.00 is turned ON. If the content of
D100 to D103 is not less than that of D200 to D203, execution does not proceed to the next instruction
line.
0.00
DOUBLE FLOATING LESS THAN Comparison (<D)
15
S1:
D100
1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 0
S1+1: D101
1 1 1 0 0 1 1 1 0 1 1 0 1 1 0 0
S1+2: D102
1 0 1 0 1 0 0 1 1 1 1 1 1 0 1 1
S1+3: D103
0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Decimal value: 3.4580
15
S1:
D100
1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1
S1+1: D101
1 0 1 0 1 0 0 1 1 0 1 1 0 1 1 0
S1+2: D102
1 1 1 0 1 1 0 1 1 0 1 1 0 0 0 0
S1+3: D103
1 1 0 0 1 0 1 0 0 0 0 0 0 0 1 0
Decimal value: -3.4580E+48
548
LOAD DOUBLE FLOATING GREATER THAN OR EQUAL
AND DOUBLE FLOATING GREATER THAN OR EQUAL
OR DOUBLE FLOATING GREATER THAN OR EQUAL
50.00
<D
D100
D200
0
S1:
D100
S2+1: D101
S2+2: D102
S2+3: D103
34580>14876
Does not yield an ON condition.
0
S1:
D100
S2+1: D101
S2+2: D102
S2+3: D103
3.4580E+48<1.4876E+48
Yields an ON condition.
Name
15
0
0 1 1 1 1 0 0 1 0 0 1 1 1 1 1 0
1 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0
1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 1
0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1
Decimal value: -1.4876
15
0
0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 1
1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1
0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 1 1 1 1 1 0 0 0 0
Decimal value: 1.4876E+48
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
True if
C1
C2

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF