Searching The Minimum Value Of 32-Bit Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

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).
Ladder diagram
(s)
*1 The DMIN(_U) instructions are not supported by the ST language. Use MIN of the standard function.
Page 804 MAX(_E), MIN(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
DMIN(P)
Head device number where the minimum value is searched
DMIN(P)_U
(d)
DMIN(P)
Head device number for storing the minimum value
DMIN(P)_U
(n)
Number of data to be searched
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
(n)
Processing details
• 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.
(s)+1, (s)
22342001 (BIN)
37282010 (BIN)
(s)+3, (s)+2
(s)+5, (s)+4
22342001 (BIN)
(s)+7, (s)+6
59872019 (BIN)
Operation error
Error code
Description
(SD0/SD8067)
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.
7 APPLICATION INSTRUCTION
558
7.17 Data operation instruction
(d)
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
(d)+1, (d)
(n)
(d)+2
(d)+3
Structured text
ENO:=DMINP(EN,s,n,d);
Range
0 to 65535
Double word Indirect
U\G
Z
LC
Minimum value
22342001 (BIN)
Position
1
2
Number of data
*1
ENO:=DMINP_U(EN,s,n,d);
Data type
32-bit signed binary
32-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
16-bit unsigned binary
Constant
specification
LZ
K, H
Data type (label)
ANY32
ANY32
ANY16
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents