Precautions, Sample program, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 279
![background image](/manuals/204951/279/background.png)
2-243
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
F
loat
ing
-p
o
int
Math
In
stru
ctio
ns
2
=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 that of D201, D200, execution does not proceed to the next instruction line. SINGLE FLOATING LESS THAN Comparison ( 334 LD>=F LOAD FLOATING GREATER THAN OR EQUAL True if 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 D100 D200 0.00 50.00 2.3> −3.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 15 0 S1: D100 S2: D200 4294967296<5566555656 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 0 S1: D100 S2: D200 Does not yield an ON condition. Decimal value: 2.3 Decimal value: −3.5 Decimal value: 5,566,555,656 Decimal value: 4,294,967,296 Yields an ON condition.
, >=F
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
S
1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1
S1+1:D101
S2+1:D201
0 1 0 0 1 1 1 1 1 0 1 0 0 1 0 1
0 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0
S1+1:D101
S2+1:D201