Download Print this page

Searching The Maximum Value Of 16-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 16-bit data

MAX(P)(_U)
These instructions search the maximum value from the (n) point(s) of 16-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 MAX and MAX_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)
MAX(P)
Head device number where the maximum value is searched
MAX(P)_U
(d)
MAX(P)
Head device number for storing the maximum value
MAX(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
656
8.22 Data Operation Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=MAXP(EN,s,n,d);
Range
Data type
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
0 to 65535
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
ENO:=MAXP_U(EN,s,n,d);
Data type (label)
ANY16_S
ANY16_U
ANY16_S_ARRAY
(Number of elements: 3)
ANY16_U_ARRAY
(Number of elements: 3)
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$

Hide quick links:

Advertisement

loading