7. APPLICATION INSTRUCTIONS
7
−
41
MELSEC-A
7.4.1 16-bit data search
(SER, SERP)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
(S1)
O O O O O O O O O O O
(S2)
O
O
O
O
O
n
O
O
O
O
Functions
(1) Searches the data of "n" points, beginning with the 16-bit data of device
specified at (S2), by use of the 16-bit data of device specified at (S1) as a
keyword.
(2) Stores to A1 the number of data which have coincided with the keyword, and
stores to A0 at which point from (S2) the first coinciding device number (relative
value) is located.
(3) When "n" is negative, it is equal to 0.
(4) When "n" is 0, no processing is performed.
Execution Conditions
Applicable
CPU
All CPUs
(S1)
Search data or the first
device number of the
devices where search
data is being stored
(S2)
Head number of device to
be searched
n
Number of devices to be
searched
Setting data
Search commands
SER
(S1)
(S2)
n
SERP (S1)
(S2)
n
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
Search command
SER
SERP
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......