Data Processing; Data Search; 32-Bit Data Search - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.14 Data Processing

5.14.1 Data search

n points of data, starting at the specified BIN 16-bit data, are searched for the specified BIN 16-bit data.
Function definition

5.14.2 32-bit data search

2n points of data, starting at the specified BIN 32-bit data, are searched for the specified BIN 32-bit data.
Function definition
5 - 59
SER_M
BOOL SER_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 n, ANY16(2) D);
Argument Name
EN
S1
S2
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, D300 points of data, starting at D200, *)
(* are searched for D100.
(* The number of data that matched the search target is stored into D[1], and the *)
(* relative value indicating the number of points from D200 is stored into D[0].
SER_M (X0, D100, D200, D300, D);
Corresponding MELSEC command
SER (16-bit data search)
DSER_M
BOOL SER_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 n, ANY16(2) D);
Argument Name
EN
S1
S2
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the number of points stored in D100, *)
(* starting at dData2, are searched on a 32-bit basis for dData1 and dData1+1.
(* The number of data that matched the search target is stored into
(* ArrayResult[1], and the relative value indicating the number of points from
(* dData2 is stored into ArrayResult[0].
DSER_M (X0, dData1, dData2, D100, ArrayResult);
Corresponding MELSEC command
DSER (32-bit data search)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be searched for (BIN 16-bit data)
IN
Data to be searched (BIN 16-bit data)
IN
Number of data to be searched (BIN 16-bit data)
Search result
OUT
(ARRAY [0..1] OF ANY16)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be searched for (BIN 32-bit data)
IN
Data to be searched (BIN 32-bit data)
IN
Number of data to be searched (BIN 16-bit data)
Search result
OUT
(ARRAY [0..1] OF ANY16)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
D[0] Match position
D[1] Number of matches
Description
Description
D[0] Match position
D[1] Number of matches
Description
*)
*)
*)
*)
*)
*)
5 - 59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents