EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Floating Point Comparisons (Double Precision)

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
214
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Floating point comparisons (double precision)
EDCMP(P)
Processing details
One of (D), (D)+1, and (D)+2 turns on depending on the results (small, match, large) after comparison data "(S1) to (S1)+3"
and comparison data "(S2) to (S2)+3" are compared.
When the contact turns off, "(D) to (D)+2" hold the conditions immediately before the contact turns on and off.
Precautions
The three points starting from the device specified by (D) are used. Therefore, do not overlap any device used by others.
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S1): Comparison data or start number of the devices where the comparison data is stored (real number)
(S2): Comparison data or start number of the devices where the comparison data is stored (real number)
(D): Start bit device number to which the comparison result is output (Bit)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)  
(S2)  
(D)  
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The range of three points from the device specified by (D) exceeds the range
of the corresponding device.

4140 The specified device value is -0, a subnormal number, NaN (not a number),
or .

Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
S2S1
EDCMPP
EDCMP
EDCMPP
EDCMP
S2S1
D
D
Command
Command
Contact
EDCMP S1 S2 D
D
D
D+2
+1
S1 S2
S1
[
[
[
[
]
]S2
S1
S1
+3
+3
]
]
+3
+3
>
=
to
to
to
to
Turns on when
Turns on when
S2
S1 S2[[]S1 +3 ]+3<to toTurns on when S2
S2

Table of Contents

Related product manuals