16-Bit Data Searches: Ser - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.31 16-bit data searches: SER

Setting
data
X
Y
M
(S1)
(S2)
(D)
n
[Setting data]
[Function]
[Error]
Bit device
SM
F
T
C
D
[Instruction]
Command
SER
Setting data
(S1)
(S2)
(D)
n
(1) 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).
(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 (D) and (D)+1
become "0".
The range of n exceeds that of the device specified in (S2) or the points specified in n
exceed those of the corresponding device specified in (D), sequence program error
occurs.
Safety observation warnings (SM24) are turned ON and error code (SD32): 10, detail
code (SD33): 8014H are stored.
Usable device
Word device
W
T
C
SD
Z
SER
(S1)
(S2)
Number of the devices where the search data is stored (BIN 16 bits)
Head number of the devices where the data to be searched is stored
Head number of the devices where the search result will be stored
Number of searches (BIN 16 bits)
5 - 71
Constant
Pointer
Level
K
H
P
N
(D)
n
Description
(BIN 16 bits)
(BIN 16 bits)
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents