EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Searching the Maximum Value of 32-Bit Binary Data

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
924
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
Searching the maximum value of 32-bit binary data
DMAX(P)(_U)
These instructions search the (n) points of 32-bit binary data in the specified device for the maximum value.
*1 The DMAX and DMAX_U instructions do not support the ST and FBD/LD. Use the standard function, MAX.
Page 1933 MAX(_E), MIN(_E)
Execution condition
Setting data
Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
Applicable devices
Ladder ST
*1
ENO:=DMAXP(EN,s,n,d); ENO:=DMAXP_U(EN,s,n,d);
FBD/LD
*1
Instruction Execution condition
DMAX
DMAX_U
DMAXP
DMAXP_U
Operand Description Range Data type Data type (label)
(s) DMAX(P) Start device where the search target data is
stored
32-bit signed binary ANY32_S
*1
DMAX(P)_U 32-bit unsigned binary ANY32_U
*1
(d) DMAX(P) Start device for storing the search result of the
maximum value
32-bit signed binary ANY32_S_ARRAY
(Number of elements: 4)
DMAX(P)_U 32-bit unsigned binary ANY32_U_ARRAY
(Number of elements: 4)
(n) Number of search data 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)  
(d)  
(n)  
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s) (d) (n)
EN ENO
sd
n

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals