Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-241
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Floating-point Math
Instructions
2
=F, <>F, <F, <=F, >F, >=F
=F, <>F, <F, <=F, >F, >=F
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
Single-precision Floating-point
Comparison
=F
<>F
<F
<=F
>F
>=F
---
329
330
331
332
333
334
These input comparison instructions compare two
single-precision floating point values (32-bit
IEEE754 constants and/or the contents of speci-
fied words) and create an ON execution condition
when the comparison condition is true.
Symbol
Single-precision Floating-point Comparison
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S1 Comparison data 1 REAL 2
S2 Comparison data 2 REAL 2
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
S1, S2 OK OK OK OK OK OK OK OK OK OK --- --- ---
Name Label Operation
Error Flag P_ER ON if S1+1, S1 or S2+1, S2 is not a number (NaN).
ON if S1+1, S1 or S2+1, S2 is +∞.
ON if S1+1, S1 or S2+1, S2 is –∞.
OFF in all other cases.
Greater Than Flag P_GT
ON if S1+1, S1
> S2+1, S2.
OFF in all other cases.
Greater Than or Equal Flag P_GE
ON if S1+1, S1
S2+1, S2.
OFF in all other cases.
Equal Flag P_EQ ON if S1+1, S1 = S2+1, S2.
OFF in all other cases.
Not Equal Flag P_NE
ON if S1+1, S1
S2+1, S2.
OFF in all other cases.
Less Than Flag P_LT
ON if S1+1, S1
< S2+1, S2.
OFF in all other cases.
Less Than or Equal Flag P_LE
ON if S1+1, S1
S2+1, S2.
OFF in all other cases.
Negative Flag P_N Unchanged
S2: Comparison data 2
LD connection AND connection OR connection
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1
Mnemonic
S1
S2
Mnemonic
S1
S2
Mnemonic
S1
S2