928
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
Searching the minimum value of 32-bit binary data
DMIN(P)(_U)
These instructions search the (n) points of 32-bit binary data in the specified device for the minimum value.
*1 The DMIN and DMIN_U instructions do not support the ST and FBD/LD. Use the standard function, MIN.
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:=DMINP(EN,s,n,d); ENO:=DMINP_U(EN,s,n,d);
FBD/LD
*1
Instruction Execution condition
DMIN
DMIN_U
DMINP
DMINP_U
Operand Description Range Data type Data type (label)
(s) DMIN(P) Start device where the search target data is
stored
32-bit signed binary ANY32_S
*1
DMIN(P)_U 32-bit unsigned binary ANY32_U
*1
(d) DMIN(P) Start device for storing the search result of the
minimum value
32-bit signed binary ANY32_S_ARRAY
(Number of elements: 4)
DMIN(P)_U 32-bit unsigned binary ANY32_U_ARRAY
(Number of elements: 4)
(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)