7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
839
7
Searching the maximum value of single-precision real number
EMAX(P)
These instructions search the block data of single-precision real numbers for the maximum value.
*1 The EMAX instruction does not support the ST and FBD/LD. Use the standard function, MAX.
Page 1933 MAX(_E), MIN(_E)
■Execution condition
■Descriptions, ranges, and data types
*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:=EMAXP(EN,s,n,d);
FBD/LD
*1
Instruction Execution condition
EMAX
EMAXP
Operand Description Range Data type Data type (label)
(s) Single-precision real number used for maximum value
search, or the start device containing single-precision real
numbers
0, 2
-126
|(s)|<2
128
Single-precision real
number
ANYREAL_32
*1
(d) Start device for storing the search result
(d) to (d)+1: Maximum value
(d)+2: Position
(d)+3: The number of search target data points
Single-precision real
number
ANY_REAL_32_ARRAY
(Number of elements: 4)
(n) Number of single-precision real number block data points 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)