Download Print this page

Searching The Maximum Value Of 32-Bit Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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).
Ladder diagram
(s)
*1
FBD/LD
EN
ENO
s
d
n
*1 The DMAX and DMAX_U instructions are not supported by the ST language and the FBD/LD language. Use MAX of the standard
function.
Page 1014 MAX(_E), MIN(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
DMAX(P)
Head device number where the maximum value is searched
DMAX(P)_U
(d)
DMAX(P)
Head device number for storing the maximum value
DMAX(P)_U
(n)
Number of data to be searched
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
(n)
8 APPLICATION INSTRUCTION
658
8.22 Data Operation Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=DMAXP(EN,s,n,d);
Range
Data type
32-bit signed binary
32-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
0 to 65535
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
ENO:=DMAXP_U(EN,s,n,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S_ARRAY
(Number of elements: 4)
ANY32_U_ARRAY
(Number of elements: 4)
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$

Hide quick links:

Advertisement

loading