7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
913
7
Processing details
• These instructions search the same data as the 32-bit binary data of (s2)+1 and (s2) in (n) data starting from (s1)+1 and
(s1), and store the search result in [(d)+1, (d)] to [(d)+9, (d)+8].
• When the same data exists, five devices starting from (d)+1 and (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)+1 and (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)+1 and (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)+9, (d)+8
Match (d)
Minimum value
(d)+7, (d)+6
(s1)+1, (s1)
100000
100000
0
(First position)
(s1)+3, (s1)+2
110100
1
(s1)+5, (s1)+4
100000
2
(s1)+7, (s1)+6
98000
3
(s1)+9, (s1)+8
123000
4
(s1)+11, (s1)+10
66000
5
(s1)+13, (s1)+12
100000
6
(Last position)
(s1)+15, (s1)+14
95000
7
(s1)+17, (s1)+16
910000
8
(s1)+19, (s1)+18
910000
9
Device number
Description
Search result item
(d)+1, (d)
3
Number of the same data
(d)+3, (d)+2
0
Position of the same data (first position)
(d)+5, (d)+4
6
Position of the same data (last position)
(d)+7, (d)+6
5
Minimum value position (last position)
(d)+9, (d)+8
9
Maximum value position (last position)
Содержание MELSEC iQ-R Series
Страница 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Страница 34: ...32 MEMO ...
Страница 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Страница 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Страница 204: ...202 5 SEQUENCE INSTRUCTIONS 5 3 Output Instructions Operation error There is no operation error ...
Страница 470: ...468 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 472: ...470 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 479: ...6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions 477 6 Operation error There is no operation error ...
Страница 504: ...502 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 518: ...516 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 520: ...518 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 754: ...752 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 756: ...754 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 758: ...756 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 760: ...758 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 895: ...7 APPLICATION INSTRUCTIONS 7 16 Ramp Signal Instruction 893 7 Operation error There is no operation error ...
Страница 917: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 915 7 Operation error There is no operation error ...
Страница 919: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 917 7 Operation error There is no operation error ...
Страница 1415: ...13 SFC PROGRAM INSTRUCTIONS 13 1 SFC Control Instructions 1413 13 Operation error There is no operation error ...
Страница 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Страница 1795: ...25 TYPE CONVERSION FUNCTIONS 25 1 Converting BOOL to WORD 1793 25 Operation error There is no operation error ...
Страница 1805: ...25 TYPE CONVERSION FUNCTIONS 25 10 Converting WORD to DINT 1803 25 Operation error There is no operation error ...
Страница 1819: ...25 TYPE CONVERSION FUNCTIONS 25 21 Converting INT to DWORD 1817 25 Operation error There is no operation error ...
Страница 1950: ...1948 32 STRING FUNCTIONS 32 2 Extracting String Data From the Left Right Operation error There is no operation error ...
Страница 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Страница 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Страница 2082: ...2080 APPX Appendix 6 Process Control Program Examples 129 Set the default value of the loop tag ...
Страница 2093: ...APPX Appendix 7 List of Loop Tag Memory Areas Used by Process Control Instructions 2091 A MEMO ...
Страница 2109: ......