
7 APPLICATION INSTRUCTION
7.7 Real Number Instruction
463
7
Searching the minimum value of single-precision real number
EMIN(P)
These instructions search for the minimum value in the (n) point(s) of single-precision real number block data in the device
starting from the one specified by (s), and store the minimum value in the device areas specified by (d) and (d)+1.
These instructions also store the location of the first minimum value from (s) in the device specified by (d)+2 and the number
of minimum values in the device specified by (d)+3.
*1
The EMIN instruction is not supported by the ST language. Use MIN of the standard function.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• These instructions search for the minimum value in the (n) point(s) of single-precision real number block data in the device
starting from the one specified by (s), and store the minimum value in the device areas specified by (d) and (d)+1. These
instructions also store the location of the first minimum value from (s) in the device specified by (d)+2 and the number of
minimum values in the device specified by (d)+3.
• The start of the block data in the device specified by (s) is counted as 1st point when the location is counted.
• The following values are stored in (d).
• When (n) is 0, the processing is not performed.
Ladder diagram
Structured text
ENO:=EMINP(EN,s,n,d);
Operand
Description
Range
Data type
Data type (label)
(s)
Search target data
Single-precision real number
Single-precision real number
(d)
Search result
Single-precision real number
Single-precision real number
(n)
Number of search target data points
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)
Data type
Description
(d)
Single-precision real number
Minimum value
(d)+1
(d)+2
16-bit data
Minimum value position
(d)+3
16-bit data
Number of minimum values
(s)
(d)
(n)
1.2345
123.45
-1.2345
-12.345
-123.45
(s)+1, (s)
(s)+3, (s)+2
(s)+5, (s)+4
(d)+1, (d)
(d)+2
(d)+3
(s)+7, (s)+6
(s)+9, (s)+8
(n)
-123.45
2
1
Minimum value
Position
Number of data
Содержание MELSEC iQ-F FX5 series
Страница 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Страница 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Страница 438: ...436 7 APPLICATION INSTRUCTION 7 7 Real Number Instruction Operation error There is no operation error ...
Страница 705: ...15 TYPE CONVERSION FUNCTIONS 15 13 Converting DWORD to WORD 703 15 Operation error There is no operation error ...
Страница 707: ...15 TYPE CONVERSION FUNCTIONS 15 14 Converting DWORD to INT 705 15 Operation error There is no operation error ...
Страница 722: ...720 15 TYPE CONVERSION FUNCTIONS 15 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Страница 855: ...26 COUNTER FUNCTION BLOCKS 26 3 Counter Function Block 853 26 Operation error There is no error ...
Страница 887: ......