2-243
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Floating-point Math
Instructions
2
=F, <>F, <F, <=F, >F, >=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.
Sample program
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, execu-
tion 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.
SINGLE FLOATING LESS THAN Comparison (<F)
334 LD>=F LOAD FLOATING GREATER THAN OR EQUAL True if
S
1
+1, S
1
≥
S
2
+1, S
2
AND>=F AND FLOATING GREATER THAN OR EQUAL
OR>=F OR FLOATING GREATER THAN OR EQUAL
Code Mnemonic Name Function
<F
D100
D200
0.00
50.00
2.3>−3.5
0000000000000000
1100000001100000
15 0
0011001100110011
0100000000010011
15 0
S1: D100
S1+1:D101
S2: D200
S2+1:D201
4294967296<5566555656
1110010101110011
0100111110100101
15
0000000000000000
0100111110000000
15 0
S1: D100
S1+1:D101
S2: D200
S2+1:D201
Does not yield an ON condition.
Decimal value: 2.3 Decimal value: −3.5
Decimal value: 5,566,555,656Decimal value: 4,294,967,296
Yields an ON condition.