Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 544

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions search for the maximum 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 maximum value in the device areas specified by (d). These instructions
also store the location of the first maximum value from (s) in the device specified by (d)+2 and the number of maximum
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.
(s)+1, (s)
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
(s)+9, (s)+8
(d)+1, (d): Maximum value
(d)+2: Position
(d)+3: Number of data
• The following values are stored in (d).
(d)
(d)+1
(d)+2
(d)+3
• When (n) is 0, the processing is not performed.
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device areas specified by (s) exceed the corresponding device range.
The device areas specified by (d) exceed the corresponding device range.
3402H
The block data in the device areas specified by (s) includes a value other than single-precision real number.
8 APPLICATION INSTRUCTION
542
8.9 Real Number Instruction
1.2345
123.45
-1.2345
(n)
-12.345
-123.45
Data type
Single-precision real number
16-bit data
16-bit data
123.45
(d)+1, (d)
(d)+2
2
(d)+3
1
Description
Maximum value
Maximum value position
Number of maximum values

Hide quick links:

Advertisement

loading