Part 7 of the Heidenhain TNC 640 training series covers the error messages and the MOD menu an operator meets on the screen: the error window, error cause and corrective action, clearing errors, the error and keystroke logs, service files, the machine tool builder’s PLC messages, MOD settings, code numbers and NC/PLC backup. The information is taken from the Heidenhain TNC 640 Conversational Programming User’s Manual.
How do you read a Heidenhain error message?
The control shows errors for incorrect data input, logical errors in the NC program, contour elements that cannot be machined and incorrect use of touch probes. The error appears in the header and stays there until it is cleared or replaced by a higher-priority error.
| Color | Meaning |
|---|---|
| Red | Error |
| Yellow | Warning |
| Green | Note |
| Blue | Information |
If an error message contains an NC block number, the error was caused by that block or by the preceding block. Long messages are shortened in the header; the full text is in the error window. An information text for an operating error (for example an impermissible key) is deleted with the next valid entry.
Important: If a rare processor check error occurs, the control opens the error window automatically. You cannot correct such an error; shut down the system and restart the control.
How do you open the error window and see the cause of an error?

| Step | What to do | What you see |
|---|---|---|
| 1 | Press the ERR key | The error window opens and lists all pending error messages in full |
| 2 | Move the cursor to the error message and press the MORE INFO soft key | A window with the error cause and corrective action opens |
| 3 | Press MORE INFO again to leave | – |
| 4 | If service details are needed, press INTERNAL INFO | Internal information about the error is shown (only needed for servicing) |
| 5 | To hide identical warnings listed in succession: MORE FUNCTIONS, then FILTER | Identical warnings are filtered; leave with GO BACK |
| 6 | To close the window, press the END soft key or the ERR key | The error window closes |
The TNCguide help system can also be called from the error window. If the machine tool builder provides its own help system, an additional Machine manufacturer (OEM) soft key appears with more details on machine-specific messages.
How do you clear an error message on a Heidenhain?
| Method | How to do it |
|---|---|
| Clear the error or note in the header | Press the CE key |
| Clear a single error | In the error window, place the cursor on the error and press DELETE |
| Clear all errors | In the error window, press DELETE ALL |
If the cause of the error has not been corrected, the message cannot be cleared and remains in the window. In some situations the CE key cannot be used because it is assigned to another function. How to resume a program after an erasable error during program run is explained in part 6 of this series.
How do you open the error log, keystroke log and service files?
The control stores errors and important events (e.g. system start) in the error log, and every key pressed in the keystroke log. Each log has a limited capacity: when one is full the control switches to a second file, and when that is full the first one is deleted and rewritten. The oldest entry is at the beginning of the file, the newest at the end.
| Step | What to do | What you see |
|---|---|---|
| 1 | Open the error window with ERR and press LOG FILES | The log soft keys appear |
| 2 | Press ERROR LOG or KEYSTROKE LOG | The log file opens |
| 3 | Use PREVIOUS FILE for the history and CURRENT FILE to return | – |
How do you save service files for the service technician?
The service file group contains the error and keystroke logs and other files with information about the current status of the machine and the machining. Save it when a service technician needs to evaluate a fault.
| Step | What to do | What you see |
|---|---|---|
| 1 | Open the error window and press LOG FILES | – |
| 2 | Press SAVE SERVICE FILES | A window opens for a file name or full path |
| 3 | Enter the file name and press OK | The service files are saved |
If you save again with the same name, the previous service file group is overwritten. Use a new name each time. To copy the file to a PC, use the transfer methods in part 3 of this series.
What are PLC messages and how do you interpret them?
Heidenhain error messages come from the control’s own NC software. The machine’s hardware, such as hydraulics, lubrication, tool changer or door interlock, is handled by the PLC program, which is written by the machine tool builder. That is why the MOD software numbers list the PLC number as managed by the machine manufacturer.
| Topic | What the user’s manual says |
|---|---|
| Meaning of a PLC message | Message numbers and texts belong to the machine tool builder; the Heidenhain user’s manual has no list. See the machine manual |
| Machine-specific help | If the builder provides a help system, it opens with the Machine manufacturer (OEM) soft key in the error window |
| PLC at switch-on | When you press CE at the power interrupted message, the control compiles the PLC program; then the control voltage is switched on and the emergency stop circuit is checked |
| PLC message language | In the user parameters (DisplaySettings) the PLC dialog language and PLC error message language can be set separately |
Practical note: When a PLC message appears, write down its number and text exactly, save service files if needed and check the fault list in the machine manual. Do not try to clear hardware messages (hydraulics, air, lubrication, door) without fixing the cause; the message cannot be cleared while the cause remains.
How do you open the Heidenhain MOD menu?

| Step | What to do | What you see |
|---|---|---|
| 1 | Press the MOD key | A pop-up window with the available MOD functions opens |
| 2 | Select the group and function in the left window (the tab key switches between left and right) | – |
| 3 | Switch to the input field with tab or ENT and enter or select a value | With several options, GOTO opens a selection box |
| 4 | Confirm with APPLY or OK | The setting is taken over |
| 5 | Exit MOD with the END soft key or the END key | The window closes |
| MOD group | Functions |
|---|---|
| Code-number entry | Code number for protected areas |
| Display settings | Position displays, mm/inch, program entry for MDI, time of day, info line |
| Graphic settings | Model type and model quality |
| Machine settings | Kinematics, traverse limits, tool-usage file, external access |
| System settings | System time, network connection, IP configuration |
| Diagnostic functions | Bus diagnosis, drive diagnosis, HEROS information |
| General information | Version information, license information, machine times |
How do you change the position display and the unit of measure?

Position display 1 sets the coordinate type in the status display, Position display 2 in the additional status display. The setting applies to Manual Operation and the Program Run modes.
| Display | What it shows |
|---|---|
| NOML | Nominal position; the value currently commanded by the control |
| ACTL | Actual position; current tool position |
| REF ACTL | Actual position relative to the machine datum |
| REF NOML | Nominal position relative to the machine datum |
| LAG | Servo lag; difference between nominal and actual positions |
| ACTDST | Distance remaining to the programmed position in the input coordinate system |
| REFDST | Distance remaining to the programmed position in the machine coordinate system |
| M118 | Traverse paths executed with handwheel superimposition (M118) |
With the metric system coordinates are shown to 3 decimal places (e.g. X = 15.789), with inch to 4 decimal places. With the inch display the feed rate is shown in inch/min; in an inch program the feed rate must be entered larger by a factor of 10.
How do you enter traverse limits (protection zones)?
The Traverse limits MOD function limits the usable tool path within the maximum traverse range, for example to protect a fixture from collision on each axis. The machine tool builder must configure and enable it.

| Step | What to do | What you see |
|---|---|---|
| 1 | In the MOD menu, select Machine settings, then Traverse limits | The axis table opens |
| 2 | Enter the values of the required axes as reference values, or load the current position with the actual position capture soft key | – |
| 3 | Press APPLY | The control checks the values |
| 4 | Press OK | The protection zone becomes active |
The protection zone becomes active as soon as a valid limit is set in an axis and is kept after the control is restarted. It can only be deactivated by deleting all values or with the EMPTY EVERYTHING soft key.
What are the tool usage file and kinematics selection for?
| Function | What it does |
|---|---|
| Tool-usage file | Choose whether the control never, once or always creates a tool usage file; set separately for Program Run and Test Run. Must be enabled by the machine tool builder |
| Kinematics | One of several kinematics defined by the builder can be selected to test programs whose kinematics do not match the active machine kinematics |
Danger of collision: If you switch to another kinematics for machine operation, the control performs all following movements with the changed kinematics. Selecting a kinematics for Test Run does not affect the machine kinematics, but make sure you select the correct one for the test.
How do you allow or block external access?
When External access is blocked, no data can be exchanged with the control over the network or a serial connection (e.g. TNCremo). If a CAM program cannot be transferred, this is one of the first places to check.

| Step | What to do | What you see |
|---|---|---|
| 1 | In the MOD menu, select Machine settings | – |
| 2 | Select the External access menu | The access status is shown |
| 3 | Set the EXTERNAL ACCESS soft key to ON or OFF | – |
| 4 | Press OK | The setting is saved |
If the builder has set up computer-specific access control, up to 32 connections can be defined, each with the right Inquire, Deny or Permit. With Inquire, the control opens a window on each access with Yes / Always / Never / No. The machine tool builder configures the external access options.
Where are the system time, operating times and software numbers?

| MOD function | What it shows or does |
|---|---|
| System settings > SET DATE/TIME | Time zone, date and time set manually or with an NTP server |
| General information > Machine times | Control on, Machine on and Program run times since commissioning; the builder can add further times |
| General information > Version information | Control model, NC SW, NCK (HEIDENHAIN) and PLC software (machine manufacturer) numbers |
| General information > FCL information | Feature Content Level installed on the control |
Giving the NC SW and PLC software numbers when you report a fault helps the service team see whether the problem comes from the control software or from the machine’s PLC program.
What are the Heidenhain code numbers (123) for?
| Function | Code number |
|---|---|
| Select user parameters | 123 |
| Configure an Ethernet card | NET123 |
| Enable special functions for Q parameter programming | 555343 |
User parameters are shown in a tree structure in the configuration editor. The machine tool builder defines which machine parameters are available as user parameters.
| Step | What to do | What you see |
|---|---|---|
| 1 | Select the Programming mode and press MOD | – |
| 2 | Enter code number 123 | The configuration editor opens |
| 3 | Change the parameter (the HELP key shows its help text) | – |
| 4 | Exit the editor with the END soft key | – |
| 5 | Accept the changes with the SAVE soft key | The setting is saved |
The control keeps a list of the last 20 changes to the configuration file, so a change can be undone. Display and PLC language settings are under DisplaySettings in this editor.
Caution: Back up before changing parameters and only change user parameters whose function you know. Servo, spindle and safety settings are a job for the machine tool builder and authorized service.
How do you back up the control with NC/PLC Backup?
With NC/PLC Backup and NC/PLC Restore you can back up and restore individual folders or the complete TNC drive. The backup file (*.tncbck) can be saved locally, on a network drive or on USB and can also be processed with TNCbackup, part of TNCremo.
| Step | What to do | What you see |
|---|---|---|
| 1 | Open the task bar at the bottom of the screen and press the green HEIDENHAIN button to open the JH menu | – |
| 2 | Select Tools and then NC/PLC Backup | A pop-up window opens |
| 3 | Select the type (TNC partition or a directory tree), add a comment if needed; FORWARD | Machine configuration and complete backup are for machine tool builders only |
| 4 | If required, stop the control with STOP NC SOFTWARE and define exclusion rules; FORWARD | The list of files to back up is created |
| 5 | Check the list; FORWARD | – |
| 6 | Enter the backup file name and storage path; FORWARD | The backup file is created |
| 7 | Confirm with OK | The control finishes the backup and restarts the NC software |
Risk of data loss: NC/PLC Restore overwrites existing files without asking. Check the file list carefully before restoring.
Frequently asked questions
How do you find the cause of a Heidenhain error message?
Open the error window with the ERR key, place the cursor on the error and press the MORE INFO soft key. The control shows the possible cause and the corrective action.
Why can’t I clear a Heidenhain error message?
If the cause of the error has not been corrected, the message cannot be cleared and stays in the error window. Fix the cause first, then clear it with CE or with DELETE / DELETE ALL in the error window.
Where do I find the meaning of a PLC error message?
PLC messages come from the machine tool builder’s PLC program, so their meaning is in the machine manual. If the builder installed a help system, it can also be opened with the Machine manufacturer (OEM) soft key in the error window.
What does MOD 123 do on a Heidenhain?
Code number 123, entered after pressing MOD in the Programming mode, opens the user parameters in the configuration editor. Serial interface settings are also made this way. The machine tool builder decides which parameters are visible.
Program transfer does not work. What should I check in MOD?
In MOD > Machine settings > External access, check that the EXTERNAL ACCESS soft key is ON. When it is OFF, no data can be exchanged over the network or serial connections such as TNCremo.
Heidenhain TNC 640 training series
- 1. Heidenhain TNC 640 Keys, Screen and Operating Modes
- 2. Entering, Editing and Deleting Programs
- 3. Transferring CAM Programs and File Management
- 4. Tool Length Setting: Single Tool and All Tools
- 5. Setting the Work Zero (Preset) and the Preset Table
- 6. Resuming an Interrupted Program on Heidenhain
- 7. Heidenhain Error Messages, PLC Messages and MOD Settings (this page)
- 8. Heidenhain Cycles: Drilling, Tapping and Pockets
- 9. Mill-Turning on Heidenhain: Turning Mode and 800-Series Cycles
Safety warning and disclaimer
Do not clear error or PLC messages without understanding the cause. Before changing traverse limits, external access, kinematics or user parameters, note the current values and make a backup. The scope of the MOD functions depends on the machine tool builder; the machine manual always takes priority.
Mentor CNC cannot be held responsible for tool breakage, scrap parts, machine damage, data loss or accidents resulting from the use of the information on this page. Responsibility lies with the person and the company applying it.
