Data Processing Instructions; Data Processing Instructions; 16-Bit Data Search, 32-Bit Data Search - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

7.5

Data Processing Instructions

16-bit data search, 32-bit data search

SER(P), DSER(P)
High
Basic
Process
performance
SER, DSER
SERP, DSERP
(S1): Search data or head number of the devices where the search data is stored (BIN 16/32 bits)
(S2): Data to be searched or head number of the devices where the data to be searched is stored (BIN 16 bits)
(D): Head number of the devices where the search result will be stored (BIN 16 bits)
n:
Number of searches (BIN 16 bits)
Setting
Internal device
data
Bit
(S1)
(S2)
(D)
n
Processing details
■SER
• Searches n points from the 16-bit data of the device designated by (S2), regarding 16-bit data of the device designated by
(S1) as a keyword. Then, the number of matches with the keyword is stored at the device designated by (D)+1, and the first
matched device number (in the relative number from (S2)) is stored at the device designated by (D).
Head number to be
searched
Search data
S 1
123
Relative value
• 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".
7 APPLICATION INSTRUCTIONS
418

7.5 Data Processing Instructions

LCPU
Redundant Universal
R, ZR
Word
123
S2
10
S2
+1
500
123
+2
S2
-123
20
S2
+(n-2)
123
S2
+(n-1)
123
Command
Command
P
J\
Bit
Word
Match data
Search range
(n points)
D
S 1
S2
D
S 1
S2
U\G
Zn
Search results
D
3
Position of match
D
+1
2
Number of matches
n
n
Constant
Others
K, H

Advertisement

Table of Contents
loading

Table of Contents