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

Page 280

Advertising
background image

5.9 Table Manipulation Instructions

5.9.5 Clear Table Block (TBLCL)

5-211

Instructions

5

( 3 ) Programming Example

In the following programming example, the specified block is cleared from record table data TBL1 when switch 1
(DB000100) turns ON.
The parameter table is set as shown in the following table.

The contents of table data TBL1 are given below.

Œ

The column data types are given in parentheses.

The data is cleared after the instruction is executed as shown below.

Œ

The column data types are given in parentheses.

Register

Data

Remarks

DL00000

2

First row number of table elements

DL00002

2

First column number of table elements

DW00004

3

Number of row elements

DW00005

3

Number of column elements

Column

Row

1

( W )

2

( W )

3

( L )

4

(Text string)

5

( F )

1
2
3
4
5

1000
2000
3000
4000
5000

1001
2002
3003
4004
5005

10000
20000

30000

40000
50000

ABCD
BCDE
CDEF

DEFG

EFGH

1.1
1.2
1.3
1.4
1.5

Area to clear

Column

Row

1

( W )

2

( W )

3

( L )

4

(Text string)

5

( F )

1
2
3
4
5

1000
2000
3000
4000
5000

1001

0
0
0

5005

10000

0
0
0

50000

ABCD

EFGH

1.1
1.2
1.3
1.4
1.5

Area that was cleared

Advertising
This manual is related to the following products: