Omron CS1G/H-CPUxxH Instructions Manual page 581

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Floating-point Math Instructions
Flags
Precautions
Example
560
Code Mnemonic
330
LD<>F
LOAD FLOATING NOT EQUAL
AND<>F
AND FLOATING NOT EQUAL
OR<>F
OR FLOATING NOT EQUAL
331
LD<F
LOAD FLOATING LESS THAN
AND<F
AND FLOATING LESS THAN
OR<F
OR FLOATING LESS THAN
332
LD<=F
LOAD FLOATING LESS THAN OR EQUAL
AND<=F
AND FLOATING LESS THAN OR EQUAL
OR<=F
OR FLOATING LESS THAN OR EQUAL
333
LD>F
LOAD FLOATING GREATER THAN
AND>F
AND FLOATING GREATER THAN
OR>F
OR FLOATING GREATER THAN
325
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 000000 is ON in the following example, the floating point data in
D00101, D00100 is compared to the floating point data in D00201, D00200. If
the content of D00101, D00100 is less than that of D00201, D00200, execu-
tion proceeds to the next line and CIO 005000 is turned ON. If the content of
D00101, D00100 is not less than that of D00201, D00200, execution does not
proceed to the next instruction line.
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.
≥ S
ON if S
+1, 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.
≠ S
ON if S
+1, 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.
≤ S
ON if S
+1, S
+1, S
.
1
1
2
2
OFF in all other cases.
Unchanged
Section 3-15
Function
True if
C1 ≠ C2
True if
C1 < C2
True if
C1 ≤ C2
True if
C1 > C2
True if
C1 ≥ C2
is not a valid floating-point
is +
.
– ∞
is
.

Advertisement

Table of Contents
loading

Table of Contents