922
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
Searching the maximum value of 16-bit binary data
MAX(P)(_U)
These instructions search the (n) points of 16-bit binary data in the specified device for the maximum value.
*1 The MAX and MAX_U instructions do not support the ST and FBD/LD. Use the standard function, MAX.
Page 1933 MAX(_E), MIN(_E)
■Execution condition
■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:=MAXP(EN,s,n,d); ENO:=MAXP_U(EN,s,n,d);
FBD/LD
*1
Instruction Execution condition
MAX
MAX_U
MAXP
MAXP_U
Operand Description Range Data type Data type (label)
(s) MAX(P) Start device where the search target data is
stored
16-bit signed binary ANY16_S
*1
MAX(P)_U 16-bit unsigned binary ANY16_U
*1
(d) MAX(P) Start device for storing the search result of the
maximum value
16-bit signed binary ANY16_S_ARRAY
(Number of elements: 3)
MAX(P)_U 16-bit unsigned binary ANY16_U_ARRAY
(Number of elements: 3)
(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)