beautypg.com

8 table data manipulation instructions, 1 block read instruction (tblbr), Outline – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 176

background image

1 Ladder Program Instructions

1.8.1 BLOCK READ Instruction (TBLBR)

1-166

1.8 Table Data Manipulation Instructions

1.8.1 BLOCK READ Instruction (TBLBR)

„

Outline

The TBLBR instruction consecutively reads file register table elements in block format that
are specified by table name (Table Name), row number, and column number. It then stores
the elements in a continuous region starting with the specified register (Read Data). The
type of the element being read is automatically determined according to the specified table.
The type of the storage destination register is ignored and the read data is stored according to
the table element type without converting the data type.

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 the contents of the
storage destination register is retained without reading the data.

Upon normal termination, the number of words transferred is set in the [Output], and the
[Status] is turned OFF.

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

Table 1.31 List of Error Codes

Error Code

Error Name

Content

0001H

Referenced table undefined

The target table is not defined.

0002H

Outside row number range

The row number of the table element is not within
the range of the target table.

0003H

Outside column number range

The column number of the table element is not
within the range of the target table.

0004H

Number of elements incorrect

The number of elements of the target is invalid.

0005H

Insufficient space in storage destina-
tion

There is not enough space for storing.

0006H

Incorrect element type

The type of the specified element is a malfunction.

0007H

Cue buffer error

An attempt is made to read the cue buffer when it is
empty, or the buffer is written to by pointer advance
when it is full.

0008H

Cue table error

The specified table is not a table of the cue type.

0009H

System error

An unexpected error is detected internally in the sys-
tem during instruction execution.

This manual is related to the following products: