5 block clear instruction (tblcl), Program example, Outline – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 183

Advertising
background image

1.8 Table Data Manipulation Instructions

1-173

1

„

Program Example

The table defined as TABLE1 is searched for data which matchers MW00100 (when the
type of the searched table is integer) with DW00010 to DW00014 as a parameter table.

1.8.5 BLOCK CLEAR Instruction (TBLCL)

„

Outline

The TBLCL instruction clears the data of the block element of the file register table speci-
fied by a table name (Table Name), row number, and column number. If the element type is
a character string, space is written. If the element type is a numeric value, 0 is writte n.

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

If errors such as invalid table names, invalid row numbers, invalid column numbers, or
insufficient storage register data length are found, they are reported and data is not written.
Upon normal termination, the number of words cleared is set in the [Output], and the [Sta-
tus]
is turned OFF.

When an error occurs, the corresponding error code is set in the [Output], and the [Status] is

turned ON.

Table 1.36 Block Clear Instruction Parameters

ADR

Type

Symbol

Name

Specifications

I/O

0

L

ROW

Table element head row
number

Head row number of the target table element
(0 to 65535)

IN

2

L

COL-
UMN

Target table element head
column number

Head column number of the target table element
(10 to 32767)

IN

4

W

RLEN

Number of row elements

Number of row elements (1 to 32767)

IN

5

W

CLEN

Number of column
elements

Number of column elements (1 to 32767)

IN

Advertising
This manual is related to the following products: