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