Writing to a freely definable table with FN 27: TABWRITE

Application

With the FN 27: TABWRITE NC function, you write to the table that you previously opened with FN 26: TABOPEN.

Description of function

Use the FN 27 NC function to define the table columns to be written to by the control. Within an NC block, you can specify multiple table columns, but only one table row. The contents to be written to the columns must have been defined previously, using variables, or are defined directly in the FN 27 NC function.

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 FN 27: TABWRITE 2/“Length,Radius“ = Q2

; Write to table with FN 27

To navigate to this function:

Insert NC function All functions FN Special functions FN 27 TABWRITE

The NC function includes the following syntax elements:

Syntax element

Meaning

FN 27: TABWRITE

Syntax initiator for writing to a table

Number

Row number of the table to be written to

Number or numerical parameter

Name or Parameter

Column names in the table to be written to

Text or string parameter

Use commas to separate multiple column names.

= or SET UNDEFINED

Write the table value or assign the status undefined

Preset table *.pr

Number, Name or Parameter

Table value

Number, text, or variable

Only if = has been selected

Notes

  • If you write to multiple columns within one NC block, you need to define the values to be written to the columns in consecutive variables.
  • If you try to write to a locked or a non-existing table cell, the control displays an error message.
  • When you write into several columns, the control can only write either numbers or texts.
  • If you define a fixed value in the FN 27 NC function, the control will write the same value to each defined column.
  • With the SET UNDEFINED syntax element you assign the undefined status to the variables.
  • For example, if you program a position using an undefined Q parameter, the control will ignore this movement.

  • If you use an undefined variable in arithmetic operations in the NC program, the control displays an error message and stops program run.

  • Assigning the Undefined status to a variable

Example

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 Q5 = 3.75

; Define the value for the Radius column

12 Q6 = -5

; Define the value for the Depth column

13 Q7 = 7.5

; Define the value for the D column

14 FN 27: TABWRITE 5/“Radius,Depth,D“ = Q5

; Write defined values to the table

The control writes to the columns Radius, Depth, and D of row 5 of the currently open table. The control writes the values from the Q parameters Q5, Q6, and Q7 to the table.