Omron SYSMAC CS Series Instruction & Reference Manual page 454

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Code
Mnemonic
325
LD>=F
AND>=F
OR>=F
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 D101, D100 is compared to
the floating point data in D201, D200. If the content of D101, D100 is less than that of D201, D200,
execution proceeds to the next line and CIO 50.00 is turned ON. If the content of D101, D100 is not less
than that of D201, D200, execution does not proceed to the next instruction line.
0.00
SINGLE FLOATING LESS THAN Comparison (<F)
15
S1:
D100
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
S1+1: D101
0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1
Decimal value: 2.3
15
S1:
D100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
S1+1: D101
0 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0
Decimal value: 4,294,967,296
420
LOAD FLOATING GREATER THAN OR EQUAL
AND FLOATING GREATER THAN OR EQUAL
OR FLOATING GREATER THAN OR EQUAL
50.00
<F
D100
D200
0
15
S2:
D200
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
S2+1: D201
1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0
2.3>−3.5
Does not yield an ON condition.
0
15
S2:
D200
1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1
S2+1: D201
0 1 0 0 1 1 1 1 1 0 1 0 0 1 0 1
Decimal value: 5,566,555,656
4294967296<5566555656
Yields an ON condition.
Name
0
Decimal value: -3.5
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
True if
C1 ≥ C2

Advertisement

Table of Contents
loading

Table of Contents