Fundamentals
The TABDATA functions allow you to access table values.
These functions enable automated editing of compensation values from within the NC program, for example.
You can access the following tables:
- Tool table *.t (read-only access)
- Compensation table *.tco (read and write access)
- Compensation table *.wco (read and write access)
- Preset table *.pr (read and write access)
In each case, the active table is accessed. Read-only access is always possible, whereas write access is possible only during program run. Write access during simulation or during a block scan has no effect.
The control provides the following functions for accessing the table values:
Syntax | Function | Further information |
---|---|---|
TABDATA READ | Read the value from a table cell | |
TABDATA WRITE | Write a value to a table cell | |
TABDATA ADD | Add a value to a table value |
If the unit of measure used in the NC program differs from that used in the table, the control converts the values from millimeters to inches, and vice versa.
Related topics
- Fundamentals regarding variables
- Tool table
- Compensation tables
- Reading values from freely definable tables
- Writing values to freely definably tables