Writing table values with TABDATA WRITE

Application

Use the function TABDATA WRITE to write a value into a table.

You can use the TABDATA WRITE function after a touch probe cycle to enter a necessary tool compensation into the compensation table, for example.

Description of function

Depending on the type of column you want to write to, you can use Q, QL, QR, QS or named parameters as transfer parameters. Alternatively, you can define the value directly in the NC function TABDATA WRITE.

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 WRITE CORR-TCS COLUMN "DR" KEY "3" = Q1

; Write the value from Q1 to row 3, column DR, of the compensation table

To navigate to this function:

Insert NC function All functions FN Special functions Functions Table access TABDATA TABDATA WRITE

The NC function includes the following syntax elements:

Syntax element

Meaning

TABDATA

Syntax initiator for accessing table values

WRITE

Write a table value

CORR-TCS, CORR-WPL or PRESET

Write a value to a compensation table *.tco or *.wco or to the preset table

COLUMN

Column name

Text or string parameter

KEY

Row number

Number, text, or variable

= or SET UNDEFINED

Write the table value or assign the status undefined

Number, Name or Parameter

Table value

Number, text, or variable

Only if = has been selected

Note

 
Notice
Caution: Significant property damage!
Undefined fields in the preset table behave differently from fields defined with the value 0: Fields defined with the value 0 overwrite the previous value when activated, whereas with undefined fields the previous value is kept. If the previous value is kept, there is a danger of collision!
  1. Before activating a preset, check whether all columns contain values.
  2. For undefined columns, enter values (e.g., 0)
  3. As an alternative, have the machine manufacturer define 0 as the default value for the columns