Mitsubishi MELSEC Q Series Programming Manual page 467

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DMIN
(1) Searches in the n points of 32-bit BIN data, from the device designated by
minimum value and stores searched minimum value at the devices designated by
+1.
D
Starts the search from the device designated by
number of points counted from
+2 and stores the number of the found minimum values at
D
S
S
S
S
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The n-bit range from the device specified by
device.
• The device specified by
(For the Universal model QCPU, LCPU.)
Program Example
(1) The following program adds, when X1C is turned ON, the data stored at D100 to D103 and
the data stored at R0 to R3, and searches in the results of addition for the minimum value,
then, stores it at D200 to D202.
[Ladder Mode]
[Operation]
b15
5542 (BIN)
D100
5857 (BIN)
D101
4590 (BIN)
D102
4450 (BIN)
D103
, of the device where the minimum value is found first at
S
22342001 (BIN)
+2
37282010 (BIN)
22342001 (BIN)
+4
59872019 (BIN)
+6
exceeds the range of the corresponding device.
D
b0
b15
5500 (BIN)
R0
4000 (BIN)
R1
+
4500 (BIN)
R2
6000 (BIN)
R3
D0
4
and stores the location, specified in the
S
+3.
D
22342001 (BIN)
D
+1,
D
1
D
+2
2
+3
D
exceeds the range of the corresponding
S
[List Mode]
Step
Instruction
b0
b15
b0
11042 (BIN)
D150
9857 (BIN)
D151
9090 (BIN)
D152
10450 (BIN)
D153
MIN(P),DMIN(P)
, for the
S
and
D
Minimum value
Location
Quantity
(Error code: 4101)
(Error code: 4101)
Device
D200
9090
Minimum value
D201
3
Location
D202
1
Quantity
7-93
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents