5 clear table block (tblcl), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 278

Advertising
background image

5.9 Table Manipulation Instructions

5.9.5 Clear Table Block (TBLCL)

5-209

Instructions

5

5.9.5 Clear Table Block (TBLCL)

( 1 ) Operation

The TBLCL instruction clears the block of data in the table data that is specified by the table name, row numbers, and
column numbers. The elements are filled with spaces if the data type is for text strings, and 0s if the data type is for
numeric values.
If both the first row number and the first column number of the table element are 0, the entire table will be cleared.
If an error occurs when accessing the table, such as data that is outside of the valid range or not enough data length at
the destination, an error is output and no data is written.
If the instruction ends normally, the number of words that were cleared is output and the status is turned OFF. If an
error occurs, an error code is set in the output data and the status is turned ON.

Œ

If the first row number and column number of the table element are both 0, the entire table is cleared.

[ a ] If the Clear Succeeds

[ b ] If the Clear Fails

Œ

If the clear fails, the table data will retain the contents from before the instruction was executed.

1

2

3

4

abcd

6

0

0

0

11

0

0

0

16

17

18

19

hijk

Columns →

(W) (W) (L) (L) (Text string)

Rows

Data type for each column

Specified block

Table Data

Text strings are set to spaces,
numeric values are set to 0s.

Data cleared.

Number of

words cleared

Output data

Status

0 (OFF)

Error code

Output data

Status

1 (ON)

Advertising
This manual is related to the following products: