System data

List of FN functions

The FN 18: SYSREAD (ISO: D18) function can be used to read numeric system data and save the values in numeric parameters (e.g., FN 18: SYSREAD Q25 = ID210 NR4 IDX3).

 
Tip

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

Read system data with FN 18: SYSREAD

The SYSSTR function can be used to read alphanumeric system data and save the values in string parameters (e.g., QS25 = SYSSTR( ID 10950 NR1 )).

Read system data with SYSSTR

Group name

Group number ID...

System data number NO....

Index IDX...

Description

Program information

10

3

-

Number of the active machining cycle

6

-

Number of the most recently executed touch probe cycle
1 = None

7

-

Type of calling NC program:
1 = None
0 = Visible NC program
1 = Cycle/macro, main program is visible
2 = Cycle/macro, there is no visible main program

8

1

Unit of measure of the directly calling NC program (may also be a cycle).
Return codes:
0 = mm
1 = inch
–1 = there is no corresponding program

2

Unit of measure of the NC program visible in the block display from which the current cycle was called directly or indirectly.
Return codes:
0 = mm
1 = inch
–1 = there is no corresponding program

9

-

Within an M function macro:
Number of the M function. Otherwise –1

-

Within an M function macro:
Number of the M function. Otherwise –1

10

-

Repeat counter: Indicates the number of times the current code has been executed since the current NC program call

103

Q parameter number

Relevant within NC cycles; for inquiry as to whether the Q parameter given under IDX was explicitly stated in the associated CYCLE DEF.

110

QS parameter no.

Is there a file with the name QS(IDX)?
0 = No, 1 = Yes
This function resolves relative file paths.

111

QS parameter no.

Is there a directory with the name QS(IDX)?
0 = no, 1 = Yes
Only absolute directory paths are possible.

System jump addresses

13

1

-

Label number or label name (string or QS) jumped to during M2/M30 instead of ending the current NC program.
Value = 0: M2/M30 have the normal effect

2

-

Number or name (string or QS) of the label to which the NC program will jump if FN 14: ERROR has been programmed with the NC CANCEL reaction, instead of aborting the NC program with an error message. The error number programmed in the FN 14 command can be read under ID992 NR14.
Value = 0: FN 14 has a normal effect.

3

-

Label number or label name (string or QS) jumped to in the event of an internal server error (SQL, PLC, CFG) or with erroneous file operations (FUNCTION FILECOPY, FUNCTION FILEMOVE, or FUNCTION FILEDELETE) instead of aborting the NC program with an error message.
Value = 0: Error has the normal effect.

Indexed access to Q parameters

15

11

Q parameter number

Reads Q(IDX)

12

QL parameter no.

Reads QL(IDX)

13

QR parameter no.

Reads QR(IDX)

Machine status

20

1

-

Active tool number

2

-

Prepared tool number

3

-

Active tool axis
0 = X 6 = U
1 = Y 7 = V
2 = Z 8 = W

4

-

Programmed spindle speed

5

-

Active spindle condition
-1 = spindle condition not defined
0 = M3 active
1 = M4 active
2 = M5 active after M3
3 = M5 active after M4

7

-

Active gear range

8

-

Active coolant status
0 = off, 1 = on

9

-

Active feed rate

10

-

Index of prepared tool

11

-

Index of active tool

14

-

Number of active spindle

20

-

Programmed cutting speed in turning operation

21

-

Spindle mode in turning mode:
0 = constant speed
1 = constant cutting speed

22

-

Coolant status M7:
0 = inactive, 1 = active

23

-

Coolant status M8:
0 = inactive, 1 = active

Channel data

25

1

-

Channel number

Cycle parameters

30

1

-

Set-up clearance

2

-

Hole depth / milling depth

3

-

Plunging depth

4

-

Feed rate for plunging

5

-

First side length of pocket

6

-

Second side length of pocket

7

-

First side length of slot

8

-

Second side length of slot

9

-

Radius of circular pocket

10

-

Feed rate for milling

11

-

Rotational direction of the milling path

12

-

Dwell time

13

-

Thread pitch for Cycles 17 and 18

14

-

Finishing allowance

15

-

Roughing angle

21

-

Probing angle

22

-

Probing path

23

-

Probing feed rate

48

-

Tolerance

49

-

HSC mode (Cycle 32 Tolerance)

50

-

Tolerance for rotary axes (Cycle 32 Tolerance)

52

Q parameter number

Type of transfer parameter for user cycles:
1: Cycle parameter not programmed in CYCL DEF
0: Cycle parameter numerically programmed in CYCL DEF (Q parameter)
1: Cycle parameter programmed as string in CYCL DEF (Q parameter)

60

-

Clearance height (touch probe cycles 30 to 33)

61

-

Inspection (touch probe cycles 30 to 33)

62

-

Cutting edge measurement (touch probe cycles 30 to 33)

63

-

Q parameter number for the result (touch probe cycles 30 to 33)

64

-

Q parameter type for the result (touch probe cycles 30 to 33)
1 = Q, 2 = QL, 3 = QR

70

-

Multiplier for feed rate (cycles 17 and 18)

Modal status

35

1

-

Dimensions:
0 = absolute (G90)
1 = incremental (G91)

2

-

Radius compensation:
0 = R0
1 = RR/RL
10 = Face milling
11 = Peripheral milling

Data for SQL tables

40

1

-

Result code for the last SQL command. If the last result code was 1 (=error), the error code is transferred as the return code.

Data from the tool table

50

1

Tool no.

Tool length L

2

Tool no.

Tool radius R

3

Tool no.

Tool radius R2

4

Tool no.

Oversize for tool length DL

5

Tool no.

Tool radius oversize DR

6

Tool no.

Tool radius oversize DR2

7

Tool no.

Tool locked TL
0 = not locked, 1 = locked

8

Tool no.

Number of the replacement tool RT

9

Tool no.

Maximum tool age TIME1

10

Tool no.

Maximum tool age TIME2

11

Tool no.

Current tool age CUR.TIME

12

Tool no.

PLC status

13

Tool no.

Maximum tooth length LCUTS

14

Tool no.

Maximum plunge angle ANGLE

15

Tool no.

TT: Number of tool teeth CUT

16

Tool no.

TT: Wear tolerance for length, LTOL

17

Tool no.

TT: Wear tolerance for radius, RTOL

18

Tool no.

TT: Direction of rotation DIRECT
0 = positive, 1 = negative

19

Tool no.

TT: Offset in plane R-OFFS
R = 99999.9999

20

Tool no.

TT: Offset in length L-OFFS

21

Tool no.

TT: Breakage tolerance for length, LBREAK

22

Tool no.

TT: Breakage tolerance for radius, RBREAK

28

Tool no.

Maximum speed NMAX

32

Tool no.

Point angle TANGLE

34

Tool no.

LIFTOFF allowed
(0 = No, 1 = Yes)

35

Tool no.

Wear tolerance for radius R2TOL

36

Tool no.

Tool type TYPE
(miller = 0, grinder = 1, ... touch probe = 21)

37

Tool no.

Corresponding line in the touch-probe table

38

Tool no.

Timestamp of last use

39

Tool no.

ACC

40

Tool no.

Pitch for thread cycles

41

Tool no.

AFC: reference load

42

Tool no.

AFC: overload early warning

43

Tool no.

AFC: overload NC stop

44

Tool no.

Exceeding the tool life

45

Tool no.

Front-face width of indexable insert (RCUTS)

46

Tool no.

Usable length of the milling cutter

47

Tool no.

Neck radius of the milling cutter (RN)

Data from the pocket table

51

1

Pocket number

Tool number

2

Pocket number

0 = no special tool
1 = special tool

3

Pocket number

0 = no fixed pocket
1 = fixed pocket

4

Pocket number

0 = pocket not locked
1 = pocket locked

5

Pocket number

PLC status

Determine the tool pocket

52

1

Tool no.

Pocket number

2

Tool no.

Tool magazine number

File information

56

1

-

Number of lines of the tool table

2

-

Number of lines of the active datum table

4

-

Number of rows in a freely definable table that has been opened with FN 26: TABOPEN

Tool data for T and S strobes

57

1

T code

Tool number
IDX0 = T0 strobe (store tool), IDX1 = T1 strobe (load tool), IDX2 = T2 strobe (prepare tool)

2

T code

Tool index
IDX0 = T0 strobe (store tool), IDX1 = T1 strobe (load tool), IDX2 = T2 strobe (prepare tool)

5

-

Spindle speed
IDX0 = T0 strobe (store tool), IDX1 = T1 strobe (load tool), IDX2 = T2 strobe (prepare tool)

Values programmed in TOOL CALL

60

1

-

Tool number T

2

-

Active tool axis
0 = X 1 = Y
2 = Z 6 = U
7 = V 8 = W

3

-

Spindle speed S

4

-

Oversize for tool length DL

5

-

Tool radius oversize DR

6

-

Automatic TOOL CALL
0 = Yes, 1 = No

7

-

Tool radius oversize DR2

8

-

Tool index

9

-

Active feed rate

10

-

Cutting speed [mm/min]

Values programmed in TOOL DEF

61

0

Tool no.

Read the number of the tool change sequence:
0 = Tool already in spindle
1 = Change between external tools
2 = Change from internal to external tool
3 = Change from special tool to external tool
4 = Load external tool
5 = Change from external to internal tool
6 = Change from internal to internal tool
7 = Change from special tool to internal tool
8 = Load internal tool
9 = Change from external tool to special tool
10 = Change from special tool to internal tool
11 = Change from special tool to special tool
12 = Load special tool
13 = Unload external tool
14 = Unload internal tool
15 = Unload special tool

1

-

Tool number T

2

-

Length

3

-

Radius

4

-

Index

5

-

Tool data programmed in TOOL DEF
1 = Yes, 0 = No

Values for LAC and VSC

71

0

0

Index of the NC axis for which the LAC weighing run will be performed or was last performed (X to W = 1 to 9)

2

Total inertia determined by the LAC weighing run in [kgm2] (with A/B/C rotary axes) or total mass in [kg] (with X/Y/Z linear axes)

1

0

Cycle 957 Retraction from thread

Freely available memory area for OEM cycles

72

0-39

0 to 30

Freely available memory area for OEM cycles. The values are only reset by the control during a control reboot (= 0).
With “Cancel,” the values are not reset to the value that they had at the time of execution.
Up to and including 597110-11: only NR 0-9 and IDX 0-9
Starting with 597110-12: NR 0-39 and IDX 0-30

Freely available memory area for user cycles

73

0-39

0 to 30

Freely available memory area for user cycles The values are only reset by the control during a control reboot (= 0).
With “Cancel,” the values are not reset to the value that they had at the time of execution.
Up to and including 597110-11: only NR 0-9 and IDX 0-9
Starting with 597110-12: NR 0-39 and IDX 0-30

Read minimum and maximum spindle speed

90

1

Spindle ID

Minimum spindle speed of the lowest gear stage. If no gear stages are configured, CfgFeedLimits/minFeed of the first parameter set of the spindle is evaluated.
Index 99 = active spindle

2

Spindle ID

Maximum spindle speed from the highest gear stage. If no gear stages are configured, CfgFeedLimits/maxFeed of the first parameter set of the spindle is evaluated.
Index 99 = active spindle

Tool compensation

200

1

1 = without oversize 2 = with oversize 3 = with oversize and oversize from TOOL CALL

Active radius

2

1 = without oversize 2 = with oversize 3 = with oversize and oversize from TOOL CALL

Active length

3

1 = without oversize 2 = with oversize 3 = with oversize and oversize from TOOL CALL

Rounding radius R2

6

Tool no.

Tool length
Index 0= active tool

Coordinate transformations

210

1

-

Basic rotation (manual)

2

-

Programmed rotation

3

-

Active mirror axis. Bits 0 to 2 and 6 to 8:
Axes X, Y, Z and U, V, W

4

Axis

Active scaling factor
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

5

Rotary axis

3D-ROT
Index: 1 to 3 (A, B, C)

6

-

Tilt working plane in Program Run operating modes
0 = Not active
1 = Active

7

-

Tilt working plane in Manual operating modes
0 = Not active
1 = Active

8

QL parameter no.

Angle of misalignment between spindle and tilted coordinate system.
Projects the angle specified in the QL parameter from the input coordinate system to the tool coordinate system. If IDX is omitted, the angle 0 is used for projection.

10

-

Type of definition of the active tilt:
0 = no tilt—is returned if, both in Manual Operation and in the automatic modes, no tilt is active.
1 = axial
2 = spatial angle

11

-

Coordinate system for manual movements:
0 = Machine coordinate system M-CS
1 = Working plane coordinate system WPL-CS
2 = Tool coordinate system T-CS
4 = Workpiece coordinate system W-CS

12

Axis

Correction in working plane coordinate system WPL-CS
(FUNCTION TURNDATA CORR WPL or FUNCTION CORRDATA WPL)
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

Active coordinate system

211

-

1 = input system (default)
2 = REF system
3 = tool change system

Special transformations in turning mode

215

1

-

Angle for the precession of the input system in the XY plane in turning mode. To reset the transformation the value 0 must be entered for the angle. This transformation is used in connection with Cycle 800 (parameter Q497).

3

1-3

Reading out of the spatial angle written with NR2
Index: 1 to 3 (rotA, rotB, rotC)

Current datum shift

220

2

Axis

Current datum shift in [mm]
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

3

Axis

Read the difference between reference point and preset.
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

4

Axis

Read OEM offset values..
Index: 1 to 9 (X_OFFS, Y_OFFS, Z_OFFS,... )

Traverse range

230

2

Axis

Negative software limit switches
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

3

Axis

Positive software limit switches
Index: 1 to 9 (X, Y, Z, A, B, C, U, V, W)

5

-

Software limit switch on or off:
0 = on, 1 = off
For modulo axes, either both the upper and lower limits or no limit at all must be set.

Read the nominal position in the REF system

240

1

Axis

Current nominal position in the REF system

Read the nominal position in the REF system, including offsets (handwheel, etc.)

241

1

Axis

Current nominal position in the REF system

Nominal positions of the physical axes in the REF system

245

1

Axis

Current nominal positions of the physical axes in the REF system

Read the current position in the active coordinate system

270

1

Axis

Current nominal position in the input system
When called while tool radius compensation is active, the function supplies the uncompensated positions for the principal axes X, Y, and Z. If the function is called for a rotary axis and tool radius compensation is active, an error message is issued.
Index: 1 to 9 ( X, Y, Z, A, B, C, U, V, W )

Read the current position in the active coordinate system, including offsets (handwheel, etc.)

271

1

Axis

Current nominal position in the input system

Read information to M128

280

1

-

M128 active:
1 = Yes, 0 = No

3

-

Condition of TCPM after Q No.:
Q No. + 0: TCPM active, 0 = no, 1 = yes
Q No. + 1: AXIS, 0 = POS, 1 = SPAT
Q No. + 2: PATHCTRL, 0 = AXIS, 1 = VECTOR
Q No. + 3: Feed rate, 0 = F TCP, 1 = F CONT

Machine kinematics

290

5

-

0: Temperature compensation not active
1: Temperature compensation active

10

-

Index of the machine kinematics from Channels/ChannelSettings/CfgKinList/kinCompositeModels programmed in FUNCTION MODE MILL or FUNCTION MODE TURN
1 = Not programmed.

Read data of the machine kinematics

295

1

QS parameter no.

Read the axis names of the active 3-axis kinematics. The axis names are written according to QS(IDX), QS(IDX+1), and QS(IDX+2).
0 = Operation successful

2

0

Is FACING HEAD POS function active?
1 = Yes, 0 = No

4

Rotary axis

Read whether the defined rotary axis participates in the kinematic calculation.
1 = Yes, 0 = No
(A rotary axis can be excluded from the kinematics calculating using M138.)
Index: 4, 5, 6 ( A, B, C )

5

Secondary axis

Read whether the given secondary axis is used in the kinematics model.
–1 = Axis not in the kinematics model
0 = Axis is not included in the kinematics calculation:

6

Axis

Angle head: Displacement vector in the basic coordinate system B-CS through angle head
Index: 1, 2, 3 ( X, Y, Z )

7

Axis

Angle head: Direction vector of the tool in the basic coordinate system B-CS
Index: 1, 2, 3 ( X, Y, Z )

10

Axis

Determine programmable axes. Determine the axis ID associated with the specified axis index (index from CfgAxis/axisList).
Index: 1 to 9 ( X, Y, Z, A, B, C, U, V, W )

11

Axis ID

Determine programmable axes. Determine the index of the axis (X = 1, Y = 2, ...) for the specified axis ID
Index: Axis ID (index from CfgAxis/axisList)

Modify the geometrical behavior

310

20

Axis

Diameter programming: 1 = on, 0 = off

126

-

M126: 1 = on, 0 = off

Current system time

320

1

0

System time in seconds that have elapsed since 01.01.1970, 00:00:00 (real time).

1

System time in seconds that have elapsed since 01.01.1970, 00:00:00 (look-ahead calculation).

3

-

Read the processing time of the current NC program.

Formatting of system time

321

0

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: DD.MM.YYYY hh:mm:ss

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: DD.MM.YYYY hh:mm:ss

1

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: D.MM.YYYY h:mm:ss

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: D.MM.YYYY h:mm:ss

2

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: D.MM.YYYY h:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: D.MM.YYYY h:mm

3

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: D.MM.YY h:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: D.MM.YY h:mm

4

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YYYY-MM-DD hh:mm:ss

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YYYY-MM-DD hh:mm:ss

5

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YYYY-MM-DD hh:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YYYY-MM-DD hh:mm

6

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YYYY-MM-DD h:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YYYY-MM-DD h:mm

7

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YY-MM-DD h:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YY-MM-DD h:mm

8

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: DD.MM.YYYY

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: DD.MM.YYYY

9

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: D.MM.YYYY

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: D.MM.YYYY

10

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: D.MM.YY

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: D.MM.YY

11

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YYYY-MM-DD

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YYYY-MM-DD

12

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: YY-MM-DD

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: YY-MM-DD

13

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: hh:mm:ss

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: hh:mm:ss

14

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: h:mm:ss

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: h:mm:ss

15

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: h:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: h:mm

16

0

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time)
Format: DD.MM.YYYY hh:mm

1

Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation)
Format: DD.MM.YYYY hh:mm

20

0

The current calendar week number according to ISO 8601 (real time)

1

The current calendar week number according to ISO 8601 (look-ahead calculation)

Global Program Settings (GPS): Global activation status

330

0

-

0 = No Global Program Settings active
1 = Any GPS settings active

Global Program Settings (GPS): Individual activation status

331

0

-

0 = No Global Program Settings active
1 = Any GPS settings active

1

-

GPS: Basic rotation
0 = Off, 1 = On

3

Axis

GPS: Mirroring
0 = Off, 1 = On
Index: 1 - 6 (X, Y, Z, A, B, C)

4

-

GPS: Shift in the modified workpiece system
0 = Off, 1 = On

5

-

GPS: Rotation in input system
0 = Off, 1 = On

6

-

GPS: Feed rate factor
0 = Off, 1 = On

8

-

GPS: Handwheel superimpositioning
0 = Off, 1 = On

10

-

GPS: Virtual tool axis VT
0 = Off, 1 = On

15

-

GPS: Selection of the handwheel coordinate system
0 = Machine coordinate system M-CS
1 = Workpiece coordinate system W-CS
2 = Modified workpiece coordinate system mW-CS
3 = Working plane coordinate system WPL-CS

16

-

GPS: Shift in the workpiece system
0 = Off, 1 = On

17

-

GPS: Axis offset
0 = Off, 1 = On

Global Program Settings (GPS)

332

1

-

GPS: Angle of a basic rotation

3

Axis

GPS: Mirroring
0 = Not mirrored, 1 = Mirrored
Index: 1 to 6 ( X, Y, Z, A, B, C )

4

Axis

GPS: Shift in the modified workpiece coordinate system mW-CS
Index: 1 to 6 ( X, Y, Z, A, B, C )

5

-

GPS: Angle of rotation in input coordinate system I-CS

6

-

GPS: Feed rate factor

8

Axis

GPS: Handwheel superimpositioning
Maximum value
Index: 1 to 10 ( X, Y, Z, A, B, C, U, V, W, VT )

9

Axis

GPS: Value for handwheel superimpositioning
Index: 1 to 10 ( X, Y, Z, A, B, C, U, V, W, VT )

16

Axis

GPS: Shift in the workpiece coordinate system W-CS
Index: 1 to 3 ( X, Y, Z )

17

Axis

GPS: Axis offset
Index: 4 to 6 ( A, B, C )

TS touch trigger probe

350

50

1

Touch probe type:
0: TS120, 1: TS220, 2: TS440,
3: TS630, 4: TS632, 5: TS640,
6: TS444, 7: TS740

2

Line in the touch-probe table

51

-

Effective length

52

1

Effective radius of the stylus tip

2

Rounding radius

53

1

Center offset (reference axis)

2

Center offset (minor axis)

54

-

Spindle-orientation angle in degrees (center offset)

55

1

Rapid traverse

2

Measuring feed rate

3

Feed rate for pre-positioning:
FMAX_PROBE or FMAX_MACHINE

56

1

Maximum measuring range

2

Set-up clearance

57

1

Spindle orientation possible
0=No, 1=Yes

2

Angle of spindle orientation in degrees

TT tool touch probe for tool measurement

350

70

1

TT: Touch probe type

2

TT: Line in the tool touch probe table

3

TT: Designation of the active line in the touch-probe table

4

TT: Touch probe input

71

1/2/3

TT: Touch probe center (REF system)

72

-

TT: Touch probe radius

75

1

TT: Rapid traverse

2

TT: Measuring feed rate with stationary spindle

3

TT: Measuring feed rate with rotating spindle

76

1

TT: Maximum probing path

2

TT: Safety clearance for linear measurement

3

TT: Safety clearance for radius measurement

4

TT: Distance from the lower edge of the cutter to the upper edge of the stylus

77

-

TT: Spindle speed

78

-

TT: Probing direction

79

-

TT: Activate radio transmission

-

TT: Stop probing movement upon stylus deflection

100

-

Distance after which the probe is deflected during touch probe simulation

Preset from touch probe cycle (probing results)

360

1

Coordinate

Last preset of a manual touch probe cycle, or last touch point from Cycle 0 (input coordinate system).
Compensations: length, radius, and center offset

2

Axis

Last preset of a manual touch probe cycle, or last touch point from Cycle 0 (machine coordinate system, only axes from the active 3D kinematics are allowed as index).
Compensation: only center offset

3

Coordinate

Result of measurement in the input system of touch probe Cycles 0 and 1. The measurement result is read out in the form of coordinates. Compensation: only center offset

4

Coordinate

Last preset of a manual touch probe cycle, or last touch point from Cycle 0 (workpiece coordinate system). The measurement result is read in the form of coordinates.
Compensation: only center offset

5

Axis

Axis values, not compensated

6

Coordinate / axis

Readout of the measurement results in the form of coordinates / axis values in the input system from probing operations.
Compensation: only length

10

-

Oriented spindle stop

11

-

Error status of probing:
0: Probing was successful
1: Touch point not reached
2: Touch probe already deflected at the start of the probing process

Settings for touch probe cycles

370

2

-

Rapid traverse for measurement

3

-

Machine rapid traverse as rapid traverse for measurement

5

-

Angle tracking on/off

6

-

Automatic measuring cycles: interruption with info about on/off

7

-

Reaction when the automatic 14xx measuring cycle does not reach the probing point:
0 = Cancellation
1 = Warning
2 = No message
In case of values 1 and 2, the measurement result must be evaluated, and a corresponding reaction is required.

Read values from or write values to the active datum table

500

Row number

Column

Read values

Read values from or write values to the preset table (basic transformation)

507

Row number

1-6

Read values

Read axis offsets from or write axis offsets to the preset table

508

Row number

1-9

Read values

Data for pallet machining

510

1

-

Active line

2

-

Current pallet number. Read value of the NAME column of the last PAL-type entry. If the column is empty or does not contain a numerical value, a value of –1 is returned.

3

-

Active row of the pallet table.

4

-

Last line of the NC program for the current pallet.

5

Axis

Tool-oriented editing:
Clearance height is programmed:
0 = No, 1 = Yes
Index: 1 - 9 ( X, Y, Z, A, B, C, U, V, W )

6

Axis

Tool-oriented editing:
Clearance height
The value is invalid if ID510 NR5 returns the value 0 with the corresponding IDX.
Index: 1 - 9 ( X, Y, Z, A, B, C, U, V, W )

10

-

Row number up to which the pallet table is to be searched during block scan.

20

-

Type of pallet editing?
0 = Workpiece-oriented
1 = Tool oriented

21

-

Automatic continuation after NC error:
0 = Locked
1 = Active
10 = Abort continuation
11 = Continuation with the rows in the pallet table that would have been executed next if not for the NC error
12 = Continuation with the row in the pallet table in which the NC error arose
13 = Continuation with the next pallet

Read data from the point table

520

Row number

10

Read value from active point table.

11

Read value from active point table.

1-3 X/Y/Z

Read value from active point table.

Read or write the active preset

530

1

-

Number of the active preset in the active preset table.

Active pallet preset

540

1

-

Number of the active pallet preset.
Returns the number of the active preset. If no pallet preset is active, then the function returns the value -1.

2

-

Number of the active pallet preset.
Same as NO1.

Values for the basic transformation of the pallet preset

547

Row number

Axis

Read the basic transformation values from the pallet-preset table..
Index: 1 to 6 (X, Y, Z, SPA, SPB, SPC)

Axis offsets from the pallet preset table

548

Row number

Offset

Read the axis-offset values from the pallet preset table..
Index: 1 to 9 ( X_OFFS, Y_OFFS, Z_OFFS,... )

OEM offset

558

Row number

Offset

Read values for OEM offset..
Index: 4 to 9 ( A_OFFS, B_OFFS, C_OFFS,... )

Read and write the machine status

590

2

1-30

Freely available; not deleted during program selection.

3

1-30

Freely available; not deleted during a power failure (persistent storage).

Read/write look-ahead parameter of a single axis (at machine level)

610

1

-

Minimum feed rate (MP_minPathFeed) in mm/min

2

-

Minimum feed rate at corners (MP_minCornerFeed) in mm/min

3

-

Feed-rate limit for high speeds (MP_maxG1Feed) in mm/min

4

-

Max. jerk at low speeds (MP_maxPathJerk) in m/s3

5

-

Max. jerk at high speeds (MP_maxPathJerkHi) in m/s3

6

-

Tolerance at low speeds (MP_pathTolerance) in mm

7

-

Tolerance at high speeds (MP_pathToleranceHi) in mm

8

-

Max. derivative of jerk (MP_maxPathYank) in m/s4

9

-

Tolerance factor for curve machining (MP_curveTolFactor)

10

-

Factor for max. permissible jerk at curvature changes (MP_curveJerkFactor)

11

-

Maximum jerk with probing movements (MP_pathMeasJerk)

12

-

Angle tolerance for machining feed rate (MP_angleTolerance)

13

-

Angle tolerance for rapid traverse (MP_angleToleranceHi)

18

-

Radial acceleration with machining feed rate (MP_maxTransAcc)

19

-

Radial acceleration with rapid traverse (MP_maxTransAccHi)

20

Index of physical axis

Max. feed rate (MP_maxFeed) in mm/min

21

Index of physical axis

Max. acceleration (MP_maxAcceleration) in m/s2

22

Index of physical axis

Maximum transition jerk of the axis in rapid traverse (MP_axTransJerkHi) in m/s2

23

Index of physical axis

Maximum transition jerk of the axis during machining free rate (MP_axTransJerk) in m/s3

24

Index of physical axis

Acceleration feedforward control (MP_compAcc)

25

Index of physical axis

Axis-specific jerk at low speeds (MP_axPathJerk) in m/s3

26

Index of physical axis

Axis-specific jerk at high speeds (MP_axPathJerkHi) in m/s3

27

Index of physical axis

More precise tolerance examination in corners (MP_reduceCornerFeed)
0 = deactivated, 1 = activated

28

Index of physical axis

DCM: Maximum tolerance for linear axes in mm (MP_maxLinearTolerance)

29

Index of physical axis

DCM: Maximum angle tolerance in [°] (MP_maxAngleTolerance)

30

Index of physical axis

Tolerance monitoring for successive threads (MP_threadTolerance)

31

Index of physical axis

Form (MP_shape) of the axisCutterLoc filter
0: Off
1: Average
2: Triangle
3: HSC
4: Advanced HSC

32

Index of physical axis

Frequency (MP_frequency) of the axisCutterLoc filter in Hz

33

Index of physical axis

Form (MP_shape) of the axisPosition filter
0: Off
1: Average
2: Triangle
3: HSC
4: Advanced HSC

34

Index of physical axis

Frequency (MP_frequency) of the axisPosition filter in Hz

35

Index of physical axis

Order of the filter for Manual operating mode (MP_manualFilterOrder)

36

Index of physical axis

HSC mode (MP_hscMode) of the axisCutterLoc filter

37

Index of physical axis

HSC mode (MP_hscMode) of the axisPosition filter

38

Index of physical axis

Axis-specific jerk for probing movements (MP_axMeasJerk)

39

Index of physical axis

Weighting of the filter error for calculating filter deviation (MP_axFilterErrWeight)

40

Index of physical axis

Maximum filter length of position filter (MP_maxHscOrder)

41

Index of physical axis

Maximum filter length of CLP filter (MP_maxHscOrder)

42

-

Maximum feed rate of the axis at machining feed rate (MP_maxWorkFeed)

43

-

Maximum path acceleration at machining feed rate (MP_maxPathAcc)

44

-

Maximum path acceleration at rapid traverse (MP_maxPathAccHi)

45

-

Shape of the smoothing filter
(CfgSmoothingFilter/shape)
0 = Off
1 = Average
2 = Triangle

46

-

Order of smoothing filter (only odd-numbered values)
(CfgSmoothingFilter/order)

49

-

Filter reduction mode
(CfgPositionFilter/timeGainAtStop)
0 = Off
1 = NoOvershoot
2 = FullReduction

51

Index of physical axis

Compensation of following error in the jerk phase (MP_IpcJerkFact)

52

Index of physical axis

kv factor of the position controller in 1/s (MP_kvFactor)

53

Index of physical axis

Radial jerk, normal feed rate (MP_maxTransJerk)

54

Index of physical axis

Radial jerk, high feed rate (MP_maxTransJerkHi)

Read or write look-ahead parameters of a single axis (at cycle level)

613

see ID610

see ID610

Same as ID610 but is only in effect at the cycle level. Overwrite values from the machine configuration and values at the machine level. FN functions ID610, ID611, ID613

Measure the maximum utilization of an axis

621

0

Index of physical axis

Conclude measurement of the dynamic load and save the result in the specified Q parameter.

Read SIK contents

630

0

Option no.

You can explicitly determine whether the SIK option given under IDX has been set or not.
1 = option is enabled
0 = option is not enabled

1

-

You can determine whether a Feature Content Level (for upgrade functions) is set, and which one.
1 = No FCL is set
<No.> = FCL that is set

2

-

Read serial number of the SIK
-1 = No valid SIK in the system

3

-

Read the SIK type (generation)
1 = SIK1 or no SIK
2 = SIK2

4

Option number (4 digits)

Read the status of a software option (only available with SIK2)
0 = Not enabled
1 or higher = Number of enabled options

10

-

Define the type of control:
0 = iTNC 530
1 = NCK-based control (TNC7, TNC 640, TNC 620, TNC 320, TNC 128, PNC 610, ...)

Read Functional Safety (FS) information

820

1

-

FS limitations:
0 = No Functional Safety (FS)
1 = Guard door open (SOM1)
2 = Guard door open (SOM2)
3 = Guard door open (SOM3)
4 = Guard door open (SOM4)
5 = All guard doors closed

Counter

920

1

-

Planned workpieces.
In Test Run operating mode the counter generally generates the value 0.

2

-

Already machined workpieces.
In Test Run operating mode the counter generally generates the value 0.

12

-

Workpieces still to be machined.
In Test Run operating mode the counter generally generates the value 0.

Read and write data of current tool

950

1

-

Tool length L

2

-

Tool radius R

3

-

Tool radius R2

4

-

Oversize for tool length DL

5

-

Tool radius oversize DR

6

-

Tool radius oversize DR2

7

-

Tool locked TL
0 = not locked, 1 = locked

8

-

Number of the replacement tool RT

9

-

Maximum tool age TIME1

10

-

Maximum tool age TIME2 at TOOL CALL

11

-

Current tool age CUR.TIME

12

-

PLC status

13

-

Tooth length in the tool axis LCUTS

14

-

Maximum plunge angle ANGLE

15

-

TT: Number of tool teeth CUT

16

-

TT: Wear tolerance for length LTOL

17

-

TT: Wear tolerance for radius RTOL

18

-

TT: Direction of rotation DIRECT
0 = positive, 1 = negative

19

-

TT: Offset in plane R-OFFS
R = 99999.9999

20

-

TT: Offset in length L-OFFS

21

-

TT: Break tolerance for length LBREAK

22

-

TT: Break tolerance for radius RBREAK

28

-

Maximum spindle speed [rpm] NMAX

32

-

Point angle TANGLE

34

-

LIFTOFF allowed
(0 = No, 1 = Yes)

35

-

Wear tolerance for radius R2TOL

36

-

Tool type TYPE (miller = 0, grinder = 1, ... touch probe = 21)

37

-

Corresponding line in the touch-probe table

38

-

Timestamp of last use

39

-

ACC

40

-

Pitch for thread cycles

41

-

AFC: reference load

42

-

AFC: overload early warning

43

-

AFC: overload NC stop

44

-

Exceeding the tool life

45

-

Front-face width of indexable insert (RCUTS)

46

-

Usable length of the milling cutter

47

-

Neck radius of the milling cutter (RN)

48

-

Radius at the tool tip (R_TIP)

Tool usage and tooling

975

1

-

Tool usage test for the current NC program:
Result 2: Test not possible, function disabled in the configuration
Result 1: Test not possible, tool usage file missing
Result 0: Test OK, all tools available
Result 1: Test not OK

2

Line

Check availability of the tools required in the pallet from line IDX in the current pallet table.
3 = No pallet is defined in row IDX, or function was called outside of pallet editing
2 / 1 / 0 / 1 see NO1

Touch probe cycles and coordinate transformations

990

1

-

Approach behavior:
0 = Standard behavior
1 = Approach probing position without compensation. Effective radius, set-up clearance is zero

2

16

Automatic / Manual machine operating modes

4

-

0 = Stylus not deflected
1 = Stylus deflected

6

-

TT tool touch probe active?
1 = Yes
0 = No

8

-

Momentary spindle angle in [°]

10

QS parameter no.

Determine the tool number from the tool name. The return value depends on the rules configured for the search of the replacement tool.
If there are multiple tools with the same name, the first tool from the tool table will be selected.
If the tool selected by these rules is locked, a replacement tool will be returned.
1: No tool with the specified name found in the tool table or all qualifying tools are locked.

16

0

0 = Transfer control over the channel spindle to the PLC,
1 = Assume control over the channel spindle

1

0 = Pass tool spindle control to the PLC,
1 = Take control of the tool spindle

19

-

Suppress touch prove movement in cycles:
0 = Movement will be suppressed (CfgMachineSimul/simMode parameter not equal to FullOperation or Test Run operating mode is active)
1 = Movement will be performed (CfgMachineSimul/simMode parameter = FullOperation, can be programmed for testing purposes)

28

-

Read inclination angle of the current tool spindle

Status of execution

992

10

-

Block scan active
1 = yes, 0 = no

11

-

Block scan—information on block scan:
0 = NC program started without block scan
1 = Iniprog system cycle is run before block scan
2 = Block scan is running
3 = Functions are being updated
1 = Iniprog cycle was canceled before block scan
2 = Cancellation during block scan
3 = Cancellation of the block scan after the search phase, before or during the update of functions
99 = Implicit cancellation

12

-

Type of canceling for interrogation within the OEM_CANCEL macro:
0 = No cancellation
1 = Cancellation due to error or emergency stop
2 = Explicit cancellation with internal stop after stop in the middle of the block
3 = Explicit cancellation with internal stop after stop at the end of a block

14

-

Number of the last FN 14 error

16

-

Real execution active?
1 = execution,
0 = simulation

17

-

2D graphics during programming active?
1 = Yes
0 = No

18

-

Live programming graphics ( AUTO DRAW soft key) active?
1 = Yes
0 = No

20

-

Information on combined milling/turning mode of operation:
0 = Milling (after FUNCTION MODE MILL)
1 = Turning (after FUNCTION MODE TURN)
10 = Execute the operations for the turning-to-milling transition
11 = Execute the operations for the milling-to-turning transition

30

-

Interpolation of multiple axes permitted?
0 = No (e.g. for straight cut control)
1 = yes

31

-

R+/R possible/permitted in MDI mode?
0 = No
1 = Yes

32

Cycle number

Single cycle enabled:
0 = No
1 = Yes

33

-

Write-access enabled for DNC (Python scripts) for executed entries in the pallet table:
0 = No
1 = Yes

40

-

Copy tables in Test Run operating mode?
Value 1 will be set when a program is selected and when the RESET+START soft key is pressed. The iniprog.h system cycle will then copy the tables and reset the system datum.
0 = no
1 = yes

41

50

Read units of measure for system datum ID50 (access to tool table). Default: metric units.
0 = Metric
1 = Unit of the active NC program

507

Reading of the units of measure for accessing the preset table. Default: metric units.
0 = Metric
1 = Unit of the active NC program

101

-

M101 active (visible condition)?
0 = no
1 = yes

136

-

M136 active?
0 = no
1 = yes

Activate machine parameter subfile

1020

13

QS parameter no.

Has a machine parameter subfile with path from QS number (IDX) been loaded?
1 = Yes
0 = No

Configuration settings for cycles

1030

1

-

Display the Spindle is not rotating error message
(CfgGeoCycle/displaySpindleErr)
0 = No, 1 = Yes

2

-

Display the Check the depth sign error message
(CfgGeoCycle/displayDepthErr)
0 = No, 1 = Yes

Data transfer between HEIDENHAIN cycles and OEM macros

1031

1

0

Component monitoring: counter of the measurement. Cycle 238 Measure machine data automatically increments this counter.

1

Component monitoring: Type of measurement
–1 = No measurement
0 = Circular interpolation test
1 = Waterfall chart test
2 = Frequency response
3 = Envelope curve spectrum
4 = Advanced frequency response

2

Component monitoring: Index of the axis from CfgAxes\axisList

3 – 9

Component monitoring: further arguments depend on the measurement

2

3 – 9

Component monitoring: further arguments depend on the measurement

3

0

KinematicsOpt:
Read the current cycle number (450-453)

100

-

Component monitoring: optional names of the monitoring tasks, as specified in System\Monitoring\CfgMonComponent. After completion of the measurement, the monitoring tasks stated here are executed consecutively. When assigning the input parameters, remember to separate the listed monitoring tasks by commas.

User settings for the user interface

1070

1

-

Feed rate limit of soft key FMAX; 0 = FMAX is inactive

Bit test

2300

Number

Bit number

This function checks whether a bit has been set in a number. The number to be checked is transferred as NR, the bit to be searched for as IDX, with IDX0 designating the least significant bit. To call this function for large numbers, make sure to transfer NR as a Q parameter.
0 = Bit not set
1 = Bit set

Program information (system string)

10010

1

0/1/2/3

IDX0 = Complete path of the current main program of pallet program
IDX1 = File path of the directory where the NC program is located
IDX2 = Name of the NC program, without the path and file extension
IDX3 = File extension of the NC program

2

0/1/2/3

IDX0 = Complete path of the NC program visible in the block display
IDX1 = File path of the directory where the NC program is located
IDX2 = Name of the NC program without the path and file extension
IDX3 = File extension of the NC program

3

-

Path of the cycle selected with SEL CYCLE or CYCLE DEF 12 PGM CALL, or path of the currently active cycle

10

-

Path of the NC program selected with SEL PGM "...".

Indexed access to QS parameters

10015

20

QS parameter no.

Reads QS(IDX)

30

QS parameter no.

Returns the string that you obtain if you replace anything except for letters and digits in QS(IDX) by '_'.

Read channel data (system string)

10025

1

-

Name of machining channel (key)

Read data for SQL tables (system string)

10040

1

-

Symbolic name of the preset table.

2

-

Symbolic name of the datum table.

3

-

Symbolic name of the pallet preset table.

10

-

Symbolic name of the tool table.

11

-

Symbolic name of the pocket table.

12

-

Symbolic name of the turning tool table

13

-

Symbolic name of the grinding tool table

14

-

Symbolic name of the dressing tool table

21

-

Symbolic name of the compensation table in the T-CS tool coordinate system

22

-

Symbolic name of the compensation table in the WPL-CS working plane coordinate system

Values programmed in the tool call (system string)

10060

1

-

Tool name

Read machine kinematics (system strings)

10290

10

-

Symbolic name of the machine kinematics from Channels/ChannelSettings/CfgKinList/kinCompositeModels programmed in FUNCTION MODE MILL or FUNCTION MODE TURN.

Traverse range switchover (system string)

10300

1

-

Key name of the last active range of traverse

Read current system time (system string)

10321

0 - 16, 20

-

0: DD.MM.YYYY hh:mm:ss
1: D.MM.YYYY h:mm:ss
2: D.MM.YYYY h:mm
3: D.MM.YY h:mm
4: YYYY-MM-D hh:mm:ss
5: YYYY-MM-DD hh:mm
6: YYYY-MM-DD h:mm
7: YY-MM-DD h:mm
8: DD.MM.YYYY
9: D.MM.YYYY
10: D.MM.YY
11: YYYY-MM-DD
12: YY-MM-DD
13: hh:mm:ss
14: h:mm:ss
15: h:mm
16: DD.MM.YYYY hh:mm
20: Calendar week as per ISO 8601
Alternatively, with DAT in SYSSTR(...), a system time in seconds can be provided that is to be used for formatting.

Read data of touch probes (TS, TT) (system string)

10350

50

-

Type of TS probe from TYPE column of the touch probe table (tchprobe.tp)

51

-

Shape of stylus from column STYLUS in the touch probe table (tchprobe.tp).

70

-

Type of TT tool touch probe from CfgTT/type.

73

-

Key name of the active tool touch probe TT from CfgProbes/activeTT.

74

-

Serial number of the active tool touch probe TT from CfgProbes/activeTT.

Read the data for pallet machining (system string)

10510

1

-

Pallet name

2

-

Path of the selected pallet table.

Read version ID of the NC software (system string)

10630

10

-

The string corresponds to the format of the version ID shown (e.g., 340590 09 or 817601 05 SP1)

Read information on unbalance cycle (system string)

10855

1

-

Path of the unbalance calibration table belonging to the active kinematics

Read data of the current tool (system string)

10950

1

-

Current tool name

2

-

Entry from the DOC column of the active tool

3

-

AFC control setting

4

-

Tool-carrier kinematics

5

-

Entry from the DR2TABLE column – file name of the compensation value table for 3D-ToolComp

6

-

Entry from the TSHAPE column - file name of the 3D tool shape (*.stl)

Read information from OEM macros and HEIDENHAIN cycles (system string)

11031

10

-

Returns the selection of the FUNCTION MODE SET <OEM mode> macro as a string.

100

-

Cycle 238: list of key names for component monitoring

101

-

Cycle 238: file names for log file