Heidenhain TNC 640 Training 7: Error Messages, PLC Messages and MOD Settings

12 November 2026

Mentor CNC Editorial Team

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.

ColorMeaning
RedError
YellowWarning
GreenNote
BlueInformation

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?

Heidenhain TNC 640 error window with cause and action text
Error window: error list at the top, Cause and Action text below.
StepWhat to doWhat you see
1Press the ERR keyThe error window opens and lists all pending error messages in full
2Move the cursor to the error message and press the MORE INFO soft keyA window with the error cause and corrective action opens
3Press MORE INFO again to leave–
4If service details are needed, press INTERNAL INFOInternal information about the error is shown (only needed for servicing)
5To hide identical warnings listed in succession: MORE FUNCTIONS, then FILTERIdentical warnings are filtered; leave with GO BACK
6To close the window, press the END soft key or the ERR keyThe 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?

MethodHow to do it
Clear the error or note in the headerPress the CE key
Clear a single errorIn the error window, place the cursor on the error and press DELETE
Clear all errorsIn 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.

StepWhat to doWhat you see
1Open the error window with ERR and press LOG FILESThe log soft keys appear
2Press ERROR LOG or KEYSTROKE LOGThe log file opens
3Use 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.

StepWhat to doWhat you see
1Open the error window and press LOG FILES–
2Press SAVE SERVICE FILESA window opens for a file name or full path
3Enter the file name and press OKThe 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.

TopicWhat the user’s manual says
Meaning of a PLC messageMessage numbers and texts belong to the machine tool builder; the Heidenhain user’s manual has no list. See the machine manual
Machine-specific helpIf the builder provides a help system, it opens with the Machine manufacturer (OEM) soft key in the error window
PLC at switch-onWhen 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 languageIn 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?

Heidenhain TNC 640 MOD menu code number entry window
MOD: Settings and information window, groups on the left, code-number entry on the right.
StepWhat to doWhat you see
1Press the MOD keyA pop-up window with the available MOD functions opens
2Select the group and function in the left window (the tab key switches between left and right)–
3Switch to the input field with tab or ENT and enter or select a valueWith several options, GOTO opens a selection box
4Confirm with APPLY or OKThe setting is taken over
5Exit MOD with the END soft key or the END keyThe window closes
MOD groupFunctions
Code-number entryCode number for protected areas
Display settingsPosition displays, mm/inch, program entry for MDI, time of day, info line
Graphic settingsModel type and model quality
Machine settingsKinematics, traverse limits, tool-usage file, external access
System settingsSystem time, network connection, IP configuration
Diagnostic functionsBus diagnosis, drive diagnosis, HEROS information
General informationVersion information, license information, machine times

How do you change the position display and the unit of measure?

Heidenhain TNC 640 MOD display settings, position display and unit of measure
Display settings: position display 1 and 2, unit of measure, program input.

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.

DisplayWhat it shows
NOMLNominal position; the value currently commanded by the control
ACTLActual position; current tool position
REF ACTLActual position relative to the machine datum
REF NOMLNominal position relative to the machine datum
LAGServo lag; difference between nominal and actual positions
ACTDSTDistance remaining to the programmed position in the input coordinate system
REFDSTDistance remaining to the programmed position in the machine coordinate system
M118Traverse 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.

Heidenhain TNC 640 MOD traverse limits lower and upper limit table
Traverse limits: lower and upper limit for each axis.
StepWhat to doWhat you see
1In the MOD menu, select Machine settings, then Traverse limitsThe axis table opens
2Enter the values of the required axes as reference values, or load the current position with the actual position capture soft key–
3Press APPLYThe control checks the values
4Press OKThe 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?

FunctionWhat it does
Tool-usage fileChoose 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
KinematicsOne 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.

Heidenhain TNC 640 MOD machine settings external access screen
External access: EXTERNAL ACCESS ON/OFF soft key.
StepWhat to doWhat you see
1In the MOD menu, select Machine settings–
2Select the External access menuThe access status is shown
3Set the EXTERNAL ACCESS soft key to ON or OFF–
4Press OKThe 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?

Heidenhain TNC 640 MOD machine times operating time screen
Machine times: control on, machine on, program run.
MOD functionWhat it shows or does
System settings > SET DATE/TIMETime zone, date and time set manually or with an NTP server
General information > Machine timesControl on, Machine on and Program run times since commissioning; the builder can add further times
General information > Version informationControl model, NC SW, NCK (HEIDENHAIN) and PLC software (machine manufacturer) numbers
General information > FCL informationFeature 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?

FunctionCode number
Select user parameters123
Configure an Ethernet cardNET123
Enable special functions for Q parameter programming555343

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.

StepWhat to doWhat you see
1Select the Programming mode and press MOD–
2Enter code number 123The configuration editor opens
3Change the parameter (the HELP key shows its help text)–
4Exit the editor with the END soft key–
5Accept the changes with the SAVE soft keyThe 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.

StepWhat to doWhat you see
1Open the task bar at the bottom of the screen and press the green HEIDENHAIN button to open the JH menu–
2Select Tools and then NC/PLC BackupA pop-up window opens
3Select the type (TNC partition or a directory tree), add a comment if needed; FORWARDMachine configuration and complete backup are for machine tool builders only
4If required, stop the control with STOP NC SOFTWARE and define exclusion rules; FORWARDThe list of files to back up is created
5Check the list; FORWARD–
6Enter the backup file name and storage path; FORWARDThe backup file is created
7Confirm with OKThe 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

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.

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.