Outputting A Comparison Result Of 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

Outputting a comparison result of single-precision real numbers

ECMP(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 single-precision real number data specified by (s1) with the single-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
ECMP
ECMPP
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:=ECMP(EN,s1,s2,d);
ENO:=ECMPP(EN,s1,s2,d);
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
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANYREAL_32
ANYREAL_32
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.9 Real Number Instructions
7
709

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents