3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 274

Advertising
background image

5.9 Table Manipulation Instructions

5.9.3 Search for Table Row (TBLSRL)

5-205

Instructions

5

( 3 ) Programming Example

In the following programming example, a search is made for search data 32 in MW00000 in part of a column of array
table data TBL1.

The parameter table is set as shown in the following table.

The contents of table data TBL1 are given below. (Table elements are integer data.)

A match for 32 (MW00000) was found in row number 3 in the search area, so DW00001 is set to 3.

Register

Data

Remarks

DL00010

2

First row number of table elements

DL00012

5

Last row number of table elements

DL00014

2

Column number of table elements

Column

Row

1 2 3 4 5

1 11

12

13

14

15

2 21

22

23

24

25

3 31

32

33

34

35

4 41

42

43

44

45

5 51

52

53

54

55

Area to search

Advertising
This manual is related to the following products: