EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #558 background imageLoading...
Page #558 background image
556
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
Searching the maximum value of 32-bit data
DMAX(P)(_U)
These instructions search the maximum value from the (n) point(s) of 32-bit binary data in the device starting from the one
specified by (s), and store the maximum value in the device specified by (d).
*1 The DMAX(_U) instructions are not supported by the ST language. Use MAX of the standard function.
Page 804 MAX(_E), MIN(_E)
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions search the maximum value from the (n) point(s) of 32-bit binary data in the device starting from the one
specified by (s), and store the maximum value in the device specified by (d) and (d)+1. These instructions start searching
from the device specified by (s), and store the location from (s) of the first minimum value in (d)+2 and the number of
maximum values in (d)+3.
Operation error
Ladder diagram Structured text
*1
ENO:=DMAXP(EN,s,n,d); ENO:=DMAXP_U(EN,s,n,d);
Operand Description Range Data type Data type (label)
(s) DMAX(P) Head device number where the maximum value is searched 32-bit signed binary ANY32
DMAX(P)_U 32-bit unsigned binary
(d) DMAX(P) Head device number for storing the maximum value 32-bit signed binary ANY32
DMAX(P)_U 32-bit unsigned binary
(n) Number of data to be searched 0 to 65535 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s) 
(d) 
(n) 
Error code
(SD0/SD8067)
Description
2820 The (n) point(s) of data in the device starting from the one specified by (s) exceed the corresponding device range.
The device specified by (d) exceeds the corresponding device range.
(s) (d) (n)
54321000 (BIN)
4321000 (BIN)
3254000 (BIN)
54321000 (BIN)
12345678 (BIN)
(n)
54321000 (BIN)
1
2
(s)+1, (s)
(s)+9, (s)+8
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
(d)+1, (d)
(d)+2
(d)+3
Maximum value
Position
Number of data

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals