Real Number Instructions; Comparing Single-Precision Real Numbers - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

7.9

Real Number Instructions

Comparing single-precision real numbers

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents