Heidenhain TNC 640 Training 3: Transferring CAM Programs and File Management

12 November 2026

Mentor CNC Editorial Team

Page 3 of the Heidenhain TNC 640 training series shows how to get a CAM program onto the machine: transfer by USB stick, network drive and TNCremo, copying files, creating folders and backing up. Every operation is laid out as a key-by-key table. Soft-key names follow the HEIDENHAIN user’s manual.

HEIDENHAIN conversational programs use the .H extension and DIN/ISO (G-code) programs use .I. The file posted from CAM must have one of these. Use only letters, digits, dot, underscore and hyphen in file names; other characters can cause problems during transfer.

How do you use the file manager (PGM MGT)?

Heidenhain TNC 640 file manager PGM MGT screen
PGM MGT: drives and directories on the left, files on the right.
Screen areaWhat it shows
Left windowDrives and directories. Subdirectories are expanded and collapsed with -/+ or ENT
Right windowFiles in the selected directory: file name, bytes, status, date and time
Top lineSelected path, e.g. TNC:\AUFTR1\NCPROG\PROG1.H. The full path including drive, directory and extension must not exceed 255 characters
Bottom lineSoft keys: SELECT, COPY, SELECT TYPE, WINDOW, LAST FILES and others

How do you select a drive, directory and file?

StepWhat to doWhat you see
1Press PGM MGTThe file manager opens
2Highlight the drive in the left window, SELECT soft key or ENTThe drive is selected
3Highlight the directory in the left windowThe right window shows the files in it
4SELECT TYPE soft key, then the file type or SHOW ALLOnly files of the chosen type are listed
5Highlight the file in the right window, SELECT or ENTThe file is activated in the operating mode from which you called PGM MGT

Tip: If you type the first letters of the file you are looking for, the cursor jumps to the first program starting with them. Wildcards such as 4*.h can also be used in SELECT TYPE (all .h files starting with 4).

How do you transfer a program from a USB stick to a Heidenhain control?

Caution, data loss: The manual recommends the USB interface only for transferring and backing up. Do not edit or run programs on the USB stick; copy them to the TNC drive first.

TopicWhat the manual says
Supported file systemsMemory sticks, hard disks and floppy drives with FAT/VFAT; CD-ROM with Joliet (ISO9660)
Not supportedOther file systems such as NTFS. The control then shows an error message that it does not support the USB device
USB hubThe same message may appear when a hub is connected; acknowledge it with CE
DetectionA suitable USB device is detected automatically and appears as a separate drive in the directory tree
Drive nameThe machine tool builder may have assigned fixed names to USB devices; see the machine manual
Heidenhain TNC 640 two-window data transfer screen
WINDOW soft key: two-window layout for data transfer.
StepWhat to doWhat you see
1Plug in the USB stick, press PGM MGTThe file manager opens; the USB device appears in the directory tree
2Press the WINDOW soft keyThe screen is split into two windows (data transfer layout)
3In one window use SHOW TREE to select the USB drive and directory, then SHOW FILESThe programs on the USB stick are listed
4In the other window select the target directory on the TNC drive the same wayThe target directory is open
5Move the cursor to the file to transfer (the arrow keys also switch between the windows)The file is highlighted
6COPY soft key, then the OK soft key or ENTA status window shows the copying progress
7Press WINDOW againThe standard file manager view returns

While a large file is written to a USB device, the control shows a write-access dialog until the process is finished. The dialog can be hidden with a soft key; the transfer continues in the background and a warning stays on screen until it is complete.

How do you safely remove the USB stick?

StepWhat to doWhat you see
1Press PGM MGT, move the cursor to the left window–
2Highlight the USB device to be removed–
3Shift the soft-key row, MORE FUNCTIONS soft keyThe additional functions appear
4Shift the soft-key row again and press the soft key for removing USB devicesThe device disappears from the directory tree and the control reports that it can now be removed
5Unplug the USB stick–

How do you copy a file and create a directory?

How do you copy a single program?

StepWhat to doWhat you see
1Move the cursor to the file, COPY soft keyA pop-up window opens
2To copy into the same directory: type the new file name, ENT or OKThe file is copied under the new name
3To copy into another directory: press the soft key for the target directory, select it, ENT or OKThe file is copied there under the same name

The original file is kept in both cases. If the target directory already contains a file with the same name, the control asks whether to overwrite it: OK overwrites, CANCEL does not.

How do you create a new directory?

StepWhat to doWhat you see
1In the left window, highlight the directory in which the new one should be created–
2Press the soft key for a new directoryYou are asked for the name
3Type the directory name, ENT–
4OK soft key (CANCEL to abort)The directory is created

How do you find the programs you opened last?

Press PGM MGT, then the LAST FILES soft key. The control lists the last ten files selected; choose one with the arrow keys and press the OK soft key or ENT.

How do you get programs over the network (Ethernet)?

The TNC has an Ethernet card as standard. If the control is connected to a network, additional drives appear in the left window of the file manager; selecting drives and copying files work the same way on network drives, as far as your access rights allow. The manual asks you to have the network settings made by a network specialist.

Heidenhain TNC 640 network drive mount setup window
Network drive window: Mount and Auto columns.
StepWhat to doWhat you see
1Press PGM MGTThe file manager opens
2Press the network soft key on the second soft-key rowThe network settings appear
3Press the soft key for managing network drivesThe available network drives are listed
ButtonWhat it does
MountConnects the network drive; the Mount column is marked while the connection is active
UnmountEnds the network connection
AutoConnects automatically when the control is switched on; the Auto column is marked
Add / RemoveCreates a new network connection / deletes an existing one
Copy / EditCopies / edits a network connection
ClearClears the status window

How do you transfer programs from a PC with TNCremo?

TNCremo is HEIDENHAIN’s free data transfer software; it works over the serial interface or Ethernet and can be downloaded from the HEIDENHAIN website.

Heidenhain TNCremo data transfer window
TNCremo: PC files at the top (1), TNC files at the bottom (2).
StepWhat to doWhat you see
1Start TNCremo on the PCThe upper window (1) shows the files of the active PC directory
2File, Setup connectionThe lower window (2) shows the file and directory structure of the TNC
3PC to TNC: select the file in the upper window and drag it into the lower windowThe file is transferred to the TNC
4TNC to PC: select the file in the lower window and drag it into the upper windowThe file is transferred to the PC

To control the transfer from the machine instead, select Extras, TNCserver in TNCremo and then copy the files on the TNC with PGM MGT in the two-window layout. Before transferring a program from the TNC to the PC, make sure it has been saved on the TNC; the control saves changes automatically when you switch the operating mode or press PGM MGT.

How is the RS-232 serial interface set for TNCserver?

Heidenhain TNC 640 RS-232 serial interface machine parameters
RS-232 interface settings (machine parameter 106700).

The serial interface is set in the user parameters opened with the MOD key and code number 123, in the RS232 folder. The manual gives these values for transfer with TNCserver:

ParameterValue
Baud rateMust match the setting in TNCserver
Data transfer protocolBLOCKWISE
Data bits7 bits
ParityEVEN
Stop bits1 stop bit
HandshakeRTS_CTS
File systemFE1

With TNCremo the LSV2 protocol is used automatically. According to the manual, blockwise reception and simultaneous execution of the same NC program is not supported. Note the existing values before changing parameters; if in doubt, ask the machine tool builder.

What should you watch when running a CAM program on the machine?

HEIDENHAIN’s manual for setup and running NC programs (SW 10, 2019) gives these recommendations for CAM programs. The ones that concern the operator:

TopicWhat the manual recommends
ReadabilityUse the structuring and commenting functions in large NC programs
Size correctionsIf fits are output from CAM with RL/RR tool radius compensation, the operator can easily make corrections at the machine
Feed ratesIf feed rates for positioning, plunging and milling are defined with Q parameters at the start of the program, they can be changed in one place
Cycle 32 TOLERANCEThe behavior of CAM programs is influenced at the control with Cycle 32; the tolerance should be at least twice the chord error set in the CAM system
RoughingCycle 32 tolerance normally between 0.05 mm and 0.3 mm
High-accuracy finishingTolerance normally between 0.002 mm and 0.006 mm
Finishing for surface qualityTolerance normally between 0.010 mm and 0.020 mm

These values depend on the dynamics of your machine. Some machine tool builders provide an additional cycle for tuning (e.g. Cycle 332); see the machine manual.

How do you back up programs?

HEIDENHAIN recommends saving newly created programs and files to a PC at regular intervals; TNCremo can be used for this. Machine-specific data such as the PLC program and machine parameters should be kept on a separate data carrier; ask the machine tool builder if necessary. Backing up the entire internal memory can take several hours. Delete files you no longer need from time to time so that there is always enough space for system files such as the tool table.

Frequently asked questions

Why doesn’t the Heidenhain control see my USB stick?

The control only supports USB devices with the FAT/VFAT file system. With an NTFS-formatted stick or a USB hub it reports that the device is not supported. Format the stick as FAT or try another one.

Can a program be run directly from the USB stick?

The manual says the USB interface should only be used for transferring and backing up, not for editing or running programs. Copy the program to the TNC drive first.

What happens if a program with the same name already exists?

The control asks whether the file in the target directory should be overwritten. OK overwrites it, CANCEL does not. To keep the old version, copy it under a different name first.

Which extension should the CAM program have?

.H for HEIDENHAIN conversational programs and .I for DIN/ISO (G-code) programs.

Is TNCremo free?

Yes. TNCremo is HEIDENHAIN’s free data transfer software and can be downloaded from the HEIDENHAIN website.

Heidenhain TNC 640 training series

Safety notice and disclaimer

Check every new CAM program first graphically in Test Run, then on the machine in single block with a low feed override. Soft-key names and positions may differ with the NC software version and machine builder; the machine manual always takes priority.

Mentor CNC cannot be held responsible for tool breakage, scrapped parts, machine damage, data loss or accidents resulting from the use of the information on this page. Responsibility lies with the person and company carrying out the work.

Mentor CNC logo

MENTOR CNC
CNC knowledge from the shop floor

Mentor CNC turns hands-on shop-floor experience in CNC turning, CNC milling, CNC controls, cutting tools and engineering calculations into clear, practical technical content.

Our goal is to help operators, students, engineers and shop owners reach accurate information faster and make safer, more efficient decisions in production.