Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
SER, SERP
- 274 -
{ SER, SERP ... Search of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S1
{ { { { { { {
{
S2
{ { { { { { {
D
{ { { { { { {
{
n
{ { { { { { { { {
{
6
SER
D
S1
n
S2
Search command
Setting data
S2
S1
No. of device where
search data is stored.
No. of devices to be
searched.
n
D
Head No. of device
where search results
are stored.
SER
SERP
SERP
D
S1 n
S2
Head No. of device
to be searched.
Function
(1) Using the 16-bit data of the device designated with S1 as the keyword, the n points from the
16-bit data of the device designated with S2 are searched.
(2) The number of data matching the keyword is stored in D+1. The relative position of the device
containing the first matched data counted from S2 is stored in D.
(3) When n is a negative value, it is interpreted as 0.
(4) No process is executed when n = 0.
Execution conditions
The execution conditions for SER, SERP are as shown below.
Search command OFF
SER
ON
Executed per scan
Executed per scan
SERP