Searching the maximum value of double-precision real number
EDMAX(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions search the block data of double-precision real numbers for the maximum value.
Ladder
(s)
(d)
(n)
*1
FBD/LD
EN
ENO
s
d
n
*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
Instruction
EDMAX
EDMAXP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Double-precision real number used for maximum value
search, or the start device containing double-precision real
numbers
(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
(n)
Number of double-precision real number block data points
EN
Execution condition
ENO
Execution result
*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
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
(n)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=EDMAXP(EN,s,n,d);
Range
Data type
-1022
1024
|(s)|<2
0, 2
Double-precision real
number
Double-precision real
number
0 to 65535
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
*1
ANYREAL_64
ANY_REAL_64_ARRAY
(Number of elements: 6)
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.9 Real Number Instructions
7
841