704
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
7.9 Real Number Instructions
Comparing single-precision real numbers
LDE, ANDE, ORE
These instructions perform a comparison operation of a single-precision real number. (Devices are used as a normally open
contact.)
*1 The engineering tool with version "1.035M" or later supports the ST.
*2 EQ indicates =, NE indicates <>, GT indicates >, LE indicates <=, LT indicates <, and GE indicates >=.
■Execution condition
■Description, range, data type
Ladder ST
*1
( is replaced by E=, E<>, E>, E<=, E<, E>=.)
ENO:=LDE_(EN,s1,s2);
ENO:=ANDE_(EN,s1,s2);
ENO:=ORE_(EN,s1,s2);
( is replaced by any of the following: EQ, NE, GT, LE, LT, GE.)
*2
FBD/LD
( is replaced by a combination of LDE_, ANDE_, or ORE_ and EQ, NE, GT, LE, LT, or GE.)
*2
Instruction Execution condition
LDE, ANDE, ORE Every scan
Operand Description Range Data type Data type (label)
(s1) Comparison data or the start device where the comparison
data is stored
0, 2
-126
|(s1)|<2
128
Single-precision real
number
ANYREAL_32
(s2) Comparison data or the start device where the comparison
data is stored
0, 2
-126
|(s2)|<2
128
Single-precision real
number
ANYREAL_32
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
LD
AND
OR
(s1) (s2)
(s1) (s2)
(s1) (s2)