
5.9 Table Manipulation Instructions
5.9.1 Read Table Block (TBLBR)
5-199
( 3 ) Programming Example
In the following programming example, the specified block in record table data TBL1 is moved to an area that starts at
MW00100 when switch 1 (DB000000) 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.
After the instruction is executed, the data is moved to an area that starts from MW00100 as shown below.
The number of words that was moved is set to 15 in MW00000 (output data), and MB000010 (status) is set to 0 (move
successful).
The registers are assigned as shown in the above table.
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
Register Data Register Data Register Data
MW00100 2002 ML00101 20000 ML00103 20002
MW00105 3003 ML00106 30000 ML00108 30003
MW00110 4004 ML00111 40000 ML00113 40004
Column
Row
1
( W )
2
( W )
3
( L )
4
( L )
5
( F )
1
2
3
4
5
1.1
1.2
1.3
1.4
1.5
10001
20002
30003
40004
50005
10000
20000
30000
40000
50000
1001
2002
3003
4004
5005
1000
2000
3000
4000
5000
Block to move
Comentarios a estos manuales