354
SER, SERP, DSER, DSERP
7.5 Data processing instructions
: Search data or head number of the devices where the search data is stored (BIN 16/32 bits)
: Data to be searched or head number of the devices where the data to be searched is stored (BIN 16 bits)
: Head number of the devices where the search result will be stored (BIN 16 bits)
n : Number of searches (BIN 16 bits)
Function
SER
(1) Searches n points from the 16-bit data of the device designated by , regarding 16-bit data of the device designated by
as a keyword. Then, the number of matches with the keyword is stored at the device designated by +1, and the first
matched device number (in the relative number from ) is stored at the device designated by .
(2) No processing is conducted if n is 0 or a negative value.
(3) If no matches are found in the search, the devices designated at and +1 become "0".
7.5.1 SER, SER P 16 -bit data se arch
DSER, DSERP 32-bit data search
7.5.1
SER, SERP, DSER, DSERP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– –– –– –– ––
–– –– –– ––
n ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
n
n
SER, DSER
SERP, DSERP
D
S1
S2
D
S2
S1
P
S1
S2
D
S1
S2
D
S2
S1
D
S2
D
3
2
Position of match
Number of matches
10
500
123
20
Search range
(n points)
Search results
123
123
123
Match data
Head number to be
searched
123
Search data
D
S2
D
S1
S2
S2
S2
S2
Relative value
+1
+2
+(n-2)
+(n-1)
+1
-123
D D