Reading table values with TABDATA READ

Application

The function TABDATA READ allows you to read a value from a table and save it to a variable.

For example, the TABDATA READ function enables you to pre-check the data of the tool to be used to prevent error messages from occurring during program run.

Description of function

Depending on the type of column you want to transfer, you can use numerical or string parameters to save the value. The control automatically converts the table values to the unit of measure used in the NC program.

Input

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 TABDATA READ Q1 = CORR-TCS COLUMN "DR" KEY "5"

; Save the value in row 5, column DR, from the compensation table to Q1

To navigate to this function:

Insert NC function All functions FN Special functions Functions TABDATATable access TABDATA TABDATA READ

The NC function includes the following syntax elements:

Syntax element

Meaning

TABDATA

Syntax initiator for accessing table values

READ

Read a table value

Parameter

Variable in which the control stores the value

TOOL, CORR-TCS, CORR-WPL or PRESET

Read the value from the tool table or a compensation table *.tco or *.wco or from the preset table

COLUMN

Column name

Text or string parameter

KEY

Row number

Number, text, or variable