Searching The Minimum Value Of 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Searching the minimum value of 32-bit binary data

DMIN(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions search the (n) points of 32-bit binary data in the specified device for the minimum value.
Ladder
(s)
*1
FBD/LD
EN
ENO
s
d
n
*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
Instruction
DMIN
DMIN_U
DMINP
DMINP_U
Setting data
■Description, range, data type
Operand
(s)
DMIN(P)
DMIN(P)_U
(d)
DMIN(P)
DMIN(P)_U
(n)
EN
ENO
*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,
SM, F, B, SB,
FX, FY
(s)
(d)
(n)
7 APPLICATION INSTRUCTIONS
928
7.20 Data Processing Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
(n)
Execution condition
Description
Start device where the search target data is
stored
Start device for storing the search result of the
minimum value
Number of search data
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*1
ST
ENO:=DMINP(EN,s,n,d);
Range
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
ENO:=DMINP_U(EN,s,n,d);
Data type
Data type (label)
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
32-bit signed binary
ANY32_S_ARRAY
(Number of elements: 4)
32-bit unsigned binary
ANY32_U_ARRAY
(Number of elements: 4)
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
*1
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents