Skip to main content
Version: 2.6

HEIDENHAIN Best Practices

Read an NC Program Variable

A program variable is sent to HumanOS® by using the following function by Heidenhain:

FN38:SEND

The function FN38 offers the possibility to send messages out of the NC program to other RemoTools based applications. These messages can also contain values from Q-Parameters.

This function is available from NC Software version 34059x-07 without entering any key number. For older software versions, the key number 555343 in the operating mode "Programming" must be entered.

Implement the function in the NC editor:

  1. Press the key Q
  2. Hit the softkey [special funct].
  3. Enter a parameter as text
  4. If Q Parameters are sent, use the %f formatting literal in the text before entering the Q Parameter

Example for Programming a line with FN38: SEND:

FN38: SEND /"Q-Parameter Q1: %f Q2: %f" /+Q1/+Q2
IMPORTANT

The implementation on the NC side differs by manufacturer!

Example for HERMLE C series:

The counter functions:

M54 must be set at the before beginning the program run, or at the very beginning of the program (make sure its only run through once).

Then add the M53 at each cycle end, this will raise the counter by 1 every time the line is passed.

Check the counter value:

Address for reading the counter value:

FN 18: SYSREAD Q1 = ID2000 NR80 IDX72 ;read actual part counter value

Example for DMG DMU series:

Is currently tested.

About Heidenhain Protocol

Probst Stefan <probst@heidenhain.ch>, 31.08.2022 15:47

With an iTNC530 ( 60642x-xx ) 8+1 parallel connections are possible. A test packet is sent after an initial waiting time of 10s. If the connection does not respond, this is then repeated 4 times at intervals of 6s. The TCP connection is then automatically closed in the event of an error. If something like this is detected during a connection attempt, this is reported by the error message E20001750: Too many TCP ports opened on the controller. A restart of the machine causes all connections to be closed immediately.