EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 599

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
566
Double-precision Floating-point Instructions Section 3-15
Flags In this table, C1 = content of S1 to S1+3 and C2 = content of S2 to S2+3.
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 AND DOUBLE FLOATING LESS THAN: AND<D(331)
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, execu-
tion proceeds to the next line and CIO 100.00 is turned ON. If the content of
D100 to D103 is not less than that of D200 to D203, execution does not pro-
ceed to the next instruction line.
339 LD>D LOAD DOUBLE FLOATING GREATER THAN True if
C1 > C2
AND>D AND DOUBLE FLOATING GREATER THAN
OR>D OR DOUBLE FLOATING GREATER THAN
340 LD>=D LOAD DOUBLE FLOATING GREATER THAN OR
EQUAL
Tr ue i f
C1 C2
AND>=D AND DOUBLE FLOATING GREATER THAN OR
EQUAL
OR>=D OR DOUBLE FLOATING GREATER THAN OR
EQUAL
Code Mnemonic Name Function
Name Label Operation
Error Flag ER ON if C1 or C2 is not a valid floating-point number (NaN).
ON if C1 or C2 is +
.
ON if C1 or C2 is .
OFF in all other cases.
Greater Than
Flag
> ON if C1 > C2.
OFF in all other cases.
Greater Than or
Equal Flag
>= ON if C1 C2.
OFF in all other cases.
Equal Flag = ON if C1 = C2.
OFF in all other cases.
Not Equal Flag = ON if C1 C2.
OFF in all other cases.
Less Than Flag < ON if C1 < C2.
OFF in all other cases.
Less Than or
Equal Flag
<= ON if C1 C2.
OFF in all other cases.
Negative Flag N Unchanged
<D
D100
D200
0.00
100.00

Table of Contents

Related product manuals