Minimum Value Search For 16-Bit Data; Minimum Value Search For 32-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

7.5.11
MIN, MINP

Minimum value search for 16-bit data

7.5.11
DMIN, DMINP

Minimum value search for 32-bit data

MIN, MINP, DMIN, DMINP
MIN, DMIN
MINP, DMINP
: Head number of the devices where a minimum value is searched (BIN 16/32 bits)
S
: Head number of the devices where the minimum value search result will be stored (BIN 16/32 bits)
D
n
: Number of data blocks to be searched (BIN 16 bits)
Internal Devices
Setting
Data
Bit
––
S
––
D
n
Function
MIN
(1) Searches in the n points of 16-bit BIN data, from the device designated by
searched minimum value at the device designated by
Starts the search from the device designated by
from
, of the device where the minimum value is found first at
S
values at
+2.
D
S
S
+1
S
+2
S
+(n-2)
S
+(n-1)
DMIN
(1) Searches in the n points of 32-bit BIN data, from the device designated by
searched minimum value at the devices designated by
Starts the search from the device designated by
from
, of the device where the minimum value is found first at
S
values at
+3.
D
S
S
+2
S
+4
S
+6
Command
Command
R, ZR
Word
Bit
and stores the location, specified in the number of points counted
S
5015 (BIN)
6192 (BIN)
5571 (BIN)
n
5015 (BIN)
5571 (BIN)
and stores the location, specified in the number of points counted
S
22342001 (BIN)
37282010 (BIN)
22342001 (BIN)
59872019 (BIN)
MIN, MINP, DMIN, DMINP
High
Basic
performance
indicates an instruction symbol of MIN/DMIN.
P
J
\
U
\G
Word
––
––
, for the minimum value and stores
S
.
D
+1 and stores the number of the found minimum
D
D
5015 (BIN)
D
+1
1
D
+2
2
, for the minimum value and stores
S
and
+1.
D
D
+2 and stores the number of the found minimum
D
+1,
22342001 (BIN)
D
D
1
D
+2
2
D
+3
Process
LCPU
Redundant Universal
n
S
D
n
S
D
Constants
Zn
Other
K, H
Minimum value
Location
Quantity
Minimum value
Location
Quantity
1
2
3
4
––
4
––
––
6
7
8
373

Advertisement

Table of Contents
loading

Table of Contents