Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 842

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

Advertisement

Processing details
• These instructions search for the maximum value in the (n) points 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 specified by (d). The instructions store the
location of the first maximum value by the number of points 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 the 1st point when the search result (location) is
counted.
(s)+1, (s)
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
(s)+9, (s)+8
(d), (d)+1: Maximum value
(d)+2: Location
(d)+3: Number of maximum values
• When (n) is 0, the processing is not performed.
Operation error
Error code
Description
(SD0)
3402H
The block data in the device specified by (s) includes a value other than single-precision real number.
7 APPLICATION INSTRUCTIONS
840
7.9 Real Number Instructions
1.2345
123.45
-1.2345
(n)
-12.345
-123.45
(d)
123.45
(d)+1
(d)+2
2
(d)+3
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents