558
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
Searching the minimum value of 32-bit data
DMIN(P)(_U)
These instructions search the minimum value from the (n) point(s) of 32-bit binary data in the device starting from the one
specified by (s), and store the minimum value in the device specified by (d).
*1 The DMIN(_U) instructions are not supported by the ST language. Use MIN of the standard function.
Page 804 MAX(_E), MIN(_E)
■Descriptions, ranges, and data types
■Applicable devices
• These instructions search the minimum value from the (n) point(s) of 32-bit binary data in the device starting from the one
specified by (s), and store the minimum value in the device specified by (d) and (d)+1. These instructions start searching
from the device specified by (s), and store the location from (s) of the first minimum value in (d)+2 and the number of
minimum values in (d)+3.
Ladder diagram Structured text
*1
ENO:=DMINP(EN,s,n,d); ENO:=DMINP_U(EN,s,n,d);
Operand Description Range Data type Data type (label)
(s) DMIN(P) Head device number where the minimum value is searched 32-bit signed binary ANY32
DMIN(P)_U 32-bit unsigned binary
(d) DMIN(P) Head device number for storing the minimum value 32-bit signed binary ANY32
DMIN(P)_U 32-bit unsigned binary
(n) Number of data to be searched 0 to 65535 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
(d)
(n)
Error code
(SD0/SD8067)
Description
2820 The (n) point(s) of data in the device starting from the one specified by (s) exceed the corresponding device range.
The device specified by (d) exceeds the setting area in the device/label memory.
22342001 (BIN)
37282010 (BIN)
22342001 (BIN)
59872019 (BIN)
(n)
22342001 (BIN)
1
2
(s)+1, (s)
(s)+7, (s)+6
(s)+3, (s)+2
(s)+5, (s)+4
(d)+1, (d)
(d)+2
(d)+3
Minimum value
Position
Number of data