The symbols used in this manual are described below.
This symbol indicates that important information
about the function described must be considered.
This symbol indicates that there is one or more
of the following risks when using the described
function:
Danger to workpiece
Danger to fixtures
Danger to tool
Danger to machine
Danger to operator
This symbol indicates a possibly dangerous situation
that may cause injuries if not avoided.
This symbol indicates that the described function
must be adapted by the machine tool builder. The
function described may therefore vary depending on
the machine.
This symbol indicates that you can find detailed
information about a function in another manual.
Would you like any changes, or have you found any
errors?
We are continuously striving to improve our documentation for you.
Please help us by sending your requests to the following e-mail
address: tnc-userdoc@heidenhain.de.
This manual describes functions and features provided by TNCs as
of the following NC software numbers.
TNC modelNC software number
TNC 128771841-02
The machine tool builder adapts the usable features of the TNC to
his machine by setting machine parameters. Some of the functions
described in this manual may therefore not be among the features
provided by the TNC on your machine tool.
TNC functions that may not be available on your machine include:
Probing functions for the 3-D touch probe
Please contact your machine tool builder to become familiar with
the features of your machine.
Many machine manufacturers, as well as HEIDENHAIN, offer
programming courses for the TNCs. We recommend these courses
as an effective way of improving your programming skill and
sharing information and ideas with other TNC users.
The TNC 128 features various software options that can be enabled by your machine tool builder. Each option is to
be enabled separately and contains the following respective functions:
Along with software options, significant further improvements
of the TNC software are managed via the Feature Content Level
upgrade functions. Functions subject to the FCL are not available
simply by updating the software on your TNC.
All upgrade functions are available to you without
surcharge when you receive a new machine.
Upgrade functions are identified in the manual with FCL n, where n
indicates the sequential number of the feature content level.
You can purchase a code number in order to permanently enable
the FCL functions. For more information, contact your machine tool
builder or HEIDENHAIN.
Intended place of operation
The TNC complies with the limits for a Class A device in
accordance with the specifications in EN 55022, and is intended for
use primarily in industrially-zoned areas.
Legal information
This product uses open source software. Further information is
available on the control under
Programming and Editing operating mode
MOD function
License Info soft key
Acknowledging the power interruption and moving to the reference points..........................................44
1.3Programming the first part..................................................................................................................45
Selecting the correct operating mode.................................................................................................... 45
The most important TNC keys................................................................................................................45
Creating a new program/file management.............................................................................................46
Defining a workpiece blank.................................................................................................................... 47
Program layout........................................................................................................................................ 48
Programming a simple contour...............................................................................................................49
Creating a cycle program........................................................................................................................51
1.4Graphically testing the first part.........................................................................................................53
Selecting the correct operating mode.................................................................................................... 53
Selecting the tool table for the test run................................................................................................. 53
Choosing the program you want to test................................................................................................ 54
Selecting the screen layout and the view.............................................................................................. 54
Starting the test run................................................................................................................................55
1.5Setting up tools.................................................................................................................................... 56
Selecting the correct operating mode.................................................................................................... 56
Preparing and measuring tools............................................................................................................... 56
The tool table TOOL.T............................................................................................................................ 57
Selecting the correct operating mode.................................................................................................... 58
Clamping the workpiece......................................................................................................................... 58
Datum setting with 3-D touch probe (software option 17: Touch Probe Functions)................................59
1.7Running the first program...................................................................................................................60
Selecting the correct operating mode.................................................................................................... 60
Choosing the program you want to run................................................................................................. 60
Start the program....................................................................................................................................60
Setting the screen layout........................................................................................................................63
Control Panel...........................................................................................................................................64
2.3Modes of Operation..............................................................................................................................65
Manual Operation and El. Handwheel....................................................................................................65
Positioning with Manual Data Input........................................................................................................65
Test Run.................................................................................................................................................. 66
Program Run, Full Sequence and Program Run, Single Block................................................................66
Reference system on milling machines..................................................................................................81
Designation of the axes on milling machines.........................................................................................81
Absolute and incremental workpiece positions......................................................................................82
Selecting the datum................................................................................................................................82
3.2Opening and entering programs.........................................................................................................84
Organization of an NC program in HEIDENHAIN Conversational format................................................84
Define the blank: BLK FORM.................................................................................................................85
Opening a new part program................................................................................................................. 86
Programming tool movements in conversational................................................................................... 87
Actual position capture............................................................................................................................89
Editing a program....................................................................................................................................90
The TNC search function........................................................................................................................ 93
Displaying externally generated files on the TNC...................................................................................97
Data Backup............................................................................................................................................ 97
Overview: Functions of the file manager............................................................................................... 99
Calling the file manager........................................................................................................................100
Selecting drives, directories and files...................................................................................................101
Creating a new directory...................................................................................................................... 102
Creating a new file................................................................................................................................102
Copying a single file..............................................................................................................................102
Copying files into another directory......................................................................................................103
Copying a table..................................................................................................................................... 104
Copying a directory............................................................................................................................... 104
Choosing one of the last files selected................................................................................................105
Deleting a file........................................................................................................................................106
Deleting a directory...............................................................................................................................106
Renaming a file..................................................................................................................................... 108
Display of errors....................................................................................................................................131
Open the error window........................................................................................................................ 131
Closing the error window..................................................................................................................... 131
Saving service files............................................................................................................................... 135
Calling the TNCguide help system....................................................................................................... 136
Types of nesting....................................................................................................................................181
8.5Calculation of circles...........................................................................................................................197
A transaction......................................................................................................................................... 223
TRANS DATUM AXIS............................................................................................................................ 272
TRANS DATUM TABLE.........................................................................................................................273
TRANS DATUM RESET.........................................................................................................................274
10.5 Creating Text Files...............................................................................................................................275
Deleting and re-inserting characters, words and lines..........................................................................276
Editing text blocks.................................................................................................................................277
Finding text sections.............................................................................................................................278
Plan view...............................................................................................................................................321
Projection in three planes.....................................................................................................................321
13.4 Test Run................................................................................................................................................330
13.5 Program run.........................................................................................................................................332
14 MOD functions..............................................................................................................................345
14.1 MOD function...................................................................................................................................... 346
Selecting MOD functions......................................................................................................................346
Changing the settings...........................................................................................................................346
Exiting MOD functions..........................................................................................................................346
Overview of MOD functions................................................................................................................ 347
14.4 System settings...................................................................................................................................351
Set the system time.............................................................................................................................351
14.5 Position Display Types........................................................................................................................352
Defining a cycle using soft keys...........................................................................................................375
Defining a cycle using the GOTO function........................................................................................... 375
Calling a cycle....................................................................................................................................... 376
Defining a full circle.............................................................................................................................. 383
Defining a pitch circle........................................................................................................................... 383
15.7 Point tables..........................................................................................................................................389
Selecting a datum table in the part program........................................................................................452
Edit the datum table in the Programming mode of operation..............................................................452
Configuring the datum table.................................................................................................................454
Exiting the datum table.........................................................................................................................454
Status displays...................................................................................................................................... 454
18.4 DATUM SETTING (Cycle 247).............................................................................................................455
This chapter is intended to help TNC beginners quickly learn to
handle the most important procedures. For more information on a
respective topic, see the section referred to in the text.
The following topics are included in this chapter:
Machine switch-on
Programming the first part
Graphically testing the first part
Setting up tools
Workpiece setup
Running the first program
1.2Machine switch-on
Acknowledging the power interruption and moving to
the reference points
Switch-on and crossing over the reference points can
vary depending on the machine tool. Refer to your
machine manual. Refer to your machine manual.
Switch on the power supply for control and machine. The TNC
starts the operating system. This process may take several
minutes. Then the TNC will display the "Power interrupted"
message in the screen header.
Press the CE key: The TNC compiles the PLC
program
Switch on the control voltage: The TNC checks
operation of the emergency stop circuit and goes
into the reference run mode
Cross the reference points manually in the
displayed sequence: For each axis press the
machine START button. If you have absolute linear
and angle encoders on your machine there is no
need for a reference run
The TNC is now ready for operation in the Manual Operation
mode.
Further information on this topic
Traversing the reference marks: see "Switch-on", page 280
Operating modes: see "Programming", page 65
Press the PGM MGT key: The TNC opens the
file manager. The file management of the TNC is
arranged much like the file management on a PC
with the Windows Explorer. The file management
enables you to manipulate data on the internal
memory of the TNC
Use the arrow keys to select the folder in which
you want to open the new file
Press the GOTO key: The TNC opens a keyboard in
the pop-up window
Enter any desired file name with the extension .H
Confirm with the ENT key: The control asks you
for the unit of measurement for the new program
Select the unit of measure: Press the MM or INCH
soft key
The TNC automatically generates the first and last blocks of the
program. Afterwards you can no longer change these blocks.
Further information on this topic
File management: see "Working with the file manager",
page 98
Creating a new program: see "Opening and entering programs",
page 84
After you have created a new program you can define a workpiece
blank. For example, define a cuboid by entering the MIN and MAX
points, each with reference to the selected reference point.
After you have selected the desired blank form via soft key, the
TNC automatically initiates the workpiece blank definition and asks
for the required data:
Working plane in graphic: XY?: Enter the active spindle axis. Z
is saved as default setting. Accept with the ENT key
Workpiece blank def.: minimum X: Smallest X coordinate of
the workpiece blank with respect to the reference point, e.g. 0.
Confirm with the ENT key
Workpiece blank def.: minimum Y: Smallest Y coordinate of
the workpiece blank with respect to the reference point, e.g. 0.
Confirm with the ENT key
Workpiece blank def.: minimum Z: Smallest Z coordinate of
the workpiece blank with respect to the reference point, e.g.
–40. Confirm with the ENT key
Workpiece blank def.: maximum X: Largest X coordinate of
the workpiece blank with respect to the reference point, e.g.
100. Confirm with the ENT key
Workpiece blank def.: maximum Y: Largest Y coordinate of
the workpiece blank with respect to the reference point, e.g.
100. Confirm with the ENT key
Workpiece blank def.: maximum Z: Largest Z coordinate of
the workpiece blank with respect to the reference point, e.g. 0.
Confirm with the ENT key. The TNC concludes the dialog
NC programs should be arranged consistently in a similar manner.
This makes it easier to find your place, accelerates programming
and reduces errors.
Recommended program layout for simple, conventional contour
machining
1 Call tool, define tool axis
2 Retract the tool
3 Pre-position the tool in the working plane near the contour starting
point
4 In the tool axis, position the tool above the workpiece, or
preposition immediately to workpiece depth. If required, switch on
the spindle/coolant
5 Contour approach
6 Contour machining
7 Contour departure
8 Retract the tool, end program
Further information on this topic
Contour programming: see "Tool movements in the program",
page 168
Layout of contour machining
programs
0 BEGIN PGM BSPCONT MM
1 BLK FORM 0.1 Z X... Y... Z...
2 BLK FORM 0.2 X... Y... Z...
3 TOOL CALL 5 Z S5000
4 Z+250 R0 FMAX
5 X... R0 FMAX
6 Z+10 R0 F3000 M13
...
16 X... R0 FMAX
17 Z+250 R0 FMAX M2
18 END PGM BSPCONT MM
Recommended program layout for simple cycle programs
1 Call tool, define tool axis
2 Retract the tool
3 Define the machining positions
4 Define the fixed cycle
5 Call the cycle, switch on the spindle/coolant
6 Retract the tool, end program
Further information on this topic
Cycle programming: see "Cycle fundamentals", page 371
The contour shown to the right is to be milled once to a depth of
5 mm. You have already defined the workpiece blank. After you
have initiated a dialog through a function key, enter all the data
requested by the TNC in the screen header.
Call the tool: Enter the tool data. Confirm each of
your entries with the ENT key. Do not forget the
tool axis
Retract the tool: Press the orange axis key and
enter the value for the position to be approached,
e.g. 250. Confirm with the ENT key
Confirm Radius comp.: R+/R–/no comp? by
pressing the ENT key: Do not activate the radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Confirm the Miscellaneous function M? with the
END key: The TNC saves the entered positioning
block
Preposition the tool in the working plane: Press
the orange X axis key and enter the value for the
position to be approached, e.g. –20
Confirm Radius comp.: R+/R–/no comp? by
pressing the ENT key: Do not activate the radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Confirm the Miscellaneous function M? with the
END key: The TNC saves the entered positioning
block
Press the orange Y axis key and enter the value for
the position to be approached, e.g. –20. Confirm
with the ENT key
Confirm Radius comp.: R+/R–/no comp? by
pressing the ENT key: Do not activate the radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Confirm the Miscellaneous function M? with
theEND key: The TNC saves the entered
positioning block
Move the tool to workpiece depth: Press the
orange Z axis key and enter the value for the
position to be approached, e.g. –5. Confirm with
the ENT key
Confirm Radius comp.: R+/R–/no comp? by
pressing the ENT key: Do not activate the radius
compensation
Feed rate F=? Enter the positioning feed rate, e.g.
3000 mm/min and confirm with the ENT key
Miscellaneous function M? Switch on the spindle
and coolant, e.g. M13. Confirm with the END key:
The TNC saves the entered positioning block
Approach contour point 1: Press the orange X axis
key and enter the value 5 for the position to be
approached
Tool radius comp: R+/R-/no comp? Select the R–
soft key: The traverse path is decreased by the
tool radius
Feed rate F=? Enter the machining feed rate, e.g.
700 mm/min, and confirm your entry with the
END key
Approach contour point 2: Press the orange Y axis
key and enter the value 95 for the position to be
approached
Tool radius comp: R+/R-/no comp? Select the R+
soft key: The traverse path is increased by the tool
radius. Confirm your entry with the END key
Approach contour point 3: Press the orange X axis
key and enter the value 95 for the position to be
approached
Tool radius comp: R+/R-/no comp? Select the R+
soft key: The traverse path is increased by the tool
radius. Confirm your entry with the END key
Approach contour point 4: Press the orange Y axis
key and enter the value 5 for the position to be
approached
Tool radius comp: R+/R-/no comp? Select the R+
soft key: The traverse path is increased by the tool
radius. Confirm your entry with the END key
Approach contour point 1 and retract the tool:
Press the orange X axis key and enter the value 0
for the position to be approached
Tool radius comp: R+/R-/no comp? Select the R+
soft key: The traverse path is increased by the tool
radius. Confirm your entry with the END key
Retract the tool: Press the orange Z axis key in
order to retract in the tool axis, and enter the
value for the position to be approached, e.g. 250.
Confirm with the ENT key
Confirm Radius comp.: R+/R–/no comp? by
pressing the ENT key: Do not activate the radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Miscellaneous function M? Enter M2 to end the
program and confirm with the END key: The TNC
saves the entered positioning block
Further information on this topic
Creating a new program: see "Opening and entering programs",
page 84
Programmable feed rates: see "Possible feed rate input",
Tool radius compensation: see "Tool radius compensation with
paraxial positioning blocks", page 164
Miscellaneous functions M: see "M functions for program run
inspection, spindle and coolant ", page 253
Creating a cycle program
The holes (depth of 20 mm) shown in the figure at right are to be
drilled with a standard drilling cycle. You have already defined the
workpiece blank.
Call the tool: Enter the tool data. Confirm each of
your entries with the ENT key. Do not forget the
tool axis
Retract the tool: Press the orange Z axis key in
order to retract in the tool axis, and enter the
value for the position to be approached, e.g. 250.
Confirm with the ENT key
Confirm Radius comp.: R+/R-/no comp.? by
pressing the ENT key: Do not activate radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Confirm the Miscellaneous function M? with the
END key: The TNC saves the entered positioning
block
Call the cycle menu
1
Display the drilling cycles
Select the standard drilling cycle 200: The TNC
starts the dialog for cycle definition. Enter all
parameters requested by the TNC step by step
and conclude each entry with the ENT key. In the
screen to the right, the TNC also displays a graphic
showing the respective cycle parameter
Call the menu for special functions
Display the functions for point machining
Select the pattern definition
Select point entry: Enter the coordinates of the 4
points and confirm each with the ENT key. After
entering the fourth point, save the block with the
END key
Run the drilling cycle on the defined pattern:
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Miscellaneous function M? Switch on the spindle
and coolant, e.g. M13. Confirm with the END key:
The TNC saves the entered positioning block
Enter Retract the tool: Press the orange axis key Z
in order to get clear in the tool axis, and enter the
value for the position to be approached, e.g. 250.
Confirm with the ENT key
Confirm Radius comp.: R+/R-/no comp.? by
pressing the ENT key: Do not activate radius
compensation
Confirm Feed rate F=? with the ENT key: Move at
rapid traverse (FMAX)
Miscellaneous function M? Enter M2 to end the
program and confirm with the END key: The TNC
saves the entered positioning block
Press the Test Run operating mode key: the TNC
switches to that mode
Further information on this topic
Operating modes of the TNC: see "Modes of Operation",
page 65
Testing programs: see "Test Run", page 330
1
Selecting the tool table for the test run
You only need to execute this step if you have not activated a tool
table in the Test Run mode.
Press the PGM MGT key: The TNC opens the file
manager
Press the select type soft key: The TNC shows a
soft-key menu for selection of the file type to be
displayed
Press the Default soft key: The TNC shows all
saved files in the right window
Move the highlight to the left onto the directories
Move the highlight to the TNC:\table directory
Move the highlight to the right onto the files
Move the highlight to the file TOOL.T (active tool
table) and load with the ENT key: TOOL.T receives
the status S and is therefore active for the test run
Press the END key: Exit the file manager
Further information on this topic
Tool management: see "Enter tool data into the table",
In the tool table TOOL.T (permanently saved under TNC:\table\),
save the tool data such as length and radius, but also further toolspecific information that the TNC needs to perform its functions.
To enter tool data in the tool table TOOL.T, proceed as follows:
Display the tool table
Edit the tool table: Set the EDITING soft key to ON
With the upward or downward arrow keys you can
select the tool number that you want to edit
With the rightward or leftward arrow keys you can
select the tool data that you want to edit
To exit the tool table, press the END key
Further information on this topic
Operating modes of the TNC: see "Modes of Operation",
page 65
Working with the tool table: see "Enter tool data into the table",
You can run programs either in the Single Block or the Full
Sequence mode:
Press the operating mode key: The TNC goes into
the Program Run, Single Block mode and the
TNC executes the program block by block. You
have to confirm each block with the NC start key
Press the Program Run, Full Sequence operating
mode key: The TNC switches to that mode and
runs the program after NC start up to a program
interruption or to the end of the program
Further information on this topic
Operating modes of the TNC: see "Modes of Operation",
page 65
Running programs: see "Program run", page 332
Choosing the program you want to run
Press the PGM MGT key: The TNC opens the file
management
Press the LAST FILES soft key: The TNC opens a
pop-up window with the most recently selected
files
If desired, use the arrow keys to select the
program that you want to run. Load with the ENT
key
Further information on this topic
File management: see "Working with the file manager",
page 98
Start the program
Press the NC start key: The TNC runs the active
program
The TNC 128 is a workshop-oriented straight-cut control that
enables you to program conventional machining operations right
at the machine in an easy-to-use conversational programming
language. It is designed for milling, drilling and boring machines
with up to 3 axes. You can also change the angular position of the
spindle under program control.
Keyboard and screen layout are clearly arranged in such a way that
the functions are fast and easy to use.
Programming: In HEIDENHAIN conversational
The HEIDENHAIN conversational programming format is an
especially easy method of writing programs. Interactive graphics
illustrate the individual machining steps for programming the
contour. Workpiece machining can be graphically simulated either
during or before actual machining.
You can also enter and test one program while the control is
running another.
Compatibility
Machining programs created on the HEIDENHAIN TNC 124 straight
cut control may not always run on the TNC 128. If NC blocks
contain invalid elements, the TNC will mark them as ERROR blocks
when the file is opened.
The TNC is shipped with a 12.1-inch TFT flat-panel display.
1Header
When the TNC is on, the selected operating modes are shown
in the screen header: the machining mode at the left and the
programming mode at right. The currently active operating
mode is displayed in the larger box, where the dialog prompts
and TNC messages also appear.
2Soft keys
In the footer the TNC indicates additional functions in a softkey row. You can select these functions by pressing the keys
immediately below them. The thin bars immediately above the
soft-key row indicate the number of soft-key rows that can be
called with the keys to the right and left that are used to switch
the soft keys. The bar representing the active soft-key row is
highlighted
3Soft-key selection keys
4Keys for switching the soft keys
5Setting the screen layout
6Shift key for switchover between machining and programming
modes
7Soft-key selection keys for machine tool builders
8Keys for switching the soft keys for machine tool builders
9USB connection
2
Setting the screen layout
You select the screen layout yourself: In the Programming
mode of operation, for example, you can have the TNC show
program blocks in the left window while the right window displays
programming graphics. You could also display the program
structure in the right window instead, or display only program
blocks in one large window. The available screen windows depend
on the selected operating mode.
To change the screen layout:
Press the screen layout key: The soft-key row
shows the available layout options, see "Modes of
Operation"
The TNC 128 is delivered with an integrated keyboard.
1Machine operating panel (refer to your machine manual)
2
3Programming modes
4Machine operating modes
5Initiation of certain programming dialogs
6
7Numerical input, axis selection and programming of positioning
The functions of the individual keys are described on the inside
front cover.
File management
Calculator
MOD function
HELP function
Navigation keys and GOTO jump command
blocks
Some machine manufacturers do not use the
standard operating panel from HEIDENHAIN. Refer
to your machine manual. Refer to your machine
manual.
Machine panel buttons, e.g. NC START or NC STOP,
are described in the manual for your machine tool.
The Manual Operation mode is required for setting up the machine
tool. In this mode of operation, you can position the machine axes
manually or by increments and set the datums.
The El. Handwheel mode of operation allows you to move the
machine axes manually with the HR electronic handwheel.
Soft keys for selecting the screen layout (select as described
previously)
WindowSoft key
Positions
Left: positions, right: status display
2
Modes of Operation2.3
Positioning with Manual Data Input
This mode of operation is used for programming simple traversing
movements, such as for face milling or prepositioning.
Soft keys for selecting the screen layout
WindowSoft key
Program
Left: program blocks, right: status display
Programming
In this mode of operation you can write your part programs.
the various cycles and the Q parameter functions help you with
programming and add necessary information. If desired, you can
have the programming graphics show the programmed paths of
traverse.
In the Test Run mode of operation, the TNC checks programs and
program sections for errors, such as geometrical incompatibilities,
missing or incorrect data within the program or violations of the
working space. This simulation is supported graphically in different
display modes.
Soft keys for selecting the screen layout: see "Program Run, Full
Sequence and Program Run, Single Block", page 66.
Program Run, Full Sequence and Program Run, Single
Block
In the Program Run, Full Sequence mode of operation the TNC
executes a part program continuously to its end or to a manual
or programmed stop. You can resume program run after an
interruption.
In the Program Run, Single Block mode of operation you execute
each block separately by pressing the machine START button.
The status display in the lower part of the screen informs you of
the current state of the machine tool. It is displayed automatically in
the following modes of operation:
Program Run, Single Block and Program Run, Full Sequence,
except if the screen layout is set to display graphics only, and
during
Positioning with Manual Data Input.
In the Manual Operation and El. Handwheel modes the status
display appears in the large window.
Information in the status display
IconMeaning
2
Status displays2.4
ACTLPosition display mode, e.g. actual or nominal
coordinates of the current position
Machine axes; the TNC displays auxiliary axes in
lower-case letters. The sequence and quantity of
displayed axes is determined by the machine tool
builder. Refer to your machine manual for more
information
F S MThe displayed feed rate in inches corresponds to
one tenth of the effective value. Spindle speed S,
feed rate F and active M functions
The additional status displays contain detailed information on the
program run. They can be called in all operating modes except for
the Programming mode of operation.
To switch on the additional status display:
Call the soft-key row for screen layout
Select the screen layout with additional status
display: In the right half of the screen, the TNC
shows the OVERVIEW status form
To select an additional status display:
Switch the soft-key rows until the STATUS soft
keys appear
Either select the additional status display directly
by soft key, e.g. positions and coordinates, or
use the switch-over soft keys to select the desired
view
The available status displays described below can be selected
either directly by soft key or with the switch-over soft keys.
Please note that some of the status information
described below is not available unless the
associated software option is enabled on your TNC.
After switch-on, the TNC displays the Overview status form,
provided that you have selected the PROGRAM+STATUS screen
layout (or POSITION + STATUS). The overview form contains a
summary of the most important status information, which you can
also find on the various detail forms.
Soft keyMeaning
Position display
Tool information
Active M functions
Active coordinate transformations
Active subprogram
Active program section repeat
Program called with PGM CALL
Current machining time
Name of the active main program
RT: Number and name of a replacement tool
Tool axis
Tool length and radii
Oversizes (delta values) from the tool table (TAB)
and the TOOL CALL (PGM)
Tool life, maximum tool life (TIME 1) and maximum
tool life for TOOL CALL (TIME 2)
Display of programmed tool and replacement tool
Tool measurement (TT tab)
The TNC displays the TT tab only if the function is
active on your machine.
Soft keyMeaning
No direct
selection
possible
Number of the tool to be measured
Display whether the tool radius or the tool
length is being measured
MIN and MAX values of the individual cutting
edges and the result of measuring the rotating
tool (DYN = dynamic measurement)
Cutting edge number with the corresponding
measured value. If the measured value is
followed by an asterisk, the permissible
tolerance in the tool table was exceeded
The TNC displays an active scaling factor in up
to 6 axes
Scaling datum
2
Status displays2.4
Coordinate transformation cycles: see page 447
Displaying Q parameters (QPARA tab)
Soft keyMeaning
Display the current values of the defined Q
parameters
Display the character strings of the defined
string parameters
Press the Q PARAMETER LIST soft key. The TNC
opens a pop-up window in which you can enter
the desired range for display of the Q parameters
or string parameters. Multiple Q parameters are
entered separated by commas (e.g. 1,2,3,4). To
define display ranges, enter a hyphen (e.g. 0-14).
The machine tool builder determines the scope of
function and behavior of the window manager. Refer
to your machine manual. Refer to your machine
manual.
The TNC features the Xfce window manager. Xfce is a standard
application for UNIX-based operating systems, and is used to
manage graphical user interfaces. The following functions are
possible with the window manager:
Display a task bar for switching between various applications
(user interfaces).
Manage an additional desktop, on which special applications
from your machine tool builder can run.
Control the focus between NC-software applications and those
of the machine tool builder.
The size and position of pop-up windows can be changed.
It is also possible to close, minimize and restore the pop-up
windows.
The TNC shows a star in the upper left of the screen
if an application of the window manager or the
window manager itself has caused an error. In this
case, switch to the window manager and correct the
problem. If required, refer to your machine manual.
In the task bar you can choose different workspaces by mouse
click. The TNC provides the following workspaces:
Workspace 1: Active mode of operation
Workspace 2: Active programming mode
Workspace 3: Manufacturer's applications (optionally available)
In the task bar you can also select other applications that you have
started together with the TNC (switch for example to the PDF
viewer or TNCguide)
Click the green HEIDENHAIN symbol to open a menu in which
you can get information, make settings or start applications. The
following functions are available:
About Xfce: Information on the Windows manager Xfce
About HEROS: Information about the operating system of the
TNC
NC Control: Start and stop the TNC software. Only permitted
for diagnostic purposes
Web Browser: Start Mozilla Firefox
Diagnostics: Available only to authorized specialists to start
diagnostic functions
Settings: Configuration of miscellaneous settings
Date/Time: Set the date and time
Language: Language setting for the system dialogs. During
startup the TNC overwrites this setting with the language
setting of the machine parameter CfgLanguage
Network: Network setting
Reset WM-Conf: Restore basic settings of the Windows
Manager. May also reset settings implemented by your
machine manufacturer
Screensaver: Settings for the screen saver; several are
available
Shares: Configure network connections
Firewall: Configuring the Firewall see "Firewall", page 367
Tools: Only for authorized users. The applications available under
tools can be started directly by selecting the pertaining file
type in the file management of the TNC (see "File manager:
Fundamentals", page 95)
2.6Accessories: HEIDENHAIN 3-D Touch Probes and Electronic
Handwheels
2.6Accessories: HEIDENHAIN 3-D Touch
Probes and Electronic Handwheels
3-D touch probes
The various HEIDENHAIN 3-D touch probes enable you to:
Quickly and precisely set datums
Measure the workpiece
Measure and inspect tools
The triggering touch probes TS 220 and KT 130
These touch probes are particularly effective for datum setting and
workpiece measurement. The TS 220 and KT 130 touch probes
transmit the triggering signals to the TNC via cable.
Principle of operation: HEIDENHAIN triggering touch probes feature
a wear resisting optical switch that generates an electrical signal
as soon as the stylus is deflected. This signal is transmitted to the
control, which stores the current position of the stylus as the actual
value.
TT 140 tool touch probe for tool measurement
The TT 140 is a triggering 3-D touch probe for tool measurement
and inspection. Your TNC provides three cycles for this touch
probe with which you can measure the tool length and radius
automatically either with the spindle rotating or stopped. The TT
140 features a particularly rugged design and a high degree of
protection, which make it insensitive to coolants and swarf. The
triggering signal is generated by a wear-resistant and highly reliable
optical switch.
Accessories: HEIDENHAIN 3-D Touch Probes and Electronic
HR electronic handwheels
Electronic handwheels facilitate moving the axis slides precisely
by hand. A wide range of traverses per handwheel revolution
is available. Apart from the HR 130 and HR 150 panel-mounted
handwheels, HEIDENHAIN also offers the HR 410 portable
handwheel.
The machine axes are equipped with position encoders that
register the positions of the machine table or tool. Linear axes are
usually equipped with linear encoders, rotary tables and tilting axes
with angle encoders.
When a machine axis moves, the corresponding position encoder
generates an electrical signal. The TNC evaluates this signal and
calculates the precise actual position of the machine axis.
If there is a power interruption, the calculated position will no
longer correspond to the actual position of the machine slide.
To recover this association, incremental position encoders are
provided with reference marks. The scales of the position encoders
contain one or more reference marks that transmit a signal to the
TNC when they are crossed over. From that signal the TNC can
re-establish the assignment of displayed positions to machine
positions. For linear encoders with distance-coded reference
marks, the machine axes need to move by no more than 20 mm,
for angle encoders by no more than 20°.
With absolute encoders, an absolute position value is transmitted
to the control immediately upon switch-on. In this way the
assignment of the actual position to the machine slide position is
re-established directly after switch-on.
Reference system
A reference system is required to define positions in a plane or in
space. The position data are always referenced to a predetermined
point and are described through coordinates.
The Cartesian coordinate system (a rectangular coordinate system)
is based on the three coordinate axes X, Y and Z. The axes are
mutually perpendicular and intersect at one point called the datum.
A coordinate identifies the distance from the datum in one of these
directions. A position in a plane is thus described through two
coordinates, and a position in space through three coordinates.
Coordinates that are referenced to the datum are referred to
as absolute coordinates. Relative coordinates are referenced to
any other known position (reference point) you define within the
coordinate system. Relative coordinate values are also referred to
as incremental coordinate values.
When using a milling machine, you orient tool movements to the
Cartesian coordinate system. The illustration at right shows how
the Cartesian coordinate system describes the machine axes. The
figure illustrates the right-hand rule for remembering the three
axis directions: the middle finger points in the positive direction of
the tool axis from the workpiece toward the tool (the Z axis), the
thumb points in the positive X direction, and the index finger in the
positive Y direction.
The TNC 128 can control up to 4 axes. The axes U, V and W
are secondary linear axes parallel to the main axes X, Y and Z,
respectively. Rotary axes are designated as A, B and C. The
illustration at lower right shows the assignment of secondary axes
and rotary axes to the main axes.
3
Fundamentals3.1
Designation of the axes on milling machines
The X, Y and Z axes on your milling machine are also referred to as
tool axis, principal axis (1st axis) and secondary axis (2nd axis). The
assignment of the tool axis is decisive for the assignment of the
principal and secondary axes.
Absolute coordinates are position coordinates that are referenced
to the datum of the coordinate system (origin). Each position on the
workpiece is uniquely defined by its absolute coordinates.
Example 1: Holes dimensioned in absolute coordinates
Hole 1Hole 2Hole 3
X = 10 mmX = 30 mmX = 50 mm
Y = 10 mmY = 20 mmY = 30 mm
Incremental workpiece positions
Incremental coordinates are referenced to the last programmed
nominal position of the tool, which serves as the relative
(imaginary) datum. When you write an NC program in incremental
coordinates, you thus program the tool to move by the distance
between the previous and the subsequent nominal positions. This
is why they are also referred to as chain dimensions.
To program a position in incremental coordinates, enter the
function "I" before the axis.
Example 2: Holes dimensioned in incremental coordinates
Absolute coordinates of hole 4
X = 10 mm
Y = 10 mm
Hole 5, with respect to 4Hole 6, with respect to 5
X = 20 mmX = 20 mm
Y = 10 mmY = 10 mm
Selecting the datum
A production drawing identifies a certain form element of the
workpiece, usually a corner, as the absolute datum. When setting
the datum, you first align the workpiece along the machine axes,
and then move the tool in each axis to a defined position relative
to the workpiece. Set the display of the TNC either to zero or to
a known position value for each position. This establishes the
reference system for the workpiece, which will be used for the
TNC display and your part program.
If the production drawing is dimensioned in relative coordinates,
simply use the coordinate transformation cycles. Coordinate
transformation cycles: see page 449
If the production drawing is not dimensioned for NC, set the
datum at a position or corner on the workpiece from which the
dimensions of the remaining workpiece positions can be most
easily measured.
Datum setting with a 3-D touch probe: see "Datum setting with
3-D touch probe (Touch Probe Functions software option 17)",
page 305
The workpiece drawing shows holes (1 to 4) whose dimensions are
shown with respect to an absolute datum with the coordinates X=0
Y=0. Holes 5 to 7 are dimensioned with respect to a relative datum
with the absolute coordinates X=450, Y=750. With the DATUMSHIFT cycle you can temporarily set the datum to the position
X=450, Y=750, to be able to program holes 5 to 7 without further
calculations.
Organization of an NC program in HEIDENHAIN
Conversational format
A part program consists of a series of program blocks. The figure at
right illustrates the elements of a block.
The TNC numbers the blocks of a part program in ascending
sequence.
The first block of a program is identified by BEGIN PGM, the
program name and the active unit of measure.
The subsequent blocks contain information on:
The workpiece blank
Tool calls
Approaching a safe position
Feed rates and spindle speeds, as well as
Movements, cycles and other functions
The last block of a program is identified by END PGM the program
name and the active unit of measure.
After each tool call, HEIDENHAIN recommends
always traversing to a safe position from which the
TNC can position the tool for machining without
causing a collision!
Immediately after initiating a new program, you define an
unmachined workpiece blank. If you wish to define the blank at a
later stage, press the spec fct key, the PROGRAM DEFAULTS soft
key, and then the BLK FORM soft key. The TNC needs this definition
for graphic simulation.
You only need to define the workpiece blank if you
wish to run a graphic test for the program!
The TNC can depict various types of blank forms.
Soft keyFunction
Define a rectangular blank
3
Define a cylindrical blank
Rectangular blank
The sides of the cuboid lie parallel to the X, Y and Z axes. This
blank is defined by two of its corner points:
MIN point: the smallest X, Y and Z coordinates of the blank
form, entered as absolute values
MAX point: the largest X, Y and Z coordinates of the blank form,
entered as absolute or incremental values
Example: Display the BLK FORM in the NC program
0 BEGIN PGM NEW MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 END PGM NEW MM
Program begin, name, unit of measure
Spindle axis, MIN point coordinates
MAX point coordinates
Program end, name, unit of measure
The cylindrical blank form is defined by the dimensions of the
cylinder:
R: Radius of the cylinder
L: Length of the cylinder
DIST: Shifting along the rotational axis
RI: Inside radius for a hollow cylinder
The DIST and RI parameters are optional and do not
need to be programmed.
Example: Display the BLK FORM CYLINDER in the NC program
0 BEGIN PGM NEW MM
1 BLK FORM CYLINDER Z R50 L105 DIST+5 RI10
2 END PGM NEW MM
Program begin, name, unit of measure
Spindle axis, radius, length, distance, inside radius
Program end, name, unit of measure
Opening a new part program
You always enter a part program in the PROGRAMMING mode of
operation. An example of program initiation:
Select the PROGRAMMING mode of operation
Call the file manager: Press the PGM MGT key
Select the directory in which you wish to store the new program:
FILE NAME = NEW.H
Enter the new program name and confirm your
entry with the ENT key.
Select the unit of measure: Press the MM or INCH
soft key. The TNC switches the screen layout and
initiates the dialog for defining the BLK FORM
(workpiece blank)
Select a rectangular workpiece blank: Press the
soft key for a rectangular blank form
WORKING PLANE IN GRAPHIC: XY
Enter spindle axis, e.g. Z
WORKPIECE BLANK DEF.: MINIMUM
Enter in sequence the X, Y and Z coordinates of
the MIN point and confirm each of your entries
with the ENT key
WORKPIECE BLANK DEF.: MAXIMUM
Enter in sequence the X, Y and Z coordinates of
the MAX point and confirm each of your entries
with the ENT key
The TNC automatically generates the block numbers as well as the
BEGIN and END blocks.
If you do not wish to define a blank form, cancel the
dialog at Working plane in graphic: XY by pressing
the DEL key.
Programming tool movements in conversational
To program a block, initiate the dialog by pressing a axis key. In
the screen headline, the TNC then asks you for all the information
necessary to program the desired function.
Program begin, name, unit of measure
Spindle axis, MIN point coordinates
MAX point coordinates
Program end, name, unit of measure
3
Example of a positioning block
COORDINATES ?
10 (Enter the target coordinate for the X axis)
go to the next question with ENT.
TOOL RADIUS COMP: R+/R–/NO COMP:?
Enter "No radius compensation" and go to the next
question with ENT.
FEED RATE F=? / F MAX = ENT
100 (Enter a feed rate of 100 mm/min for this path contour)
go to the next question with ENT.
MISCELLANEOUS FUNCTION M ?
Enter 3 (miscellaneous function M3 "Spindle ON").
With the END key, the TNC ends this dialog.
The program-block window displays the following line:
Move at the programmed feed rate (unit of
measure is mm/min or 1/10 inch/min). With
rotary axes, the TNC interprets the feed rate
in degrees/min, regardless of whether the
program is written in mm or inches
Define the feed per revolution (units in mm/
rev or inch/rev). Caution: In inch-programs, FU
cannot be combined with M136
Define the tooth feed (units in mm/tooth or
inch/tooth). The number of teeth must be
defined in the tool table in the CUT column.
The TNC enables you to transfer the current tool position into the
program, for example during
Positioning-block programming
Cycle programming
To transfer the correct position values, proceed as follows:
Place the input box at the position in the block where you want
to insert a position value
Select the actual-position-capture function: In the
soft-key row the TNC displays the axes whose
positions can be transferred
Select the axis: The TNC writes the current
position of the selected axis into the active input
box
3
In the working plane the TNC always captures the
coordinates of the tool center, even though tool
radius compensation is active.
In the tool axis the TNC always captures the
coordinates of the tool tip and thus always takes the
active tool length compensation into account.
The TNC keeps the soft-key row for axis selection
active until you deactivate it by pressing the actualposition-capture key again. This behavior remains
in effect even if you save the current block and
open a new one with a axis key. If you select a
block element in which you must choose an input
alternative via soft key (e.g. for radius compensation),
then the TNC also closes the soft-key row for axis
selection.
You cannot edit a program while it is being run by the
TNC in a machine operating mode.
While you are creating or editing a part program, you can select any
desired line in the program or individual words in a block with the
arrow keys or the soft keys:
FunctionSoft key/Keys
Go to previous page
Go to next page
Go to beginning of program
Go to end of program
Change the position of the current block
on the screen. Press this soft key to
display additional program blocks that are
programmed before the current block
Change the position of the current block
on the screen. Press this soft key to
display additional program blocks that are
programmed after the current block
Move from one block to the next
Select individual words in a block
To select a certain block, press the GOTO
key, enter the desired block number, and
confirm with the ENT key. Or: Enter the
block number step and press the N LINES
soft key to jump over the entered number
of lines upward or downward
Select the block after which you want to insert a new block and
initiate the dialog
Editing and inserting words
Select a word in a block and overwrite it with the new one. The
plain-language dialog is available while the word is highlighted
To accept the change, press the END key
If you want to insert a word, press the horizontal arrow key
repeatedly until the desired dialog appears. You can then enter the
desired value.
Looking for the same words in different blocks
Select a word in a block: Press the arrow key
repeatedly until the highlight is on the desired
word
Select a block with the arrow keys
The word that is highlighted in the new block is the same as the
one you selected previously.
If you have started a search in a very long program,
the TNC shows a progress display window. You then
have the option of canceling the search via soft key.
Marking, copying, cutting and inserting program sections
The TNC provides certain functions for copying program sections
within an NC program or into another NC program—see the table
below.
To copy a program section, proceed as follows:
Select the soft-key row containing the marking functions
Select the first block of the section you wish to copy
Mark the first block: Press the SELECT BLOCK soft key. The TNC
then highlights the block and displays the CANCEL SELECTION
soft key
Move the highlight to the last block of the program section you
wish to copy or cut. The TNC shows the marked blocks in a
different color. You can end the marking function at any time by
pressing the CANCEL SELECTION soft key
Copy the selected program section: Press the COPY BLOCK soft
key. Cut the selected program section: Press the CUT BLOCK
soft key. The TNC stores the selected block
Using the arrow keys, select the block after which you wish to
insert the copied (cut) program section
To insert the section into another program, select the
corresponding program using the file manager and
then mark the block after which you wish to insert
the program section.
Insert the saved program section: Press the INSERT BLOCK soft
key
To end the marking function, press the Cancel selection soft
key
a program is protected
the program is currently being run by the TNC
When using the REPLACE ALL function, ensure that
you do not accidentally replace text that you do not
want to change. Once replaced, such text cannot be
restored.
Select the block containing the word you wish to find
Select the Search function: The TNC
superimposes the search window and displays the
available search functions in the soft-key row
Press the CURRENT WORD soft key: The TNC
loads the first word of the current block. If
required, press the info key again to load the
desired word.
Start the search process: The TNC moves to the
next occurrence of the text you are searching for
To replace the text and then move to the next
occurrence of the text, press the REPLACE soft
key. To replace all text occurrences, press the
REPLACE ALL soft key. To skip the text and move
to its next occurrence press the FIND soft key
When you write a part program on the TNC, you must first enter a
program name. The TNC saves the program to the internal memory
as a file with the same name. The TNC can also save texts and
tables as files.
The TNC provides a special file management window in which
you can easily find and manage your files. Here you can call, copy,
rename and erase files.
With the TNC you can manage and save files up to a total size of
2 GB.
Depending on the setting, the TNC generates a
backup file (*.bak) after editing and saving of NC
programs. This can reduce the memory space
available to you.
When you store programs, tables and texts as files, the TNC adds
an extension to the file name, separated by a point. This extension
indicates the file type.
File nameFile type
PROG20.H
File names should not exceed 24 characters, otherwise the TNC
cannot display the entire file name.
File names on the TNC must comply with this standard: The Open
Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition
(Posix-Standard). Accordingly, the file names may include the
characters below:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g
h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 . _ -
You should not use any other characters in file names in order to
prevent any file transfer problems.
The maximum limit for the path and file name
together is 255 characters, see "Paths", page 98.
The TNC features several additional tools which you can use to
display the files shown in the table below. Some of the files can
also be edited.
File typesType
3
PDF files
Excel tables
Internet files
Text filestxt
Graphics filesbmp
For further information about displaying and editing the listed file
types: see page 110
pdf
xls
csv
html
ini
gif
jpg
png
Data Backup
We recommend saving newly written programs and files on a PC at
regular intervals.
The TNCremo data transmission freeware from HEIDENHAIN is a
simple and convenient method for backing up data stored on the
TNC.
You additionally need a data medium on which all machinespecific data, such as the PLC program, machine parameters,
etc., are stored. Ask your machine manufacturer for assistance, if
necessary.
Take the time occasionally to delete any unneeded
files so that the TNC always has enough memory
space for system files (such as the tool table).
To ensure that you can easily find your files, we recommend that
you organize your internal memory into directories. You can divide
a directory into further directories, which are called subdirectories.
With the –/+ key or ENT you can show or hide the subdirectories.
Paths
A path indicates the drive and all directories and subdirectories
under which a file is saved. The individual names are separated by a
backslash "\".
The path, including all drive characters, directory
and the file name, including the extension, must not
exceed 255 characters!
Example
The directory AUFTR1 was created on the TNC drive. Then, in the
AUFTR1 directory, the directory NCPROG was created and the part
program PROG1.H was copied into it. The part program now has
the following path:
TNC:\AUFTR1\NCPROG\PROG1.H
The chart at right illustrates an example of a directory display with
different paths.
Press the PGM MGT key: The TNC displays the
file management window (see figure for default
setting. If the TNC displays a different screen
layout, press the WINDOW soft key)
The narrow window on the left shows the available drives and
directories. Drives designate devices with which data are stored
or transferred. One drive is the internal memory of the TNC. Other
drives are the interfaces (RS232, Ethernet), which can be used, for
example, for connecting a personal computer. A directory is always
identified by a folder symbol to the left and the directory name to
the right. Subdirectories are shown to the right of and below their
parent directories. If there are subdirectories, you can show or hide
them using the -/+ key.
The wide window on the right shows you all files that are stored
in the selected directory. Each file is shown with additional
information, illustrated in the table below.
DisplayMeaning
File name
Byte
Status
EProgram is selected in the Programming
SProgram is selected in the Test Run
MProgram is selected in a Program Run
Date
Time
File name (max. 25 characters) and file
type
File size in bytes
File properties:
mode of operation
mode of operation
mode of operation
File is protected against erasing and
editing
File is protected against erasing and
editing, because it is being run
Date that the file was last edited
Time that the file was last edited