Outputting A Comparison Result Of Double-Precision Real Numbers - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Outputting a comparison result of double-precision real numbers

EDCMP(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• The RnCPU and RnENCPU with firmware version "17" or later support these instructions. (Use an engineering tool with version "1.020W" or later.)
These instructions compare the double-precision real number data specified by (s1) with the double-precision real number
data specified by (s2), and according to the result (small, equal, or large), (d), (d)+1, or (d)+2 is turned on.
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
■Execution condition
Instruction
EDCMP
EDCMPP
Setting data
■Description, range, data type
Operand
Description
(s1)
Comparison data or the start device for storing the
comparison data
(s2)
Comparison data or the start device for storing the
comparison data
(d)
The start device where the comparison result is stored
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
*1 T, ST, and C cannot be used.
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=EDCMP(EN,s1,s2,d);
ENO:=EDCMPP(EN,s1,s2,d);
Range
Data type
-1022
1024
|(s1)|<2
0, 2
Double-precision real
number
-1022
1024
|(s2)|<2
0, 2
Double-precision real
number
Bit
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANYREAL_64
ANYREAL_64
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.9 Real Number Instructions
7
711

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents