Reading a freely definable table with FN 28: TABREAD

Application

With the FN 28: TABREAD function you read from the table previously opened with FN 26: TABOPEN.

Description of function

You can define, i.e. read, multiple column names in a TABREAD block. The column names must be written between quotation marks and separated by a comma. In the FN 28 block you can define the Q parameter number in which the control is to write the value that is first read.

Use QS parameters if you want to read a text field. Use Q, QL, or QR parameters to read from numerical fields.

Note

If you wish to read from more than one column in an NC block, the control will save the values under successive Q parameters of the same type, such as QL1, QL2, and QL3.

Example

You wish to read the values of the columns X, Y, and D from line 6 of the presently opened table. Save the first value in the Q parameter Q10, the second in Q11, and the third value in Q12.

From the same row, save the column DOC in QS1.

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 FN 28: TABREAD Q10 = 6/“X,Y,D“

; Read numeric values from columns X, Y and D

12 FN 28: TABREAD QS1 = 6/“DOC“

; Read the alphanumeric value from the DOC column