EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - BIN 32-Bit Data Comparisons (Small, Match, Large)

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...
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
207
6
BIN 32-bit data comparisons (small, match, large)
DCMP(P)
Processing details
One of (D), (D)+1, and (D)+2 turns on depending on the results (small, match, large) after comparison data (S1), (S1)+1
and comparison data (S2), (S2)+1 are compared.
When the contact turns off, (D) to (D)+2 hold the conditions immediately before the contact turns on and off.
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.
Program example
Program that compares the values of D0 and D1 with the constant value K100
LCPU: The serial number (first five digits) is "16042" or later.
QnUDVCPU: The serial number (first five digits) is "16043" or later.
(S1): Comparison data or start number of the devices where the comparison data is stored (BIN 32 bits)
(S2): Comparison data or start number of the devices where the comparison data is stored (BIN 32 bits)
(D): Head number of the devices where the comparison result will be stored (bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1) 
(S2) 
(D) 
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The range of 3 points from the device specified in (D) exceeds the range of
the corresponding device.

Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
DS2S1
DCMPP
DCMP
DCMPP
DCMP
DS2S1
Command
Command
DCMP
Contact
S1 S2 D
S1 S2
S1 S2
>
=
<
+1
+1
+1
[
[
[
[
[
[
]
]
]
+1
+1
+1
]
]
]
,
,
,
,
,
,S2S1
Turns on when
Turns on when
Turns on when
S2
S2
S2
S1
S1
S1
D
D
D+2
+1
Compare K100 with D0 and D1.
M0 turns on when K100 > D0 and D1.
M1 turns on when K100 = D0 and D1.
M2 turns on when K100 < D0 and D1.

Table of Contents

Related product manuals