442
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
Minimum value search for 16-bit data, minimum value search for
32-bit data
MIN(P), DMIN(P)
■MIN
• Searches in the n points of 16-bit BIN data, from the device designated by (S), for the minimum value and stores searched
minimum value at the device designated by (D).
• Starts the search from the device designated by (S) and stores the location, specified in the number of points counted from
(S), of the device where the minimum value is found first at (D)+1 and stores the number of the found minimum values at
(D)+2.
■DMIN
• Searches in the n points of 32-bit BIN data, from the device designated by (S), for the minimum value and stores searched
minimum value at the devices designated by (D) and (D)+1.
• Starts the search from the device designated by (S) and stores the location, specified in the number of points counted from
(S), of the device where the minimum value is found first at (D)+2 and stores the number of the found minimum values at
(D)+3.
(S): Start device where the data to be searched is stored (BIN 16/32 bits)
(D): Start device 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 device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S)
(D)
n
Basic
Process
High
performance
Redundant
Universal
LCPU
n
Command
Command
P
S D
S D
MIN, DMIN
MINP, DMINP
n
indicates an instruction symbol of MIN/DMIN.
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)
1
2
22342001 (BIN)
37282010 (BIN)
22342001 (BIN)
59872019 (BIN)
22342001 (BIN)
Minimum value
Location
Quantity
D
D
S
S
S
S
DD
+2
+4
+6
+1,
+2
+3