7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
841
7
Searching the maximum value of double-precision real number
EDMAX(P)
These instructions search the block data of double-precision real numbers for the maximum value.
*1 The EDMAX 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:=EDMAXP(EN,s,n,d);
FBD/LD
*1
Instruction Execution condition
EDMAX
EDMAXP
Operand Description Range Data type Data type (label)
(s) Double-precision real number used for maximum value
search, or the start device containing double-precision real
numbers
0, 2
-1022
|(s)|<2
1024
Double-precision real
number
ANYREAL_64
*1
(d) Start device for storing the search result
(d) to (d)+3: Maximum value
(d)+4: Position
(d)+5: The number of search target data points
Double-precision real
number
ANY_REAL_64_ARRAY
(Number of elements: 6)
(n) Number of double-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)