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 Q parameter.
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 Q, QL, QR, or QS to save the value. The control automatically converts the table values to the unit of measure used in the NC program.
Input
11 TABDATA READ Q1 = CORR-TCS COLUMN "DR" KEY "5" | ; Save the value in row 5, column DR, from the compensation table to Q1 |
The NC function includes the following syntax elements:
Syntax element | Meaning |
---|---|
TABDATA | Syntax initiator for accessing table values |
READ | Reading a table value |
Q/QL/QR or QS | Type of variable and number in which the control saves 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 Fixed or variable name |
KEY | Row number Fixed or variable name |