Maximum Value Search For 16-Bit Data; Dmax, Dmaxp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

7.5.10
MAX, MAXP

Maximum value search for 16-bit data

7.5.10

DMAX, DMAXP

Maximum value search for 32-bit data
MAX, MAXP, DMAX, DMAXP
MAX, DMAX
MAXP ,DMAXP
: Head number of the devices where a maximum value is searched (BIN 16/32 bits)
S
: Head number of the devices where the maximum 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
MAX
(1) Searches in the n points of 16-bit BIN data, from the device designated by
searched maximum value at the device designated by
the location, specified in the number of points counted from
+1 and stores the number of the found minimum values at
D
S
S
+1
S
+2
S
+(n-2)
S
+(n-1)
DMAX
(1) Searches in the n points of 32-bit BIN data, from the device designated by
searched maximum value at the device designated by
Starts the search from the device designated by
from
, of the device where the maximum value is found first at
S
values at
+3.
D
S
+1,
S
S
S
+3,
S
S
+5,
S
S
+7,
+9,
S
S
Command
Command
R, ZR
Word
Bit
1234 (BIN)
5678 (BIN)
5678 (BIN)
n
-5214 (BIN)
5555 (BIN)
and stores the location, specified in the number of points counted
S
54321000 (BIN)
4321000 (BIN)
+2
n
+4
3254000 (BIN)
+6
54321000 (BIN)
+8
12345678 (BIN)
MAX, MAXP, DMAX, DMAXP
High
Basic
performance
indicates an instruction symbol of MAX/DMAX.
P
J
\
U
\G
Word
––
––
, for the maximum value and stores the
S
. Starts the search from the device designated by
D
, of the device where the maximum value is found first at
S
+2.
D
D
5678 (BIN)
D
+1
2
+2
D
2
, for the maximum value and stores the
S
and
+1.
D
D
+2 and stores the number of the found minimum
D
+1,
D
D
54321000 (BIN)
+2
D
1
D
+3
2
Process
Redundant Universal
LCPU
n
S
D
n
S
D
Constants
Zn
Other
K, H
and stores
S
Maximum value
Location
Quantity
Maximum value
Location
Quantity
1
2
3
4
––
4
––
––
6
7
8
371

Advertisement

Table of Contents
loading

Table of Contents