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

Table of Contents

Advertisement

SER, SERP, DSER, DSERP
7.5

Data processing instructions

7.5.1
SER, SERP

16-bit data search

7.5.1

DSER, DSERP

32-bit data search
SER, SERP, DSER, DSERP
SER, DSER
SERP, DSERP
: Search data or head number of the devices where the search data is stored (BIN 16/32 bits)
S1
: Data to be searched or head number of the devices where the data to be searched is stored (BIN 16 bits)
S2
: Head number of the devices where the search result will be stored (BIN 16 bits)
D
n
: Number of searches (BIN 16 bits)
Internal Devices
Setting
Data
Bit
S1
––
S2
––
D
n
Function
SER
(1) Searches n points from the 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
S1
matched device number (in the relative number from
Head number to be
Search data
searched
S 1
123
Relative value
(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
354
Command
Command
R, ZR
Word
Bit
––
––
123
S2
10
S2
+1
500
Match data
123
+2
S2
-123
S2
+(n-2)
20
S2
+(n-1)
123
123
High
Basic
performance
S 1
S2
S 1
S2
P
J
\
U
\G
Word
––
, regarding 16-bit data of the device designated by
S2
) is stored at the device designated by
S2
Search results
D
Search range
(n points)
+1
D
and
+1 become "0".
D
D
Process
Redundant Universal
LCPU
D
n
D
n
Constants
Zn
Other
K, H
––
––
––
––
––
––
+1, and the first
D
.
D
3
Position of match
2
Number of matches

Advertisement

Table of Contents
loading

Table of Contents