3. Instructions
502
CS/CJ/NSJ Series Instructions Reference Manual (W474)
=F, <>F, <F, <=F, >F, >=F
Applicable Program Areas
Operands
z 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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK 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/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S1
OK OK OK OK OK OK OK OK OK OK OK --- OK OK --- --- --- ---
S2
Name
Label
Operation
Error Flag
P_ER
OFF
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
Mnemonic
S1
S2
S2: Comparison data 2
LD connection AND connection OR connection
Mnemonic
S1
S2
Mnemonic
S1
S2
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1