M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.9 Data Processing Instructions
Functions
SER
Takes the 16-bit data of the device designated at "S1" as the entry code to search for n number of blocks from the 16-bit
data from the device designated at "S2".
The number of matches with the entry code is stored at the device designated by "D"+1, and the relative value of the num-
ber of points that the device where the first match was found is from S2 is stored at the device designated by "D".
Search data
123
S1
S2
S2+1
First number of
searched
S2+2
S2+(n-2)
S2+(n-1)
No processing is conducted if n is 0 or a negative value.
If no matches are found in the search, the devices designated at "D" and "D" +1 become "0".
DSER
Takes the 32-bit data of the device designated by "S1+1" and "S1" as the entry code to search for "n" number of blocks (for
2 x "n" points) in 32-bit unit from the device designated by "S2".
The number of matches with the entry code is stored at the device designated by "D"+1, and the relative value of the num-
ber of points that the device where the first match was found is from S2 is stored at the device designated by "D".
Search data
S1+1,S1
5678901
First number of
searched
S2+(n-3),S2+(n-4)
S2+(n-1),S2+(n-2)
No processing is conducted if n is 0 or a negative value.
If no matches are found in the search, the devices designated at "D" and "D" +1 become "0".
IB-1501667-B
123
10
Matching
500
data
123
Search range
(n blocks)
-123
20
123
123
5678901
S2+1,S2
5678901
S2+3,S2+2
123456
S2+5,S2+4
-1
5678901
0
Matching
5678901
Search results
Position of match
D
Number of matches
D+1
Search results
Position of match
D
Search range
Number of matches
D+1
2×n
data
296