EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 913

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
911
7
Processing details
These instructions search the same data as the 16-bit binary data of (s2) in (n) data starting from (s1), and store the search
result in (d) to (d)+4.
When the same data exists, five devices starting from (d) store the number of the same data, first and last positions of the
same data, maximum value position, and minimum value position.
When the same data does not exist, five devices starting from (d) store the number of the same data, first and last positions
of the same data, maximum value position, and minimum value position. In this case, however, 0s are stored in three
devices starting from (d) (which store the number of the same data, first and last positions of the same data).
When there are two or more maximum or minimum values in the searched data, the last position of the maximum/minimum
values is stored.
If the value specified in (n) is 0, no processing is performed.
The following table shows example of configuration of search result table and data. (n=10)
The following table shows the search result table obtained by the above example.
Operation error
There is no operation error.
Searched device
(s1)
Searched data
(s1) value
(example)
Comparison data
(s2) value
(example)
Data position Search result
Maximum value
(d)+4
Match (d) Minimum value
(d)+3
(s1) 100 100 0  (First position)
(s1)+1 111 1 
(s1)+2 100 2 
(s1)+3 98 3 
(s1)+4 123 4 
(s1)+5 66 5 
(s1)+6 100 6  (Last position)
(s1)+7 95 7 
(s1)+8 210 8 
(s1)+9 88 9 
Device number Description Search result item
(d) 3 Number of the same data
(d)+1 0 Position of the same data (first position)
(d)+2 6 Position of the same data (last position)
(d)+3 5 Minimum value position (last position)
(d)+4 8 Maximum value position (last position)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals