Floating-point Math Instructions
Flags
Precautions
Example
Code Mnemonic
333
LD>F
LOAD FLOATING GREATER THAN
AND>F
AND FLOATING GREATER THAN
OR>F
OR FLOATING GREATER THAN
334
LD>=F
LOAD FLOATING GREATER THAN OR EQUAL
AND>=F
AND FLOATING GREATER THAN OR EQUAL
OR>=F
OR FLOATING GREATER THAN OR EQUAL
Name
Label
Error Flag
ER
Greater Than
>
Flag
Greater Than or
> =
Equal Flag
Equal Flag
=
Not Equal Flag
=
Less Than Flag
<
Less Than or
< =
Equal Flag
Negative Flag
N
Input comparison instructions cannot be used as right-hand instructions, i.e.,
another instruction must be used between them and the right bus bar.
AND FLOATING LESS THAN: AND<F(331)
When CIO 0.00 is ON in the following example, the floating point data in
D100, D101 is compared to the floating point data in D200, D201. If the con-
tent of D100, D101 is less than that of D200, D201, execution proceeds to the
next line and CIO 100.00 is turned ON. If the content of D100, D101 is not
less than that of D200, D201, execution does not proceed to the next instruc-
tion line.
0.00
<F
D100
D200
Name
Operation
ON if S
+1, S
or S
+1, S
1
1
2
2
number (NaN).
ON if S
+1, S
or S
+1, S
1
1
2
2
ON if S
+1, S
or S
+1, S
1
1
2
2
OFF in all other cases.
ON if S
+1, S
> S
+1, S
.
1
1
2
2
OFF in all other cases.
ON if (S
+1, S
)
(S
+1, S
1
1
2
OFF in all other cases.
ON if (S
+1, S
) = (S
+1, S
1
1
2
OFF in all other cases.
ON if (S
+1, S
)
(S
+1, S
1
1
2
OFF in all other cases.
ON if (S
+1, S
) < (S
+1, S
1
1
2
OFF in all other cases.
ON if (S
+1, S
)
(S
+1, S
1
1
2
OFF in all other cases.
Unchanged
100.00
Section 3-14
Function
True if
C1 > C2
True if
C1
C2
is not a valid floating-point
is + .
–
is
.
).
2
).
2
).
2
).
2
).
2
515
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers