Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 925

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

Advertisement

Processing details
• These instructions search the (n) points of 16-bit binary data in the device specified by (s) for the maximum value, and store
the maximum value in the device specified by (d). Each instruction searches data starting from the device specified by (s)
and detects first the maximum value in the xth point from (s), and stores x in (d)+1 and the number of maximum values in
(d)+2.
(s)
1234 (BIN)
5678 (BIN)
(s)+1
5678 (BIN)
(s)+2
(n)
(s)+(n)-2
-5214 (BIN)
(s)+(n)-1
5555 (BIN)
(d): Maximum value
(d)+1: Location
(d)+2: Number of maximum values
Operation error
There is no operation error.
(d)
5678 (BIN)
2
(d)+1
2
(d)+2
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
7
923

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents