Read system data with FN 18: SYSREAD

Application

With the FN 18: SYSREAD function you can read numerical system data and store this data in variables.

Related topics

 
Manual

Overview of the Machine Parameters, Error Numbers and System Data

The additional documentation Overview of the Machine Parameters, Error Numbers and System Data provides an overview of the following functions:

  • Machine parameters of the MPs for setters application
  • Preassigned error numbers of the FN 14: ERROR NC function (ISO: D14)
  • System data readable with the FN 18: SYSREAD (ISO: D18) and SYSSTR NC functions

ID 1445456-xx

You can download this documentation free of charge from the HEIDENHAIN website.

TNCguide

Description of function

The control always outputs system data in the metric system with FN 18: SYSREAD, regardless of the unit of the NC program.

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 18: SYSREAD Q25 = ID210 NR4 IDX3

; Save the active dimension factor of the Z axis in Q25

To navigate to this function:

Insert NC function FN Special functions FN 18 SYSREAD

The NC function includes the following syntax elements:

Syntax element

Meaning

FN18: SYSREAD

Syntax initiator for reading system data

Parameter

Numerical parameter in which the control stores the information

ID

Group number of the system datum

Number or numerical parameter

NR

System data number

Number or numerical parameter

Optional syntax element

IDX

Index

Number or numerical parameter

Optional syntax element

.

Sub-index for system data for tools

Number or numerical parameter

Optional syntax element

Note

As an alternative, you can use TABDATA READ to read out data from the active tool table. In this case, the control will automatically convert the table values to the unit of measure used in the NC program.

Reading table values with TABDATA READ