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

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Minimum value search for 16-bit data, minimum value search for
32-bit data
MIN(P), DMIN(P)
High
Basic
Process
performance
MIN, DMIN
MINP, DMINP
(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
Internal device
data
Bit
(S)
(D)
n
Processing details
■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.
S
5015 (BIN)
S
+1
6192 (BIN)
5571 (BIN)
S
+2
5015 (BIN)
+(n-2)
S
5571 (BIN)
S
+(n-1)
■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
22342001 (BIN)
S
+2
37282010 (BIN)
S
+4
22342001 (BIN)
S
+6
59872019 (BIN)
7 APPLICATION INSTRUCTIONS
442
7.5 Data Processing Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
D
n
D
D
D
+1,
D
D
+2
+3
D
J\
Bit
Word
5015 (BIN)
Minimum value
+1
Location
1
+2
Quantity
2
22342001 (BIN)
Minimum value
1
Location
2
Quantity
indicates an instruction symbol of MIN/DMIN.
S
D
P
S
D
U\G
Zn
Constant
K, H
n
n
Others

Advertisement

Table of Contents
loading

Table of Contents