Manual de Operação ITNC530

Download as pdf or txt
Download as pdf or txt
You are on page 1of 656

iTNC 530

NC Software
340 422-xx
340 423-xx
340 480-xx
340 481-xx

User’s Manual
HEIDENHAIN Conversational
Format

English (en)
7/2004
Controls on the visual display unit Programming path movements
Split screen layout Approach/depart contour
Switch between machining or
programming modes FK free contour programming

Soft keys for selecting functions in Straight line


screen
Switch the soft-key rows Circle center/pole for polar coordinates

Typewriter keyboard for entering letters and symbols Circular arc with center
File names
Comments Circular arc with radius
ISO Circular arc with tangential connection
programs
Machine operating modes Chamfer
Manual Operation
Corner rounding
Electronic Handwheel
Tool functions
Positioning with Manual Data Input (MDI) Enter and call tool length and radius

Program Run, Single Block Cycles, subprograms and program section


repeats
Program Run, Full Sequence
Define and call cycles
Programming modes Enter and call labels for subprogramming and
program section repeats
Programming and Editing
Program stop in a program
Test Run
Define touch probe cycles
Program/file management, TNC functions
Select or delete programs and files Coordinate axes and numbers: Entering and editing
External data transfer Select coordinate axes or
Define program call, select datum and point tables ... enter them into the program

... Numbers
MOD functions
Decimal point
Display help texts for NC error messages
Change arithmetic sign
Display all current error messages
Polar coordinates
Pocket calculator
Incremental dimensions
Moving the highlight, going directly to blocks, cycles
and parameter functions Q parameter programming/Q parameter status
Move highlight Assume actual position or values from calculator
Go directly to blocks, cycles and parameter Skip dialog questions, delete words
functions
Override control knobs for feed rate/spindle speed Confirm entry and resume dialog
100 100 Conclude block, exit entry
Clear numerical entry or clear TNC error message
50 150 50 150
Abort dialog, delete program section
F % S %
0 0
TNC Model, Software and Features
This manual describes functions and features provided by TNCs as of
the following NC software numbers.

TNC model NC software number


iTNC 530 340 422-xx

iTNC 530 E 340 423-xx

iTNC 530, dual-processor version 340 480-xx

iTNC 530 E, dual-processor version 340 481-xx

iTNC 530 Programming Station 374 150-xx

The suffix E indicates the export version of the TNC. The export
version of the TNC has the following limitations:
„ Linear movement is possible in no more than 4 axes simultaneously.
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 not be among the features provided by
your machine tool.
Some TNC functions have to be implemented by the machine tool
builder and are therefore not universally available on all machines.
These functions include:
„ Probing function for the 3-D touch probe
„ Tool measurement with the TT 130
„ Rigid tapping
„ Returning to the contour after an interruption

HEIDENHAIN iTNC 530 5


In addition, the iTNC 530 also has two software option packets that
can be enabled by you or your machine tool builder. Each packet is to
be enabled separately and contains the following respective functions:

Software option 1
Cylinder surface interpolation (Cycles 27, 28, 29 and 39)

Feed rate in mm/min on rotary axes: M116

Tilting the machining plane (Cycle 19 and 3D-ROT soft key in the
manual operating mode)

Circle in 3 axes (with tilted working plane)

Software option 2
Block processing time 0.5 ms instead of 3.6 ms

5 axis interpolation

Spline interpolation

3-D machining:
„ M114: Automatic compensation of machine geometry when
working with tilted axes
„ M128: Maintaining the position of the tool tip when positioning
with tilted axes (TCPM)
„ FUNCTION TCPM: Maintaining the position of the tool tip when
positioning with tilted axes (TCPM) in selectable modes.
„ M144: Compensating the machine’s kinematic configuration for
ACTUAL/NOMINAL positions at end of block
„ Additional parameters finishing/roughing and tolerance for
rotary axes in Cycle 32 (G62)
„ LN blocks (3-D compensation)

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.

Touch Probe Cycles User’s Manual:


All of the touch probe functions are described in a separate
manual. Please contact HEIDENHAIN if you require a copy
of this User’s Manual. ID number: 375 319-xx.

Location of use
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.

6
Functions new since the predecessor versions
340 420-xx and 340 421-xx
„ Datum management via the preset table (see “Datum
management with the preset table” on page 66)
„ New milling cycle RECTANGULAR POCKET (see “RECTANGULAR
POCKET (Cycle 251)” on page 328)
„ New milling cycle CIRCULAR POCKET (see “CIRCULAR POCKET
(Cycle 252)” on page 333)
„ New milling cycle SLOT MILLING (see “SLOT MILLING (Cycle 253)”
on page 337)
„ New milling cycle CIRCULAR SLOT (see “CIRCULAR SLOT (Cycle
254)” on page 342)
„ The CYCL CALL POS function provides a new possibility for calling
fixed cycles (see “Calling a cycle with CYCL CALL POS” on page
272)
„ Cycle 205 UNIVERSAL PECKING has been expanded: a deeper starting
point for pecking can now be entered (see “UNIVERSAL PECKING
(Cycle 205)” on page 291)
„ The POLAR PATTERN cycle has been expanded: Traverse between
machining positions is selectable on a straight line or pitch circle
(see “CIRCULAR PATTERN (Cycle 220)” on page 365)
„ Special features of the iTNC 530 with Windows 2000 (see “iTNC
530 with Windows 2000 (Option)” on page 635)
„ Management of dependent files (see “Dependent files” on page
593)
„ Testing network connections with the ping monitor (see “Test
network connection” on page 591)
„ Generating a file with version numbers (see “Code Numbers” on
page 579)
„ Cycle 210 SLOT WITH RECIPROCATING PLUNGING has been expanded
by the parameter for the feed-rate for plunging during finishing (see
“SLOT (oblong hole) with reciprocating plunge-cut (Cycle 210)” on
page 355)
„ Cycle 211 CIRCULAR SLOT has been expanded by the parameter for
the feed-rate for plunging during finishing (see “CIRCULAR SLOT
(oblong hole) with reciprocating plunge-cut (Cycle 211)” on page
358)
„ Creation of a tool usage file containing information on the tools to be
used (see “Dependent files” on page 593)
„ New powerful function for Tilting the working plane (see “The
PLANE Function: Tilting the Working Plane (Software Option 1)” on
page 456)

HEIDENHAIN iTNC 530 7


„ New LIFTOFF column in the tool table to automatically remove tool
from the contour after an NC stop (see “Tool table: Standard tool
data” on page 154). Function is activate with M148 (see “Tool table:
Standard tool data” on page 154) and (see “Automatically retract
tool from the contour at an NC stop: M148” on page 256)
„ New powerful function for adjusting the positioning behavior of
rotary axes: FUNCTION TCPM (see “TCPM FUNCTION (Software
Option 2)” on page 480)
„ Conversion of FK programs in conversational programs (see
“Converting FK programs into HEIDENHAIN conversational format”
on page 220)
„ Generation of backward-running programs (see “Generate
Backward Program” on page 485)
„ Displaying messages from the program as explanatory text on the
screen (see “Displaying messages on the TNC screen” on page
525)
„ Show the superimposed window containing all current error
messages (see “List of all current error messages” on page 131)
„ When a program run is interrupted (power failure), the TNC stores
the point of interruption (see “Mid-program startup (block scan)” on
page 569)
„ Search function: New function for replacing all (see “Find/Replace
any text” on page 120)
„ New cycle for face milling (see “FACE MILLING (Cycle 232)” on
page 421)
„ A TURN function for automatic swiveling of the PLANE function was
introduced (see “Automatic positioning: MOVE/TURN/STAY (entry is
mandatory)” on page 473)
„ Feed rate programming: Traversing the programmed path within a
definable time (see “Functions for setting the feed rate” on page
114)
„ Setting the simulation speed during Test Run (see “Setting the
speed of the test run” on page 555)
„ Overwriting empty lines in the tool table (see “Copying a table” on
page 102)
„ Updating TNC software (see “Loading Service Packs” on page 580)
„ Cycle 22 ROUGHING was expanded by a parameter for retraction
feed rate (see “ROUGH-OUT (Cycle 22)” on page 380)
„ Cycle 23 FLOOR FINISHING was expanded by a parameter for
retraction feed rate (see “FLOOR FINISHING (Cycle 23)” on page
381)

8
„ The iTNC software now also supports the HR 420 handwheel (see
“HR 420 Electronic Handwheel” on page 57)
„ Cycle 28 was expanded by the parameter Q21 for tolerance (see
“CYLINDER SURFACE slot milling (Cycle 28, software option 1)” on
page 387)
„ The Cycle 29 CYLINDER SURFACE ridge milling was introduced
(see “CYLINDER SURFACE ridge milling (Cycle 29, software
option 1)” on page 390)
„ The Cycle 39 CYLINDER SURFACE outside contour milling was
introduced (see “CYLINDER SURFACE outside contour milling
(Cycle 39, software option 1)” on page 392)
„ Block number display was reintroduced in the programming
graphics (see “Show block number in graphic window” on page
219)

HEIDENHAIN iTNC 530 9


Functions changed since the predecessor
versions 340420-xx and 340 421-xx
„ The datum shift in datum table function was changed. REF-based
datums are no longer available. Instead, the preset table was
introduced (see “DATUM SHIFT with datum tables (Cycle 7)” on
page 431)
„ The function of Cycle 247 was changed. Cycle 247 now activates a
preset from the preset table (see “DATUM SETTING (Cycle 247)”
on page 435)
„ Machine parameter 7475 is now meaningless (see “Compatibility
machine parameters for datum tables” on page 623)
„ The old fixed cycles 1, 2, 3, 4, 5, 17 and 18 were removed from he
soft-key structure and can therefore no longer be defined. Old
programs containing these cycles can still be run, however.
„ The Show blank in work space function was revised (see
“Showing the Workpiece in the Working Space” on page 596)
„ Automatic tool change after expiration of the tool life (M101) now
goes faster (see “Automatic tool change if the tool life expires:
M101” on page 166)
„ M116 now ignores swivel-head rotary axes (see “Feed rate in mm/
min on rotary axes A, B, C: M116 (software option 1)” on page 257)
„ In Cycles 251 to 254 the plunging behavior was changed. In vertical
plunging (Q366=0). the plunging angle ANGLE in the tool table must
now be set to =90°. Up to now, ANGLE had to be set to 0° for
vertical plunging. (see “Cycles for Milling Pockets, Studs and Slots”
on page 327)
„ In Cycles 251 to 254 the behavior for the finishing machining
operation (Q215=2) and oversize=0 (Q368/Q369) was changed.
(see “Cycles for Milling Pockets, Studs and Slots” on page 327)
„ The maximum number of tools in the tool table was reduced to
30 000 (see “Entering tool data in tables” on page 154)
„ The tool usage monitor was expanded by the capability of running
for a complete pallet (see “Dependent files” on page 593)

10
New/changed descriptions in this manual
„ Meaning of software numbers after the MOD functions have been
selected (see “Software Numbers and Option Numbers” on page
578).
„ Calling machining cycles (see “Calling cycles” on page 271)
„ Programming example with new milling cycles (see “Example:
Milling pockets, studs and slots” on page 361)
„ New description of the TE 530 keyboard unit (see “Keyboard” on
page 41)
„ Overwriting tool data from an external PC (see “Using an external
PC to overwrite individual tool data” on page 160)
„ Connecting the iTNC directly with a Windows PC (see “Connecting
the iTNC directly with a Windows PC” on page 586)
„ Microsoft End User License Agreement (EULA) included (see “End
User License Agreement (EULA) for Windows 2000” on page 636)
„ The description of the old fixed cycles 1, 2, 3, 4, 5, 17 and 18 were
removed.
„ The description of Cycle 24 was expanded (see “SIDE FINISHING
(Cycle 24)” on page 382)

HEIDENHAIN iTNC 530 11


Contents Introduction
1
Manual Operation and Setup
2
Positioning with Manual Data Input
(MDI) 3
Programming: Fundamentals of File
Management, Programming Aids 4
Programming: Tools
5
Programming: Programming Contours
6
Programming: Miscellaneous Functions
7
Programming: Cycles
8
Programming: Special Functions
9
Programming: Subprograms and
Program Section Repeats 10
Programming: Q Parameters
11
Test Run and Program Run
12
MOD Functions
13
Tables and Overviews
14
iTNC 530 with Windows 2000 (Option)
15

HEIDENHAIN iTNC 530 13


1 Introduction ..... 37
1.1 The iTNC 530 ..... 38
Programming: HEIDENHAIN conversational and ISO formats ..... 38
Compatibility ..... 38
1.2 Visual Display Unit and Keyboard ..... 39
Visual display unit ..... 39
Screen layout ..... 40
Keyboard ..... 41
1.3 Modes of Operation ..... 42
Manual Operation and Electronic Handwheel ..... 42
Positioning with Manual Data Input (MDI) ..... 42
Programming and editing ..... 43
Test Run ..... 43
Program Run, Full Sequence and Program Run, Single Block ..... 44
1.4 Status Displays ..... 45
“General” status display ..... 45
Additional status displays ..... 46
1.5 Accessories: HEIDENHAIN 3-D Touch Probes and Electronic Handwheels ..... 49
3-D touch probes ..... 49
HR electronic handwheels ..... 50

HEIDENHAIN iTNC 530 15


2 Manual Operation and Setup ..... 51
2.1 Switch-On, Switch-Off ..... 52
Switch-on ..... 52
Switch-off ..... 53
2.2 Moving the Machine Axes ..... 54
Note ..... 54
To traverse with the machine axis direction buttons: ..... 54
Incremental jog positioning ..... 55
Traversing with the HR 410 electronic handwheel ..... 56
HR 420 Electronic Handwheel ..... 57
2.3 Spindle Speed S, Feed Rate F and Miscellaneous Functions M ..... 63
Function ..... 63
Entering values ..... 63
Changing the spindle speed and feed rate ..... 63
2.4 Datum Setting (Without a 3-D Touch Probe) ..... 64
Note ..... 64
Preparation ..... 64
Datum setting with axis keys ..... 65
Datum management with the preset table ..... 66
2.5 Tilting the Working Plane (Software Option 1) ..... 72
Application, function ..... 72
Traversing the reference points in tilted axes ..... 73
Setting the datum in a tilted coordinate system ..... 74
Datum setting on machines with rotary tables ..... 74
Datum setting on machines with spindle-head changing systems ..... 74
Position display in a tilted system ..... 75
Limitations on working with the tilting function ..... 75
Activating manual tilting ..... 76

3 Positioning with Manual Data Input (MDI) ..... 77


3.1 Programming and Executing Simple Machining Operations ..... 78
Positioning with Manual Data Input (MDI) ..... 78
Protecting and erasing programs in $MDI ..... 80

16
4 Fundamentals of NC, File Management, Programming Aids, Pallet Management ..... 81
4.1 Fundamentals ..... 82
Position encoders and reference marks ..... 82
Reference system ..... 82
Reference system on milling machines ..... 83
Polar coordinates ..... 84
Absolute and incremental workpiece positions ..... 85
Setting the datum ..... 86
4.2 File Management: Fundamentals ..... 87
Files ..... 87
Data backup ..... 88
4.3 Standard File Management ..... 89
Note ..... 89
Calling the file manager ..... 89
Selecting a file ..... 90
Deleting a file ..... 90
Copying a file ..... 91
Data transfer to or from an external data medium ..... 92
Selecting one of the last 10 files selected ..... 94
Renaming a file ..... 94
Protecting a file / Canceling file protection ..... 95
4.4 Advanced File Management ..... 96
Note ..... 96
Directories ..... 96
Paths ..... 96
Overview: Functions of the expanded file manager ..... 97
Calling the file manager ..... 98
Selecting drives, directories and files ..... 99
Creating a new directory (only possible on the drive TNC:\) ..... 100
Copying a single file ..... 101
Copying a directory ..... 102
Choosing one of the last 10 files selected ..... 103
Deleting a file ..... 103
Deleting a directory ..... 103
Tagging files ..... 104
Renaming a file ..... 105
Additional functions ..... 105
Data transfer to or from an external data medium ..... 106
Copying files into another directory ..... 108
The TNC in a Network ..... 109

HEIDENHAIN iTNC 530 17


4.5 Creating and Writing Programs ..... 110
Organization of an NC program in HEIDENHAIN conversational format ..... 110
Defining the blank form – BLK FORM ..... 110
Creating a new part program ..... 111
Programming tool movements in conversational format ..... 113
Actual position capture ..... 115
Editing a program ..... 116
The TNC search function ..... 119
4.6 Interactive Programming Graphics ..... 121
To generate/not generate graphics during programming: ..... 121
Generating a graphic for an existing program ..... 121
Block number display ON/OFF ..... 122
To erase the graphic: ..... 122
Magnifying or reducing a detail ..... 122
4.7 Structuring Programs ..... 123
Definition and applications ..... 123
Displaying the program structure window / Changing the active window ..... 123
Inserting a structuring block in the (left) program window ..... 123
Selecting blocks in the program structure window ..... 123
4.8 Adding Comments ..... 124
Function ..... 124
Entering comments during programming ..... 124
Inserting comments after program entry ..... 124
Entering a comment in a separate block ..... 124
Functions for editing of the comment ..... 124
4.9 Creating Text Files ..... 125
Function ..... 125
Opening and exiting text files ..... 125
Editing texts ..... 126
Erasing and inserting characters, words and lines ..... 127
Editing text blocks ..... 127
Finding text sections ..... 128
4.10 Integrated Pocket Calculator ..... 129
Operation ..... 129

18
4.11 Immediate Help for NC Error Messages ..... 130
Displaying error messages ..... 130
Display HELP ..... 130
4.12 List of all current error messages ..... 131
Function ..... 131
Show error list ..... 131
Window contents ..... 132
4.13 Pallet Management ..... 133
Function ..... 133
Selecting a pallet table ..... 135
Leaving the pallet file ..... 135
Executing the pallet file ..... 136
4.14 Pallet Operation with Tool-Oriented Machining ..... 137
Function ..... 137
Selecting a pallet file ..... 141
Setting up the pallet file with the entry form ..... 142
Sequence of tool-oriented machining ..... 146
Leaving the pallet file ..... 147
Executing the pallet file ..... 147

HEIDENHAIN iTNC 530 19


5 Programming: Tools ..... 149
5.1 Entering Tool-Related Data ..... 150
Feed rate F ..... 150
Spindle speed S ..... 151
5.2 Tool Data ..... 152
Requirements for tool compensation ..... 152
Tool numbers and tool names ..... 152
Tool length L ..... 152
Tool radius R ..... 153
Delta values for lengths and radii ..... 153
Entering tool data into the program ..... 153
Entering tool data in tables ..... 154
Using an external PC to overwrite individual tool data ..... 160
Pocket table for tool changer ..... 161
Calling tool data ..... 164
Tool change ..... 165
5.3 Tool Compensation ..... 167
Introduction ..... 167
Tool length compensation ..... 167
Tool radius compensation ..... 168
5.4 Three-Dimensional Tool Compensation (Software Option 2) ..... 171
Introduction ..... 171
Definition of a normalized vector ..... 172
Permissible tool forms ..... 172
Using other tools: Delta values ..... 173
3-D compensation without tool orientation ..... 173
Face Milling: 3-D compensation with and without tool orientation ..... 174
Peripheral Milling: 3-D radius compensation with workpiece orientation ..... 176
5.5 Working with Cutting Data Tables ..... 178
Note ..... 178
Applications ..... 178
Table for workpiece materials ..... 179
Table for tool cutting materials ..... 180
Table for cutting data ..... 180
Data required for the tool table ..... 181
Working with automatic speed / feed rate calculation ..... 182
Changing the table structure ..... 182
Data transfer from cutting data tables ..... 184
Configuration file TNC.SYS ..... 184

20
6 Programming: Programming Contours ..... 185
6.1 Tool Movements ..... 186
Path functions ..... 186
FK Free Contour Programming ..... 186
Miscellaneous functions M ..... 186
Subprograms and Program Section Repeats ..... 186
Programming with Q parameters ..... 186
6.2 Fundamentals of Path Functions ..... 187
Programming tool movements for workpiece machining ..... 187
6.3 Contour Approach and Departure ..... 191
Overview: Types of paths for contour approach and departure ..... 191
Important positions for approach and departure ..... 191
Approaching on a straight line with tangential connection: APPR LT ..... 193
Approaching on a straight line perpendicular to the first contour point: APPR LN ..... 193
Approaching on a circular path with tangential connection: APPR CT ..... 194
Approaching on a circular arc with tangential connection from a straight line to the contour: APPR LCT ..... 195
Departing on a straight line with tangential connection: DEP LT ..... 196
Departing on a straight line perpendicular to the last contour point: DEP LN ..... 196
Departure on a circular path with tangential connection: DEP CT ..... 197
Departing on a circular arc tangentially connecting the contour and a straight line: DEP LCT ..... 197
6.4 Path Contours—Cartesian Coordinates ..... 198
Overview of path functions ..... 198
Straight Line L ..... 199
Inserting a Chamfer CHF between Two Straight Lines ..... 200
Corner Rounding RND ..... 201
Circle center CC ..... 202
Circular path C around circle center CC ..... 203
Circular path CR with defined radius ..... 204
Circular Path CT with Tangential Connection ..... 205

HEIDENHAIN iTNC 530 21


6.5 Path Contours—Polar Coordinates ..... 210
Overview ..... 210
Polar coordinate origin: Pole CC ..... 211
Straight line LP ..... 212
Circular path CP around pole CC ..... 212
Circular Path CTP with Tangential Connection ..... 213
Helical interpolation ..... 213
6.6 Path Contours—FK Free Contour Programming ..... 218
Fundamentals ..... 218
Graphics during FK programming ..... 219
Converting FK programs into HEIDENHAIN conversational format ..... 220
Initiating the FK dialog ..... 221
Free programming of straight lines ..... 222
Free programming of circular arcs ..... 222
Input possibilities ..... 223
Auxiliary points ..... 226
Relative data ..... 227
6.7 Contour Movements—Spline Interpolation (Software Option 2) ..... 234
Function ..... 234

22
7 Programming: Miscellaneous Functions ..... 237
7.1 Entering Miscellaneous Functions M and STOP ..... 238
Fundamentals ..... 238
7.2 Miscellaneous Functions for Program Run Control, Spindle and Coolant ..... 239
Overview ..... 239
7.3 Miscellaneous Functions for Coordinate Data ..... 240
Programming machine-referenced coordinates: M91/M92 ..... 240
Activating the most recently entered datum: M104 ..... 242
Moving to positions in a non-tilted coordinate system with a tilted working plane: M130 ..... 242
7.4 Miscellaneous Functions for Contouring Behavior ..... 243
Smoothing corners: M90 ..... 243
Insert rounding arc between straight lines: M112 ..... 244
Do not include points when executing non-compensated line blocks: M124 ..... 244
Machining small contour steps: M97 ..... 245
Machining open contours: M98 ..... 247
Feed rate factor for plunging movements: M103 ..... 248
Feed rate in millimeters per spindle revolution: M136 ..... 249
Feed rate for circular arcs: M109/M110/M111 ..... 250
Calculating the radius-compensated path in advance (LOOK AHEAD): M120 ..... 250
Superimposing handwheel positioning during program run: M118 ..... 252
Retraction from the contour in the tool-axis direction: M140 ..... 253
Suppressing touch probe monitoring: M141 ..... 254
Delete modal program information: M142 ..... 255
Delete basic rotation: M143 ..... 255
Automatically retract tool from the contour at an NC stop: M148 ..... 256
7.5 Miscellaneous Functions for Rotary Axes ..... 257
Feed rate in mm/min on rotary axes A, B, C: M116 (software option 1) ..... 257
Shorter-path traverse of rotary axes: M126 ..... 258
Reducing display of a rotary axis to a value less than 360°: M94 ..... 259
Automatic compensation of machine geometry when working with tilted axes: M114 (software option 2) ..... 260
Maintaining the position of the tool tip when positioning with tilted axes (TCPM): M128
(software option 2) ..... 261
Exact stop at corners with nontangential transitions: M134 ..... 263
Selecting tilting axes: M138 ..... 263
Compensating the machine’s kinematic configuration for ACTUAL/NOMINAL positions at end of block: M144
(software option 2) ..... 264
7.6 Miscellaneous Functions for Laser Cutting Machines ..... 265
Principle ..... 265
Output the programmed voltage directly: M200 ..... 265
Output voltage as a function of distance: M201 ..... 265
Output voltage as a function of speed: M202 ..... 265
Output voltage as a function of time (time-dependent ramp): M203 ..... 266
Output voltage as a function of time (time-dependent pulse): M204 ..... 266

HEIDENHAIN iTNC 530 23


8 Programming: Cycles ..... 267
8.1 Working with Cycles ..... 268
Machine-specific cycles ..... 268
Defining a cycle using soft keys ..... 269
Defining a cycle using the GOTO function ..... 269
Calling cycles ..... 271
Working with the secondary axes U/V/W ..... 273
8.2 Point Tables ..... 274
Function ..... 274
Creating a point table ..... 274
Selecting a point table in the program ..... 275
Calling a cycle in connection with point tables ..... 276
8.3 Cycles for Drilling, Tapping and Thread Milling ..... 278
Overview ..... 278
DRILLING (Cycle 200) ..... 280
REAMING (Cycle 201) ..... 282
BORING (Cycle 202) ..... 284
UNIVERSAL DRILLING (Cycle 203) ..... 286
BACK BORING (Cycle 204) ..... 288
UNIVERSAL PECKING (Cycle 205) ..... 291
BORE MILLING (Cycle 208) ..... 294
TAPPING NEW with floating tap holder (Cycle 206) ..... 296
RIGID TAPPING without a floating tap holder NEW (Cycle 207) ..... 298
TAPPING WITH CHIP BREAKING (Cycle 209) ..... 300
Fundamentals of thread milling ..... 302
THREAD MILLING (Cycle 262) ..... 304
THREAD MILLING/COUNTERSINKING (Cycle 263) ..... 306
THREAD DRILLING/MILLING (Cycle 264) ..... 310
HELICAL THREAD DRILLING/MILLING (Cycle 265) ..... 314
OUTSIDE THREAD MILLING (Cycle 267) ..... 318
8.4 Cycles for Milling Pockets, Studs and Slots ..... 327
Overview ..... 327
RECTANGULAR POCKET (Cycle 251) ..... 328
CIRCULAR POCKET (Cycle 252) ..... 333
SLOT MILLING (Cycle 253) ..... 337
CIRCULAR SLOT (Cycle 254) ..... 342
POCKET FINISHING (Cycle 212) ..... 347
STUD FINISHING (Cycle 213) ..... 349
CIRCULAR POCKET FINISHING (Cycle 214) ..... 351
CIRCULAR STUD FINISHING (Cycle 215) ..... 353
SLOT (oblong hole) with reciprocating plunge-cut (Cycle 210) ..... 355
CIRCULAR SLOT (oblong hole) with reciprocating plunge-cut (Cycle 211) ..... 358

24
8.5 Cycles for Machining Point Patterns ..... 364
Overview ..... 364
CIRCULAR PATTERN (Cycle 220) ..... 365
LINEAR PATTERN (Cycle 221) ..... 367
8.6 SL Cycles ..... 371
Fundamentals ..... 371
Overview of SL Cycles ..... 373
CONTOUR GEOMETRY (Cycle 14) ..... 374
Overlapping contours ..... 375
CONTOUR DATA (Cycle 20) ..... 378
PILOT DRILLING (Cycle 21) ..... 379
ROUGH-OUT (Cycle 22) ..... 380
FLOOR FINISHING (Cycle 23) ..... 381
SIDE FINISHING (Cycle 24) ..... 382
CONTOUR TRAIN (Cycle 25) ..... 383
CYLINDER SURFACE (Cycle 27, software option 1) ..... 385
CYLINDER SURFACE slot milling (Cycle 28, software option 1) ..... 387
CYLINDER SURFACE ridge milling (Cycle 29, software option 1) ..... 390
CYLINDER SURFACE outside contour milling (Cycle 39, software option 1) ..... 392
8.7 SL Cycles with Contour Formula ..... 405
Fundamentals ..... 405
Selecting a program with contour definitions ..... 406
Defining contour descriptions ..... 406
Entering a contour formula ..... 407
Overlapping contours ..... 408
Contour machining with SL Cycles ..... 410
8.8 Cycles for Multipass Milling ..... 414
Overview ..... 414
3-D DATA (Cycle 30) ..... 415
MULTIPASS MILLING (Cycle 230) ..... 416
RULED SURFACE (Cycle 231) ..... 418
FACE MILLING (Cycle 232) ..... 421

HEIDENHAIN iTNC 530 25


8.9 Coordinate Transformation Cycles ..... 429
Overview ..... 429
Effect of coordinate transformations ..... 429
DATUM SHIFT (Cycle 7) ..... 430
DATUM SHIFT with datum tables (Cycle 7) ..... 431
DATUM SETTING (Cycle 247) ..... 435
MIRROR IMAGE (Cycle 8) ..... 436
ROTATION (Cycle 10) ..... 438
SCALING FACTOR (Cycle 11) ..... 439
AXIS-SPECIFIC SCALING (Cycle 26) ..... 440
WORKING PLANE (Cycle 19, software option 1) ..... 441
8.10 Special Cycles ..... 449
DWELL TIME (Cycle 9) ..... 449
PROGRAM CALL (Cycle 12) ..... 450
ORIENTED SPINDLE STOP (Cycle 13) ..... 451
TOLERANCE (Cycle 32, software option 2) ..... 451

26
9 Programming: Special Functions ..... 455
9.1 The PLANE Function: Tilting the Working Plane (Software Option 1) ..... 456
Introduction ..... 456
Define the PLANE function ..... 458
Position display ..... 458
Reset the PLANE function ..... 459
9.2 Defining the Machining Plane with Space Angles: PLANE SPATIAL ..... 460
Function ..... 460
Input parameters ..... 461
9.3 Defining the Machining Plane with Projection Angles: PROJECTED PLANE ..... 462
Function ..... 462
Input parameters ..... 463
9.4 Defining the Machining Plane with Euler Angles: EULER PLANE ..... 464
Function ..... 464
Input parameters ..... 465
9.5 Defining the Machining Plane with Two Vectors: VECTOR PLANE ..... 466
Function ..... 466
Input parameters ..... 467
9.6 Defining the Machining Plane via Three Points: POINTS PLANE ..... 468
Function ..... 468
Input parameters ..... 469
9.7 Defining the Machining Plane with a Single, Incremental Space Angle: PLANE RELATIVE ..... 470
Function ..... 470
Input parameters ..... 471
Abbreviations used ..... 471
9.8 Specifying the Positioning Behavior of the PLANE Function ..... 472
Overview ..... 472
Automatic positioning: MOVE/TURN/STAY (entry is mandatory) ..... 473
Selection of alternate tilting possibilities: SEQ +/– (entry optional) ..... 476
Selecting the type of transformation (entry optional) ..... 477
9.9 Inclined-Tool Machining in the Tilted Plane ..... 478
Function ..... 478
Inclined-tool machining via incremental traverse of a rotary axis ..... 478
Inclined-tool machining via normal vectors ..... 479
9.10 TCPM FUNCTION (Software Option 2) ..... 480
Function ..... 480
Mode of action of the programmed feed rate ..... 481
Interpretation of the programmed rotary axis coordinates ..... 482
Interpolation type between the starting and end position ..... 483
Reset FUNCION TCPM ..... 484
9.11 Generate Backward Program ..... 485
Function ..... 485
Prerequisites for the program to be converted ..... 486
Application example ..... 487

HEIDENHAIN iTNC 530 27


10 Programming: Subprograms and Program Section Repeats ..... 489
10.1 Labeling Subprograms and Program Section Repeats ..... 490
Labels ..... 490
10.2 Subprograms ..... 491
Operating sequence ..... 491
Programming notes ..... 491
Programming a subprogram ..... 491
Calling a subprogram ..... 491
10.3 Program Section Repeats ..... 492
Label LBL ..... 492
Operating sequence ..... 492
Programming notes ..... 492
Programming a program section repeat ..... 492
Calling a program section repeat ..... 492
10.4 Separate Program as Subprogram ..... 493
Operating sequence ..... 493
Programming notes ..... 493
Calling any program as a subprogram ..... 494
10.5 Nesting ..... 495
Types of nesting ..... 495
Nesting depth ..... 495
Subprogram within a subprogram ..... 495
Repeating program section repeats ..... 496
Repeating a subprogram ..... 497

28
11 Programming: Q Parameters ..... 505
11.1 Principle and Overview ..... 506
Programming notes ..... 506
Calling Q parameter functions ..... 507
11.2 Part Families—Q Parameters in Place of Numerical Values ..... 508
Example NC blocks ..... 508
Example ..... 508
11.3 Describing Contours through Mathematical Operations ..... 509
Function ..... 509
Overview ..... 509
Programming fundamental operations ..... 510
11.4 Trigonometric Functions ..... 511
Definitions ..... 511
Programming trigonometric functions ..... 512
11.5 Calculating Circles ..... 513
Function ..... 513
11.6 If-Then Decisions with Q Parameters ..... 514
Function ..... 514
Unconditional jumps ..... 514
Programming If-Then decisions ..... 514
Abbreviations used: ..... 515
11.7 Checking and Changing Q Parameters ..... 516
Procedure ..... 516
11.8 Additional Functions ..... 517
Overview ..... 517
FN14: ERROR: Displaying error messages ..... 518
FN15: PRINT: Output of texts or Q parameter values ..... 520
FN16: F-PRINT: Formatted output of texts or Q parameter values ..... 521
FN18: SYS-DATUM READ Read system data ..... 526
FN19: PLC: Transferring values to the PLC ..... 531
FN20: WAIT FOR: NC and PLC synchronization ..... 532
FN 25: PRESET: Setting a new datum ..... 533
FN26:TABOPEN: Opening a freely definable table ..... 534
FN27: TABWRITE: Writing to a freely definable table ..... 534
FN28:TABREAD: Reading a freely definable table ..... 535

HEIDENHAIN iTNC 530 29


11.9 Entering Formulas Directly ..... 536
Entering formulas ..... 536
Rules for formulas ..... 538
Programming example ..... 539
11.10 Preassigned Q Parameters ..... 540
Values from the PLC: Q100 to Q107 ..... 540
Active tool radius: Q108 ..... 540
Tool axis: Q109 ..... 540
Spindle status: Q110 ..... 541
Coolant on/off: Q111 ..... 541
Overlap factor: Q112 ..... 541
Unit of measurement for dimensions in the program: Q113 ..... 541
Tool length: Q114 ..... 541
Coordinates after probing during program run ..... 542
Deviation between actual value and nominal value during automatic tool measurement with the TT 130 ..... 542
Tilting the working plane with mathematical angles: Rotary axis coordinates calculated by the TNC ..... 542
Measurement results from touch probe cycles (see also User’s Manual for Touch Probe Cycles) ..... 543

30
12 Test Run and Program Run ..... 553
12.1 Graphics ..... 554
Function ..... 554
Overview of display modes ..... 556
Plan view ..... 556
Projection in 3 planes ..... 557
3-D view ..... 558
Magnifying details ..... 559
Repeating graphic simulation ..... 560
Measuring the machining time ..... 561
12.2 Functions for Program Display ..... 562
Overview ..... 562
12.3 Test Run ..... 563
Function ..... 563
12.4 Program Run ..... 565
Function ..... 565
Running a part program ..... 565
Interrupting machining ..... 566
Moving the machine axes during an interruption ..... 567
Resuming program run after an interruption ..... 568
Mid-program startup (block scan) ..... 569
Returning to the contour ..... 571
12.5 Automatic Program Start ..... 572
Function ..... 572
12.6 Optional block skip ..... 573
Function ..... 573
Erasing the “/” character ..... 573
12.7 Optional program-run interruption ..... 574
Function ..... 574

HEIDENHAIN iTNC 530 31


13 MOD Functions ..... 575
13.1 MOD functions ..... 576
Selecting the MOD functions ..... 576
Changing the settings ..... 576
Exiting the MOD functions ..... 576
Overview of MOD functions ..... 576
13.2 Software Numbers and Option Numbers ..... 578
Function ..... 578
13.3 Code Numbers ..... 579
Function ..... 579
13.4 Loading Service Packs ..... 580
Function ..... 580
13.5 Setting the Data Interfaces ..... 581
Function ..... 581
Setting the RS-232 interface ..... 581
Setting the RS-422 interface ..... 581
Setting the OPERATING MODE of the external device ..... 581
Setting the BAUD RATE ..... 581
Assign ..... 582
Software for data transfer ..... 583
13.6 Ethernet Interface ..... 585
Introduction ..... 585
Connection possibilities ..... 585
Connecting the iTNC directly with a Windows PC ..... 586
Configuring the TNC ..... 588
13.7 Configuring PGM MGT ..... 592
Function ..... 592
Changing the PGM MGT setting ..... 592
Dependent files ..... 593
13.8 Machine-Specific User Parameters ..... 595
Function ..... 595
13.9 Showing the Workpiece in the Working Space ..... 596
Function ..... 596
Rotate the entire image ..... 597

32
13.10 Position Display Types ..... 598
Function ..... 598
13.11 Unit of Measurement ..... 599
Function ..... 599
13.12 Select the Programming Language for $MDI ..... 600
Function ..... 600
13.13 Selecting the Axes for Generating L Blocks ..... 601
Function ..... 601
13.14 Enter the Axis Traverse Limits, Datum Display ..... 602
Function ..... 602
Working without additional traverse limits ..... 602
Find and enter the maximum traverse ..... 602
Datum display ..... 603
13.15 Displaying HELP Files ..... 604
Function ..... 604
Selecting HELP files ..... 604
13.16 Display operating times ..... 605
Function ..... 605
13.17 Teleservice ..... 606
Function ..... 606
Calling/exiting teleservice ..... 606
13.18 External Access ..... 607
Function ..... 607

HEIDENHAIN iTNC 530 33


14 Tables and Overviews ..... 609
14.1 General User Parameters ..... 610
Input possibilities for machine parameters ..... 610
Selecting general user parameters ..... 610
14.2 Pin Layout and Connecting Cable for the Data Interfaces ..... 624
RS-232-C/V.24 interface for HEIDENHAIN devices ..... 624
Non-HEIDENHAIN devices ..... 625
RS-422/V.11 interface ..... 626
Ethernet interface RJ45 socket ..... 626
14.3 Technical Information ..... 627
14.4 Exchanging the Buffer Battery ..... 633

34
15 iTNC 530 with Windows 2000 (Option) ..... 635
15.1 Introduction ..... 636
End User License Agreement (EULA) for Windows 2000 ..... 636
Grant of software license ..... 636
General Information ..... 638
Specifications ..... 639
15.2 Starting an iTNC 530 Application ..... 640
Logging on to Windows ..... 640
Logging on as a TNC user ..... 640
Logging on as a local administrator ..... 641
15.3 Switching Off the iTNC 530 ..... 642
Fundamentals ..... 642
Logging a user off ..... 642
Exiting the iTNC application ..... 643
Shutting down Windows ..... 644
15.4 Network Settings ..... 645
Prerequisite ..... 645
Adjusting the network settings ..... 645
Controlling access ..... 646
15.5 Specifics About File Management ..... 647
The iTNC drive ..... 647
Data transfer to the iTNC 530 ..... 648

HEIDENHAIN iTNC 530 35


Introduction
1.1 The iTNC 530
1.1 The iTNC 530

HEIDENHAIN TNC controls are workshop-oriented contouring


controls that enable you to program conventional machining
operations right at the machine in an easy-to-use conversational
programming language. They are designed for milling, drilling and
boring machines, as well as for machining centers. The iTNC 530 can
control up to 12 axes. You can also change the angular position of the
spindle under program control.
An integrated hard disk provides storage for as many programs as you
like, even if they were created off-line. For quick calculations you can
call up the on-screen pocket calculator at any time.
Keyboard and screen layout are clearly arranged in such a way that the
functions are fast and easy to use.

Programming: HEIDENHAIN conversational and


ISO formats
HEIDENHAIN conversational programming is an especially easy
method of writing programs. Interactive graphics illustrate the
individual machining steps for programming the contour. If a
production drawing is not dimensioned for NC, the HEIDENHAIN FK
free contour programming does the necessary calculations
automatically. Workpiece machining can be graphically simulated
either during or before actual machining. It is also possible to program
in ISO format or DNC mode.
You can also enter and test one program while the control is running
another.

Compatibility
The TNC can run all part programs that were written on HEIDENHAIN
controls TNC 150 B and later. In as much as old TNC programs contain
OEM cycles, the iTNC 530 must be adapted to them with the PC
software CycleDesign. For more information, contact your machine
tool builder or HEIDENHAIN.

38 1 Introduction
1.2 Visual Display Unit and

1.2 Visual Display Unit and Keyboard


Keyboard
Visual display unit
The TNC is available with either a BF 150 color TFT flat-panel display
or the BF 120 color TFT flat-panel display. The figure at top right shows
the keys and controls on the BF 150, and the figure at center right 1 8
shows those of the BF 120.

1 Header
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 mode is 7
displayed in the larger box, where the dialog prompts and TNC
messages also appear (unless the TNC is showing only graphics).
2 Soft keys
5 2
In the footer the TNC indicates additional functions in a soft-key
row. You can select these functions by pressing the keys 6
1
immediately below them. The lines immediately above the soft-
31
key row indicate the number of soft-key rows that can be called
4 4
with the black arrow keys to the right and left. The line
representing the active soft-key row is highlighted.
3 Soft-key selection keys
4 Switches the soft-key rows
5 Sets the screen layout
6 Shift key for switchover between machining and programming
modes 1
7 Soft-key selection keys for machine tool builders
8 Switches soft-key rows for machine tool builders

2
5
1 41 3 4
1 6

HEIDENHAIN iTNC 530 39


1.2 Visual Display Unit and Keyboard
Screen layout
You select the screen layout yourself: In the PROGRAMMING AND
EDITING 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 SPLIT SCREEN key: The soft-key row


shows the available layout options (see “Modes of
Operation” on page 42).

Select the desired screen layout.

40 1 Introduction
1.2 Visual Display Unit and Keyboard
Keyboard
The TNC is available either with the TE 420 or TE 530 keyboard. The
figure at upper right shows the operating elements of the TE 420
keyboard; the figure at center right shows the operating elements of
the TE 530 keyboard:
1 7
1 Alphabetic keyboard for entering texts and file names, and for ISO
programming.
Dual-processor version: Additional keys for Windows operation
2 „ File management
„ Pocket calculator 5
„ MOD function 2
1
6
„ HELP function
3 Programming modes
4 Machine operating modes 4
1 3
5 Initiation of programming dialog
6 Arrow keys and GOTO jump command
7 Numerical input and axis selection
8 Mouse pad: Only for operating the dual-processor version 7

The functions of the individual keys are described on the inside front
cover. Machine panel buttons, e.g. NC START, are described in the
manual for your machine tool.
1
6
2
1 5
8
7
3
4
1

HEIDENHAIN iTNC 530 41


1.3 Modes of Operation
1.3 Modes of Operation

Manual Operation and Electronic Handwheel


The Manual Operation mode is required for setting up the machine
tool. In this operating mode you can position the machine axes
manually or by increments, set the datums, and tilt the working plane.
The Electronic 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)

Screen windows Soft key


Positions

Left: positions, right: status display

Positioning with Manual Data Input (MDI)


This mode of operation is used for programming simple traversing
movements, such as for face milling or pre-positioning.
Soft keys for selecting the screen layout

Screen windows Soft key


Program

Left: program blocks, right: status display

42 1 Introduction
1.3 Modes of Operation
Programming and editing
In this mode of operation you can write your part programs. The FK
free programming feature, 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 individual
steps.
Soft keys for selecting the screen layout

Screen windows Soft key


Program

Left: program blocks, right: program structure

Left: program, right: programming graphics

Test Run
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 work
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” on page 44.

HEIDENHAIN iTNC 530 43


1.3 Modes of Operation
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.
Soft keys for selecting the screen layout

Screen windows Soft key


Program

Left: program blocks, right: program structure

Left: program, right: status

Left: program, right: graphics

Graphics

Soft keys for selecting the screen layout for pallet tables

Screen windows Soft key


Pallet table

Left: program, right: pallet table

Left: pallet table, right: status

Left: pallet table, right: graphics

44 1 Introduction
1.4 Status Displays

1.4 Status Displays


“General” status display
The status display 1 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
„ Positioning with Manual Data Input (MDI).
In the Manual mode and Electronic Handwheel mode the status
display appears in the large window.
Information in the status display
Symbol Meaning
ACTL. Actual or nominal coordinates of the current position 11

XYZ 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

FSM The displayed feed rate in inches corresponds to one


tenth of the effective value. Spindle speed S, feed
rate F and active M functions

Program run started

Axis locked

Axis can be moved with the handwheel

Axes are moving in a tilted working plane

Axes are moving under a basic rotation

Number of the active datum from the preset table. If


the datum was set manually, the TNC displays the
text MAN behind the symbol.

HEIDENHAIN iTNC 530 45


1.4 Status Displays
Additional status displays
The additional status displays contain detailed information on the
program run. They can be called in all operating modes except for the
Programming and Editing mode of operation.

To switch on the additional status display:

Call the soft-key row for screen layout.

Select the layout option for the additional status


display.

To select an additional status display:

Shift the soft-key rows until the STATUS soft keys


appear.

Select the desired additional status display, e.g.


general program information.

You can choose between several additional status displays with the
following soft keys:

General program information

1 Name of main program


1
2 Active programs
3 Active machining cycle
2
4 Circle center CC (pole)
5 Operating time
6 Dwell time counter 3

4 6

46 1 Introduction
1.4 Status Displays
Positions and coordinates

1 Position display 2
2 Type of position display, e.g. actual position 1
3 Tilt angle of the working plane
4 Angle of a basic rotation
3

Information on tools

1
1 „ T: Tool number and name
„ RT: Number and name of a replacement tool 2 3
2 Tool axis
3 Tool lengths and radii 4
4 Oversizes (delta values) from TOOL CALL (PGM) and the tool
table (TAB)
5
5 Tool life, maximum tool life (TIME 1) and maximum tool life for
TOOL CALL (TIME 2) 6
6 Display of the active tool and the (next) replacement tool

Coordinate transformations

1 Name of main program 1


2 Name of the active datum table, active datum number (#), 2
comment from the active line of the active datum number (DOC) 3
from Cycle 7
3 Active datum shift (Cycle 7); The TNC displays an active datum 4 5
shift in up to 8 axes
4 Mirrored axes (Cycle 8)
5 Active rotation angle (Cycle 10)
6 Active scaling factor/factors (Cycles 11 / 26); The TNC displays an 6 7
active scaling factor in up to 6 axes
7 Scaling datum
See “Coordinate Transformation Cycles” on page 429.

HEIDENHAIN iTNC 530 47


1.4 Status Displays Program section repeats/subprograms

1 Active program section repeats with block number, label number, 1


and number of programmed repeats/repeats yet to be run
2 Active subprogram numbers with block number in which the
subprogram was called and the label number that was called

Tool measurement

1 Number of the tool to be measured 1


2 Display whether the tool radius or the tool length is being 2 3
measured
3 MIN and MAX values of the individual cutting edges and the
result of measuring the rotating tool (DYN = dynamic 4
measurement)
4 Cutting edge number with the corresponding measured value. If
the measured value is followed by an asterisk, the allowable
tolerance in the tool table was exceeded

Active miscellaneous functions M

1 List of the active M functions with fixed meaning.


2 List of the active M functions with function assigned by machine
manufacturer. 1

48 1 Introduction
1.5 Accessories: HEIDENHAIN 3-D

1.5 Accessories: HEIDENHAIN 3-D Touch Probes and Electronic Handwheels


Touch Probes and Electronic
Handwheels
3-D touch probes
With the various HEIDENHAIN 3-D touch probe systems you can:
„ Automatically align workpieces
„ Quickly and precisely set datums
„ Measure the workpiece during program run
„ Measure and inspect tools

All of the touch probe functions are described in a


separate manual. Please contact HEIDENHAIN if you
require a copy of this User’s Manual. Id. Nr.: 329 203-xx.

TS 220 and TS 640 touch trigger probes


These touch probes are particularly effective for automatic workpiece
alignment, datum setting and workpiece measurement. The TS 220
transmits the triggering signals to the TNC via cable and is a cost-
effective alternative for applications where digitizing is not frequently
required.
The TS 640 touch probe features infrared transmission of the
triggering signal to the control. This makes it highly convenient for use
on machines with automatic tool changers.
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 TNC,
which stores the current position of the stylus as an actual value.

HEIDENHAIN iTNC 530 49


1.5 Accessories: HEIDENHAIN 3-D Touch Probes and Electronic Handwheels TT 130 tool touch probe for tool measurement
The TT 130 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 130 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.

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 integral handwheels,
HEIDENHAIN also offers the HR 410 portable handwheel (see figure
at center right) and HR 420 (lower right).

50 1 Introduction
Manual Operation and Setup
2.1 Switch-On, Switch-Off
2.1 Switch-On, Switch-Off

Switch-on

Switch-on and Traversing the Reference Points can vary


depending on the machine tool. Refer to your machine
manual.

Switch on the power supply for control and machine. The TNC then
displays the following dialog:

MEMORY TEST

The TNC memory is automatically checked.

POWER INTERRUPTED

TNC message that the power was interrupted—clear


the message.

TRANSLATE PLC PROGRAM

The PLC program of the TNC is automatically compiled.

RELAY EXT. DC VOLTAGE MISSING

Switch on external dc voltage. The TNC checks the


functioning of the EMERGENCY STOP circuit.

MANUAL OPERATION
TRAVERSE REFERENCE POINTS

Cross the reference points manually in the displayed


sequence: For each axis press the machine START
button, or

Cross the reference points in any sequence: Press


and hold the machine axis direction button for each
axis until the reference point has been traversed.

If your machine is equipped with absolute encoders, you


can leave out traversing the reference mark. In such a
case, the TNC is ready for operation immediately after the
machine control voltage is switched on.

52 2 Manual Operation and Setup


2.1 Switch-On, Switch-Off
The TNC is now ready for operation in the Manual Operation mode.

The reference points need only be traversed if the


machine axes are to be moved. If you intend only to write,
edit or test programs, you can select the Programming
and Editing or Test Run modes of operation immediately
after switching on the control voltage.
You can traverse the reference points later by pressing
the PASS OVER REFERENCE soft key in the Manual
Operation mode.

Traversing the reference point in a tilted working plane


The reference point of a tilted coordinate system can be traversed by
pressing the machine axis direction buttons. The “tilting the working
plane” function must be active in the Manual Operation mode (see
“Activating manual tilting” on page 76). The TNC then interpolates the
corresponding axes.
The NC START button has no function. Pressing this button may result
in an error message.

Make sure that the angle values entered in the menu for
tilting the working plane match the actual angles of the
tilted axis.

Switch-off

iTNC 530 with Windows 2000: See “Switching Off the


iTNC 530,” page 642.

To prevent data being lost at switch-off, you need to shut down the
operating system as follows:
8 Select the Manual operating mode
8 Select the function for shutting down, confirm again
with the YES soft key.
8 When the TNC displays the message Now you can
switch off the TNC in a superimposed window, you
may cut off the power supply to the TNC.

Inappropriate switch-off of the TNC can lead to data loss.

HEIDENHAIN iTNC 530 53


2.2 Moving the Machine Axes
2.2 Moving the Machine Axes

Note

Traversing with the machine axis direction buttons can


vary depending on the machine tool. The machine tool
manual provides further information.

To traverse with the machine axis direction


buttons:

Select the Manual Operation mode.

Press the machine axis direction button and hold it as


long as you wish the axis to move, or

Move the axis continuously: Press and hold the


machine axis direction button, then press the
and machine START button.

To stop the axis, press the machine STOP button.

You can move several axes at a time with these two methods. You can
change the feed rate at which the axes are traversed with the
F soft key (see “Spindle Speed S, Feed Rate F and Miscellaneous
Functions M” on page 63).

54 2 Manual Operation and Setup


2.2 Moving the Machine Axes
Incremental jog positioning
With incremental jog positioning you can move a machine axis by a
preset distance.
Z
Select the Manual or Electronic Handwheel mode of
operation.

Select incremental jog positioning: Switch the


INCREMENT soft key to ON 8 8

JOG INCREMENT =
X
8 16
Enter the jog increment in millimeters, i.e. 8 mm.

Press the machine axis direction button as often as


desired.

The maximum permissible value for infeed is 10 mm.

HEIDENHAIN iTNC 530 55


2.2 Moving the Machine Axes
Traversing with the HR 410 electronic
handwheel
The portable HR 410 handwheel is equipped with two permissive
buttons. The permissive buttons are located below the star grip. 1
You can only move the machine axes when a permissive button is
depressed (machine-dependent function). 2

The HR 410 handwheel features the following operating elements:


1 EMERGENCY OFF button 3
2 Handwheel 4
4
3 Permissive buttons
6 5
4 Axis address keys
5 Actual-position-capture key 7
8
6 Keys for defining the feed rate (slow, medium, fast; the feed rates
are set by the machine tool builder)
7 Direction in which the TNC moves the selected axis
8 Machine function (set by the machine tool builder)

The red indicator lights show the axis and feed rate you have selected.
It is also possible to move the machine axes with the handwheel
during a program run if M118 is active.

Procedure:

Select the Electronic Handwheel operating mode.

Press and hold a permissive button.

Select the axis.

Select the feed rate.

Move the active axis in the positive or negative


direction.
or

56 2 Manual Operation and Setup


2.2 Moving the Machine Axes
HR 420 Electronic Handwheel
1
Unlike the HR 410, the HR 420 portable handwheel is equipped with
a display. In addition, you can run important setup functions through 2
the handwheel soft keys, e.g. setting datums or entering and running
M functions. 3
6 4
As soon as you press the handwheel activation key, it activates the 5 6
handwheel and deactivates the control panel. This is indicated by a 7 7
pop-up window on the TNC screen. 8
11
The HR 420 handwheel features the following operating elements: 9 12
10
1 EMERGENCY OFF button 13
2 Handwheel display for status display and function selection 14
3 Soft keys
15
4 Axis address keys 16
5 Handwheel activation key
6 Arrow keys for definition of handwheel sensitivity
7 Direction key by which the TNC moves the selected axis
8 Switch on the spindle (machine-specific M function)
9 Switch off the spindle (machine-specific M function)
10 NC-block creation key
11 NC start
12 NC stop
13 Permissive button
14 Handwheel
15 Spindle speed potentiometer Effective as soon as the handwheel
is active. The spindle speed potentiometer on the control panel is
then inactive
16 Feed rate potentiometer Effective as soon as the handwheel is
active. The feed rate potentiometer on the control panel is then
inactive

If M118 is active, it is even possible to move the machine axes with the
handwheel during the program run.

HEIDENHAIN iTNC 530 57


2.2 Moving the Machine Axes Display
The handwheel display has four lines (see screen at upper right). The
TNC shows there the following information:
1 NOML X+1.563: Type of position display and position of the
selected axis 1 2
3 4 to 7
2 *: STIB (control is in operation) 8 9
3 S1000: Current spindle speed 10
4 F500: Feed rate at which the selected axis is moving
5 E: There is an error
6 3D: Tilted-working-plane function is active
7 2D: Basic rotation function is active
8 RES 5.0: Active handwheel resolution. Distance in mm/rev (°/rev
for rotary axes) that the selected axis moves for one handwheel
revolution
9 STEP ON or OFF: Incremental jog active or inactive. If the function
is active, the TNC also displays the active jog increment
10 Soft key row: Selection of various functions, described in the
following sections

Select the axis to be moved


You can activate directly through the axis address keys the principal
axes X, Y, Z and two other axes defined by the machine tool builder. If
you machine has more axes, proceed as follows.
8 Press the handwheel soft key F1 (AX): The TNC displays all active
axes on the handwheel display. The active axis blinks
8 Select the desired axis with the handwheel soft key F1 (->) or F2 (<-
) and confirm your selection with F3 (OK).

Set the handwheel sensitivity


The handwheel sensitivity sets the distance the axis moves per
handwheel revolution. The sensitivity settings are preset and can be
selected directly through the handwheel arrow keys (only if
incremental jog is not active).
Selectable sensitivity levels: 0.01/0.02/0.05/0.1/0.2/0.5/1/2/5/10/20
[mm/revolution or degrees/revolution]

58 2 Manual Operation and Setup


2.2 Moving the Machine Axes
Moving the Axes

Select the Electronic Handwheel operating mode.

Activate the handwheel: Press the handwheel key on


the HR 420. Now the TNC is operable only through
the HR 420. A pop-up window stating such appears
on the TNC screen.

If required, press and hold the permissive button

Use the handwheel to select the axis to be moved.


Select the additional axes via soft key

Move the active axis in the positive or negative


direction.
or

Deactivate the handwheel: Press the handwheel key


on the HR 420. Now the TNC can be operated
through the control panel

HEIDENHAIN iTNC 530 59


2.2 Moving the Machine Axes Incremental Jog Positioning
With incremental jog positioning the TNC moves the currently active
handwheel axis by a preset distance defined by you.
8 Press the handwheel soft key F2 (STEP)
8 Activate incremental jog positioning: Press handwheel soft key 3
(ON)
8 Select the desired jog increment by pressing the F1 or F2 key. If you
press and hold the respective key, each time it reaches a decimal
value 0 the TNC increases the counting increment by a factor of 10.
If in addition you press the Ctrl key, the counting increment
increases to 1. The smallest possible jog increment is 0.0001 mm.
The largest possible is 10 mm
8 Confirm the selected jog increment with soft key 4 (OK)
8 With the + or – handwheel key, move the active handwheel axis in
the corresponding direction

Entering Miscellaneous Functions M


8 Press the handwheel soft key F3 (MSF)
8 Press the handwheel soft key F1 (M)
8 Select the desired M function number by pressing the F1 or F2 key
8 Execute the M function with the NC start key

Entering the spindle speed S


8 Press the handwheel soft key F3 (MSF)
8 Press the handwheel soft key F2 (S)
8 Select the desired speed by pressing the F1 or F2 key. If you press
and hold the respective key, each time it reaches a decimal value 0
the TNC increases the counting increment by a factor of 10. If in
addition you press the Ctrl key, the counting increment increases to
1000
8 Activate the new speed S with the NC start key

Enter the feed rate F


8 Press the handwheel soft key F3 (MSF)
8 Press the handwheel soft key F3 (S)
8 Select the desired feed rate by pressing the F1 or F2 key. If you
press and hold the respective key, each time it reaches a decimal
value 0 the TNC increases the counting increment by a factor of 10.
If in addition you press the Ctrl key, the counting increment
increases to 1000
8 Confirm the new feed rate F with the handwheel soft key F3 (OK)

60 2 Manual Operation and Setup


2.2 Moving the Machine Axes
Datum setting
8 Press the handwheel soft key F3 (MSF)
8 Press the handwheel soft key F4 (PRS)
8 If required, select the axis in which the datum is to be set
8 Reset the axis with the handwheel soft key F3 (OK), or with F1 and
F2 set the desired value and then confirm with F3 (OK). By also
pressing the Ctrl key, you can increase the counting increment to 10

Changing Modes of Operation


With the handwheel soft key F4 (OPM), you can use the handwheel to
switch the mode of operation, provided that the current status of the
control allows a mode change.
8 Press the handwheel soft key F4 (OPM)
8 Select the desired operating mode by handwheel soft key
„ MAN: Manual Operation
„ MDI: Positioning with Manual Data Input
„ SGL: Program Run, Single Block
„ RUN: Program Run, Full Sequence

Generating a complete L Block

Use the MOD function to define the axis values to be


taken into an NC block (see “Selecting the Axes for
Generating L Blocks” on page 601).
If no axes are selected, the TNC displays the error
message No axes selected

8 Select the Positioning with MDI operating mode


8 If required, use the arrow keys on the TNC keyboard to select the
NC block after which the new L block is to be inserted.
8 Actuate handwheel
8 Press the Generate-NC-block handwheel key: The TNC inserts a
complete L block containing all axis positions selected through the
MOD function

HEIDENHAIN iTNC 530 61


2.2 Moving the Machine Axes Features in the Program Run Modes of Operation
You can use the following functions in the Program Run modes of
operation:
„ NC start (handwheel NC-start key)
„ NC stop (handwheel NC-stop key)
„ After the NC-stop key has been pressed: Internal stop (handwheel
soft keys MOP and then STOP)
„ After the NC-stop key has been pressed: Manual axis traverse
(handwheel soft keys MOP and then MAN)
„ Returning to the contour, after the axes were moved manually
during a program interruption (handwheel soft keys MOP and then
REPO). Operation is by handwheel soft key, which function similarly
to the control-screen soft keys (see “Returning to the contour” on
page 571)
„ On/off switch for the Tilted Working Plane function (handwheel soft
keys MOP and then 3D)

62 2 Manual Operation and Setup


2.3 Spindle Speed S, Feed Rate F

2.3 Spindle Speed S, Feed Rate F and Miscellaneous Functions M


and Miscellaneous Functions M
Function
In the Manual Operation and Electronic Handwheel operating modes,
you can enter the spindle speed S, feed rate F and the miscellaneous
functions M with soft keys. The miscellaneous functions are
described in Chapter 7 “Programming: Miscellaneous Functions.”

The machine tool builder determines which


miscellaneous functions M are available on your control
and what effects they have.

Entering values
Spindle speed S, miscellaneous function M

To enter the spindle speed, press the S soft key.

SPINDLE SPEED S =

Enter the desired spindle speed and confirm your


1000
entry with the machine START button.

The spindle speed S with the entered rpm is started with a


miscellaneous function M. Proceed in the same way to enter a
miscellaneous function M.
Feed rate F
After entering a feed rate F, you must confirm your entry with the ENT
key instead of the machine START button.
The following is valid for feed rate F:
„ If you enter F=0, then the lowest feed rate from MP1020 is effective
„ F is not lost during a power interruption

Changing the spindle speed and feed rate


With the override knobs you can vary the spindle speed S and feed
rate F from 0% to 150% of the set value.

The override dial for spindle speed is only functional on


machines with infinitely variable spindle drive.

HEIDENHAIN iTNC 530 63


2.4 Datum Setting (Without a 3-D
2.4 Datum Setting (Without a 3-D Touch Probe)
Touch Probe)
Note

For datum setting with a 3-D touch probe, refer to the


Touch Probe Cycles Manual.

You fix a datum by setting the TNC position display to the coordinates
of a known position on the workpiece.

Preparation
8 Clamp and align the workpiece.
8 Insert the zero tool with known radius into the spindle.
8 Ensure that the TNC is showing the actual position values.

64 2 Manual Operation and Setup


2.4 Datum Setting (Without a 3-D Touch Probe)
Datum setting with axis keys

Fragile workpiece? Y

If the workpiece surface must not be scratched, you can


lay a metal shim of known thickness d on it. Then enter a
tool axis datum value that is larger than the desired datum
by the value d. Z
X
Y
Select the Manual Operation mode.

X
Move the tool slowly until it touches the workpiece
surface.

Select an axis (all axes can also be selected via the


ASCII keyboard)

DATUM SET Z=

Zero tool in spindle axis: Set the display to a known


workpiece position (here, 0) or enter the thickness d
of the shim. In the tool axis, offset the tool radius.

Repeat the process for the remaining axes.


If you are using a preset tool, set the display of the tool axis to the
length L of the tool or enter the sum Z=L+d.

HEIDENHAIN iTNC 530 65


2.4 Datum Setting (Without a 3-D Touch Probe)
Datum management with the preset table

You should definitely use the preset table if:


„ Your machine is equipped with rotary axes (tilting table
or swivel head) and you work with the tilted working
plan function
„ Your machine is equipped with a spindle-head changing
system
„ Up to now you have been working with older TNC
controls with REF-based datum tables
„ You wish to machine identical workpieces that are
differently aligned
Preset table can contain any number of lines (datums). To
optimize the file size and the processing speed, you
should use only as many lines as you need for datum
management.
For safety reasons, new lines can be inserted only at the
end of the preset table.

Saving the datums in the preset table


The preset table has the name PRESET.PR, and is saved in the
directory TNC:\. PRESET.PR is editable only in the Manual and El.
Handwheel modes. In the Programming and Editing mode you can only
read the table, not edit it.
It is permitted to copy the preset table into another directory (for data
backup). Lines that were written by your machine tool builder are also
always write-protected in the copied tables. You therefore cannot edit
them.
Never change the number of lines in the copied tables! That could
cause problems when you want to reactivate the table.
To activate the preset table copied to another directory you have to
copy it back to the directory TNC:\.

66 2 Manual Operation and Setup


2.4 Datum Setting (Without a 3-D Touch Probe)
There are several methods for saving datums and/or basic rotations in
the preset table:
„ Through probing cycles in the Manual or El. Handwheel modes (see
User’s Manual, Touch Probe Cycles, Chapter 2)
„ Through the probing cycles 400 to 402 and 410 to 419 in automatic
mode (see User’s Manual, Touch Probe Cycles, Chapter 3)
„ By adopting the current datum, which you set manually with the axis
keys

Manual entry of values in the preset table is allowed only


if there are no tilting devices on your machine. An
exception to this rule is the entry of basic rotations in the
ROT column. The reason is that the TNC compensates the
geometry of the tilting device when it saves values in the
preset table.
Basic rotations from the preset table rotate the coordinate
system about the preset, which is shown in the same line
as the basic rotation.
When setting a datum, the TNC checks whether the
position of the tilting axes match the corresponding
values of the 3D ROT menu (depending on Machine
Parameter 7500 bit 5). Therefore:
„ If the “Tilt working plane” function is not active, the
position displays for the rotary axes must = 0° (zero the
rotary axes if necessary).
„ If the “Tilt working plane” function is active, the
position displays for the rotary axes must match the
angles entered in the 3D ROT menu.
The machine manufacturer can lock any lines in the preset
table in order to place fixed datums there (e.g. a center
point for a rotary table). Such lines in the preset table are
shown in a different color (default: red).
The line 0 in the preset table is write protected. In line 0,
the TNC always saved the datum that you most recently
set manually.

HEIDENHAIN iTNC 530 67


2.4 Datum Setting (Without a 3-D Touch Probe) Explanation of values saved in the preset table
„ Simple machine with three axes without tilting device
The TNC saves in the preset table the distance from the workpiece
datum to the reference point (including algebraic sign, see figure at
upper right)
„ Machine with swivel head
The TNC saves in the preset table the distance from the workpiece
datum to the reference point (including algebraic sign, see figure at
center right)
„ Machine with rotary table
The TNC saves in the preset table the distance from the workpiece
datum to the center of the rotary table (including algebraic sign, see
figure at lower right)
„ Machine with rotary table and swivel head
The TNC saves in the preset table the distance from the workpiece
datum to the center of the rotary table.

Keep in mind that moving an indexing feature on your


machine table (realized by changing the kinematic
description) requires you to redefine any workpiece-based
presets.

68 2 Manual Operation and Setup


2.4 Datum Setting (Without a 3-D Touch Probe)
Editing the preset table

Editing function in table mode Soft key


Select beginning of table

Select end of table

Select previous page in table

Select next page in table

Release/lock preset table for editing

In the selected line of the preset table, save the


datum that is active in the Manual operating
mode

Activate the datum of the selected line of the


preset table

Add the entered number of lines to the end of the


table (2nd soft-key row)

Copy the highlighted field (2nd soft-key row)

Insert the copied field (2nd soft-key row)

Reset the selected line: The TNC enters – in all


columns (2nd soft-key row)

Insert a single line at the end of the table


(2nd soft-key row)

Delete a single line at the end of the table


(2nd soft-key row)

HEIDENHAIN iTNC 530 69


2.4 Datum Setting (Without a 3-D Touch Probe) Activating the datum from the preset table in the Manual
operating mode

When activating a datum from the preset table, the TNC


resets all coordinate transformations that were activated
with the following cycles:
„ Cycle 7, Datum Shift
„ Cycle 8, Mirroring
„ Cycle 10, Rotation
„ Cycle 11, Scaling
„ Cycle 26, Axis-Specific Scaling
However, the coordinate transformation from Cycle 19,
Tilted Working Plane, remains active.

Select the Manual Operation mode.

Call the function for setting the datum

DATUM SET X=

Call preset table

Release the preset table for editing: Set the EDIT


OFF/ON soft key to ON.

With the arrow keys, select the datum number that


you want to activate, or

With the GOTO key, select the datum number that


you want to activate. Confirm with the ENT key.

70 2 Manual Operation and Setup


2.4 Datum Setting (Without a 3-D Touch Probe)
Activate preset

Confirm activation of the datum. The TNC sets the


display and—if defined—the basic rotation

Leave the preset table

Activating the datum from the preset table in an NC program


To activate datums from the preset table during program run, use
Cycle 247. In Cycle 247 you define the number of the datum that you
want to activate (see “DATUM SETTING (Cycle 247)” on page 435).

HEIDENHAIN iTNC 530 71


2.5 Tilting the Working Plane
2.5 Tilting the Working Plane (Software Option 1)
(Software Option 1)
Application, function

The functions for tilting the working plane are interfaced to


the TNC and the machine tool by the machine tool builder.
With some swivel heads and tilting tables, the machine tool
builder determines whether the entered angles are Y
interpreted as coordinates of the rotary axes or as angular Z
components of a tilted plane. Refer to your machine
manual. B

The TNC supports the tilting functions on machine tools with swivel
heads and/or tilting tables. Typical applications are, for example, 10°
oblique holes or contours in an oblique plane. The working plane is
always tilted around the active datum. The program is written as usual
in a main plane, such as the X/Y plane, but is executed in a plane that X
is tilted relative to the main plane.
There are three functions available for tilting the working plane:
„ 3-D ROT soft key in the Manual mode and Electronic Handwheel
mode, see “Activating manual tilting” on page 76.
„ Tilting under program control, Cycle 19 WORKING PLANE, in the part
program (see “WORKING PLANE (Cycle 19, software option 1)” on
page 441).
„ Tilting under program control, PLANE function in the part program
(see “The PLANE Function: Tilting the Working Plane (Software
Option 1)” on page 456).
The TNC functions for “tilting the working plane” are coordinate
transformations in which the working plane is always perpendicular to
the direction of the tool axis.
When tilting the working plane, the TNC differentiates between two
machine types:
„ Machine with tilting tables
„ You must tilt the workpiece into the desired position for
machining by positioning the tilting table, for example with an L
block
„ The position of the transformed tool axis does not change in
relation to the machine-based coordinate system. Thus if you
rotate the table—and therefore the workpiece—by 90° for
example, the coordinate system does not rotate. If you press
the Z+ axis direction button in the Manual Operation mode, the
tool moves in Z+ direction.
„ In calculating the transformed coordinate system, the TNC
considers only the mechanically influenced offsets of the
particular tilting table (the so-called “translational” components).

72 2 Manual Operation and Setup


„ Machine with swivel head

2.5 Tilting the Working Plane (Software Option 1)


„ You must bring the tool into the desired position for machining by
positioning the swivel head, for example with an L block.
„ The position of the transformed tool axis changes in relation to the
machine-based coordinate system. Thus if you rotate the swivel
head of your machine—and therefore the tool—in the B axis by
90° for example, the coordinate system rotates also. If you press
the Z+ axis direction button in the Manual Operation mode, the
tool moves in X+ direction of the machine-based coordinate
system.
„ In calculating the transformed coordinate system, the TNC
considers both the mechanically influenced offsets of the
particular swivel head (the so-called “translational” components)
and offsets caused by tilting of the tool (3-D tool length
compensation).

Traversing the reference points in tilted axes


With tilted axes, you use the machine axis direction buttons to cross
over the reference points. The TNC interpolates the corresponding
axes. Be sure that the function for tilting the working plane is active in
the Manual Operation mode and that the actual angle of the tilted axis
was entered in the menu field.

HEIDENHAIN iTNC 530 73


2.5 Tilting the Working Plane (Software Option 1)
Setting the datum in a tilted coordinate system
After you have positioned the rotary axes, set the datum in the same
manner as for a non-tilted system. The behavior of the TNC during
datum setting depends on machine parameter 7500:
„ MP 7500, bit 5=0
With an active tilted working plane, the TNC checks during datum
setting in the X, Y and Z axes whether the current coordinates of the
rotary axes agree with the tilt angles that you defined (3D-ROT
menu). If the tilted working plane function is not active, the TNC
checks whether the rotary axes are at 0° (actual positions). If the
positions do not agree, the TNC will display an error message.
„ MP 7500, bit 5=1
The TNC does not check whether the current coordinates of the
rotary axes (actual positions) agree with the tilt angles that you
defined.

If your machine tool is not equipped with axis control, you


must enter the actual position of the rotary axis in the
menu for manual tilting: The actual positions of one or
several rotary axes must match the entry. Otherwise the
TNC will calculate an incorrect datum.

Datum setting on machines with rotary tables


If you use a rotary table to align the workpiece, for example with
probing cycle 403, you must set the table position value to zero after
alignment and before setting the datum in the linear axes X, Y and Z.
The TNC will otherwise display an error message. Cycle 403 provides
you with an input parameter for this purpose (see User’s Manual for
Touch Probe Cycles, “Basic Rotation Compensation via Rotary Axis”).

Datum setting on machines with spindle-head


changing systems
If your machine is equipped with a spindle head changer, you should
use the preset table to manage your datums. Datums saved in preset
tables account for the active machine kinematics (head geometry). If
you exchange heads, the TNC accounts for the new head dimensions
so that the active datum is retained.

74 2 Manual Operation and Setup


2.5 Tilting the Working Plane (Software Option 1)
Position display in a tilted system
The positions displayed in the status window (ACTL. and NOML.) are
referenced to the tilted coordinate system.

Limitations on working with the tilting function


„ The probing function for basic rotation is not available if you have
activated the working plane function in the Manual operating mode.
„ PLC positioning (determined by the machine tool builder) is not
possible.

HEIDENHAIN iTNC 530 75


2.5 Tilting the Working Plane (Software Option 1)
Activating manual tilting

To select manual tilting, press the 3-D ROT soft key.


You can now select the desired menu items with the
arrow keys.

Enter the tilt angle.

To set the desired operating mode in menu option “Tilt working plane”
to Active, select the menu option and switch with the ENT key.

To conclude entry, press the END key.

To reset the tilting function, set the desired operating modes in the
menu “Tilt working plane” to Inactive.
If the tilted working plane function is active and the TNC moves the
machine axes in accordance with the tilted axes, the status display
shows the symbol .
If you activate the “Tilt working plane” function for the Program Run
operating mode, the tilt angle entered in the menu becomes active in
the first block of the part program. If you are using Cycle 19 WORKING
PLANE in the part program, the angular values defined in the cycle
(starting at the cycle definition) are effective. Angle values entered in
the menu will be overwritten.

76 2 Manual Operation and Setup


Positioning with Manual Data
Input (MDI)
3.1 Programming and Executing Simple Machining Operations
3.1 Programming and Executing
Simple Machining Operations
The Positioning with Manual Data Input mode of operation is
particularly convenient for simple machining operations or pre-
positioning of the tool. It enables you to write a short program in
HEIDENHAIN conversational programming or in ISO format, and
execute it immediately. You can also call TNC cycles. The program is
stored in the file $MDI. In the Positioning with MDI operating mode,
the additional status displays can also be activated.

Positioning with Manual Data Input (MDI)

Select the Positioning with MDI mode of operation.


Program the file $MDI as you wish.

To start program run, press the machine START


button.

Z
Limitation
Y
FK free contour programming, programming graphics and
program run graphics cannot be used. The $MDI file must
not contain a program call (PGM CALL).
X
Example 1 50
A hole with a depth of 20 mm is to be drilled into a single workpiece.
After clamping and aligning the workpiece and setting the datum, you
can program and execute the drilling operation in a few lines. 50
First you pre-position the tool in L blocks (straight-line blocks) to the
hole center coordinates at a setup clearance of 5 mm above the
workpiece surface. Then drill the hole with Cycle 1 1 PECKING.

0 BEGIN PGM $MDI MM


1 TOOL DEF 1 L+0 R+5 Define tool: zero tool, radius 5
2 TOOL CALL 1 Z S2000 Call tool: tool axis Z
spindle speed 2000 rpm
3 L Z+200 R0 FMAX Retract tool (F MAX = rapid traverse)
4 L X+50 Y+50 R0 FMAX M3 Move the tool at F MAX to a position above the
hole, spindle on
6 CYCL DEF 200 DRILLING Define DRILLING cycle
Q200=5 ;SET-UP CLEARANCE Set-up clearance of the tool above the hole
Q201=-15 ;DEPTH Total hole depth (Algebraic sign=working direction)
Q206=250 ;FEED RATE FOR PLNGNG Feed rate for pecking

78 3 Positioning with Manual Data Input (MDI)


3.1 Programming and Executing Simple Machining Operations
Q202=5 ;PLUNGING DEPTH Depth of each infeed before retraction
Q210=0 ;DWELL TIME AT TOP Dwell time after every retraction in seconds
Q203=-10 ;SURFACE COORDINATE Coordinate of the workpiece surface
Q204=20 ;2ND SET-UP CLEARANCE Set-up clearance of the tool above the hole
Q211=0.2 ;DWELL TIME AT DEPTH Dwell time in seconds at the hole bottom
7 CYCL CALL Call DRILLING cycle
8 L Z+200 R0 FMAX M2 Retract the tool
9 END PGM $MDI MM End of program

Straight line function L (see “Straight Line L” on page 199), DRILLING


cycle(see “DRILLING (Cycle 200)” on page 280).

Example 2: Correcting workpiece misalignment on machines


with rotary tables

Use the 3-D touch probe to rotate the coordinate system. See “Touch
Probe Cycles in the Manual and Electronic Handwheel Operating
Modes,” section “Compensating workpiece misalignment,” in the
Touch Probe Cycles User’s Manual.

Write down the rotation angle and cancel the Basic Rotation.

Select operating mode: Positioning with MDI.

Select the axis of the rotary table, enter the rotation


angle you wrote down previously and set the feed
rate. For example: L C+2.561 F50

Conclude entry.

Press the machine START button: The rotation of the


table corrects the misalignment.

HEIDENHAIN iTNC 530 79


3.1 Programming and Executing Simple Machining Operations
Protecting and erasing programs in $MDI
The $MDI file is generally intended for short programs that are only
needed temporarily. Nevertheless, you can store a program, if
necessary, by proceeding as described below:

Select the Programming and Editing mode of


operation.

To call the file manager, press the PGM MGT key


(program management).

Move the highlight to the $MDI file.

To select the file copying function, press the COPY


soft key.

TARGET FILE =

BOREHOLE Enter the name under which you want to save the
current contents of the $MDI file.

Copy the file.

To close the file manager, press the END soft key.

Erasing the contents of the $MDI file is done in a similar way: Instead
of copying the contents, however, you erase them with the DELETE
soft key. The next time you select the operating mode Positioning with
MDI, the TNC will display an empty $MDI file.

If you wish to delete $MDI, then


„ you must not have selected the Positioning with MDI
mode (not even in the background).
„ you must not have selected the $MDI file in the
Programming and Editing mode.

For further information, see “Copying a single file” on page 101.

80 3 Positioning with Manual Data Input (MDI)


Fundamentals of NC,
File Management,
Programming Aids, Pallet
Management
4.1 Fundamentals
4.1 Fundamentals

Position encoders and reference marks


The machine axes are equipped with position encoders that register
the positions of the machine table or tool. Linear axes are usually XMP
equipped with linear encoders, rotary tables and tilting axes with angle
encoders.
X (Z,Y)
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 the 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°.
Z
With absolute encoders, an absolute position value is transmitted to
the control immediately upon switch-on. In this way the assignment Y
of the actual position to the machine slide position is re-established
directly after switch-on. X

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 Z
known position (reference point) you define within the coordinate
system. Relative coordinate values are also referred to as incremental
coordinate values.
Y

82 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.1 Fundamentals
Reference system on milling machines
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 “right-
hand rule” is illustrated for remembering the three axis directions: the +Y +Z
middle finger points in the positive direction of the tool axis from the +X
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 iTNC 530 can control up to 9 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 +Z
+X
axes. +Y

Y W+
C+
B+
V+ A+ X

U+

HEIDENHAIN iTNC 530 83


4.1 Fundamentals
Polar coordinates
If the production drawing is dimensioned in Cartesian coordinates, you
also write the part program using Cartesian coordinates. For parts
containing circular arcs or angles it is often simpler to give the Y
dimensions in polar coordinates.
While the Cartesian coordinates X, Y and Z are three-dimensional and PR
can describe points in space, polar coordinates are two-dimensional PA2
and describe points in a plane. Polar coordinates have their datum at a
circle center (CC), or pole. A position in a plane can be clearly defined PA3 PR
by the: PR
PA1
„ Polar Radius, the distance from the circle center CC to the position, 10 0°
CC
and the
„ Polar Angle, the size of the angle between the reference axis and
the line that connects the circle center CC with the position. X
30
See figure at upper right.

Definition of pole and angle reference axis


The pole is set by entering two Cartesian coordinates in one of the
three planes. These coordinates also set the reference axis for the
polar angle PA.
Z Y
Coordinates of the pole
Reference axis of the angle
(plane)
X/Y +X
Z
Y/Z +Y Y
X
Z/X +Z
Z Y

84 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.1 Fundamentals
Absolute and incremental workpiece positions
Absolute workpiece positions
Absolute coordinates are position coordinates that are referenced to Y
the datum of the coordinate system (origin). Each position on the
workpiece is uniquely defined by its absolute coordinates.
13
Example 1: Holes dimensioned in absolute coordinates 30
12
Hole 1 Hole 2 Hole 3 20
X = 10 mm X = 30 mm X = 50 mm 1
Y = 10 mm Y = 20 mm Y = 30 mm 10

Incremental workpiece positions


Incremental coordinates are referenced to the last programmed X
nominal position of the tool, which serves as the relative (imaginary) 10 30 50
datum. When you write a part program in incremental coordinates,
you thus program the tool to move by the distance between the
previous and the subsequent nominal positions. Incremental
coordinates are therefore also referred to as chain dimensions.
To program a position in incremental coordinates, enter the prefix “I” Y
before the axis.
Example 2: Holes dimensioned in incremental coordinates 16
Absolute coordinates of hole 4

10
15
X = 10 mm
Y = 10 mm

10
14
Hole 5, referenced to 4 Hole 6, referenced to 5
X = 20 mm X = 20 mm
Y = 10 mm Y = 10 mm 10
20 20 X
Absolute and incremental polar coordinates 10
Absolute polar coordinates always refer to the pole and the reference
axis.
Incremental coordinates always refer to the last programmed nominal
position of the tool.
Y

+IPR
PR

+IPA +IPA PR
PR PA
10 0°
CC

X
30

HEIDENHAIN iTNC 530 85


4.1 Fundamentals
Setting the datum
A production drawing identifies a certain form element of the
workpiece, usually a corner, as the absolute datum. Before setting the Z
datum, you align the workpiece with the machine axes and move the
tool in each axis to a known position relative to the workpiece. You MAX
then set the TNC display to either zero or a predetermined position Y
value. 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, X
simply use the coordinate transformation cycles (see “Coordinate
Transformation Cycles” on page 429).
If the production drawing is not dimensioned for NC, set the datum at
a position or corner on the workpiece which is suitable for deducing MIN
the dimensions of the remaining workpiece positions.
The fastest, easiest and most accurate way of setting the datum is by
using a 3-D touch probe from HEIDENHAIN. See “Setting the Datum
with a 3-D Touch Probe” in the Touch Probe Cycles User’s Manual. Y
Example 17 150 13 14
The workpiece drawing at right shows holes (1 to 4) whose 0
dimensions are shown with respect to an absolute datum with the
750 16
coordinates X=0, Y=0. The holes (5 to 7) are dimensioned with respect 15 -150

300±0,1
to a relative datum with the absolute coordinates X=450, Y=750. With

0
the DATUM SHIFT cycle you can temporarily set the datum to the
position X=450, Y=750, to be able to program the holes (5 to 7) 320
without further calculations. 1 12

X
325 450 900
950

86 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.2 File Management:

4.2 File Management: Fundamentals


Fundamentals

Using the MOD function PGM MGT (see “Configuring


PGM MGT” on page 592), select between standard and
advanced file management.
If the TNC is connected to a network, then use file
management with additional functions.

Files

Files in the TNC Type


Programs
In HEIDENHAIN format .H
In ISO format .I

Tables for
Tools .T
Tool changers .TCH
Pallets .P
Datums .D
Points .PNT
Presets .PR
Cutting data .CDT
Cutting materials, workpiece materials .TAB
Dependent data (such as structure items) .DEP

Texts as
ASCII files .A

When you write a part program on the TNC, you must first enter a file
name. The TNC saves the program to the hard disk 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.
You can manage an almost unlimited number of files with the TNC, at
least 6000 MB.

File names
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.

PROG20 .H
File name File type

HEIDENHAIN iTNC 530 87


4.2 File Management: Fundamentals
Data backup
We recommend saving newly written programs and files on a PC at
regular intervals.
You can do this with the free backup program TNCBACK.EXE from
HEIDENHAIN. Your machine tool builder can provide you with a copy
of TNCBACK.EXE.
In addition, you need a floppy disk on which all machine-specific data,
such as PLC program, machine parameters, etc., are stored. Please
contact your machine tool builder for more information on both the
backup program and the floppy disk.

Saving the contents of the entire hard disk (> 2 GB) can
take up to several hours. In this case, it is a good idea to
save the data outside of working hours, (e.g. overnight), or
to use the PARALLEL EXECUTE function to copy in the
background while you work.

Depending on operating conditions (e.g., vibration load),


hard disks generally have a higher failure rate after three to
five years of service. HEIDENHAIN therefore
recommends having the hard disk inspected after three to
five years.

88 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.3 Standard File Management

4.3 Standard File Management


Note

The standard file management is best if you wish to save


all files in one directory, or if you are well practiced in the
file management of old TNC controls.
To use the standard file management, set the MOD
function PGM MGT (see “Configuring PGM MGT” on page
592) to Standard.

Calling the file manager

Press the PGM MGT key: The TNC displays the file
management window (see figure at right)

The window shows you all of the files that are stored in the TNC. Each
file is shown with additional information:
Display Meaning
FILE NAME Name with up to 16 characters and file type

BYTE File size in bytes

STATUS File properties:

E Program is selected in the Programming and


Editing mode of operation.

S Program is selected in the Test Run mode of


operation.

M Program is selected in a program run mode


of operation.

P File is protected against editing and erasure.

This file has dependent files (see


+ “Dependent files” on page 593)

HEIDENHAIN iTNC 530 89


4.3 Standard File Management
Selecting a file

Call the file manager.

Use the arrow keys or the arrow soft keys to move the highlight to the
file you wish to select:
Moves the highlight up or down file by file in the
window.

Moves the highlight up or down page by page in the


window.

To select the file: Press the SELECT soft key or the


ENT key.
or

Deleting a file

Call the file manager.

Use the arrow keys or the arrow soft keys to move the highlight to the
file you wish to delete:
Moves the highlight up or down file by file in the
window.

Moves the highlight up or down page by page in the


window.

To delete the file: Press the DELETE soft key.

DELETE ..... FILE?

Confirm with the YES soft key.

Abort with the NO soft key.

90 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.3 Standard File Management
Copying a file

Call the file manager.

Use the arrow keys or the arrow soft keys to move the highlight to the
file you wish to copy:
Moves the highlight up or down file by file in the
window.

Moves the highlight up or down page by page in the


window.

To copy the file: Press the COPY soft key.

TARGET FILE =

Enter the new name, and confirm your entry with the EXECUTE soft
key or the ENT key. A status window appears on the TNC, informing
you about the copying progress. As long as the TNC is copying, you
can no longer work, or

If you wish to copy very long programs, enter the new file name and
confirm with the PARALLEL EXECUTE soft key. The file will now be
copied in the background, so you can continue to work while the TNC
is copying.

When the copying process has been started with the


EXECUTE soft key, the TNC displays a pop-up window
with a progress indicator.

HEIDENHAIN iTNC 530 91


4.3 Standard File Management
Data transfer to or from an external data
medium

Before you can transfer data to an external data medium,


you must set up the data interface (see “Setting the Data
Interfaces” on page 581). 1 2

Call the file manager.

Activate data transfer: Press the EXT soft key. In the


left half of the screen (1) the TNC shows all files
saved on its hard disk. In the right half of the screen
(2) it shows all files saved on the external data
medium.

Use the arrow keys to highlight the file(s) that you want to transfer:
Moves the highlight up and down within a window.

Moves the highlight from the left to the right window,


and vice versa.
If you wish to copy from the TNC to the external data medium, move
the highlight in the left window to the file to be transferred.
If you wish to copy from the external data medium to the TNC, move
the highlight in the right window to the file to be transferred.

Tagging functions Soft key


Tag a single file

Tag all files

Untag a single file

Untag all files

Copy all tagged files

92 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.3 Standard File Management
To transfer a single file: Press the COPY soft key, or

Transfer several files: Press the TAG soft key, or

Transfer all files: Press the TNC => EXT soft key

Confirm with the EXECUTE soft key or with the ENT key. A status
window appears on the TNC, informing about the copying progress, or

If you wish to transfer more than one file or longer files, press the
PARALLEL EXECUTE soft key. The TNC then copies the file in the
background.

To stop transfer, press the TNC soft key. The


standard file manager window is displayed again.

HEIDENHAIN iTNC 530 93


4.3 Standard File Management
Selecting one of the last 10 files selected

Call the file manager.

Display the last 10 files selected: Press the LAST


FILES soft key.

Use the arrow keys to move the highlight to the file you wish to select:
Move the highlight up or down.

To select the file: Press the SELECT soft key or the


ENT key.
or

Renaming a file

Call the file manager.

Use the arrow keys or the arrow soft keys to move the highlight to the
file you wish to rename:
Moves the highlight up or down file by file in the
window.

Moves the highlight up or down page by page in the


window.

Press the RENAME soft key to select the renaming


function

TARGET FILE =

Enter the name of the new file and confirm your entry with the ENT
key or EXECUTE soft key.

94 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.3 Standard File Management
Protecting a file / Canceling file protection

Call the file manager.

Use the arrow keys or arrow soft keys to move the highlight to the file
you wish to protect or whose protection you wish to cancel:

Moves the highlight up or down file by file in the


window.

Moves the highlight up or down page by page in the


window.

To enable file protection: Press the PROTECT soft


key. The file now has status P, or

Press the UNPROTECT soft key to cancel file


protection. The P status is canceled.

HEIDENHAIN iTNC 530 95


4.4 Advanced File Management
4.4 Advanced File Management

Note

Use the advanced file manager if you wish to keep your


files in individual directories.
To use it, set the MOD function PGM MGT (see
“Configuring PGM MGT” on page 592).
See also “File Management: Fundamentals” on page 87.

Directories
To ensure that you can easily find your files, we recommend that you
organize your hard disk 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.

The TNC can manage up to 6 directory levels!


If you save more than 512 files in one directory, the TNC
no longer sorts them alphabetically!

Directory names
The name of a directory can contain up to 16 characters and does not
have an extension. If you enter more than 16 characters for the
directory name, the TNC will display an error message.

Paths
A path indicates the drive and all directories and subdirectories under
which a file is saved. The individual names are separated by a TNC:\
backslash “\”.
AUFTR1
Example
NCPROG
On drive TNC:\ the subdirectory AUFTR1 was created. Then, in the
directory AUFTR1 the directory NCPROG was created and the part WZTAB
program PROG1.H was copied into it. The part program now has the
following path: A35K941
TNC:\AUFTR1\NCPROG\PROG1.H ZYLM
The chart at right illustrates an example of a directory display with TESTPROG
different paths.
HUBER
KAR25T

96 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Overview: Functions of the expanded file
manager

Function Soft key


Copy (and convert) individual files

Select target directory

Display a specific file type

Display the last 10 files that were selected

Erase a file or directory

Tag a file

Renaming a file

Protect a file against editing and erasure

Cancel file protection

Manage network drives

Copy a directory

Display all the directories of a particular drive

Delete directory with all its subdirectories

HEIDENHAIN iTNC 530 97


4.4 Advanced File Management
Calling the file manager

Press the PGM MGT key: The TNC displays the file
management window (see figure at top right for
default setting. If the TNC displays a different screen
layout, press the WINDOW soft key.)

The narrow window on the left 1 shows the available drives and
directories. Drives designate devices with which data are stored or
transferred. One drive is the hard disk of the TNC. Other drives are the
1 2
interfaces (RS232, RS422, Ethernet), which can be used, for example,
to connect a personal computer. A directory is always identified by a
folder symbol to the left and the directory name to the right. The
control displays a subdirectory to the right of and below its parent
directory. A box with the + symbol in front of the folder symbol
indicates that there are further subdirectories, which can be shown
with the –/+ key or ENT.
The wide window on the right 2 shows you all files that are stored in
the selected directory. Each file is shown with additional information,
illustrated in the table below.

Display Meaning
FILE NAME Name with up to 16 characters and file type

BYTE File size in bytes

STATUS File properties:

E Program is selected in the Programming and


Editing mode of operation.

S Program is selected in the Test Run mode of


operation.

M Program is selected in a program run mode


of operation.

P File is protected against editing and erasure.

DATE Date the file was last changed

TIME Time the file was last changed

98 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Selecting drives, directories and files

Call the file manager.

With the arrow keys or the soft keys, you can move the highlight to
the desired position on the screen:

Moves the highlight from the left to the right window,


and vice versa.

Moves the highlight up and down within a window.

Moves the highlight one page up or down within a


window.

Step 1: Select drive

Move the highlight to the desired drive in the left window:

Select a drive: Press the SELECT soft key or the ENT


key.
or

Step 2: Select a directory

Move the highlight to the desired directory in the left-hand window —


the right-hand window automatically shows all files stored in the
highlighted directory.

HEIDENHAIN iTNC 530 99


4.4 Advanced File Management Step 3: Select a file

Press the SELECT TYPE soft key.

Press the soft key for the desired file type, or

Press the SHOW ALL soft key to display all files, or

4*.H Use wild card characters, e.g. to show all files of the
file type .H that begin with 4.

Move the highlight to the desired file in the right window


The selected file is opened in the operating mode
from which you have called the file manager: Press
or the SELECT soft key or the ENT key.

Creating a new directory (only possible on the


drive TNC:\)

Move the highlight in the left window to the directory in which you
want to create a subdirectory.

NEW Enter the new file name, and confirm with ENT.

CREATE \NEW DIRECTORY?

Press the YES soft key to confirm, or

Abort with the NO soft key.

100 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Copying a single file
8 Move the highlight to the file you wish to copy.
8 Press the COPY soft key to select the copy function.
The TNC displays a soft-key row with soft keys for
different functions.
8 Press the “Select target directory” soft key to select
the desired directory in a pop-up window. After the
target directory has been selected, the corresponding
path is indicated in the header. Use the Backspace
key to position the cursor directly at the end of the
path name and enter the name of the destination file.
8 Enter the name of the destination file and confirm your
entry with the ENT key or EXECUTE soft key: The
TNC copies the file into the active directory or into the
selected destination directory. The original file is
retained, or
8 Press the PARALLEL EXECUTE soft key to copy the
file in the background. Copying in the background
permits you to continue working while the TNC is
copying. This can be useful if you are copying very
large files that take a long time. While the TNC is
copying in the background you can press the INFO
PARALLEL EXECUTE soft key (under MORE
FUNCTIONS, second soft-key row) to check the
progress of copying.

When the copying process has been started with the


EXECUTE soft key, the TNC displays a pop-up window
with a progress indicator.

HEIDENHAIN iTNC 530 101


4.4 Advanced File Management Copying a table
If you are copying tables, you can overwrite individual lines or columns
in the target table with the REPLACE FIELDS soft key. Prerequisites:
„ The target table must exist.
„ The file to be copied must only contain the columns or lines you
want to replace.

The REPLACE FIELDS soft key does not appear when you
want to overwrite the table in the TNC with an external
data transfer software, such as TNCremoNT. Copy the
externally created file into a different directory, and then
copy the desired fields with the TNC file management.

Example
With a tool presetter you have measured the length and radius of ten
new tools. The tool presetter then generates the tool table TOOL.T
with 10 lines (for the 10 tools) and the columns
„ Tool number (column T)
„ Tool length (column L)
„ Tool radius (column R)
Copy this file to a directory other than the one containing the previous
TOOL.T. If you wish to copy this file over the existing table using the
TNC file management, the TNC asks if you wish to overwrite the
existing TOOL.T tool table:
8 If you press the YES soft key, the TNC will completely overwrite the
current TOOL.T tool table. After this copying process the new
TOOL.T table consists of 10 lines. The only remaining columns in
the table are tool number, tool length and tool radius.
8 Or, if you press the REPLACE FIELDS soft key, the TNC merely
overwrites the first 10 lines of the columns number, length and
radius in the TOOL.T file. The data of the other lines and columns is
not changed.
8 Or, if you press the REPLACE EMPTY LINES soft key, the TNC
merely overwrites the lines in the TOOL.T file that do not contain
any data. The data of the other lines and columns is not changed.

Copying a directory
Move the highlight in the left window onto the directory you want to
copy. Instead of the COPY soft key, press the COPY DIR soft key.
Subdirectories are also copied at the same time.

102 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Choosing one of the last 10 files selected

Call the file manager.

Display the last 10 files selected: Press the LAST


FILES soft key.

Use the arrow keys to move the highlight to the file you wish to select:
Moves the highlight up and down within a window.

Select a drive: Press the SELECT soft key or the ENT


key.
or

Deleting a file
8 Move the highlight to the file you want to delete.
8 To select the erasing function, press the DELETE soft
key. The TNC inquires whether you really intend to
erase the file.
8 To confirm, press the YES soft key;
8 To abort erasure, press the NO soft key.

Deleting a directory
8 Delete all files and subdirectories stored in the directory that you
wish to erase.
8 Move the highlight to the directory you want to delete.
8 To select the erasing function, press the DELETE soft
key. The TNC inquires whether you really intend to
erase the directory.
8 To confirm, press the YES soft key;
8 To abort erasure, press the NO soft key.

HEIDENHAIN iTNC 530 103


4.4 Advanced File Management
Tagging files

Tagging functions Soft key


Tag a single file

Tag all files in the directory

Untag a single file

Untag all files

Copy all tagged files

Some functions, such as copying or erasing files, can not only be used
for individual files, but also for several files at once. To tag several files,
proceed as follows:

Move the highlight to the first file.

To display the tagging functions, press the TAG soft


key.

Tag a file by pressing the TAG FILE soft key.

Move the highlight to the next file you wish to tag:

To mark more files, press the TAG FILE soft key.

To copy the tagged files, press the COPY TAG soft


key, or

Delete the tagged files by pressing END to end the


marking function, and then the DELETE soft key to
delete the tagged files.

104 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Renaming a file
8 Move the highlight to the file you want to rename.
8 Select the renaming function.

8 Enter the new file name; the file type cannot be


changed.
8 To execute renaming, press the ENT key.

Additional functions
Protecting a file / Canceling file protection
8 Move the highlight to the file you want to protect.
8 To select the additional functions, press the MORE
FUNCTIONS soft key.
8 To enable file protection, press the PROTECT soft
key. The file now has status P.
8 To cancel file protection, proceed in the same way
using the UNPROTECT soft key.

Erasing a directory together with all its subdirectories and files


8 Move the highlight in the left window onto the directory you want
to erase.
8 To select the additional functions, press the MORE
FUNCTIONS soft key.
8 Press DELETE ALL to erase the directory together
with its subdirectories.
8 To confirm, press the YES soft key. To abort erasure,
press the NO soft key.

HEIDENHAIN iTNC 530 105


4.4 Advanced File Management
Data transfer to or from an external data
medium

Before you can transfer data to an external data medium,


you must set up the data interface (see “Setting the Data
Interfaces” on page 581).

Call the file manager.

Select the screen layout for data transfer: press the


WINDOW soft key. In the left half of the screen (1)
the TNC shows all files saved on its hard disk. In the 1 2
right half of the screen (2) it shows all files saved on
the external data medium.

Use the arrow keys to highlight the file(s) that you want to transfer:
Moves the highlight up and down within a window.

Moves the highlight from the left to the right window,


and vice versa.
If you wish to copy from the TNC to the external data medium, move
the highlight in the left window to the file to be transferred.
If you wish to copy from the external data medium to the TNC, move
the highlight in the right window to the file to be transferred.

To transfer a single file: Press the COPY soft key, or

Transfer several files: Press the TAG soft key (in the
second soft-key row, see “Tagging files” on page
104), or

Transfer all files: Press the TNC => EXT soft key.

106 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
Confirm with the EXECUTE soft key or with the ENT key. A status
window appears on the TNC, informing about the copying progress, or

If you wish to transfer more than one file or longer files, press the
PARALLEL EXECUTE soft key. The TNC then copies the file in the
background.

To end data transfer, move the highlight into the left


window and then press the WINDOW soft key. The
standard file manager window is displayed again.

To select another directory in the split-screen display,


press the PATH soft key. Select the desired directory in
the pop-up window by using the arrow keys and the ENT
key.

HEIDENHAIN iTNC 530 107


4.4 Advanced File Management
Copying files into another directory
8 Select the screen layout with the two equally sized windows.
8 To display directories in both windows, press the PATH soft key.
In the right window
8 Move the highlight to the directory into which you wish to copy the
files, and display the files in this directory with the ENT key.
In the left window
8 Select the directory with the files that you wish to copy and press
ENT to display them.
8 Display the file tagging functions.

8 Move the highlight to the file you want to copy and tag
it. You can tag several files in this way, if desired.
8 Copy the tagged files into the target directory.

Additional tagging functions: see “Tagging files” on page 104.


If you have marked files in the left and right windows, the TNC copies
from the directory in which the highlight is located.

Overwriting files
If you copy files into a directory in which other files are stored under
the same name, the TNC will ask whether the files in the target
directory should be overwritten:
8 To overwrite all files, press the YES soft key, or
8 To overwrite no files, press the NO soft key, or
8 To confirm each file separately before overwriting it, press the
CONFIRM soft key.
If you wish to overwrite a protected file, this must also be confirmed
or aborted separately.

108 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.4 Advanced File Management
The TNC in a Network

To connect the Ethernet card to your network, see


“Ethernet Interface” on page 585. 2
To connect the iTNC with Windows 2000 to your network, 1
see “Network Settings” on page 645.
The TNC logs error messages during network operation
(see “Ethernet Interface” on page 585).

If the TNC is connected to a network, the directory window 1 displays


up to 7 drives (see figure at right). All the functions described above
(selecting a drive, copying files, etc.) also apply to network drives,
provided that you have been given the corresponding rights.

Connecting and disconnecting a network drive


8 To select the program management: Press the PGM
MGT key. If necessary, press the WINDOW soft key
to set up the screen as it is shown at the upper right.
8 To manage the network drives: Press the NETWORK
soft key (second soft-key row). In the right-hand
window 2 the TNC shows the network drives
available for access. With the soft keys described
below you can define the connection for each drive.

Function Soft key


Establish network connection. If the connection
is active, the TNC shows an M in the Mnt column.
You can connect up to 7 additional drives with
the TNC.

Delete network connection.

Automatically establish network connection


whenever the TNC is switched on. The TNC
shows an A in the Auto column if the connection
is established automatically.

Do not establish network connection


automatically when the TNC is switched on.

It may take some time to mount a network device. At the upper right
of the screen the TNC displays [READ DIR] to indicate that a
connection is being established. The maximum transmission speed is
2 to 5 MB/s, depending on the type of file being transferred and how
busy the network is.

HEIDENHAIN iTNC 530 109


4.5 Creating and Writing Programs
4.5 Creating and Writing Programs

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 in ascending sequence.
Blocks
The first block of a program is identified by BEGIN PGM, the program
name and the active unit of measure. 10 L X+10 Y+5 R0 F100 M3
The subsequent blocks contain information on:
„ The workpiece blank
„ Tool definitions, tool calls Path function Words
„ Feed rates and spindle speeds, as well as
Block number
„ Path contours, cycles and other functions
The last block of a program is identified by END PGM, the program name
and the active unit of measure.

Defining the blank form – BLK FORM

Immediately after initiating a new program, you define a cuboid


workpiece blank. If you wish to define the blank at a later stage, press
the BLK FORM soft key. This definition is needed for the TNC’s
graphic simulation feature. The sides of the workpiece blank lie parallel
to the X, Y and Z axes and can be up to 100 000 mm long. The blank
form 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.

You only need to define the blank form if you wish to run
a graphic test for the program!

110 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.5 Creating and Writing Programs
Creating a new part program
You always enter a part program in the Programming and Editing
mode of operation. An example of program initiation:

Select the Programming and Editing mode of


operation.

To call the file manager, press the PGM MGT key.

Select the directory in which you wish to store the new program:

FILE NAME = OLD.H

Enter the new program name and confirm your entry


with the ENT key.

To 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).

WORKING SPINDLE AXIS X/Y/Z ?

Enter the spindle axis.

DEF BLK FORM: MIN-CORNER ?

0 Enter in sequence the X, Y and Z coordinates of the


MIN point.
0

-40

DEF BLK FORM: MAX-CORNER ?

100 Enter in sequence the X, Y and Z coordinates of the


MAX point.
100

HEIDENHAIN iTNC 530 111


4.5 Creating and Writing Programs Example: Display the BLK form in the NC program
0 BEGIN PGM NEW MM Program begin, name, unit of measure
1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Spindle axis, MIN point coordinates
2 BLK FORM 0.2 X+100 Y+100 Z+0 MAX point coordinates
3 END PGM NEW MM Program end, name, unit of measure

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 spindle axis X/Y/Z by pressing the DEL key!
The TNC can display the graphics only if the shortest side
is at least 50 µm long and the longest side is no longer
than 99 999.999 mm.

112 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.5 Creating and Writing Programs
Programming tool movements in conversational
format
To program a block, initiate the dialog by pressing a function key. In the
screen headline, the TNC then asks you for all the information
necessary to program the desired function.

Example of a dialog

Dialog initiation

COORDINATES?

Enter the target coordinate for the X axis.


10

Enter the target coordinate for the Y axis, and go to


20
the next question with ENT.

RADIUS COMP. RL/RR/NO COMP. ?

Enter “No radius compensation” and go to the next


question with ENT.

FEED RATE F=? / F MAX = ENT

Enter a feed rate of 100 mm/min for this path contour;


100
go to the next question with ENT.

MISCELLANEOUS FUNCTION M?

Enter the miscellaneous function M3 “spindle ON”;


3
pressing the ENT key terminates this dialog.

The program-block window displays the following line:

3 L X+10 Y+5 R0 F100 M3

HEIDENHAIN iTNC 530 113


4.5 Creating and Writing Programs
Functions for setting the feed rate Soft key
Rapid traverse

Traverse feed rate automatically calculated in


TOOL CALL

Move at the programmed feed rate (unit of


measure is mm/min)

With FT, instead of a speed you define a time in


seconds (input range 0.001 to 999.999 seconds),
in which the programmed path is to be traversed.
FT is effective only blockwise

With FMAXT, instead of a speed you define a time


in seconds (input range 0.001 to 999.999
seconds), in which the programmed path is to be
traversed. FMAXT is effective only for keyboards
with a rapid traverse potentiometer. FMAXT is
effective only blockwise

Functions for conversational guidance Key


Ignore the dialog question

End the dialog immediately

Abort the dialog and erase the block

114 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.5 Creating and Writing Programs
Actual position capture
The TNC enables you to transfer the current tool position into the
program, for example during
„ Positioning-block programming.
„ Cycle programming.
„ Define the tools with TOOL DEF.
To transfer the correct position values, proceed as follows:
8 Place the input box at the position in the block where you want to
insert a position value.
8 Select the actual position capture function: In the soft-
key row the TNC displays the axes whose positions
can be transferred.
8 Select the axis: The TNC writes the current position of
the selected axis into the active input box.

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.

HEIDENHAIN iTNC 530 115


4.5 Creating and Writing Programs
Editing a program
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:

Function Soft key/key


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.

116 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.5 Creating and Writing Programs
Function Soft key/key
Set the selected word to zero

Erase an incorrect number

Clear a (non-blinking) error message

Delete the selected word

Delete the selected block

Erase cycles and program sections

Insert the block that was last edited or


deleted.

Inserting blocks at any desired location


8 Select the block after which you want to insert a new block and
initiate the dialog.

Editing and inserting words


8 Select a word in a block and overwrite it with the new one. The plain-
language dialog is available while the word is highlighted.
8 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


Set the AUTO DRAW soft key to OFF.

To select a word in a block, press the arrow keys


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.

HEIDENHAIN iTNC 530 117


4.5 Creating and Writing Programs Finding any text
8 To select the search function, press the FIND soft key. The TNC
displays the dialog prompt Find text:
8 Enter the text that you wish to find.
8 To find the text, press the EXECUTE soft key.

Marking, copying, deleting 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:
8 Select the soft-key row using the marking function.
8 Select the first (last) block of the section you wish to copy.
8 To mark the first (last) block, press the SELECT BLOCK soft key. The
TNC then highlights the first character of the block and
superimposes the soft key CANCEL SELECTION.
8 Move the highlight to the last (first) block of the program section you
wish to copy or delete. 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.
8 To copy the selected program section: Press the COPY BLOCK soft
key, and to delete the selected section: Press the DELETE BLOCK
soft key. The TNC stores the selected block.
8 Using the arrow keys, select the block after which you wish to insert
the copied (deleted) 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 copied
block.

8 To insert the block: Press the INSERT BLOCK soft key.


8 To end the marking function, press the CANCEL SELECTION soft
key.

Function Soft key


Switch marking function on

Switch marking function off

Delete marked block

Insert block that is stored in the buffer memory

Copy marked block

118 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.5 Creating and Writing Programs
The TNC search function
With the search function of the TNC, you can search for any text within
a program and replace it by a new text, if required.

Searching for texts


8 If required, select the block containing the word you wish to find.
8 Select the search function: The TNC superimposes
the search window and displays the available search
functions in the soft-key row (see table of search
functions).
8 Enter the text to be searched for. Please note that the
+40 search is case-sensitive.
8 Start the search process: The TNC displays the
available search options in the soft-key row (see the
table of search options on the next page).
8 If required, change the search options.

8 Start the search process: The TNC moves to the next


block containing the text you are searching for.
8 Repeat the search process: The TNC moves to the
next block containing the text you are searching for.
8 End the search function.

Search functions Soft key


Show the superimposed window containing the
last search items. Use the arrow keys to select a
search item and confirm with the ENT key.

Show the superimposed window containing


possible search items of the current block. Use
the arrow keys to select a search item and
confirm with the ENT key.

Show the superimposed window containing a


selection of the most important NC functions.
Use the arrow keys to select a search item and
confirm with the ENT key.

Activate the Find/Replace function.

HEIDENHAIN iTNC 530 119


4.5 Creating and Writing Programs
Search options Soft key
Define the search direction.

Define the end of the search: With COMPLETE,


the search starts at the current block and is
continued until the current block is reached
again.

Start a new search.

Find/Replace any text

The find/replace function is not possible if


„ 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.

8 If required, select the block containing the word you wish to find.
8 Select the Search function: The TNC superimposes
the search window and displays the available search
functions in the soft-key row.
8 Activate the Replace function: The TNC superimposes
a window for entering the text to be inserted.
8 Enter the text to be searched for. Please note that the
search is case-sensitive. Then confirm with the ENT
key.
8 Enter the text to be inserted. Please note that the
entry is case-sensitive.
8 Start the search process: The TNC displays the
available search options in the soft-key row (see the
table of search options).
8 If required, change the search options.

8 Start the search process: The TNC moves to the next


occurrence of the text you are searching for.
8 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
soft key. To skip the text and move to its next
occurrence press the DO NOT REPLACE soft key.
8 End the search function.

120 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.6 Interactive Programming

4.6 Interactive Programming Graphics


Graphics
To generate/not generate graphics during
programming:
While you are writing the part program, you can have the TNC
generate a 2-D pencil-trace graphic of the programmed contour.
8 To switch the screen layout to displaying program blocks to the left
and graphics to the right, press the SPLIT SCREEN key and
PGM + GRAPHICS soft key.
8 Set the AUTO DRAW soft key to ON. While you are
entering the program lines, the TNC generates each
path contour you program in the graphics window in
the right screen half.
If you do not wish to have graphics generated during programming,
set the AUTO DRAW soft key to OFF.
Even when AUTO DRAW is switched ON, graphics are not generated
for program section repeats.

Generating a graphic for an existing program


8 Use the arrow keys to select the block up to which you want the
graphic to be generated, or press GOTO and enter the desired block
number.
8 To generate graphics, press the RESET + START soft
key.

Additional functions:

Function Soft key


Generate a complete graphic

Generate interactive graphic blockwise

Generate a complete graphic or complete it after


RESET + START

Stop the programming graphics. This soft key


only appears while the TNC is generating the
interactive graphics

HEIDENHAIN iTNC 530 121


4.6 Interactive Programming Graphics
Block number display ON/OFF
8 Shift the soft-key row (see figure at upper right).

8 To show block numbers: Set the SHOW OMIT BLOCK


NR. soft key to SHOW.
8 To omit block numbers: Set the SHOW OMIT BLOCK
NR. soft key to OMIT.

To erase the graphic:


8 Shift the soft-key row (see figure at upper right).

8 Delete graphic: Press CLEAR GRAPHIC soft key.

Magnifying or reducing a detail


You can select the graphics display by selecting a detail with the frame
overlay. You can now magnify or reduce the selected detail.
8 Select the soft-key row for detail magnification/reduction (second
row, see figure at center right).
The following functions are available:
Function Soft key
Show and move the frame overlay. Press and
hold the desired soft key to move the frame
overlay.

Reduce the frame overlay—press and hold the


soft key to reduce the detail.

Enlarge the frame overlay—press and hold the


soft key to magnify the detail.

8 Confirm the selected area with the WINDOW DETAIL


soft key.
With the WINDOW BLK FORM soft key, you can restore the original
section.

122 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.7 Structuring Programs

4.7 Structuring Programs


Definition and applications
This TNC function enables you to comment part programs in
structuring blocks. Structuring blocks are short texts with up to 37
characters and are used as comments or headlines for the subsequent
program lines.
With the aid of appropriate structuring blocks, you can organize long
and complex programs in a clear and comprehensible way.
This function is particularly convenient if you want to change the
program later. Structuring blocks can be inserted into the part program
at any point. They can also be displayed in a separate window, and
edited or added to, as desired.
The inserted structure items are managed by the TNC in a separate file
(extension: .SEC.DEP). This speeds navigation in the program
structure window.

Displaying the program structure window /


Changing the active window
8 To display the program structure window, select the
screen display PGM+SECTS.
8 To change the active window, press the “Change
window” soft key.

Inserting a structuring block in the (left) program


window
8 Select the block after which the structuring block is to be inserted.
8 Press the INSERT STRUCTURE soft key or the * key
on the ASCII keyboard.
8 Enter the structuring text with the alphabetic
keyboard.
8 If necessary, change the structure depth with the soft
key.

Selecting blocks in the program structure


window
If you are scrolling through the program structure window block by
block, the TNC at the same time automatically moves the
corresponding NC blocks in the program window. This way you can
quickly skip large program sections.

HEIDENHAIN iTNC 530 123


4.8 Adding Comments
4.8 Adding Comments

Function
You can add comments to any desired block in the part program to
explain program steps or make general notes. There are three
possibilities for adding comments:

Entering comments during programming


8 Enter the data for a program block, then press the semicolon key “;”
on the alphabetic keyboard—the TNC displays the dialog prompt
COMMENT ?
8 Enter your comment and conclude the block by pressing the END
key.

Inserting comments after program entry


8 Select the block to which a comment is to be added.
8 Select the last word in the block with the right arrow key: A
semicolon appears at the end of the block and the TNC displays the
dialog prompt COMMENT ?
8 Enter your comment and conclude the block by pressing the END
key.

Entering a comment in a separate block


8 Select the block after which the comment is to be inserted.
8 Initiate the programming dialog with the semicolon key (;) on the
alphabetic keyboard.
8 Enter your comment and conclude the block by pressing the END
key.

Functions for editing of the comment

Function Soft key


Jump to beginning of comment

Jump to end of comment

Jump to the beginning of a word. Words must be


separated by a space.

Jump to the end of a word. Words must be


separated by a space.

Switch between insert mode and overwrite


mode

124 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.9 Creating Text Files

4.9 Creating Text Files


Function
You can use the TNC’s text editor to write and edit texts. Typical
applications:
„ Recording test results
„ Documenting working procedures
„ Creating formularies
Text files are type .A files (ASCII files). If you want to edit other types
of files, you must first convert them into type .A files.

Opening and exiting text files


8 Select the Programming and Editing mode of operation.
8 To call the file manager, press the PGM MGT key.
8 To display type .A files, press the SELECT TYPE and then the
SHOW .A soft keys.
8 Select a file and open it with the SELECT soft key or ENT key, or
create a new file by entering the new file name and confirming your
entry with the ENT key.
To leave the text editor, call the file manager and select a file of a
different file type, for example a part program.

Cursor movements Soft key


Move one word to the right

Move one word to the left

Go to next screen page

Go to previous screen page

Go to beginning of file

Go to end of file

HEIDENHAIN iTNC 530 125


4.9 Creating Text Files
Editing functions Key
Begin a new line

Erase the character to the left of the cursor

Insert a blank space

Switch between upper and lower case letters

Editing texts
The first line of the text editor is an information headline displaying the
file name, and the location and writing mode of the cursor:
File: Name of the text file
Line: Line in which the cursor is presently located
Column: Column in which the cursor is presently located
INSERT: Insert new text, pushing the existing text to the right
OVERWRITE: Write over the existing text, erasing it by replacing it
with new text

The text is inserted or overwritten at the location of the cursor. You


can move the cursor to any desired position in the text file by pressing
the arrow keys.
The line in which the cursor is presently located is depicted in a
different color. A line can have up to 77 characters. To start a new line,
press the RET key or the ENT key.

126 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.9 Creating Text Files
Erasing and inserting characters, words and
lines
With the text editor, you can erase words and even lines, and insert
them at any desired location in the text.
8 Move the cursor to the word or line that you wish to erase and insert
at a different place in the text.
8 Press the DELETE WORD or DELETE LINE soft key: The text is
placed in the buffer memory.
8 Move the cursor to the location where you wish insert the text, and
press the RESTORE LINE/WORD soft key.

Function Soft key


Delete and temporarily store a line

Delete and temporarily store a word

Delete and temporarily store a character

Insert a line or word from temporary storage

Editing text blocks


You can copy and erase text blocks of any size, and insert them at
other locations. Before carrying out any of these editing functions, you
must first select the desired text block:
8 To select a text block, move the cursor to the first character of the
text you wish to select.
8 Press the MARK BLOCK soft key.

8 Move the cursor to the last character of the text you


wish to select. You can select whole lines by moving
the cursor up or down directly with the arrow keys—
the selected text is shown in a different color.
After selecting the desired text block, you can edit the text with the
following soft keys:

Function Soft key


Delete the selected text and store temporarily

Store marked block temporarily without erasing


(copy)

HEIDENHAIN iTNC 530 127


4.9 Creating Text Files If desired, you can now insert the temporarily stored block at a
different location:
8 Move the cursor to the location where you want to insert the
temporarily stored text block.
8 Press the INSERT BLOCK soft key for the text block
to be inserted.
You can insert the temporarily stored text block as often as desired.

To transfer the selected text to a different file


8 Select the text block as described previously.
8 Press the APPEND TO FILE soft key. The TNC
displays the dialog prompt Destination file =
8 Enter the path and name of the target file. The TNC
appends the selected text to the end of the specified
file. If no target file with the specified name is found,
the TNC creates a new file with the selected text.

To insert another file at the cursor position


8 Move the cursor to the location in the text where you wish to insert
another file.
8 Press the READ FILE soft key. The TNC displays the
dialog prompt File name =
8 Enter the path and name of the file you want to insert.

Finding text sections


With the text editor, you can search for words or character strings in a
text. Two functions are available:

Finding the current text


The search function is used for finding the next occurrence of the
word in which the cursor is presently located:
8 Move the cursor to the desired word.
8 To select the search function, press the FIND soft key.
8 Press the FIND CURRENT WORD soft key.
8 To leave the search function, press the END soft key.

Finding any text


8 To select the search function, press the FIND soft key. The TNC
displays the dialog prompt Find text:
8 Enter the text that you wish to find.
8 To find the text, press the EXECUTE soft key.
8 To leave the search function, press the END soft key.

128 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.10 Integrated Pocket Calculator

4.10 Integrated Pocket Calculator


Operation
The TNC features an integrated pocket calculator with the basic
mathematical functions.
8 Use the CALC key to show and hide the on-line pocket calculator.
8 The calculator is operated with short commands through the
alphabetic keyboard. The commands are shown in a special color in
the calculator window:

Mathematical function Command (key)


Addition +

Subtraction –

Multiplication *

Division :

Sine S

Cosine C

Tangent T

Arc sine AS

Arc cosine AC

Arc tangent AT

Powers ^

Square root Q

Inversion /

Parenthetic calculations ()

p (3.14159265359) P

Display result =

To transfer the calculated value into the program,


8 Select the word into which the calculated value is to be transferred
by using the arrow keys.
8 Superimpose the on-line calculator by using the CALC key and
perform the desired calculation.
8 Press the actual position capture key for the TNC to superimpose a
soft-key row.
8 Press the CALC soft key for the TNC to transfer the value into the
active input box and to close the calculator.

HEIDENHAIN iTNC 530 129


4.11 Immediate Help for NC Error Messages
4.11 Immediate Help for NC Error
Messages
Displaying error messages
The TNC automatically generates error messages when it detects
problems such as
„ Incorrect data input
„ Logical errors in the program
„ Contour elements that are impossible to machine
„ Incorrect use of the touch probe system
An error message that contains a program block number was caused
by an error in the indicated block or in the preceding block. The TNC
error messages can be canceled with the CE key, after the cause of
the error has been removed.
If you require more information on a particular error message, press
the HELP key. A window is then superimposed where the cause of
the error is explained and suggestions are made for correcting the
error.

Display HELP
8 To display Help, press the HELP key.
8 Read the description of the error and the possibilities
for correcting it. The TNC may show additional
information that can be helpful to trained
HEIDENHAIN personnel during troubleshooting.
Close the Help window with the CE key, thus
canceling the error message.
8 Remove the cause of the error as described in the
Help window.
The TNC displays the Help text automatically if the error message is
blinking. The TNC needs to be restarted after blinking error messages.
To restart the TNC, press and hold the END key for two seconds.

130 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.12 List of all current error

4.12 List of all current error messages


messages
Function
With this function you can show a popup window in which the TNC
shows all current error messages. The TNC shows errors both from
the NC as well as those from the machine tool builder.

Show error list


You can call the list as soon as at least one error message is present:
8 To display the list, press the ERR key.
8 You can select one of the current error messages with
the arrow keys.
8 With the CE key or the DEL key you can delete the
error message from the popup window momentarily
selected. When you delete the last error message,
the popup window closes as well.
8 To close the popup window, press the ERR key again.
Current error messages are retained.

Parallel to the error list you can also view the respective
help text in a separate window: Press the HELP key.

HEIDENHAIN iTNC 530 131


4.12 List of all current error messages
Window contents

Column Meaning
Number Error number (–1: no error number defined),
issued by HEIDENHAIN or your machine tool
builder

Class Error class. Defines how the TNC processes


this error.
„ ERROR
Program run is interrupted by the TNC
(INTERNAL STOP)
„ FEED HOLD
The feed-rate release is deleted
„ PGM HOLD
The program run is interrupted (the control-
in-operation symbol blinks)
„ PGM ABORT
The program run is interrupted (INTERNAL
STOP)
„ EMERG. STOP
EMERGENCY STOP is set off
„ RESET
TNC executes a system restart
„ WARNING
Warning message, the program run
resumes.
„ INFO
Info message, the program run resumes.

Error message Respective error text displayed by the TNC

132 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.13 Pallet Management

4.13 Pallet Management


Function

Pallet table management is a machine-dependent


function. The standard functional range will be described
below. Refer to your machine manual for more
information.

Pallet tables are used for machining centers with pallet changers: The
pallet table calls the part programs that are required for the different
pallets, and activates datum shifts or datum tables.
You can also use pallet tables to run in succession several programs
that have different datums.
Pallet tables contain the following information:
„ PAL/PGM (entry obligatory):
Identification for pallet or NC program (select with ENT or NO ENT)
„ NAME (entry obligatory):
Pallet or program name. The machine tool builder determines the
pallet name (see Machine Manual). The program name must be
stored in the same directory as the pallet table. Otherwise you must
enter the full path name for the program.
„ PRESET (entry optional):
Preset number from the preset table. The preset number defined
here is interpreted by the TNC either as a pallet datum PAL in the
PAL/PGM) column or as a workpiece datum (PGM entry in the PAL/PGM)
line.
„ DATUM (entry optional):
Name of the datum table. The datum table must be stored in the
same directory as the pallet table. Otherwise you must enter the full
path name for the datum table. Datums from the datum table can be
activated in the NC program with Cycle 7 DATUM SHIFT.

HEIDENHAIN iTNC 530 133


„ X, Y, Z (entry optional, other axes also possible):
4.13 Pallet Management
For pallet names, the programmed coordinates are referenced to
the machine datum. For NC programs, the programmed coordinates
are referenced to the pallet datum. These entries overwrite the
datum that you last set in the Manual mode of operation. With the
miscellaneous function M104 you can reactivate the datum that was
last set. With the actual-position-capture key, the TNC opens a
window that enables you to have the TNC enter various points as
datums (see table below):

Position Meaning
Actual values Enter the coordinates of the current tool position
referenced to the active coordinate system.

Reference Enter the coordinates of the current tool position


values referenced to the machine datum.

ACTL measured Enter the coordinates referenced to the active


values coordinate system of the datum last probed in
the Manual operating mode.

REF measured Enter the coordinates referenced to the machine


values datum of the datum last probed in the Manual
operating mode.

With the arrow keys and ENT, select the position that you wish to
confirm. Then press the ALL VALUES soft key so that the TNC saves
the respective coordinates of all active axes in the pallet table. With
the PRESENT VALUE soft key, the TNC saves the coordinates of the
axis on which the highlight in the pallet table is presently located.

If you have not defined a pallet before an NC program, the


programmed coordinates are then referenced to the
machine datum. If you do not define an entry, the datum
that was set manually remains active.

Editing function Soft key


Select beginning of table

Select end of table

Select previous page in table

Select next page in table

Insert as last line in the table

Delete the last line in the table

134 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.13 Pallet Management
Editing function Soft key
Go to beginning of next line

Add the entered number of lines at the end of the


table

Copy the highlighted field (2nd soft-key row)

Insert the copied field (2nd soft-key row)

Selecting a pallet table


8 Call the file manager in the Programming and Editing or Program
Run mode: Press the PGM MGT key.
8 To display all type .P files, press the soft keys SELECT TYPE and
SHOW .P.
8 Select a pallet table with the arrow keys, or enter a new file name
to create a new table.
8 Confirm your entry with the ENT key.

Leaving the pallet file


8 To call the file manager, press the PGM MGT soft key.
8 To select a different type of file, press the SELECT TYPE soft key
and the soft key for the desired file type, for example SHOW.H.
8 Select the desired file.

HEIDENHAIN iTNC 530 135


4.13 Pallet Management
Executing the pallet file

Programs executed over the pallet file must not contain


M30 (M02).
MP7683 defines whether the pallet table is to be
executed blockwise or continuously .
Provided that machine parameter 7246 is set so that the
tool usage test is active, you can monitor the tool service
life for all tools used in a pallet (see “Tool Usage Test” on
page 594).

8 Select the file manager in the Program Run, Full Sequence or


Program Run, Single Block operating modes: Press the PGM MGT
key.
8 To display all type .P files, press the soft keys SELECT TYPE and
SHOW .P.
8 Select the pallet table with the arrow keys and confirm with ENT.
8 To execute the pallet table: Press the NC Start button. The TNC
executes the pallets as set in MP7683.

Screen layout for executing pallet tables


You can have the TNC display the program contents and pallet file
contents on the screen together by selecting the screen layout PGM
+ PALLET. During execution, the TNC then shows program blocks to
the left and the pallet to the right. To check the program contents
before execution, proceed as follows:
8 Select a pallet table.
8 With the arrow keys, choose the program you would like to check.
8 Press the OPEN PGM soft key: The TNC displays the selected
program on the screen. You can now page through the program with
the arrow keys.
8 To return to the pallet table, press the END PGM soft key.

136 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.14 Pallet Operation with Tool-

4.14 Pallet Operation with Tool-Oriented Machining


Oriented Machining
Function

Pallet management in combination with tool-oriented


machining is a machine-dependent function. The standard
functional range will be described below. Refer to your
machine manual for more information.

Pallet tables are used for machining centers with pallet changers: The
pallet table calls the part programs that are required for the different
pallets, and activates datum shifts or datum tables.
You can also use pallet tables to run in succession several programs
that have different datums.
Pallet tables contain the following information:
„ PAL/PGM (entry obligatory):
The entry PAL identifies the pallet, FIX marks the fixture level and PGM
is used to enter the workpiece.
„ W-STATE:
Current machining status. The machining status is used to
determine the current stage of machining. Enter BLANK for an
unmachined (raw) workpiece. During machining, the TNC changes
this entry to INCOMPLETE, and after machining has finished, to
ENDED. The entry EMPTY is used to identify a space at which no
workpiece is to be clamped or where no machining is to take place.
„ METHOD (entry obligatory):
Entry that determines the method of program optimization.
Machining is workpiece-oriented if WPO is entered. Machining of the
piece is tool-oriented if TO is entered. In order to include subsequent
workpieces in the tool-oriented machining, you must enter CTO
(continued tool oriented). Tool-oriented machining is also possible
with pallet fixtures, but not for multiple pallets.
„ NAME (entry obligatory):
Pallet or program name. The machine tool builder determines the
pallet name (see Machine Manual). Programs must be stored in the
same directory as the pallet table. Otherwise you must enter the full
path and name for the program.
„ PRESET (entry optional):
Preset number from the preset table. The preset number defined
here is interpreted by the TNC either as a pallet datum PAL in the
PAL/PGM) column or as a workpiece datum (PGM entry in the PAL/PGM)
line.

HEIDENHAIN iTNC 530 137


„ DATUM (entry optional):
4.14 Pallet Operation with Tool-Oriented Machining
Name of the datum table. The datum table must be stored in the
same directory as the pallet table. Otherwise you must enter the full
path name for the datum table. Datums from the datum table can be
activated in the NC program with Cycle 7 DATUM SHIFT.
„ X, Y, Z (entry optional, other axes also possible):
For pallets and fixtures, the programmed coordinates are referenced
to the machine datum. For NC programs, the programmed
coordinates are referenced to the pallet or fixture datum. These
entries overwrite the datum that you last set in the Manual mode of
operation. With the miscellaneous function M104 you can reactivate
the datum that was last set. With the actual-position-capture key,
the TNC opens a window that enables you to have the TNC enter
various points as datums (see table below):

Position Meaning
Actual values Enter the coordinates of the current tool position
referenced to the active coordinate system.

Reference Enter the coordinates of the current tool position


values referenced to the machine datum.

ACTL measured Enter the coordinates referenced to the active


values coordinate system of the datum last probed in
the Manual operating mode.

REF measured Enter the coordinates referenced to the machine


values datum of the datum last probed in the Manual
operating mode.

With the arrow keys and ENT, select the position that you wish to
confirm. Then press the ALL VALUES soft key so that the TNC saves
the respective coordinates of all active axes in the pallet table. With
the PRESENT VALUE soft key, the TNC saves the coordinates of the
axis on which the highlight in the pallet table is presently located.

If you have not defined a pallet before an NC program, the


programmed coordinates are then referenced to the
machine datum. If you do not define an entry, the datum
that was set manually remains active.

138 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


„ SP-X, SP-Y, SP-Z (entry optional, other axes also possible):

4.14 Pallet Operation with Tool-Oriented Machining


Safety positions can be entered for the axes. These positions can be
read with SYSREAD FN18 ID510 NR 6 from NC macros. SYSREAD
FN18 ID510 NR 5 can be used to determine if a value was
programmed in the column. The positions entered are only
approached if these values are read and correspondingly
programmed in the NC macros.
„ CTID (entered by the TNC):
The context ID number is assigned by the TNC and contains
instructions about the machining progress. Machining cannot be
resumed if the entry is deleted or changed.

Editing function in table mode Soft key


Select beginning of table

Select end of table

Select previous page in table

Select next page in table

Insert as last line in the table

Delete the last line in the table

Go to beginning of next line

Add the entered number of lines at the end of the


table

Edit the table format

Editing function in entry-form mode Soft key


Select previous pallet

Select next pallet

Select previous fixture

Select next fixture

Select previous workpiece

HEIDENHAIN iTNC 530 139


4.14 Pallet Operation with Tool-Oriented Machining
Editing function in entry-form mode Soft key
Select next workpiece

Switch to pallet plane

Switch to fixture plane

Switch to workpiece plane

Select standard pallet view

Select detailed pallet view

Select standard fixture view

Select detailed fixture view

Select standard workpiece view

Select detailed workpiece view

Insert pallet

Insert fixture

Insert workpiece

Delete pallet

Delete fixture

Delete workpiece

Delete clipboard contents

Tool-optimized machining

Workpiece-optimized machining

140 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.14 Pallet Operation with Tool-Oriented Machining
Editing function in entry-form mode Soft key
Connect or separate the types of machining

Mark plane as being empty

Mark plane as being unmachined

Selecting a pallet file


8 Call the file manager in the Programming and Editing or Program
Run mode: Press the PGM MGT key.
8 To display all type .P files, press the soft keys SELECT TYPE and
SHOW .P.
8 Select a pallet table with the arrow keys, or enter a new file name
to create a new table.
8 Confirm your entry with the ENT key.

HEIDENHAIN iTNC 530 141


4.14 Pallet Operation with Tool-Oriented Machining
Setting up the pallet file with the entry form
Pallet operation with tool- or workpiece-oriented machining is divided
into three levels:
„ Pallet level PAL
„ Fixture level FIX
„ Workpiece level PGM
You can switch to a detail view in each level. Set the machining
method and the statuses for the pallet, fixture and workpiece in the
standard view. If you are editing an existing pallet file, the updated
entries are displayed. Use the detail view for setting up the pallet file.

Set up the pallet file according to the machine


configuration. If you only have one fixture with multiple
workpieces, then defining one fixture FIX with the
workpieces PGM is sufficient. However, if one pallet
contains several fixtures, or if a fixture is machined from
more than one side, you must define the pallet PAL with
the corresponding fixture levels FIX.
Use the screen layout button to switch between table
view and form view.
Graphic support for form entry is not yet available.

The various levels of the entry form can be reached with the
appropriate soft keys. The current level is highlighted in the status line
of the entry form. When you switch to table view with the screen
layout button, the cursor is placed in the same level as it was in the
form view.

142 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.14 Pallet Operation with Tool-Oriented Machining
Setting up the pallet plane
„ Pallet Id: The pallet name is displayed
„ Method: You can choose between the WORKPIECE ORIENTED and
TOOL ORIENTED machining methods. The selected method is
assumed for the workpiece level and overwrites any existing
entries. In tabular view, WORKPIECE ORIENTED appears as WPO,
and TOOL ORIENTED appears as TO.

The TO-/WP-ORIENTED entry cannot be made via soft


key. It only appears when different machining methods
were chosen for the workpieces in the workpiece or
machining level.
If the machining method was determined in the fixture
level, the entries are transferred to the workpiece level,
where they overwrite any existing entries.

„ Status: The soft key BLANK identifies the pallet and the
corresponding fixtures and workpieces as not yet having been
machined, and enters BLANK in the Status field. Use the soft key
EMPTY POSITION if you want to skip the pallet during machining.
EMPTY appears in the Status field.

Setting up details in the pallet level


„ Pallet ID: Enter the pallet name.
„ Datum: Enter the pallet datum.
„ Datum table: Enter the name and path of the datum table of the
workpiece. The data is transferred to the fixture and workpiece
levels.
„ Safe height: (optional): Safe position for the individual axes
referenced to the pallet. The positions entered are only approached
if these values were read and correspondingly programmed in the
NC macros.

HEIDENHAIN iTNC 530 143


4.14 Pallet Operation with Tool-Oriented Machining Setting up the fixture level
„ Fixture: The number of the fixture is displayed. The number of
fixtures within this level is shown after the slash.
„ Method: You can choose between the WORKPIECE ORIENTED and
TOOL ORIENTED machining methods. The selected method is
assumed for the workpiece level and overwrites any existing
entries. In tabular view, WORKPIECE ORIENTED appears as WPO,
and TOOL ORIENTED appears as TO.
Use the CONNECT/SEPARATE soft key to mark fixtures that are to be
included for calculating the machining process for tool-oriented
machining. Connected fixtures are marked with a dashed line,
whereas separated fixtures are connected with a solid line.
Connected workpieces are marked in tabular view with the entry
CTO in the METHOD column.

The TO-/WP-ORIENTED entry cannot be made via soft


key. It only appears when different machining methods
were chosen for the workpieces in the workpiece level.
If the machining method was determined in the fixture
level, the entries are transferred to the workpiece level,
where they overwrite any existing entries.

„ Status: The soft key BLANK identifies the fixture and the
corresponding workpieces as not yet having been machined, and
enters BLANK in the Status field. Use the soft key EMPTY POSITION
if you want to skip the fixture during machining. EMPTY appears in the
Status field.

Setting up details in the fixture level


„ Fixture: The number of the fixture is displayed. The number of
fixtures within this level is shown after the slash.
„ Datum: Enter the fixture datum.
„ Datum table: Enter the name and path of the datum table valid for
machining the workpiece. The data is transferred to the workpiece
level.
„ NC macro: In tool-oriented machining, the macro TCTOOLMODE is
carried out instead of the normal tool-change macro.
„ Safe height: (optional): Safe position for the individual axes
referenced to the fixture.

Safety positions can be entered for the axes. These


positions can be read with SYSREAD FN18 ID510 NR 6
from NC macros. SYSREAD FN18 ID510 NR 5 can be
used to determine if a value was programmed in the
column. The positions entered are only approached if
these values are read and correspondingly programmed in
the NC macros.

144 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


4.14 Pallet Operation with Tool-Oriented Machining
Setting up the workpiece level
„ Workpiece: The number of the workpiece is displayed. The number
of workpieces within this fixture level is shown after the slash.
„ Method: You can choose between the WORKPIECE ORIENTED and
TOOL ORIENTED machining methods. In tabular view,
WORKPIECE ORIENTED appears as WPO, and TOOL ORIENTED
appears as TO.
Use the CONNECT/SEPARATE soft key to mark workpieces that are to
be included for calculating the machining process for tool-oriented
machining. Connected workpieces are marked with a dashed line,
whereas separated workpieces are connected with a solid line.
Connected workpieces are marked in tabular view with the entry
CTO in the METHOD column.
„ Status: The soft key BLANK identifies the workpiece as not yet
having been machined, and enters BLANK in the Status field. Use
the soft key EMPTY POSITION if you want to skip the workpiece during
machining. EMPTY appears in the Status field.

Enter the method and status in the pallet or fixture level.


Then the entry will be assumed for all corresponding
workpieces.
For several workpiece variants within one level, the
workpieces of one variant should be entered together.
This way, the workpieces of each variant can be marked
with the CONNECT/SEPARATE soft key, and can be
machined in groups.

Setting up details in the workpiece level


„ Workpiece: The number of the workpiece is displayed. The number
of workpieces within this fixture or pallet level is shown after the
slash.
„ Datum: Enter the workpiece datum.
„ Datum table: Enter the name and path of the datum table valid for
machining the workpiece. If you use the same datum table for all
workpieces, enter the name and path in the pallet or fixture levels.
The data is automatically transferred to the workpiece level.
„ NC program: Enter the path of the NC program that is necessary for
machining the workpiece.
„ Safe height: (optional): Safe position for the individual axes
referenced to the workpiece. The positions entered are only
approached if these values were read and correspondingly
programmed in the NC macros.

HEIDENHAIN iTNC 530 145


4.14 Pallet Operation with Tool-Oriented Machining
Sequence of tool-oriented machining

The TNC only carries out tool-oriented machining if the


TOOL ORIENTED method was selected, and TO or CTO is
entered in the table.

„ The entry TO or CTO in the Method field tells the TNC that the
oriented machining is valid beyond these lines.
„ The pallet management starts the NC program given in the line with
the entry TO.
„ The first workpiece is machined until the next tool call is pending.
Departure from the workpiece is coordinated by a special tool-
change macro.
„ The entry in the column W-STATE is changed from BLANK to
INCOMPLETE, and the TNC enters a hexadecimal value in the field
CTID.

The value entered in the field CTID is a unique identifier of


the machining progress for the TNC. If this value is deleted
or changed, machining cannot be continued, nor is mid-
program startup or resumption of machining possible.

„ All lines in the pallet file that contain the entry CTO in the Method
field are machined in the same manner as the first workpiece.
Workpieces in several fixtures can be machined.
„ The TNC uses the next tool for the following machining steps again
from the line with the entry TO if one of the following situations
applies:
„ If the entry PAL is in the PAL/PGM field in the next line.
„ If the entry TO or WPO is in the Method field in the next line.
„ If in the lines already machined there are entries under Method
which do not have the status EMPTY or ENDED.
„ The NC program is continued at the stored location based on the
value entered in the CTID field. Usually the tool is changed for the
first piece, but the TNC suppresses the tool change for the following
workpieces.
„ The entry in the CTID field is updated after every machining step. If
an END PGM or M02 is executed in an NC program, then an existing
entry is deleted and ENDED is entered in the Machining Status field.

146 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


„ If the entries TO or CTO for all workpieces within a group contain the

4.14 Pallet Operation with Tool-Oriented Machining


status ENDED, the next lines in the pallet file are run.

In mid-program startup, only one tool-oriented machining


operation is possible. Subsequent pieces are machined
according to the method entered.
The value entered in the CTID field is stored for a
maximum of 2 weeks. Within this time the machining
process can be continued at the stored location. After this
time the value is deleted, in order to prevent large
amounts of unnecessary data on the hard disk.
The operating mode can be changed after executing a
group of entries with TO or CTO.
The following functions are not permitted:
„ Switching the traverse range
„ PLC datum shift
„ M118

Leaving the pallet file


8 To call the file manager, press the PGM MGT soft key.
8 To select a different type of file, press the SELECT TYPE soft key
and the soft key for the desired file type, for example SHOW.H.
8 Select the desired file.

Executing the pallet file

In MP7683, set whether the pallet table is to be executed


blockwise or continuously (see “General User
Parameters” on page 610).

8 Select the file manager in the Program Run, Full Sequence or


Program Run, Single Block operating modes: Press the PGM MGT
key.
8 To display all type .P files, press the soft keys SELECT TYPE and
SHOW .P.
8 Select the pallet table with the arrow keys and confirm with ENT.
8 To execute the pallet table: Press the NC Start button. The TNC
executes the pallets as set in MP7683.

HEIDENHAIN iTNC 530 147


4.14 Pallet Operation with Tool-Oriented Machining Screen layout for executing pallet tables
You can have the TNC display the program contents and pallet file
contents on the screen together by selecting the screen layout PGM
+ PALLET. During execution, the TNC then shows program blocks to
the left and the pallet to the right. To check the program contents
before execution, proceed as follows:
8 Select a pallet table.
8 With the arrow keys, choose the program you would like to check.
8 Press the OPEN PGM soft key: The TNC displays the selected
program on the screen. You can now page through the program with
the arrow keys.
8 To return to the pallet table, press the END PGM soft key.

148 4 Fundamentals of NC, File Management, Programming Aids, Pallet Management


Programming: Tools
5.1 Entering Tool-Related Data
5.1 Entering Tool-Related Data
Feed rate F
The feed rate F is the speed (in millimeters per minute or inches per
minute) at which the tool center moves. The maximum feed rates can S
be different for each machine axis, and are set in machine parameters. Z
S
Input Y
You can enter the feed rate in the TOOL CALL block and in every F
positioning block (see “Creating the program blocks with the path X
function keys” on page 189).

Rapid traverse
If you wish to program rapid traverse, enter F MAX. To enter F MAX,
press the ENT key or the F MAX soft key when the dialog question
FEED RATE F = ? appears on the TNC screen.

To move your machine at rapid traverse, you can also


program the corresponding numerical value, e.g. F30000.
Unlike FMAX, this rapid traverse remains in effect not only
in the individual block but in all blocks until you program a
new feed rate.

Duration of effect
A feed rate entered as a numerical value remains in effect until a block
with a different feed rate is reached. F MAX is only effective in the block
in which it is programmed. After the block with F MAX is executed, the
feed rate will return to the last feed rate entered as a numerical value.

Changing during program run


You can adjust the feed rate during program run with the feed-rate
override knob.

150 5 Programming: Tools


5.1 Entering Tool-Related Data
Spindle speed S
The spindle speed S is entered in revolutions per minute (rpm) in a
TOOL CALL block.

Programmed change
In the part program, you can change the spindle speed in a TOOL
CALL block by entering the spindle speed only:
8 To program a tool call, press the TOOL CALL key.
8 Ignore the dialog question for Tool number ? with the
NO ENT key.
8 Ignore the dialog question for Working spindle axis
X/Y/Z ? with the NO ENT key.
8 Enter the new spindle speed for the dialog question
Spindle speed S= ?, and confirm with END.

Changing during program run


You can adjust the spindle speed during program run with the spindle-
speed override knob.

HEIDENHAIN iTNC 530 151


5.2 Tool Data
5.2 Tool Data

Requirements for tool compensation


You usually program the coordinates of path contours as they are
dimensioned in the workpiece drawing. To allow the TNC to calculate
the tool center path—i.e. the tool compensation—you must also enter
the length and radius of each tool you are using.
Tool data can be entered either directly in the part program with TOOL
DEF or separately in a tool table. In a tool table, you can also enter
additional data for the specific tool. The TNC will consider all the data
entered for the tool when executing the part program.

Tool numbers and tool names


Each tool is identified by a number between 0 and 254. If you are
working with tool tables, you can use higher numbers and you can also
enter a tool name for each tool. Tool names can have up to 32
characters.
The tool number 0 is automatically defined as the zero tool with the
length L=0 and the radius R=0. In tool tables, tool T0 should also be
defined with L=0 and R=0.

Tool length L
There are two ways to determine the tool length L:

Determining the difference between the length of the tool and Z


that of a zero tool L0
For the algebraic sign:
L>L0: The tool is longer than the zero tool L0
L<L0: The tool is shorter than the zero tool

To determine the length:


8 Move the zero tool to the reference position in the tool axis
(e.g. workpiece surface with Z=0).
8 Set the datum in the tool axis to 0 (datum setting). X
8 Insert the desired tool.
8 Move the tool to the same reference position as the zero tool.
8 The TNC displays the difference between the current tool and the
zero tool.
8 Enter the value in the TOOL DEF block or in the tool table by
pressing the actual-position-capture key.

Determining the length L with a tool presetter


Enter the determined value directly in the TOOL DEF tool definition
block or in the tool table without further calculations.

152 5 Programming: Tools


5.2 Tool Data
Tool radius R
You can enter the tool radius R directly.

Delta values for lengths and radii


Delta values are offsets in the length and radius of a tool.
A positive delta value describes a tool oversize (DL, DR, DR2>0). If you
are programming the machining data with an allowance, enter the
R R
oversize value in the TOOL CALL block of the part program.
A negative delta value describes a tool undersize (DL, DR, DR2<0). An
undersize is entered in the tool table for wear.
L DR<0
Delta values are usually entered as numerical values. In a TOOL CALL
block, you can also assign the values to Q parameters.
DR>0
Input range: You can enter a delta value with up to ± 99.999 mm.
DL<0
Delta values from the tool table influence the graphical
representation of the tool. The representation of the DL>0
workpiece remains the same in the simulation.
Delta values from the TOOL CALL block change the
represented size of the workpiece during the simulation.
The simulated tool size remains the same.

Entering tool data into the program


The number, length and radius of a specific tool is defined in the TOOL
DEF block of the part program.
8 To select tool definition, press the TOOL DEF key.
8 Tool number: Each tool is uniquely identified by its tool
number.
8 Tool length: Compensation value for the tool length
8 Tool radius Compensation value for the tool radius

In the programming dialog, you can transfer the value for


tool length and tool radius directly into the input line by
pressing the desired axis soft key.

Example
4 TOOL DEF 5 L+10 R+5

HEIDENHAIN iTNC 530 153


5.2 Tool Data
Entering tool data in tables
You can define and store up to 30000 tools and their tool data in a tool
table. In Machine Parameter 7260, you can define how many tools are
to be stored by the TNC when a new table is set up. Also see the
Editing Functions later in this Chapter. In order to be able to assign
various compensation data to a tool (indexing the tool number),
MP7262 must not be equal to 0.
You must use tool tables if
„ you wish to use indexed tools such as stepped drills with more than
one length compensation value (page 159),
„ your machine tool has an automatic tool changer,
„ you want to measure tools automatically with the TT 130 touch
probe (see the Touch Probe Cycles User’s Manual, Chapter 4),
„ you want to rough-mill the contour with Cycle 22 (see “ROUGH-
OUT (Cycle 22)” on page 380),
„ you want to rough-mill the contour with Cycle 22 (see
“RECTANGULAR POCKET (Cycle 251)” on page 328)
„ you want to work with automatic cutting data calculations.

Tool table: Standard tool data


Abbr. Input Dialog
T Number by which the tool is called in the program –
(e.g. 5, indexed: 5.2)

NAME Name by which the tool is called in the program Tool name?

L Value for tool length compensation L Tool length?

R Compensation value for the tool radius R Tool radius R?

R2 Tool radius R2 for toroid cutters (only for 3-D radius compensation Tool radius R2?
or graphical representation of a machining operation with
spherical or toroid cutters)

DL Delta value for tool length L Tool length oversize?

DR Delta value for tool radius R Tool radius oversize?

DR2 Delta value for tool radius R2 Tool radius oversize R2?

LCUTS Tooth length of the tool for Cycle 22 Tooth length in the tool axis?

ANGLE Maximum plunge angle of the tool for reciprocating plunge-cut in Maximum plunge angle?
Cycles 22 and 208

TL Set tool lock (TL: Tool Locked) Tool locked?


Yes = ENT / No = NO ENT

RT Number of a replacement tool, if available (see also TIME2) Replacement tool?

TIME1 Maximum tool life in minutes. This function can vary depending Maximum tool age?
on the individual machine tool. Your machine manual provides
more information on TIME1.

154 5 Programming: Tools


5.2 Tool Data
Abbr. Input Dialog
TIME2 Maximum tool life in minutes during TOOL CALL: If the current tool Maximum tool age for TOOL CALL?
age exceeds this value, the TNC changes the tool during the next
TOOL CALL (see also CUR.TIME).

CUR.TIME Current age of the tool in minutes: The TNC automatically counts Current tool life?
the current tool life (CUR.TIME). A starting value can be entered for
used tools.

DOC Comment on tool (up to 16 characters) Tool description?

PLC Information on this tool that is to be sent to the PLC PLC status?

PLC VAL Value of this tool that is to be sent to the PLC PLC value?

PTYP Tool type for evaluation in the pocket table Tool type for pocket table?

NMAX Limits the spindle speed for this tool. The programmed value is Maximum speed [rpm]?
monitored (error message) as well as a shaft speed increase via
the potentiometer. Function inactive: Enter –

LIFTOFF Definition of whether the TNC should retract the tool in the Retract tool Y/N ?
direction of the positive tool axis at an NC stop in order to avoid
leaving dwell marks on the contour. If Y is defined, the TNC
retracts the tool from the contour by 0.1 mm, provided that this
function was activated in the NC program with M148(see
“Automatically retract tool from the contour at an NC stop:
M148” on page 256).

HEIDENHAIN iTNC 530 155


5.2 Tool Data Tool table: Tool data required for automatic tool measurement

For a description of the cycles governing automatic tool


measurement, see the Touch Probe Cycles Manual,
Chapter 4.

Abbr. Input Dialog


CUT Number of teeth (20 teeth maximum) Number of teeth?

LTOL Permissible deviation from tool length L for wear detection. If the Wear tolerance: length?
entered value is exceeded, the TNC locks the tool (statusL). Input
range: 0 to 0.9999 mm

RTOL Permissible deviation from tool radius R for wear detection. If the Wear tolerance: radius?
entered value is exceeded, the TNC locks the tool (statusL). Input
range: 0 to 0.9999 mm

DIRECT. Cutting direction of the tool for measuring the tool during rotation Cutting direction (M3 = –)?

TT:R-OFFS For tool length measurement: tool offset between stylus center Tool offset: radius?
and tool center. Preset value: Tool radius R (NO ENT means R).

TT:L-OFFS Tool radius measurement: tool offset in addition to MP6530 Tool offset: length?
between upper surface of stylus and lower surface of tool.
Default: 0

LBREAK Permissible deviation from tool length L for breakage detection. If Breakage tolerance: length?
the entered value is exceeded, the TNC locks the tool (statusL).
Input range: 0 to 0.9999 mm

RBREAK Permissible deviation from tool radius R for breakage detection. If Breakage tolerance: radius?
the entered value is exceeded, the TNC locks the tool (status L).
Input range: 0 to 0.9999 mm

Tool table: Tool data for automatic speed/feed rate calculation.


Abbr. Input Dialog
TYPE Tool type (MILL for milling, DRILL for drilling or boring, TAP for Tool type?
tapping): Press the SELECT TYPE soft key (3rd soft-key row): The
TNC superimposes a window where you can select the type of
tool you want.

TMAT Tool material: Press the SELECT MATERIAL soft key (3rd soft-key Tool material?
row): The TNC superimposes a window where you can select the
type of material you want.

CDT Cutting data table: Press the SELECT CDT soft key (3rd soft-key Name of cutting data table?
row): The TNC superimposes a window where you can select a
cutting data table.

156 5 Programming: Tools


5.2 Tool Data
Tool table: Tool data for 3-D touch trigger probe (only when bit 1
is set in MP7411 = 1, also see the Touch Probe Cycles Manual)
Abbr. Input Dialog
CAL-OF1 During calibration, the TNC stores in this column the center Center misalignmt. in ref. axis?
misalignment in the reference axis of the 3-D probe, if a tool
number is indicated in the calibration menu.

CAL-OF2 During calibration, the TNC stores in this column the center Center misalignment minor axis?
misalignment in the minor axis of the 3-D probe, if a tool number
is indicated in the calibration menu.

CAL-ANG During calibration, the TNC stores in this column the spindle angle Spindle angle for calibration?
at which the 3-D probe was calibrated, if a tool number is
indicated in the calibration menu.

HEIDENHAIN iTNC 530 157


5.2 Tool Data Editing tool tables
The tool table that is active during execution of the part program is
designated as TOOL.T. TOOL.T must be saved in the directory TNC:\
and can only be edited in one of the machine operating modes. Other
tool tables that are used for archiving or test runs are given different
file names with the extension “.T”.
To open the tool table TOOL.T:
8 Select any machine operating mode.
8 To select the tool table, press the TOOL TABLE soft
key.
8 Set the EDIT soft key to ON.

To open any other tool table


8 Select the Programming and Editing mode of operation.
8 Call the file manager.

8 To select the file type, press the SELECT TYPE soft


key.
8 To show type .T files, press the SHOW .T soft key.
8 Select a file or enter a new file name. Conclude your
entry with the ENT key or the SELECT soft key.
When you have opened the tool table, you can edit the tool data by
moving the cursor to the desired position in the table with the arrow
keys or the soft keys. You can overwrite the stored values, or enter
new values at any position. The available editing functions are
illustrated in the table below.
If the TNC cannot show all positions in the tool table in one screen
page, the highlight bar at the top of the table will display the symbol
“>>” or “<<”.

Editing functions for tool tables Soft key


Select beginning of table

Select end of table

Select previous page in table

Select next page in table

Look for the tool name in the table

Show tool information in columns or show all


information on one tool on one screen page

158 5 Programming: Tools


5.2 Tool Data
Editing functions for tool tables Soft key
Move to beginning of line

Move to end of line

Copy highlighted field

Insert copied field

Add the entered number of lines (tools) at the


end of the table.

Insert a line for the indexed tool number after the


active line. The function is only active if you are
permitted to store multiple compensation data
for a tool (MP7262 not equal to 0). The TNC
inserts a copy of the tool data after the last
available index and increases the index by 1.
Application: e.g. stepped drill with more than one
length compensation value.

Delete current line (tool).

Display / Do not display pocket numbers.

Display all tools / only those tools that are stored


in the pocket table.

Leaving the tool table


8 Call the file manager and select a file of a different type, such as a
part program.

Additional notes on tool tables


MP7266.x defines which data can be entered in the tool table and in
which sequence the data is displayed.

You can overwrite individual columns or lines of a tool


table with the contents of another file. Prerequisites:
„ The target file must exist.
„ The file to be copied must contain only the columns (or
lines) you want to replace.
To copy individual columns or lines, press the REPLACE
FIELDS soft key (see “Copying a single file” on page 101).

HEIDENHAIN iTNC 530 159


5.2 Tool Data
Using an external PC to overwrite individual tool
data
The HEIDENHAIN data transfer software TNCremoNT provides an
especially convenient way to use an external PC to overwrite tool data
(see “Software for data transfer” on page 583). This applies when you
measure tool data on an external tool presetter and then want to
transfer the data to the TNC. Follow this procedure:
8 Copy the tool table TOOL.T to the TNC, for example to TST.T
8 Start the data transfer software TNCremoNT on the PC
8 Establish a connection with the TNC
8 Transfer the copied tool table TST.T to the PC
8 Use any text editor to reduce TST.T to the lines and columns to be
changed (see figure at upper right). Make sure that the header is not
changed and the data is always flush in the column. The tool
numbers (column T) need not be consecutive
8 In TNCremoNT, select the menu item <Extras> and <TNCcmd>:
This starts TNCcmd
8 To transfer TST.T to the TNC, enter the following command and
confirm with the return key (see figure at center right):
put tst.t tool.t /m

During transfer, only the tool data defined in the subfile


(e.g. TST.T) is overwritten. All other tool data of the table
TOOL.T remains unchanged.

160 5 Programming: Tools


5.2 Tool Data
Pocket table for tool changer

The machine tool builder adapts the functional range of


the pocket table to the requirements of your machine. The
machine tool manual provides further information.

For automatic tool changing you need the pocket table TOOL_P.TCH.
The TNC can manage several pocket tables with any file names. To
activate a specific pocket table for program run you must select it in
the file management of a Program Run mode of operation (status M).
In order to be able to manage various magazines in a tool-pocket table
(indexing the pocket number), Machine Parameters 7261.0 to 7261.3
must not be equal to 0.

Editing a pocket table in a Program Run operating mode


8 To select the tool table, press the TOOL TABLE soft
key.
8 To select the pocket table, press the POCKET TABLE
soft key.
8 Set the EDIT soft key to ON.

HEIDENHAIN iTNC 530 161


5.2 Tool Data Selecting a pocket table in the Programming and
Editing operating mode
8 Call the file manager.

8 To select the file type, press the SELECT TYPE soft


key.
8 To show files of the type .TCH, press the soft key TCH
FILES (second soft-key row).
8 Select a file or enter a new file name. Conclude your
entry with the ENT key or the SELECT soft key.

Abbr. Input Dialog


P Pocket number of the tool in the tool magazine –

T Tool number Tool number?

ST Special tool with a large radius requiring several pockets in the tool Special tool?
magazine. If your special tool takes up pockets in front of and behind its
actual pocket, these additional pockets need to be locked in column L
(status L).

F Fixed tool number. The tool is always returned to the same pocket in the tool Fixed pocket?
magazine Yes = ENT / No = NO ENT

L Locked pocket (see also column ST) Pocket locked Yes = ENT
/ No = NO ENT

PLC Information on this tool pocket that is to be sent to the PLC PLC status?

TNAME Display of the tool name from TOOL.T –

DOC Display of the comment to the tool from TOOL.T –

PTYP Tool type. Function is defined by the machine tool builder. The machine tool Tool type for pocket
documentation provides further information. table?

P1 ... P5 Function is defined by the machine tool builder. The machine tool Value?
documentation provides further information.

RSV Pocket reservation for box magazines Pocket reserv.: Yes = ENT
/ No = NOENT

LOCKED_ABOVE Box magazine: Lock the pocket above Lock the pocket above?

LOCKED_BELOW Box magazine: Lock the pocket below Lock the pocket below?

LOCKED_LEFT Box magazine: Lock the pocket at left Lock the pocket at left?

LOCKED_RIGHT Box magazine: Lock the pocket at right Lock the pocket at right?

162 5 Programming: Tools


5.2 Tool Data
Editing functions for pocket tables Soft key
Select beginning of table

Select end of table

Select previous page in table

Select next page in table

Reset pocket table

Go to beginning of next line

Reset tool number column T

HEIDENHAIN iTNC 530 163


5.2 Tool Data
Calling tool data
A TOOL CALL block in the part program is defined with the following
data:
8 Select the tool call function with the TOOL CALL key.
8 Tool number: Enter the number or name of the tool.
The tool must already be defined in a TOOL DEF block
or in the tool table. The TNC automatically places the
tool name in quotation marks. The tool name always
refers to the entry in the active tool table TOOL.T. If
you wish to call a tool with other compensation
values, also enter the index you defined in the tool
table after the decimal point.
8 Working spindle axis X/Y/Z: Enter the tool axis.
8 Spindle speed S: Enter the spindle speed directly or
allow the TNC to calculate the spindle speed if you are
working with cutting data tables. Press the
S CALCULATE AUTOMAT. soft key. The TNC limits
the spindle speed to the maximum value set in
MP3515.
8 Feed rate F: Enter the feed rate directly or allow the
TNC to calculate the feed rate if you are working with
cutting data tables. Press the F CALCULATE
AUTOMAT. soft key. The TNC limits the feed rate to
the maximum feed rate of the slowest axis (set in
MP1010). F is effective until you program a new feed
rate in a positioning or TOOL CALL block.
8 Tool length oversize DL: Enter the delta value for
the tool length.
8 Tool radius oversize DR: Enter the delta value for
the tool radius.
8 Tool radius oversize DR2: Enter the delta value for
the tool radius 2.

Example: Tool call


Call tool number 5 in the tool axis Z with a spindle speed of 2500 rpm
and a feed rate of 350 mm/min. The tool length is to be programmed
with an oversize of 0.2 mm, the tool radius 2 with an oversize of
0.05 mm, and the tool radius with an undersize of 1 mm.

20 TOOL CALL 5.2 Z S2500 F350 DL+0.2 DR-1 DR2+0.05

The character D preceding L and R designates delta values.

Tool preselection with tool tables


If you are working with tool tables, use TOOL DEF to preselect the next
tool. Simply enter the tool number or a corresponding Q parameter, or
type the tool name in quotation marks.

164 5 Programming: Tools


5.2 Tool Data
Tool change

The tool change function can vary depending on the


individual machine tool. The machine tool manual
provides further information.

Tool change position


The tool change position must be approachable without collision. With
the miscellaneous functions M91 and M92, you can enter machine-
referenced (rather than workpiece-referenced) coordinates for the tool
change position. If TOOL CALL 0 is programmed before the first tool
call, the TNC moves the tool spindle in the tool axis to a position that
is independent of the tool length.

Manual tool change


To change the tool manually, stop the spindle and move the tool to the
tool change position:
8 Move to the tool change position under program control.
8 Interrupt program run (see “Interrupting machining” on page 566).
8 Change the tool.
8 Resume program run (see “Resuming program run after an
interruption” on page 568).

HEIDENHAIN iTNC 530 165


5.2 Tool Data Automatic tool change
If your machine tool has automatic tool changing capability, the
program run is not interrupted. When the TNC reaches a TOOL CALL, it
replaces the inserted tool by another from the tool magazine.

Automatic tool change if the tool life expires: M101

The function of M101 can vary depending on the individual


machine tool. The machine tool manual provides further
information.

The TNC automatically changes the tool if the tool life TIME2 expires
during program run. To use this miscellaneous function, activate M101
at the beginning of the program. M101 is reset with M102.
The tool is changed automatically
„ after the net NC block after expiration of the tool life, or
„ at latest one minute after tool life expires (calculation is for a
potentiometer setting of 100%)

If the tool life ends during an active M120 (look ahead),


the TNC waits to change the tool until after the block in
which you canceled the radius compensation with an R0
block.
The TNC automatically changes the tool even if a fixed
cycle is being run.
The TNC does not automatically change the tool as long
as a tool change program is running.

Prerequisites for standard NC blocks with radius compensation


R0, RR, RL
The radius of the replacement tool must be the same as that of the
original tool. If the radii are not equal, the TNC displays an error
message and does not replace the tool.

Prerequisites for NC blocks with surface-normal vectors and 3-D


compensation
See “Three-Dimensional Tool Compensation (Software Option 2),”
page 171The radius of the replacement tool can differ from the radius
of the original tool. The tool radius is not included in program blocks
transmitted from CAD systems. You can enter the delta value (DR)
either in the tool table or in the TOOL CALL block.
If DR is greater than zero, the TNC displays an error message and does
not replace the tool. You can suppress this message with the M
function M107, and reactivate it with M108.

166 5 Programming: Tools


5.3 Tool Compensation

5.3 Tool Compensation


Introduction
The TNC adjusts the spindle path in the tool axis by the compensation
value for the tool length. In the working plane, it compensates the tool
radius.
If you are writing the part program directly on the TNC, the tool radius
compensation is effective only in the working plane. The TNC
accounts for the compensation value in up to five axes including the
rotary axes.

If a part program generated by a CAD system contains


surface-normal vectors, the TNC can perform three-
dimensional tool compensation (see “Three-Dimensional
Tool Compensation (Software Option 2)” on page 171).

Tool length compensation


Length compensation becomes effective automatically as soon as a
tool is called and the tool axis moves. To cancel length compensation,
call a tool with the length L=0.

If you cancel a positive length compensation with TOOL


CALL 0, the distance between tool and workpiece will be
reduced.
After TOOL CALL, the path of the tool in the tool axis, as
entered in the part program, is adjusted by the difference
between the length of the previous tool and that of the
new one.

For tool length compensation, the TNC takes the delta values from
both the TOOL CALL block and the tool table into account:
Compensation value = L + DLTOOL CALL + DLTAB where

L: is the tool length L from the TOOL DEF block or tool


table.
DL TOOL CALL is the oversize for length DL in the TOOL CALL block
(not taken into account by the position display).
DL TAB is the oversize for length DL in the tool table.

HEIDENHAIN iTNC 530 167


5.3 Tool Compensation
Tool radius compensation
The NC block for programming a tool movement contains:
„ RL or RR for radius compensation. RL
R0
„ R+ or R– for radius compensation in single-axis movements.
„ R0 if there is no radius compensation.
Radius compensation becomes effective as soon as a tool is called
and is moved with a straight line block in the working plane with RL or
RR. R

The TNC automatically cancels radius compensation if


you: R

„ program a straight line block with R0


„ depart the contour with the DEP function
„ program a PGM CALL
„ select a new program with PGM MGT.

For tool radius compensation, the TNC takes the delta values from
both the TOOL CALL block and the tool table into account:
Compensation value = R + DRTOOL CALL + DRTAB where
R is the tool radius R from the TOOL DEF block or tool
table.
DR TOOL CALL is the oversize for radius DR in the TOOL CALL block
(not taken into account by the position display).
DR TAB is the oversize for radius DR in the tool table.

Contouring without radius compensation: R0


The tool center moves in the working plane along the programmed
path or to the programmed coordinates.
Applications: Drilling and boring, pre-positioning. Z
Y

X
Y

168 5 Programming: Tools


5.3 Tool Compensation
Tool movements with radius compensation: RR and RL
RR The tool moves to the right of the programmed contour
RL The tool moves to the left of the programmed contour
Y
The tool center moves along the contour at a distance equal to the
radius. “Right” or “left” are to be understood as based on the
direction of tool movement along the workpiece contour. See figures
at right.

Between two program blocks with different radius


compensations (RR and RL) you must program at least one RL
traversing block in the working plane without radius
compensation (that is, with R0).
Radius compensation does not take effect until the end of
the block in which it is first programmed.
X
You can also activate the radius compensation for
secondary axes in the working plane. Program the
secondary axes too in each following block, since
otherwise the TNC will execute the radius compensation
in the principal axis again.
Y
Whenever radius compensation is activated with RR/RL or
canceled with R0, the TNC positions the tool
perpendicular to the programmed starting or end position.
Position the tool at a sufficient distance from the first or
last contour point to prevent the possibility of damaging
the contour.
RR
Entering radius compensation

Program any desired path function, enter the coordinates of the target
point and confirm your entry with ENT.
X
RADIUS COMP.: RL/RR/NO COMP.?

To select tool movement to the left of the contour,


press the RL soft key, or

To select tool movement to the right of the contour,


press the RR soft key, or

To select tool movement without radius


compensation or to cancel radius compensation,
press the ENT key.

To terminate the block, press the END key.

HEIDENHAIN iTNC 530 169


5.3 Tool Compensation Radius compensation: Machining corners
„ Outside corners
If you program radius compensation, the TNC moves the tool
around outside corners either on a transitional arc or on a spline
(selectable via MP7680). If necessary, the TNC reduces the feed
rate at outside corners to reduce machine stress, for example at
very great changes of direction.
„ Inside corners
The TNC calculates the intersection of the tool center paths at inside
RL
corners under radius compensation. From this point it then starts
the next contour element. This prevents damage to the workpiece.
The permissible tool radius, therefore, is limited by the geometry of
the programmed contour.

To prevent the tool from damaging the contour, be careful


not to program the starting or end position for machining
inside corners at a corner of the contour.

Machining corners without radius compensation


If you program the tool movement without radius compensation, you
can change the tool path and feed rate at workpiece corners with the
miscellaneous function M90. See “Smoothing corners: M90,” page
243.

RL RL

170 5 Programming: Tools


5.4 Three-Dimensional Tool

5.4 Three-Dimensional Tool Compensation (Software Option 2)


Compensation (Software
Option 2)
Introduction
The TNC can carry out a three-dimensional tool compensation (3-D
compensation) for straight-line blocks. Apart from the X, Y and Z
coordinates of the straight-line end point, these blocks must also Z
contain the components NX, NY and NZ of the surface-normal vector
(see figure above right and explanation further down on this page). Y
If, in addition, you want to carry out a tool orientation or a three-
dimensional radius compensation, these blocks also need a X
normalized vector with the components TX, TY and TZ, which
determines the tool orientation (see figure at center right).
The straight-line end point, the components for the surface-normal
vector as well as those for the tool orientation must be calculated by PT
a CAD system. P NZ
NX
NY
Application possibilities
„ Use of tools with dimensions that do not correspond with the
dimensions calculated by the CAD system (3-D compensation
without definition of the tool orientation)
„ Face milling: compensation of the milling machine geometry in the
direction of the surface-normal vector (3-D compensation with and
without definition of the tool orientation). Cutting is usually with the
end face of the tool
„ Peripheral milling: compensation of the mill radius perpendicular to
the direction of movement and perpendicular to the tool direction (3-
D radius compensation with definition of the tool orientation).
Cutting is usually with the lateral surface of the tool

HEIDENHAIN iTNC 530 171


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Definition of a normalized vector
A normalized vector is a mathematical quantity with a value of 1 and a
direction. The TNC requires up to two normalized vectors for LN
blocks, one to determine the direction of the surface-normal vector,
and another (optional) to determine the tool orientation direction. The
direction of a surface-normal vector is determined by the components R R R
NX, NY and NZ. With an end mill and a radius mill, this direction is
perpendicular from the workpiece surface to be machined to the tool
datum PT, and with a toroid cutter through PT’ or PT (see figure at
upper right). The direction of the tool orientation is determined by the
components TX, TY and TZ.

PT PT'
The coordinates for the X, Y, Z positions and the surface- PT
normal components NX, NY, NZ, as well as TX, TY, TZ 2 2
R R
PT
must be in the same sequence in the NC block.
Always indicate all of the coordinates and all of the
surface-normal vectors in an LN block, even if the values
have not changed from the previous block.
TX, TY and TZ must always be defined with numerical
values. You cannot use Q parameters.
3-D compensation with surface-normal vectors is only
effective for coordinates in the main axes X, Y, Z.
If you insert a tool with oversize (positive delta value), the
TNC outputs an error message. You can suppress the
error message with the M function M107 (see
“Prerequisites for NC blocks with surface-normal vectors
and 3-D compensation” on page 166).
The TNC will not display an error message if an entered PT
tool oversize would cause damage to the contour.
MP 7680 defines whether the CAD system has calculated PSP
the tool length compensation from the center of sphere PT
or the south pole of the sphere PSP (see figure at right).

Permissible tool forms


You can describe the permissible tool shapes in the tool table via tool
radius R and R2 (see figure at upper right):
„ Tool radius R: Distance from the tool center to the tool
circumference.
„ Tool radius 2 R2: Radius of the curvature between tool tip and tool
circumference.
The ratio of R to R2 determines the shape of the tool:
„ R2 = 0: End mill
„ R2 = R: Ball-nose cutter
„ 0 < R2 < R: Toroid cutter
These data also specify the coordinates of the tool datum PT.

172 5 Programming: Tools


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Using other tools: Delta values
If you want to use tools that have different dimensions than the ones
you originally programmed, you can enter the difference between the
tool lengths and radii as delta values in the tool table or TOOL CALL:
„ Positive delta value DL, DR, DR2: The tool is larger than the original
tool (oversize). R
„ Negative delta value DL, DR, DR2: The tool is smaller than the
original tool (undersize).
L
The TNC then compensates the tool position by the sum of the delta
values from the tool table and the tool call.
R2
3-D compensation without tool orientation DR2>0
DL>0
The TNC displaces the tool in the direction of the surface-normal
vectors by the sum of the delta values (tool table and TOOL CALL).

Example: Block format with surface-normal vectors


1 LN X+31.737 Y+21.954 Z+33.165
NX+0.2637581 NY+0.0078922 NZ-0.8764339 F1000 M3

LN: Straight line with 3-D compensation


X, Y, Z: Compensated coordinates of the straight-line end point
NX, NY, NZ: Components of the surface-normal vector
F: Feed rate
M: Miscellaneous function
The feed rate F and miscellaneous function M can be entered and
changed in the Programming and Editing mode of operation.
The coordinates of the straight-line end point and the components of
the surface-normal vectors are to be defined by the CAD system.

HEIDENHAIN iTNC 530 173


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Face Milling: 3-D compensation with and
without tool orientation
The TNC displaces the tool in the direction of the surface-normal
vectors by the sum of the delta values (tool table and TOOL CALL).
If M128 (see “Maintaining the position of the tool tip when positioning
with tilted axes (TCPM): M128 (software option 2)” on page 261) is
active, the TNC maintains the tool perpendicular to the workpiece
contour if no tool orientation is programmed in the LN block.
If there is a tool orientation defined in the LN block, then the TNC will
position the rotary axes automatically so that the tool can reach the
defined orientation.

This function is possible only on machines for which you


can define spatial angles for the tilting axis configuration.
Refer to your machine manual.
The TNC is not able to automatically position the rotary
axes on all machines. Refer to your machine manual.

Danger of collision!
On machines whose rotary axes only allow limited
traverse, sometimes automatic positioning can require
the table to be rotated by 180°. In this case, make sure
that the tool head does not collide with the workpiece or
the clamps.

Example: Block format with surface-normal vectors without tool


orientation
LN X+31.737 Y+21.954 Z+33.165
NX+0.2637581 NY+0.0078922 NZ–0.8764339 F1000 M128

174 5 Programming: Tools


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Example: Block format with surface-normal vectors and tool
orientation
LN X+31.737 Y+21.954 Z+33.165
NX+0.2637581 NY+0.0078922 NZ0.8764339
TX+0.0078922 TY–0.8764339 TZ+0.2590319 F1000 M128

LN: Straight line with 3-D compensation


X, Y, Z: Compensated coordinates of the straight-line end point
NX, NY, NZ: Components of the surface-normal vector
TX, TY, TZ: Components of the normalized vector for workpiece
orientation
F: Feed rate
M: Miscellaneous function
The feed rate F and miscellaneous function M can be entered and
changed in the Programming and Editing mode of operation.
The coordinates of the straight-line end point and the components of
the surface-normal vectors are to be defined by the CAD system.

HEIDENHAIN iTNC 530 175


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Peripheral Milling: 3-D radius compensation
with workpiece orientation
The TNC displaces the tool perpendicular to the direction of
movement and perpendicular to the tool direction by the sum of the
delta values DR (tool table and TOOL CALL). Determine the
compensation direction with radius compensation RL/RR (see figure at
upper right, traverse direction Y+). For the TNC to be able to reach the
set tool orientation, you need to activate the function M128 (see
“Maintaining the position of the tool tip when positioning with tilted
axes (TCPM): M128 (software option 2)” on page 261). The TNC then
positions the rotary axes automatically so that the tool can reach the
defined orientation with the active compensation.

This function is possible only on machines for which you


can define spatial angles for the tilting axis configuration.
Refer to your machine manual.
The TNC is not able to automatically position the rotary
axes on all machines. Refer to your machine manual.

Danger of collision!
On machines whose rotary axes only allow limited
traverse, sometimes automatic positioning can require
the table to be rotated by 180°. In this case, make sure
that the tool head does not collide with the workpiece or
the clamps.

There are two ways to define the tool orientation:


„ In an LN block with the components TX, TY and TZ
„ In an L block by indicating the coordinates of the rotary axes

Example: Block format with tool orientation


1 LN X+31.737 Y+21.954 Z+33.165
TX+0.0078922 TY0.8764339 TZ+0.2590319 F1000 M128

LN: Straight line with 3-D compensation


X, Y, Z: Compensated coordinates of the straight-line end point
TX, TY, TZ: Components of the normalized vector for workpiece
orientation
F: Feed rate
M: Miscellaneous function

176 5 Programming: Tools


5.4 Three-Dimensional Tool Compensation (Software Option 2)
Example: Block format with rotary axes
1 L X+31.737 Y+21.954 Z+33.165
RL B+12.357 C+5.896 F1000 M128

L: Straight line
X, Y, Z: Compensated coordinates of the straight-line end point
L: Straight line
B, C: Coordinates of the rotary axes for tool orientation
RL: Radius compensation
M: Miscellaneous function

HEIDENHAIN iTNC 530 177


5.5 Working with Cutting Data
5.5 Working with Cutting Data Tables
Tables
Note

The TNC must be specially prepared by the machine tool


builder for the use of cutting data tables.
Some functions or additional functions described here
may not be provided on your machine tool. Refer to your
machine manual.

DATEI: TOOL.T MM
T R CUT. TYP TMAT CDT
Applications 0
1
...
...
...
...
...
...
...
...
...
...
2 +5 4 MILL HSS PRO1
3 ... ... ... ... ...
In cutting data tables containing various workpiece and cutting 4 ... ... ... ... ...
material combinations, the TNC can use the cutting speed VC and the
tooth feed fZ to calculate the spindle speed S and the feed rate F. This
DATEI: PRO1.CDT
calculation is only possible if you defined the workpiece material in the NR WMAT TMAT Vc1 F1
program and various tool-specific features in the tool table. 0 ... ... ... ...
1 ... ... ... ...
2 ST65 HSS 40 0.06
3 ... ... ... ...
Before you let the TNC automatically calculate the cutting 4 ... ... ... ...
data, the tool table from which the TNC is to take the tool-
specific data must be first be activated in the Test Run
mode (status S). 0 BEGIN PGM xxx.H MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 Z X+100 Y+100 Z+0
3 WMAT "ST65"
4 ...
Editing function for cutting data tables Soft key 5 TOOL CALL 2 Z S1273 F305

Insert line

Z
Delete line
Y
Go to beginning of next line X

Sort the table

Copy the highlighted field (2nd soft-key row)

Insert the copied field (2nd soft-key row)

Edit the table format (2nd soft-key row)

178 5 Programming: Tools


5.5 Working with Cutting Data Tables
Table for workpiece materials
Workpiece materials are defined in the table WMAT.TAB (see figure
at upper right). WMAT.TAB is stored in the TNC:\ directory and can
contain as many materials as you want. The name of the material type
can have up to 32 characters (including spaces). The TNC displays the
contents of the NAME column when you are defining the workpiece
material in the program (see the following section).

If you change the standard workpiece material table, you


must copy it into a new directory. Otherwise your
changes will be overwritten during a software update by
the HEIDENHAIN standard data. Define the path in the
TNC.SYS file with the code word WMAT= (see
“Configuration file TNC.SYS” on page 184).
To avoid losing data, save the WMAT.TAB file at regular
intervals.

Defining the workpiece material in the NC program


In the NC program select the workpiece material from the WMAT.TAB
table using the WMAT soft key:
8 Program the workpiece material: In the Programming
and Editing operating mode, press the WMAT soft
key.
8 The WMAT.TAB table is superimposed: Press the
SELECTION WINDOW soft key, and in a second
window the TNC displays the list of materials that are
stored in the WMAT.TAB table.
8 Select your workpiece material by using the arrow
keys to move the highlight onto the material you wish
to select and confirming with the ENT key. The TNC
transfers the selected material to the WMAT block.
8 To terminate the dialog, press the END key.

If you change the WMAT block in a program, the TNC


outputs a warning. Check whether the cutting data stored
in the TOOL CALL block are still valid.

HEIDENHAIN iTNC 530 179


5.5 Working with Cutting Data Tables
Table for tool cutting materials
Tool cutting materials are defined in the TMAT.TAB table. TMAT.TAB
is stored in the TNC:\ directory and can contain as many material
names as you want (see figure at upper right). The name of the cutting
material type can have up to 16 characters (including spaces). The TNC
displays the NAME column when you are defining the tool cutting
material in the TOOL.T tool table.

If you change the standard tool cutting material table, you


must copy it into a new directory. Otherwise your
changes will be overwritten during a software update by
the HEIDENHAIN standard data. Define the path in the
TNC.SYS file with the code word TMAT= (see
“Configuration file TNC.SYS” on page 184).
To avoid losing data, save the TMAT.TAB file at regular
intervals.

Table for cutting data


Define the workpiece material / cutting material combinations with the
corresponding cutting data in a file table with the file name extension
.CDT; see figure at center right. You can freely configure the entries
in the cutting data table. Besides the obligatory columns NR, WMAT
and TMAT, the TNC can also manage up to four cutting speed (VC) /
feed rate (F) combinations.
The standard cutting data table FRAES_2.CDT is stored in the
directory TNC:\. You can edit FRAES_2.CDT, or add as many new
cutting-data tables as you wish.

If you change the standard cutting data table, you must


copy it into a new directory. Otherwise your changes will
be overwritten during a software update by the
HEIDENHAIN standard data (see “Configuration file
TNC.SYS” on page 184).
All of the cutting data tables must be stored in the same
directory. If the directory is not the standard directory
TNC:\, then behind the code word PCDT= you must enter
the path in which your cutting data is stored.
To avoid losing data, save your cutting data tables at
regular intervals.

180 5 Programming: Tools


5.5 Working with Cutting Data Tables
Creating a new cutting data table
8 Select the Programming and Editing mode of operation.
8 Press the PGM MGT key to select the file manager.
8 Select the directory where the cutting data table is to be stored.
8 Enter any file name with file name extension .CDT, and confirm with
ENT.
8 On the right half of the screen, the TNC displays various table
formats (machine-dependent, see example in figure at right). These
tables differ from each other in the number of cutting speed /
feed rate combinations they allow. Use the arrow keys to move the
highlight onto the table format you wish to select and confirm with
ENT. The TNC generates a new, empty cutting data table.

Data required for the tool table


„ Tool radius—column R (DR)
„ Number of teeth (only with tools for milling)—column CUT
„ Tool type—column TYPE
„ The tool type influences the calculation of the feed rate:
Milling tool: F = S · fZ · z
All other tools: F = S · fU
S: Spindle speed
fZ: Feed per tooth
fU: Feed per revolution
z: Number of teeth
„ Tool cutting material—column TMAT
„ Name of the cutting data table for which this tool will be used—
column CDT
„ In the tool table, select the tool type, tool cutting material and the
name of the cutting data table via soft key (see “Tool table: Tool data
for automatic speed/feed rate calculation.” on page 156).

HEIDENHAIN iTNC 530 181


5.5 Working with Cutting Data Tables
Working with automatic speed / feed rate
calculation
1 If it has not already been entered, enter the type of workpiece
material in the file WMAT.TAB.
2 If it has not already been entered, enter the type of cutting material
in the file TMAT.TAB.
3 If not already entered, enter all of the required tool-specific data in
the tool table:
„ Tool radius
„ Number of teeth
„ Tool type
„ Tool material
„ The cutting data table for each tool
4 If not already entered, enter the cutting data in any cutting data
table (CDT file).
5 Test Run operating mode: Activate the tool table from which the
TNC is to take the tool-specific data (status S).
6 In the NC program, set the workpiece material by pressing the
WMAT soft key.
7 In the NC program, let the TOOL CALL block automatically
calculate spindle speed and feed rate via soft key.

Changing the table structure


Cutting data tables constitute so-called “freely-definable tables” for
the TNC. You can change the format of freely definable tables by using
the structure editor.

The TNC can process up to 200 characters per line and up


to 30 columns.
If you insert an additional column into an existing table,
the TNC does not automatically shift the values that have
been entered.

Calling the structure editor


Press the EDIT FORMAT soft key (2nd soft-key level). The TNC opens
the editing window (see figure at right), in which the table structure is
shown “rotated by 90°.” In other words, a line in the editing window
defines a column in the associated table. The meanings of the
structure commands (header entries) are shown in the table at right.

182 5 Programming: Tools


5.5 Working with Cutting Data Tables
Exiting the structure editor
Press the END key. The TNC changes data that was already in the
table into the new format. Elements that the TNC could not convert
into the new structure are indicated with a hash mark # (e.g., if you
have narrowed the column width).
Structure
Meaning
command
NR Column number

NAME Overview of columns

TYPE N: Numerical input


C: Alphanumeric input

WIDTH Width of column. For type N including algebraic


sign, comma, and decimal places.

DEC Number of decimal places (max. 4, effective


only for type N)

ENGLISH Language-dependent dialogs


to (max. 32 characters)
HUNGARIAN

HEIDENHAIN iTNC 530 183


5.5 Working with Cutting Data Tables
Data transfer from cutting data tables
If you output a file type .TAB or .CDT via an external data interface, the
TNC also transfers the structural definition of the table. The structural
definition begins with the line #STRUCTBEGIN and ends with the line
#STRUCTEND. The meanings of the individual code words are shown
in the table “Structure Command” (see “Changing the table
structure” on page 182). Behind #STRUCTEND the TNC saves the
actual content of the table.

Configuration file TNC.SYS


You must use the configuration file TNC.SYS if your cutting data tables
are not stored in the standard directory TNC:\. In TNC.SYS you must
then define the paths in which you have stored your cutting data
tables.

The TNC.SYS file must be stored in the root directory


TNC:\.

Entries in TNC.SYS Meaning


WMAT= Path for workpiece material table

TMAT= Path for cutting material table

PCDT= Path for cutting data tables

Example of TNC.SYS
WMAT=TNC:\CUTTAB\WMAT_GB.TAB
TMAT=TNC:\CUTTAB\TMAT_GB.TAB
PCDT=TNC:\CUTTAB\

184 5 Programming: Tools


Programming:
Programming Contours
6.1 Tool Movements
6.1 Tool Movements

Path functions
A workpiece contour is usually composed of several contour
elements, such as straight lines and circular arcs. With the path L
functions you can program the tool movements for straight lines L CC
and circular arcs.
L
FK Free Contour Programming C
If a production drawing is not dimensioned for NC and the dimensions
given are not sufficient for creating a part program, you can program
the workpiece contour with the FK free contour programming and
have the TNC calculate the missing data.
With FK programming, you also program tool movements for straight
lines and circular arcs.

Miscellaneous functions M
With the TNC’s miscellaneous functions you can affect
„ Program run, e.g., a program interruption
Y
„ Machine functions, such as switching spindle rotation and coolant
supply on and off
80
„ Contouring behavior of the tool
CC
60
Subprograms and Program Section Repeats

0
R4
40
If a machining sequence occurs several times in a program, you can
save time and reduce the chance of programming errors by entering
the sequence once and then defining it as a subprogram or program
section repeat. If you wish to execute a specific program section only
under certain conditions, you also define this machining sequence as X
10 115
a subprogram. In addition, you can have a part program call a separate
program for execution.
Programming with subprograms and program section repeats is
described in Chapter 9.

Programming with Q parameters


Instead of programming numerical values in a part program, you enter
markers called Q parameters. You assign the values to the
Q parameters separately with the Q parameter functions. You can use
the Q parameters for programming mathematical functions that
control program execution or describe a contour.
In addition, parametric programming enables you to measure with the
3-D touch probe during program run.
Programming with Q parameters is described in Chapter 10.

186 6 Programming: Programming Contours


6.2 Fundamentals of Path

6.2 Fundamentals of Path Functions


Functions
Programming tool movements for workpiece
Z
machining
You create a part program by programming the path functions for the
individual contour elements in sequence. You usually do this by
Y
entering the coordinates of the end points of the contour
X
elements given in the production drawing. The TNC calculates the
actual path of the tool from these coordinates, and from the tool data
and radius compensation.
The TNC moves all axes programmed in a single block simultaneously.
100
Movement parallel to the machine axes
The program block contains only one coordinate. The TNC thus moves
the tool parallel to the programmed axis.
Depending on the machine tool, the part program is executed by
movement of either the tool or the machine table on which the
workpiece is clamped. Nevertheless, you always program path
contours as if the tool moves and the workpiece remains stationary. Z
Example:

L X+100 Y
X
L Path function for a straight line 50
X+100 Coordinate of the end point
The tool retains the Y and Z coordinates and moves to the position
X=100 (see figure at upper right). 70
Movement in the main planes
The program block contains two coordinates. The TNC thus moves the
tool in the programmed plane.
Example:

L X+70 Y+50
Z
The tool retains the Z coordinate and moves in the XY plane to the
position X=70, Y=50 (see figure at center right). Y
Three-dimensional movement X
The program block contains three coordinates. The TNC thus moves
the tool in space to the programmed position.
Example:

L X+80 Y+0 Z-10 80


-10

HEIDENHAIN iTNC 530 187


6.2 Fundamentals of Path Functions Entering more than three coordinates
The TNC can control up to 5 axes simultaneously (software option).
Machining with 5 axes, for example, moves 3 linear and 2 rotary axes
simultaneously.
Such programs are too complex to program at the machine, however,
and are usually created with a CAD system.
Example:

L X+20 Y+10 Z+2 A+15 C+6 R0 F100 M3

The TNC graphics cannot simulate movements in more


than three axes.

Circles and circular arcs


The TNC moves two axes simultaneously in a circular path relative to
the workpiece. You can define a circular movement by entering the
circle center CC.
When you program a circle, the control assigns it to one of the main
planes. This plane is defined automatically when you set the spindle
Y Y
axis during a TOOL CALL:
Spindle axis Main plane
Z XY, also YCC
CC
UV, XV, UY

Y ZX, also
WU, ZU, WX
X X
X YZ, also XCC
VW, YW, VZ

You can program circles that do not lie parallel to a main


plane by using the function for tilting the working plane
(see “WORKING PLANE (Cycle 19, software option 1)”
on page 441) or Q parameters (see “Principle and
Overview” on page 506). Z
DR+
Direction of rotation DR for circular movements
Y DR– CC
If a circular path has no tangential transition to another CC
contour element, enter the direction of rotation DR: X
Clockwise direction of rotation: DR–
Counterclockwise direction of rotation: DR+

188 6 Programming: Programming Contours


6.2 Fundamentals of Path Functions
Radius compensation
The radius compensation must be in the block in which you move to
the first contour element. You cannot begin radius compensation in a
circle block. It must be activated beforehand in a straight-line block
(see “Path Contours—Cartesian Coordinates” on page 198) or
approach block (APPR block, see “Contour Approach and Departure”
on page 191).

Pre-positioning
Before running a part program, always pre-position the tool to prevent
the possibility of damaging it or the workpiece.

Creating the program blocks with the path function keys


The gray path function keys initiate the plain language dialog. The TNC
asks you successively for all the necessary information and inserts the
program block into the part program.
Example—programming a straight line:

Initiate the programming dialog, e.g. for a straight


line.

COORDINATES?

Enter the coordinates of the straight-line end point.


10

RADIUS COMP.: RL/RR/NO COMP.?

Select the radius compensation (here, press the RL


soft key—the tool moves to the left of the
programmed contour).

FEED RATE F=? / F MAX = ENT

Enter the feed rate (here, 100 mm/min), and confirm


100 your entry with ENT. For programming in inches,
enter 100 for a feed rate of 10 ipm.

Move at rapid traverse: press the FMAX soft key, or

Move at automatically calculated speed (cutting data


table): press the FAUTO soft key.

HEIDENHAIN iTNC 530 189


6.2 Fundamentals of Path Functions
MISCELLANEOUS FUNCTION M?

3 Enter a miscellaneous function (here, M3), and


terminate the dialog with ENT.

The part program now contains the following line:

L X+10 Y+5 RL F100 M3

190 6 Programming: Programming Contours


6.3 Contour Approach and

6.3 Contour Approach and Departure


Departure
Overview: Types of paths for contour approach
and departure
The functions for contour approach APPR and departure DEP are
activated with the APPR/DEP key. You can then select the desired
path function with the corresponding soft key:

Function Approach Departure


Straight line with tangential connection

Straight line perpendicular to a contour


point

Circular arc with tangential connection

Circular arc with tangential connection


to the contour. Approach and departure
to an auxiliary point outside of the
contour on a tangentially connecting
line.

Approaching and departing a helix


The tool approaches and departs a helix on its extension by moving in
a circular arc that connects tangentially to the contour. You program
helix approach and departure with the APPR CT and DEP CT functions.

Important positions for approach and departure


„ Starting point PS
You program this position in the block before the APPR block. PS lies
outside the contour and is approached without radius compensation
(R0).
„ Auxiliary point PH RL
Some of the paths for approach and departure go through an
auxiliary point PH that the TNC calculates from your input in the
APPR or DEP block. The TNC moves from the current position to the RL
auxiliary point PH at the feed rate last programmed.
„ First contour point PA and last contour point PE PN R0
You program the first contour point PA in the APPR block. The last
contour point PE can be programmed with any path function. If the PA RL PE RL
APPR block also contains a Z axis coordinate, the TNC will first move
the tool to PH in the working plane, and then move it to the entered PH RL
depth in the tool axis.
PS R0

HEIDENHAIN iTNC 530 191


„ End point PN
6.3 Contour Approach and Departure
The position PN lies outside of the contour and results from your
input in the DEP block. If the DEP block also contains a Z axis
coordinate, the TNC will first move the tool to PH in the working
plane, and then move it to the entered depth in the tool axis.

Abbreviation Meaning
APPR Approach

DEP Departure

L Line

C Circle

T Tangential (smooth connection)

N Normal (perpendicular)

The TNC does not check whether the programmed


contour will be damaged when moving from the actual
position to the auxiliary point PH. Use the test graphics to
simulate approach and departure before executing the
part program.
With the APPR LT, APPR LN and APPR CT functions, the
TNC moves the tool from the actual position to the
auxiliary point PH at the feed rate that was last
programmed. With the APPR LCT function, the TNC
moves to the auxiliary point PH at the feed rate
programmed with the APPR block. If no feed rate is
programmed yet before the approach block, the TNC
generates an error message.

Polar coordinates
You can also program the contour points for the following approach/
departure functions over polar coordinates:
„ APPR LT becomes APPR PLT
„ APPR LN becomes APPR PLN
„ APPR CT becomes APPR PCT
„ APPR LCT becomes APPR PLCT
„ DEP LCT becomes DEP PLCT
Select by soft key an approach or departure function, then press the
orange P key.
Radius compensation
The tool radius compensation is programmed together with the first
contour point PA in the APPR block. The DEP blocks automatically
discard the tool radius compensation.
Contour approach without radius compensation: If you program the
APPR block with R0, the TNC will calculate the tool path for a tool
radius of 0 mm and a radius compensation RR! The radius
compensation is necessary to set the direction of contour approach
and departure in the APPR/DEP LN and APPR/DEP CT functions.

192 6 Programming: Programming Contours


6.3 Contour Approach and Departure
Approaching on a straight line with tangential
connection: APPR LT Y
35
The tool moves on a straight line from the starting point PS to an
auxiliary point PH. It then moves to the first contour point PA on a

R
straight line that connects tangentially to the contour. The auxiliary

R
15
PA
point PH is separated from the first contour point PA by the distance 20 RR
LEN.
8 Use any path function to approach the starting point PS. 10
8 Initiate the dialog with the APPR/DEP key and APPR LT soft key: PH PS
RR R0
8 Coordinates of the first contour point PA
8 LEN: Distance from the auxiliary point PH to the first
contour point PA
X
20 35 40
8 Radius compensation RR/RL for machining

Example NC blocks
7 L X+40 Y+10 RO FMAX M3 Approach PS without radius compensation
8 APPR LT X+20 Y+20 Z-10 LEN15 RR F100 PA with radius comp. RR, distance PH to PA: LEN=15
9 L Y+35 Y+35 End point of the first contour element
10 L ... Next contour element

Approaching on a straight line perpendicular to


the first contour point: APPR LN Y
35
The tool moves on a straight line from the starting point PS to an
auxiliary point PH. It then moves to the first contour point PA on a

R
straight line perpendicular to the first contour element. The auxiliary

R
point PH is separated by the distance LEN plus the tool radius from the PA
first contour point PA. 20 RR
15
8 Use any path function to approach the starting point PS.
8 Initiate the dialog with the APPR/DEP key and APPR LCT soft key: 10
PH PS
8 Coordinates of the first contour point PA RR R0
8 Length: Distance to the auxiliary point PH. Always
enter LEN as a positive value! X
10 20 40
8 Radius compensation RR/RL for machining

Example NC blocks
7 L X+40 Y+10 RO FMAX M3 Approach PS without radius compensation
8 APPR LN X+10 Y+20 Z-10 LEN15 RR F100 PA with radius comp. RR
9 L X+20 Y+35 End point of the first contour element
10 L ... Next contour element

HEIDENHAIN iTNC 530 193


6.3 Contour Approach and Departure
Approaching on a circular path with tangential
connection: APPR CT Y
35
The tool moves on a straight line from the starting point PS to an
auxiliary point PH. It then moves to the first contour point PA following

R
R
a circular arc that is tangential to the first contour element. PA
20 RR
The arc from PH to PA is determined through the radius R and the CCA=
center angle CCA. The direction of rotation of the circular arc is 180°
automatically derived from the tool path for the first contour element. 0
10 R1
8 Use any path function to approach the starting point PS. PS
PH R0
8 Initiate the dialog with the APPR/DEP key and APPR CT soft key:
RR
8 Coordinates of the first contour point PA
X
8 Radius R of the circular arc 10 20 40

„ If the tool should approach the workpiece in the


direction defined by the radius compensation: Enter
R as a positive value.
„ If the tool should approach the workpiece opposite
to the radius compensation:
Enter R as a negative value.
8 Center angle CCA of the arc
„ CCA can be entered only as a positive value.
„ Maximum input value 360°
8 Radius compensation RR/RL for machining

Example NC blocks
7 L X+40 Y+10 RO FMAX M3 Approach PS without radius compensation
8 APPR CT X+10 Y+20 Z-10 CCA180 R+10 RR F100 PA with radius comp. RR, radius R=10
9 L X+20 Y+35 End point of the first contour element
10 L ... Next contour element

194 6 Programming: Programming Contours


6.3 Contour Approach and Departure
Approaching on a circular arc with tangential
connection from a straight line to the contour: Y
35
APPR LCT

R
The tool moves on a straight line from the starting point PS to an

R
auxiliary point PH. It then moves to the first contour point PA on a PA
20 RR
circular arc. The feed rate programmed in the APPR block is in effect.
The arc is connected tangentially both to the line PS – PH as well as to
0
the first contour element. Once these lines are known, the radius then 10 R1
suffices to completely define the tool path. PS
R0
8 Use any path function to approach the starting point PS. PH
8 Initiate the dialog with the APPR/DEP key and APPR LCT soft key: RR
X
8 Coordinates of the first contour point PA 10 20 40

8 Radius R of the circular arc. Enter R as a positive value.


8 Radius compensation RR/RL for machining

Example NC blocks
7 L X+40 Y+10 RO FMAX M3 Approach PS without radius compensation
8 APPR LCT X+10 Y+20 Z-10 R10 RR F100 PA with radius comp. RR, radius R=10
9 L X+20 Y+35 End point of the first contour element
10 L ... Next contour element

HEIDENHAIN iTNC 530 195


6.3 Contour Approach and Departure
Departing on a straight line with tangential
connection: DEP LT Y
Y
35
The tool moves on a straight line from the last contour point PE to the RR
end point PN. The line lies on the extension of the last contour

R
R
element. PN is separated from PE by the distance LEN. PA
20 RR
8 Program the last contour element with the end point PE and radius 20 PE
compensation. RR

12.5
8 Initiate the dialog with the APPR/DEP key and DEP LT soft key: 0
10 R1
8 LEN: Enter the distance from the last contour element PS
PN R0
PE to the end point PN. PH R0
RR
X
X
10 20 40
Example NC blocks
23 L Y+20 RR F100 Last contour element: PE with radius compensation
24 DEP LT LEN12.5 F100 Depart contour by LEN=12.5 mm
25 L Z+100 FMAX M2 Retract in Z, return to block 1, end program

Departing on a straight line perpendicular to the


last contour point: DEP LN Y
The tool moves on a straight line from the last contour point PE to the RR
end point PN. The line departs on a perpendicular path from the last PN
contour point PE. PN is separated from PE by the distance LEN plus the
tool radius. R0
20 PE
8 Program the last contour element with the end point PE and radius
RR
compensation. 20
8 Initiate the dialog with the APPR/DEP key and DEP LCT soft key:
8 LEN: Enter the distance from the last contour element
to PN.
Always enter LEN as a positive value!
X

Example NC blocks
23 L Y+20 RR F100 Last contour element: PE with radius compensation
24 DEP LN LEN+20 F100 Depart perpendicular to contour by LEN=20 mm
25 L Z+100 FMAX M2 Retract in Z, return to block 1, end program

196 6 Programming: Programming Contours


6.3 Contour Approach and Departure
Departure on a circular path with tangential
connection: DEP CT Y
The tool moves on a circular arc from the last contour point PE to the RR
end point PN. The arc is tangentially connected to the last contour PN
element.
R0
8 Program the last contour element with the end point PE and radius 20
PE
compensation.

R8
180° RR
8 Initiate the dialog with the APPR/DEP key and DEP CT soft key:
8 Center angle CCA of the arc
8 Radius R of the circular arc
„ If the tool should depart the workpiece in the X
direction of the radius compensation (i.e. to the
right with RR or to the left with RL): Enter R as a
positive value.
„ If the tool should depart the workpiece in the
direction opposite to the radius compensation:
Enter R as a negative value.

Example NC blocks
23 L Y+20 RR F100 Last contour element: PE with radius compensation
24 DEP CT CCA 180 R+8 F100 Center angle=180°,
arc radius=8 mm
25 L Z+100 FMAX M2 Retract in Z, return to block 1, end program

Departing on a circular arc tangentially


connecting the contour and a straight line: DEP Y
LCT RR

The tool moves on a circular arc from the last contour point PS to an
auxiliary point PH. It then moves on a straight line to the end point PN.
20
The arc is tangentially connected both to the last contour element and PE
R8
to the line from PH to PN. Once these lines are known, the radius R RR
then suffices to completely define the tool path. 12
PH
8 Program the last contour element with the end point PE and radius PN
compensation. R0
R0
8 Initiate the dialog with the APPR/DEP key and DEP LCT soft key:
8 Enter the coordinates of the end point PN. X
10
8 Radius R of the circular arc. Enter R as a positive value.

Example NC blocks
23 L Y+20 RR F100 Last contour element: PE with radius compensation
24 DEP LCT X+10 Y+12 R+8 F100 Coordinates PN, arc radius=8 mm
25 L Z+100 FMAX M2 Retract in Z, return to block 1, end program

HEIDENHAIN iTNC 530 197


6.4 Path Contours—Cartesian
6.4 Path Contours—Cartesian Coordinates
Coordinates
Overview of path functions
Function Path function key Tool movement Required input
Line L Straight line Coordinates of the end points of
the straight line

Chamfer CHF Chamfer between two straight Chamfer side length


lines

Circle Center CC None Coordinates of the circle center or


pole

Circle C Circular arc around a circle center Coordinates of the arc end point,
CC to an arc end point direction of rotation

Circular Arc CR Circular arc with a certain radius Coordinates of the arc end point,
arc radius, direction of rotation

Circular Arc CT Circular arc with tangential Coordinates of the arc end point
connection to the preceding and
subsequent contour elements

Corner Rounding RND Circular arc with tangential Rounding-off radius R


connection to the preceding and
subsequent contour elements

FK Free Contour Straight line or circular path with see “Path Contours—FK Free
Programming any connection to the preceding Contour Programming” on page
contour element 218

198 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
Straight Line L
The TNC moves the tool in a straight line from its current position to
the straight-line end point. The starting point is the end point of the Y
preceding block.
40
8 Coordinates of the end point of the straight line

15
Further entries, if necessary:
8 Radius compensation RL/RR/R0

10
8 Feed rate F
8 Miscellaneous function M

Example NC blocks
7 L X+10 Y+40 RL F200 M3 20 X
10
8 L IX+20 IY-15
9 L X+60 IY-10 60

Actual position capture


You can also generate a straight-line block (L block) by using the
ACTUAL-POSITION-CAPTURE key:
8 In the Manual Operation mode, move the tool to the position you
wish to capture.
8 Switch the screen display to Programming and Editing.
8 Select the program block after which you want to insert the L block.
8 Press the ACTUAL-POSITION-CAPTURE key: The
TNC generates an L block with the actual position
coordinates.

In the MOD function, you define the number of axes that


the TNC saves in an L block (see “MOD functions” on
page 576).

HEIDENHAIN iTNC 530 199


6.4 Path Contours—Cartesian Coordinates
Inserting a Chamfer CHF between Two Straight
Lines
The chamfer enables you to cut off corners at the intersection of two
straight lines.
Y 12
„ The blocks before and after the CHF block must be in the same
working plane.
„ The radius compensation before and after the chamfer block must
be the same.

12
5
„ An inside chamfer must be large enough to accommodate the 30
current tool.
8 Chamfer side length: Length of the chamfer
Further entries, if necessary:
8Feed rate F (only effective in CHF block)
5 X
Example NC blocks
40
7 L X+0 Y+30 RL F300 M3
8 L X+40 IY+5
9 CHF 12 F250
10 L IX+5 Y+0

You cannot start a contour with a CHF block.


A chamfer is possible only in the working plane.
The corner point is cut off by the chamfer and is not part
of the contour.
A feed rate programmed in the CHF block is effective only
in that block. After the CHF block, the previous feed rate
becomes effective again.

200 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
Corner Rounding RND
The RND function is used for rounding off corners.
The tool moves on an arc that is tangentially connected to both the Y
preceding and subsequent contour elements.
The rounding arc must be large enough to accommodate the tool.
40
8 Rounding-off radius: Enter the radius
Further entries, if necessary: R5 25
8 Feed rate F (only effective in RND block)

Example NC blocks
5
5 L X+10 Y+40 RL F300 M3
6 L X+40 Y+25 X
10 40
7 RND R5 F100
8 L X+10 Y+5

In the preceding and subsequent contour elements, both


coordinates must lie in the plane of the rounding arc. If
you machine the contour without tool-radius
compensation, you must program both coordinates in the
working plane.
The corner point is cut off by the rounding arc and is not
part of the contour.
A feed rate programmed in the RND block is effective only
in that block. After the RND block, the previous feed rate
becomes effective again.
You can also use an RND block for a tangential contour
approach if you do not want to use an APPR function.

HEIDENHAIN iTNC 530 201


6.4 Path Contours—Cartesian Coordinates
Circle center CC
You can define a circle center CC for circles that are programmed with
the C key (circular path C). This is done in the following ways:
„ Entering the Cartesian coordinates of the circle center, or
Z
„ Using the circle center defined in an earlier block, or Y
„ Capturing the coordinates with the ACTUAL-POSITION-CAPTURE
key. CC

8 Coordinates CC: Enter the circle center coordinates,


or YCC X
If you want to use the last programmed position, do
not enter any coordinates.

Example NC blocks
X CC
5 CC X+25 Y+25

or

10 L X+25 Y+25
11 CC

The program blocks 10 and 11 do not refer to the illustration.

Duration of effect
The circle center definition remains in effect until a new circle center
is programmed. You can also define a circle center for the secondary
axes U, V and W.

Entering the circle center CC incrementally


If you enter the circle center with incremental coordinates, you have
programmed it relative to the last programmed position of the tool.

The only effect of CC is to define a position as circle


center: The tool does not move to this position.
The circle center is also the pole for polar coordinates.

202 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
Circular path C around circle center CC
Before programming a circular path C, you must first enter the circle
center CC. The last programmed tool position before the C block is
used as the circle starting point. Y
8 Move the tool to the circle starting point.
8 Coordinates of the circle center

8 Coordinates of the arc end point


E S
8 Direction of rotation DR CC
Further entries, if necessary:
8 Feed rate F
8 Miscellaneous function M
X
Example NC blocks
5 CC X+25 Y+25
6 L X+45 Y+25 RR F200 M3
7 C X+45 Y+25 DR+
Y
Full circle
For the end point, enter the same point that you used for the starting
point. DR+

The starting and end points of the arc must lie on the CC
circle. 25

Input tolerance: up to 0.016 mm (selected with MP7431).


DR–

X
25 45

HEIDENHAIN iTNC 530 203


6.4 Path Contours—Cartesian Coordinates
Circular path CR with defined radius
The tool moves on a circular path with the radius R.
8 Coordinates of the arc end point Y
8 Radius R
Note: The algebraic sign determines the size of the
arc!
8 Direction of rotation DR R
Note: The algebraic sign determines whether the arc E1=S2
is concave or convex! S1=E2
CC
Further entries, if necessary:
8 Miscellaneous function M

8 Feed rate F
X
Full circle
For a full circle, program two CR blocks in succession:
The end point of the first semicircle is the starting point of the second.
The end point of the second semicircle is the starting point of the first.
Y
Central angle CCA and arc radius R
The starting and end points on the contour can be connected with four
1
arcs of the same radius:
Smaller arc: CCA<180°
Enter the radius with a positive sign R>0 40 DR+
ZW
Larger arc: CCA>180° R R
Enter the radius with a negative sign R<0 2
The direction of rotation determines whether the arc is curving
outward (convex) or curving inward (concave):
Convex: Direction of rotation DR– (with radius compensation RL) X
40 70
Concave: Direction of rotation DR+ (with radius compensation RL)
Example NC blocks
3
10 L X+40 Y+40 RL F200 M3 Y
11 CR X+70 Y+40 R+20 DR- (ARC 1)
ZW
or

11 CR X+70 Y+40 R+20 DR+ (ARC 2) R R


40

or

11 CR X+70 Y+40 R-20 DR- (ARC 3) 4


DR+
or
X
11 CR X+70 Y+40 R-20 DR+ (ARC 4) 40 70

204 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
The distance from the starting and end points of the arc
diameter cannot be greater than the diameter of the arc.
The maximum radius is 99.9999 m.
You can also enter rotary axes A, B and C.

Circular Path CT with Tangential Connection


The tool moves on an arc that starts tangentially to the previously
programmed contour element. Y
A transition between two contour elements is called tangential when
there is no kink or corner at the intersection between the two
contours—the transition is smooth.
The contour element to which the tangential arc connects must be
programmed immediately before the CT block. This requires at least
two positioning blocks. 30
25
8 Coordinates of the arc end point 20

Further entries, if necessary:


8 Feed rate F

8 Miscellaneous function M
X
25 45
Example NC blocks
7 L X+0 Y+25 RL F300 M3
8 L X+25 Y+30
9 CT X+45 Y+20
10 L Y+0

A tangential arc is a two-dimensional operation: the


coordinates in the CT block and in the contour element
preceding it must be in the same plane as the arc.

HEIDENHAIN iTNC 530 205


6.4 Path Contours—Cartesian Coordinates
Example: Linear movements and chamfers with Cartesian coordinates

Y 10

31
95

10
21

20
1
5
4
20 X
5 95

0 BEGIN PGM LINEAR MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define blank form for graphic workpiece simulation
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+10 Define tool in the program
4 TOOL CALL 1 Z S4000 Call tool in the spindle axis and with the spindle speed S
5 L Z+250 R0 FMAX Retract tool in the spindle axis at rapid traverse FMAX
6 L X-10 Y-10 R0 FMAX Pre-position the tool
7 L Z-5 R0 F1000 M3 Move to working depth at feed rate F = 1000 mm/min
8 APPR LT X+5 X+5 LEN10 RL F300 Approach the contour at point 1 on a straight line with
tangential connection
9 L Y+95 Move to point 2
10 L X+95 Point 3: first straight line for corner 3
11 CHF 10 Program chamfer with length 10 mm
12 L Y+5 Point 4: 2nd straight line for corner 3, 1st straight line for corner 4
13 CHF 20 Program chamfer with length 20 mm
14 L X+5 Move to last contour point 1, second straight line for corner 4
15 DEP LT LEN10 F1000 Depart the contour on a straight line with tangential connection
16 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
17 END PGM LINEAR MM

206 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
Example: Circular movements with Cartesian coordinates

95
41 51

R3
21 85
R10 31

0
40 61

1 71
5

X
5 30 40 70 95

0 BEGIN PGM CIRCULAR MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define blank form for graphic workpiece simulation
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+10 Define tool in the program
4 TOOL CALL 1 Z X4000 Call tool in the spindle axis and with the spindle speed S
5 L Z+250 R0 FMAX Retract tool in the spindle axis at rapid traverse FMAX
6 L X-10 Y-10 R0 FMAX Pre-position the tool
7 L Z-5 R0 F1000 M3 Move to working depth at feed rate F = 1000 mm/min
8 APPR LCT X+5 Y+5 R5 RL F300 Approach the contour at point 1 on a circular arc with
tangential connection
9 L X+5 Y+85 Point 2: first straight line for corner 2
10 RND R10 F150 Insert radius with R = 10 mm, feed rate: 150 mm/min
11 L X+30 Y+85 Move to point 3: Starting point of the arc with CR
12 CR X+70 Y+95 R+30 DR- Move to point 4: End point of the arc with CR, radius 30 mm
13 L X+95 Move to point 5
14 L X+95 Y+40 Move to point 6
15 CT X+40 Y+5 Move to point 7: End point of the arc, radius with tangential
connection to point 6, TNC automatically calculates the radius

HEIDENHAIN iTNC 530 207


6.4 Path Contours—Cartesian Coordinates
16 L X+5 Move to last contour point 1
17 DEP LCT X-20 Y-20 R5 F1000 Depart the contour on a circular arc with tangential connection
18 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
19 END PGM CIRCULAR MM

208 6 Programming: Programming Contours


6.4 Path Contours—Cartesian Coordinates
Example: Full circle with Cartesian coordinates

CC
50

X
50

0 BEGIN PGM C-CC MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+12.5 Define the tool
4 TOOL CALL 1 Z S3150 Tool call
5 CC X+50 Y+50 Define the circle center
6 L Z+250 R0 FMAX Retract the tool
7 L X-40 Y+50 R0 FMAX Pre-position the tool
8 L Z-5 R0 F1000 M3 Move to working depth
9 APPR LCT X+0 Y+50 R5 RL F300 Approach the starting point of the circle on a circular arc with
connection
10 C X+0 DR- Move to the circle end point (= circle starting point)
11 DEP LCT X-40 Y+50 R5 F1000 Depart the contour on a circular arc with tangential
connection
12 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
13 END PGM C-CC MM

HEIDENHAIN iTNC 530 209


6.5 Path Contours—Polar
6.5 Path Contours—Polar Coordinates
Coordinates
Overview
With polar coordinates you can define a position in terms of its angle
PA and its distance PR relative to a previously defined pole CC (see
“Fundamentals” on page 218).
Polar coordinates are useful with:
„ Positions on circular arcs
„ Workpiece drawing dimensions in degrees, e.g. bolt hole circles

Overview of path functions with polar coordinates


Function Path function key Tool movement Required input
Line LP + Straight line Polar radius, polar angle of the
straight-line end point

Circular Arc CP + Circular path around circle center/ Polar angle of the arc end point,
pole CC to arc end point direction of rotation

Circular Arc CTP + Circular arc with tangential Polar radius, polar angle of the arc
connection to the preceding end point
contour element

Helical interpolation + Combination of a circular and a Polar radius, polar angle of the arc
linear movement end point, coordinate of the end
point in the tool axis

210 6 Programming: Programming Contours


6.5 Path Contours—Polar Coordinates
Polar coordinate origin: Pole CC
You can define the pole CC anywhere in the part program before
blocks containing polar coordinates. Enter the pole in Cartesian Y
coordinates as a circle center in a CC block.
8 Coordinates CC: Enter Cartesian coordinates for the
pole, or
If you want to use the last programmed position, do
not enter any coordinates. Before programming polar CC
coordinates, define the pole CC. You can only define YCC
the pole CC in Cartesian coordinates. The pole CC
remains in effect until you define a new pole CC.

Example NC blocks
12 CC X+45 Y+25 X
XCC

HEIDENHAIN iTNC 530 211


6.5 Path Contours—Polar Coordinates
Straight line LP
The tool moves in a straight line from its current position to the
straight-line end point. The starting point is the end point of the
preceding block. Y
8 Polar coordinates radius PR: Enter the distance
from the pole CC to the straight-line end point.

30
8 Polar coordinates angle PA: Angular position of the 60°
straight-line end point between –360° and +360°. 60°

The sign of PA depends on the angle reference axis: 25


CC
„ Angle from angle reference axis to PR is counterclockwise: PA>0
„ Angle from angle reference axis to PR is clockwise: PA<0

Example NC blocks X
45
12 CC X+45 Y+25
13 LP PR+30 PA+0 RR F300 M3
14 LP PA+60
15 LP IPA+60
16 LP PA+180

Circular path CP around pole CC


The polar coordinate radius PR is also the radius of the arc. It is defined
by the distance from the starting point to the pole CC. The last
programmed tool position before the CP block is the starting point of Y
the arc.
8 Polar-coordinates angle PA: Angular position of the
arc end point between –5400° and +5400°
0
8 Direction of rotation DR R2
25
Example NC blocks CC

18 CC X+25 Y+25
19 LP PR+20 PA+0 RR F250 M3
20 CP PA+180 DR+ X
25

For incremental coordinates, enter the same sign for DR


and PA.

212 6 Programming: Programming Contours


6.5 Path Contours—Polar Coordinates
Circular Path CTP with Tangential Connection
The tool moves on a circular path, starting tangentially from a
preceding contour element. Y
8 Polar coordinates radius PR: Distance from the arc
end point to the pole CC
120°
8 Polar coordinates angle PA: Angular position of the
arc end point

5
0

R2
R3
Example NC blocks 30°
35
CC
12 CC X+40 Y+35
13 L X+0 Y+35 RL F250 M3
14 LP PR+25 PA+120
15 CTP PR+30 PA+30 X
16 L Y+0 40

The pole CC is not the center of the contour arc!

Helical interpolation
A helix is a combination of a circular movement in a main plane and a
linear movement perpendicular to this plane.
Z
A helix is programmed only in polar coordinates.
Y CC
Application
„ Large-diameter internal and external threads
X
„ Lubrication grooves

Calculating the helix


To program a helix, you must enter the total angle through which the
tool is to move on the helix in incremental dimensions, and the total
height of the helix.
For calculating a helix that is to be cut in an upward direction, you need
the following data:
Thread revolutions n Thread revolutions + thread overrun at
thread beginning and end
Total height h Thread pitch P times thread revolutions n
Incremental total Number of revolutions times 360° + angle for
angle IPA beginning of thread + angle for thread
overrun
Starting coordinate Z Pitch P times (thread revolutions + thread
overrun at start of thread)

HEIDENHAIN iTNC 530 213


6.5 Path Contours—Polar Coordinates Shape of the helix
The table below illustrates in which way the shape of the helix is
determined by the work direction, direction of rotation and radius
compensation.
Work Radius
Internal thread Direction
direction comp.
Right-handed Z+ DR+ RL
Left-handed Z+ DR– RR

Right-handed Z– DR– RR
Left-handed Z– DR+ RL

External thread
Right-handed Z+ DR+ RR
Left-handed Z+ DR– RL

Right-handed Z– DR– RL
Left-handed Z– DR+ RR

Programming a helix

Always enter the same algebraic sign for the direction of


rotation DR and the incremental total angle IPA. The tool
may otherwise move in a wrong path and damage the Z
contour.
Y
For the total angle IPA, you can enter a value from –5400° CC
R3
to +5400°. If the thread has more than 15 revolutions,

5
270°
program the helix in a program section repeat (see
“Program Section Repeats” on page 492). 25 X

8 Polar coordinates angle: Enter the total angle of 40


tool traverse along the helix in incremental
dimensions. After entering the angle, specify the
tool axis with an axis selection key.
8 Coordinate: Enter the coordinate for the height of the
helix in incremental dimensions.
8 Direction of rotation DR
Clockwise helix: DR–
Counterclockwise helix: DR+
Example NC blocks: Thread M6 x 1 mm with 5 revolutions

12 CC X+40 Y+25
13 L Z+0 F100 M3
14 LP PR+3 PA+270 RL F50
15 CP IPA-1800 IZ+5 DR-

214 6 Programming: Programming Contours


6.5 Path Contours—Polar Coordinates
Example: Linear movement with polar coordinates

Y
100
31
21
60°

5
R4
CC
50 1 41

61 51
5

X
5 50 100

0 BEGIN PGM LINEARPO MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+7.5 Define the tool
4 TOOL CALL 1 Z S4000 Tool call
5 CC X+50 Y+50 Define the datum for polar coordinates
6 L Z+250 R0 FMAX Retract the tool
7 LP PR+60 PA+180 R0 FMAX Pre-position the tool
8 L Z-5 R0 F1000 M3 Move to working depth
9 APPR PLCT PR+45 PA+180 R5 RL F250 Approach the contour at point 1 on a circular arc with
tangential connection
10 LP PA+120 Move to point 2
11 LP PA+60 Move to point 3
12 LP PA+0 Move to point 4
13 LP PA-60 Move to point 5
14 LP PA-120 Move to point 6
15 LP PA+180 Move to point 1
16 DEP PLCT PR+60 PA+180 R5 F1000 Depart the contour on a circular arc with tangential connection
17 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
18 END PGM LINEARPO MM

HEIDENHAIN iTNC 530 215


6.5 Path Contours—Polar Coordinates
Example: Helix

Y
100

M64 x 1,5
CC
50

X
50 100

0 BEGIN PGM HELIX MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+5 Define the tool
4 TOOL CALL 1 Z S1400 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 L X+50 Y+50 R0 FMAX Pre-position the tool
7 CC Transfer the last programmed position as the pole
8 L Z-12.75 R0 F1000 M3 Move to working depth
9 APPR PCT PR+32 PA-182 CCA180 R+2 RL F100 Approach the contour on a circular arc with tangential connection
10 CP IPA+3240 IZ+13.5 DR+ F200 Helical interpolation
11 DEP CT CCA180 R+2 Depart the contour on a circular arc with tangential connection
12 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
13 END PGM HELIX MM

216 6 Programming: Programming Contours


6.5 Path Contours—Polar Coordinates
To cut a thread with more than 16 revolutions

...
8 L Z-12.75 R0 F1000
9 APPR PCT PR+32 PA-180 CCA180 R+2 RL F100
10 LBL 1 Identify beginning of program section repeat
11 CP IPA+360 IZ+1.5 DR+ F200 Enter the thread pitch as an incremental IZ dimension
12 CALL LBL 1 REP 24 Program the number of repeats (thread revolutions)
13 DEP CT CCA180 R+2
...

HEIDENHAIN iTNC 530 217


6.6 Path Contours—FK Free
6.6 Path Contours—FK Free Contour Programming
Contour Programming
Fundamentals
Workpiece drawings that are not dimensioned for NC often contain
unconventional coordinate data that cannot be entered with the gray
path function keys. You may, for example, have only the following data
on a specific contour element:
„ Known coordinates on the contour element or in its proximity
„ Coordinate data that are referenced to another contour element
„ Directional data and data regarding the course of the contour
You can enter such dimensional data directly by using the FK free
contour programming function. The TNC derives the contour from the
known coordinate data and supports the programming dialog with the
interactive programming graphics. The figure to the upper right shows
a workpiece drawing for which FK programming is the most
convenient programming method.

The following prerequisites for FK programming must


be observed:
The FK free contour programming feature can only be used
for programming contour elements that lie in the working
plane. The working plane is defined in the first BLK FORM
block of the part program.
You must enter all available data for every contour
element. Even the data that does not change must be
entered in every block—otherwise it will not be
recognized.
Q parameters are permissible in all FK elements, except in
elements with relative references (e.g. RX or RAN), or in
elements that are referenced to other NC blocks.
If both FK blocks and conventional blocks are entered in a
program, the FK contour must be fully defined before you
can return to conventional programming.
The TNC needs a fixed point from which it can calculate the
contour elements. Use the gray path function keys to
program a position that contains both coordinates of the
working plane immediately before programming the FK
contour. Do not enter any Q parameters in this block.
If the first block of an FK contour is an FCT or FLT block,
you must program at least two NC blocks with the gray
path function keys to fully define the direction of contour
approach.
Do not program an FK contour immediately after an LBL
label.

218 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Create FK programs for TNC 4xx:
For a TNC 4xx to be able to read-in FK programs created
on an iTNC 530, the individual FK elements within a block
must be in the same sequence as displayed in the soft-key
row.

Graphics during FK programming

If you wish to use graphic support during FK


programming, select the PROGRAM + GRAPHICS screen
layout ( (see “Programming and editing” on page 43)).

Incomplete coordinate data often are not sufficient to fully define a


workpiece contour. In this case, the TNC indicates the possible
solutions in the FK graphic. You can then select the contour that
matches the drawing. The FK graphic displays the elements of the
workpiece contour in different colors:
White The contour element is fully defined.
Green The entered data describe a limited number of possible
solutions: select the correct one.
Red The entered data are not sufficient to determine the
contour element: enter further data.

If the entered data permit a limited number of possible solutions and


the contour element is displayed in green, select the correct contour
element as follows:
8 Press the SHOW SOLUTION soft key repeatedly until
the correct contour element is displayed. Use the
zoom function (2nd soft-key row) if you cannot
distinguish possible solutions in the standard setting.
8 If the displayed contour element matches the
drawing, select the contour element with SELECT
SOLUTION.
If you do not yet wish to select a green contour element, press the
EDIT soft key to continue the FK dialog.

Select the green contour elements as soon as possible


with the SELECT SOLUTION soft key. This way you can
reduce the ambiguity of subsequent elements.
The machine tool builder may use other colors for the FK
graphics.
NC blocks from a program that you called with PGM CALL
are displayed in another color.

Show block number in graphic window


To show a block number in the graphic window:
8 Set the SHOW OMIT BLOCK NR. soft key to SHOW
(soft-key row 3)

HEIDENHAIN iTNC 530 219


6.6 Path Contours—FK Free Contour Programming
Converting FK programs into HEIDENHAIN
conversational format

If you wish to use graphic support during FK


programming, select the PROGRAM + GRAPHICS screen
layout ((see “Programming and editing” on page 43)).
The result of conversion depends on the setting of the
AUTO DRAW soft key (3rd soft-key row):

8 3. Select the soft-key row.

8 Select the soft-key row with functions for converting


programs.
8 Convert the FK blocks of the selected program. The
TNC converts all FK blocks into straight-line blocks (L)
and circular-arc blocks (CC, C).

The name of the file created by the TNC consists of the


old file name and the extension _NC. Example:
„ File name of the FK program: HEBEL.H
„ File name of the conversational dialog program
converted by the TNC:HEBEL_NC.H
The resolution of the created conversational program is
0.1 µm.
The converted program includes the comment after the
converted NC blocks SNR and a number. The number
indicates the block number of the FK program from which
the respective conversational block was calculated.

220 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Initiating the FK dialog
If you press the gray FK button, the TNC displays the soft keys you can
use to initiate an FK dialog: See the following table. Press the FK
button a second time to deselect the soft keys.
If you initiate the FK dialog with one of these soft keys, the TNC shows
additional soft-key rows that you can use for entering known
coordinates, directional data and data regarding the course of the
contour.

Contour element Soft key


Straight line with tangential connection

Straight line without tangential connection

Circular arc with tangential connection

Circular arc without tangential connection

Pole for FK programming

HEIDENHAIN iTNC 530 221


6.6 Path Contours—FK Free Contour Programming
Free programming of straight lines
Straight line without tangential connection
8 To display the soft keys for free contour programming,
press the FK key.
8 To initiate the dialog for free programming of straight
lines, press the FL soft key. The TNC displays
additional soft keys.
8 Enter all known data in the block by using these soft
keys. The FK graphic displays the programmed
contour element in red until sufficient data is entered.
If the entered data describes several solutions, the
graphic will display the contour element in green (see
“Graphics during FK programming” on page 219).

Straight line with tangential connection


If the straight line connects tangentially to another contour element,
initiate the dialog with the FLT soft key:
8 To display the soft keys for free contour programming,
press the FK key.
8 To initiate the dialog, press the FLT soft key.
8 Enter all known data in the block by using the soft
keys.

Free programming of circular arcs


Circular arc without tangential connection
8 To display the soft keys for free contour programming,
press the FK key.
8 To initiate the dialog for free programming of circular
arcs, press the FC soft key. The TNC displays soft
keys with which you can enter direct data on the
circular arc or data on the circle center.
8 Enter all known data in the block by using these soft
keys. The FK graphic displays the programmed
contour element in red until sufficient data is entered.
If the entered data describes several solutions, the
graphic will display the contour element in green (see
“Graphics during FK programming” on page 219).

Circular arc with tangential connection


If the circular arc connects tangentially to another contour element,
initiate the dialog with the FCT soft key:
8 To display the soft keys for free contour programming,
press the FK key.
8 To initiate the dialog, press the FCT soft key.
8 Enter all known data in the block by using the soft
keys.

222 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Input possibilities
End point coordinates
Y
Known data Soft keys
Cartesian coordinates X and Y
R15
30
30°
Polar coordinates referenced to FPOL
20

Example NC blocks
7 FPOL X+20 Y+30
8 FL IX+10 Y+20 RR F100
9 FCT PR+15 IPA+30 DR+ R15 10 X
20
Direction and length of contour elements

Known data Soft keys


Length of a straight line Y

Gradient angle of a straight line

AN
Chord length LEN of the arc LEN

Gradient angle AN of the entry tangent

Center angle of the arc


X

Example NC blocks
27 FLT X+25 LEN 12.5 AN+35 RL F200
28 FC DR+ R6 LEN 10 A-45
29 FCT DR- R15 LEN 15

HEIDENHAIN iTNC 530 223


6.6 Path Contours—FK Free Contour Programming Circle center CC, radius and direction of rotation in the FC/FCT
block
The TNC calculates a circle center for free-programmed arcs from the
data you enter. This makes it possible to program full circles in an FK
program block.
If you wish to define the circle center in polar coordinates you must
use FPOL, not CC, to define the pole. FPOL is entered in Cartesian
coordinates and remains in effect until the TNC encounters a block in
which another FPOL is defined.

A circle center that was calculated or programmed


conventionally is then no longer valid as a pole or circle
center for the new FK contour: If you enter conventional
polar coordinates that refer to a pole from a CC block you
have defined previously, then you must enter the pole
again in a CC block after the FK contour.

Known data Soft keys


Circle center in Cartesian coordinates

Circle center in polar coordinates

Rotational direction of the arc

Radius of the arc

Example NC blocks

10 FC CCX+20 CCY+15 DR+ R15


11 FPOL X+20 Y+15
12 FL AN+40
13 FC DR+ R15 CCPR+35 CCPA+40

224 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Closed contours
You can identify the beginning and end of a closed contour with the
CLSD soft key. This reduces the number of possible solutions for the
last contour element.
Y
Enter CLSD as an addition to another contour data entry in the first and
last blocks of an FK section.

Beginning of contour: CLSD+ CLSD+


End of contour: CLSD–
Example NC blocks

12 L X+5 Y+35 RL F500 M3


13 FC DR- R15 CLSD+ CCX+20 CCY+35 CLSD–
... X
17 FCT DR- R+15 CLSD-

HEIDENHAIN iTNC 530 225


6.6 Path Contours—FK Free Contour Programming
Auxiliary points
You can enter the coordinates of auxiliary points that are located on
the contour or in its proximity for both free-programmed straight lines
and free-programmed circular arcs. Y
Auxiliary points on a contour
The auxiliary points are located on a straight line or on the extension 60.071 R10
of a straight line, or on a circular arc. 53

Known data Soft keys 70°

X coordinate of an auxiliary
point
P1 or P2 of a straight line

Y coordinate of an auxiliary
point X
P1 or P2 of a straight line 50
42.929
X coordinate of an auxiliary
point
P1, P2 or P3 of a circular arc

Y coordinate of an auxiliary
point
P1, P2 or P3 of a circular arc

Auxiliary points near a contour


Known data Soft keys
X and Y coordinates of an auxiliary point near
a straight line

Distance auxiliary point/straight line

X and Y coordinates of an auxiliary point near


a circular arc

Distance auxiliary point/circular arc

Example NC blocks

13 FC DR- R10 P1X+42.929 P1Y+60.071


14 FLT AH-70 PDX+50 PDY+53 D10

226 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Relative data
Data whose values are based on another contour element are called
relative data. The soft keys and program words for entries begin with
the letter “R” for Relative. The figure at right shows the entries that Y
should be programmed as relative data.
20
The coordinates and angles for relative data are always
programmed in incremental dimensions. You must also
enter the block number of the contour element on which 20 45°
the data are based. 90°

R 20
20°
The block number of the contour element on which the 10
relative data are based can only be located up to 64 FPOL
positioning blocks before the block in which you program
the reference. 35 X
10
If you delete a block on which relative data are based, the
TNC will display an error message. Change the program
first before you delete the block.

Data relative to block N: End point coordinates


Known data Soft keys
Cartesian Coordinates
relative to block N

Polar coordinates relative to block N

Example NC blocks
12 FPOL X+10 Y+10
13 FL PR+20 PA+20
14 FL AH+45
15 FCT IX+20 DR- R20 CCA+90 RX 13
16 FL IPR+35 FA+0 RPR 13

HEIDENHAIN iTNC 530 227


6.6 Path Contours—FK Free Contour Programming Data relative to block N: Direction and distance of the contour
element

Known data Soft key


Angle between a straight line and another element Y
or between the entry tangent of the arc and another
element

Straight line parallel to another contour element


220°

20
Distance from a straight line to a parallel contour 95°

12.5
element

105° 15°
Example NC blocks
12.5 X
17 FL LEN 20 AH+15
18 FL AN+105 LEN 12.5 20

19 FL PAR 17 DP 12.5
20 FSELECT 2
21 FL LEN 20 IAH+95
22 FL IAH+220 RAN 18

Data relative to block N: Circle center CC

Known data Soft key


Cartesian coordinates of the circle Y
center relative to block N
20
Polar coordinates of the circle center 35
relative to block N

15
R10
Example NC blocks
CC
12 FL X+10 Y+10 RL
10
13 FL ...
14 FL X+18 Y+35
15 FL ... X
10 18
16 FL ...
17 FC DR- R10 CCA+0 ICCX+20 ICCY-15 RCCX12 RCCY14

228 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
Example: FK programming 1

Y
100

R1
5
75

R18
30
R15
20

X
20 50 75 100

0 BEGIN PGM FK1 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+10 Define the tool
4 TOOL CALL 1 Z S500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 L X-20 Y+30 R0 FMAX Pre-position the tool
7 L Z-10 R0 F1000 M3 Move to working depth
8 APPR CT X+2 Y+30 CCA90 R+5 RL F250 Approach the contour on a circular arc with tangential connection
9 FC DR- R18 CLSD+ CCX+20 CCY+30 FK contour section:
10 FLT Program all known data for each contour element
11 FCT DR- R15 CCX+50 CCY+75
12 FLT
13 FCT DR- R15 CCX+75 CCY+20
14 FLT
15 FCT DR- R18 CLSD- CCX+20 CCY+30
16 DEP CT CCA90 R+5 F1000 Depart the contour on a circular arc with tangential connection
17 L X-30 Y+0 R0 FMAX
18 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
19 END PGM FK1 MM

HEIDENHAIN iTNC 530 229


6.6 Path Contours—FK Free Contour Programming
Example: FK programming 2

10
Y 10

R20

55
R30 60°
30

X
30

0 BEGIN PGM FK2 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+2 Define the tool
4 TOOL CALL 1 Z S4000 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 L X+30 Y+30 R0 FMAX Pre-position the tool
7 L Z+5 R0 FMAX M3 Pre-position the tool in the tool axis
8 L Z-5 R0 F100 Move to working depth

230 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
9 APPR LCT X+0 Y+30 R5 RR F350 Approach the contour on a circular arc with tangential connection
10 FPOL X+30 Y+30 FK contour section:
11 FC DR- R30 CCX+30 CCY+30 Program all known data for each contour element
12 FL AN+60 PDX+30 PDY+30 D10
13 FSELECT 3
14 FC DR- R20 CCPR+55 CCPA+60
15 FSELECT 2
16 FL AN-120 PDX+30 PDY+30 D10
17 FSELECT 3
18 FC X+0 DR- R30 CCX+30 CCY+30
19 FSELECT 2
20 DEP LCT X+30 Y+30 R5 Depart the contour on a circular arc with tangential connection
21 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
22 END PGM FK2 MM

HEIDENHAIN iTNC 530 231


6.6 Path Contours—FK Free Contour Programming
Example: FK programming 3

Y
R1
0
50

R36
R24
R1,5

R5

30
R
R6 6 R5 X
-10

0
R4

R6
-25

R5
0
12 44 65 110

0 BEGIN PGM FK3 MM


1 BLK FORM 0.1 Z X-45 Y-45 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+120 Y+70 Z+0
3 TOOL DEF 1 L+0 R+3 Define the tool
4 TOOL CALL 1 Z S4500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 L X-70 Y+0 R0 FMAX Pre-position the tool
7 L Z-5 R0 F1000 M3 Move to working depth

232 6 Programming: Programming Contours


6.6 Path Contours—FK Free Contour Programming
8 APPR CT X-40 Y+0 CCA90 R+5 RL F250 Approach the contour on a circular arc with tangential connection
9 FC DR- R40 CCX+0 CCY+0 FK contour section:
10 FLT Program all known data for each contour element
11 FCT DR- R10 CCX+0 CCY+50
12 FLT
13 FCT DR+ R6 CCX+0 CCY+0
14 FCT DR+ R24
15 FCT DR+ R6 CCX+12 CCY+0
16 FSELECT 2
17 FCT DR- R1.5
18 FCT DR- R36 CCX+44 CCY-10
19 FSELECT 2
20 FCT CT+ R5
21 FLT X+110 Y+15 AN+0
22 FL AN-90
23 FL X+65 AN+180 PAR21 DP30
24 RND R5
25 FL X+65 Y-25 AN-90
26 FC DR+ R50 CCX+65 CCY-75
27 FCT DR- R65
28 FSELECT
29 FCT Y+0 DR- R40 CCX+0 CCY+0
30 FSELECT 4
31 DEP CT CCA90 R+5 F1000 Depart the contour on a circular arc with tangential connection
32 L X-70 R0 FMAX
33 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
34 END PGM FK3 MM

HEIDENHAIN iTNC 530 233


6.7 Contour Movements—Spline
6.7 Contour Movements—Spline Interpolation (Software Option 2)
Interpolation (Software
Option 2)
Function
If you wish to machine contours that are described in a CAD system
as splines, you can transfer them directly to the TNC and execute
them. The TNC features a spline interpolator for executing third-
degree polynomials in two, three, four, or five axes.

You cannot edit spline blocks in the TNC. Exception: Feed


rate F and miscellaneous function M in the spline block.

Example: Block format for three axes


7 L X+28.338 Y+19.385 Z-0.5 FMAX Spline starting point
8 SPL X24.875 Y15.924 Z-0.5 Spline end point
K3X-4.688E-002 K2X2.459E-002 K1X3.486E+000 Spline parameters for X axis
K3Y-4.563E-002 K2Y2.155E-002 K1Y3.486E+000 Spline parameters for Y axis
K3Z0.000E+000 K2Z0.000E+000 K1Z0.000E+000 F10000 Spline parameters for Z axis

9 SPL X17.952 Y9.003 Z-0.500 Spline end point


K3X5.159E-002 K2X-5.644E-002 K1X6.928E+000 Spline parameters for X axis
K3Y3.753E-002 K2Y-2.644E-002 K1Y6.910E+000 Spline parameters for Y axis
K3Z0.000E+000 K2Z0.000E+000 K1Z0.000E+000 Spline parameters for Z axis

10 ...

The TNC executes the spline block according to the following third-
degree polynomials:
X(t) = K3X · t3 + K2X · t2+ K1X · t + X
Y(t) = K3Y · t3 + K2Y · t2 + K1Y · t + Y
Z(t) = K3Z · t3 + K2Z · t2 + K1Z · t + Z
whereby the variable t runs from 1 to 0. The incrementation of t
depends on the feed rate and the length of the spline.

Example: Block format for five axes


7 L X+33.909 X-25.838 Z+75.107 A+17 B-10.103 FMAX Spline starting point
8 SPL X+39.824 Y-28.378 Z+77.425 A+17.32 B-12.75 Spline end point
K3X+0.0983 K2X-0.441 K1X-5.5724 Spline parameters for X axis
K3Y-0.0422 K2Y+0.1893 1Y+2.3929 Spline parameters for Y axis
K3Z+0.0015 K2Z-0.9549 K1Z+3.0875 Spline parameters for Z axis
K3A+0.1283 K2A-0.141 K1A-0.5724 Spline parameters for A axis
Spline parameters for B axis with exponential
K3B+0.0083 K2B-0.413 E+2 K1B-1.5724 E+1 F10000
notation
9 ...

234 6 Programming: Programming Contours


6.7 Contour Movements—Spline Interpolation (Software Option 2)
The TNC executes the spline block according to the following third-
degree polynomials:
X(t) = K3X · t3 + K2X · t2 + K1X · t + X
Y(t) = K3Y · t3 + K2Y · t2 + K1Y · t + Y
Z(t) = K3Z · t3 + K2Z · t2 + K1Z · t + Z
A(t) = K3A · t3 + K2A · t2 + K1A · t + A
B(t) = K3B · t3 + K2B · t2 + K1B · t + B
whereby the variable t runs from 1 to 0. The incrementation of t
depends on the feed rate and the length of the spline.

For every end-point coordinate in the spline block, the


spline parameters K3 to K1 must be programmed. The
end-point coordinates can be programmed in any
sequence within the spline block.
The TNC always expects the spline parameters K for each
axis in the sequence K3, K2, K1.
Beside the principal axes X, Y and Z, the TNC can also
process the secondary axes U, V and W, and the rotary
axes A, B and C. The respective corresponding axis must
then be programmed in the spline parameter K
(e.g. K3A+0.0953 K2A-0.441 K1A+0.5724).
If the absolute value of a spline parameter K becomes
greater than 9.999 999 99, then the post processor must
output K in exponential notation (e.g. K3X+1.2750 E2).
The TNC can execute a program with spline blocks even
when the working plane is tilted.
Ensure that the transitions from one spline to the next are
as tangential as possible (directional changes of less than
0.1°). The TNC otherwise performs an exact stop if the
filter functions are disabled, resulting in a jolting of the
machine tool. If the filter functions are active, the TNC
decreases the feed rate accordingly at these positions.
The spline starting point can deviate from the end point of
the previous contour by no more than 1 µm. Larger
deviations will provoke an error message.

Input ranges
„ Spline end point: –99 999.9999 to +99 999.9999
„ Spline parameter K: –9.999 999 99 to +9.999 999 99
„ Exponent for spline parameter K: –255 to +255 (whole number).

HEIDENHAIN iTNC 530 235


Programming:
Miscellaneous Functions
7.1 Entering Miscellaneous
7.1 Entering Miscellaneous Functions M and STOP
Functions M and STOP
Fundamentals
With the TNC's miscellaneous functions – also called M functions –
you can affect:
„ Program run, e.g., a program interruption
„ Machine functions, such as switching spindle rotation and coolant
supply on and off
„ Contouring behavior of the tool

The machine tool builder may add some M functions that


are not described in this User’s Manual. Refer to your
machine manual.

You can enter up to two M functions at the end of a positioning block.


The TNC then displays the following dialog question:
Miscellaneous function M?
You usually enter only the number of the M function in the
programming dialog. Some M functions can be programmed with
additional parameters. In this case, the dialog is continued for the
parameter input.
In the Manual Operation and Electronic Handwheel modes of
operation, the M functions are entered with the M soft key.
Please note that some M functions become effective at the start of a
positioning block, and others at the end.
M functions come into effect in the block in which they are called.
Unless the M function is only effective blockwise, it is canceled in a
subsequent block or at the end of the program. Some M functions are
effective only in the block in which they are called.

Entering an M function in a STOP block


If you program a STOP block, the program run or test run is interrupted
at the block, for example for tool inspection. You can also enter an
M function in a STOP block:
8 To program an interruption of program run, press the
STOP key.
8 Enter miscellaneous function M.
Example NC blocks

87 STOP M6

238 7 Programming: Miscellaneous Functions


7.2 Miscellaneous Functions for

7.2 Miscellaneous Functions for Program Run Control, Spindle and Coolant
Program Run Control, Spindle
and Coolant
Overview

M Effect Effective at block start end


M00 Stop program run „
Spindle STOP
Coolant OFF

M01 Optional program STOP „

M02 Stop program run „


Spindle STOP
Coolant OFF
Go to block 1
Clear the status display (depends on
MP7300)

M03 Spindle ON clockwise „

M04 Spindle ON counterclockwise „

M05 Spindle STOP „

M06 Tool change „


Spindle STOP
Program run stop (depends on
MP7440)

M08 Coolant ON „

M09 Coolant OFF „

M13 Spindle ON clockwise „


Coolant ON

M14 Spindle ON counterclockwise „


Coolant ON

M30 Same as M02 „

HEIDENHAIN iTNC 530 239


7.3 Miscellaneous Functions for
7.3 Miscellaneous Functions for Coordinate Data
Coordinate Data
Programming machine-referenced coordinates:
M91/M92
Scale reference point
On the scale, a reference mark indicates the position of the scale
reference point.
XMP
Machine datum
The machine datum is required for the following tasks: X (Z,Y)
„ Defining the limits of traverse (software limit switches)
„ Moving to machine-referenced positions (such as tool change
positions)
„ Setting the workpiece datum
The distance in each axis from the scale reference point to the
machine datum is defined by the machine tool builder in a machine
parameter.

Standard behavior
The TNC references coordinates to the workpiece datum, see “Datum
Setting (Without a 3-D Touch Probe)” on page 64.

Behavior with M91—Machine datum


If you want the coordinates in a positioning block to be referenced to
the machine datum, end the block with M91.

If you program incremental coordinates in an M91 block,


enter them with respect to the last programmed M91
position. If no M91 position is programmed in the active
NC block, then enter the coordinates with respect to the
current tool position.

The coordinate values on the TNC screen are referenced to the


machine datum. Switch the display of coordinates in the status display
to REF (see “Status Displays” on page 45).

240 7 Programming: Miscellaneous Functions


7.3 Miscellaneous Functions for Coordinate Data
Behavior with M92—Additional machine datum

In addition to the machine datum, the machine tool builder


can also define an additional machine-based position as a
reference point.
For each axis, the machine tool builder defines the
distance between the machine datum and this additional
machine datum. Refer to the machine manual for more
information.

If you want the coordinates in a positioning block to be based on the


additional machine datum, end the block with M92.

Radius compensation remains the same in blocks that are


programmed with M91 or M92. The tool length, however,
is not compensated.

Effect
M91 and M92 are effective only in the blocks in which they are
programmed.
Z

M91 and M92 take effect at the start of block.


Z

Workpiece datum Y
If you want the coordinates to always be referenced to the machine Y
datum, you can inhibit datum setting for one or more axes. X
If datum setting is inhibited for all axes, the TNC no longer displays the
soft key DATUM SET in the Manual Operation mode.
X
The figure at right shows coordinate systems with the machine datum
and workpiece datum. M

M91/M92 in the Test Run mode


In order to be able to graphically simulate M91/M92 movements, you
need to activate working space monitoring and display the workpiece
blank referenced to the set datum (see “Showing the Workpiece in
the Working Space” on page 596).

HEIDENHAIN iTNC 530 241


7.3 Miscellaneous Functions for Coordinate Data
Activating the most recently entered datum:
M104
Function
When processing pallet tables, the TNC may overwrite your most
recently entered datum with values from the pallet table. With M104
you can reactivate the original datum.

Effect
M104 is effective only in the blocks in which it is programmed.
M104 becomes effective at the end of block.

Moving to positions in a non-tilted coordinate


system with a tilted working plane: M130
Standard behavior with a tilted working plane
The TNC places the coordinates in the positioning blocks in the tilted
coordinate system.

Behavior with M130


The TNC places coordinates in straight line blocks in the untilted
coordinate system.
The TNC then positions the (tilted) tool to the programmed
coordinates of the untilted system.

Subsequent positioning blocks or fixed cycles are carried


out in a tilted coordinate system. This can lead to problems
in fixed cycles with absolute pre-positioning.
The function M130 is allowed only if the tilted working
plane function is active.

Effect
M130 functions blockwise in straight-line blocks without tool radius
compensation.

242 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for

7.4 Miscellaneous Functions for Contouring Behavior


Contouring Behavior
Smoothing corners: M90
Standard behavior
The TNC stops the tool briefly in positioning blocks without tool radius Y
compensation. This is called an exact stop.
In program blocks with radius compensation (RR/RL), the TNC
automatically inserts a transition arc at outside corners.

Behavior with M90


The tool moves at corners with constant speed: This provides a
smoother, more continuous surface. Machining time is also reduced.
See figure at center right.
Application example: Surface consisting of a series of straight line
segments.

Effect X
M90 is effective only in the blocks in which it is programmed with
M90.
M90 becomes effective at the start of block. Operation with servo lag
must be active.
Y

HEIDENHAIN iTNC 530 243


7.4 Miscellaneous Functions for Contouring Behavior
Insert rounding arc between straight lines: M112
Compatibility
For reasons of compatibility, the M112 function is still available.
However, to define the tolerance for fast contour milling,
HEIDENHAIN recommends the use of the TOLERANCE cycle (see
“Special Cycles” on page 449).

Do not include points when executing non-


compensated line blocks: M124
Standard behavior
The TNC runs all line blocks that have been entered in the active
program.

Behavior with M124


When running non-compensated line blocks with very small point
intervals, you can use parameter T to define a minimum point interval
up to which the TNC will not include points during execution.

Effect
M124 becomes effective at the start of block.
The TNC automatically resets M124 if you select a new program.

Programming M124
If you enter M124 in a positioning block, the TNC continues the dialog
for this block by asking you the minimum distance between points T.
You can also define T through Q parameters (see “Programming: Q
Parameters” on page 505).

244 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Machining small contour steps: M97
Standard behavior
The TNC inserts a transition arc at outside corners. If the contour steps
Y
are very small, however, the tool would damage the contour.
In such cases the TNC interrupts program run and generates the error
message “Tool radius too large.”

Behavior with M97


The TNC calculates the intersection of the contour elements—as at
inside corners—and moves the tool over this point.
Program M97 in the same block as the outside corner.

Instead of M97 you should use the much more powerful


function M120 LA (see “Calculating the radius- X
compensated path in advance (LOOK AHEAD): M120” on
page 250)!

S S

13 16
17

14 15

HEIDENHAIN iTNC 530 245


7.4 Miscellaneous Functions for Contouring Behavior Effect
M97 is effective only in the blocks in which it is programmed.

A corner machined with M97 will not be completely


finished. You may wish to rework the contour with a
smaller tool.

Example NC blocks
5 TOOL DEF L ... R+20 Large tool radius
...
13 L X... Y... R... F... M97 Move to contour point 13
14 L IY-0.5 ... R... F... Machine small contour step 13 to 14
15 L IX+100 ... Move to contour point 15
16 L IY+0.5 ... R... F... M97 Machine small contour step 15 to 16
17 L X... Y... Move to contour point 17

246 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Machining open contours: M98
Standard behavior
The TNC calculates the intersections of the cutter paths at inside
corners and moves the tool in the new direction at those points. Y
If the contour is open at the corners, however, this will result in
incomplete machining.

Behavior with M98


With the miscellaneous function M98, the TNC temporarily suspends
radius compensation to ensure that both corners are completely
machined.

Effect S S
M98 is effective only in the blocks in which it is programmed.
M98 takes effect at the end of block. X

Example NC blocks
Move to the contour points 10, 11 and 12 in succession:

10 L X... Y... RL F
11 L X... IY... M98 Y
12 L IX+ ...

10

11 12
X

HEIDENHAIN iTNC 530 247


7.4 Miscellaneous Functions for Contouring Behavior
Feed rate factor for plunging movements: M103
Standard behavior
The TNC moves the tool at the last programmed feed rate, regardless
of the direction of traverse.

Behavior with M103


The TNC reduces the feed rate when the tool moves in the negative
direction of the tool axis. The feed rate for plunging FZMAX is
calculated from the last programmed feed rate FPROG and a factor
F%:

FZMAX = FPROG x F%

Programming M103
If you enter M103 in a positioning block, the TNC continues the dialog
by asking you the factor F.

Effect
M103 becomes effective at the start of block.
To cancel M103, program M103 once again without a factor.

M103 is also effective in an active tilted working plane.


The feed rate reduction is then effective during traverse in
the negative direction of the tilted tool axis.

Example NC blocks
The feed rate for plunging is to be 20% of the feed rate in the plane.

... Actual contouring feed rate (mm/min):


17 L X+20 Y+20 RL F500 M103 F20 500
18 L Y+50 500
19 L IZ-2.5 100
20 L IY+5 IZ-5 141
21 L IX+50 500
22 L Z+5 500

248 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Feed rate in millimeters per spindle revolution:
M136
Standard behavior
The TNC moves the tool at the programmed feed rate F in mm/min.

Behavior with M136


With M136, the TNC does not move the tool in mm/min, but rather at
the programmed feed rate F in millimeters per spindle revolution. If
you change the spindle speed by using the spindle override, the TNC
changes the feed rate accordingly.

Effect
M136 becomes effective at the start of block.
You can cancel M136 by programming M137.

HEIDENHAIN iTNC 530 249


7.4 Miscellaneous Functions for Contouring Behavior
Feed rate for circular arcs: M109/M110/M111
Standard behavior
The TNC applies the programmed feed rate to the path of the tool
center.

Behavior at circular arcs with M109


The TNC adjusts the feed rate for circular arcs at inside and outside
contours so that the feed rate at the tool cutting edge remains
constant.

Behavior at circular arcs with M110


The TNC keeps the feed rate constant for circular arcs at inside
contours only. At outside contours, the feed rate is not adjusted.

M110 is also effective for the inside machining of circular


arcs using contour cycles. If you define M109 or M110
before calling a machining cycle, the adjusted feed rate is
also effective for circular arcs within machining cycles. The
initial state is restored after finishing or aborting a
machining cycle.

Effect
M109 and M110 become effective at the start of block.
To cancel M109 and M110, enter M111.

Calculating the radius-compensated path in


advance (LOOK AHEAD): M120
Standard behavior
If the tool radius is larger than the contour step that is to be machined
with radius compensation, the TNC interrupts program run and
Y
generates an error message. M97 (see “Machining small contour
steps: M97” on page 245) inhibits the error message, but this results
in dwell marks and will also move the corner.
If the programmed contour contains undercut features, the tool may
damage the contour.

250 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Behavior with M120
The TNC checks radius-compensated paths for contour undercuts and
tool path intersections, and calculates the tool path in advance from
the current block. Areas of the contour that might be damaged by the
tool are not machined (dark areas in figure at right). You can also use
M120 to calculate the radius compensation for digitized data or data
created on an external programming system. This means that
deviations from the theoretical tool radius can be compensated.
Use LA (Look Ahead) behind M120 to define the number of blocks
(maximum: 99) that you want the TNC to calculate in advance. Note
that the larger the number of blocks you choose, the higher the block
processing time will be.

Input
If you enter M120 in a positioning block, the TNC continues the dialog
for this block by asking you the number of blocks LA that are to be
calculated in advance.

Effect
M120 must be located in an NC block that also contains radius
compensation RL or RR. M120 is then effective from this block until
„ radius compensation is canceled, or
„ M120 LA0 is programmed, or
„ M120 is programmed without LA, or
„ another program is called with PGM CALL.
M120 becomes effective at the start of block.

Limitations
„ After an external or internal stop, you can only re-enter the contour
with the function RESTORE POS. AT N.
„ When using the path functions RND and CHF, the blocks before and
after them must contain only coordinates in the working plane.
„ If you want to approach the contour on a tangential path, you must
use the function APPR LCT. The block with APPR LCT must contain
only coordinates of the working plane.
„ If you want to depart the contour on a tangential path, use the
function DEP LCT. The block with DEP LCT must contain only
coordinates of the working plane.

HEIDENHAIN iTNC 530 251


7.4 Miscellaneous Functions for Contouring Behavior
Superimposing handwheel positioning during
program run: M118
Standard behavior
In the program run modes, the TNC moves the tool as defined in the
part program.

Behavior with M118


M118 permits manual corrections by handwheel during program run.
Just program M118 and enter an axis-specific value (linear or rotary
axis) in millimeters.

Input
If you enter M118 in a positioning block, the TNC continues the dialog
for this block by asking you the axis-specific values. The coordinates
are entered with the orange axis direction buttons or the ASCII
keyboard.

Effect
Cancel handwheel positioning by programming M118 once again
without coordinate input.
M118 becomes effective at the start of block.

Example NC blocks
You want to be able to use the handwheel during program run to move
the tool in the working plane X/Y by ±1 mm and in the rotary axis B by
±5° from the programmed value:

L X+0 Y+38.5 RL F125 M118 X1 Y1 B5

M118 is always effective in the original coordinate system,


even if the working plane is tilted.
M118 also functions in the Positioning with MDI mode of
operation!
If M118 is active, the MANUAL OPERATION function is
not available after a program interruption.

252 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Retraction from the contour in the tool-axis
direction: M140
Standard behavior
In the program run modes, the TNC moves the tool as defined in the
part program.

Behavior with M104


With M140 MB (move back) you can enter a path in the direction of
the tool axis for departure from the contour.

Input
If you enter M140 in a positioning block, the TNC continues the dialog
and asks for the desired path of tool departure from the contour. Enter
the requested path that the tool should follow when departing the
contour, or press the MAX soft key to move to the limit of the traverse
range.
In addition, you can program the feed rate at which the tool traverses
the entered path. If you do not enter a feed rate, the TNC moves the
tool along the entered path at rapid traverse.

Effect
M140 is effective only in the block in which it is programmed.
M140 becomes effective at the start of the block.

Example NC blocks
Block 250: Retract the tool 50 mm from the contour.
Block 251: Move the tool to the limit of the traverse range.

250 L X+0 Y+38.5 F125 M140 MB 50 F750


251 L X+0 Y+38.5 F125 M140 MB MAX

M140 is also effective if the tilted-working-plane function,


M114 or M128 is active. On machines with tilting heads,
the TNC then moves the tool in the tilted coordinate
system.
With the FN18: SYSREAD ID230 NR6 function you can find
the distance from the current position to the limit of the
traverse range in the positive tool axis.
With M140 MB MAX you can only retract in positive direction.

HEIDENHAIN iTNC 530 253


7.4 Miscellaneous Functions for Contouring Behavior
Suppressing touch probe monitoring: M141
Standard behavior
When the stylus is deflected, the TNC outputs an error message as
soon as you attempt to move a machine axis.

Behavior with M141


The TNC moves the machine axes even if the touch probe is
deflected. This function is required if you wish to write your own
measuring cycle in connection with measuring cycle 3 in order to
retract the stylus by means of a positioning block after it has been
deflected.

If you use M141, make sure that you retract the touch
probe in the correct direction.
M141 functions only for movements with straight-line
blocks.

Effect
M141 is effective only in the block in which it is programmed.
M141 becomes effective at the start of the block.

254 7 Programming: Miscellaneous Functions


7.4 Miscellaneous Functions for Contouring Behavior
Delete modal program information: M142
Standard behavior
The TNC resets modal program information in the following situations:
„ Select a new program.
„ Execute a miscellaneous function M02, M30, or an END PGM block
(depending on MP7300).
„ Defining cycles for basic behavior with a new value

Behavior with M142


All modal program information except for basic rotation, 3-D rotation
and Q parameters are reset.

The function M142 is not permitted during a mid-program


startup.

Effect
M142 is effective only in the block in which it is programmed.
M142 becomes effective at the start of the block.

Delete basic rotation: M143


Standard behavior
The basic rotation remains in effect until it is reset or is overwritten
with a new value.

Behavior with M143


The TNC erases a programmed basic rotation from the NC program.

The function M143 is not permitted during a mid-program


startup.

Effect
M143 is effective only in the block in which it is programmed.
M143 becomes effective at the start of the block.

HEIDENHAIN iTNC 530 255


7.4 Miscellaneous Functions for Contouring Behavior
Automatically retract tool from the contour at an
NC stop: M148
Standard behavior
At an NC stop the TNC stops all traverse movements. The tool stops
moving at the point of interruption.

Behavior with M148

The M148 function must be enabled by the machine tool


builder.

The TNC retracts the tool by 0.1 mm in the direction of the tool axis if,
in the LIFTOFF column of the tool table, you set the parameter Y for the
active tool (see “Tool table: Standard tool data” on page 154).

Remember that, especially on curved surfaces, the


surface can be damaged during return to the contour. Back
the tool off before returning to the contour!

Effect
M148 remains in effect until deactivated with M149.
M148 becomes effective at the start of block, M149 at the end of
block.

256 7 Programming: Miscellaneous Functions


7.5 Miscellaneous Functions for Rotary Axes
7.5 Miscellaneous Functions for
Rotary Axes
Feed rate in mm/min on rotary axes A, B, C:
M116 (software option 1)
Standard behavior
The TNC interprets the programmed feed rate in a rotary axis in
degrees per minute. The contouring feed rate therefore depends on
the distance from the tool center to the center of the rotary axis.
The larger this distance becomes, the greater the contouring feed
rate.

Feed rate in mm/min on rotary axes with M116

The machine geometry must be entered in Machine


Parameters 7510 and following by the machine tool
builder.
M116 works only on rotary tables. M116 cannot be used
with swivel heads. If your machine is equipped with a
table/head combination, the TNC ignores the swivel-head
rotary axes.
M116 is also effective in an active tilted working plane.

The TNC interprets the programmed feed rate in a rotary axis in mm/
min. With this miscellaneous function, the TNC calculates the feed
rate for each block at the start of the block. With a rotary axis, the feed
rate is not changed during execution of the block even if the tool
moves toward the center of the rotary axis.

Effect
M116 is effective in the working plane.
With M117 you can reset M116. M116 is also canceled at the end of
the program.
M116 becomes effective at the start of block.

HEIDENHAIN iTNC 530 257


7.5 Miscellaneous Functions for Rotary Axes
Shorter-path traverse of rotary axes: M126
Standard behavior
The standard behavior of the TNC while positioning rotary axes whose
display has been reduced to values less than 360° depends on
Machine Parameter 7682. In MP7682 is set whether the TNC should
consider the difference between nominal and actual position, or
whether the TNC should always (even without M126) choose the
shortest path traverse to the programmed position. Examples:

Actual position Nominal position Traverse


350° 10° –340°

10° 340° +330°

Behavior with M126


With M126, the TNC will move the axis on the shorter path of traverse
if you reduce display of a rotary axis to a value less than 360°.
Examples:
Actual position Nominal position Traverse
350° 10° +20°

10° 340° –30°

Effect
M126 becomes effective at the start of block.
To cancel M126, enter M127. At the end of program, M126 is
automatically canceled.

258 7 Programming: Miscellaneous Functions


7.5 Miscellaneous Functions for Rotary Axes
Reducing display of a rotary axis to a value less
than 360°: M94
Standard behavior
The TNC moves the tool from the current angular value to the
programmed angular value.
Example:

Current angular value: 538°


Programmed angular value: 180°
Actual distance of traverse: –358°

Behavior with M94


At the start of block, the TNC first reduces the current angular value to
a value less than 360° and then moves the tool to the programmed
value. If several rotary axes are active, M94 will reduce the display of
all rotary axes. As an alternative you can enter a rotary axis after M94.
The TNC then reduces the display only of this axis.
Example NC blocks
To reduce display of all active rotary axes:

L M94

To reduce display of the C axis only:

L M94 C

To reduce display of all active rotary axes and then move the tool in
the C axis to the programmed value:

L C+180 FMAX M94

Effect
M94 is effective only in the block in which it is programmed.
M94 becomes effective at the start of block.

HEIDENHAIN iTNC 530 259


7.5 Miscellaneous Functions for Rotary Axes
Automatic compensation of machine geometry
when working with tilted axes: M114 (software
option 2)
Standard behavior
The TNC moves the tool to the positions given in the part program. If B
the position of a tilted axis changes in the program, the resulting offset B
Z dx
in the linear axes must be calculated by a postprocessor and traversed dz
in a positioning block. As the machine geometry is also relevant, the
NC program must be calculated separately for each machine tool.

Behavior with M114

The machine geometry must be entered in Machine


Parameters 7510 and following by the machine tool
builder. dB

If the position of a controlled tilted axis changes in the program, the


TNC automatically compensates the tool offset by a 3-D length X
compensation. As the geometry of the individual machine tools is set
in machine parameters, the TNC also compensates machine-specific
offsets automatically. Programs only need to be calculated by the
postprocessor once, even if they are being run on different machines
with TNC control.
If your machine tool does not have controlled tilted axes (head tilted
manually or positioned by the PLC), you can enter the current valid
swivel head position after M114 (e.g. M114 B+45, Q parameters
permitted).
The radius compensation must be calculated by a CAD system or by a
postprocessor. A programmed radius compensation RL/RR will result
in an error message.
If the tool length compensation is calculated by the TNC, the
programmed feed rate refers to the point of the tool. Otherwise it
refers to the tool datum.

If your machine tool is equipped with a swivel head that


can be tilted under program control, you can interrupt
program run and change the position of the tilted axis, for
example with the handwheel.
With the RESTORE POS. AT N function, you can then
resume program run at the block at which the part
program was interrupted. If M114 is active, the TNC
automatically calculates the new position of the tilted axis.
If you wish to use the handwheel to change the position
of the tilted axis during program run, use M118 in
conjunction with M128.

Effect
M114 becomes effective at the start of block, M115 at the end of
block. M114 is not effective when tool radius compensation is active.
To cancel M114, enter M115. At the end of program, M114 is
automatically canceled.

260 7 Programming: Miscellaneous Functions


7.5 Miscellaneous Functions for Rotary Axes
Maintaining the position of the tool tip when
positioning with tilted axes (TCPM): M128
(software option 2)
Standard behavior B
The TNC moves the tool to the positions given in the part program. If
the position of a tilted axis changes in the program, the resulting offset
in the linear axes must be calculated and traversed in a positioning Z
block (see figure for M114).
X
Behavior with M128 (TCPM: Tool Center Point Management)

The machine geometry must be entered in Machine Z


Parameters 7510 and following by the machine tool
builder.

If the position of a controlled tilted axis changes in the program, the


position of the tool tip to the workpiece remains the same.
If you wish to use the handwheel to change the position of the tilted X
axis during program run, use M128 in conjunction with M118.
Handwheel positioning in a machine-based coordinate system is
possible when M128 is active.

For tilted axes with Hirth coupling: Do not change the


position of the tilted axis until after retracting the tool.
Otherwise you might damage the contour.

After M128 you can program another feed rate, at which the TNC will
carry out the compensation movements in the linear axes. If you
program no feed rate here, or if you program a larger feed rate than is
defined in MP7471, the feed rate from MP7471 will be effective.

Reset M128 before positioning with M91 or M92 and before a


TOOL CALL.
To avoid contour gouging you must use only spherical
cutters with M128.
The tool length must refer to the spherical center of the
tool tip.
If M128 is active, the TNC shows the symbol in the
status display.

HEIDENHAIN iTNC 530 261


7.5 Miscellaneous Functions for Rotary Axes M128 on tilting tables
If you program a tilting table movement while M128 is active, the TNC
rotates the coordinate system accordingly. If, for example, you rotate
the C axis by 90° (through a positioning command or datum shift) and
then program a movement in the X axis, the TNC executes the
movement in the machine axis Y.
The TNC also transforms the defined datum, which has been shifted
by the movement of the rotary table.

M128 with 3-D tool compensation


If you carry out a 3-D tool compensation with active M128 and active
radius compensation RL/RR, the TNC will automatically position the
rotary axes for certain machine geometrical configurations (Peripheral
milling,see “Three-Dimensional Tool Compensation (Software
Option 2)” on page 171).

Effect
M128 becomes effective at the start of block, M129 at the end of block.
M128 is also effective in the manual operating modes and remains
active even after a change of mode. The feed rate for the
compensation movement will be effective until you program a new
feed rate or until you reset M128 with M129.
To cancel M128 enter M129. The TNC also resets M128 if you select a
new program in a program run operating mode.
Example NC blocks
Feed rate of 1000 mm/min for compensation movements.

L X+0 Y+38.5 IB-15 RL F125 M128 F1000

262 7 Programming: Miscellaneous Functions


7.5 Miscellaneous Functions for Rotary Axes
Exact stop at corners with nontangential
transitions: M134
Standard behavior
The standard behavior of the TNC during positioning with rotary axes
is to insert a transitional element in nontangential contour transitions.
The contour of the transitional element depends on the acceleration,
the rate of acceleration (jerk), and the defined tolerance for contour
deviation.

With MP7440 you can change the standard behavior of the


TNC so that M134 becomes active automatically
whenever a program is selected (see “General User
Parameters” on page 610).

Behavior with M134


The TNC moves the tool during positioning with rotary axes so as to
perform an exact stop at nontangential contour transitions.

Effect
M134 becomes effective at the start of block, M135 at the end of
block.
You can reset M134 with M135. The TNC also resets M134 if you
select a new program in a program run operating mode.

Selecting tilting axes: M138


Standard behavior
The TNC performs M114 and M128, and tilts the working plane, only
in those axes for which the machine tool builder has set the
appropriate machine parameters.

Behavior with M138


The TNC performs the above functions only in those tilting axes that
you have defined using M138.

Effect
M138 becomes effective at the start of block.
You can reset M138 by reprogramming it without entering any axes.
Example NC blocks
Perform the above-mentioned functions only in the tilting axis C:

L Z+100 R0 FMAX M138 C

HEIDENHAIN iTNC 530 263


7.5 Miscellaneous Functions for Rotary Axes
Compensating the machine’s kinematic
configuration for ACTUAL/NOMINAL positions
at end of block: M144 (software option 2)
Standard behavior
The TNC moves the tool to the positions given in the part program. If
the position of a tilted axis changes in the program, the resulting offset
in the linear axes must be calculated, and traversed in a positioning
block.

Behavior with M144


The TNC calculates into the position value any changes in the
machine’s kinematic configuration which result, for example, from
adding a spindle attachment. If the position of a controlled tilted axis
changes, the position of the tool tip to the workpiece is also changed.
The resulting offset is calculated in the position display.

Positioning blocks with M91/M92 are permitted if M144 is


active.
The position display in the operating modes FULL
SEQUENCE and SINGLE BLOCK does not change until the
tilting axes have reached their final position.

Effect
M144 becomes effective at the start of the block. M144 does not
function in connection with M114, M128 or a tilted working plane.
You can cancel M144 by programming M145.

The machine geometry must be defined by the machine


tool builder in Machine Parameters 7502 and following.
The machine tool builder decides upon the behavior of the
machine in the automatic and manual operating modes.
Refer to your machine manual.

264 7 Programming: Miscellaneous Functions


7.6 Miscellaneous Functions for

7.6 Miscellaneous Functions for Laser Cutting Machines


Laser Cutting Machines
Principle
The TNC can control the cutting efficiency of a laser by transferring
voltage values through the S-analog output. You can influence laser
efficiency during program run through the miscellaneous functions
M200 to M204.
Entering miscellaneous functions for laser cutting machines
If you enter an M function for laser cutting machines in a positioning
block, the TNC continues the dialog by asking you the required
parameters for the programmed function.
All miscellaneous functions for laser cutting machines become
effective at the start of the block.

Output the programmed voltage directly: M200


Behavior with M200
The TNC outputs the value programmed after M200 as the voltage V.
Input range: 0 to 9999 V
Effect
M200 remains in effect until a new voltage is output through M200,
M201, M202, M203 or M204.

Output voltage as a function of distance: M201


Behavior with M201
M201 outputs the voltage in dependence on the distance to be
covered. The TNC increases or decreases the current voltage linearly
to the value programmed for V.
Input range: 0 to 9999 V
Effect
M201 remains in effect until a new voltage is output through M200,
M201, M202, M203 or M204.

Output voltage as a function of speed: M202


Behavior with M202
The TNC outputs the voltage as a function of speed. In the machine
parameters, the machine tool builder defines up to three characteristic
curves FNR in which specific feed rates are assigned to specific
voltages. Use miscellaneous function M202 to select the curve FNR
from which the TNC is to determine the output voltage.
Input range: 1 to 3
Effect
M202 remains in effect until a new voltage is output through M200,
M201, M202, M203 or M204.

HEIDENHAIN iTNC 530 265


7.6 Miscellaneous Functions for Laser Cutting Machines
Output voltage as a function of time (time-
dependent ramp): M203
Behavior with M203
The TNC outputs the voltage V as a function of the time TIME. The
TNC increases or decreases the current voltage linearly to the value
programmed for V within the time programmed for TIME.

Input range
Voltage V: 0 to 9.999 Volt
TIME: 0 to 1.999 seconds
Effect
M203 remains in effect until a new voltage is output through M200,
M201, M202, M203 or M204.

Output voltage as a function of time (time-


dependent pulse): M204
Behavior with M204
The TNC outputs a programmed voltage as a pulse with a
programmed duration TIME.

Input range
Voltage V: 0 to 9.999 Volt
TIME: 0 to 1.999 seconds

Effect
M204 remains in effect until a new voltage is output through M200,
M201, M202, M203 or M204.

266 7 Programming: Miscellaneous Functions


Programming: Cycles
8.1 Working with Cycles
8.1 Working with Cycles

Frequently recurring machining cycles that comprise several working


steps are stored in the TNC memory as standard cycles. Coordinate
transformations and other special cycles are also provided as standard
cycles (for an overview: see “Group of cycles” on page 270).
Fixed cycles with numbers 200 and above use Q parameters as
transfer parameters. Parameters with specific functions that are
required in several cycles always have the same number: For
example, Q200 is always assigned the set-up clearance, Q202 the
plunging depth, etc.

Fixed cycles sometimes execute extensive operations.


For safety reasons, you should run a graphical program
test before machining (see “Test Run” on page 563).

Machine-specific cycles
In addition to the HEIDENHAIN cycles, many machine tool builders
offer their own cycles in the TNC. These cycles are available in a
separate cycle-number range:
„ Cycles 300 to 399
Machine-specific cycles that are to be defined through the CYCLE
DEF key
„ Cycles 500 to 599
Machine-specific cycles that are to be defined through the TOUCH
PROBE key

Refer to your machine manual for a description of the


specific function.

Sometimes, machine-specific cycles also use transfer parameters,


which HEIDENHAIN already use in the standard cycles. The TNC
executes DEF-active cycles as soon as they are defined (See also
“Calling cycles” on page 271) It executes CALL-active cycles only
after they have been called (See also “Calling cycles” on page 271).
When DEF-active cycles and CALL-active cycles are used
simultaneously, it is important to prevent overwriting of transfer
parameters already in use. Use the following procedure:
8 As a rule, always program DEF-active cycles before CALL-active
cycles.
8 If you do want to program a DEF-active cycle between the definition
and call of a CALL-active cycle, do it only if there is no common use
of specific transfer parameters.

268 8 Programming: Cycles


8.1 Working with Cycles
Defining a cycle using soft keys
8 The soft-key row shows the available groups of
cycles.
8 Press the soft key for the desired group of cycles, for
example DRILLING for the drilling cycles.
8 Select the desired cycle, for example THREAD
MILLING. The TNC initiates the programming dialog
and asks all required input values. At the same time a
graphic of the input parameters is displayed in the
right screen window. The parameter that is asked for
in the dialog prompt is highlighted
8 Enter all parameters requested by the TNC and
conclude each entry with the ENT key.
8 The TNC ends the dialog when all required data has
been entered.

Defining a cycle using the GOTO function


8 The soft-key row shows the available groups of
cycles.
8 The TNC shows an overview of cycles in a pop-up
window.
8 Choose the desired cycle with the arrow keys, or
8 Choose the desired cycle with CTRL and the arrow
keys (for pagewise scrolling), or
8 Enter the cycle number and confirm it with the ENT
key. The TNC then initiates the cycle dialog as
described above.

Example NC blocks
7 CYCL DEF 200 DRILLING
Q200=2 ;SET-UP CLEARANCE
Q201=3 ;DEPTH
Q206=150 ;FEED RATE FOR PLUNGING
Q202=5 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q211=0.25 ;DWELL TIME AT DEPTH

HEIDENHAIN iTNC 530 269


8.1 Working with Cycles
Group of cycles Soft key
Cycles for pecking, reaming, boring, counterboring,
tapping and thread milling

Cycles for milling pockets, studs and slots

Cycles for producing point patterns, such as circular or


linear hole patterns

SL (Subcontour List) cycles which allow the contour-


parallel machining of relatively complex contours
consisting of several overlapping subcontours,
cylinder surface interpolation

Cycles for face milling of flat or twisted surfaces

Coordinate transformation cycles which enable datum


shift, rotation, mirror image, enlarging and reducing for
various contours

Special cycles such as dwell time, program call,


oriented spindle stop and tolerance

If you use indirect parameter assignments in fixed cycles


with numbers greater than 200 (e.g. Q210 = Q1), any
change in the assigned parameter (e.g. Q1) will have no
effect after the cycle definition. Define the cycle
parameter (e.g. Q210) directly in such cases.
If you define a feed-rate parameter for fixed cycles greater
than 200, then instead of entering a numerical value you
can use soft keys to assign the feed rate defined in the
TOOL CALL block (FAUTO soft key), or rapid traverse (FMAX
soft key).
If you want to delete a block that is part of a cycle, the TNC
asks you whether you want to delete the whole cycle.

270 8 Programming: Cycles


8.1 Working with Cycles
Calling cycles

Prerequisites
The following data must always be programmed before a
cycle call:
„ BLK FORM for graphic display (needed only for test
graphics)
„ Tool call
„ Direction of spindle rotation (M functions M3/M4)
„ Cycle definition (CYCL DEF)
For some cycles, additional prerequisites must be
observed. They are detailed in the descriptions for each
cycle.

The following cycles become effective automatically as soon as they


are defined in the part program. These cycles cannot and must not be
called:
„ Cycle 220 for point patterns on circles and Cycle 221 for point
patterns on lines
„ SL Cycle 14 CONTOUR GEOMETRY
„ SL Cycle 20 CONTOUR DATA
„ Cycle 32 TOLERANCE
„ Coordinate Transformation Cycles
„ Cycle 9 DWELL TIME
You can call all other cycles with the functions described as follows.

Calling a cycle with CYCL CALL


The CYCL CALL function calls the fixed cycle that was last defined. The
starting point of the cycle is the position that was programmed last
before the CYCL CALL block.
8 To program the cycle call, press the CYCL CALL key.
8 Press the CYCL CALL M soft key to enter a cycle call.
8 If necessary, enter the miscellaneous function M (for
example M3 to switch the spindle on), or end the
dialog by pressing the END key

Calling a cycle with CYCL CALL PAT


The CYCL CALL PAT function calls the most recently defined fixed cycle
at all positions defined in a point table (see “Point Tables” on page
274).

HEIDENHAIN iTNC 530 271


8.1 Working with Cycles Calling a cycle with CYCL CALL POS
The CYCL CALL POS function calls the fixed cycle that was last defined.
The starting point of the cycle is the position that you defined in the
CYCL CALL POS block.
The TNC moves using positioning logic to the position defined in the
CYCL CALL POS block.
„ If the current position in the tool axis is greater than the top surface
of the workpiece (Q203), the iTNC moves the tool to the
programmed position first in the machining plane and then in the
tool axis.
„ If the current tool position in the tool axis is below the top surface
of the workpiece (Q203), the TNC moves the tool to the
programmed position first in the tool axis to the clearance height and
then in the working plane to the programmed position.

Three coordinate axes must always be programmed in the


CYCL CALL POS block. With the coordinate in the tool axis
you can easily change the starting position. It serves as an
additional datum shift.
The feed rate most recently defined in the CYCL CALL POS
block applies only for traverse to the start position
programmed in this block.
As a rule, the TNC moves without radius compensation
(R0) to the position defined in the CYCL CALL POS block.
If you use CYCL CALL POS to call a cycle in which a start
position is defined (for example Cycle 212), then the
position defined in the cycles serves as an additional shift
on the position defined in the CYCL CALL POS block. You
should therefore always define the start position to be set
in the cycle as 0.

Cycle call with M99/89


The M99 function, which is active only in the block in which it is
programmed, calls the last defined fixed cycle once. You can program
M99 at the end of a positioning block. The TNC moves to this position
and then calls the last defined fixed cycle.
If the TNC is to execute the cycle automatically after every positioning
block, program the first cycle call with M89 (depending on machine
parameter 7440).
To cancel the effect of M89, program:
„ M99 in the positioning block in which you move to the last starting
point, or
„ Define with CYCL DEF a new fixed cycle

272 8 Programming: Cycles


8.1 Working with Cycles
Working with the secondary axes U/V/W
The TNC performs infeed movements in the axis that was defined in
the TOOL CALL block as the spindle axis. It performs movements in
the working plane only in the principal axes X, Y or Z. Exceptions:
„ You program secondary axes for the side lengths in cycles 3 SLOT
MILLING and 4 POCKET MILLING.
„ You program secondary axes in the first block of the contour
geometry subprogram of an SL cycle.
„ In Cycles 5 (CIRCULAR POCKET), 251 (RECTANGULAR POCKET),
252 (CIRCULAR POCKET), 253 (SLOT) and 254 (CIRCULAR SLOT),
the TNC machines the cycle in the axis that you programmed in the
last positioning block before the cycle call. When tool axis Z is active,
the following combinations are permissible:
„ X/Y
„ X/V
„ U/Y
„ U/V

HEIDENHAIN iTNC 530 273


8.2 Point Tables
8.2 Point Tables
Function
You should create a point table whenever you want to run a cycle, or
several cycles in sequence, on an irregular point pattern.
If you are using drilling cycles, the coordinates of the working plane in
the point table represent the hole centers. If you are using milling
cycles, the coordinates of the working plane in the point table
represent the starting-point coordinates of the respective cycle (e.g.
center-point coordinates of a circular pocket). Coordinates in the
spindle axis correspond to the coordinate of the workpiece surface.

Creating a point table


Select the Programming and Editing mode of operation.

To call the file manager, press the PGM MGT key.

FILE NAME ?

Enter the name and file type of the point table and
NEW.PNT confirm your entry with the ENT key.

To select the unit of measure, press the MM or INCH


soft key. The TNC changes to the program blocks
window and displays an empty point table.

With the soft key INSERT LINE, insert new lines and
enter the coordinates of the desired machining
position.

Repeat the process until all desired coordinates have been entered.

With the soft keys X OFF/ON, Y OFF/ON, Z OFF/ON


(second soft-key row), you can specify which coordinates
you want to enter in the point table.

274 8 Programming: Cycles


8.2 Point Tables
Selecting a point table in the program
In the Programming and Editing mode of operation, select the
program for which you want to activate the point table:

Press the PGM CALL key to call the function for


selecting the point table.

Press the POINT TABLE soft key.

Enter the name of the point table and confirm your entry with the END
key. If the point table is not stored in the same directory as the NC
program, you must enter the complete path.

Example NC block
7 SEL PATTERN “TNC:\DIRKT5\NUST35.PNT”

HEIDENHAIN iTNC 530 275


8.2 Point Tables
Calling a cycle in connection with point tables

With CYCL CALL PAT the TNC runs the point table that you
last defined (even if you defined the point table in a
program that was nested with CALL PGM).

If you want the TNC to call the last defined fixed cycle at the points
defined in a point table, then program the cycle call with CYCLE CALL
PAT:
8 To program the cycle call, press the CYCL CALL key.
8 Press the CYCL CALL PAT soft key to call a point
table.
8 Enter the feed rate at which the TNC is to move from
point to point (if you make no entry the TNC will move
at the last programmed feed rate; FMAX not valid).
8 If required, enter a miscellaneous function M, then
confirm with the END key.
The TNC moves the tool back to the clearance height over each
successive starting point (clearance height = the spindle axis
coordinate for cycle call). To use this procedure for cycles above Cycle
199, you must define the 2nd set-up clearance (Q204) to equal 0.
If you want to move at reduced feed rate when pre-positioning in the
spindle axis, use the miscellaneous function M103 (see “Feed rate
factor for plunging movements: M103” on page 248).

276 8 Programming: Cycles


8.2 Point Tables
Effect of the point tables with SL cycles and Cycle 12
The TNC interprets the points as an additional datum shift.

Effect of the point tables with Cycles 200 to 208 and 262 to 267
The TNC interprets the points of the working plane as coordinates of
the hole centers. If you want to use the coordinate defined in the point
table for the spindle axis as the starting point coordinate, you must
define the workpiece surface coordinate (Q203) as 0.

Effect of the point tables with Cycles 210 to 215


The TNC interprets the points as an additional datum shift. If you want
to use the points defined in the point table as starting-point
coordinates, you must define the starting points and the workpiece
surface coordinate (Q203) in the respective milling cycle as 0.

Effect of the point tables with Cycles 251 to 254


The TNC interprets the points of the working plane as coordinates of
the cycle starting point. If you want to use the coordinate defined in
the point table for the spindle axis as the starting point coordinate, you
must define the workpiece surface coordinate (Q203) as 0.

Applies to all 2xx cycles


As soon as the current tool axis position lies below the
clearance height in withCYCL CALL PAT, the TNC displays
the error message PNT: Clearance plane too small. The
clearance height is calculated from the sum of the
workpiece surface coordinate (Q203) and the 2nd setup
(Q204, or setup clearance Q200, if the value of Q200 is
greater than Q204).

HEIDENHAIN iTNC 530 277


8.3 Cycles for Drilling, Tapping and
8.3 Cycles for Drilling, Tapping and Thread Milling
Thread Milling
Overview

Cycle Soft key


200 DRILLING
With automatic pre-positioning, 2nd set-up clearance

201 REAMING
With automatic pre-positioning, 2nd set-up clearance

202 BORING
With automatic pre-positioning, 2nd set-up clearance

203 UNIVERSAL DRILLING


With automatic pre-positioning, 2nd set-up clearance,
chip breaking, and decrementing

204 BACK BORING


With automatic pre-positioning, 2nd set-up clearance

205 UNIVERSAL PECKING


With automatic pre-positioning, 2nd set-up clearance,
chip breaking, and advanced stop distance

208 BORE MILLING


With automatic pre-positioning, 2nd set-up clearance

206 TAPPING NEW


With a floating tap holder, with automatic
pre-positioning, 2nd set-up clearance

207 RIGID TAPPING NEW


Without a floating tap holder, with automatic
pre-positioning, 2nd set-up clearance

209 TAPPING W/ CHIP BRKG


Without a floating tap holder, with automatic
pre-positioning, 2nd set-up clearance, chip breaking

262 THREAD MILLING


Cycle for milling a thread in pre-drilled material

263 THREAD MLLNG/CNTSNKG


Cycle for milling a thread in pre-drilled material and
machining a countersunk chamfer

264 THREAD DRILLING/MLLNG


Cycle for drilling into the solid material with
subsequent milling of the thread with a tool

278 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
Cycle Soft key
265 HEL.THREAD DRLG/MLG
Cycle for milling the thread into the solid material

267 OUTSIDE THREAD MLLNG


Cycle for milling an external thread and machining a
countersunk chamfer

HEIDENHAIN iTNC 530 279


8.3 Cycles for Drilling, Tapping and Thread Milling
DRILLING (Cycle 200)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the set-up clearance above the workpiece surface.
2 The tool drills to the first plunging depth at the programmed feed Z Q206
rate F.
3 The TNC returns the tool at FMAX to the setup clearance, dwells
there (if a dwell time was entered), and then moves at FMAX to Q210
the setup clearance above the first plunging depth. Q200 Q204
4 The tool then advances with another infeed at the programmed Q203
feed rate F. Q202
5 The TNC repeats this process (2 to 4) until the programmed depth Q201
is reached.
6 At the hole bottom, the tool path is retraced to set-up clearance
or—if programmed—to the 2nd set-up clearance in rapid traverse
FMAX.
X
Before programming, note the following:
Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

280 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface. Enter a
positive value. 10 L Z+100 R0 FMAX

8 Depth Q201 (incremental value): Distance between 11 CYCL DEF 200 DRILLING
workpiece surface and bottom of hole (tip of drill Q200=2 ;SET-UP CLEARANCE
taper).
Q201=-15 ;DEPTH
8 Feed rate for plunging Q206: Traversing speed of
the tool during drilling in mm/min. Q206=250 ;FEED RATE FOR PLUNGING
Q202=5 ;PLUNGING DEPTH
8 Plunging depth Q202 (incremental value): Infeed per
cut. The depth does not have to be a multiple of the Q210=0 ;DWELL TIME AT TOP
plunging depth. The TNC will go to depth in one
Q203=+20 ;SURFACE COORDINATE
movement if:
Q204=100 ;2ND SET-UP CLEARANCE
„ the plunging depth is equal to the depth
„ the plunging depth is greater than the depth Q211=0.1 ;DWELL TIME AT DEPTH
12 L X+30 Y+20 FMAX M3
8 Dwell time at top Q210: Time in seconds that the
tool remains at set-up clearance after having been 13 CYCL CALL
retracted from the hole for chip release.
14 L X+80 Y+50 FMAX M99
8 Workpiece surface coordinate Q203 (absolute 15 L Z+100 FMAX M2
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Dwell time at depth Q211: Time in seconds that the
tool remains at the hole bottom.

HEIDENHAIN iTNC 530 281


8.3 Cycles for Drilling, Tapping and Thread Milling
REAMING (Cycle 201)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 The tool reams to the entered depth at the programmed feed Z Q206
rate F.
3 If programmed, the tool remains at the hole bottom for the entered
dwell time.
4 The tool then retracts to set-up clearance at the feed rate F, and Q200 Q204
from there—if programmed—to the 2nd set-up clearance in Q203
FMAX.
Q201
Before programming, note the following:
Q208
Program a positioning block for the starting point (hole
Q211
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH X
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

282 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
10 L Z+100 R0 FMAX
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of hole. 11 CYCL DEF 201 REAMING

8 Feed rate for plunging Q206: Traversing speed of Q200=2 ;SET-UP CLEARANCE
the tool during reaming in mm/min. Q201=-15 ;DEPTH
8 Dwell time at depth Q211: Time in seconds that the Q206=100 ;FEED RATE FOR PLUNGING
tool remains at the hole bottom.
Q211=0.5 ;DWELL TIME AT DEPTH
8 Retraction feed rate Q208: Traversing speed of the Q208=250 ;RETRACTION FEED RATE
tool in mm/min when retracting from the hole. If you
enter Q208 = 0, the tool retracts at the reaming feed Q203=+20 ;SURFACE COORDINATE
rate. Q204=100 ;2ND SET-UP CLEARANCE
8 Workpiece surface coordinate Q203 (absolute 12 L X+30 Y+20 FMAX M3
value): Coordinate of the workpiece surface.
13 CYCL CALL
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision 14 L X+80 Y+50 FMAX M9
between tool and workpiece (clamping devices) can 15 L Z+100 FMAX M2
occur.

HEIDENHAIN iTNC 530 283


8.3 Cycles for Drilling, Tapping and Thread Milling
BORING (Cycle 202)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.
Z Q206
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the set-up clearance above the workpiece surface.
2 The tool drills to the programmed depth at the feed rate for
plunging. Q200 Q204
Q203
3 If programmed, the tool remains at the hole bottom for the entered
dwell time with active spindle rotation for cutting free.
Q201 Q208
4 The TNC then orients the spindle to the position that is defined in
parameter Q336. Q211
5 If retraction is selected, the tool retracts in the programmed
direction by 0.2 mm (fixed value).
6 The tool then retracts to set-up clearance at the retraction rate, and X
from there—if programmed—to the 2nd set-up clearance at
FMAX. If Q214=0, the tool point remains on the wall of the hole.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
After the cycle is completed, the TNC restores the coolant
and spindle conditions that were active before the cycle
call.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

284 8 Programming: Cycles


Example:

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
10 L Z+100 R0 FMAX
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of hole. 11 CYCL DEF 202 BORING

8 Feed rate for plunging Q206: Traversing speed of Q200=2 ;SET-UP CLEARANCE
the tool during boring in mm/min. Q201=-15 ;DEPTH
8 Dwell time at depth Q211: Time in seconds that the Q206=100 ;FEED RATE FOR PLUNGING
tool remains at the hole bottom.
Q211=0.5 ;DWELL TIME AT DEPTH
8 Retraction feed rate Q208: Traversing speed of the Q208=250 ;RETRACTION FEED RATE
tool in mm/min when retracting from the hole. If you
enter Q208 = 0, the tool retracts at feed rate for Q203=+20 ;SURFACE COORDINATE
plunging. Q204=100 ;2ND SET-UP CLEARANCE
8 Workpiece surface coordinate Q203 (absolute Q214=1 ;DISENGAGING DIRECTN
value): Coordinate of the workpiece surface.
Q336=0 ;ANGLE OF SPINDLE
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision 12 L X+30 Y+20 FMAX M3
between tool and workpiece (clamping devices) can 13 CYCL CALL
occur.
14 L X+80 Y+50 FMAX M99
8 Disengaging direction (0/1/2/3/4) Q214: Determine
the direction in which the TNC retracts the tool at the
hole bottom (after spindle orientation).

0 Do not retract tool


1 Retract tool in the negative ref. axis direction
2 Retract tool in the neg. secondary axis direction
3 Retract tool in the positive ref. axis direction
4 Retract tool in the pos. secondary axis direction

Danger of collision
Select a disengaging direction in which the tool moves
away from the edge of the hole.
Check the position of the tool tip when you program a
spindle orientation to the angle that you enter in Q336 (for
example, in the Positioning with Manual Data Input mode
of operation). Set the angle so that the tool tip is parallel to
a coordinate axis.
During retraction the TNC automatically takes an active
rotation of the coordinate system into account.

8 Angle for spindle orientation Q336 (absolute


value): Angle at which the TNC positions the tool
before retracting it.

HEIDENHAIN iTNC 530 285


8.3 Cycles for Drilling, Tapping and Thread Milling
UNIVERSAL DRILLING (Cycle 203)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 The tool drills to the first plunging depth at the programmed feed
rate F.
3 If you have programmed chip breaking, the tool then retracts by
the entered retraction value. If you are working without chip
breaking, the tool retracts at the retraction feed rate to the set-up
clearance, remains there—if programmed—for the entered dwell
time, and advances again at FMAX to the set-up clearance above
the first PLUNGING DEPTH.
4 The tool then advances with another infeed at the programmed
feed rate. If programmed, the plunging depth is decreased after
each infeed by the decrement.
5 The TNC repeats this process (2 to 4) until the programmed total
hole depth is reached.
6 The tool remains at the hole bottom—if programmed—for the
entered dwell time to cut free, and then retracts to set-up
clearance at the retraction feed rate. If programmed, the tool
moves to the 2nd set-up clearance at FMAX.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

286 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
Z Q206 Q208
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of hole (tip of drill
taper).
Q210
8 Feed rate for plunging Q206: Traversing speed of
the tool during drilling in mm/min. Q200 Q204
Q203
8 Plunging depth Q202 (incremental value): Infeed per Q202
cut. The depth does not have to be a multiple of the Q201
plunging depth. The TNC will go to depth in one
movement if:
Q211
„ the plunging depth is equal to the depth
„ the plunging depth is greater than the depth
X
8 Dwell time at top Q210: Time in seconds that the
tool remains at set-up clearance after having been
retracted from the hole for chip release. Example: NC blocks

8 Workpiece surface coordinate Q203 (absolute 11 CYCL DEF 203 UNIVERSAL DRILLING
value): Coordinate of the workpiece surface. Q200=2 ;SET-UP CLEARANCE
8 2nd set-up clearance Q204 (incremental value): Q201=-20 ;DEPTH
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can Q206=150 ;FEED RATE FOR PLUNGING
occur. Q202=5 ;PLUNGING DEPTH
8 Decrement Q212 (incremental value): Value by which Q210=0 ;DWELL TIME AT TOP
the TNC decreases the plunging depth Q202 after
each infeed. Q203=+20 ;SURFACE COORDINATE

8 No. of breaks before retracting Q213: Number of Q204=50 ;2ND SET-UP CLEARANCE
chip breaks after which the TNC is to withdraw the Q212=0.2 ;DECREMENT
tool from the hole for chip release. For chip breaking,
the TNC retracts the tool each time by the value in Q213=3 ;BREAKS
Q256. Q205=3 ;MIN. PLUNGING DEPTH
8 Minimum plunging depth Q205 (incremental value): If Q211=0.25 ;DWELL TIME AT DEPTH
you have entered a decrement, the TNC limits the
Q208=500 ;RETRACTION FEED RATE
plunging depth to the value entered with Q205.
Q256=0.2 ;DIST. FOR CHIP BRKNG
8 Dwell time at depth Q211: Time in seconds that the
tool remains at the hole bottom.
8 Retraction feed rate Q208: Traversing speed of the
tool in mm/min when retracting from the hole. If you
enter Q208 = 0, the TNC retracts the tool at the feed
rate in Q206.
8 Retraction rate for chip breaking Q256
(incremental value): Value by which the TNC retracts
the tool during chip breaking.

HEIDENHAIN iTNC 530 287


8.3 Cycles for Drilling, Tapping and Thread Milling
BACK BORING (Cycle 204)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle. Z
Special boring bars for upward cutting are required for this
cycle.

This cycle allows holes to be bored from the underside of the


workpiece.
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the set-up clearance above the workpiece surface.
2 The TNC then orients the spindle to the 0° position with an
oriented spindle stop, and displaces the tool by the off-center
distance. X
3 The tool is then plunged into the already bored hole at the feed rate
for pre-positioning until the tooth has reached the set-up clearance
on the underside of the workpiece.
4 The TNC then centers the tool again over the bore hole, switches
on the spindle and the coolant and moves at the feed rate for Z
boring to the depth of bore.
5 If a dwell time is entered, the tool will pause at the top of the bore
hole and will then be retracted from the hole again. Another
oriented spindle stop is carried out and the tool is once again
displaced by the off-center distance. Q204
6 The TNC moves the tool at the pre-positioning feed rate to the set- Q200
up clearance and then, if entered, to the 2nd set-up clearance with
FMAX.
Q250 Q203
Before programming, note the following:
Q249
Program a positioning block for the starting point (hole Q200
center) in the working plane with radius compensation R0.
X

The algebraic sign for the cycle parameter depth


determines the working direction. Note: A positive sign
bores in the direction of the positive spindle axis.
Z Q253
The entered tool length is the total length to the underside
of the boring bar and not just to the tooth.
When calculating the starting point for boring, the TNC Q251
considers the tooth length of the boring bar and the
thickness of the material. Q252

Q255
Q254

X
Q214

288 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
11 CYCL DEF 204 BACK BORING
8 Depth of counterbore Q249 (incremental value):
Distance between underside of workpiece and the Q200=2 ;SET-UP CLEARANCE
top of the hole. A positive sign means the hole will be Q249=+5 ;DEPTH OF COUNTERBORE
bored in the positive spindle axis direction.
Q250=20 ;MATERIAL THICKNESS
8 Material thickness Q250 (incremental value):
Thickness of the workpiece. Q251=3.5 ;OFF-CENTER DISTANCE
Q252=15 ;TOOL EDGE HEIGHT
8 Off-center distance Q251 (incremental value): Off-
center distance for the boring bar; value from tool Q253=750 ;F PRE-POSITIONING
data sheet.
Q254=200 ;F COUNTERBORING
8 Tool edge height Q252 (incremental value): Distance Q255=0 ;DWELL TIME
between the underside of the boring bar and the main
cutting tooth; value from tool data sheet. Q203=+20 ;SURFACE COORDINATE
8 Feed rate for pre-positioning Q253: Traversing Q204=50 ;2ND SET-UP CLEARANCE
speed of the tool when moving in and out of the Q214=1 ;DISENGAGING DIRECTN
workpiece, in mm/min.
Q336=0 ;ANGLE OF SPINDLE
8 Feed rate for countersinking Q254: Traversing
speed of the tool during countersinking in mm/min.
8 Dwell time Q255: Dwell time in seconds at the top of
the bore hole.
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Disengaging direction (0/1/2/3/4) Q214:
Determine the direction in which the TNC displaces
the tool by the off-center distance (after spindle
orientation).

1 Retract tool in the negative ref. axis direction


2 Retract tool in the neg. secondary axis direction
3 Retract tool in the positive ref. axis direction
4 Retract tool in the pos. secondary axis direction

HEIDENHAIN iTNC 530 289


8.3 Cycles for Drilling, Tapping and Thread Milling
Danger of collision!
Check the position of the tool tip when you program a
spindle orientation to the angle that you enter in Q336 (for
example, in the Positioning with Manual Data Input mode
of operation). Set the angle so that the tool tip is parallel to
a coordinate axis. Select a disengaging direction in which
the tool moves away from the edge of the hole.

8 Angle for spindle orientation Q336 (absolute


value): Angle at which the TNC positions the tool
before it is plunged into or retracted from the bore
hole.

290 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
UNIVERSAL PECKING (Cycle 205)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 If you enter a deepened starting point, the TNC moves at the
defined positioning feed rate to the set-up clearance above the
deepened starting point.
3 The tool drills to the first plunging depth at the programmed feed
rate F.
4 If you have programmed chip breaking, the tool then retracts by
the entered retraction value. If you are working without chip
breaking, the tool is moved at rapid traverse to the set-up
clearance and then at FMAX to the entered starting position above
the first plunging depth.
5 The tool then advances with another infeed at the programmed
feed rate. If programmed, the plunging depth is decreased after
each infeed by the decrement.
6 The TNC repeats this process (2 to 4) until the programmed total
hole depth is reached.
7 The tool remains at the hole bottom—if programmed—for the
entered dwell time to cut free, and then retracts to set-up
clearance at the retraction feed rate. If programmed, the tool
moves to the 2nd set-up clearance at FMAX.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 291


8.3 Cycles for Drilling, Tapping and Thread Milling 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of hole (tip of drill
taper).
8 Feed rate for plunging Q206: Traversing speed of
the tool during drilling in mm/min.
8 Plunging depth Q202 (incremental value): Infeed per
cut. The depth does not have to be a multiple of the
plunging depth. The TNC will go to depth in one
movement if:
„ the plunging depth is equal to the depth
„ the plunging depth is greater than the depth
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Decrement Q212 (incremental value): Value by which
the TNC decreases the plunging depth Q202.
8 Minimum plunging depth Q205 (incremental value): If
you have entered a decrement, the TNC limits the
plunging depth to the value entered with Q205.
8 Upper advanced stop distance Q258 (incremental
value): Set-up clearance for rapid traverse positioning
when the TNC moves the tool again to the current
plunging depth after retraction from the hole; value
for the first plunging depth.
8 Lower advanced stop distance Q259 (incremental
value): Set-up clearance for rapid traverse positioning
when the TNC moves the tool again to the current
plunging depth after retraction from the hole; value
for the last plunging depth.

If you enter Q258 not equal to Q259, the TNC will change
the advance stop distances between the first and last
plunging depths at the same rate.

292 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Infeed depth for chip breaking Q257 (incremental
value): Depth at which the TNC carries out chip
breaking. There is no chip breaking if 0 is entered. 11 CYCL DEF 205 UNIVERSAL PECKING

8 Retraction rate for chip breaking Q256 Q200=2 ;SET-UP CLEARANCE


(incremental value): Value by which the TNC retracts Q201=-80 ;DEPTH
the tool during chip breaking.
Q206=150 ;FEED RATE FOR PLUNGING
8 Dwell time at depth Q211: Time in seconds that the
tool remains at the hole bottom. Q202=15 ;PLUNGING DEPTH
Q203=+100 ;SURFACE COORDINATE
8 Deepened starting point Q379 (incremental with
respect to the workpiece surface): Starting position of Q204=50 ;2ND SET-UP CLEARANCE
drilling if a shorter tool has already pilot drilled to a
Q212=0.5 ;DECREMENT
certain depth. The TNC moves at the feed rate for
pre-positioning from the set-up clearance to the Q205=3 ;MIN. PLUNGING DEPTH
deepened starting point.
Q258=0.5 ;UPPER ADV STOP DIST
8 Feed rate for pre-positioning Q253: Traversing Q259=1 ;LOWER ADV STOP DIST
velocity of the tool during positioning from the set-up
clearance to a deepened starting point in mm/min. Q257=5 ;DEPTH FOR CHIP BRKNG
Effective only if Q379 is entered not equal to 0. Q256=0.2 ;DIST. FOR CHIP BRKNG
Q211=0.25 ;DWELL TIME AT DEPTH
If you use Q379 to enter a deepened starting point, the
TNC merely changes the starting point of the infeed Q379=7.5 ;STARTING POSITION
movement. Retraction movements are not changed by
Q253=750 ;F PRE-POSITIONING
the TNC, therefore they are calculated with respect to the
coordinate of the workpiece surface.

HEIDENHAIN iTNC 530 293


8.3 Cycles for Drilling, Tapping and Thread Milling
BORE MILLING (Cycle 208)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface
and then moves the tool to the bore hole circumference on a
rounded arc (if enough space is available).
2 The tool mills in a helix from the current position to the first
plunging depth at the programmed feed rate.
3 When the drilling depth is reached, the TNC once again traverses
a full circle to remove the material remaining after the initial
plunge.
4 The TNC then positions the tool at the center of the hole again.
5 Finally the TNC returns to the set-up clearance at FMAX. If
programmed, the tool moves to the 2nd set-up clearance at FMAX.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
If you have entered the bore hole diameter to be the same
as the tool diameter, the TNC will bore directly to the
entered depth without any helical interpolation.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

294 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Set-up clearance Q200 (incremental value): Distance
between tool lower edge and workpiece surface.
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of hole.
8 Feed rate for plunging Q206: Traversing speed of
the tool during helical drilling in mm/min.
8 Infeed per helix Q334 (incremental value): Depth of
the tool plunge with each helix (=360°).

Note that if the infeed distance is too large, the tool or the
workpiece may be damaged.
To prevent the infeeds from being too large, enter the
maximum plunge angle of the tool in the ANGLE column
of the tool table, (see “Tool Data” on page 152). The TNC
then automatically calculates the max. infeed permitted
and changes your entered value accordingly.

8 Workpiece surface coordinate Q203 (absolute


value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Nominal diameter Q335 (absolute value): Bore-hole
diameter. If you have entered the nominal diameter to
be the same as the tool diameter, the TNC will bore
directly to the entered depth without any helical
interpolation.
8 Roughing diameter Q342 (absolute value): As soon as
you enter a value greater than 0 in Q342, the TNC no
longer checks the ratio between the nominal
diameter and the tool diameter. This allows you to Example: NC blocks
rough-mill holes whose diameter is more than twice
as large as the tool diameter. 12 CYCL DEF 208 BORE MILLING
Q200=2 ;SET-UP CLEARANCE
Q201=-80 ;DEPTH
Q206=150 ;FEED RATE FOR PLUNGING
Q334=1.5 ;PLUNGING DEPTH
Q203=+100 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q335=25 ;NOMINAL DIAMETER
Q342=0 ;ROUGHING DIAMETER

HEIDENHAIN iTNC 530 295


8.3 Cycles for Drilling, Tapping and Thread Milling
TAPPING NEW with floating tap holder
(Cycle 206)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 The tool drills to the total hole depth in one movement.
3 Once the tool has reached the total hole depth, the direction of
spindle rotation is reversed and the tool is retracted to the set-up
clearance at the end of the dwell time. If programmed, the tool
moves to the 2nd set-up clearance at FMAX.
4 At the set-up clearance, the direction of spindle rotation reverses
once again.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
A floating tap holder is required for tapping. It must
compensate the tolerances between feed rate and spindle
speed during the tapping process.
When a cycle is being run, the spindle speed override knob
is disabled. The feed-rate override knob is active only
within a limited range, which is defined by the machine
tool builder (refer to your machine manual).
For tapping right-hand threads activate the spindle with
M3, for left-hand threads use M4.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

296 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Set-up clearance Q200 (incremental value): Distance
between tool tip (at starting position) and workpiece
surface. Standard value: approx. 4 times the thread
pitch.
8 Total hole depth Q201 (thread length, incremental
value): Distance between workpiece surface and end
of thread.
8 Feed rate F Q206: Traversing speed of the tool during
tapping.
8 Dwell time at bottom Q211: Enter a value between 0
and 0.5 seconds to avoid wedging of the tool during
retraction.
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Example: NC blocks
between tool and workpiece (clamping devices) can
occur. 25 CYCL DEF 206 TAPPING NEW
Q200=2 ;SET-UP CLEARANCE
The feed rate is calculated as follows: F = S x p
Q201=-20 ;DEPTH
F Feed rate (mm/min)
S: Spindle speed (rpm) Q206=150 ;FEED RATE FOR PLUNGING
p: Thread pitch (mm) Q211=0.25 ;DWELL TIME AT DEPTH

Retracting after a program interruption Q203=+25 ;SURFACE COORDINATE


If you interrupt program run during tapping with the machine stop Q204=50 ;2ND SET-UP CLEARANCE
button, the TNC will display a soft key with which you can retract the
tool.

HEIDENHAIN iTNC 530 297


8.3 Cycles for Drilling, Tapping and Thread Milling
RIGID TAPPING without a floating tap holder
NEW (Cycle 207)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

The TNC cuts the thread without a floating tap holder in one or more
passes.
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 The tool drills to the total hole depth in one movement.
3 Once the tool has reached the total hole depth, the direction of
spindle rotation is reversed and the tool is retracted to the set-up
clearance at the end of the dwell time. If programmed, the tool
moves to the 2nd set-up clearance at FMAX.
4 The TNC stops the spindle turning at set-up clearance.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the total hole depth parameter
determines the working direction.
The TNC calculates the feed rate from the spindle speed.
If the spindle speed override is used during tapping, the
feed rate is automatically adjusted.
The feed-rate override knob is disabled.
At the end of the cycle the spindle comes to a stop. Before
the next operation, restart the spindle with M3 (or M4).

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

298 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Set-up clearance Q200 (incremental value): Distance
between tool tip (at starting position) and workpiece
surface.
8 Total hole depth Q201 (incremental value): Distance
between workpiece surface and end of thread.
8 Pitch Q239
Pitch of the thread. The algebraic sign differentiates
between right-hand and left-hand threads:
+ = right-hand thread
–= left-hand thread
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
Example: NC blocks
Retracting after a program interruption
26 CYCL DEF 207 RIGID TAPPING NEW
If you interrupt program run during thread cutting with the machine
stop button, the TNC will display the soft key MANUAL OPERATION. Q200=2 ;SET-UP CLEARANCE
If you press the MANUAL OPERATION key, you can retract the tool Q201=-20 ;DEPTH
under program control. Simply press the positive axis direction button
of the active tool axis. Q239=+1 ;PITCH
Q203=+25 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE

HEIDENHAIN iTNC 530 299


8.3 Cycles for Drilling, Tapping and Thread Milling
TAPPING WITH CHIP BREAKING (Cycle 209)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

The tool machines the thread in several passes until it reaches the
programmed depth. You can define in a parameter whether the tool is
to be retracted completely from the hole for chip breaking.
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
There it carries out an oriented spindle stop.
2 The tool moves to the programmed infeed depth, reverses the
direction of spindle rotation and retracts by a specific distance or
completely for chip release, depending on the definition .
3 It then reverses the direction of spindle rotation again and
advances to the next infeed depth.
4 The TNC repeats this process (2 to 3) until the programmed thread
depth is reached.
5 The tool is then retracted to the set-up clearance. If programmed,
the tool moves to the 2nd set-up clearance at FMAX.
6 The TNC stops the spindle turning at set-up clearance.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the parameter thread depth
determines the working direction.
The TNC calculates the feed rate from the spindle speed.
If the spindle speed override is used during tapping, the
feed rate is automatically adjusted.
The feed-rate override knob is disabled.
At the end of the cycle the spindle comes to a stop. Before
the next operation, restart the spindle with M3 (or M4).

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

300 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Set-up clearance Q200 (incremental value): Distance
between tool tip (at starting position) and workpiece
surface.
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and end of thread.
8 Pitch Q239
Pitch of the thread. The algebraic sign differentiates
between right-hand and left-hand threads:
+ = right-hand thread
–= left-hand thread
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
Example: NC blocks
8 Infeed depth for chip breaking Q257 (incremental
value): Depth at which TNC carries out chip breaking 26 CYCL DEF 209 TAPPING W/ CHIP BRKG

8 Retraction rate for chip breaking Q256: The TNC Q200=2 ;SET-UP CLEARANCE
multiplies the pitch Q239 by the programmed value Q201=-20 ;DEPTH
and retracts the tool by the calculated value during
chip breaking. If you enter Q256 = 0, the TNC retracts Q239=+1 ;PITCH
the tool completely from the hole (to the set-up Q203=+25 ;SURFACE COORDINATE
clearance) for chip release.
Q204=50 ;2ND SET-UP CLEARANCE
8 Angle for spindle orientation Q336 (absolute
value): Angle at which the TNC positions the tool Q257=5 ;DEPTH FOR CHIP BRKNG
before machining the thread. This allows you to Q256=+25 ;DIST. FOR CHIP BRKNG
regroove the thread, if required.
Q336=50 ;ANGLE OF SPINDLE
Retracting after a program interruption
If you interrupt program run during thread cutting with the machine
stop button, the TNC will display the soft key MANUAL OPERATION.
If you press the MANUAL OPERATION key, you can retract the tool
under program control. Simply press the positive axis direction button
of the active tool axis.

HEIDENHAIN iTNC 530 301


8.3 Cycles for Drilling, Tapping and Thread Milling
Fundamentals of thread milling
Prerequisites
„ Your machine tool should feature internal spindle cooling (cooling
lubricant at least 30 bar, compressed air supply at least 6 bar).
„ Thread milling usually leads to distortions of the thread profile. To
correct this effect, you need tool-specific compensation values
which are given in the tool catalog or are available from the tool
manufacturer. You program the compensation with the delta value
for the tool radius DR in the tool call.
„ The Cycles 262, 263, 264 and 267 can only be used with rightward
rotating tools. For Cycle 265 you can use rightward and leftward
rotating tools.
„ The working direction is determined by the following input
parameters: Algebraic sign Q239 (+ = right-hand thread / – = left-
hand thread) and milling method Q351 (+1 = climb / –1 = up-cut).
The table below illustrates the interrelation between the individual
input parameters for rightward rotating tools.
Internal thread Pitch Climb/Up-cut Work direction
Right-handed + +1(RL) Z+

Left-handed – –1(RR) Z+

Right-handed + –1(RR) Z–

Left-handed – +1(RL) Z–

External thread Pitch Climb/Up-cut Work direction


Right-handed + +1(RL) Z–

Left-handed – –1(RR) Z–

Right-handed + –1(RR) Z+

Left-handed – +1(RL) Z+

Danger of collision!
Always program the same algebraic sign for the infeeds:
Cycles comprise several sequences of operation that are
independent of each other. The order of precedence
according to which the work direction is determined is
described with the individual cycles. For example, if you
only want to repeat the countersinking process of a cycle,
enter 0 for the thread depth. The work direction will then
be determined from the countersinking depth.
Procedure in case of a tool break
If a tool break occurs during thread cutting, stop the
program run, change to the Positioning with MDI
operating mode and move the tool in a linear path to the
hole center. You can then retract the tool in the infeed axis
and replace it.

302 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
The TNC references the programmed feed rate during
thread milling to the tool cutting edge. Since the TNC,
however, always displays the feed rate relative to the path
of the tool tip, the displayed value does not match the
programmed value.
The machining direction of the thread changes if you
execute a thread milling cycle in connection with Cycle 8
MIRRORING in only one axis.

HEIDENHAIN iTNC 530 303


8.3 Cycles for Drilling, Tapping and Thread Milling
THREAD MILLING (Cycle 262)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
2 The tool moves at the programmed feed rate for pre-positioning to
the starting plane. The starting plane is derived from the algebraic
sign of the thread pitch, the milling method (climb or up-cut milling)
and the number of threads per step.
3 The tool then approaches the thread diameter tangentially in a
helical movement. Before the helical approach, a compensating
motion of the tool axis is carried out in order to begin at the
programmed starting plane for the thread path.
4 Depending on the setting of the parameter for the number of
threads, the tool mills the thread in one helical movement, in
several offset movements or in one continuous movement.
5 After this, the tool departs the contour tangentially and returns to
the starting point in the working plane.
6 At the end of the cycle, the TNC retracts the tool in rapid traverse
to setup clearance or, if programmed, to the 2nd setup clearance

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign for the cycle parameter thread depth
determines the working direction. If you program the
thread DEPTH = 0, the cycle will not be executed.
The thread diameter is approached in a semi-circle from
the center. A pre-positioning movement to the side is
carried out if the pitch of the tool diameter is four times
smaller than the thread diameter.
Note that the TNC makes a compensating movement in
the tool axis before the approach movement. The length
of the compensating movement depends on the thread
pitch. Ensure sufficient space in the hole!

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

304 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
8 Nominal diameter Q335: Nominal thread diameter.
8 Thread pitch Q239: Pitch of the thread. The algebraic
sign differentiates between right-hand and left-hand
threads:
+ = right-hand thread
– = left-hand thread
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and root of thread.
8 Threads per step Q355: Number of thread
revolutions by which the tool is offset, (see figure at
lower right): 0 = one 360° helical path to the depth of
thread.
1 = continuous helical path over the entire length of
the thread
>1 = several helical paths with approach and
departure; between them, the TNC offsets the tool by
Q355, multiplied by the pitch.
8 Feed rate for pre-positioning Q253: Traversing
speed of the tool when moving in and out of the
workpiece, in mm/min.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling
8 Setup clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur. Example: NC blocks
8 Feed rate for milling Q207: Traversing speed of the 25 CYCL DEF 262 THREAD MILLING
tool in mm/min while milling.
Q335=10 ;NOMINAL DIAMETER
Q239=+1.5 ;PITCH
Q201=-20 ;THREAD DEPTH
Q355=0 ;THREADS PER STEP
Q253=750 ;F PRE-POSITIONING
Q351=+1 ;CLIMB OR UP-CUT
Q200=2 ;SET-UP CLEARANCE
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q207=500 ;FEED RATE FOR MILLING

HEIDENHAIN iTNC 530 305


8.3 Cycles for Drilling, Tapping and Thread Milling
THREAD MILLING/COUNTERSINKING
(Cycle 263)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
Countersinking
2 The tool moves at the feed rate for pre-positioning to the
countersinking depth minus the set-up clearance, and then at the
feed rate for countersinking to the countersinking depth.
3 If a safety clearance to the side has been entered, the TNC
immediately positions the tool at the feed rate for pre-positioning
to the countersinking depth.
4 Then, depending on the available space, the TNC makes a
tangential approach to the core diameter, either tangentially from
the center or with a pre-positioning move to the side, and follows
a circular path.
Countersinking at front
5 The tool moves at the feed rate for pre-positioning to the sinking
depth at front.
6 The TNC positions the tool without compensation from the center
on a semicircle to the offset at front, and then follows a circular
path at the feed rate for countersinking.
7 The tool then moves on a semicircle to the hole center.
Thread milling
8 The TNC moves the tool at the programmed feed rate for pre-
positioning to the starting plane for the thread. The starting plane
is determined from the thread pitch and the type of milling (climb
or up-cut).
9 Then the tool moves tangentially on a helical path to the thread
diameter and mills the thread with a 360° helical motion.
10 After this, the tool departs the contour tangentially and returns to
the starting point in the working plane.

306 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
11 At the end of the cycle, the TNC retracts the tool in rapid traverse
to setup clearance or, if programmed, to the 2nd setup clearance

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign of the cycle parameters depth of thread,
countersinking depth or sinking depth at front determines
the working direction. The working direction is defined in
the following sequence:
1st: Depth of thread
2nd: Countersinking depth
3rd: Depth at front
If you program a depth parameter to be 0, the TNC does
not execute that step.
If you want to countersink with the front of the tool, define
the countersinking depth as 0.
Program the thread depth as a value smaller than the
countersinking depth by at least one-third the thread pitch.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 307


8.3 Cycles for Drilling, Tapping and Thread Milling 8 Nominal diameter Q335: Nominal thread diameter.
8 Thread pitch Q239: Pitch of the thread. The algebraic
sign differentiates between right-hand and left-hand
threads:
+ = right-hand thread
– = left-hand thread
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and root of thread.
8 Countersinking depth Q356 (incremental value):
Distance between tool point and the top surface of
the workpiece.
8 Feed rate for pre-positioning Q253: Traversing
speed of the tool when moving in and out of the
workpiece, in mm/min.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling
8 Setup clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
8 Setup clearance to the side Q357 (incremental
value): Distance between tool tooth and the wall.
8 Depth at front Q358 (incremental value): Distance
between tool tip and the top surface of the workpiece
for countersinking at the front of the tool.
8 Countersinking offset at front Q359 (incremental
value): Distance by which the TNC moves the tool
center away from the hole center.

308 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
25 CYCL DEF 263 THREAD MLLNG/CNTSNKG
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Q335=10 ;NOMINAL DIAMETER
between tool and workpiece (clamping devices) can Q239=+1.5 ;PITCH
occur.
Q201=-16 ;THREAD DEPTH
8 Feed rate for countersinking Q254: Traversing
speed of the tool during countersinking in mm/min. Q356=-20 ;COUNTERSINKING DEPTH
Q253=750 ;F PRE-POSITIONING
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling. Q351=+1 ;CLIMB OR UP-CUT
Q200=2 ;SET-UP CLEARANCE
Q357=0.2 ;CLEARANCE TO SIDE
Q358=+0 ;DEPTH AT FRONT
Q359=+0 ;OFFSET AT FRONT
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q254=150 ;F COUNTERBORING
Q207=500 ;FEED RATE FOR MILLING

HEIDENHAIN iTNC 530 309


8.3 Cycles for Drilling, Tapping and Thread Milling
THREAD DRILLING/MILLING (Cycle 264)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
Drilling
2 The tool drills to the first plunging depth at the programmed feed
rate for plunging.
3 If you have programmed chip breaking, the tool then retracts by
the entered retraction value. If you are working without chip
breaking, the tool is moved at rapid traverse to the set-up
clearance and then at FMAX to the entered starting position above
the first plunging depth.
4 The tool then advances with another infeed at the programmed
feed rate.
5 The TNC repeats this process (2 to 4) until the programmed total
hole depth is reached.
Countersinking at front
6 The tool moves at the feed rate for pre-positioning to the sinking
depth at front.
7 The TNC positions the tool without compensation from the center
on a semicircle to the offset at front, and then follows a circular
path at the feed rate for countersinking.
8 The tool then moves on a semicircle to the hole center.
Thread milling
9 The TNC moves the tool at the programmed feed rate for pre-
positioning to the starting plane for the thread. The starting plane
is determined from the thread pitch and the type of milling (climb
or up-cut).
10 Then the tool moves tangentially on a helical path to the thread
diameter and mills the thread with a 360° helical motion.
11 After this, the tool departs the contour tangentially and returns to
the starting point in the working plane.
12 At the end of the cycle, the TNC retracts the tool in rapid traverse
to setup clearance or, if programmed, to the 2nd setup clearance

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign of the cycle parameters depth of thread,
countersinking depth or sinking depth at front determines
the working direction. The working direction is defined in
the following sequence:
1st: Depth of thread
2nd: Total hole depth
3rd: Depth at front
If you program a depth parameter to be 0, the TNC does
not execute that step.
Program the thread depth as a value smaller than the total
hole depth by at least one-third the thread pitch.

310 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 311


8.3 Cycles for Drilling, Tapping and Thread Milling 8 Nominal diameter Q335: Nominal thread diameter.
8 Thread pitch Q239: Pitch of the thread. The algebraic
sign differentiates between right-hand and left-hand
threads:
+ = right-hand thread
– = left-hand thread
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and root of thread.
8 Total hole depth Q356 (incremental value): Distance
between workpiece surface and bottom of hole.
8 Feed rate for pre-positioning Q253: Traversing
speed of the tool when moving in and out of the
workpiece, in mm/min.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling
8 Plunging depth Q202 (incremental value): Infeed per
cut. The depth does not have to be a multiple of the
plunging depth. The TNC will go to depth in one
movement if:
„ the plunging depth is equal to the depth
„ the plunging depth is greater than the depth
8 Upper advanced stop distance Q258 (incremental
value): Set-up clearance for rapid traverse positioning
when the TNC moves the tool again to the current
plunging depth after retraction from the hole.
8 Infeed depth for chip breaking Q257 (incremental
value): Depth at which TNC carries out chip breaking.
There is no chip breaking if 0 is entered.
8 Retraction rate for chip breaking Q256
(incremental value): Value by which the TNC retracts
the tool during chip breaking.
8 Depth at front Q358 (incremental value): Distance
between tool tip and the top surface of the workpiece
for countersinking at the front of the tool.
8 Countersinking offset at front Q359 (incremental
value): Distance by which the TNC moves the tool
center away from the hole center.

312 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Setup clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
25 CYCL DEF 264 THREAD DRILLNG/MLLNG
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface. Q335=10 ;NOMINAL DIAMETER

8 2nd set-up clearance Q204 (incremental value): Q239=+1.5 ;PITCH


Coordinate in the tool axis at which no collision Q201=-16 ;THREAD DEPTH
between tool and workpiece (clamping devices) can
occur. Q356=-20 ;TOTAL HOLE DEPTH
Q253=750 ;F PRE-POSITIONING
8 Feed rate for plunging Q206: Traversing speed of
the tool during drilling in mm/min. Q351=+1 ;CLIMB OR UP-CUT
8 Feed rate for milling Q207: Traversing speed of the Q202=5 ;PLUNGING DEPTH
tool in mm/min while milling. Q258=0.2 ;ADVANCED STOP DISTANCE
Q257=5 ;DEPTH FOR CHIP BRKNG
Q256=0.2 ;DIST. FOR CHIP BRKNG
Q358=+0 ;DEPTH AT FRONT
Q359=+0 ;OFFSET AT FRONT
Q200=2 ;SET-UP CLEARANCE
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q206=150 ;FEED RATE FOR PLUNGING
Q207=500 ;FEED RATE FOR MILLING

HEIDENHAIN iTNC 530 313


8.3 Cycles for Drilling, Tapping and Thread Milling
HELICAL THREAD DRILLING/MILLING
(Cycle 265)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
Countersinking at front
2 If countersinking is before thread milling, the tool moves at the
feed rate for countersinking to the sinking depth at front. If
countersinking is after thread milling, the tool moves at the feed
rate for pre-positioning to the countersinking depth.
3 The TNC positions the tool without compensation from the center
on a semicircle to the offset at front, and then follows a circular
path at the feed rate for countersinking.
4 The tool then moves on a semicircle to the hole center.
Thread milling
5 The tool moves at the programmed feed rate for pre-positioning to
the starting plane for the thread.
6 The tool then approaches the thread diameter tangentially in a
helical movement.
7 The tool moves on a continuous helical downward path until it
reaches the thread depth.
8 After this, the tool departs the contour tangentially and returns to
the starting point in the working plane.
9 At the end of the cycle, the TNC retracts the tool in rapid traverse
to setup clearance or, if programmed, to the 2nd setup clearance.

Before programming, note the following:


Program a positioning block for the starting point (hole
center) in the working plane with radius compensation R0.
The algebraic sign of the cycle parameters depth of thread
or sinking depth at front determines the working direction.
The working direction is defined in the following
sequence:
1st: Depth of thread
2nd: Depth at front
If you program a depth parameter to be 0, the TNC does
not execute that step.
The type of milling (up-cut/climb) is determined by the
thread (right-hand/left-hand) and the direction of tool
rotation, since it is only possible to work in the direction of
the tool.

314 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 315


8.3 Cycles for Drilling, Tapping and Thread Milling 8 Nominal diameter Q335: Nominal thread diameter.
8 Thread pitch Q239: Pitch of the thread. The algebraic
sign differentiates between right-hand and left-hand
threads:
+ = right-hand thread
–= left-hand thread
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and root of thread.
8 Feed rate for pre-positioning Q253: Traversing
speed of the tool when moving in and out of the
workpiece, in mm/min.
8 Depth at front Q358 (incremental value): Distance
between tool tip and the top surface of the workpiece
for countersinking at the front of the tool.
8 Countersinking offset at front Q359 (incremental
value): Distance by which the TNC moves the tool
center away from the hole center.
8 Countersink Q360: Execution of the chamfer
0 = before thread machining
1 = after thread machining
8 Setup clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.

316 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
25 CYCL DEF 265 HEL. THREAD DRLG/MLG
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Q335=10 ;NOMINAL DIAMETER
between tool and workpiece (clamping devices) can Q239=+1.5 ;PITCH
occur.
Q201=-16 ;THREAD DEPTH
8 Feed rate for countersinking Q254: Traversing
speed of the tool during countersinking in mm/min. Q253=750 ;F PRE-POSITIONING
Q358=+0 ;DEPTH AT FRONT
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling. Q359=+0 ;OFFSET AT FRONT
Q360=0 ;COUNTERSINKING
Q200=2 ;SET-UP CLEARANCE
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q254=150 ;F COUNTERBORING
Q207=500 ;FEED RATE FOR MILLING

HEIDENHAIN iTNC 530 317


8.3 Cycles for Drilling, Tapping and Thread Milling
OUTSIDE THREAD MILLING (Cycle 267)
1 The TNC positions the tool in the tool axis at rapid traverse FMAX
to the programmed set-up clearance above the workpiece surface.
Countersinking at front
2 The TNC moves in the reference axis of the working plane from
the center of the stud to the starting point for countersinking at
front. The position of the starting point is determined by the thread
radius, tool radius and pitch.
3 The tool moves at the feed rate for pre-positioning to the sinking
depth at front.
4 The TNC positions the tool without compensation from the center
on a semicircle to the offset at front, and then follows a circular
path at the feed rate for countersinking.
5 The tool then moves on a semicircle to the starting point.
Thread milling
6 The TNC positions the tool to the starting point if there has been
no previous countersinking at front. Starting point for thread milling
= starting point for countersinking at front.
7 The tool moves at the programmed feed rate for pre-positioning to
the starting plane. The starting plane is derived from the algebraic
sign of the thread pitch, the milling method (climb or up-cut milling)
and the number of threads per step.
8 The tool then approaches the thread diameter tangentially in a
helical movement.
9 Depending on the setting of the parameter for the number of
threads, the tool mills the thread in one helical movement, in
several offset movements or in one continuous movement.
10 After this, the tool departs the contour tangentially and returns to
the starting point in the working plane.

318 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
11 At the end of the cycle, the TNC retracts the tool in rapid traverse
to setup clearance or, if programmed, to the 2nd setup clearance

Before programming, note the following:


Program a positioning block for the starting point (stud
center) in the working plane with radius compensation R0.
The offset required before countersinking at the front
should be determined ahead of time. You must enter the
value from the center of the stud to the center of the tool
(uncorrected value).
The algebraic sign of the cycle parameters depth of thread
or sinking depth at front determines the working direction.
The working direction is defined in the following
sequence:
1st: Depth of thread
2nd: Depth at front
If you program a depth parameter to be 0, the TNC does
not execute that step.
The algebraic sign for the cycle parameter thread depth
determines the working direction.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 319


8.3 Cycles for Drilling, Tapping and Thread Milling 8 Nominal diameter Q335: Nominal thread diameter.
8 Thread pitch Q239: Pitch of the thread. The algebraic
sign differentiates between right-hand and left-hand
threads:
+ = right-hand thread
– = left-hand thread
8 Thread depth Q201 (incremental value): Distance
between workpiece surface and root of thread.
8 Threads per step Q355: Number of thread
revolutions by which the tool is offset, see figure at
lower right:
0 = one helical line to the thread depth
1 = continuous helical path over the entire length of
the thread
>1 = several helical paths with approach and
departure; between them, the TNC offsets the tool by
Q355, multiplied by the pitch.
8 Feed rate for pre-positioning Q253: Traversing
speed of the tool when moving in and out of the
workpiece, in mm/min.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling

320 8 Programming: Cycles


Example: NC blocks

8.3 Cycles for Drilling, Tapping and Thread Milling


8 Setup clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
25 CYCL DEF 267 OUTSIDE THREAD MLLNG
8 Depth at front Q358 (incremental value): Distance
between tool tip and the top surface of the workpiece Q335=10 ;NOMINAL DIAMETER
for countersinking at the front of the tool. Q239=+1.5 ;PITCH
8 Countersinking offset at front Q359 (incremental Q201=-20 ;THREAD DEPTH
value): Distance by which the TNC moves the tool
center away from the stud center. Q355=0 ;THREADS PER STEP
Q253=750 ;F PRE-POSITIONING
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface. Q351=+1 ;CLIMB OR UP-CUT
8 2nd set-up clearance Q204 (incremental value): Q200=2 ;SET-UP CLEARANCE
Coordinate in the tool axis at which no collision Q358=+0 ;DEPTH AT FRONT
between tool and workpiece (clamping devices) can
occur. Q359=+0 ;OFFSET AT FRONT
8 Feed rate for countersinking Q254: Traversing Q203=+30 ;SURFACE COORDINATE
speed of the tool during countersinking in mm/min. Q204=50 ;2ND SET-UP CLEARANCE
8 Feed rate for milling Q207: Traversing speed of the Q254=150 ;F COUNTERBORING
tool in mm/min while milling.
Q207=500 ;FEED RATE FOR MILLING

HEIDENHAIN iTNC 530 321


8.3 Cycles for Drilling, Tapping and Thread Milling
Example: Drilling cycles

Y
100
90

10

X
10 20 80 90 100

0 BEGIN PGM C200 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3 Define the tool
4 TOOL CALL 1 Z S4500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 CYCL DEF 200 DRILLING Define cycle
Q200=2 ;SET-UP CLEARANCE
Q201=-15 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q202=5 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=-10 ;SURFACE COORDINATE
Q204=20 ;2ND SET-UP CLEARANCE
Q211=0.2 ;DWELL TIME AT DEPTH

322 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
7 L X+10 Y+10 R0 FMAX M3 Approach hole 1, spindle ON
8 CYCL CALL Call the cycle
9 L Y+90 R0 FMAX M99 Approach hole 2, call cycle
10 L X+90 R0 FMAX M99 Approach hole 3, call cycle
11 L Y+10 R0 FMAX M99 Approach hole 4, call cycle
12 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
13 END PGM C200 MM

HEIDENHAIN iTNC 530 323


8.3 Cycles for Drilling, Tapping and Thread Milling
Example: Calling drilling cycles in connection with point tables

The drill hole coordinates are stored in the point


table TAB1.PNT and are called by the TNC with
CYCL CALL PAT. Y

M6
The tool radii are selected so that all work steps 100
can be seen in the test graphics.
90
Program sequence
65
„ Centering
55
„ Drilling
„ Tapping
30

10

X
10 20 40 80 90 100

0 BEGIN PGM 1 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Y+0
3 TOOL DEF 1 L+0 R+4 Tool definition of center drill
4 TOOL DEF 2 L+0 2.4 Define tool: drill
5 TOOL DEF 3 L+0 R+3 Tool definition of tap
6 TOOL CALL 1 Z S5000 Tool call of centering drill
7 L Z+10 RO F5000 Move tool to clearance height (Enter a value for F)
The TNC positions to the clearance height after every cycle
8 SEL PATTERN “TAB1“ Defining point tables
9 CYCL DEF 200 DRILLING Cycle definition: Centering
Q200=2 ;SET-UP CLEARANCE
Q201=-2 ;DEPTH
Q206=150 ;FEED RATE FOR PLNGNG
Q202=2 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE 0 must be entered here, effective as defined in point table
Q204=0 ;2ND SET-UP CLEARANCE 0 must be entered here, effective as defined in point table
Q211=0.2 ;DWELL TIME AT DEPTH

324 8 Programming: Cycles


8.3 Cycles for Drilling, Tapping and Thread Milling
10 CYCL CALL PAT F5000 M3 Cycle call in connection with point table TAB1.PNT
Feed rate between points: 5000 mm/min
11 L Z+100 R0 FMAX M6 Retract the tool, change the tool
12 TOOL CALL 2 Z S5000 Call toll: drill
13 L Z+10 R0 F5000 Move tool to clearance height (enter a value for F)
14 CYCL DEF 200 DRILLING Cycle definition: drilling
Q200=2 ;SET-UP CLEARANCE
Q201=-25 ;DEPTH
Q206=150 ;FEED RATE FOR PECKING
Q202=5 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE 0 must be entered here, effective as defined in point table
Q204=0 ;2ND SET-UP CLEARANCE 0 must be entered here, effective as defined in point table
Q211=0.2 ;DWELL TIME AT DEPTH
15 CYCL CALL PAT F5000 M3 Cycle call in connection with point table TAB1.PNT
16 L Z+100 R0 FMAX M6 Retract the tool, change the tool
17 TOOL CALL 3 Z S200 Tool call for tap
18 L Z+50 R0 FMAX Move tool to clearance height
19 CYCL DEF 206 TAPPING NEW Cycle definition for tapping
Q200=2 ;SET-UP CLEARANCE
Q201=-25 ;THREAD DEPTH
Q206=150 ;FEED RATE FOR PECKING
Q211=0 ;DWELL TIME AT DEPTH
Q203=+0 ;SURFACE COORDINATE 0 must be entered here, effective as defined in point table
Q204=0 ;2ND SET-UP CLEARANCE 0 must be entered here, effective as defined in point table
20 CYCL CALL PAT F5000 M3 Cycle call in connection with point table TAB1.PNT
21 L Z+100 R0 FMAX M2 Retract in the tool axis, end program
22 END PGM 1 MM

HEIDENHAIN iTNC 530 325


8.3 Cycles for Drilling, Tapping and Thread Milling Point table TAB1.PNT

TAB1. PNT MM
NR X Y Z
0 +10 +10 +0
1 +40 +30 +0
2 +90 +10 +0
3 +80 +30 +0
4 +80 +65 +0
5 +90 +90 +0
6 +10 +90 +0
7 +20 +55 +0
[END]

326 8 Programming: Cycles


8.4 Cycles for Milling Pockets,

8.4 Cycles for Milling Pockets, Studs and Slots


Studs and Slots
Overview

Cycle Soft key


251 RECTANGULAR POCKET
Roughing/finishing cycle with selection of machining
operation and helical plunging

252 CIRCULAR POCKET


Roughing/finishing cycle with selection of machining
operation and helical plunging

253 SLOT MILLING


Roughing/finishing cycle with selection of machining
operation and reciprocal plunging

254 CIRCULAR SLOT


Roughing/finishing cycle with selection of machining
operation and reciprocal plunging

212 POCKET FINISHING (rectangular)


Finishing cycle with automatic pre-positioning,
2nd set-up clearance

213 STUD FINISHING (rectangular)


Finishing cycle with automatic pre-positioning,
2nd set-up clearance

214 C. POCKET FINISHING


Finishing cycle with automatic pre-positioning,
2nd set-up clearance

215 CIRCULAR STUD FINISHING


Finishing cycle with automatic pre-positioning,
2nd set-up clearance

210 SLOT RECIP. PLNG


Roughing/finishing cycle with automatic pre-
positioning, with reciprocating plunge infeed

211 CIRCULAR SLOT


Roughing/finishing cycle with automatic pre-
positioning, with reciprocating plunge infeed

HEIDENHAIN iTNC 530 327


8.4 Cycles for Milling Pockets, Studs and Slots
RECTANGULAR POCKET (Cycle 251)
Use Cycle 251 RECTANGULAR POCKET to completely machine
rectangular pockets. Depending on the cycle parameters, the
following machining alternatives are available:
„ Complete machining: Roughing, floor finishing, side finishing
„ Only roughing
„ Only floor finishing and side finishing
„ Only floor finishing
„ Only side finishing

With an inactive tool table you must always plunge


vertically (Q366=0) because you cannot define a plunging
angle.

Roughing
1 The tool plunges the workpiece at the pocket center and advances
to the first plunging depth. Specify the plunging strategy with
Parameter Q366.
2 The TNC roughs out the pocket from the inside out, taking the
overlap factor (Parameter Q370) and the finishing allowance
(Parameter Q368 and Q369) into account.
3 At the end of the roughing operation, the TNC moves the tool
tangentially away from the pocket wall, then moves by the setup
clearance above the current pecking depth and returns from there
at rapid traverse to the pocket center.
4 This process is repeated until the programmed pocket depth is
reached.

328 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
Finishing
5 Inasmuch as finishing allowances are defined, the TNC then
finishes the pocket walls, in multiple infeeds if so specified. The
pocket wall is approached tangentially.
6 Then the TNC finishes the floor of the pocket from the inside out.
The pocket floor is approached tangentially.

Before programming, note the following:


Pre-position the tool in the machining plane to the starting
position with radius compensation R0. Note Parameter
Q367 (pocket position).
The TNC runs the cycle in the axes (machining plane) with
which you approached the starting position. For example,
in X and Y if you programmed CYCL CALL POS X... Y... or
in U and V if you programmed CYCL CALL POS U... V...
The TNC automatically pre-positions the tool in the tool
axis. Note Parameter Q204 (2nd set-up clearance).
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
At the end of the cycle, the TNC returns the tool to the
starting position.
At the end of a roughing operation, the TNC positions the
tool back to the pocket center at rapid traverse. The tool is
above the current pecking depth by the setup clearance.
Enter the setup clearance so that the tool cannot jam
because of chips.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 329


8.4 Cycles for Milling Pockets, Studs and Slots 8 Machining operation (0/1/2) Q215: Define the
machining operation: Y Q218
0: Roughing and finishing
1: Only roughing
2: Only finishing
Side finishing and floor finishing are only executed if
the finishing allowances (Q368, Q369) have been

Q
22
defined.

Q219
8 First side length Q218 (incremental value): Pocket Q207
length, parallel to the reference axis of the working
plane.
8 Second side length Q219 (incremental value): Pocket
length, parallel to the minor axis of the working plane.
X
8 Corner radius Q220: Radius of the pocket corner: If
you make no entry here, the TNC assumes that the
corner radius is equal to the tool radius.
8 Finishing allowance for side Q368 (incremental Y Y
value): Finishing allowance in the working plane.
8 Angle of rotation Q224 (absolute): Angle by which
the entire pocket is rotated. The center of rotation is Q367=0
the position at which the tool is located when the
cycle is called. Q367=1 Q367=2
X X
8 Pocket position Q367: Position of the pocket in
reference to the position of the tool when the cycle is Y Y
called (see figure at center right):
Q367=3 Q367=4
0: Tool position = Center of pocket
1: Tool position = Lower left corner
2: Tool position = Lower right corner
3: Tool position = Upper right corner
4: Tool position = Upper left corner
X X

8 Feed rate for milling Q207: Traversing speed of the


tool in mm/min while milling.
8 Climb or up-cut Q351: Type of milling operation with
M03. Y
+1 = climb milling
–1 = up-cut milling

Q351=–1

Q351=+1

k X

330 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
8 Depth Q201 (incremental value): Distance between
workpiece surface and pocket floor.
8 Plunging depth Q202 (incremental value): Infeed per
cut. Enter a value greater than 0.
Q206
8 Finishing allowance for floor Q369 (incremental Z
value): Finishing allowance in the tool axis.
8 Feed rate for plunging Q206: Traversing speed of Q338
the tool while moving to depth in mm/min.
Q202
8 Infeed for finishing Q338 (incremental value):
Infeed per cut. Q338=0: Finishing in one infeed. Q201

8 Set-up clearance Q200 (incremental value): Distance


between tool tip and workpiece surface.
8 Workpiece surface coordinate Q203 (absolute X
value): Absolute coordinate of the workpiece surface
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can Z
occur.

Q200 Q204
Q368

Q369
Q203

HEIDENHAIN iTNC 530 331


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Path overlap factor Q370: Q370 x tool radius =
stepover factor k.
8 CYCL DEF 251 RECTANGULAR POCKET
8 Plunging strategy Q366: Type of plunging strategy.
Q215=0 ;MACHINING OPERATION
„ 0 = vertical plunging. In the tool table, the plunging
angle ANGLE for the active tool must be defined as Q218=80 ;FIRST SIDE LENGTH
90°. Otherwise the TNC displays an error message. Q219=60 ;SECOND SIDE LENGTH
„ 1 = helical plunging. In the tool table, the plunging Q220=5 ;CORNER RADIUS
angle ANGLE for the active tool must be defined not
Q368=0.2 ;ALLOWANCE FOR SIDE
equal to 0. Otherwise the TNC displays an error
message. Q224=+0 ;ANGLE OF ROTATION
„ 2 = reciprocating plunge. In the tool table, the Q367=0 ;POCKET POSITION
plunging angle ANGLE for the active tool must be
defined as not equal to 0. The TNC will otherwise Q207=500 ;FEED RATE FOR MILLING
display an error message. The reciprocation length Q351=+1 ;CLIMB OR UP-CUT
depends on the plunging angle. As a minimum
value the TNC uses twice the tool diameter. Q201=-20 ;DEPTH

8 Feed rate for finishing Q385: Traversing speed of Q202=5 ;PLUNGING DEPTH
the tool during side and floor finishing in mm/min. Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q370=1 ;TOOL PATH OVERLAP
Q366=1 ;PLUNGING
Q385=500 ;FEED RATE FOR FINISHING
9 CYCL CALL POS X+50 Y+50 Z+0 FMAX M3

332 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
CIRCULAR POCKET (Cycle 252)
Use Cycle 252 CIRCULAR POCKET to completely machine circular
pockets. Depending on the cycle parameters, the following machining
alternatives are available:
„ Complete machining: Roughing, floor finishing, side finishing
„ Only roughing
„ Only floor finishing and side finishing
„ Only floor finishing
„ Only side finishing

With an inactive tool table you must always plunge


vertically (Q366=0) because you cannot define a plunging
angle.

Roughing
1 The tool plunges the workpiece at the pocket center and advances
to the first plunging depth. Specify the plunging strategy with
Parameter Q366.
2 The TNC roughs out the pocket from the inside out, taking the
overlap factor (Parameter Q370) and the finishing allowance
(Parameter Q368 and Q369) into account.
3 At the end of the roughing operation, the TNC moves the tool
tangentially away from the pocket wall, then moves by the setup
clearance above the current pecking depth and returns from there
at rapid traverse to the pocket center.
4 This process is repeated until the programmed pocket depth is
reached.

HEIDENHAIN iTNC 530 333


8.4 Cycles for Milling Pockets, Studs and Slots Finishing
5 Inasmuch as finishing allowances are defined, the TNC then
finishes the pocket walls, in multiple infeeds if so specified. The
pocket wall is approached tangentially.
6 Then the TNC finishes the floor of the pocket from the inside out.
The pocket floor is approached tangentially.

Before programming, note the following:


Pre-position the tool in the machining plane to the starting
position (circle center) with radius compensation R0.
The TNC runs the cycle in the axes (machining plane) with
which you approached the starting position. For example,
in X and Y if you programmed CYCL CALL POS X... Y... or
in U and V if you programmed CYCL CALL POS U... V...
The TNC automatically pre-positions the tool in the tool
axis. Note Parameter Q204 (2nd set-up clearance).
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
At the end of the cycle, the TNC returns the tool to the
starting position.
At the end of a roughing operation, the TNC positions the
tool back to the pocket center at rapid traverse. The tool is
above the current pecking depth by the setup clearance.
Enter the setup clearance so that the tool cannot jam
because of chips.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

334 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
8 Machining operation (0/1/2) Q215: Define the
machining operation: Y
0: Roughing and finishing
1: Only roughing
2: Only finishing
Side finishing and floor finishing are only executed if
the finishing allowances (Q368, Q369) have been Q207
defined.

Q223
8 Circle diameter Q223: Diameter of the finished
pocket.
8 Finishing allowance for side Q368 (incremental
value): Finishing allowance in the working plane.
8 Feed rate for milling Q207: Traversing speed of the
X
tool in mm/min while milling.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling
8 Depth Q201 (incremental value): Distance between
workpiece surface and pocket floor. Q206
Z
8 Plunging depth Q202 (incremental value): Infeed per
cut. Enter a value greater than 0.
Q338
8 Finishing allowance for floor Q369 (incremental
value): Finishing allowance in the tool axis. Q202
8 Feed rate for plunging Q206: Traversing speed of
Q201
the tool while moving to depth in mm/min.
8 Infeed for finishing Q338 (incremental value):
Infeed per cut. Q338=0: Finishing in one infeed.
X

HEIDENHAIN iTNC 530 335


8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
Z
8 Workpiece surface coordinate Q203 (absolute
value): Absolute coordinate of the workpiece surface
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur. Q200 Q204
Q368
8 Path overlap factor Q370: Q370 x tool radius =
stepover factor k. Q369
Q203
8 Plunging strategy Q366: Type of plunging strategy.
„ 0 = vertical plunging. In the tool table, the plunging
angle ANGLE for the active tool must be defined as X
90°. Otherwise the TNC displays an error message.
„ 1 = helical plunging. In the tool table, the plunging Example: NC blocks
angle ANGLE for the active tool must be defined not
equal to 0. Otherwise the TNC displays an error 8 CYCL DEF 252 CIRCULAR POCKET
message.
Q215=0 ;MACHINING OPERATION
8 Feed rate for finishing Q385: Traversing speed of
the tool during side and floor finishing in mm/min. Q223=60 ;CIRCLE DIAMETER
Q368=0.2 ;ALLOWANCE FOR SIDE
Q207=500 ;FEED RATE FOR MILLING
Q351=+1 ;CLIMB OR UP-CUT
Q201=-20 ;DEPTH
Q202=5 ;PLUNGING DEPTH
Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q370=1 ;TOOL PATH OVERLAP
Q366=1 ;PLUNGING
Q385=500 ;FEED RATE FOR FINISHING
9 CYCL CALL POS X+50 Y+50 Z+0 FMAX M3

336 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
SLOT MILLING (Cycle 253)
Use Cycle 253 to completely machine a slot. Depending on the cycle
parameters, the following machining alternatives are available:
„ Complete machining: Roughing, floor finishing, side finishing
„ Only roughing
„ Only floor finishing and side finishing
„ Only floor finishing
„ Only side finishing

With an inactive tool table you must always plunge


vertically (Q366=0) because you cannot define a plunging
angle.

Roughing
1 Starting from the left slot arc center, the tool moves in a
reciprocating motion at the plunging angle defined in the tool table
to the first infeed depth. Specify the plunging strategy with
Parameter Q366.
2 The TNC roughs out the slot from the inside out, taking the
finishing allowances (parameter Q368) into account.
3 This process is repeated until the slot depth is reached.

HEIDENHAIN iTNC 530 337


8.4 Cycles for Milling Pockets, Studs and Slots Finishing
4 Inasmuch as finishing allowances are defined, the TNC then
finishes the slot walls, in multiple infeeds if so specified. The slot
side is approached tangentially in the right slot arc.
5 Then the TNC finishes the floor of the slot from the inside out.. The
slot floor is approached tangentially.

Before programming, note the following:


Pre-position the tool in the machining plane to the starting
position with radius compensation R0. Note Parameter
Q367 (slot position).
The TNC runs the cycle in the axes (machining plane) with
which you approached the starting position. For example,
in X and Y if you programmed CYCL CALL POS X... Y... or
in U and V if you programmed CYCL CALL POS U... V...
The TNC automatically pre-positions the tool in the tool
axis. Note Parameter Q204 (2nd set-up clearance).
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
If the slot width is greater than twice the tool diameter, the
TNC roughs the slot correspondingly from inside out. You
can therefore mill any slots with small tools, too.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

338 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
8 Machining operation (0/1/2) Q215: Define the
machining operation: Y
0: Roughing and finishing
1: Only roughing
2: Only finishing
Q218
Side finishing and floor finishing are only executed if
the finishing allowances (Q368, Q369) have been
defined. Q224
8 Slot length Q218 (value parallel to the reference axis

Q219
of the working plane): Enter the length of the slot
8 Slot width Q219 (value parallel to the secondary axis
of the working plane): Enter the slot width. If you
enter a slot width that equals the tool diameter, the
TNC will carry out the roughing process only (slot X
milling). Maximum slot width for roughing: Twice the
tool diameter
8 Finishing allowance for side Q368 (incremental
value): Finishing allowance in the working plane. Y Y

8 Angle of rotation Q224 (absolute): Angle by which Q367=1 Q367=2


the entire slot is rotated. The center of rotation is the
position at which the tool is located when the cycle is
called. Q367=0

8 Slot position (0/1/2/3/4) Q367: Position of the slot X X


in reference to the position of the tool when the cycle
Y Y
is called (see figure at center right):
0: Tool position = Center of slot Q367=3 Q367=4
1: Tool position = Left end of slot
2: Tool position = Center of left slot circle
3: Tool position = Center of right slot circle
4: Tool position = Right end of slot
X X
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling

HEIDENHAIN iTNC 530 339


8.4 Cycles for Milling Pockets, Studs and Slots 8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of slot.
8 Plunging depth Q202 (incremental value): Infeed per
cut. Enter a value greater than 0.
Q206
8 Finishing allowance for floor Q369 (incremental Z
value): Finishing allowance in the tool axis.
8 Feed rate for plunging Q206: Traversing speed of Q338
the tool while moving to depth in mm/min.
Q202
8 Infeed for finishing Q338 (incremental value):
Infeed per cut. Q338=0: Finishing in one infeed. Q201

340 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
Z
8 Workpiece surface coordinate Q203 (absolute
value): Absolute coordinate of the workpiece surface
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur. Q200 Q204
Q368
8 Plunging strategy Q366: Type of plunging strategy.
Q369
„ 0 = vertical plunging. In the tool table, the plunging Q203
angle ANGLE for the active tool must be defined as
90°. Otherwise the TNC displays an error message.
„ 1 = helical plunging. In the tool table, the plunging X
angle ANGLE for the active tool must be defined not
equal to 0. The TNC will otherwise display an error
message. Plunge on a helical path only if there is Example: NC blocks
enough space.
8 CYCL DEF 253 SLOT MILLING
„ 2 = reciprocating plunge. In the tool table, the
plunging angle ANGLE for the active tool must be Q215=0 ;MACHINING OPERATION
defined as not equal to 0. Otherwise the TNC
Q218=80 ;SLOT LENGTH
displays an error message.
Q219=12 ;SLOT WIDTH
8 Feed rate for finishing Q385: Traversing speed of
the tool during side and floor finishing in mm/min. Q368=0.2 ;ALLOWANCE FOR SIDE
Q224=+0 ;ANGLE OF ROTATION
Q367=0 ;SLOT POSITION
Q207=500 ;FEED RATE FOR MILLING
Q351=+1 ;CLIMB OR UP-CUT
Q201=-20 ;DEPTH
Q202=5 ;PLUNGING DEPTH
Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q366=1 ;PLUNGING
Q385=500 ;FEED RATE FOR FINISHING
9 CYCL CALL POS X+50 Y+50 Z+0 FMAX M3

HEIDENHAIN iTNC 530 341


8.4 Cycles for Milling Pockets, Studs and Slots
CIRCULAR SLOT (Cycle 254)
Use Cycle 254 to completely machine a circular slot. Depending on the
cycle parameters, the following machining alternatives are available:
„ Complete machining: Roughing, floor finishing, side finishing
„ Only roughing
„ Only floor finishing and side finishing
„ Only floor finishing
„ Only side finishing

With an inactive tool table you must always plunge


vertically (Q366=0) because you cannot define a plunging
angle.

Roughing
1 The tool moves in a reciprocating motion in the slot center at the
plunging angle defined in the tool table to the first infeed depth.
Specify the plunging strategy with Parameter Q366.
2 The TNC roughs out the slot from the inside out, taking the
finishing allowances (parameter Q368) into account.
3 This process is repeated until the slot depth is reached.

342 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
Finishing
4 Inasmuch as finishing allowances are defined, the TNC then
finishes the slot walls, in multiple infeeds if so specified. The slot
side is approached tangentially.
5 Then the TNC finishes the floor of the slot from the inside out.. The
slot floor is approached tangentially.

Before programming, note the following:


Pre-position the tool in the machining plane with radius
compensation R0. Define Parameter Q367 (Reference
for slot position) appropriately.
The TNC runs the cycle in the axes (machining plane) with
which you approached the starting position. For example,
in X and Y if you programmed CYCL CALL POS X... Y... or
in U and V if you programmed CYCL CALL POS U... V...
The TNC automatically pre-positions the tool in the tool
axis. Note Parameter Q204 (2nd set-up clearance).
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
If the slot width is greater than twice the tool diameter, the
TNC roughs the slot correspondingly from inside out. You
can therefore mill any slots with small tools, too.

Enter in MP7441 bit 2 whether the TNC should output an


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

HEIDENHAIN iTNC 530 343


8.4 Cycles for Milling Pockets, Studs and Slots 8 Machining operation (0/1/2) Q215: Define the
machining operation: Y
0: Roughing and finishing
1: Only roughing
2: Only finishing
Side finishing and floor finishing are only executed if Q248
Q219
the finishing allowances (Q368, Q369) have been Q37
5 Q376
defined.
8 Slot width Q219 (value parallel to the secondary axis
of the working plane): Enter the slot width. If you
enter a slot width that equals the tool diameter, the Q217
TNC will carry out the roughing process only (slot
milling). Maximum slot width for roughing: Twice the
tool diameter
8 Finishing allowance for side Q368 (incremental X
Q216
value): Finishing allowance in the working plane.
8 Pitch circle diameter Q375: Enter the diameter of
the pitch circle. Y Y

8 Reference for slot position (0/1/2/3) Q367: Q367=0 Q367=1


Position of the slot in reference to the position of the
tool when the cycle is called (see figure at center
right):
0: The tool position is not taken into account. The slot
X X
position is determined from the entered pitch circle
center and the starting angle. Y Y
1: Tool position = Center of left slot circle. Starting
angle Q376 refers to this position. The entered pitch Q367=2 Q367=3
circle center is not taken into account.
2: Tool position = Center of center line. Starting angle
Q376 refers to this position. The entered pitch circle
center is not taken into account.
X X
3: Tool position = Center of right slot circle. Starting
angle Q376 refers to this position. The entered pitch
circle center is not taken into account.
8 Center in 1st axis Q216 (absolute value): Center of
the pitch circle in the reference axis of the working
plane. Only effective if Q367 = 0.
8 Center in 2nd axis Q217 (absolute value): Center of
the pitch circle in the minor axis of the working plane.
Only effective if Q367 = 0.
8 Starting angle Q376 (absolute value): Enter the polar
angle of the starting point.
8 Angular length Q248 (incremental value): Enter the
angular length of the slot.

344 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
8 Angle increment Q378 (incremental): Angle by which
the entire slot is rotated. The center of rotation is at Y
the center of the pitch circle.
8 Number of repetitions Q377: Number of machining
operations on the pitch circle. 8
Q37
8 Feed rate for milling Q207: Traversing speed of the Q376
tool in mm/min while milling.
8 Climb or up-cut Q351: Type of milling operation with
M03.
+1 = climb milling
–1 = up-cut milling
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of slot. X
8 Plunging depth Q202 (incremental value): Infeed per
cut. Enter a value greater than 0.
8 Finishing allowance for floor Q369 (incremental
value): Finishing allowance in the tool axis.
8 Feed rate for plunging Q206: Traversing speed of
the tool while moving to depth in mm/min. Q206
Z
8 Infeed for finishing Q338 (incremental value):
Infeed per cut. Q338=0: Finishing in one infeed.
Q338

Q202

Q201

HEIDENHAIN iTNC 530 345


8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
Z
8 Workpiece surface coordinate Q203 (absolute
value): Absolute coordinate of the workpiece surface
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur. Q200 Q204
Q368
8 Plunging strategy Q366: Type of plunging strategy.
Q369
„ 0 = vertical plunging. In the tool table, the plunging Q203
angle ANGLE for the active tool must be defined as
90°. Otherwise the TNC displays an error message.
„ 1 = helical plunging. In the tool table, the plunging X
angle ANGLE for the active tool must be defined not
equal to 0. The TNC will otherwise display an error
message. Plunge on a helical path only if there is Example: NC blocks
enough space.
8 CYCL DEF 254 CIRCULAR SLOT
„ 2 = reciprocating plunge. In the tool table, the
plunging angle ANGLE for the active tool must be Q215=0 ;MACHINING OPERATION
defined as not equal to 0. Otherwise the TNC
Q219=12 ;SLOT WIDTH
displays an error message.
Q368=0.2 ;ALLOWANCE FOR SIDE
8 Feed rate for finishing Q385: Traversing speed of
the tool during side and floor finishing in mm/min. Q375=80 ;PITCH CIRCLE DIA.
Q367=0 ;REF. SLOT POSITION
Q216=+50 ;CENTER IN 1ST AXIS
Q217=+50 ;CENTER IN 2ND AXIS
Q376=+45 ;STARTING ANGLE
Q248=90 ;ANGULAR LENGTH
Q378=0 ;STEPPING ANGLE
Q377=1 ;NR OF REPETITIONS
Q207=500 ;FEED RATE FOR MILLING
Q351=+1 ;CLIMB OR UP-CUT
Q201=-20 ;DEPTH
Q202=5 ;PLUNGING DEPTH
Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q366=1 ;PLUNGING
Q385=500 ;FEED RATE FOR FINISHING
9 CYCL CALL POS X+50 Y+50 Z+0 FMAX M3

346 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
POCKET FINISHING (Cycle 212)
1 The TNC automatically moves the tool in the tool axis to set-up
clearance, or—if programmed—to the 2nd set-up clearance, and
subsequently to the center of the pocket.
2 From the pocket center, the tool moves in the working plane to the
starting point for machining. The TNC takes the allowance and tool
radius into account for calculating the starting point. If necessary,
the TNC penetrates at the pocket center.
3 If the tool is at the 2nd set-up clearance, it moves at rapid traverse
FMAX to the set-up clearance, and from there advances to the first
plunging depth at the feed rate for plunging.
4 The tool then moves tangentially to the contour of the finished part
and, using climb milling, machines one revolution.
5 The tool then departs the contour on a tangential path and returns
to the starting point in the working plane.
6 This process (3 to 5) is repeated until the programmed depth is
reached.
7 At the end of the cycle, the TNC retracts the tool in rapid traverse
to set-up clearance, or—if programmed—to the 2nd set-up
clearance, and finally to the center of the pocket (end position =
starting position).
Q206
Before programming, note the following: Z
The TNC automatically pre-positions the tool in the tool
axis and working plane. Q200 Q204
Q203
The algebraic sign for the cycle parameter DEPTH Q202
determines the working direction. If you program
Q201
DEPTH = 0, the cycle will not be executed.
If you want to clear and finish the pocket with the same
tool, use a center-cut end mill (ISO 1641) and enter a low
feed rate for plunging.
X
Minimum size of the pocket: 3 times the tool radius.

Enter in MP7441 bit 2 whether the TNC should output an Y Q218


error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Q

Keep in mind that the TNC reverses the calculation for pre-
22
0

Q219
positioning when a positive depth is entered. This Q217
means that the tool moves at rapid traverse in the tool axis Q207
at safety clearance below the workpiece surface!

X
Q216 Q221

HEIDENHAIN iTNC 530 347


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
354 CYCL DEF 212 POCKET FINISHING
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of pocket. Q200=2 ;SET-UP CLEARANCE

8 Feed rate for plunging Q206: Traversing speed of Q201=-20 ;DEPTH


the tool in mm/min when moving to depth. If you are Q206=150 ;FEED RATE FOR PLUNGING
plunge-cutting into the material, enter a value lower
than that defined in Q207. Q202=5 ;PLUNGING DEPTH
Q207=500 ;FEED RATE FOR MILLING
8 Plunging depth Q202 (incremental value): Infeed per
cut. Enter a value greater than 0. Q203=+30 ;SURFACE COORDINATE
8 Feed rate for milling Q207: Traversing speed of the Q204=50 ;2ND SET-UP CLEARANCE
tool in mm/min while milling. Q216=+50 ;CENTER IN 1ST AXIS
8 Workpiece surface coordinate Q203 (absolute Q217=+50 ;CENTER IN 2ND AXIS
value): Coordinate of the workpiece surface.
Q218=80 ;FIRST SIDE LENGTH
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Q219=60 ;SECOND SIDE LENGTH
between tool and workpiece (clamping devices) can Q220=5 ;CORNER RADIUS
occur.
Q221=0 ;OVERSIZE
8 Center in 1st axis Q216 (absolute value): Center of
the pocket in the reference axis of the working plane.
8 Center in 2nd axis Q217 (absolute value): Center of
the pocket in the minor axis of the working plane.
8 First side length Q218 (incremental value): Pocket
length, parallel to the reference axis of the working
plane.
8 Second side length Q219 (incremental value): Pocket
length, parallel to the minor axis of the working plane
8 Corner radius Q220: Radius of the pocket corner: If
you make no entry here, the TNC assumes that the
corner radius is equal to the tool radius.
8 Allowance in 1st axis Q221 (incremental value):
Allowance for pre-positioning in the reference axis of
the working plane referenced to the length of the
pocket.

348 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
STUD FINISHING (Cycle 213)
1 The TNC moves the tool in the tool axis to set-up clearance, or—if
programmed—to the 2nd set-up clearance, and subsequently to Y
the center of the stud.
2 From the stud center, the tool moves in the working plane to the
starting point for machining. The starting point lies to the right of
the stud by a distance approx. 3.5 times the tool radius.
3 If the tool is at the 2nd set-up clearance, it moves at rapid traverse
FMAX to the set-up clearance, and from there advances to the first
plunging depth at the feed rate for plunging.
4 The tool then moves tangentially to the contour of the finished part
and, using climb milling, machines one revolution.
5 The tool then departs the contour on a tangential path and returns
to the starting point in the working plane.
6 This process (3 to 5) is repeated until the programmed depth is X
reached.
7 At the end of the cycle, the TNC retracts the tool in FMAX to set-
up clearance, or—if programmed—to the 2nd set-up clearance,
and finally to the center of the stud (end position = starting
position).

Before programming, note the following: Q206


Z
The TNC automatically pre-positions the tool in the tool
axis and working plane.
Q200 Q204
The algebraic sign for the cycle parameter DEPTH
Q203
determines the working direction. If you program Q202
DEPTH = 0, the cycle will not be executed.
Q201
If you want to clear and finish the stud with the same tool,
use a center-cut end mill (ISO 1641) and enter a low feed
rate for plunging.
X
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Y Q218
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
Q

Q207
22

at safety clearance below the workpiece surface!


0

Q219
Q217

X
Q216 Q221

HEIDENHAIN iTNC 530 349


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
35 CYCL DEF 213 STUD FINISHING
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of stud. Q200=2 ;SET-UP CLEARANCE

8 Feed rate for plunging Q206: Traversing speed of Q291=-20 ;DEPTH


the tool in mm/min when moving to depth. If you are Q206=150 ;FEED RATE FOR PLUNGING
plunge-cutting into the material, enter a low value; if
you have already cleared the stud, enter a higher feed Q202=5 ;PLUNGING DEPTH
rate. Q207=500 ;FEED RATE FOR MILLING
8 Plunging depth Q202 (incremental value): Infeed per Q203=+30 ;SURFACE COORDINATE
cut. Enter a value greater than 0.
Q294=50 ;2ND SET-UP CLEARANCE
8 Feed rate for milling Q207: Traversing speed of the Q216=+50 ;CENTER IN 1ST AXIS
tool in mm/min while milling.
Q217=+50 ;CENTER IN 2ND AXIS
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface. Q218=80 ;FIRST SIDE LENGTH

8 2nd set-up clearance Q204 (incremental value): Q219=60 ;SECOND SIDE LENGTH
Coordinate in the tool axis at which no collision Q220=5 ;CORNER RADIUS
between tool and workpiece (clamping devices) can
occur. Q221=0 ;OVERSIZE

8 Center in 1st axis Q216 (absolute value): Center of


the stud in the reference axis of the working plane.
8 Center in 2nd axis Q217 (absolute value): Center of
the stud in the minor axis of the working plane.
8 First side length Q218 (incremental value): Length
of stud parallel to the reference axis of the working
plane.
8 Second side length Q219 (incremental value): Length
of stud parallel to the secondary axis of the working
plane.
8 Corner radius Q220: Radius of the stud corner.
8 Allowance in 1st axis Q221 (incremental value):
Allowance for pre-positioning in the reference axis of
the working plane referenced to the length of the
stud.

350 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
CIRCULAR POCKET FINISHING (Cycle 214)
1 The TNC automatically moves the tool in the tool axis to set-up
clearance, or—if programmed—to the 2nd set-up clearance, and Y
subsequently to the center of the pocket.
2 From the pocket center, the tool moves in the working plane to the
starting point for machining. The TNC takes the workpiece blank
diameter and tool radius into account for calculating the starting
point. If you enter a workpiece blank diameter of 0, the TNC
plunge-cuts into the pocket center.
3 If the tool is at the 2nd set-up clearance, it moves at rapid traverse
FMAX to the set-up clearance, and from there advances to the first
plunging depth at the feed rate for plunging.
4 The tool then moves tangentially to the contour of the finished part
and, using climb milling, machines one revolution.
5 After this, the tool departs the contour tangentially and returns to X
the starting point in the working plane.
6 This process (3 to 5) is repeated until the programmed depth is
reached.
7 At the end of the cycle, the TNC retracts the tool in rapid traverse
(FMAX) to set-up clearance, or, if programmed, to the
2nd set-up clearance and then to the center of the pocket (end
position = starting position). Q206
Z
Before programming, note the following:
The TNC automatically pre-positions the tool in the tool Q200 Q204
axis and working plane. Q203
Q202
The algebraic sign for the cycle parameter DEPTH
Q201
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
If you want to clear and finish the pocket with the same
tool, use a center-cut end mill (ISO 1641) and enter a low
feed rate for plunging. X

Enter in MP7441 bit 2 whether the TNC should output an


Y
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre- Q207
positioning when a positive depth is entered. This
Q222
Q223
means that the tool moves at rapid traverse in the tool axis Q217
at safety clearance below the workpiece surface!

X
Q216

HEIDENHAIN iTNC 530 351


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
42 CYCL DEF 214 C. POCKET FINISHING
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of pocket. Q200=2 ;SET-UP CLEARANCE

8 Feed rate for plunging Q206: Traversing speed of Q201=-20 ;DEPTH


the tool in mm/min when moving to depth. If you are Q206=150 ;FEED RATE FOR PLUNGING
plunge-cutting into the material, enter a value lower
than that defined in Q207. Q202=5 ;PLUNGING DEPTH
Q207=500 ;FEED RATE FOR MILLING
8 Plunging depth Q202 (incremental value): Infeed per
cut. Q203=+30 ;SURFACE COORDINATE
8 Feed rate for milling Q207: Traversing speed of the Q204=50 ;2ND SET-UP CLEARANCE
tool in mm/min while milling. Q216=+50 ;CENTER IN 1ST AXIS
8 Workpiece surface coordinate Q203 (absolute Q217=+50 ;CENTER IN 2ND AXIS
value): Coordinate of the workpiece surface.
Q222=79 ;WORKPIECE BLANK DIA.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Q223=80 ;FINISHED PART DIA.
between tool and workpiece (clamping devices) can
occur.
8 Center in 1st axis Q216 (absolute value): Center of
the pocket in the reference axis of the working plane.
8 Center in 2nd axis Q217 (absolute value): Center of
the pocket in the minor axis of the working plane.
8 Workpiece blank diameter Q222: Diameter of the
premachined pocket for calculating the pre-position.
Enter the workpiece blank diameter to be less than
the diameter of the finished part.
8 Finished part diameter Q223: Diameter of the
finished pocket. Enter the diameter of the finished
part to be greater than the workpiece blank diameter
and greater than the tool diameter.

352 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
CIRCULAR STUD FINISHING (Cycle 215)
1 The TNC automatically moves the tool in the tool axis to set-up
clearance, or—if programmed—to the 2nd set-up clearance, and Y
subsequently to the center of the stud.
2 From the stud center, the tool moves in the working plane to the
starting point for machining. The starting point lies to the right of
the stud at a distance of approx. twice the tool radius.
3 If the tool is at the 2nd set-up clearance, it moves at rapid traverse
FMAX to the set-up clearance, and from there advances to the first
plunging depth at the feed rate for plunging.
4 The tool then moves tangentially to the contour of the finished part
and, using climb milling, machines one revolution.
5 The tool then departs the contour on a tangential path and returns
to the starting point in the working plane.
6 This process (3 to 5) is repeated until the programmed depth is X
reached.
7 At the end of the cycle, the TNC retracts the tool at FMAX to the
set-up clearance, or—if programmed—to the 2nd set-up
clearance, and finally to the center of the pocket (end position =
starting position).

Before programming, note the following: Q206


Z
The TNC automatically pre-positions the tool in the tool
axis and working plane.
Q200 Q204
The algebraic sign for the cycle parameter DEPTH
Q203
determines the working direction. If you program Q202
DEPTH = 0, the cycle will not be executed.
Q201
If you want to clear and finish the stud with the same tool,
use a center-cut end mill (ISO 1641) and enter a low feed
rate for plunging.
X
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Y
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre- Q207
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!
Q223
Q222
Q217

X
Q216

HEIDENHAIN iTNC 530 353


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and workpiece surface.
43 CYCL DEF 215 C. STUD FINISHING
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of stud. Q200=2 ;SET-UP CLEARANCE

8 Feed rate for plunging Q206: Traversing speed of Q201=-20 ;DEPTH


the tool in mm/min when moving to depth. If you are Q206=150 ;FEED RATE FOR PLUNGING
plunge-cutting into the material, enter a low value; if
you have already cleared the stud, enter a higher feed Q202=5 ;PLUNGING DEPTH
rate. Q207=500 ;FEED RATE FOR MILLING
8 Plunging depth Q202 (incremental value): Infeed per Q203=+30 ;SURFACE COORDINATE
cut. Enter a value greater than 0.
Q204=50 ;2ND SET-UP CLEARANCE
8 Feed rate for milling Q207: Traversing speed of the Q216=+50 ;CENTER IN 1ST AXIS
tool in mm/min while milling.
Q217=+50 ;CENTER IN 2ND AXIS
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface. Q222=81 ;WORKPIECE BLANK DIA.

8 2nd set-up clearance Q204 (incremental value): Q223=80 ;FINISHED PART DIA.
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Center in 1st axis Q216 (absolute value): Center of
the stud in the reference axis of the working plane.
8 Center in 2nd axis Q217 (absolute value): Center of
the stud in the minor axis of the working plane.
8 Workpiece blank diameter Q222: Diameter of the
premachined stud for calculating the pre-position.
Enter the workpiece blank diameter to be greater
than the diameter of the finished part.
8 Diameter of finished part Q223: Diameter of the
finished stud. Enter the diameter of the finished part
to be less than the workpiece blank diameter.

354 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
SLOT (oblong hole) with reciprocating plunge-
cut (Cycle 210)
Roughing
1 At rapid traverse, the TNC positions the tool in the tool axis to the
2nd set-up clearance and subsequently to the center of the left
circle. From there, the TNC positions the tool to the set-up
clearance above the workpiece surface.
2 The tool moves at the feed rate for milling to the workpiece
surface. From there, the cutter advances in the longitudinal
direction of the slot—plunge-cutting obliquely into the material—
until it reaches the center of the right circle.
3 The tool then moves back to the center of the left circle, again with
oblique plunge-cutting. This process is repeated until the
programmed milling depth is reached.
4 At the milling depth, the TNC moves the tool for the purpose of
face milling to the other end of the slot and then back to the center
of the slot.
Finishing
5 The TNC positions the tool in the center of the left circle and then
moves it tangentially in a semicircle to the left end of the slot. The
tool subsequently climb mills the contour (with M3), and if so
entered, in more than one infeed.
6 When the tool reaches the end of the contour, it departs the
contour tangentially and returns to the center of the left circle.
7 At the end of the cycle, the tool is retracted in rapid traverse FMAX
to set-up clearance and—if programmed—to the 2nd set-up
clearance.

Before programming, note the following:


The TNC automatically pre-positions the tool in the tool
axis and working plane.
During roughing the tool plunges into the material with a
sideward reciprocating motion from one end of the slot to
the other. Pilot drilling is therefore unnecessary.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
The cutter diameter must not be larger than the slot width
and not smaller than a third of the slot width.
The cutter diameter must be smaller than half the slot
length. The TNC otherwise cannot execute this cycle.

HEIDENHAIN iTNC 530 355


8.4 Cycles for Milling Pockets, Studs and Slots
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

8 Set-up clearance Q200 (incremental value): Distance


between tool tip and workpiece surface.
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of slot.
8 Feed rate for milling Q207: Traversing speed of the Z
tool in mm/min while milling. Q207

8 Plunging depth Q202 (incremental value): Total Q200 Q204


extent by which the tool is fed in the tool axis during Q203
a reciprocating movement. Q202
8 Machining operation (0/1/2) Q215: Define the Q201
machining operation:
0: Roughing and finishing
1: Only roughing
2: Only finishing X
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface
8 2nd set-up clearance Q204 (incremental value): Y
Z coordinate at which no collision between tool and
workpiece (clamping devices) can occur.
8 Center in 1st axis Q216 (absolute value): Center of Q218
the slot in the reference axis of the working plane.
Q224
8 Center in 2nd axis Q217 (absolute value): Center of Q217
the slot in the minor axis of the working plane.
Q219

8 First side length Q218 (value parallel to the


reference axis of the working plane): Enter the length
of the slot.
8 Second side length Q219 (value parallel to the X
secondary axis of the working plane): Enter the slot Q216
width. If you enter a slot width that equals the tool
diameter, the TNC will carry out the roughing process
only (slot milling).

356 8 Programming: Cycles


Example: NC blocks

8.4 Cycles for Milling Pockets, Studs and Slots


8 Angle of rotation Q224 (absolute value): Angle by
which the entire slot is rotated. The center of rotation
lies in the center of the slot. 51 CYCL DEF 210 SLOT RECIP. PLNG

8 Infeed for finishing Q338 (incremental value): Q200=2 ;SET-UP CLEARANCE


Infeed per cut. Q338=0: Finishing in one infeed. Q201=-20 ;DEPTH
8 Feed rate for plunging Q206: Traversing speed of Q207=500 ;FEED RATE FOR MILLING
the tool while moving to depth in mm/min. Effective
only during finishing if infeed for finishing is entered. Q202=5 ;PLUNGING DEPTH
Q215=0 ;MACHINING OPERATION
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q216=+50 ;CENTER IN 1ST AXIS
Q217=+50 ;CENTER IN 2ND AXIS
Q218=80 ;FIRST SIDE LENGTH
Q219=12 ;SECOND SIDE LENGTH
Q224=+15 ;ANGLE OF ROTATION
Q338=5 ;INFEED FOR FINISHING
Q206=150 ;FEED RATE FOR PLUNGING

HEIDENHAIN iTNC 530 357


8.4 Cycles for Milling Pockets, Studs and Slots
CIRCULAR SLOT (oblong hole) with
reciprocating plunge-cut (Cycle 211)
Roughing
1 At rapid traverse, the TNC positions the tool in the tool axis to the
2nd set-up clearance and subsequently to the center of the right
circle. From there, the tool is positioned to the programmed set-up
clearance above the workpiece surface.
2 The tool moves at the milling feed rate to the workpiece surface.
From there, the cutter advances—plunge-cutting obliquely into the
material—to the other end of the slot.
3 The tool then moves at a downward angle back to the starting
point, again with oblique plunge-cutting. This process (steps 2 to
3) is repeated until the programmed milling depth is reached.
4 For the purpose of face milling, the TNC moves the tool at the
milling depth to the other end of the slot.
Finishing
5 The TNC advances the tool from the slot center tangentially to the
contour of the finished part. The tool subsequently climb mills the
contour (with M3), and if so entered, in more than one infeed. The
starting point for the finishing process is the center of the right
circle.
6 When the tool reaches the end of the contour, it departs the
contour tangentially.
7 At the end of the cycle, the tool is retracted in rapid traverse FMAX
to set-up clearance and—if programmed—to the 2nd set-up
clearance.

Before programming, note the following:


The TNC automatically pre-positions the tool in the tool
axis and working plane.
During roughing the tool plunges into the material with a
helical sideward reciprocating motion from one end of the
slot to the other. Pilot drilling is therefore unnecessary.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
The cutter diameter must not be larger than the slot width
and not smaller than a third of the slot width.
The cutter diameter must be smaller than half the slot
length. The TNC otherwise cannot execute this cycle.

358 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
Enter in MP7441 bit 2 whether the TNC should output an
error message (bit 2=1) or not (bit 2=0) if a positive depth
is entered.
Danger of collision!
Keep in mind that the TNC reverses the calculation for pre-
positioning when a positive depth is entered. This
means that the tool moves at rapid traverse in the tool axis
at safety clearance below the workpiece surface!

8 Set-up clearance Q200 (incremental value): Distance


between tool tip and workpiece surface.
8 Depth Q201 (incremental value): Distance between
workpiece surface and bottom of slot.
Z
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling. Q207
Q204
8 Plunging depth Q202 (incremental value): Total Q200
extent by which the tool is fed in the tool axis during Q203
a reciprocating movement. Q202
8 Machining operation (0/1/2) Q215: Define the Q201
machining operation:
0: Roughing and finishing
1: Only roughing
2: Only finishing X
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface
Y
8 2nd set-up clearance Q204 (incremental value):
Z coordinate at which no collision between tool and
workpiece (clamping devices) can occur.
8 Center in 1st axis Q216 (absolute value): Center of Q248
Q219
the slot in the reference axis of the working plane. Q24
4 Q245
8 Center in 2nd axis Q217 (absolute value): Center of Q217
the slot in the minor axis of the working plane.
8 Pitch circle diameter Q244: Enter the diameter of
the pitch circle.
8 Second side length Q219: Enter the slot width. If you
enter a slot width that equals the tool diameter, the
TNC will carry out the roughing process only (slot X
Q216
milling).
8 Starting angle Q245 (absolute value): Enter the polar
angle of the starting point.

HEIDENHAIN iTNC 530 359


Example: NC blocks
8.4 Cycles for Milling Pockets, Studs and Slots 8 Angular length Q248 (incremental value): Enter the
angular length of the slot.
52 CYCL DEF 211 CIRCULAR SLOT
8 Infeed for finishing Q338 (incremental value):
Infeed per cut. Q338=0: Finishing in one infeed. Q200=2 ;SET-UP CLEARANCE

8 Feed rate for plunging Q206: Traversing speed of Q201=-20 ;DEPTH


the tool while moving to depth in mm/min. Effective Q207=500 ;FEED RATE FOR MILLING
only during finishing if infeed for finishing is entered.
Q202=5 ;PLUNGING DEPTH
Q215=0 ;MACHINING OPERATION
Q203=+30 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q216=+50 ;CENTER IN 1ST AXIS
Q217=+50 ;CENTER IN 2ND AXIS
Q244=80 ;PITCH CIRCLE DIA.
Q219=12 ;SECOND SIDE LENGTH
Q245=+45 ;STARTING ANGLE
Q248=90 ;ANGULAR LENGTH
Q338=5 ;INFEED FOR FINISHING
Q206=150 ;FEED RATE FOR PLUNGING

360 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
Example: Milling pockets, studs and slots

Y
90 Y
100
90°

70
8 45°

80
50

50
X Z
50 100 -40 -30 -20

0 BEGIN PGM C210 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+6 Define the tool for roughing/finishing
4 TOOL DEF 2 L+0 R+3 Define slotting mill
5 TOOL CALL 1 Z S3500 Call the tool for roughing/finishing
6 L Z+250 R0 FMAX Retract the tool

HEIDENHAIN iTNC 530 361


8.4 Cycles for Milling Pockets, Studs and Slots
7 CYCL DEF 213 STUD FINISHING Define cycle for machining the contour outside
Q200=2 ;SET-UP CLEARANCE
Q201=-30 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q202=5 ;PLUNGING DEPTH
Q207=250 ;FEED RATE FOR MILLING
Q203=+0 ;SURFACE COORDINATE
Q204=20 ;2ND SET-UP CLEARANCE
Q216=+50 ;CENTER IN 1ST AXIS
Q217=+50 ;CENTER IN 2ND AXIS
Q218=90 ;FIRST SIDE LENGTH
Q219=80 ;SECOND SIDE LENGTH
Q220=0 ;CORNER RADIUS
Q221=5 ;OVERSIZE
8 CYCL CALL M3 Call cycle for machining the contour outside
9 CYCL DEF 252 CIRCULAR POCKET Define CIRCULAR POCKET MILLING cycle
Q215=0 ;MACHINING OPERATION
Q223=50 ;CIRCLE DIAMETER
Q368=0.2 ;ALLOWANCE FOR SIDE
Q207=500 ;FEED RATE FOR MILLING
Q351=+1 ;CLIMB OR UP-CUT
Q201=-30 ;DEPTH
Q202=5 ;PLUNGING DEPTH
Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q370=1 ;TOOL PATH OVERLAP
Q366=1 ;PLUNGING
Q385=750 ;FEED RATE FOR FINISHING
10 CYCL CALL POS X+50 Y+50 Z+0 FMAX Call CIRCULAR POCKET MILLING cycle
11 L Z+250 R0 FMAX M6 Tool change

362 8 Programming: Cycles


8.4 Cycles for Milling Pockets, Studs and Slots
12 TOLL CALL 2 Z S5000 Call slotting mill
13 CYCL DEF 254 CIRCULAR SLOT Define SLOT cycle
Q215=0 ;MACHINING OPERATION
Q219=8 ;SLOT WIDTH
Q368=0.2 ;ALLOWANCE FOR SIDE
Q375=70 ;PITCH CIRCLE DIA.
Q367=0 ;REF. SLOT POSITION No pre-positioning in X/Y required
Q216=+50 ;CENTER IN 1ST AXIS
Q217=+50 ;CENTER IN 2ND AXIS
Q376=+45 ;STARTING ANGLE
Q248=90 ;ANGULAR LENGTH
Q378=180 ;STEPPING ANGLE Starting point for second slot
Q377=2 ;NR OF REPETITIONS
Q207=500 ;FEED RATE FOR MILLING
Q351=+1 ;CLIMB OR UP-CUT
Q201=-20 ;DEPTH
Q202=5 ;PLUNGING DEPTH
Q369=0.1 ;ALLOWANCE FOR FLOOR
Q206=150 ;FEED RATE FOR PLNGNG
Q338=5 ;INFEED FOR FINISHING
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=50 ;2ND SET-UP CLEARANCE
Q366=1 ;PLUNGING
14 CYCL CALL X+50 Y+50 FMAX M3 Call SLOT cycle
15 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
16 END PGM C210 MM

HEIDENHAIN iTNC 530 363


8.5 Cycles for Machining Point Patterns
8.5 Cycles for Machining Point
Patterns
Overview
The TNC provides two cycles for machining point patterns directly:

Cycle Soft key


220 CIRCULAR PATTERN

221 LINEAR PATTERN

You can combine Cycle 220 and Cycle 221 with the following fixed
cycles:

If you have to machine irregular point patterns, use CYCL


CALL PAT (see “Point Tables” on page 274) to develop
point tables.

Cycle 200 DRILLING


Cycle 201 REAMING
Cycle 202 BORING
Cycle 203 UNIVERSAL DRILLING
Cycle 204 BACK BORING
Cycle 205 UNIVERSAL PECKING
Cycle 206 TAPPING NEW with a floating tap holder
Cycle 207 RIGID TAPPING NEW without a floating tap holder
Cycle 208 BORE MILLING
Cycle 209 TAPPING WITH CHIP BREAKING
Cycle 212 POCKET FINISHING
Cycle 213 STUD FINISHING
Cycle 214 CIRCULAR POCKET FINISHING
Cycle 215 CIRCULAR STUD FINISHING
Cycle 251 RECTANGULAR POCKET
Cycle 252 CIRCULAR POCKET MILLING
Cycle 253 SLOT MILLING
Cycle 254 CIRCULAR SLOT
Cycle 262 THREAD MILLING
Cycle 263 THREAD MILLING/COUNTERSINKING
Cycle 264 THREAD DRILLING/MILLING
Cycle 265 HELICAL THREAD DRILLING/MILLING
Cycle 267 OUTSIDE THREAD MILLING

364 8 Programming: Cycles


8.5 Cycles for Machining Point Patterns
CIRCULAR PATTERN (Cycle 220)
1 At rapid traverse, the TNC moves the tool from its current position
to the starting point for the first machining operation. Y
Sequence: N = Q241
„ Move to 2nd setup clearance (spindle axis) Q247
„ Approach the starting point in the spindle axis. Q246
Q24
„ Move to the set-up clearance above the workpiece surface 4 Q245
(spindle axis). Q217
2 From this position the TNC executes the last defined fixed cycle.
3 The tool then approaches on a straight line or circular arc the
starting point for the next machining operation. The tool stops at
the set-up clearance (or the 2nd set-up clearance).
4 This process (1 to 3) is repeated until all machining operations have
been executed. X
Q216
Before programming, note the following:
Cycle 220 is DEF active, which means that Cycle 220 calls
the last defined fixed cycle automatically.
If you combine Cycle 220 with one of the fixed cycles 200
to 209, 212 to 215, 251 to 265 or 267, the set-up Z
clearance, workpiece surface and 2nd set-up clearance
that you defined in Cycle 220 will be effective for the
selected fixed cycle. Q200 Q204
Q203

8 Center in 1st axis Q216 (absolute value): Center of


the pitch circle in the reference axis of the working
plane.
8 Center in 2nd axis Q217 (absolute value): Center of
the pitch circle in the minor axis of the working plane.
8 Pitch circle diameter Q244: Diameter of the pitch X
circle.
8 Starting angle Q245 (absolute value): Angle
between the reference axis of the working plane and
the starting point for the first machining operation on
the pitch circle.
8 Stopping angle Q246 (absolute value): Angle
between the reference axis of the working plane and
the starting point for the last machining operation on
the pitch circle (does not apply to complete circles).
Do not enter the same value for the stopping angle
and starting angle. If you enter the stopping angle
greater than the starting angle, machining will be
carried out counterclockwise; otherwise, machining
will be clockwise.

HEIDENHAIN iTNC 530 365


Example: NC blocks
8.5 Cycles for Machining Point Patterns 8 Stepping angle Q247 (incremental value): Angle
between two machining operations on a pitch circle.
If you enter an angle step of 0, the TNC will calculate 53 CYCL DEF 220 POLAR PATTERN
the angle step from the starting and stopping angles Q216=+50 ;CENTER IN 1ST AXIS
and the number of pattern repetitions. If you enter a
value other than 0, the TNC will not take the stopping Q217=+50 ;CENTER IN 2ND AXIS
angle into account. The sign for the angle step Q244=80 ;PITCH CIRCLE DIA.
determines the working direction (– = clockwise).
Q245=+0 ;STARTING ANGLE
8 Number of repetitions Q241: Number of machining
operations on a pitch circle. Q246=+360 ;STOPPING ANGLE

8 Set-up clearance Q200 (incremental value): Distance Q247=+0 ;STEPPING ANGLE


between tool tip and workpiece surface. Enter a Q241=8 ;NR OF REPETITIONS
positive value.
Q200=2 ;SET-UP CLEARANCE
8 Workpiece surface coordinate Q203 (absolute
Q203=+30 ;SURFACE COORDINATE
value): Coordinate of the workpiece surface.
Q204=50 ;2ND SET-UP CLEARANCE
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision Q301=1 ;MOVE TO CLEARANCE
between tool and workpiece (clamping devices) can Q365=0 ;TYPE OF TRAVERSE
occur.
8 Moving to clearance height Q301: Definition of how
the tool is to move between machining processes.
0: Move to the set-up clearance between operations.
1: Move to the 2nd set-up clearance between
machining operations.
8 Type of traverse? Line=0/Arc=1 Q365: Definition of
the path function with which the tool is to move
between machining operations.
0: Move between operations on a straight line
1: Move between operations on the pitch circle

366 8 Programming: Cycles


8.5 Cycles for Machining Point Patterns
LINEAR PATTERN (Cycle 221)

Before programming, note the following:


Cycle 221 is DEF active, which means that Cycle 221 calls Z
the last defined fixed cycle automatically.
If you combine Cycle 221 with one of the fixed cycles 200 Y
to 209, 212 to 215, 251 to 265 or 267, the set-up
clearance, workpiece surface and 2nd set-up clearance
X
that you defined in Cycle 221 will be effective for the
selected fixed cycle.

1 The TNC automatically moves the tool from its current position to
the starting point for the first machining operation.
Sequence:
„ Move to 2nd setup clearance (spindle axis)
„ Approach the starting point in the spindle axis.
„ Move to the set-up clearance above the workpiece surface
(spindle axis). Y
2 From this position the TNC executes the last defined fixed cycle.
3 The tool then approaches the starting point for the next machining 7
Q23
operation in the positive reference axis direction at the set-up Q238
clearance (or the 2nd set-up clearance).
4 This process (1 to 3) is repeated until all machining operations on 3
the first line have been executed. The tool is located above the last Q24
N=
point on the first line. 2
Q24
5 The tool subsequently moves to the last point on the second line N=
where it carries out the machining operation. Q224
Q226
6 From this position the tool approaches the starting point for the
next machining operation in the negative reference axis direction.
7 This process (6) is repeated until all machining operations in the X
second line have been executed. Q225
8 The tool then moves to the starting point of the next line.
9 All subsequent lines are processed in a reciprocating movement.

Q200 Q204
Q203

HEIDENHAIN iTNC 530 367


Example: NC blocks
8.5 Cycles for Machining Point Patterns 8 Starting point 1st axis Q225 (absolute value):
Coordinate of the starting point in the reference axis
of the working plane. 54 CYCL DEF 221 CARTESIAN PATTERN

8 Starting point 2nd axis Q226 (absolute value): Q225=+15 ;STARTING PNT 1ST AXIS
Coordinate of the starting point in the minor axis of Q226=+15 ;STARTING PNT 2ND AXIS
the working plane.
Q237=+10 ;SPACING IN 1ST AXIS
8 Spacing in 1st axis Q237 (incremental value):
Spacing between each point on a line. Q238=+8 ;SPACING IN 2ND AXIS
Q242=6 ;NUMBER OF COLUMNS
8 Spacing in 2nd axis Q238 (incremental value):
Spacing between each line. Q243=4 ;NUMBER OF LINES
8 Number of columns Q242: Number of machining Q224=+15 ;ANGLE OF ROTATION
operations on a line. Q200=2 ;SET-UP CLEARANCE
8 Number of lines Q243: Number of passes. Q203=+30 ;SURFACE COORDINATE
8 Angle of rotation Q224 (absolute value): Angle by Q204=50 ;2ND SET-UP CLEARANCE
which the entire pattern is rotated. The center of
rotation lies in the starting point. Q301=1 ;MOVE TO CLEARANCE

8 Setup clearance Q200 (incremental value): Distance


between tool tip and workpiece surface.
8 Workpiece surface coordinate Q203 (absolute
value): Coordinate of the workpiece surface.
8 2nd set-up clearance Q204 (incremental value):
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can
occur.
8 Moving to clearance height Q301: Definition of how
the tool is to move between machining processes.
0: Move to the set-up clearance between operations.
1: Move to the 2nd set-up clearance between the
measuring points.

368 8 Programming: Cycles


8.5 Cycles for Machining Point Patterns
Example: Circular hole patterns

100

R25
70 30°

R35
25

X
30 90 100

0 BEGIN PGM PATTERN MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Define the workpiece blank
2 BLK FORM 0.2 Y+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3 Define the tool
4 TOOL CALL 1 Z S3500 Tool call
5 L Z+250 R0 FMAX M3 Retract the tool
6 CYCL DEF 200 DRILLING Cycle definition: drilling
Q200=2 ;SET-UP CLEARANCE
Q201=-15 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q202=4 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME
Q203=+0 ;SURFACE COORDINATE
Q204=0 ;2ND SET-UP CLEARANCE
Q211=0.25 ;DWELL TIME AT DEPTH

HEIDENHAIN iTNC 530 369


8.5 Cycles for Machining Point Patterns
7 CYCL DEF 220 POLAR PATTERN Define cycle for circular pattern 1, CYCL 200 is called automatically,
Q216=+30 ;CENTER IN 1ST AXIS Q200, Q203 and Q204 are effective as defined in Cycle 220.
Q217=+70 ;CENTER IN 2ND AXIS
Q244=50 ;PITCH CIRCLE DIA.
Q245=+0 ;STARTING ANGLE
Q246=+360 ;STOPPING ANGLE
Q247=+0 ;STEPPING ANGLE
Q241=10 ;NR OF REPETITIONS
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=100 ;2ND SET-UP CLEARANCE
Q301=1 ;MOVE TO CLEARANCE
Q365=0 ;TYPE OF TRAVERSE
8 CYCL DEF 220 POLAR PATTERN Define cycle for circular pattern 2, CYCL 200 is called automatically,
Q216=+90 ;CENTER IN 1ST AXIS Q200, Q203 and Q204 are effective as defined in Cycle 220.
Q217=+25 ;CENTER IN 2ND AXIS
Q244=70 ;PITCH CIRCLE DIA.
Q245=+90 ;STARTING ANGLE
Q246=+360 ;STOPPING ANGLE
Q247=30 ;STEPPING ANGLE
Q241=5 ;NR OF REPETITIONS
Q200=2 ;SET-UP CLEARANCE
Q203=+0 ;SURFACE COORDINATE
Q204=100 ;2ND SET-UP CLEARANCE
Q301=1 ;MOVE TO CLEARANCE
Q365=0 ;TYPE OF TRAVERSE
9 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
10 END PGM PATTERN MM

370 8 Programming: Cycles


8.6 SL Cycles

8.6 SL Cycles
Fundamentals
SL Cycles enable you to form complex contours by combining up to Example: Program structure: Machining with SL
12 subcontours (pockets or islands). You define the individual Cycles
subcontours in subprograms. The TNC calculates the total contour
from the subcontours (subprogram numbers) that you enter in 0 BEGIN PGM SL2 MM
Cycle 14 CONTOUR GEOMETRY. ...

The memory capacity for programming an SL cycle (all 12 CYCL DEF 140 CONTOUR GEOMETRY ...
contour subprograms) is limited. The number of possible 13 CYCL DEF 20.0 CONTOUR DATA ...
contour elements depends on the type of contour (inside or
outside contour) and the number of subcontours. For ...
example, you can program up to approx. 1024 line blocks. 16 CYCL DEF 21.0 PILOT DRILLING ...
SL cycles conduct comprehensive and complex internal 17 CYCL CALL
calculations as well as the resulting machining operations.
For safety reasons, always run a graphical program test ...
before machining! This is a simple way of finding out 18 CYCL DEF 22.0 ROUGH-OUT ...
whether the TNC-calculated program will provide the
desired results. 19 CYCL CALL
...
Characteristics of the subprograms 22 CYCL DEF 23.0 FLOOR FINISHING ...
„ Coordinate transformations are allowed. If they are programmed 23 CYCL CALL
within the subcontour they are also effective in the following ...
subprograms, but they need not be reset after the cycle call.
„ The TNC ignores feed rates F and miscellaneous functions M. 26 CYCL DEF 24.04 SIDE FINISHING ...
„ The TNC recognizes a pocket if the tool path lies inside the contour, 27 CYCL CALL
for example if you machine the contour clockwise with radius ...
compensation RR.
50 L Z+250 R0 FMAX M2
„ The TNC recognizes an island if the tool path lies outside the
contour, for example if you machine the contour clockwise with 51 LBL 1
radius compensation RL.
...
„ The subprograms must not contain tool axis coordinates.
55 LBL 0
„ The working plane is defined in the first coordinate block of the
subprogram. The secondary axes U,V,W are permitted. 56 LBL 2
...
60 LBL 0
...
99 END PGM SL2 MM

HEIDENHAIN iTNC 530 371


8.6 SL Cycles Characteristics of the fixed cycles
„ The TNC automatically positions the tool to the set-up clearance
before a cycle.
„ Each level of infeed depth is milled without interruptions since the
cutter traverses around islands instead of over them.
„ The radius of “inside corners” can be programmed—the tool keeps
moving to prevent surface blemishes at inside corners (this applies
for the outermost pass in the Rough-out and Side Finishing cycles).
„ The contour is approached on a tangential arc for side finishing.
„ For floor finishing, the tool again approaches the workpiece on a
tangential arc (for tool axis Z, for example, the arc may be in the Z/X
plane).
„ The contour is machined throughout in either climb or up-cut milling.

With MP7420 you can determine where the tool is


positioned at the end of Cycles 21 to 24.

The machining data (such as milling depth, finishing allowance and


setup clearance) are entered as CONTOUR DATA in Cycle 20.

372 8 Programming: Cycles


8.6 SL Cycles
Overview of SL Cycles

Cycle Soft key


14 CONTOUR GEOMETRY (essential)

20 CONTOUR DATA (essential)

21 PILOT DRILLING (optional)

22 ROUGH-OUT (essential)

23 FLOOR FINISHING (optional)

24 SIDE FINISHING (optional)

Enhanced cycles:

Cycle Soft key


25 CONTOUR TRAIN

27 CYLINDER SURFACE

28 CYLINDER SURFACE slot milling

29 CYLINDER SURFACE ridge milling

39 CYLINDER SURFACE outside contour millin

HEIDENHAIN iTNC 530 373


8.6 SL Cycles
CONTOUR GEOMETRY (Cycle 14)
All subprograms that are superimposed to define the contour are
listed in Cycle 14 CONTOUR GEOMETRY.

Before programming, note the following: C D


Cycle 14 is DEF active which means that it becomes A B
effective as soon as it is defined in the part program.
You can list up to 12 subprograms (subcontours) in
Cycle 14.

8 Label numbers for the contour: Enter all label


numbers for the individual subprograms that are to be
superimposed to define the contour. Confirm every
label number with the ENT key. When you have
entered all numbers, conclude entry with the END
key.

374 8 Programming: Cycles


8.6 SL Cycles
Overlapping contours
Pockets and islands can be overlapped to form a new contour. You can
thus enlarge the area of a pocket by another pocket or reduce it by an
island. Y
Subprograms: Overlapping pockets
S1
The subsequent programming examples are contour
subprograms that are called by Cycle 14 CONTOUR
GEOMETRY in a main program. A B

Pockets A and B overlap. S2


The TNC calculates the points of intersection S1 und S2. They do not
have to be programmed.
X
The pockets are programmed as full circles.

Subprogram 1: Pocket A
51 LBL 1 Example: NC blocks
52 L X+10 Y+50 RR 12 CYCL DEF 14.0 CONTOUR GEOMETRY
53 CC X+35 Y+50 13 CYCL DEF 14.1 CONTOUR LABEL 1/2/3/4
54 C X+10 Y+50 DR-
55 LBL 0

Subprogram 2: Pocket B
56 LBL 2
57 L X+90 Y+50 RR
58 CC X+65 Y+50
59 C X+90 Y+50 DR-
60 LBL 0

HEIDENHAIN iTNC 530 375


8.6 SL Cycles Area of inclusion
Both surfaces A and B are to be machined, including the overlapping
area:
„ The surfaces A and B must be pockets.
„ The first pocket (in Cycle 14) must start outside the second pocket.
Surface A: B

51 LBL 1
A
52 L X+10 Y+50 RR
53 CC X+35 Y+50
54 C X+10 Y+50 DR-
55 LBL 0

Surface B:

56 LBL 2
57 L X+90 Y+50 RR
58 CC X+65 Y+50
59 C X+90 Y+50 DR-
60 LBL 0

Area of exclusion
Surface A is to be machined without the portion overlapped by B:
„ Surface A must be a pocket and B an island.
„ A must start outside of B.
„ B must start inside of A.
Surface A:
B
51 LBL 1
A
52 L X+10 Y+50 RR
53 CC X+35 Y+50
54 C X+10 Y+50 DR-
55 LBL 0

Surface B:

56 LBL 2
57 L X+90 Y+50 RL
58 CC X+65 Y+50
59 C X+90 Y+50 DR-
60 LBL 0

376 8 Programming: Cycles


8.6 SL Cycles
Area of intersection
Only the area where A and B overlap is to be machined. (The areas
covered by A or B alone are to be left unmachined.)
„ A and B must be pockets.
„ A must start inside of B.
Surface A:
A B
51 LBL 1
52 L X+60 Y+50 RR
53 CC X+35 Y+50
54 C X+60 Y+50 DR-
55 LBL 0

Surface B:

56 LBL 2
57 L X+90 Y+50 RR
58 CC X+65 Y+50
59 C X+90 Y+50 DR-
60 LBL 0

HEIDENHAIN iTNC 530 377


8.6 SL Cycles
CONTOUR DATA (Cycle 20)
Machining data for the subprograms describing the subcontours are
entered in Cycle 20.
Y
Before programming, note the following:
Cycle 20 is DEF active which means that it becomes
effective as soon as it is defined in the part program.
The algebraic sign for the cycle parameter DEPTH

8
Q
determines the working direction. If you program
DEPTH = 0, the TNC does not execute that next cycle.
Q9=+1
The machining data entered in Cycle 20 are valid for
Cycles 21 to 24.
If you are using the SL Cycles in Q parameter programs,
the Cycle Parameters Q1 to Q19 cannot be used as k
program parameters.
X

8 Milling depth Q1 (incremental value): Distance


between workpiece surface and bottom of pocket.
Z
8 Path overlap factor Q2: Q2 x tool radius = stepover
factor k.
8 Finishing allowance for side Q3 (incremental
value): Finishing allowance in the working plane
8 Finishing allowance for floor Q4 (incremental
value): Finishing allowance in the tool axis. Q6

Q7
8 Workpiece surface coordinate Q5 (absolute value): Q10 Q1
Absolute coordinate of the workpiece surface
Q5
8 Set-up clearance Q6 (incremental value): Distance
between tool tip and workpiece surface.
8 Clearance height Q7 (absolute value): Absolute
X
height at which the tool cannot collide with the
workpiece (for intermediate positioning and retraction Example: NC blocks
at the end of the cycle).
57 CYCL DEF 20.0 CONTOUR DATA
8 Inside corner radius Q8: Inside “corner” rounding
radius; entered value is referenced to the tool Q1=-20 ;MILLING DEPTH
midpoint path.
Q2=1 ;TOOL PATH OVERLAP
8 Direction of rotation ? Clockwise = -1 Q9: Q3=+0.2 ;ALLOWANCE FOR SIDE
Machining direction for pockets.
Q4=+0.1 ;ALLOWANCE FOR FLOOR
„ Clockwise (Q9 = –1 up-cut milling for pocket and
island) Q5=+30 ;SURFACE COORDINATE
„ Counterclockwise (Q9 = +1 climb milling for pocket Q6=2 ;SET-UP CLEARANCE
and island)
Q7=+80 ;CLEARANCE HEIGHT
You can check the machining parameters during a program Q8=0.5 ;ROUNDING RADIUS
interruption and overwrite them if required.
Q9=+1 ;DIRECTION OF ROTATION

378 8 Programming: Cycles


8.6 SL Cycles
PILOT DRILLING (Cycle 21)

When calculating the infeed points, the TNC does not


account for the delta value DR programmed in a TOOL CALL
block. Y
In narrow areas, the TNC may not be able to carry out pilot
drilling with a tool that is larger than the rough-out tool.

Process
1 The tool drills from the current position to the first plunging depth
at the programmed feed rate F.
2 When it reaches the first plunging depth, the tool retracts at rapid
traverse FMAX to the starting position and advances again to the
first plunging depth minus the advanced stop distance t.
3 The advanced stop distance is automatically calculated by the X
control:
„ At a total hole depth of up to 30 mm: t = 0.6 mm
„ At a total hole depth exceeding 30 mm: t = hole depth / 50 Example: NC blocks
„ Maximum advanced stop distance: 7 mm
58 CYCL DEF 21.0 PILOT DRILLING
4 The tool then advances with another infeed at the programmed
feed rate F. Q10=+5 ;PLUNGING DEPTH
5 The TNC repeats this process (1 to 4) until the programmed depth Q11=100 ;FEED RATE FOR PLUNGING
is reached. Q13=1 ;ROUGH-OUT TOOL
6 After a dwell time at the hole bottom, the tool is returned to the
starting position at rapid traverse FMAX for chip breaking.

Application
Cycle 21 is for PILOT DRILLING of the cutter infeed points. It accounts
for the allowance for side and the allowance for floor as well as the
radius of the rough-out tool. The cutter infeed points also serve as
starting points for roughing.
8 Plunging depth Q10 (incremental value): Dimension
by which the tool drills in each infeed (negative sign
for negative working direction).
8 Feed rate for plunging Q11: Traversing speed in
mm/min during drilling.
8 Rough-out tool number Q13: Tool number of the
roughing mill.

HEIDENHAIN iTNC 530 379


8.6 SL Cycles
ROUGH-OUT (Cycle 22)
1 The TNC positions the tool over the cutter infeed point, taking the
allowance for side into account.
2 In the first plunging depth, the tool mills the contour from the
inside outward at the milling feed rate Q12.
3 The island contours (here: C/D) are cleared out with an approach A B
toward the pocket contour (here: A/B).
4 In the next step the TNC moves the tool to the next plunging depth
and repeats the roughing procedure until the program depth is C D
reached.
5 Finally the TNC retracts the tool to the clearance height.

Before programming, note the following:


This cycle requires a center-cut end mill (ISO 1641) or pilot
drilling with Cycle 21.
You define the plunging behavior of Cycle 22 with
parameter Q19 and with the tool table in the ANGLE and Example: NC blocks
LCUTS columns:
„ If Q19=0 is defined, the TNC always plunges 59 CYCL DEF 22.0 ROUGH-OUT
perpendicularly, even if a plunge angle (ANGLE) is Q10=+5 ;PLUNGING DEPTH
defined for the active tool.
Q11=100 ;FEED RATE FOR PLUNGING
„ If you define the ANGLE=90°, the TNC plunges
perpendicularly. The reciprocation feed rate Q19 is used Q12=350 ;FEED RATE FOR ROUGHING
as plunging feed rate. Q18=1 ;COARSE ROUGHING TOOL
„ If the reciprocation feed rate Q19 is defined in Cycle 22
and ANGLE is defined between 0.1 and 89.999 in the Q19=150 ;RECIPROCATION FEED RATE
tool table, the TNC plunges helically at the defined Q208=99999 ;RETRACTION FEED RATE
ANGLE.
„ If the reciprocation feed is defined in Cycle 22 and no
ANGLE is in the tool table, the TNC displays an error
message.
„ If geometrical conditions do not allow helical plunging
(slot geometry), the TNC tries a reciprocating plunge.
The reciprocation length is calculated from LCUTS and
ANGLE (reciprocation length = LCUTS / tan ANGLE)

380 8 Programming: Cycles


8.6 SL Cycles
8 Plunging depth Q10 (incremental value): Dimension
by which the tool plunges in each infeed.
8 Feed rate for plunging Q11: Traversing speed of the
tool in mm/min during penetration.
8 Feed rate for milling Q12: Traversing speed for
milling in mm/min.
8 Coarse roughing tool number Q18: Number of the
tool with which the TNC has already coarse-roughed
the contour. If there was no coarse roughing, enter
“0”; if you enter a value other than zero, the TNC will
only rough-out the portion that could not be machined
with the coarse roughing tool.
If the portion that is to be roughed cannot be
approached from the side, the TNC will mill in a
reciprocating plunge-cut. For this purpose you must
enter the tool length LCUTS in the tool table TOOL.T
(see “Tool Data” on page 152) and define the
maximum plunging ANGLE of the tool. The TNC will
otherwise generate an error message.
8 Reciprocation feed rate Q19: Traversing speed of
the tool in mm/min during reciprocating plunge-cut.
8 Retraction feed rate Q208: Traversing speed of the
tool in mm/min when retracting after machining. If
you enter Q208 = 0, the TNC retracts the tool at the
feed rate in Q12.

FLOOR FINISHING (Cycle 23)

The TNC automatically calculates the starting point for


finishing. The starting point depends on the available
space in the pocket.

The tool approaches the machining plane smoothly (in a vertically Z


tangential arc). The tool then clears the finishing allowance remaining
from rough-out.
8 Feed rate for plunging Q11: Traversing speed of the
tool during penetration. Q12
8 Feed rate for milling Q12: Traversing speed for Q11
milling.
8 Retraction feed rate Q208: Traversing speed of the
tool in mm/min when retracting after machining. If X
you enter Q208 = 0, the TNC retracts the tool at the
feed rate in Q12.
Example: NC blocks

60 CYCL DEF 23.0 FLOOR FINISHING


Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
Q208=99999 ;RETRACTION FEED RATE

HEIDENHAIN iTNC 530 381


8.6 SL Cycles
SIDE FINISHING (Cycle 24)
The subcontours are approached and departed on a tangential arc.
Each subcontour is finish-milled separately.

Before programming, note the following:


The sum of allowance for side (Q14) and the radius of the Z
finish mill must be smaller than the sum of allowance for Q11
side (Q3, Cycle 20) and the radius of the rough mill.
This calculation also holds if you run Cycle 24 without
having roughed out with Cycle 22; in this case, enter “0” Q12
for the radius of the rough mill. Q10

You can use Cycle 24 also for contour milling. Then you
must:
„ define the contour to be milled as a single island X
(without pocket limit), and
„ enter the finishing allowance (Q3) in Cycle 20 to be
greater than the sum of the finishing allowance Q14 + Example: NC blocks
radius of the tool being used.
61 CYCL DEF 24.0 SIDE FINISHING
The TNC automatically calculates the starting point for
finishing. The starting point depends on the available Q9=+1 ;DIRECTION OF ROTATION
space in the pocket and the allowance programmed in Q10=+5 ;PLUNGING DEPTH
Cycle 20.
Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
8 Direction of rotation ? Clockwise = -1 Q9:
Machining direction: Q14=+0 ;ALLOWANCE FOR SIDE
+1:Counterclockwise
–1:Clockwise rotation
8 Plunging depth Q10 (incremental value): Dimension
by which the tool plunges in each infeed.
8 Feed rate for plunging Q11: Traversing speed of the
tool during penetration.
8 Feed rate for milling Q12: Traversing speed for
milling.
8 Finishing allowance for side Q14 (incremental
value): Enter the allowed material for several finish-
milling operations. If you enter Q14 = 0, the remaining
finishing allowance will be cleared.

382 8 Programming: Cycles


8.6 SL Cycles
CONTOUR TRAIN (Cycle 25)
In conjunction with Cycle 14 CONTOUR GEOMETRY, this cycle
facilitates the machining of open contours (i.e. where the starting
point of the contour is not the same as its end point). Z
Cycle 25 CONTOUR TRAIN offers considerable advantages over Y
machining an open contour using positioning blocks:
„ The TNC monitors the operation to prevent undercuts and surface
blemishes. It is recommended that you run a graphic simulation of
the contour before execution.
„ If the radius of the selected tool is too large, the corners of the
contour may have to be reworked.
„ The contour can be machined throughout by up-cut or by climb
milling. The type of milling even remains effective when the
contours are mirrored.
„ The tool can traverse back and forth for milling in several infeeds: X
This results in faster machining.
„ Allowance values can be entered in order to perform repeated
Example: NC blocks
rough-milling and finish-milling operations.
62 CYCL DEF 25.0 CONTOUR TRAIN
Before programming, note the following:
Q1=-20 ;MILLING DEPTH
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program Q3=+0 ;ALLOWANCE FOR SIDE
DEPTH = 0, the cycle will not be executed. Q5=+0 ;SURFACE COORDINATE
The TNC takes only the first label of Cycle 14 CONTOUR Q7=+50 ;CLEARANCE HEIGHT
GEOMETRY into account.
Q10=+5 ;PLUNGING DEPTH
The memory capacity for programming an SL cycle is
Q11=100 ;FEED RATE FOR PLUNGING
limited. For example, you can program up to 1024 straight-
line blocks in one SL cycle. Q12=350 ;FEED RATE FOR MILLING
Cycle 20 CONTOUR DATA is not required. Q15=-1 ;CLIMB OR UP-CUT
Positions that are programmed in incremental dimensions
immediately after Cycle 25 are referenced to the position
of the tool at the end of the cycle.

Danger of collision!
To avoid collisions,
„ Do not program positions in incremental dimensions
immediately after Cycle 25 since they are referenced to
the position of the tool at the end of the cycle.
„ Move the tool to defined (absolute) positions in all main
axes, since the position of the tool at the end of the
cycle is not identical to the position of the tool at the
start of the cycle.

HEIDENHAIN iTNC 530 383


8.6 SL Cycles 8 Milling depth Q1 (incremental value): Distance
between workpiece surface and contour floor.
8 Finishing allowance for side Q3 (incremental
value): Finishing allowance in the working plane.
8 Workpiece Workpiece surface Q5 (absolute):
Absolute coordinate of the workpiece surface
referenced to the workpiece datum
8 Clearance height Q7 (absolute value): Absolute
height at which the tool cannot collide with the
workpiece. Position for tool retraction at the end of
the cycle.
8 Plunging depth Q10 (incremental value): Dimension
by which the tool plunges in each infeed.
8 Feed rate for plunging Q11: Traversing speed of the
tool in the tool axis.
8 Feed rate for milling Q12: Traversing speed of the
tool in the working plane.
8 Climb or up-cut ? Up-cut = –1 Q15:
Climb milling: Input value = +1
Up-cut milling: Input value = –1
To enable climb milling and up-cut milling alternately
in several infeeds:Input value = 0

384 8 Programming: Cycles


8.6 SL Cycles
CYLINDER SURFACE (Cycle 27, software
option 1)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

This cycle enables you to program a contour in two dimensions and


then roll it onto a cylindrical surface for 3-D machining. Use Cycle 28 if
you wish to mill guide notches onto the cylinder surface.
The contour is described in a subprogram identified in Cycle 14
CONTOUR GEOMETRY.
The subprogram contains coordinates in a rotary axis and in its parallel
axis. The rotary axis C, for example, is parallel to the Z axis. The path
functions L, CHF, CR, RND APPR (except APPR LCT) and DEP are
available.
The dimensions in the rotary axis can be entered as desired either in
degrees or in mm (or inches). You can select the desired dimension
type in the cycle definition.
1 The TNC positions the tool over the cutter infeed point, taking the
allowance for side into account.
Z
2 At the first plunging depth, the tool mills along the programmed
contour at the milling feed rate Q12.
3 At the end of the contour, the TNC returns the tool to the setup
clearance and returns to the point of penetration;
4 Steps 1 to 3 are repeated until the programmed milling depth Q1
is reached.
5 Then the tool moves to the set-up clearance.

HEIDENHAIN iTNC 530 385


8.6 SL Cycles
Before programming, note the following:
The memory capacity for programming an SL cycle is
limited. For example, you can program up to 1024 straight-
line blocks in one SL cycle.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
This cycle requires a center-cut end mill (ISO 1641).
The cylinder must be set up centered on the rotary table.
The tool axis must be perpendicular to the rotary table. If
this is not the case, the TNC will generate an error
message.
This cycle can also be used in a tilted working plane.
The TNC checks whether the compensated and non-
compensated tool paths lie within the display range of the
rotary axis, which is defined in machine parameter 810.x. If
the error message “Contour programming error” is output,
set MP 810.x = 0.

8 Milling depth Q1 (incremental value): Distance Example: NC blocks


between the cylindrical surface and the floor of the
contour. 63 CYCL DEF 27.0 CYLINDER SURFACE

8 Finishing allowance for side Q3 (incremental Q1=-8 ;MILLING DEPTH


value): Finishing allowance in the plane of the unrolled Q3=+0 ;ALLOWANCE FOR SIDE
cylindrical surface. This allowance is effective in the
direction of the radius compensation. Q6=+0 ;SET-UP CLEARANCE

8 Set-up clearance Q6 (incremental value): Distance Q10=+3 ;PLUNGING DEPTH


between the tool tip and the cylinder surface. Q11=100 ;FEED RATE FOR PLUNGING
8 Plunging depth Q10 (incremental value): Dimension Q12=350 ;FEED RATE FOR MILLING
by which the tool plunges in each infeed.
Q16=25 ;RADIUS
8 Feed rate for plunging Q11: Traversing speed of the Q17=0 ;DIMENSION TYPE
tool in the tool axis.
8 Feed rate for milling Q12: Traversing speed of the
tool in the working plane.
8 Cylinder radius Q16: Radius of the cylinder on which
the contour is to be machined.
8 Dimension type ? ang./lin. Q17: The dimensions for
the rotary axis of the subprogram are given either in
degrees (0) or in mm/inches (1).

386 8 Programming: Cycles


8.6 SL Cycles
CYLINDER SURFACE slot milling (Cycle 28,
software option 1)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

This cycle enables you to program a guide notch in two dimensions


and then transfer it onto a cylindrical surface. Unlike Cycle 27, with this
cycle the TNC adjusts the tool so that, with radius compensation
active, the walls of the slot are nearly parallel. You can machine exactly
parallel walls by using a tool that is exactly as wide as the slot.
The smaller the tool is with respect to the slot width, the larger the
distortion in circular arcs and oblique line segments. To minimize this
process-related distortion, you can define in parameter Q21 a
tolerance with which the TNC machines a slot approaching a slot
machined with a tool of the same width.
Program the midpoint path of the contour together with the tool radius
compensation. With the radius compensation you specify whether the
TNC cuts the slot with climb milling or up-cut milling.
1 The TNC positions the tool over the cutter infeed point.
2 At the first plunging depth, the tool mills along the programmed Z
slot wall at the milling feed rate Q12 while respecting the finishing
allowance for the side.
3 At the end of the contour, the TNC moves the tool to the opposite
wall and returns to the infeed point.
4 Steps 2 and 3 are repeated until the programmed milling depth Q1
is reached.
5 If you have defined the tolerance in Q21, the TNC then remachines
the slot walls to be as parallel as possible.
6 Finally, the tool retracts in the tool axis to the clearance height or
to the position last programmed before the cycle (depending on
machine parameter 7420)
C

HEIDENHAIN iTNC 530 387


8.6 SL Cycles
Before programming, note the following:
The memory capacity for programming an SL cycle is
limited. For example, you can program up to 1024 straight-
line blocks in one SL cycle.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
This cycle requires a center-cut end mill (ISO 1641).
The cylinder must be set up centered on the rotary table.
The tool axis must be perpendicular to the rotary table. If
this is not the case, the TNC will generate an error
message.
This cycle can also be used in a tilted working plane.
The TNC checks whether the compensated and non-
compensated tool paths lie within the display range of the
rotary axis, which is defined in machine parameter 810.x.
If the error message “Contour programming error” is
output, set MP 810.x = 0.

388 8 Programming: Cycles


Example: NC blocks

8.6 SL Cycles
8 Milling depth Q1 (incremental value): Distance
between the cylindrical surface and the floor of the
contour. 63 CYCL DEF 28.0 CYLINDER SURFACE

8 Finishing allowance for side Q3 (incremental Q1=-8 ;MILLING DEPTH


value): Finishing allowance on the slot wall. The Q3=+0 ;ALLOWANCE FOR SIDE
finishing allowance reduces the slot width by twice
the entered value. Q6=+0 ;SET-UP CLEARANCE

8 Set-up clearance Q6 (incremental value): Distance Q10=+3 ;PLUNGING DEPTH


between the tool tip and the cylinder surface. Q11=100 ;FEED RATE FOR PLUNGING
8 Plunging depth Q10 (incremental value): Dimension Q12=350 ;FEED RATE FOR MILLING
by which the tool plunges in each infeed.
Q16=25 ;RADIUS
8 Feed rate for plunging Q11: Traversing speed of the Q17=0 ;DIMENSION TYPE
tool in the tool axis.
Q20=12 ;SLOT WIDTH
8 Feed rate for milling Q12: Traversing speed of the
tool in the working plane. Q21=0 ;TOLERANCE

8 Cylinder radius Q16: Radius of the cylinder on which


the contour is to be machined.
8 Dimension type ? ang./lin. Q17: The dimensions for
the rotary axis of the subprogram are given either in
degrees (0) or in mm/inches (1).
8 Slot width Q20: Width of the slot to be machined.
8 Tolerance? Q21: If you use a tool smaller than the
programmed slot width Q20, process-related
distortion occurs on the slot wall wherever the slot
follows the path of an arc or oblique line. If you define
the tolerance Q21, the TNC adds a subsequent
milling operation to ensure that the slot dimensions
are a close as possible to those of a slot that has been
milled with a tool exactly as wide as the slot. With
Q21 you define the permitted deviation from this
ideal slot. The number of subsequent milling
operations depends on the cylinder radius, the tool
used, and the slot depth. The smaller the tolerance is
defined, the more exact the slot is and the longer the
remachining takes. Recommendation: Use a
tolerance of 0.02 mm

HEIDENHAIN iTNC 530 389


8.6 SL Cycles
CYLINDER SURFACE ridge milling (Cycle 29,
software option 1)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

This cycle enables you to program a ridge in two dimensions and then
transfer it onto a cylindrical surface. With this cycle the TNC adjusts
the tool so that, with radius compensation active, the walls of the slot
are always parallel. Program the midpoint path of the ridge together
with the tool radius compensation. With the radius compensation you
specify whether the TNC cuts the ridge with climb milling or up-cut
milling.
At the ends of the ridge the TNC always adds a semicircle whose
radius is half the ridge width.
1 The TNC positions the tool over the starting point of machining.
The TNC calculates the starting point from the ridge width and the
tool diameter. It is located next to the first point defined in the
contour subprogram, offset by half the ridge width and the tool
diameter. The radius compensation determines whether
machining begins from the left (1, RL = climb milling) or the right
of the ridge (2, RR = up-cut milling) (see figure at center right). Z
2 After the TNC has positioned to the first plunging depth, the tool
moves on a circular arc at the milling feed rate Q12 tangentially to
the ridge wall. If so programmed, it will leave metal for the finishing
allowance.
3 At the first plunging depth, the tool mills along the programmed
ridge wall at the milling feed rate Q12 until the stud is completed.
4 The tool then departs the ridge wall on a tangential path and
returns to the starting point of machining. 1 12
5 Steps 2 to 4 are repeated until the programmed milling depth Q1
is reached.
6 Finally, the tool retracts in the tool axis to the clearance height or C
to the position last programmed before the cycle (depending on
machine parameter 7420)

390 8 Programming: Cycles


8.6 SL Cycles
Before programming, note the following:
Ensure that the tool has enough space laterally for contour
approach and departure.
The memory capacity for programming an SL cycle is
limited. For example, you can program up to 1024 straight-
line blocks in one SL cycle.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
The cylinder must be set up centered on the rotary table.
The tool axis must be perpendicular to the rotary table. If
this is not the case, the TNC will generate an error
message.
This cycle can also be used in a tilted working plane.
The TNC checks whether the compensated and non-
compensated tool paths lie within the display range of the
rotary axis, which is defined in machine parameter 810.x.
If the error message “Contour programming error” is
output, set MP 810.x = 0.

8 Milling depth Q1 (incremental value): Distance Example: NC blocks


between the cylindrical surface and the floor of the
contour. 63 CYCL DEF 29.0 CYLINDER SURFACE RIDGE

8 Finishing allowance for side Q3 (incremental Q1=-8 ;MILLING DEPTH


value): Finishing allowance on the ridge wall. The Q3=+0 ;ALLOWANCE FOR SIDE
finishing allowance increases the ridge width by
twice the entered value. Q6=+0 ;SET-UP CLEARANCE

8 Set-up clearance Q6 (incremental value): Distance Q10=+3 ;PLUNGING DEPTH


between the tool tip and the cylinder surface. Q11=100 ;FEED RATE FOR PLUNGING
8 Plunging depth Q10 (incremental value): Dimension Q12=350 ;FEED RATE FOR MILLING
by which the tool plunges in each infeed.
Q16=25 ;RADIUS
8 Feed rate for plunging Q11: Traversing speed of the Q17=0 ;DIMENSION TYPE
tool in the tool axis.
Q20=12 ;RIDGE WIDTH
8 Feed rate for milling Q12: Traversing speed of the
tool in the working plane.
8 Cylinder radius Q16: Radius of the cylinder on which
the contour is to be machined.
8 Dimension type ? ang./lin. Q17: The dimensions for
the rotary axis of the subprogram are given either in
degrees (0) or in mm/inches (1).
8 Ridge width Q20: Width of the ridge to be machined.

HEIDENHAIN iTNC 530 391


8.6 SL Cycles
CYLINDER SURFACE outside contour milling
(Cycle 39, software option 1)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

This cycle enables you to program an open contour in two dimensions


and then roll it onto a cylindrical surface for 3-D machining. With this
cycle the TNC adjusts the tool so that, with radius compensation
active, the wall of the open contour is always parallel to the cylinder
axis.
Unlike Cycles 28 and 29, in the contour subprogram you define the
actual contour to be machined.
1 The TNC positions the tool over the starting point of machining.
The TNC locates the starting point next to the first point defined in
the contour subprogram, offset by the tool diameter.
2 After the TNC has positioned to the first plunging depth, the tool
moves on a circular arc at the milling feed rate Q12 tangentially to
the contour. If so programmed, it will leave metal for the finishing
allowance.
3 At the first plunging depth, the tool mills along the programmed
contour at the milling feed rate Q12 until the contour train is
completed.
4 The tool then departs the ridge wall on a tangential path and
returns to the starting point of machining.
5 Steps 2 to 4 are repeated until the programmed milling depth Q1
is reached.
6 Finally, the tool retracts in the tool axis to the clearance height or
to the position last programmed before the cycle (depending on
machine parameter 7420)

392 8 Programming: Cycles


8.6 SL Cycles
Before programming, note the following:
Ensure that the tool has enough space laterally for contour
approach and departure.
The memory capacity for programming an SL cycle is
limited. For example, you can program up to 1024 straight-
line blocks in one SL cycle.
The algebraic sign for the cycle parameter DEPTH
determines the working direction. If you program
DEPTH = 0, the cycle will not be executed.
The cylinder must be set up centered on the rotary table.
The tool axis must be perpendicular to the rotary table. If
this is not the case, the TNC will generate an error
message.
This cycle can also be used in a tilted working plane.
The TNC checks whether the compensated and non-
compensated tool paths lie within the display range of the
rotary axis, which is defined in machine parameter 810.x.
If the error message “Contour programming error” is
output, set MP 810.x = 0.

8 Milling depth Q1 (incremental value): Distance Example: NC blocks


between the cylindrical surface and the floor of the
contour. 63 CYCL DEF 39.0 CYL. SURFACE CONTOUR

8 Finishing allowance for side Q3 (incremental Q1=-8 ;MILLING DEPTH


value): Finishing allowance on the contour wall. Q3=+0 ;ALLOWANCE FOR SIDE
8 Set-up clearance Q6 (incremental value): Distance Q6=+0 ;SET-UP CLEARANCE
between the tool tip and the cylinder surface.
Q10=+3 ;PLUNGING DEPTH
8 Plunging depth Q10 (incremental value): Dimension
Q11=100 ;FEED RATE FOR PLUNGING
by which the tool plunges in each infeed.
Q12=350 ;FEED RATE FOR MILLING
8 Feed rate for plunging Q11: Traversing speed of the
tool in the tool axis. Q16=25 ;RADIUS
8 Feed rate for milling Q12: Traversing speed of the Q17=0 ;DIMENSION TYPE
tool in the working plane.
8 Cylinder radius Q16: Radius of the cylinder on which
the contour is to be machined.
8 Dimension type ? ang./lin. Q17: The dimensions for
the rotary axis of the subprogram are given either in
degrees (0) or in mm/inches (1).

HEIDENHAIN iTNC 530 393


8.6 SL Cycles
Example: Roughing-out and fine-roughing a pocket

10
Y 10

R20

55
R30 60°
30

X
30

0 BEGIN PGM C20 MM


1 BLK FORM 0.1 Z X-10 Y-10 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0 Define the workpiece blank
3 TOOL DEF 1 L+0 R+15 Tool definition: coarse roughing tool
4 TOOL DEF 2 L+0 R+7.5 Tool definition: fine roughing tool
5 TOOL CALL 1 Z S2500 Tool call: coarse roughing tool
6 L Z+250 R0 FMAX Retract the tool
7 CYCL DEF 14.0 CONTOUR GEOMETRY Define contour subprogram
8 CYCL DEF 14.1 CONTOUR LABEL 1
9 CYCL DEF 20.0 CONTOUR DATA Define general machining parameters
Q1=-20 ;MILLING DEPTH
Q2=1 ;TOOL PATH OVERLAP
Q3=+0 ;ALLOWANCE FOR SIDE
Q4=+0 ;ALLOWANCE FOR FLOOR
Q5=+0 ;SURFACE COORDINATE
Q6=2 ;SET-UP CLEARANCE
Q7=+100 ;CLEARANCE HEIGHT
Q8=0.1 ;ROUNDING RADIUS
Q9=-1 ;DIRECTION OF ROTATION

394 8 Programming: Cycles


8.6 SL Cycles
10 CYCL DEF 22.0 ROUGH-OUT Cycle definition: Coarse roughing
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
Q18=0 ;COARSE ROUGHING TOOL
Q19=150 ;RECIPROCATION FEED RATE
Q208=30000 ;RETRACTION FEED RATE
11 CYCL CALL M3 Cycle call: Coarse roughing
12 L Z+250 R0 FMAX M6 Tool change
13 TOOL CALL 2 Z S3000 Tool call: fine roughing tool
14 CYCL DEF 22.0 ROUGH-OUT Define the fine roughing cycle
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
Q18=1 ;COARSE ROUGHING TOOL
Q19=150 ;RECIPROCATION FEED RATE
Q208=30000 ;RETRACTION FEED RATE
15 CYCL CALL M3 Cycle call: Fine roughing
16 L Z+250 R0 FMAX M2 Retract in the tool axis, end program

17 LBL 1 Contour subprogram


18 L X+0 Y+30 RR see “Example: FK programming 2” on page 230
19 FC DR- R30 CCX+30 CCY+30
20 FL AN+60 PDX+30 PDY+30 D10
21 FSELECT 3
22 FPOL X+30 Y+30
23 FC DR- R20 CCPR+55 CCPA+60
24 FSELECT 2
25 FL AN-120 PDX+30 PDY+30 D10
26 FSELECT 3
27 FC X+0 DR- R30 CCX+30 CCY+30
28 FSELECT 2
29 LBL 0
30 END PGM C20 MM

HEIDENHAIN iTNC 530 395


8.6 SL Cycles
Example: Pilot drilling, roughing-out and finishing overlapping contours

Y
16 16
100

R2
5

16
50
5
R2

X
35 65 100

0 BEGIN PGM C21 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+6 Define tool: drill
4 TOOL DEF 2 L+0 R+6 Define the tool for roughing/finishing
5 TOOL CALL 1 Z S2500 Call toll: drill
6 L Z+250 R0 FMAX Retract the tool
7 CYCL DEF 14.0 CONTOUR GEOMETRY Define contour subprogram
8 CYCL DEF 14.1 CONTOUR LABEL 1/2/3/4
9 CYCL DEF 20.0 CONTOUR DATA Define general machining parameters
Q1=-20 ;MILLING DEPTH
Q2=1 ;TOOL PATH OVERLAP
Q3=+0.5 ;ALLOWANCE FOR SIDE
Q4=+0.5 ;ALLOWANCE FOR FLOOR
Q5=+0 ;SURFACE COORDINATE
Q6=2 ;SET-UP CLEARANCE
Q7=+100 ;CLEARANCE HEIGHT
Q8=0.1 ;ROUNDING RADIUS
Q9=-1 ;DIRECTION OF ROTATION

396 8 Programming: Cycles


8.6 SL Cycles
10 CYCL DEF 21.0 PILOT DRILLING Cycle definition: Pilot drilling
Q10=5 ;PLUNGING DEPTH
Q11=250 ;FEED RATE FOR PLUNGING
Q13=2 ;ROUGH-OUT TOOL
11 CYCL CALL M3 Cycle call: Pilot drilling
12 L T+250 R0 FMAX M6 Tool change
13 TOOL CALL 2 Z S3000 Call the tool for roughing/finishing
14 CYCL DEF 22.0 ROUGH-OUT Cycle definition: Rough-out
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
Q18=0 ;COARSE ROUGHING TOOL
Q19=150 ;RECIPROCATION FEED RATE
Q208=30000 ;RETRACTION FEED RATE
15 CYCL CALL M3 Cycle call: Rough-out
16 CYCL DEF 23.0 FLOOR FINISHING Cycle definition: Floor finishing
Q11=100 ;FEED RATE FOR PLUNGING
Q12=200 ;FEED RATE FOR ROUGHING
Q208=30000 ;RETRACTION FEED RATE
17 CYCL CALL Cycle call: Floor finishing
18 CYCL DEF 24.0 SIDE FINISHING Cycle definition: Side finishing
Q9=+1 ;DIRECTION OF ROTATION
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=400 ;FEED RATE FOR ROUGHING
Q14=+0 ;ALLOWANCE FOR SIDE
19 CYCL CALL Cycle call: Side finishing
20 L Z+250 R0 FMAX M2 Retract in the tool axis, end program

HEIDENHAIN iTNC 530 397


8.6 SL Cycles
21 LBL 1 Contour subprogram 1: left pocket
22 CC X+35 Y+50
23 L X+10 Y+50 RR
24 C X+10 DR-
25 LBL 0
26 LBL 2 Contour subprogram 2: right pocket
27 CC X+65 Y+50
28 L X+90 Y+50 RR
29 C X+90 DR-
30 LBL 0
31 LBL 3 Contour subprogram 3: square left island
32 L X+27 Y+50 RL
33 L Y+58
34 L X+43
35 L Y+42
36 L X+27
37 LBL 0
38 LBL 4 Contour subprogram 4: triangular right island
39 L X+65 Y+42 RL
40 L X+57
41 L X+65 Y+58
42 L X+73 Y+42
43 LBL 0
44 END PGM C21 MM

398 8 Programming: Cycles


8.6 SL Cycles
Example: Contour train

Y
100
95

R7

5
R7,
,5
80
75

20
15

X
5 50 100

0 BEGIN PGM C25 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+10 Define the tool
4 TOOL CALL 1 Z S2000 Tool call
5 L Z+250 RO FMAX Retract the tool
6 CYCL DEF 14.0 CONTOUR GEOMETRY Define contour subprogram
7 CYCL DEF 14.1 CONTOUR LABEL 1
8 CYCL DEF 25.0 CONTOUR TRAIN Define machining parameters
Q1=-20 ;MILLING DEPTH
Q3=+0 ;ALLOWANCE FOR SIDE
Q5=+0 ;SURFACE COORDINATE
Q7=+250 ;CLEARANCE HEIGHT
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=200 ;FEED RATE FOR MILLING
Q15=+1 ;CLIMB OR UP-CUT
9 CYCL CALL M3 Call the cycle
10 L Z+250 R0 FMAX M2 Retract in the tool axis, end program

HEIDENHAIN iTNC 530 399


8.6 SL Cycles
11 LBL 1 Contour subprogram
12 L X+0 Y+15 RL
13 L X+5 Y+20
14 CT X+5 Y+75
15 L Y+95
16 RND R7.5
17 L X+50
18 RND R7.5
19 L X+100 Y+80
20 LBL 0
21 END PGM C25 MM

400 8 Programming: Cycles


8.6 SL Cycles
Example: Cylinder surface with Cycle 27

Note:
„ Cylinder centered on rotary table
„ Datum at center of rotary table Z

,5
R7
60

20

C
30 50 157

0 BEGIN PGM C27 MM


1 TOOL DEF 1 L+0 R+3.5 Define the tool
2 TOOL CALL 1 Y S2000 Call tool, tool axis is Y
3 L X+250 R0 FMAX Retract the tool
4 L X+0 R0 FMAX Position tool on rotary table center
5 CYCL DEF 14.0 CONTOUR GEOMETRY Define contour subprogram
6 CYCL DEF 14.1 CONTOUR LABEL 1
7 CYCL DEF 27.0 CYLINDER SURFACE Define machining parameters
Q1=-7 ;MILLING DEPTH
Q3=+0 ;ALLOWANCE FOR SIDE
Q6=2 ;SET-UP CLEARANCE
Q10=4 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=250 ;FEED RATE FOR MILLING
Q16=25 ;RADIUS
Q17=1 ;DIMENSION TYPE
8 L C+0 R0 FMAX M3 Pre-position rotary table
9 CYCL CALL Call the cycle
10 L Y+250 R0 FMAX M2 Retract in the tool axis, end program

HEIDENHAIN iTNC 530 401


8.6 SL Cycles
11 LBL 1 Contour subprogram
12 L C+40 Z+20 RL Data for the rotary axis are entered in mm (Q17=1)
13 L C+50
14 RND R7.5
15 L Z+60
16 RND R7.5
17 L IC-20
18 RND R7.5
19 L Z+20
20 RND R7.5
21 L C+40
22 LBL 0
23 END PGM C27 MM

402 8 Programming: Cycles


8.6 SL Cycles
Example: Cylinder surface with Cycle 28

Notes:
„ Cylinder centered on rotary table
„ Datum at center of rotary table Z
„ Description of the midpoint path in the
contour subprogram
70

52.5

35

C
40 60 157

0 BEGIN PGM C28 MM


1 TOOL DEF 1 L+0 R+3.5 Define the tool
2 TOOL CALL 1 Y S2000 Call tool, tool axis is Y
3 L Y+250 RO FMAX Retract the tool
4 L X+0 R0 FMAX Position tool on rotary table center
5 CYCL DEF 14.0 CONTOUR GEOMETRY Define contour subprogram
6 CYCL DEF 14.1 CONTOUR LABEL 1
7 CYCL DEF 28.0 CYLINDER SURFACE Define machining parameters
Q1=-7 ;MILLING DEPTH
Q3=+0 ;ALLOWANCE FOR SIDE
Q6=2 ;SET-UP CLEARANCE
Q10=-4 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=250 ;FEED RATE FOR MILLING
Q16=25 ;RADIUS
Q17=1 ;DIMENSION TYPE
Q20=10 ;SLOT WIDTH
Q21=0.02 ;TOLERANCE Remachining active
8 L C+0 R0 FMAX M3 Pre-position rotary table
9 CYCL CALL Call the cycle

HEIDENHAIN iTNC 530 403


8.6 SL Cycles
10 L Y+250 R0 FMAX M2 Retract in the tool axis, end program
11 LBL 1 Contour subprogram, description of the midpoint path
12 L C+40 Z+0 RL Data for the rotary axis are entered in mm (Q17=1)
13 L Z+35
14 L C+60 Z+52.5
15 L Z+70
16 LBL 0
17 END PGM C28 MM

404 8 Programming: Cycles


8.7 SL Cycles with Contour Formula

8.7 SL Cycles with Contour Formula


Fundamentals
SL Cycles and the contour formula enable you to form complex Example: Program structure: Machining with SL
contours by combining subcontours (pockets or islands). You define Cycles and contour formula
the individual subcontours (geometry data) as separate programs. In
this way, any subcontour can be used any number of times. The TNC 0 BEGIN PGM CONTOUR MM
calculates the complete contour from the selected subcontours, ...
which you link together through a contour formula.
5 SEL CONTOUR “MODEL“
The memory capacity for programming an SL cycle (all 6 CYCL DEF 20.0 CONTOUR DATA ...
contour description programs) is limited to 32 contours.
The number of possible contour elements depends on the 8 CYCL DEF 22.0 ROUGH-OUT...
type of contour (inside or outside contour) and the number 9 CYCL CALL
of contour descriptions. For example, you can program up
to approx. 1024 line blocks. ...

The SL Cycles with contour formula presuppose a 12 CYCL DEF 23.0 FLOOR FINISHING ...
structured program layout and enable you to save 13 CYCL CALL
frequently used contours in individual programs. Using the
contour formula, you can connect the subcontours to a ...
complete contour and define whether it applies to a 16 CYCL DEF 24.0 SIDE FINISHING ...
pocket or island.
17 CYCL CALL
In its present form, the “SL Cycles with contour formula”
63 L Z+250 R0 FMAX M2
function requires input from several areas in the TNC’s
user interface. This function is to serve as a basis for 64 END PGM CONTOUR MM
further development.
Example: Program structure: Calculation of the
Properties of the subcontours subcontours with contour formula

„ By default, the TNC assumes that the contour is a pocket. Do not 0 BEGIN PGM MODEL MM
program a radius compensation. In the contour formula you can
1 DECLARE CONTOUR QC1 = “CIRCLE1“
convert a pocket to an island by making it negative.
„ The TNC ignores feed rates F and miscellaneous functions M. 2 DECLARE CONTOUR QC2 = “CIRCLE31XY“
„ Coordinate transformations are allowed. If they are programmed 3 DECLARE CONTOUR QC3 = “TRIANGLE“
within the subcontour they are also effective in the following 4 DECLARE CONTOUR QC4 = “SQUARE“
subprograms, but they need not be reset after the cycle call.
„ Although the subprograms can contain coordinates in the spindle 5 QC10 = ( QC1 | QC3 | QC4 ) \ QC2
axis, such coordinates are ignored. 6 END PGM MODEL MM
„ The working plane is defined in the first coordinate block of the
subprogram. The secondary axes U,V,W are permitted.
0 BEGIN PGM CIRCLE1 MM
Characteristics of the fixed cycles
1 CC X+75 Y+50
„ The TNC automatically positions the tool to the set-up clearance
before a cycle. 2 LP PR+45 PA+0
„ Each level of infeed depth is milled without interruptions since the 3 CP IPA+360 DR+
cutter traverses around islands instead of over them. 4 END PGM CIRCLE1 MM
„ The radius of “inside corners” can be programmed—the tool keeps
moving to prevent surface blemishes at inside corners (this applies
for the outermost pass in the Rough-out and Side Finishing cycles). 0 BEGIN PGM CIRCLE31XY MM
„ The contour is approached on a tangential arc for side finishing. ...
...

HEIDENHAIN iTNC 530 405


„ For floor finishing, the tool again approaches the workpiece on a
8.7 SL Cycles with Contour Formula
tangential arc (for tool axis Z, for example, the arc may be in the Z/X
plane).
„ The contour is machined throughout in either climb or up-cut milling.

With MP7420 you can determine where the tool is


positioned at the end of Cycles 21 to 24.

The machining data (such as milling depth, finishing allowance and


setup clearance) are entered as CONTOUR DATA in Cycle 20.

Selecting a program with contour definitions


With the SEL CONTOUR function you select a program with contour
definitions, from which the TNC takes the contour descriptions:
8 To select the functions for program call, press the
PGM CALL key.
8 Press the SELECT CONTOUR soft key.
8 Enter the full name of the program with the contour
definition and confirm with the END key.

Program a SEL CONTOUR block before the SL cycles.


Cycle 14 CONTOUR GEOMETRY is no longer necessary if
you use SEL CONTUR.

Defining contour descriptions


With the DECLARE CONTOUR function you enter in a program the path for
programs from which the TNC draws the contour descriptions:
8 Press the DECLARE soft key.

8 Press the CONTOUR soft key.


8 Enter the number for the contour designator QC, and
confirm with the ENT key.
8 Enter the full name of the program with the contour
description and confirm with the END key.

With the given contour designators QC you can include


the various contours in the contour formula.
With the DECLARE STRING function you define a text. This
function is currently not evaluated.

406 8 Programming: Cycles


8.7 SL Cycles with Contour Formula
Entering a contour formula
You can use soft keys to interlink various contours in a mathematical
formula.
8 Select a Q parameter function: Press the Q key (in the numerical
keypad at right). The Q parameter functions are displayed in a soft-
key row.
8 To select the function for entering the contour formula, press the
CONTOUR FORMULA soft key. The TNC then shows the following
soft keys:

Logic command Soft key


Intersected with
e.g. QC10 = QC1 & QC5

Joined with
e.g. QC25 = QC7 | QC18

Joined without intersection


e.g. QC12 = QC5 ^ QC25

Joined with complement of


e.g. QC25 = QC1 \ QC2

Complement of contour area


e.g. Q12 = #Q11

Opening parenthesis
e.g. QC12 = QC1 * (QC2 + QC3)

Closing parenthesis
e.g. QC12 = QC1 * (QC2 + QC3)

Defining a single contour


e.g. QC12 = QC1

HEIDENHAIN iTNC 530 407


8.7 SL Cycles with Contour Formula
Overlapping contours
By default, the TNC considers a programmed contour to be a pocket.
With the functions of the contour formula, you can convert a contour
from a pocket to an island.
Pockets and islands can be overlapped to form a new contour. You can
thus enlarge the area of a pocket by another pocket or reduce it by an
island.

Subprograms: Overlapping pockets

The following program examples are contour description


programs that are defined in a contour definition program.
The contour definition program is called through the SEL
CONTOUR function in the actual main program.

Pockets A and B overlap.


The TNC calculates the points of intersection S1 and S2 (they do not
have to be programmed).
The pockets are programmed as full circles.

408 8 Programming: Cycles


8.7 SL Cycles with Contour Formula
Contour description program 1: Pocket A
0 BEGIN PGM POCKET_A MM
1 L X+10 Y+50 R0
2 CC X+35 Y+50
3 C X+10 Y+50 DR-
4 END PGM POCKET_A MM

Contour description program 2: Pocket B


0 BEGIN PGM POCKET_B MM
1 L X+90 Y+50 R0
2 CC X+65 Y+50
3 C X+90 Y+50 DR-
4 END PGM POCKET_B MM

Area of inclusion
Both surfaces A and B are to be machined, including the overlapping
area:
„ The surfaces A and B must be programmed in separate programs
without radius compensation.
„ In the contour formula, the surfaces A and B are processed with the
“joined with” function. B

Contour definition program:


A
50 ...
51 ...
52 DECLARE CONTOUR QC1 = “POCKET_A.H“
53 DECLARE CONTOUR QC2 = “POCKET_B.H“
54 QC10 = QC1 & QC2
55 ...
56 ...

HEIDENHAIN iTNC 530 409


8.7 SL Cycles with Contour Formula Area of exclusion
Surface A is to be machined without the portion overlapped by B:
„ The surfaces A and B must be entered in separate programs without
radius compensation.
„ In the contour formula, the surface B is subtracted from the surface
A with the “joined with complement of” function.
Contour definition program: B

50 ... A
51 ...
52 DECLARE CONTOUR QC1 = “POCKET_A.H“
53 DECLARE CONTOUR QC2 = “POCKET_B.H“
54 QC10 = QC1 \ QC2
55 ...
56 ...

Area of intersection
Only the area where A and B overlap is to be machined. (The areas
covered by A or B alone are to be left unmachined.)
„ The surfaces A and B must be entered in separate programs without
radius compensation.
„ In the contour formula, the surfaces A and B are processed with the
“intersected with” function. A B
Contour definition program:

50 ...
51 ...
52 DECLARE CONTOUR QC1 = “POCKET_A.H“
53 DECLARE CONTOUR QC2 = “POCKET_B.H“
54 QC10 = QC1 \ QC2
55 ...
56 ...

Contour machining with SL Cycles

The complete contour is machined with the SL Cycles 20


to 24 (see “SL Cycles” on page 371).

410 8 Programming: Cycles


8.7 SL Cycles with Contour Formula
Example: Roughing and finishing superimposed contours with the contour formula

Y
16 16
100

R2
5

16
50
5
R2

X
35 65 100

0 BEGIN PGM CONTOUR MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-40 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+2.5 Tool definition of roughing cutter
4 TOOL DEF 2 L+0 R+3 Tool definition of finishing cutter
5 TOOL CALL 1 Z S2500 Tool call of roughing cutter
6 L Z+250 R0 FMAX Retract the tool
7 SEL CONTOUR “MODEL“ Specify contour definition program
8 CYCL DEF 20.0 CONTOUR DATA Define general machining parameters
Q1=-20 ;MILLING DEPTH
Q2=1 ;TOOL PATH OVERLAP
Q3=+0.5 ;ALLOWANCE FOR SIDE
Q4=+0.5 ;ALLOWANCE FOR FLOOR
Q5=+0 ;SURFACE COORDINATE
Q6=2 ;SET-UP CLEARANCE
Q7=+100 ;CLEARANCE HEIGHT
Q8=0.1 ;ROUNDING RADIUS
Q9=-1 ;DIRECTION OF ROTATION
9 CYCL DEF 22.0 ROUGH-OUT Cycle definition: Rough-out
Q10=5 ;PLUNGING DEPTH

HEIDENHAIN iTNC 530 411


8.7 SL Cycles with Contour Formula
Q11=100 ;FEED RATE FOR PLUNGING
Q12=350 ;FEED RATE FOR ROUGHING
Q18=0 ;COARSE ROUGHING TOOL
Q19=150 ;RECIPROCATION FEED RATE
10 CYCL CALL M3 Cycle call: Rough-out
11 TOOL CALL 2 Z S5000 Tool call of finishing cutter
12 CYCL DEF 23.0 FLOOR FINISHING Cycle definition: Floor finishing
Q11=100 ;FEED RATE FOR PLUNGING
Q12=200 ;FEED RATE FOR ROUGHING
13 CYCL CALL M3 Cycle call: Floor finishing
14 CYCL DEF 24.0 SIDE FINISHING Cycle definition: Side finishing
Q9=+1 ;DIRECTION OF ROTATION
Q10=5 ;PLUNGING DEPTH
Q11=100 ;FEED RATE FOR PLUNGING
Q12=400 ;FEED RATE FOR ROUGHING
Q14=+0 ;ALLOWANCE FOR SIDE
15 CYCL CALL M3 Cycle call: Side finishing
16 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
17 END PGM CONTOUR MM

Contour definition program with contour formula:

0 BEGIN PGM MODEL MM Contour definition program


1 DECLARE CONTOUR QC1 = “CIRCLE1“ Definition of the contour designator for the program “CIRCLE1“
2 FN 0: Q1 =+35 Assignment of values for parameters used in PGM “CIRCLE31XY“
3 FN 0: Q2 = +50
4 FN 0: Q3 =+25
5 DECLARE CONTOUR QC2 = “CIRCLE31XY“ Definition of the contour designator for the program “CIRCLE31XY”
6 DECLARE CONTOUR QC3 = “TRIANGLE“ Definition of the contour designator for the program “TRIANGLE”
7 DECLARE CONTOUR QC4 = “SQUARE“ Definition of the contour designator for the program “SQUARE”
8 QC10 = ( QC 1 | QC 2 ) \ QC 3 \ QC 4 Contour formula
9 END PGM MODEL MM

Contour description programs:

0 BEGIN PGM CIRCLE1 MM Contour description program: circle at right


1 CC X+65 Y+50
2 L PR+25 PA+0 R0
3 CP IPA+360 DR+
4 END PGM CIRCLE1 MM

412 8 Programming: Cycles


8.7 SL Cycles with Contour Formula
0 BEGIN PGM CIRCLE31XY MM Contour description program: circle at left
1 CC X+Q1 Y+Q2
2 LP PR+Q3 PA+0 R0
3 CP IPA+360 DR+
4 END PGM CIRCLE31XY MM

0 BEGIN PGM TRIANGLE MM Contour description program: triangle at right


1 L X+73 Y+42 R0
2 L X+65 Y+58
3 L X+58 Y+42
4 L X+73
5 END PGM TRIANGLE MM

0 BEGIN PGM SQUARE MM Contour description program: square at left


1 L X+27 Y+58 R0
2 L X+43
3 L Y+42
4 L X+27
5 L Y+58
6 END PGM SQUARE MM

HEIDENHAIN iTNC 530 413


8.8 Cycles for Multipass Milling
8.8 Cycles for Multipass Milling

Overview
The TNC offers four cycles for machining surfaces with the following
characteristics:
„ Created with a CAD/CAM system
„ Flat, rectangular surfaces
„ Flat, oblique-angled surfaces
„ Surfaces that are inclined in any way
„ Twisted surfaces
Cycle Soft key
60 RUN 3-D DATA
For multipass milling of 3-D data in several infeeds

230 MULTIPASS MILLING


For flat rectangular surfaces

231 RULED SURFACE


For oblique, inclined or twisted surfaces

232 FACE MILLING


For level rectangular surfaces, with indicated oversizes
and multiple infeeds

414 8 Programming: Cycles


8.8 Cycles for Multipass Milling
3-D DATA (Cycle 30)
1 From the current position, the TNC positions the tool at rapid
traverse FMAX in the tool axis to the set-up clearance above the
MAX point that you have programmed in the cycle.
2 The tool then moves at FMAX in the working plane to the MIN
point you have programmed in the cycle.
3 From this point, the tool advances to the first contour point at the
feed rate for plunging.
4 The TNC subsequently processes all points that are stored in the
digitizing data file at the feed rate for milling. If necessary, the TNC 14
retracts the tool between machining operations to the set-up
clearance if specific areas are to be left unmachined.
5 At the end of the cycle, the tool is retracted at FMAX to the set-up
clearance.

Before programming, note the following:


You can use Cycle 30 to run conversational programs and
PNT files.
If you want to run PNT files in which no tool axis
coordinate is programmed, the milling depth is derived
from the programmed MIN point in the tool axis. 13

8 PGM name 3-D data: Enter the name of the file in Z


which the data is stored. If the file is not stored in the
current directory, enter the complete path. 12
8 Min. point of range: Lowest coordinates (X, Y and Z
coordinates) in the range to be milled. 1 X
8 Max. point of range: Largest coordinates (X, Y and Z
coordinates) in the range to be milled.
8 Set-up clearance 1 (incremental value): Distance
between tool tip and workpiece surface for tool
movements in rapid traverse.
Example: NC blocks
8 Plunging depth 2 (incremental value): Infeed per cut.
8 Feed rate for plunging 3: Traversing speed of the 64 CYCL DEF 30.0 RUN 3-D DATA
tool in mm/min during penetration. 65 CYCL DEF 30.1 PGM DIGIT.: BSP.H
8 Feed rate for milling 4: Traversing speed of the tool 66 CYCL DEF 30.2 X+0 Y+0 Z-20
in mm/min while milling.
67 CYCL DEF 30.3 X+100 Y+100 Z+0
8 Miscellaneous function M: Optional entry of a
68 CYCL DEF 30.4 SETUP 2
miscellaneous function, for example M13.
69 CYCL DEF 30.5 PECKG +5 F100
70 CYCL DEF 30.6 F350 M8

HEIDENHAIN iTNC 530 415


8.8 Cycles for Multipass Milling
MULTIPASS MILLING (Cycle 230)
1 From the current position in the working plane, the TNC positions
the tool at rapid traverse FMAX to the starting point 1; the TNC
moves the tool by its radius to the left and upward. Z
2 The tool then moves at FMAX in the tool axis to the set-up
clearance. From there it approaches the programmed starting
position in the tool axis at the feed rate for plunging.
3 The tool then moves at the programmed feed rate for milling to the Y
end point 2. The TNC calculates the end point from the 12
programmed starting point, the program length, and the tool
radius.
4 The TNC offsets the tool to the starting point in the next pass at
the stepover feed rate. The offset is calculated from the 1 X
programmed width and the number of cuts.
5 The tool then returns in the negative direction of the first axis.
6 Multipass milling is repeated until the programmed surface has
been completed.
7 At the end of the cycle, the tool is retracted at FMAX to the set-up
clearance.

Before programming, note the following:


From the current position, the TNC positions the tool at
the starting point, first in the working plane and then in the
spindle axis.
Pre-position the tool in such a way that no collision
between tool and clamping devices can occur.

416 8 Programming: Cycles


8.8 Cycles for Multipass Milling
8 Starting point in 1st axis Q225 (absolute value):
Minimum point coordinate of the surface to be Y
multipass-milled in the reference axis of the working Q207
plane.
8 Starting point in 2nd axis Q226 (absolute value):
Minimum-point coordinate of the surface to be
multipass-milled in the minor axis of the working N = Q240

Q219
plane.
Q209
8 Starting point in 3rd axis Q227 (absolute value):
Height in the spindle axis at which multipass-milling is
carried out.
Q226
8 First side length Q218 (incremental value): Length
of the surface to be multipass-milled in the reference
axis of the working plane, referenced to the starting Q218 X
point in the 1st axis. Q225

8 Second side length Q219 (incremental value): Length


of the surface to be multipass-milled in the minor axis
of the working plane, referenced to the starting point
in the 2nd axis. Q206
8 Number of cuts Q240: Number of passes to be made Z
over the width.
8 Feed rate for plunging Q206: Traversing speed of Q200
the tool in mm/min when moving from set-up Q227
clearance to the milling depth.
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling.
8 Stepover feed rate Q209: Traversing speed of the
tool in mm/min when moving to the next pass. If you
are moving the tool transversely in the material, enter
Q209 to be smaller than Q207. If you are moving it X
transversely in the open, Q209 may be greater than
Q207. Example: NC blocks
8 Set-up clearance Q200 (incremental value): Distance 71 CYCL DEF 230 MULTIPASS MILLING
between tool tip and milling depth for positioning at
the start and end of the cycle. Q225=+10 ;STARTING PNT 1ST AXIS
Q226=+12 ;STARTING PNT 2ND AXIS
Q227=+2.5 ;STARTING PNT 3RD AXIS
Q218=150 ;FIRST SIDE LENGTH
Q219=75 ;SECOND SIDE LENGTH
Q240=25 ;NUMBER OF CUTS
Q206=150 ;FEED RATE FOR PLUNGING
Q207=500 ;FEED RATE FOR MILLING
Q209=200 ;STEPOVER FEED RATE
Q200=2 ;SET-UP CLEARANCE

HEIDENHAIN iTNC 530 417


8.8 Cycles for Multipass Milling
RULED SURFACE (Cycle 231)
1 From the current position, the TNC positions the tool in a linear 3-D
movement to the starting point 1.
2 The tool subsequently advances to the stopping point 2 at the feed Z
rate for milling. 14
3 From this point, the tool moves at rapid traverse FMAX by the tool
diameter in the positive tool axis direction, and then back to 13
starting point 1. Y 1
4 At the starting point 1 the TNC moves the tool back to the last
traversed Z value.
5 Then the TNC moves the tool in all three axes from point 1 in the
direction of point 4 to the next line. 12
X
6 From this point, the tool moves to the stopping point on this pass.
The TNC calculates the end point from point 2 and a movement in
the direction of point 3.
7 Multipass milling is repeated until the programmed surface has
been completed.
8 At the end of the cycle, the tool is positioned above the highest
programmed point in the tool axis, offset by the tool diameter. Z
Cutting motion
The starting point, and therefore the milling direction, is selectable 14
because the TNC always moves from point 1 to point 2 and in the total
movement from point 1 / 2 to point 3 / 4. You can program point 1 at
any corner of the surface to be machined. 13
Y
If you are using an end mill for the machining operation, you can 1
optimize the surface finish in the following ways:
„ A shaping cut (spindle axis coordinate of point 1 greater than 12
spindle-axis coordinate of point 2) for slightly inclined surfaces.
„ A drawing cut (spindle axis coordinate of point 1 smaller than
spindle-axis coordinate of point 2) for steep surfaces. X
„ When milling twisted surfaces, program the main cutting direction
(from point 1 to point 2) parallel to the direction of the steeper
inclination.
If you are using a spherical cutter for the machining operation, you can Z
optimize the surface finish in the following way:
„ When milling twisted surfaces, program the main cutting direction 13
(from point 1 to point 2) perpendicular to the direction of the
steepest inclination. 12

Before programming, note the following: Y


The TNC positions the tool from the current position 14
in a linear 3-D movement to the starting point 1. Pre-
position the tool in such a way that no collision between 1
tool and clamping devices can occur.
The TNC moves the tool with radius compensation R0 to X
the programmed positions.
If required, use a center-cut end mill (ISO 1641).

418 8 Programming: Cycles


8.8 Cycles for Multipass Milling
8 Starting point in 1st axis Q225 (absolute value):
Starting point coordinate of the surface to be
multipass-milled in the reference axis of the working Z
plane.
8 Starting point in 2nd axis Q226 (absolute value):
Starting point coordinate of the surface to be
14
multipass-milled in the minor axis of the working Q236
plane. 13
Q233 1
8 Starting point in 3rd axis Q227 (absolute value):
Q227
Starting point coordinate of the surface to be
multipass-milled in the tool axis. 12
Q230
8 2nd point in 1st axis Q228 (absolute value):
Stopping point coordinate of the surface to be X
multipass milled in the reference axis of the working Q228 Q231 Q234 Q225
plane.
8 2nd point in 2nd axis Q229 (absolute value):
Stopping point coordinate of the surface to be Y
multipass milled in the minor axis of the working
plane.
Q235
14
8 2nd point in 3rd axis Q230 (absolute value): 13
Stopping point coordinate of the surface to be Q232
multipass milled in the tool axis.
N = Q240
8 3rd point in 1st axis Q231 (absolute value):
Coordinate of point 3 in the reference axis of the
working plane. 12
Q229
8 3rd point in 2nd axis Q232 (absolute value): 1
Coordinate of point 3 in the minor axis of the working Q226
plane. Q207

8 3rd point in 3rd axis Q233 (absolute value): X


Coordinate of point 3 in the tool axis

HEIDENHAIN iTNC 530 419


Example: NC blocks
8.8 Cycles for Multipass Milling 8 4th point in 1st axis Q234 (absolute value):
Coordinate of point 4 in the reference axis of the
working plane. 72 CYCL DEF 231 RULED SURFACE

8 4th point in 2nd axis Q235 (absolute value): Q225=+0 ;STARTING PNT 1ST AXIS
Coordinate of point 4 in the minor axis of the working Q226=+5 ;STARTING PNT 2ND AXIS
plane.
Q227=-2 ;STARTING PNT 3RD AXIS
8 4th point in 3rd axis Q236 (absolute value):
Coordinate of point 4 in the tool axis. Q228=+100 ;2ND POINT 1ST AXIS
Q229=+15 ;2ND POINT 2ND AXIS
8 Number of cuts Q240: Number of passes to be made
between points 1 and 4, 2 and 3. Q230=+5 ;2ND POINT 3RD AXIS
8 Feed rate for milling Q207: Traversing speed of the Q231=+15 ;3RD POINT 1ST AXIS
tool in mm/min while milling. The TNC performs the Q232=+125 ;3RD POINT 2ND AXIS
first step at half the programmed feed rate.
Q233=+25 ;3RD POINT 3RD AXIS
Q234=+15 ;4TH POINT 1ST AXIS
Q235=+125 ;4TH POINT 2ND AXIS
Q236=+25 ;4TH POINT 3RD AXIS
Q240=40 ;NUMBER OF CUTS
Q207=500 ;FEED RATE FOR MILLING

420 8 Programming: Cycles


8.8 Cycles for Multipass Milling
FACE MILLING (Cycle 232)
Cycle 232 is used to face mill a level surface in multiple infeeds while
taking the finishing allowance into account. Three machining
strategies are available:
„ Strategy Q389=0: Meander machining, stepover outside the
surface being machined
„ Strategy Q389=1: Meander machining, stepover within the surface
being machined
„ Strategy Q389=2: Line-by-line machining, retraction and stepover
at the positioning feed rate
1 From the current position, the TNC positions the tool at rapid
traverse (FMAX) to the starting position using positioning logic1.
If the current position in the spindle axis is greater than the 2nd set-
up clearance, the control positions the tool first in the machining
plane and then in the spindle axis. Otherwise it first moves to the
2nd set-up clearance and then in the machining plane. The starting
point in the machining plane is offset from the edge of the
workpiece by the tool radius and the safety clearance to the side.
2 The tool then moves in the spindle axis at the positioning feed rate
to the first plunging depth calculated by the control.
Strategy Q389=0
3 The tool then advances to the stopping point 2 at the feed rate for
milling. The end point lies outside the surface. The control Z
calculates the end point from the programmed starting point, the
programmed length, the programmed safety clearance to the side
and the tool radius. 12
4 The TNC offsets the tool to the starting point in the next pass at
the pre-positioning feed rate. The offset is calculated from the
programmed width, the tool radius and the maximum path overlap Y
factor.
5 The tool then moves back in the direction of the starting point 1.
1 X
6 The process is repeated until the programmed surface has been
completed. At the end of the last pass, the next machining depth
is plunged to.
7 In order to avoid non-productive motions, the surface is then
machined in reverse direction.
8 The process is repeated until all infeeds have been machined. In
the last infeed, simply the finishing allowance entered is milled at
the finishing feed rate.
9 At the end of the cycle, the tool is retracted at FMAX to the 2nd
set-up clearance.

HEIDENHAIN iTNC 530 421


8.8 Cycles for Multipass Milling Strategy Q389=1
3 The tool then advances to the stopping point 2 at the feed rate for
milling. The end point lies within the surface. The control Z
calculates the end point from the programmed starting point, the
programmed length and the tool radius.
4 The TNC offsets the tool to the starting point in the next pass at
the pre-positioning feed rate. The offset is calculated from the Y 12
programmed width, the tool radius and the maximum path overlap
factor.
5 The tool then moves back in the direction of the starting point 1.
The motion to the next line occurs within the workpiece borders.
1
X
6 The process is repeated until the programmed surface has been
completed. At the end of the last pass, the next machining depth
is plunged to.
7 In order to avoid non-productive motions, the surface is then
machined in reverse direction.
8 The process is repeated until all infeeds have been machined. In
the last infeed, simply the finishing allowance entered is milled at
the finishing feed rate.
9 At the end of the cycle, the tool is retracted at FMAX to the 2nd
set-up clearance.

422 8 Programming: Cycles


8.8 Cycles for Multipass Milling
Strategy Q389=2
3 The tool then advances to the stopping point 2 at the feed rate for
milling. The end point lies outside the surface. The control Z
calculates the end point from the programmed starting point, the
programmed length, the programmed safety clearance to the side
and the tool radius.
4 The TNC positions the tool in the spindle axis to the set-up
clearance over the current infeed depth, and then moves at the 12
pre-positioning feed rate directly back to the starting point in the Y
next line. The TNC calculates the offset from the programmed
width, the tool radius and the maximum path overlap factor.
5 The tool then returns to the current infeed depth and moves in the 1 X
direction of the next end point 2.
6 The milling process is repeated until the programmed surface has
been completed. At the end of the last pass, the next machining
depth is plunged to.
7 In order to avoid non-productive motions, the surface is then
machined in reverse direction.
8 The process is repeated until all infeeds have been machined. In
the last infeed, simply the finishing allowance entered is milled at
the finishing feed rate.
9 At the end of the cycle, the tool is retracted at FMAX to the 2nd
set-up clearance.

Before programming, note the following:


Enter the 2nd set-up clearance in Q204 so that no collision
between tool and clamping devices can occur.

HEIDENHAIN iTNC 530 423


8.8 Cycles for Multipass Milling 8 Machining strategy (0/1/2) Q389: Specify how the
TNC is to machine the surface:
0 Meander machining, stepover at positioning feed Y
rate outside the surface to be machined
1 Meander machining, stepover at feed rate for
milling within the surface to be machined
2 Line-by-line machining, retraction and stepover at
the positioning feed rate

Q219
8 Starting point in 1st axis Q225 (absolute value):
Starting point coordinate of the surface to be
machined in the reference axis of the working plane.
8 Starting point in 2nd axis Q226 (absolute value): Q226
Starting point coordinate of the surface to be
multipass-milled in the minor axis of the working
Q218 X
plane.
Q225
8 Starting point in 3rd axis Q227 (absolute value):
Coordinate of the workpiece surface used to calculate
the infeeds.
8 End point in 3rd axis Q386 (absolute value):
Coordinate in the spindle axis to which the surface is Z
to be face milled.
8 First side length Q218 (incremental value): Length
of the surface to be machined in the reference axis of Q227
the working plane. Use the algebraic sign to specify
the direction of the first milling path in reference to
the starting point in the 1st axis. Q386

8 Second side length Q219 (incremental value): Length


of the surface to be machined in the minor axis of the
working plane. Use the algebraic sign to specify the
direction of the first stepover in reference to the X
starting point in the 2nd axis.

424 8 Programming: Cycles


8.8 Cycles for Multipass Milling
8 Maximum plunging depth Q202 (incremental value):
Maximum amount that the tool is advanced each
time. The TNC calculates the actual plunging depth
from the difference between the end point and
starting point of the tool axis (taking the finishing Z
allowance into account), so that uniform plunging
depths are used each time. Q204
Q200
8 Allowance for floor Q369 (incremental value):
Distance used for the last infeed. Q202
8 Max. path overlap factor Q370: Maximum stepover Q369
k. The TNC calculates the actual stepover from the
second side length (Q219) and the tool radius so that
a constant stepover is used for machining. If you have
entered a radius R2 in the tool table (e.g. tooth radius
when using a face-milling cutter), the TNC reduces X
the stepover accordingly.
8 Feed rate for milling Q207: Traversing speed of the
tool in mm/min while milling. Y
8 Feed rate for finishing Q385: Traversing speed of
the tool in mm/min while milling the last infeed. Q207

8 Feed rate for pre-positioning Q253: Traversing


speed of the tool in mm/min when approaching the k
starting position and when moving to the next pass.
If you are moving the tool transversely to the material
(Q389=1), the TNC moves the tool at the feed rate for
milling Q207.

Q253

X
Q357

HEIDENHAIN iTNC 530 425


Example: NC blocks
8.8 Cycles for Multipass Milling 8 Set-up clearance Q200 (incremental value): Distance
between tool tip and the starting position in the tool
axis. If you are milling with machining strategy 71 CYCL DEF 232 FACE MILLING
Q389=2, the TNC moves the tool at the set-up Q389=2 ;STRATEGY
clearance over the current plunging depth to the
starting point of the next pass. Q225=+10 ;STARTING PNT 1ST AXIS

8 Clearance to side Q357 (incremental value): Safety Q226=+12 ;STARTING PNT 2ND AXIS
clearance to the side of the workpiece when the tool Q227=+2.5 ;STARTING PNT 3RD AXIS
approaches the first plunging depth, and distance at
which the stepover occurs if the machining strategy Q386=-3 ;END POINT IN 3RD AXIS
Q389=0 or Q389=2 is used. Q218=150 ;FIRST SIDE LENGTH
8 2nd set-up clearance Q204 (incremental value): Q219=75 ;SECOND SIDE LENGTH
Coordinate in the tool axis at which no collision
between tool and workpiece (clamping devices) can Q202=2 ;MAX. PLUNGING DEPTH
occur. Q369=0.5 ;ALLOWANCE FOR FLOOR
Q370=1 ;MAX. OVERLAP
Q207=500 ;FEED RATE FOR MILLING
Q385=800 ;FEED RATE FOR FINISHING
Q253=2000 ;F PRE-POSITIONING
Q200=2 ;SET-UP CLEARANCE
Q357=2 ;CLEARANCE TO SIDE
Q204=2 ;2ND SET-UP CLEARANCE

426 8 Programming: Cycles


8.8 Cycles for Multipass Milling
Example: Multipass milling

Y Y
100

X Z
100 35

0 BEGIN PGM C230 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z+0 Define the workpiece blank
2 BLK FORM 0.2 X+100 Y+100 Z+40
3 TOOL DEF 1 L+0 R+5 Define the tool
4 TOOL CALL 1 Z S3500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 CYCL DEF 230 MULTIPASS MILLING Cycle definition: MULTIPASS MILLING
Q225=+0 ;START IN 1ST AXIS
Q226=+0 ;START IN 2ND AXIS
Q227=+35 ;START IN 3RD AXIS
Q218=100 ;FIRST SIDE LENGTH
Q219=100 ;SECOND SIDE LENGTH
Q240=25 ;NUMBER OF CUTS
Q206=250 ;FEED RATE FOR PLNGNG
Q207=400 ;FEED RATE FOR MILLING
Q209=150 ;STEPOVER FEED RATE
Q200=2 ;SET-UP CLEARANCE

HEIDENHAIN iTNC 530 427


8.8 Cycles for Multipass Milling
7 L X+-25 Y+0 R0 FMAX M3 Pre-position near the starting point
8 CYCL CALL Call the cycle
9 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
10 END PGM C230 MM

428 8 Programming: Cycles


8.9 Coordinate Transformation

8.9 Coordinate Transformation Cycles


Cycles
Overview
Once a contour has been programmed, you can position it on the
workpiece at various locations and in different sizes through the use
of coordinate transformations. The TNC provides the following
coordinate transformation cycles:

Cycle Soft key


7 DATUM SHIFT
For shifting contours directly within the program or
from datum tables

247 DATUM SETTING


Datum setting during program run

8 MIRROR IMAGE
Mirroring contours

10 ROTATION
For rotating contours in the working plane

11 SCALING FACTOR
For increasing or reducing the size of contours

26 AXIS-SPECIFIC SCALING FACTOR


For increasing or reducing the size of contours with
scaling factors for each axis

19 WORKING PLANE
Machining in tilted coordinate system on machines
with swivel heads and/or tilting tables

Effect of coordinate transformations


Beginning of effect: A coordinate transformation becomes effective as
soon as it is defined—it is not called. It remains in effect until it is
changed or canceled.
To cancel coordinate transformations:
„ Define cycles for basic behavior with a new value, such as scaling
factor 1.0.
„ Execute a miscellaneous function M02, M30, or an END PGM block
(depending on MP7300).
„ Select a new program.
„ Program miscellaneous function M142 Erasing modal program
information.

HEIDENHAIN iTNC 530 429


8.9 Coordinate Transformation Cycles
DATUM SHIFT (Cycle 7)
A DATUM SHIFT allows machining operations to be repeated at
various locations on the workpiece. Z
Effect Z
Y Y
When the DATUM SHIFT cycle is defined, all coordinate data is based X
on the new datum. The TNC displays the datum shift in each axis in
the additional status display. Input of rotary axes is also permitted.
8 Datum shift: Enter the coordinates of the new X
datum. Absolute values are referenced to the
manually set workpiece datum. Incremental values
are always referenced to the datum which was last
valid—this can be a datum which has already been
shifted.

Cancellation
A datum shift is canceled by entering the datum shift coordinates X=0,
Y=0 and Z=0.

Graphics
Z
If you program a new BLK FORM after a datum shift, you can use MP Y
7310 to determine whether the BLK FORM is referenced to the
current datum or to the original datum. Referencing a new BLK FORM
to the current datum enables you to display each part in a program in IY
which several pallets are machined. X
Status Displays IX
„ The actual position values are referenced to the active (shifted)
datum.
„ All of the position values shown in the additional status display are
referenced to the manually set datum.

Example: NC blocks

13 CYCL DEF 7.0 DATUM SHIFT


14 CYCL DEF 7.1 X+60
16 CYCL DEF 7.3 Z-5
15 CYCL DEF 7.2 Y+40

430 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
DATUM SHIFT with datum tables (Cycle 7)

Datums from a datum table are always and exclusively


referenced to the current datum (preset).
Z
MP7475, which earlier defined whether datums are
referenced to the machine datum or the workpiece datum,
Y
now serves only as a safety measure. If MP7475 = 1, the N5
TNC outputs an error message if a datum shift is called N4
from a datum table. N3
N2 X
Datum tables from the TNC 4xx whose coordinates are N1
referenced to the machine datum (MP7475 = 1) cannot be N0
used in the iTNC 530.

If you are using datum shifts with datum tables, then use
the SEL TABLE function to activate the desired datum table
from the NC program.
If you work without SEL TABLE, then you must activate the
desired datum table before the test run or the program
run. (This applies also to the programming graphics).
Z
„ Use the file management to select the desired table for
Y
a test run in the Test Run operating mode: The table
receives the status S. N2
„ Use the file management in a program run mode to
select the desired table for a program run: The table N1 X
Y2
receives the status M.
The coordinate values from datum tables are only effective Y1 N0
with absolute coordinate values. X2
X1
New lines can only be inserted at the end of the table.

Function
Datum tables are used for
„ frequently recurring machining sequences at various locations on Example: NC blocks
the workpiece
„ frequent use of the same datum shift 77 CYCL DEF 7.0 DATUM SHIFT
Within a program, you can either program datum points directly in the 78 CYCL DEF 7.1 #5
cycle definition or call them from a datum table.
8 Datum shift: Enter the number of the datum from the
datum table or a Q parameter. If you enter a
Q parameter, the TNC activates the datum number
entered in the Q parameter.

Cancellation
„ Call a datum shift to the coordinates
X=0; Y=0 etc. from the datum table.
„ Execute a datum shift to the coordinates X=0; Y=0 etc. directly with
a cycle definition.

HEIDENHAIN iTNC 530 431


8.9 Coordinate Transformation Cycles Selecting a datum table in the part program
With the SEL TABLE function you select the table from which the TNC
takes the datums:
8 To select the functions for program call, press the
PGM CALL key.
8 Press the TOOL TABLE soft key.
8 Enter the complete path name of the datum table and
confirm your entry with the END key.

Program a SEL TABLE block before Cycle 7 Datum Shift.


A datum table selected with SEL TABLE remains active
until you select another datum table with SEL TABLE or
through PGM MGT.

432 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
Edit the datum table in the Programming and Editing mode of
operation.

After you have changed a value in a datum table, you must


save the change with the ENT key. Otherwise the change
may not be included during program run.

Select the datum table in the Programming and Editing mode of


operation.
8 To call the file manager, press the PGM MGT key, see
“File Management: Fundamentals” on page 87.
8 Display the datum tables: Press the soft keys SELECT
TYPE and SHOW .D.
8 Select the desired table or enter a new file name.
8 Edit the file. The soft-key row comprises the following
functions for editing:

Function Soft key


Select beginning of table

Select end of table

Go to previous page

Go to next page

Insert line (only possible at end of table)

Delete line

Confirm the entered line and go to the beginning of


the next line

Add the entered number of lines (reference points)


to the end of the table

HEIDENHAIN iTNC 530 433


8.9 Coordinate Transformation Cycles Editing a pocket table in a Program Run operating mode
In a program run mode you can select the active datum table. Press
the DATUM TABLE soft key. You can then use the same editing
functions as in the Programming and Editing mode of operation.

Transferring the actual values into the datum table


You can enter the current tool position or the last probed position in
the datum table by pressing the “actual-position-capture” key:
8 Place the text box on the line of the column in which you want to
enter the position.
8 Select the actual-position-capture function: The TNC
opens a pop-up window that asks whether you want
to enter the current tool position or the last probed
values.
8 Select the desired function with the arrow keys and
confirm your selection with the ENT key.
8 To enter the values in all axes, press the ALL VALUES
soft key.
8 To enter the value in the axis where the text box is
located, press the CURRENT VALUE soft key.

Configuring the datum table


In the second and third soft-key rows you can define for each datum
table the axes for which you wish to set the datums. In the standard
setting all of the axes are active. If you wish to exclude an axis, set the
corresponding soft key to OFF. The TNC then deletes that column
from the datum table.
If you do not wish to define a datum table for an active axis, press the
NO ENT key. The TNC then enters a dash in that column.

To leave a datum table


Select a different type of file in file management and choose the
desired file.

Status Displays
In the additional status display, the following data from the datum
table are shown (see “Coordinate transformations” on page 47):
„ Name and path of the active datum table
„ Active datum number
„ Comment from the DOC column of the active datum number

434 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
DATUM SETTING (Cycle 247)

If you operate the iTNC 530 with the setting PRESET = Z


OFF, Cycle 247 will run as described in the User's Manual Z
for software level 340 420-xx. Y Y
X
With the Cycle DATUM SETTING, you can activate as the new datum
a preset defined in a preset table.
X
Effect
After a DATUM SETTING cycle definition, all of the coordinate inputs
and datum shifts (absolute and incremental) are referenced to the new
preset.
8 Number for datum?: Enter the number of the datum to
be activated from the preset table

When activating a datum from the preset table, the TNC


resets all coordinate transformations that were activated Example: NC blocks
with the following cycles:
13 CYCL DEF 247 DATUM SETTING
„ Cycle 7, Datum Shift
„ Cycle 8, Mirroring Q339=4 ;DATUM NUMBER
„ Cycle 10, Rotation
„ Cycle 11, Scaling
„ Cycle 26, Axis-Specific Scaling
However, the coordinate transformation from Cycle 19,
Tilted Working Plane, remains active.
The TNC sets the preset only in the axes that are defined
with values in the preset table. The datums of axes
marked with—remain unchanged.
If you activate preset number 0 (line 0), then you activate
the datum that you last set by hand in a manual operating
mode.
Cycle 247 is not functional in Test Run mode.

Status display
In the status display the TNC shows the active preset number behind
the datum symbol.

HEIDENHAIN iTNC 530 435


8.9 Coordinate Transformation Cycles
MIRROR IMAGE (Cycle 8)
The TNC can machine the mirror image of a contour in the working
plane. Z
Y
Effect
The mirror image cycle becomes effective as soon as it is defined in
the program. It is also effective in the Positioning with MDI mode of
operation. The active mirrored axes are shown in the additional status X
display.
„ If you mirror only one axis, the machining direction of the tool is
reversed (except in fixed cycles).
„ If you mirror two axes, the machining direction remains the same.
The result of the mirror image depends on the location of the datum:
„ If the datum lies on the contour to be mirrored, the element simply
flips over.
„ If the datum lies outside the contour to be mirrored, the element
also “jumps” to another location.

If you mirror only one axis, the machining direction is


reversed for the milling cycles (Cycles 2xx). Z

436 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
8 Mirrored axis?: Enter the axis to be mirrored. You
can mirror all axes, including rotary axes, except for
the spindle axis and its auxiliary axes. You can enter
up to three axes. Z
Reset
Program the MIRROR IMAGE cycle once again with NO ENT. Y

Example: NC blocks

79 CYCL DEF 8.0 MIRROR IMAGE


80 CYCL DEF 8.1 X Y U

HEIDENHAIN iTNC 530 437


8.9 Coordinate Transformation Cycles
ROTATION (Cycle 10)
The TNC can rotate the coordinate system about the active datum in
the working plane within a program. Z
Effect Z
Y
The ROTATION cycle becomes effective as soon as it is defined in the X
Y
program. It is also effective in the Positioning with MDI mode of
operation. The active rotation angle is shown in the additional status
display. X
Reference axis for the rotation angle:
„ X/Y plane X axis
„ Y/Z plane Y axis
„ Z/X plane Z axis

Before programming, note the following:


An active radius compensation is canceled by defining
Cycle 10 and must therefore be reprogrammed, if
necessary.
After defining Cycle 10, you must move both axes of the
working plane to activate rotation for all axes.

8 Rotation: Enter the rotation angle in degrees (°). Input


range: –360° to +360° (absolute or incremental).

Cancellation
Program the ROTATION cycle once again with a rotation angle of 0°.

Example: NC blocks

12 CALL LBL 1
13 CYCL DEF 7.0 DATUM SHIFT
14 CYCL DEF 7.1 X+60
15 CYCL DEF 7.2 Y+40
16 CYCL DEF 10.0 ROTATION
17 CYCL DEF 10.1 ROT+35
18 CALL LBL 1

438 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
SCALING FACTOR (Cycle 11)
The TNC can increase or reduce the size of contours within a program,
enabling you to program shrinkage and oversize allowances. Z
Effect
Y Z
The SCALING FACTOR becomes effective as soon as it is defined in Y
the program. It is also effective in the Positioning with MDI mode of X
operation. The active scaling factor is shown in the additional status
display. X
The scaling factor has an effect on
„ the working plane, or on all three coordinate axes at the same time
(depending on MP7410)
„ dimensions in cycles
„ the parallel axes U,V,W

Prerequisite
It is advisable to set the datum to an edge or a corner of the contour
before enlarging or reducing the contour.
8 Scaling factor ?: Enter the scaling factor SCL. The
TNC multiplies the coordinates and radii by the SCL
factor (as described under “Effect” above)

Enlargement: SCL greater than 1 (up to 99.999 999)


Reduction: SCL less than 1 (down to 0.000 001)

Cancellation
Program the SCALING FACTOR cycle once again with a scaling factor
of 1.

Example: NC blocks

11 CALL LBL 1
12 CYCL DEF 7.0 DATUM SHIFT
13 CYCL DEF 7.1 X+60
14 CYCL DEF 7.2 Y+40
15 CYCL DEF 11.0 SCALING
16 CYCL DEF 11.1 SCL 0.75
17 CALL LBL 1

HEIDENHAIN iTNC 530 439


8.9 Coordinate Transformation Cycles
AXIS-SPECIFIC SCALING (Cycle 26)

Before programming, note the following:


Coordinate axes sharing coordinates for arcs must be
Y
enlarged or reduced by the same factor.
You can program each coordinate axis with its own axis-
specific scaling factor.
CC
In addition, you can enter the coordinates of a center for all
scaling factors.
The size of the contour is enlarged or reduced with
reference to the center, and not necessarily (as in Cycle 11
SCALING FACTOR) with reference to the active datum.

Effect
X
The SCALING FACTOR becomes effective as soon as it is defined in
the program. It is also effective in the Positioning with MDI mode of
operation. The active scaling factor is shown in the additional status
display.
8 Axis and scaling factor: Enter the coordinate axis/
axes as well as the factor(s) involved in enlarging or
reducing. Enter a positive value up to 99.999 999.
8 Center coordinates: Enter the center of the axis-
specific enlargement or reduction.
The coordinate axes are selected with soft keys.

Cancellation
Program the SCALING FACTOR cycle once again with a scaling factor
of 1 for the same axis.

Example: NC blocks

25 CALL LBL 1
26 CYCL DEF 26.0 AXIS-SPECIFIC SCALING
27 CYCL DEF 26.1 X 1.4 Y 0.6 CCX+15 CCY+20
28 CALL LBL 1

440 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
WORKING PLANE (Cycle 19, software option 1)

The functions for tilting the working plane are interfaced to


the TNC and the machine tool by the machine tool builder.
With some swivel heads and tilting tables, the machine
tool builder determines whether the entered angles are
interpreted as coordinates of the rotary axes or as
mathematical angles of a tilted plane. Refer to your
machine manual.

The working plane is always tilted around the active


datum.
For fundamentals, see “Tilting the Working Plane
(Software Option 1)” on page 72: Please read this section
completely.

Effect
In Cycle 19 you define the position of the working plane—i.e. the
position of the tool axis referenced to the machine coordinate
system—by entering tilt angles. There are two ways to determine the
position of the working plane:
„ Enter the position of the tilting axes directly.
„ Describe the position of the working plane using up to 3 rotations
(spatial angle) of the machine-referenced coordinate system. The
required spatial angle can be calculated by cutting a perpendicular
line through the tilted working plane and considering it from the axis
around which you wish to tilt. With two spatial angles, every tool
position in space can be defined exactly.

Note that the position of the tilted coordinate system, and


therefore also all movements in the tilted system, are
dependent on your description of the tilted plane.

If you program the position of the working plane via spatial angles, the
TNC will calculate the required angle positions of the tilted axes
automatically and will store these in the parameters Q120 (A axis) to
Q122 (C axis). If two solutions are possible, the TNC will choose the
shorter path from the zero position of the rotary axes.
The axes are always rotated in the same sequence for calculating the
tilt of the plane: The TNC first rotates the A axis, then the B axis, and
finally the C axis.
Cycle 19 becomes effective as soon as it is defined in the program. As
soon as you move an axis in the tilted system, the compensation for
this specific axis is activated. You must move all axes to activate
compensation for all axes.
If you set the function Tilting program run to Active in the Manual
Operation mode (see “Tilting the Working Plane (Software Option 1)”
on page 72), the angular value entered in this menu is overwritten by
Cycle 19 WORKING PLANE.

HEIDENHAIN iTNC 530 441


8.9 Coordinate Transformation Cycles 8 Tilt axis and tilt angle?: Enter the axes of rotation
together with the associated tilt angles. The rotary
axes A, B and C are programmed using soft keys.

Because nonprogrammed rotary axis values are


interpreted as unchanged, you should always define all
three spatial angles, even if one or more angles are at zero.

If the TNC automatically positions the rotary axes, you can enter the
following parameters:
8 Feed rate ? F=: Traverse speed of the rotary axis
during automatic positioning.
8 Set-up clearance?(incremental value): The TNC
positions the tilting head so that the position that
results from the extension of the tool by the set-up
clearance does not change relative to the workpiece.

Cancellation
To cancel the tilt angle, redefine the WORKING PLANE cycle and enter
an angular value of 0° for all axes of rotation. You must then program
the WORKING PLANE cycle once again by answering the dialog
question with the NO ENT key to disable the function.

442 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
Position the axis of rotation

The machine tool builder determines whether Cycle 19


positions the axes of rotation automatically or whether
they must be pre-positioned in the program. Refer to your
machine manual.

If the rotary axes are positioned automatically in Cycle 19:


„ The TNC can position only controlled axes
„ In order for the tilted axes to be positioned, you must enter a feed
rate and a set-up clearance in addition to the tilting angles, during
cycle definition.
„ You can use only preset tools (with the full tool length defined in the
TOOL DEF block or in the tool table).
„ The position of the tool tip as referenced to the workpiece surface
remains nearly unchanged after tilting
„ The TNC tilts the working plane at the last programmed feed rate.
The maximum feed rate that can be reached depends on the
complexity of the swivel head or tilting table.
If the axes are not positioned automatically in Cycle 19, position them
before defining the cycle, for example with an L block.
Example NC blocks:

10 L Z+100 R0 FMAX
11 L X+25 Y+10 R0 FMAX
12 L B+15 R0 F1000 Position the axis of rotation
13 CYCL DEF 19.0 WORKING PLANE Define the angle for calculation of the compensation
14 CYCL DEF 19.1 B+15
15 L Z+80 R0 FMAX Activate compensation for the tool axis
16 L X-8.5 Y-10 R0 FMAX Activate compensation for the working plane

HEIDENHAIN iTNC 530 443


8.9 Coordinate Transformation Cycles Position display in the tilted system
On activation of Cycle 19, the displayed positions (ACTL and NOML) and
the datum indicated in the additional status display are referenced to
the tilted coordinate system. The positions displayed immediately
after cycle definition might not be the same as the coordinates of the
last programmed position before Cycle 19.

Workspace monitoring
The TNC monitors only those axes in the tilted coordinate system that
are moved. If necessary, the TNC outputs an error message.

Positioning in a tilted coordinate system


With the miscellaneous function M130 you can move the tool, while
the coordinate system is tilted, to positions that are referenced to the
non-tilted coordinate system (see “Miscellaneous Functions for
Coordinate Data” on page 240).
Positioning movements with straight lines that are referenced to the
machine coordinate system (blocks with M91 or M92) can also be
executed in a tilted working plane. Constraints:
„ Positioning is without length compensation.
„ Positioning is without machine geometry compensation.
„ Tool radius compensation is not permitted.

Combining coordinate transformation cycles


When combining coordinate transformation cycles, always make sure
the working plane is swiveled around the active datum. You can
program a datum shift before activating Cycle 19. In this case, you are
shifting the machine-based coordinate system.
If you program a datum shift after having activated Cycle 19, you are
shifting the tilted coordinate system.
Important: When resetting the cycles, use the reverse sequence used
for defining them:
1. Activate the datum shift.
2. Activate tilting function
3. Activate rotation
...
Machining
...
1. Reset the rotation
2. Reset the tilting function
3. Reset the datum shift

Automatic workpiece measurement in the tilted system


The TNC measuring cycles enable you to have the TNC measure a
workpiece in a tilted system automatically. The TNC stores the
measured data in Q parameters for further processing (for example,
for printout).

444 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
Procedure for working with Cycle 19 WORKING PLANE

1 Write the program


8 Define the tool (not required if TOOL.T is active), and enter the full
tool length.
8 Call the tool
8 Retract the tool in the tool axis to a position where there is no
danger of collision with the workpiece (clamping devices) during
tilting.
8 If required, position the rotary axis or axes with an L block to the
appropriate angular value(s) (depending on a machine parameter).
8 Activate datum shift if required.
8 Define Cycle 19 WORKING PLANE; enter the angular values for the
tilt axes.
8 Traverse all main axes (X, Y, Z) to activate compensation.
8 Write the program as if the machining process were to be executed
in a non-tilted plane.
8 If required, define Cycle 19 WORKING PLANE with other angular
values to execute machining in a different axis position. In this case,
it is not necessary to reset Cycle 19. You can define the new angular
values directly.
8 Reset Cycle 19 WORKING PLANE; program 0° for all tilt axes.
8 Disable the WORKING PLANE function; redefine Cycle 19 and
answer the dialog question with NO ENT.
8 Reset datum shift if required.
8 Position the rotary axes to the 0° position, if required.

2 Clamp the workpiece

3 Preparations in the operating mode


Positioning with Manual Data Input (MDI)
Pre-position the rotary axis/axes to the corresponding angular value(s)
for setting the datum. The angular value depends on the selected
reference plane on the workpiece.

4 Preparations in the operating mode


Manual Operation
Use the 3D-ROT soft key to set the function TILT WORKING PLANE
to ACTIVE in the Manual Operation mode. Enter the angular values for
the rotary axes into the menu if the axes are not controlled.
If the axes are not controlled, the angular values entered in the menu
must correspond to the actual position(s) of the rotary axis or axes,
respectively. The TNC will otherwise calculate a wrong datum.

HEIDENHAIN iTNC 530 445


8.9 Coordinate Transformation Cycles 5 Set the datum
„ Manually by touching the workpiece with the tool in the untilted
coordinate system (see “Datum Setting (Without a 3-D Touch
Probe)” on page 64).
„ Controlled with a HEIDENHAIN 3-D touch probe (see the Touch
Probe Cycles Manual, chapter 2).
„ Automatically by using a HEIDENHAIN 3-D touch probe (see the
Touch Probe Cycles Manual, chapter 3).

6 Start the part program in the operating mode Program Run, Full
Sequence

7 Manual Operation mode


Use the 3-D ROT soft key to set the TILT WORKING PLANE function
to INACTIVE. Enter an angular value of 0° for each axis in the menu
(see “Activating manual tilting” on page 76).

446 8 Programming: Cycles


8.9 Coordinate Transformation Cycles
Example: Coordinate transformation cycles

Program sequence
„ Program the coordinate transformations in R5

10
the main program Y R5
„ For subprograms within a subprogram, see

10
130 X
“Subprograms” on page 491.
20 10
45°
30

65

X
65 130

0 BEGIN PGM COTRANS MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
2 BLK FORM 0.2 X+130 Y+130 Z+0
3 TOOL DEF 1 L+0 R+1 Define the tool
4 TOOL CALL 1 Z S4500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 CYCL DEF 7.0 DATUM SHIFT Shift datum to center
7 CYCL DEF 7.1 X+65
8 CYCL DEF 7.2 Y+65
9 CALL LBL 1 Call milling operation
10 LBL 10 Set label for program section repeat
11 CYCL DEF 10.0 ROTATION Rotate by 45° (incremental)
12 CYCL DEF 10.1 IROT+45
13 CALL LBL 1 Call milling operation
14 CALL LBL 10 REP 6/6 Return jump to LBL 10; repeat the milling operation six times
15 CYCL DEF 10.0 ROTATION Reset the rotation
16 CYCL DEF 10.1 ROT+0
17 CYCL DEF 7.0 DATUM SHIFT Reset the datum shift
18 CYCL DEF 7.1 X+0
19 CYCL DEF 7.2 Y+0

HEIDENHAIN iTNC 530 447


8.9 Coordinate Transformation Cycles
20 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
21 LBL 1 Subprogram 1
22 L X+0 Y+0 R0 FMAX Define milling operation
23 L Z+2 R0 FMAX M3
24 L Z-5 R0 F200
25 L X+30 RL
26 L IY+10
27 RND R5
28 L IX+20
29 L IX+10 IY-10
30 RND R5
31 L IX-10 IY-10
32 L IX-20
33 L IY+10
34 L X+0 Y+0 R0 F5000
35 L Z+20 R0 FMAX
36 LBL 0
37 END PGM COTRANS MM

448 8 Programming: Cycles


8.10 Special Cycles

8.10 Special Cycles


DWELL TIME (Cycle 9)
This causes the execution of the next block within a running program
to be delayed by the programmed dwell time. A dwell time can be
used for such purposes as chip breaking.

Effect
Cycle 9 becomes effective as soon as it is defined in the program.
Modal conditions such as spindle rotation are not affected.
8 Dwell time in seconds: Enter the dwell time in
seconds.
Input range: 0 to 3600 s (1 hour) in steps of 0.001 seconds

Example: NC blocks

89 CYCL DEF 9.0 DWELL TIME


90 CYCL DEF 9.1 DWELL 1.5

HEIDENHAIN iTNC 530 449


8.10 Special Cycles
PROGRAM CALL (Cycle 12)
Routines that you have programmed (such as special drilling cycles or
geometrical modules) can be written as main programs and then
called like fixed cycles.

Before programming, note the following: 7 CYCL DEF 12.0 0 BEGIN PGM
PGM CALL LOT31 MM
The program you are calling must be stored on the hard 8 CYCL DEF 12.1
disk of your TNC. LOT31
9 ... M99
If the program you are defining to be a cycle is located in
the same directory as the program you are calling it from,
you only need to enter the program name.
If the program you are defining to be a cycle is not located END PGM LOT31
in the same directory as the program you are calling it
from, you must enter the complete path (for example
TNC:\KLAR35\FK1\50.H.
If you want to define an ISO program to be a cycle, enter
the file type .I behind the program name. Example: NC blocks
As a rule, Q parameters are globally effective when called
with Cycle 12. So please note that changes to 55 CYCL DEF 12.0 PGM CALL
Q parameters in the called program can also influence the 56 CYCL DEF 12.1 PGM TNC:\KLAR35\FK1\50.H
calling program.
57 L X+20 Y+50 FMAX M99

8 Program name: Enter the name of the program you


want to call and, if necessary, the directory it is
located in.
Call the program with
„ CYCL CALL (separate block) or
„ M99 (blockwise) or
„ M89 (executed after every positioning block)

Example: Program call


A callable program 50 is to be called into a program via a cycle call.

450 8 Programming: Cycles


8.10 Special Cycles
ORIENTED SPINDLE STOP (Cycle 13)

Machine and control must be specially prepared by the Z


Y
machine tool builder for use of this cycle.

Cycle 13 is used internally for machining cycles 202, 204


and 209. Please note that, if required, you must program X
Cycle 13 again in your NC program after one of the
machining cycles mentioned above.

The control can control the machine tool spindle and rotate it to a given
angular position.
Oriented spindle stops are required for
„ Tool changing systems with a defined tool change position
„ Orientation of the transmitter/receiver window of HEIDENHAIN 3-D
touch probes with infrared transmission
Example: NC blocks
Effect
93 CYCL DEF 13.0 ORIENTATION
The angle of orientation defined in the cycle is positioned to by
entering M19 or M20 (depending on the machine). 94 CYCL DEF 13.1 ANGLE 180
If you program M19 or M20 without having defined Cycle 13, the TNC
positions the machine tool spindle to an angle that has been set by the
machine manufacturer (see your machine manual).
8 Angle of orientation: Enter the angle according to
the reference axis of the working plane.

Input range: 0 to 360°

Input resolution: 0.1°

TOLERANCE (Cycle 32, software option 2)

Machine and control must be specially prepared by the


machine tool builder for use of this cycle.

The TNC automatically smoothes the contour between two path


elements (whether compensated or not). The tool has constant
contact with the workpiece surface. If necessary, the TNC
automatically reduces the programmed feed rate so that the program
can be machined at the fastest possible speed without short pauses
for computing time. As a result the surface quality is improved and the
machine is protected.

HEIDENHAIN iTNC 530 451


8.10 Special Cycles A contour deviation results from the smoothing. The size of this
deviation (tolerance value) is set in a machine parameter by the
machine manufacturer. With Cycle 32, you can change the pre-set
tolerance value and select different filter settings.

Before programming, note the following:


Cycle 32 is DEF active which means that it becomes
effective as soon as it is defined in the part program.
You can reset Cycle 32 by defining it again and confirming
the dialog question after the tolerance value with NO
ENT. Resetting reactivates the pre-set tolerance.
In a program with millimeters set as unit of measure, the
TNC interprets the entered tolerance value in millimeters.
In an inch program it interprets them as inches.
If you transfer a program with Cycle 32 that contains only
the cycle parameter Tolerance value T, the TNC inserts
the two remaining parameters with the value 0 if required.

452 8 Programming: Cycles


Example: NC blocks

8.10 Special Cycles


8 Tolerance value: Permissible contour deviation in
mm (or inches with inch programming)
95 CYCL DEF 32.0 TOLERANCE
8 Finishing=0, Roughing=1: Activate filter:
96 CYCL DEF 32.1 T0.05
„ Input value 0:
Milling with increased contour accuracy. The 97 CYCL DEF 32.2 HSC-MODE:1 TA5
TNC uses the filter settings that your machine tool
builder has defined for finishing operations.
„ Input value 1:
Milling at an increased feed rate. The TNC uses
the filter settings that your machine tool builder has
defined for roughing operations.
8 Tolerance for rotary axes: Permissible position
error of rotary axes in degrees when M128 is active.
The TNC always reduces the feed rate in such a way
that—if more than one axis is traversed—the slowest
axis moves at its maximum feed rate. Rotary axes are
usually much slower than linear axes. You can
significantly reduce the machining time for programs
for more than one axis by entering a large tolerance
value (e.g. 10°), since the TNC does not always have
to move the rotary axis to the given nominal position.
The contour will not be damaged by entering a
tolerance value. Only the position of the rotary axis
with respect to the workpiece surface will change.

HEIDENHAIN iTNC 530 453


Programming:
Special Functions
9.1 The PLANE Function: Tilting
9.1 The PLANE Function: Tilting the Working Plane (Software Option 1)
the Working Plane (Software
Option 1)
Introduction

The machine manufacturer must enable the functions for


tilting the working plane!

The PLANE function is a powerful function for defining tilted working


planes in various manners.
All PLANE functions available on the TNC describe the desired working
plane independently of the rotary axes actually present on your
machine. The following possibilities are available:
Function Required parameters Soft key
SPATIAL Three space angles: SPA, SPB, and SPC

PROJECTED Two projection angles: PROPR and


PROMIN and a rotation angle ROT

EULER Three Euler angles: precession


(EULPR), nutation (EULNU) and
rotation (EULROT)

VECTOR Norm vector for defining the plane and


base vector for defining the direction
of the tilted X axis

POINTS Coordinates of any three points in the


plane to be tilted

RELATIVE Single, incrementally effective spatial


angle

RESET Reset the PLANE function

Use the PLANE SPATIAL function if your machine features


Cartesian rotary axes. SPA stands for rotation of the A axis,
SPB the B axis and SPC the C axis. Because you always
have to enter all three angles, define the angle to be 0 in
any axes that are not available on your machine.

456 9 Programming: Special Functions


9.1 The PLANE Function: Tilting the Working Plane (Software Option 1)
In order to make the differences between each definition possibility
more clear even before selecting the function, you can start an
animated sequence via soft key.

The parameter definition of the PLANE function is separated


into two parts:
„ The geometric definition of the plane, which is different
for each of the available PLANE functions.
„ The positioning behavior of the PLANE function, which is
independent of the plane definition and is identical for all
PLANE functions (see “Specifying the Positioning
Behavior of the PLANE Function” on page 472).

The actual-position-capture function is not possible with


an active tilted working plane.

HEIDENHAIN iTNC 530 457


9.1 The PLANE Function: Tilting the Working Plane (Software Option 1)
Define the PLANE function
8 Shift the soft-key row if necessary.

8 Select special TNC functions: Press the


SPECIAL TNC FUNCTIONS soft key.
8 Select the PLANE function: Press the TILT MACHINING
PLANE soft key: The TNC displays the available
definition possibilities in the soft-key row.

Selecting the function while animation is active


8 Activate animation: Set the SELECT ANIMATION ON/OFF soft key
to ON.
8 Start an animation for one of the definition possibilities: Press one
of the available soft keys. The TNC highlights the soft key with a
different color and begins the appropriate animation.
8 To assume the currently active function: Press the ENT key or press
the soft key of the active function again. The TNC continues the
dialog and requests the required parameters.

Selecting the function while animation is inactive


8 Select the desired function directly via soft key. The TNC continues
the dialog and requests the required parameters.

Position display
As soon as a PLANE function is active, the TNC shows the calculated
spatial angle in the additional status display (see 1 in figure at lower
right). As a rule, the TNC internally always calculates with spatial
angles, independent of which PLANE function is active.

458 9 Programming: Special Functions


9.1 The PLANE Function: Tilting the Working Plane (Software Option 1)
Reset the PLANE function
8 Shift the soft-key row if necessary. Example: NC block

25 PLANE RESET MOVE SET UP 50 F1000


8 Select special TNC functions: Press the
SPECIAL TNC FUNCTIONS soft key.
8 Select the PLANE function: Press the TILT
MACHINING PLANE soft key: The TNC displays the
available definition possibilities in the soft-key row.
8 Select the Reset function. This internally resets the
PLANE function, but does not change the current axis
positions.
8 Specify whether the TNC should automatically move
the rotary axes to the default setting (MOVE) or not
(STAY) (see “Automatic positioning: MOVE/TURN/STAY
(entry is mandatory)” on page 473).
8 To terminate entry, press the END key.

The PLANE RESET function resets the current PLANE


function—or an active Cycle 19—completely (angles = 0
and function is inactive). It does not need to be defined
more than once.

HEIDENHAIN iTNC 530 459


9.2 Defining the Machining Plane
9.2 Defining the Machining Plane with Space Angles: PLANE SPATIAL
with Space Angles:
PLANE SPATIAL
Function
Spatial angles define a machining plane through up to three rotations
around the fixed machine coordinate system. The sequence of
rotations is firmly specified: first around the A axis, then B, and then C
(the function corresponds to Cycle 19, if the entries in Cycle 19 are set
to space angles).

Before programming, note the following:


You must always define the three space angles SPA, SPB,
and SPC, even if one of them = 0.
The sequence of the rotations described above is
independent of the active tool axis.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

460 9 Programming: Special Functions


9.2 Defining the Machining Plane with Space Angles: PLANE SPATIAL
Input parameters
8 Space angle A?: Rotational angle SPA around the fixed
machine axis X (see figure at top right). Input range:
from –359.9999° to +359.9999°
8 Spatial angle B?: Rotational angle SPB around the
fixed machine axis Y (see figure at top right). Input
range: from –359.9999° to +359.9999°
8 Spatial angle C?: Rotational angle SPC around the
fixed machine axis Z (see figure at center right). Input
range: from –359.9999° to +359.9999°
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

Abbreviations used

Abbreviation Meaning
SPATIAL spatial = in space

SPA spatial A: rotation about the X axis

SPB spatial B: rotation about the Y axis

SPC spatial C: rotation about the Z axis

Example: NC block

5 PLANE SPATIAL SPA+27 SPB+0 SPC+45 .....

HEIDENHAIN iTNC 530 461


9.3 Defining the Machining Plane
9.3 Defining the Machining Plane with Projection Angles: PROJECTED PLANE
with Projection Angles:
PROJECTED PLANE
Function
Projection angles define a machining plane through the entry of two
angles that you determine by projecting the first coordinate plane (Z/X
plane with tool axis Z) and the second coordinate plane (Y/Z with tool
axis Z) onto the machining plane to be defined.

Before programming, note the following:


You can only use projection angles if a rectangular cuboid
is to be machined. Otherwise distortions could occur on
the workpiece.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

462 9 Programming: Special Functions


9.3 Defining the Machining Plane with Projection Angles: PROJECTED PLANE
Input parameters
8 Proj. angle 1st coordinate plane?: Projected angle
of the tilted machining plane in the 1st coordinate
plane of the fixed machine coordinate system (Z/X for
tool axis Z, see figure at top right). Input range: from
–89.9999° to +89.9999°. The 0° axis is the principal
axis of the active machining plane (X for tool axis Z.
See figure at top right for positive direction).
8 Proj. angle 2nd coordinate plane?: Projected angle
in the 2nd coordinate plane of the fixed machine
coordinate system (Y/Z for tool axis Z, see figure at
top right). Input range: from -89.9999° to +89.9999°.
The 0° axis is the minor axis of the active machining
plane (Y for tool axis Z).
8 ROT angle of the tilted plane?: Rotation of the
tilted coordinate system around the tilted tool axis
(corresponds to a rotation with Cycle 10 ROTATION).
The rotation angle is used to simply specify the
direction of the principal axis of the machining plane
(X for tool axis Z, Z for tool axis Y; see figure at bottom
right). Input range: from 0° to +360°.
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

Abbreviations used

Abbreviation Meaning
PROJECTED projected

PROPR principal plane

PROMIN minor plane

PROROT rotation
Example: NC block

5 PLANE PROJECTED PROPR+24 PROMIN+24 PROROT


+30 .....

HEIDENHAIN iTNC 530 463


9.4 Defining the Machining Plane
9.4 Defining the Machining Plane with Euler Angles: EULER PLANE
with Euler Angles:
EULER PLANE
Function
Euler angles define a machining plane through up to three rotations
about the respectively tilted coordinate system. The Swiss
mathematician Leonhard Euler defined these angles. When applied to
the machine coordinate system, they have the following meanings:

Precession angle Rotation of the coordinate system around the Z


EULPR axis
Nutation angle Rotation of the coordinate system around the X
EULNU axis already shifted by the precession angle
Rotation angle Rotation of the tilted machining plane around the
EULROT tilted Z axis

Before programming, note the following:


The sequence of the rotations described above is
independent of the active tool axis.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

464 9 Programming: Special Functions


9.4 Defining the Machining Plane with Euler Angles: EULER PLANE
Input parameters
8 Rot. angle main coordinate plane?: Rotary angle
EULPR around the Z axis (see figure at top right). Note:
„ Input range: 0° to 180.0000°.
„ The 0° axis is the X axis.
8 Tilting angle tool axis?: Tilting angle EULNUT of the
coordinate system around the X axis shifted by the
precession angle (see figure at center right). Note:
„ Input range: 0° to 180.0000°.
„ The 0° axis is the Z axis.
8 ROT angle of the tilted plane?: Rotation EULROT of
the tilted coordinate system around the tilted Z axis
(corresponds to a rotation with Cycle 10 ROTATION).
Use the rotation angle to simply define the direction
of the X axis in the tilted machining plane (see figure
at bottom right). Note:
„ Input range: 0° to 360.0000°.
„ The 0° axis is the X axis.
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

NC block
5 PLANE EULER EULPR45 EULNU20 EULROT22 .....

Abbreviations used

Abbreviation Meaning
EULER Swiss mathematician who defined these angles

EULPR Precession angle: angle describing the rotation of


the coordinate system around the Z axis

EULNU Nutation angle: angle describing the rotation of


the coordinate system around the X axis shifted
by the precession angle

EULROT Rotation angle: angle describing the rotation of


the tilted machining plane around the tilted Z axis

HEIDENHAIN iTNC 530 465


9.5 Defining the Machining Plane
9.5 Defining the Machining Plane with Two Vectors: VECTOR PLANE
with Two Vectors:
VECTOR PLANE
Function
You can use the definition of a machining plane via two vectors if your
CAD system can calculate the base vector and normal vector of the
tilted machining plane. A normalize input is not necessary. The TNC
calculates the normal, so you can enter values between –9.9999999
and +9.9999999.
The base vector required for the definition of the machining plane is
defined by the components BX, BY and BZ (see figure at right). The
normal vector is defined by the components NX, NY and NZ.
The base vector defines the direction of the X axis in the tilted
machining plane, and the normal vector determines the direction of
the machining plane, and at the same time is perpendicular to it.

Before programming, note the following:


The TNC calculates standardized vectors from the values
you enter.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

466 9 Programming: Special Functions


9.5 Defining the Machining Plane with Two Vectors: VECTOR PLANE
Input parameters
8 X component of base vector?: X component BX of the
base vector B (see figure at top right). Input range: -
9.9999999 to +9.9999999
8 Y component of base vector?: Y component BY of the
base vector B (see figure at top right). Input range: -
9.9999999 to +9.9999999
8 Z component of base vector?: Z component BZ of the
base vector B (see figure at top right). Input range: -
9.9999999 to +9.9999999
8 X component of normal vector?: X component NX of
the normal vector N (see figure at center right). Input
range: -9.9999999 to +9.9999999
8 Y component of normal vector?: Y component NY of
the normal vector N (see figure at center right). Input
range: -9.9999999 to +9.9999999
8 Z component of normal vector?: Z component NZ of
the normal vector N (see figure at lower right). Input
range: -9.9999999 to +9.9999999
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

NC block
5 PLANE VECTOR BX0.8 BY-0.4 BZ-
0.4472 NX0.2 NY0.2 NZ0.9592 .....

Abbreviations used

Abbreviation Meaning
VECTOR Vector

BX, BY, BZ Base vector: X, Y and Z components

NX, NY, NZ Normal vector: X, Y and Z components

HEIDENHAIN iTNC 530 467


9.6 Defining the Machining Plane
9.6 Defining the Machining Plane via Three Points: POINTS PLANE
via Three Points:
POINTS PLANE
Function
A machining plane can be uniquely defined by entering any three
points P1 to P3 in this plane. This possibility is realized in the POINTS
PLANE function.

Before programming, note the following:


The connection from Point 1 to Point 2 determines the
direction of the tilted principal axis (X for tool axis Z).
The direction of the tilted tool axis is determined by the
position of Point 3 relative to the connecting line between
Point 1 and Point 2. Use the right-hand rule (thumb = X
axis, index finger = Y axis, middle finger = Z axis (see
figure at right)) to remember: thumb (X axis) points from
Point 1 to Point 2, index finger (Y axis) points parallel to the
tilted Y axis in the direction of Point 3. Then the middle
finger points in the direction of the tilted tool axis.
The three points define the slope of the plane. The
position of the active datum is not changed by the TNC.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

468 9 Programming: Special Functions


9.6 Defining the Machining Plane via Three Points: POINTS PLANE
Input parameters
8 X coordinate of 1st plane point?: X coordinate P1X
of the 1st plane point (see figure at top right).
8 Y coordinate of 1st plane point?: Y coordinate P1Y
of the 1st plane point (see figure at top right).
8 Z coordinate of 1st plane point?: Z coordinate P1Z
of the 1st plane point (see figure at top right).
8 X coordinate of 2nd plane point?: X coordinate P2X
of the 2nd plane point (see figure at center right).
8 Y coordinate of 2nd plane point?: Y coordinate P2Y
of the 2nd plane point (see figure at center right).
8 Z coordinate of 2nd plane point?: Z coordinate P2Z
of the 2nd plane point (see figure at center right).
8 X coordinate of 3rd plane point?: X coordinate P3X
of the 3rd plane point (see figure at bottom right).
8 Y coordinate of 3rd plane point?: Y coordinate P3Y
of the 3rd plane point (see figure at bottom right).
8 Z coordinate of 3rd plane point?: Z coordinate P3Z
of the 3rd plane point (see figure at bottom right).
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

NC block
5 PLANE POINTS P1X+0 P1Y+0 P1Z+20 P2X+30 P2Y+31 P2Z+20
P3X+0 P3Y+41 P3Z+32.5 .....

Abbreviations used

Abbreviation Meaning
POINTS Points

HEIDENHAIN iTNC 530 469


PLANE RELATIVE 9.7 Defining the Machining Plane
9.7 Defining the Machining Plane with a Single, Incremental Space Angle:

with a Single, Incremental


Space Angle: PLANE RELATIVE
Function
Use the incremental space angle when an already active tilted
machining plane is to be tilted by another rotation. Example:
machining a 45° chamfer on a tilted plane.

Before programming, note the following:


The defined angle always applies to the active machining
plane, no matter which function you used to activate it.
You can program any number of PLANE RELATIVE functions
in a row.
If you want to return to the machining plane that was
active before the PLANE RELATIVE function, define the
PLANE RELATIVE function again with the same angle but
with the opposite algebraic sign.
If you use the PLANE RELATIVE function on an untilted
machining plane, then you simply rotate the untilted plane
about the space angle defined in the PLANE function.
Parameter description for the positioning behavior: See
“Specifying the Positioning Behavior of the PLANE
Function,” page 472.

470 9 Programming: Special Functions


PLANE RELATIVE
9.7 Defining the Machining Plane with a Single, Incremental Space Angle:
Input parameters
8 Incremental angle?: Spatial angle about which the
active machining plane is to be rotated additionally
(see figure at right). Use a soft key to select the axis
to be rotated about. Input range: –359.9999° to
+359.9999°
8 Continue with the positioning properties (see
“Specifying the Positioning Behavior of the PLANE
Function” on page 472).

Example: NC block

5 PLANE RELATIVE SPB-45 .....

Abbreviations used

Abbreviation Meaning
RELATIVE Relative

HEIDENHAIN iTNC 530 471


9.8 Specifying the Positioning
9.8 Specifying the Positioning Behavior of the PLANE Function
Behavior of the PLANE
Function
Overview
Independently of which PLANE function you use to define the tilted
machining plane, the following functions are always available for the
positioning behavior:
„ Automatic positioning
„ Selection of alternate tilting possibilities
„ Selection of the type of transformation

472 9 Programming: Special Functions


Automatic positioning: MOVE/TURN/STAY (entry is

9.8 Specifying the Positioning Behavior of the PLANE Function


mandatory)
After you have entered all parameters for the plane definition, you
must specify how the rotary axes will be positioned to the calculated
axis values:
8 The PLANE function is to automatically position the
rotary axes to the calculated position values. The
position of the tool relative to the workpiece is to
remain the same. The TNC carries out a
compensating motion in the linear axes.
8 The PLANE function is to automatically position the
rotary axes to the calculated position values, but only
the rotary axes are positioned. The TNC does not
carry out a compensating motion in the linear axes.
8 You will position the rotary axes later in a separate
positioning block.
If you have selected the MOVE option (PLANE function is to position the
axes automatically), the following two parameters must still be
defined: Dist. tool tip – center of rot. and Feed rate? F=. If you
have selected the TURN option (PLANE function is to position the axes
automatically without any compensating movement), the following
parameter must still be defined: Feed rate? F=.

HEIDENHAIN iTNC 530 473


9.8 Specifying the Positioning Behavior of the PLANE Function 8 Dist. tool tip – center of rot. (incremental): The TNC tilts the
tool (or table) relative to the tool tip. The SETUP parameter shifts the
center of rotation of the positioning movement relative to the
current position of the tool tip.

Note:
„ If the tool is already at the given distance to the
workpiece before positioning, then relatively speaking
the tool is at the same position after positioning (see
figure at center right, 1 = SET UP). 1
„ If the tool is not at the given distance to the workpiece
before positioning, then relatively speaking the tool is 1
offset from the original position after positioning (see
figure at bottom right, 1 = SET UP).

8 Feed rate ? F=: Contour speed at which the tool should be


positioned.

474 9 Programming: Special Functions


9.8 Specifying the Positioning Behavior of the PLANE Function
Positioning the rotary axes in a separate block
Proceed as follows if you want to position the rotary axes in a separate
positioning block (option STAY selected):

Pre-position the tool to a position where there is no danger


of collision with the workpiece (clamping devices) during
positioning.

8 Select any PLANE function, and define automatic positioning with the
STAY option. During program execution the TNC calculates the
position values of the rotary axes present on the machine, and
stores them in the system parameters Q120 (A axis), Q121 (B axis)
and Q122 (C axis).
8 Define the positioning block with the angular values calculated by
the TNC.
NC example blocks: Position a machine with a C rotary table and an
A tilting table to a space angle of B+45°.

...
12 L Z+250 R0 FMAX Position at clearance height
13 PLANE SPATIAL SPA+0 SPB+45 SPC+0 STAY Define and activate the PLANE function
14 L A+Q120 C+Q122 F2000 Position the rotary axis with the values calculated by
the TNC
... Define machining in the tilted working plane

HEIDENHAIN iTNC 530 475


Selection of alternate tilting possibilities: SEQ +/
9.8 Specifying the Positioning Behavior of the PLANE Function
– (entry optional)
The position you define for the machining plane is used by the TNC to
calculate the appropriate positioning of the rotary axes present on the
machine. In general there are always two solution possibilities.
Use the SEQ switch to specify which possibility the TNC should use:
„ SEQ+ positions the master axis so that it assumes a positive angle.
The master axis is the 2nd rotary axis from the table, or the 1st axis
from the tool (depending on the machine configuration (see figure at
top right)).
„ SEQ– positions the master axis so that it assumes a negative angle.
If the solution you chose with SEQ is not within the machine’s range of
traverse, the TNC displays the Entered angle not permitted error
message.
If you do not define SEQ, the TNC determines the solution as follows:
1 The TNC first checks whether both solution possibilities are within
the traverse range of the rotary axes.
2 If they are, then the TNC selects the shortest possible solution.
3 If only one solution is within the traverse range, the TNC selects
this solution.
4 If neither solution is within the traverse range, the TNC displays
the Entered angle not permitted error message.
Example for a machine with a C rotary table and an A tilting table.
Programmed function: PLANE SPATIAL SPA+0 SPB+45 SPC+0

Starting Resulting
Limit switch SEQ
position axis position
None A+0, C+0 not prog. A+45, C+90

None A+0, C+0 + A+45, C+90

None A+0, C+0 – A–45, C–90

None A+0, C–105 not prog. A–45, C–90

None A+0, C–105 + A+45, C+90

None A+0, C–105 – A–45, C–90

–90 < A < +10 A+0, C+0 not prog. A–45, C–90

–90 < A < +10 A+0, C+0 + Error message

None A+0, C–135 + A+45, C+90

476 9 Programming: Special Functions


Selecting the type of transformation (entry

9.8 Specifying the Positioning Behavior of the PLANE Function


optional)
On machines with C-rotary tables, a function is available for specifying
the type of transformation:
8 COORD ROT specifies that the PLANE function should
only rotate the coordinate system to the defined
tilting angle. The rotary table is not moved; the
compensation is purely mathematical.
8 TABLE ROT specifies that the PLANE function should
position the rotary table to the defined tilting angle.
Compensation results from rotating the workpiece.

HEIDENHAIN iTNC 530 477


9.9 Inclined-Tool Machining in the
9.9 Inclined-Tool Machining in the Tilted Plane
Tilted Plane
Function
In combination with M128 and the new PLANE functions, inclined-tool
machining in a tilted machining plane is now possible. Two
possibilities are available for definition:
„ Inclined-tool machining via incremental traverse of a rotary axis
„ Inclined-tool machining via normal vectors

Inclined-tool machining in a tilted machining plane only


functions with spherical cutters.
With 45° swivel heads and tilting tables you can also
define the incline angle as a space angle. Use the TCPM
FUNCTION. (see “TCPM FUNCTION (Software Option 2)”
on page 480)

Inclined-tool machining via incremental traverse


of a rotary axis
8 Retract the tool
8 Activate M128
8 Define any PLANE function; consider the positioning behavior
8 Via an L block, traverse to the desired incline angle in the appropriate
axis incrementally

Example NC blocks:
...
12 L Z+50 R0 FMAX M128 Position at clearance height, activate M128
13 PLANE SPATIAL SPA+0 SPB-45 SPC+0 MOVE SET UP50 F1000 Define and activate the PLANE function
14 L IB-17 F1000 Set the incline angle
... Define machining in the tilted working plane

478 9 Programming: Special Functions


9.9 Inclined-Tool Machining in the Tilted Plane
Inclined-tool machining via normal vectors

Only one directional vector can be defined in an LN block.


This vector defines the incline angle (normal vector NX, NY,
NZ, or tool direction vector TX, TY, TZ).

8 Retract the tool


8 Activate M128
8 Define any PLANE function; consider the positioning behavior
8 Execute program with LN block in which the tool direction is defined
by a vector

Example NC blocks:
...
12 L Z+50 R0 FMAX M128 Position at clearance height, activate M128
13 PLANE SPATIAL SPA+0 SPB+45 SPC+0 MOVE SET UP50 F1000 Define and activate the PLANE function
14 LN X+31.737 Y+21.954 Z+33.165 Set the incline angle with the normal vector
NX+0.3 NY+0 NZ+0.9539 F1000 M3
... Define machining in the tilted working plane

HEIDENHAIN iTNC 530 479


9.10 TCPM FUNCTION (Software
9.10 TCPM FUNCTION (Software Option 2)
Option 2)
Function
B
The machine geometry must be entered in machine
parameters or in kinematic tables.
Z
For tilted axes with Hirth coupling: X
Only change the position of the tilted axis after retracting
the tool. Otherwise you might damage the contour. Z

Before positioning with M91 or M92 and before a TOOL CALL:


Reset TCPM FUNCTION
To avoid contour gouging you must use only spherical
cutters with TCPM FUNCTION.
X
The tool length must refer to the spherical center of the
tool tip.
If TCPM FUNCTION is active, the TNC shows the symbol
in the status display.

TCPM FUNCTION is an improvement on the M128 function, with which


you can define the behavior of the TNC when positioning the rotary
axes. In contrast to M128, with TCPM FUNCTION you can define the mode
of action of various functions:
„ Mode of action of the programmed feed rate: F TCP / F CONT
„ Interpretation if the rotary axis coordinates programmed in the NC
program: AXIS POS / AXIS SPAT
„ Type of interpolation between start and target position:
PATHCTRL AXIS / PATHCTRL VECTOR

480 9 Programming: Special Functions


9.10 TCPM FUNCTION (Software Option 2)
Mode of action of the programmed feed rate
The TNC provides two functions for defining the mode of action of the
programmed feed rate:
8 F TCP determines that the programmed feed rate is
interpreted as the actual relative velocity between the
tool point (tool center point) and the workpiece.
8 F CONT determines that the programmed feed rate is
interpreted as the contouring feed rate of the axis
programmed in the respective NC block.

Example NC blocks:
...
13 FUNCTION TCPM F TCP ... Feed rate refers to the tool point.
14 FUNCTION TCPM F CONT ... Feed rate is interpreted as the speed of the tool
along the contour
...

HEIDENHAIN iTNC 530 481


9.10 TCPM FUNCTION (Software Option 2)
Interpretation of the programmed rotary axis
coordinates
Up to now, machines with 45° swivel heads or 45° tilting tables could
not easily set the angle of inclination or a tool orientation with respect
to the currently active coordinate system (spatial angle). This function
could only be realized through specially written programs with normal
vectors (LN blocks).
The TNC now provides the following function:
8 AXIS POS determines that the TNC interprets the
programmed coordinates of rotary axes as the
nominal position of the respective axis.
8 AXIS SPAT determines that the TNC interprets the
programmed coordinates of rotary axes as the spatial
angle.

AXIS POS should only be used if your machine is equipped


with equipped with Cartesian rotary axes. With 45° swivel
heads/tilting tables, AXIS POS may also result in incorrect
axis positions.
AXIS SPAT: The rotary axis coordinates entered in the
positioning block are spatial angles that are given with
respect to the currently active (perhaps tilted) coordinate
system (incremental spatial angle).
After you switch on FUNCTION TCPM with AXIS SPAT, in the
first positioning block you should always program all three
spatial angles in the inclination angle definition. This also
applies if one or more spatial angles are 0°.

Example NC blocks:
...
13 FUNCTION TCPM F TCP AXIS POS ... Rotary axis coordinates are axis angle
...
18 FUNCTION TCPM F TCP AXIS SPAT ... Rotary axis coordinates are spatial angle
20 L A+0 B+45 C+0 F MAX Set tool orientation to B+45 degrees (spatial angle).
Define spatial angle A and C with 0.
...

482 9 Programming: Special Functions


9.10 TCPM FUNCTION (Software Option 2)
Interpolation type between the starting and end
position
The TNC provides two functions for defining the type of interpolation
between the starting and end position:
8 PATHCTRL AXIS determines that the tool point between
the starting and end position of the respective NC
block moves on a straight line (Face Milling). The
direction of the tool axis at the starting and end
position corresponds to the respective programmed
values, but the tool circumference does not describe
a defined path between starting and end position. The
surface produced by milling with the tool
circumference (Peripheral Milling), depends on the
machine geometry.
8 PATHCTRL VECTOR determines that the tool point
between the starting and end position of the
respective NC block moves on a straight line and also
that the direction of the tool axis between starting and
end position is interpolated so that a plane results
from machining at the tool circumference (Peripheral
Milling)

With PATHCTRL VECTOR, remember:


Any defined tool orientation is generally accessible
through two different tilting angle positions. The TNC uses
the solution over the shortest available path—starting
from the current position. Therefore, with 5-axis
machining it may happen that the TNC moves in the rotary
axes to end positions that are not programmed.
To attain the most continuous multiaxis movement
possible, define Cycle 32 with a Tolerance for rotary
axes (see “TOLERANCE (Cycle 32, software option 2)” on
page 451). The tolerance of the rotary axes should be
about the same as the tolerance of the contouring
deviation that is also defined in Cycle 32. The greater the
tolerance for the rotary axes is defined, the greater are the
contour deviations during peripheral milling.

Example NC blocks:
...
13 FUNCTION TCPM F TCP AXIS SPAT PATHCTRL AXIS Tool tip moves along a straight line
14 FUNCTION TCPM F TCP AXIS POS PATHCTRL VECTOR Tool tip and tool directional vector move in one plane
...

HEIDENHAIN iTNC 530 483


9.10 TCPM FUNCTION (Software Option 2)
Reset FUNCION TCPM
8 FUNCTION RESET TCPM is to be used if you want to
purposely reset the function within a program .

Example NC block:
...
25 FUNCTION RESET TCPM Reset FUNCION TCPM
...

The TNC automatically resets FUNCTION TCPM if you select


a new program in a program run mode.
You can reset the TCPM FUNCTION only if the PLANE function
is inactive. If required, run PLANE RESET before
FUNCTION RESET TCPM.

484 9 Programming: Special Functions


9.11 Generate Backward Program

9.11 Generate Backward Program


Function
With this TNC function you can reverse the machining direction of a
contour.

If you wish to generate a backward program, select the


PROGRAM + GRAPHICS screen layout ((see
“Programming and editing” on page 43)).
Note that the TNC may need many times more free
memory space on the hard disk than the size of the
program file to be converted.

8 3. Select the soft-key row.

8 Select the soft-key row with functions for converting


programs.
8 Generate Forward and Backward Program

The name of the file created by the TNC consists of the


old file name and the extension _rev. Example:
„ File name of the program whose machining direction is
to be reversed: CONT1.H
„ File name of the backwardprogram to be generated by
the TNC: CONT1_rev.h
To be able to generate a backward program, the TNC
must first generate a linearized forward program, i.e. a
program in which all contour elements are resolved. This
program is also executable and has the file name
extension _fwd.h.

HEIDENHAIN iTNC 530 485


9.11 Generate Backward Program
Prerequisites for the program to be converted
The TNC reverses the sequence of all positioning blocks in the
program. The following functions are not taken into the backward
program.
„ Define the workpiece blank
„ Tool calls
„ Coordinate transformation cycles
„ Fixed cycles and probing cycles
„ Cycle calls CYCL CALL, CYCL CALL PAT, CYCL CALL POS
„ Miscellaneous (M) functions
HEIDENHAIN therefore recommends converting only programs
containing a pure contour description. All path functions available on
the TNC are permitted, including FK blocks. RND and CHF blocks are
moved by the TNC so that they can be executed again at the correct
position on the contour.
The TNC also calculates the radius compensation for the other
direction.

If the program included contour approach and departure


functions (APPR/DEP/RND), check the backward program
with the programming graphics. Certain geometric
conditions might result in incorrect contours.

486 9 Programming: Special Functions


Application example

9.11 Generate Backward Program


The contour CONT1.H is to be milled in several infeeds. The TNC
generates the forward file CONT1_fwd.h and the backward file
CONT1_rev.h.

NC blocks
...
5 TOOL CALL 12 Z S6000 Tool call
6 L Z+100 R0 FMAX Retract in the tool axis
7 L X-15 Y-15 R0 F MAX M3 Pre-position in the plane, spindle on
8 L Z+0 R0 F MAX Approach the starting point in the tool axis
9 LBL 1 Set a mark
10 L IZ-2.5 F1000 Infeed depth in incremental values
11 CALL PGM CONT1_FWD.H Call the forward program
12 L IZ-2.5 F1000 Infeed depth in incremental values
13 CALL PGM CONT1_FWD.H Call backward program
14 CALL LBL 1 REP3 Repeat pgm part three times starting with block 9
15 L Z+100 R0 F MAX M2 Retract tool, end of program

HEIDENHAIN iTNC 530 487


Programming:
Subprograms and Program
Section Repeats
10.1 Labeling Subprograms and
10.1 Labeling Subprograms and Program Section Repeats
Program Section Repeats
Subprograms and program section repeats enable you to program a
machining sequence once and then run it as often as desired.

Labels
The beginnings of subprograms and program section repeats are
marked in a part program by labels.
A label is identified by a number between 1 and 254. Each label can be
set only once with LABEL SET in a program.

If a label is set more than once, the TNC sends an error


message at the end of the LBL SET block. With very long
programs, you can limit the number of blocks to be
checked for repeated labels with MP7229.

LABEL 0 (LBL 0) is used exclusively to mark the end of a subprogram


and can therefore be used as often as desired.

490 10 Programming: Subprograms and Program Section Repeats


10.2 Subprograms

10.2 Subprograms
Operating sequence
1 The TNC executes the part program up to the block in which a
subprogram is called with CALL LBL. 0 BEGIN PGM ...
2 The subprogram is then executed from beginning to end. The
subprogram end is marked LBL 0.
3 The TNC then resumes the part program from the block after the CALL LBL1
subprogram call.

Programming notes L Z+100 M2


„ A main program can contain up to 254 subprograms.
LBL1
„ You can call subprograms in any sequence and as often as desired.
„ A subprogram cannot call itself.
„ Write subprograms at the end of the main program (behind the block LBL0
with M2 or M30). END PGM ...
„ If subprograms are located before the block with M02 or M30, they
will be executed at least once even if they are not called.

Programming a subprogram
8 To mark the beginning, press the LBL SET key.
8 Enter the subprogram number.
8 To mark the end, press the LBL SET key and enter the
label number “0”.

Calling a subprogram
8 To call a subprogram, press the LBL CALL key.
8 Label number: Enter the label number of the
subprogram you wish to call.
8 Repeat REP: Ignore the dialog question with the NO
ENT key. Repeat REP is used only for program
section repeats.

CALL LBL 0 is not permitted (Label 0 is only used to mark


the end of a subprogram).

HEIDENHAIN iTNC 530 491


10.3 Program Section Repeats
10.3 Program Section Repeats

Label LBL
The beginning of a program section repeat is marked by the label LBL.
The end of a program section repeat is identified by CALL LBL /REP. 0 BEGIN PGM ...

Operating sequence
LBL1
1 The TNC executes the part program up to the end of the program
section (CALL LBL /REP).
2 Then the program section between the called LBL and the label
call is repeated the number of times entered after REP. CALL LBL 2
3 The TNC then resumes the part program after the last repetition.

Programming notes END PGM ...

„ You can repeat a program section up to 65 534 times in succession.


„ The total number of times the program section is executed is always
one more than the programmed number of repeats.

Programming a program section repeat


8 To mark the beginning, press the LBL SET key and
enter a LABEL NUMBER for the program section you
wish to repeat.
8 Enter the program section.

Calling a program section repeat


8 Press the LBL CALL key and enter the label number of
the program section you want to repeat as well as the
number of repeats (with Repeat REP).

492 10 Programming: Subprograms and Program Section Repeats


10.4 Separate Program as

10.4 Separate Program as Subprogram


Subprogram
Operating sequence
1 The TNC executes the part program up to the block in which
another program is called with CALL PGM.
2 Then the other program is run from beginning to end.
0 BEGIN PGM A 0 BEGIN PGM B
3 The TNC then resumes the first (calling) part program with the
block behind the program call.

Programming notes CALL PGM B

„ No labels are needed to call any program as a subprogram.


„ The called program must not contain the miscellaneous functions END PGM A END PGM B
M2 or M30.
„ The called program must not contain a CALL PGM call into the calling
program, otherwise an infinite loop will result.

HEIDENHAIN iTNC 530 493


10.4 Separate Program as Subprogram
Calling any program as a subprogram
8 To select the functions for program call, press the
PGM CALL key.
8 Press the PROGRAM soft key.
8 Enter the complete path name of the program you
want to call and confirm your entry with the END key.

The program you are calling must be stored on the hard


disk of your TNC.
You need only enter the program name if the program you
want to call is located in the same directory as the program
you are calling it from.
If the called program is not located in the same directory
as the program you are calling it from, you must enter the
complete path, e.g. TNC:\ZW35\SCHRUPP\PGM1.H
If you want to call an ISO program, enter the file type .I
after the program name.
You can also call a program with CYCLE 12 PGM CALL.
As a rule, Q parameters are effective globally with a PGM
CALL. So please note that changes to Q parameters in the
called program can also influence the calling program.

494 10 Programming: Subprograms and Program Section Repeats


10.5 Nesting

10.5 Nesting
Types of nesting
„ Subprograms within a subprogram
„ Program section repeats within a program section repeat
„ Subprograms repeated
„ Program section repeats within a subprogram

Nesting depth
The nesting depth is the number of successive levels in which
program sections or subprograms can call further program sections or
subprograms.
„ Maximum nesting depth for subprograms: 8
„ Maximum nesting depth for main program calls: 6, where a CYCL
CALL acts like a main program call.
„ You can nest program section repeats as often as desired.

Subprogram within a subprogram


Example NC blocks
0 BEGIN PGM UPGMS MM
...
17 CALL LBL 1 Call the subprogram marked with LBL 1
...
35 L Z+100 R0 FMAX M2 Last program block of the
main program (with M2)
36 LBL 1 Beginning of subprogram 1
...
39 CALL LBL 2 Call the subprogram marked with LBL 2
...
45 LBL 0 End of subprogram 1
46 LBL 2 Beginning of subprogram 2
...
62 LBL 0 End of subprogram 2
63 END PGM UPGMS MM

HEIDENHAIN iTNC 530 495


10.5 Nesting Program execution
1 Main program SUBPGMS is executed up to block 17.
2 Subprogram 1 is called, and executed up to block 39.
3 Subprogram 2 is called, and executed up to block 62. End of
subprogram 2 and return jump to the subprogram from which it
was called.
4 Subprogram 1 is executed from block 40 up to block 45. End of
subprogram 1 and return jump to the main program SUBPGMS.
5 Main program SUBPGMS is executed from block 18 up to block
35. Return jump to block 1 and end of program.

Repeating program section repeats


Example NC blocks
0 BEGIN PGM REPS MM
...
15 LBL 1 Beginning of program section repeat 1
...
20 LBL 2 Beginning of program section repeat 2
...
27 CALL LBL 2 REP 2/2 The program section between this block and LBL 2
... (block 20) is repeated twice
35 CALL LBL 1 REP 1/1 The program section between this block and LBL 1
... (block 15) is repeated once
50 END PGM REPS MM

Program execution
1 Main program REPS is executed up to block 27.
2 Program section between block 27 and block 20 is repeated twice.
3 Main program REPS is executed from block 28 to block 35.
4 Program section between block 35 and block 15 is repeated once
(including the program section repeat between 20 and block 27).
5 Main program REPS is executed from block 36 to block 50 (end of
program).

496 10 Programming: Subprograms and Program Section Repeats


10.5 Nesting
Repeating a subprogram
Example NC blocks
0 BEGIN PGM UPGREP MM
...
10 LBL 1 Beginning of program section repeat 1
11 CALL LBL 2 Subprogram call.
12 CALL LBL 1 REP 2/2 The program section between this block and LBL1
... (block 10) is repeated twice
19 L Z+100 R0 FMAX M2 Last block of the main program with M2
20 LBL 2 Beginning of subprogram
...
28 LBL 0 End of subprogram
29 END PGM UPGREP MM

Program execution
1 Main program SUBPGREP is executed up to block 11.
2 Subprogram 2 is called and executed.
3 Program section between block 12 and block 10 is repeated twice.
Subprogram 2 is repeated twice.
4 Main program SUBPGREP is executed from block 13 to block 19.
End of program.

HEIDENHAIN iTNC 530 497


10.6 Programming Examples
Example: Milling a contour in several infeeds

Program sequence
„ Pre-position the tool to the workpiece surface
„ Enter the infeed depth in incremental values Y
„ Contour milling 100
„ Repeat downfeed and contour-milling

R1
5
75

R18
30
R15
20

X
20 50 75 100

0 BEGIN PGM PGMWDH 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 TOOL DEF 1 L+0 R+10 Define the tool
4 TOOL CALL 1 Z S500 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 L X-20 Y+30 R0 FMAX Pre-position in the working plane
7 L Z+0 R0 FMAX M3 Pre-position to the workpiece surface

498 10 Programming: Subprograms and Program Section Repeats


10.6 Programming Examples
8 LBL 1 Set label for program section repeat
9 L IZ-4 R0 FMAX Infeed depth in incremental values (in space)
10 APPR CT X+2 Y+30 CCA90 R+5 RL F250 Approach contour
11 FC DR- R18 CLSD+ CCX+20 CCY+30 Contour
12 FLT
13 FCT DR- R15 CCX+50 CCY+75
14 FLT
15 FCT DR- R15 CCX+75 CCY+20
16 FLT
17 FCT DR- R18 CLSD- CCX+20 CCY+30
18 DEP CT CCA90 R+5 F1000 Depart contour
19 L X-20 Y+0 R0 FMAX Retract tool
20 CALL LBL 1 REP 4/4 Return jump to LBL 1; section is repeated a total of 4 times.
21 L Z+250 R0 FMAX M2 Retract in the tool axis, end program
22 END PGM PGMWDH MM

HEIDENHAIN iTNC 530 499


10.6 Programming Examples
Example: Groups of holes

Program sequence
„ Approach the groups of holes in the main
program Y
„ Call the group of holes (subprogram 1)
100
„ Program the group of holes only once in
subprogram 1

21
60

5
20

20
1 31
10

X
15 45 75 100

0 BEGIN PGM UP1 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+2.5 Define the tool
4 TOOL CALL 1 Z S5000 Tool call
5 L Z+250 R0 FMAX Retract the tool
6 CYCL DEF 200 DRILLING Cycle definition: drilling
Q200=2 ;SET-UP CLEARANCE
Q201=-10 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q202=5 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE
Q204=10 ;2ND SET-UP CLEARANCE
Q211=0.25 ;DWELL TIME AT DEPTH

500 10 Programming: Subprograms and Program Section Repeats


10.6 Programming Examples
7 L X+15 Y+10 R0 FMAX M3 Move to starting point for group 1
8 CALL LBL 1 Call the subprogram for the group
9 L X+45 Y+60 R0 FMAX Move to starting point for group 2
10 CALL LBL 1 Call the subprogram for the group
11 L X+75 Y+10 R0 FMAX Move to starting point for group 3
12 CALL LBL 1 Call the subprogram for the group
13 L Z+250 R0 FMAX M2 End of main program
14 LBL 1 Beginning of subprogram 1: Group of holes
15 CYCL CALL Hole 1
16 L IX.20 R0 FMAX M99 Move to 2nd hole, call cycle
17 L IY+20 R0 FMAX M99 Move to 3rd hole, call cycle
18 L IX-20 R0 FMAX M99 Move to 4th hole, call cycle
19 LBL 0 End of subprogram 1
20 END PGM UP1 MM

HEIDENHAIN iTNC 530 501


10.6 Programming Examples
Example: Group of holes with several tools

Program sequence
„ Program the fixed cycles in the main program Y Y
„ Call the entire hole pattern (subprogram 1)
„ Approach the groups of holes in subprogram 1, 100
call group of holes (subprogram 2)
„ Program the group of holes only once in
subprogram 2 21
60

5
20

20
1 31
10

X Z
15 45 75 100 -15

-20

0 BEGIN PGM UP2 MM


1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+4 Define tool: center drill
4 TOOL DEF 2 L+0 R+3 Define tool: drill
5 TOOL DEF 2 L+0 R+3.5 Define tool: reamer
6 TOOL CALL 1 Z S5000 Call tool: center drill
7 L Z+250 R0 FMAX Retract the tool
8 CYCL DEF 200 DRILLING Cycle definition: Centering
Q200=2 ;SET-UP CLEARANCE
Q202=-3 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q202=3 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE
Q204=10 ;2ND SET-UP CLEARANCE
Q211=0.25 ;DWELL TIME AT DEPTH
9 CALL LBL 1 Call subprogram 1 for the entire hole pattern

502 10 Programming: Subprograms and Program Section Repeats


10.6 Programming Examples
10 L Z+250 R0 FMAX M6 Tool change
11 TOOL CALL 2 Z S4000 Call toll: drill
12 FN 0: Q201 = -25 New depth for drilling
13 FN 0: Q202 = +5 New plunging depth for drilling
14 CALL LBL 1 Call subprogram 1 for the entire hole pattern
15 L Z+250 R0 FMAX M6 Tool change
16 TOOL CALL 3 Z S500 Call tool: reamer
17 CYCL DEF 201 REAMING Cycle definition: REAMING
Q200=2 ;SET-UP CLEARANCE
Q201=-15 ;DEPTH
Q206=250 ;FEED RATE FOR PLNGNG
Q211=0.5 ;DWELL TIME AT DEPTH
Q208=400 ;RETRACTION FEED RATE
Q203=+0 ;SURFACE COORDINATE
Q204=10 ;2ND SET-UP CLEARANCE
18 CALL LBL 1 Call subprogram 1 for the entire hole pattern
19 L Z+250 R0 FMAX M2 End of main program

20 LBL 1 Beginning of subprogram 1: Entire hole pattern


21 L X+15 Y+10 R0 FMAX M3 Move to starting point for group 1
22 CALL LBL 2 Call subprogram 2 for the group
23 L X+45 Y+60 R0 FMAX Move to starting point for group 2
24 CALL LBL 2 Call subprogram 2 for the group
25 L X+75 Y+10 R0 FMAX Move to starting point for group 3
26 CALL LBL 2 Call subprogram 2 for the group
27 LBL 0 End of subprogram 1

28 LBL 2 Beginning of subprogram 2: Group of holes


29 CYCL CALL 1st hole with active fixed cycle
30 L 9X+20 R0 FMAX M99 Move to 2nd hole, call cycle
31 L IY+20 R0 FMAX M99 Move to 3rd hole, call cycle
32 L IX-20 R0 FMAX M99 Move to 4th hole, call cycle
33 LBL 0 End of subprogram 2
34 END PGM UP2 MM

HEIDENHAIN iTNC 530 503


Programming: Q Parameters
11.1 Principle and Overview
11.1 Principle and Overview

You can program an entire family of parts in a single part program. You
do this by entering variables called Q parameters instead of fixed
numerical values.
Q parameters can represent information such as:
Q6
„ Coordinate values
„ Feed rates
Q1 Q3
„ Spindle speeds
„ Cycle data Q4
Q2
Q parameters also enable you to program contours that are defined
with mathematical functions. You can also use Q parameters to make
Q5
the execution of machining steps depend on logical conditions. In
conjunction with FK programming you can also combine contours that
do not have NC-compatible dimensions with Q parameters.
Q parameters are designated by the letter Q and a number between 0
and 399. They are grouped according to three ranges:

Meaning Range
Freely applicable parameters, globally effective Q0 to Q99
for all programs stored in the TNC memory

Parameters for special TNC functions Q100 to Q199

Parameters that are primarily used for cycles, Q200 to Q399


globally effective for all programs that are stored
in the TNC memory

Programming notes
You can mix Q parameters and fixed numerical values within a
program.
Q parameters can be assigned numerical values between –
99 999.9999 and +99 999.9999. Internally, the TNC can calculate up to
a width of 57 bits before and 7 bits after the decimal point (32-bit data
width corresponds to a decimal value of 4 294 967 296).

Some Q parameters are always assigned the same data by


the TNC. For example, Q108 is always assigned the
current tool radius (see “Preassigned Q Parameters” on
page 540).
If you are using the parameters Q60 to Q99 in encoded
OEM cycles, define via MP7251 whether the parameters
are only to be used locally in the OEM cycles (.CYC file), or
may be used globally.

506 11 Programming: Q Parameters


11.1 Principle and Overview
Calling Q parameter functions
When you are writing a part program, press the “Q” key (in the
numeric keypad for numerical input and axis selection, below the +/–
key). The TNC then displays the following soft keys:

Function group Soft key


Basic arithmetic (assign, add, subtract, multiply,
divide, square root)

Trigonometric functions

Function for calculating circles

If/then conditions, jumps

Other functions

Entering formulas directly

Function for machining complex contours

HEIDENHAIN iTNC 530 507


11.2 Part Families—Q Parameters in Place of Numerical Values
11.2 Part Families—Q Parameters in
Place of Numerical Values
The Q parameter function FN0: ASSIGN assigns numerical values to
Q parameters. This enables you to use variables in the program
instead of fixed numerical values.

Example NC blocks
15 FNO: Q10=25 Assign
... Q10 contains the value 25
25 L X +Q10 Means L X +25

You need write only one program for a whole family of parts, entering
the characteristic dimensions as Q parameters.
To program a particular part, you then assign the appropriate values to
the individual Q parameters.

Example
Cylinder with Q parameters
Cylinder radius R = Q1
Cylinder height H = Q2 Q1
Cylinder Z1 Q1 = +30
Q2 = +10
Cylinder Z2 Q1 = +10
Q2 = +50 Q1

Q2 Z2

Q2
Z1

508 11 Programming: Q Parameters


11.3 Describing Contours through

11.3 Describing Contours through Mathematical Operations


Mathematical Operations
Function
The Q parameters listed below enable you to program basic
mathematical functions in a part program:
8 Select a Q parameter function: Press the Q key (in the numerical
keypad at right). The Q parameter functions are displayed in a soft-
key row.
8 To select the mathematical functions: Press the BASIC
ARITHMETIC soft key. The TNC then displays the following soft
keys:

Overview

Function Soft key


FN0: ASSIGN
Example: FN0: Q5 = +60
Assigns a numerical value.

FN1: ADDITION
Example: FN1: Q1 = –Q2 + –5
Calculates and assigns the sum of two values.

FN2: SUBTRACTION
Example: FN2: Q1 = +10 – +5
Calculate and assign the difference of two values

FN3: MULTIPLICATION
Example: FN3: Q2 = +3 * +3
Calculate and assign the product of two values

FN4: DIVISION
Example: FN4: Q4 = +8 DIV +Q2
Calculates and assigns the quotient of two values.
Not permitted: Division by 0

FN5: SQUARE ROOT


Example: FN5: Q20 = SQRT 4
Calculates and assigns the square root of a number.
Not permitted: Square root of a negative number

To the right of the “=” character you can enter the following:
„ Two numbers
„ Two Q parameters
„ A number and a Q parameter
The Q parameters and numerical values in the equations can be
entered with positive or negative signs.

HEIDENHAIN iTNC 530 509


11.3 Describing Contours through Mathematical Operations
Programming fundamental operations
Example: Example: Program blocks in the TNC

16 FN0: Q5 = +10
Call the Q parameter functions by pressing the Q key.
17 FN3: Q12 = +Q5 * +7

To select the mathematical functions: Press the


BASIC ARITHMETIC soft key.

To select the Q parameter function ASSIGN, press


the FN0 X = Y soft key.

PARAMETER NO. FOR RESULT?

5 Enter the number of the Q parameter, e.g. 5.

1ST VALUE OR PARAMETER?

10 Assign the value 10 to Q5.

Call the Q parameter functions by pressing the Q key.

To select the mathematical functions: Press the


BASIC ARITHMETIC soft key.

To select the Q parameter function


MULTIPLICATION, press the FN3 X * Y soft key.

PARAMETER NO. FOR RESULT?

12 Enter the number of the Q parameter, e.g. 12.

1ST VALUE OR PARAMETER?

Q5 Enter Q5 for the first value.

2ND VALUE OR PARAMETER?

7 Enter 7 for the second value.

510 11 Programming: Q Parameters


11.4 Trigonometric Functions

11.4 Trigonometric Functions


Definitions
Sine, cosine and tangent are terms designating the ratios of sides of
right triangles. In this case:
Sine: sin α = a / c
Cosine: cos α = b / c
Tangent: tan α = a / b = sin α / cos α
c
where a

„ c is the side opposite the right angle


α
„ a is the side opposite the angle α
b
„ b is the third side.
The TNC can find the angle from the tangent:
α = arc tan (a / b) = arc tan (sin α / cos α)

Example:
a = 25 mm
b = 50 mm
α = arc tan (a / b) = arc tan 0.5 = 26.57°
Furthermore:
a² + b² = c² (where a² = a x a)
c = (a² + b²)

HEIDENHAIN iTNC 530 511


11.4 Trigonometric Functions
Programming trigonometric functions
Press the TRIGONOMETRY soft key to call the trigonometric
functions. The TNC then displays the soft keys that are listed in the
table below.
Programming: Compare “Example: Programming fundamental
operations.”

Function Soft key


FN6: SINE
Example: FN6: Q20 = SIN–Q5
Calculate the sine of an angle in degrees (°) and
assign it to a parameter.

FN7: COSINE
Example: FN7: Q21 = COS–Q5
Calculate the cosine of an angle in degrees (°) and
assign it to a parameter.

FN8: ROOT SUM OF SQUARES


Example: FN8: Q10 = +5 LEN +4
Calculate and assign length from two values.

FN13: ANGLE
Example: FN13: Q20 = +25 ANG–Q1
Calculate the angle from the arc tangent of two sides
or from the sine and cosine of the angle (0 < angle <
360°) and assign it to a parameter.

512 11 Programming: Q Parameters


11.5 Calculating Circles

11.5 Calculating Circles


Function
The TNC can use the functions for calculating circles to calculate the
circle center and the circle radius from three or four given points on the
circle. The calculation is more accurate if four points are used.
Application: These functions can be used if you wish to determine the
location and size of a bore hole or a pitch circle using the
programmable probing function.

Function Soft key


FN23: Determining the CIRCLE DATA from three
points
Example: FN23: Q20 = CDATA Q30

The coordinate pairs for three points of the circle must be stored in
Parameter Q30 and in the following five parameters, i.e. to Q35.
The TNC then stores the circle center of the reference axis (X with
spindle axis Z) in Parameter Q20, the circle center of the minor axis (Y
with spindle axis Z) in Parameter Q21 and the circle radius in
Parameter Q22.

Function Soft key


FN24: Determining the CIRCLE DATA from four
points
Example: FN24: Q20 = CDATA Q30

The coordinate pairs for four points of the circle must be stored in
Parameter Q30 and in the following seven parameters, i.e. to Q37.
The TNC then stores the circle center of the reference axis (X with
spindle axis Z) in Parameter Q20, the circle center of the minor axis (Y
with spindle axis Z) in Parameter Q21 and the circle radius in
Parameter Q22.

Note that FN23 and FN24 automatically overwrite the


resulting parameter and the two following parameters.

HEIDENHAIN iTNC 530 513


11.6 If-Then Decisions with
11.6 If-Then Decisions with Q Parameters
Q Parameters
Function
The TNC can make logical If-Then decisions by comparing a Q
parameter with another Q parameter or with a numerical value. If the
condition is fulfilled, the TNC continues the program at the label that
is programmed after the condition (for information on labels, see
“Labeling Subprograms and Program Section Repeats” on page 490).
If it is not fulfilled, the TNC continues with the next block.
To call another program as a subprogram, enter PGM CALL after the
block with the target label.

Unconditional jumps
An unconditional jump is programmed by entering a conditional jump
whose condition is always true. Example:
FN9: IF+10 EQU+10 GOTO LBL1

Programming If-Then decisions


Press the JUMP soft key to call the If-Then conditions. The TNC then
displays the following soft keys:

Function Soft key


FN9: IF EQUAL, JUMP
Example: FN9: IF +Q1 EQU +Q3 GOTO LBL 5
If the two values or parameters are equal, jump to the
given label.

FN10: IF NOT EQUAL, JUMP


Example: FN10: IF +10 NE –Q5 GOTO LBL 10
If the two values or parameters are not equal, jump to
the given label.

FN11: IF GREATER THAN, JUMP


Example: FN11: IF+Q1 GT+10 GOTO LBL 5
If the first parameter or value is greater than the
second value or parameter, jump to the given label.

FN12: IF LESS THAN, JUMP


Example: FN12: IF+Q5 LT+0 GOTO LBL 1
If the first value or parameter is less than the second
value or parameter, jump to the given label.

514 11 Programming: Q Parameters


11.6 If-Then Decisions with Q Parameters
Abbreviations used:
IF : If
EQU : Equals
NE : Not equal
GT : Greater than
LT : Less than
GOTO : Go to

HEIDENHAIN iTNC 530 515


11.7 Checking and Changing
11.7 Checking and Changing Q Parameters
Q Parameters
Procedure
You can check and edit Q parameters when writing, testing and
running programs in the Programming and Editing, Test Run, Program
Run Full Sequence, and Program Run Single Block modes.
8 If you are in a program run, interrupt it if required (for example, by
pressing the machine STOP button and the INTERNAL STOP soft
key). If you are in a test run, interrupt it.
8 To call Q parameter functions: Press the Q key or the
Q INFO soft key in the Programming and Editing
mode of operation.
8 The TNC lists all parameters and their current values.
With the arrow keys or the soft keys, go pagewise to
the desired parameters.
8 If you would like to change the value, enter a new
value and confirm with the ENT key.
8 To leave the value unchanged, press the PRESENT
VALUE soft key or end the dialog with the END key.

The parameters (parameter numbers > 100) used by the


TNC are provided with comments.

516 11 Programming: Q Parameters


11.8 Additional Functions

11.8 Additional Functions


Overview
Press the DIVERSE FUNCTION soft key to call the additional
functions. The TNC then displays the following soft keys:

Function Soft key


FN14:ERROR
Output error messages

FN15:PRINT
Unformatted output of texts or Q parameter values

FN16:F-PRINT
Formatted output of texts or Q parameter values

FN18:SYS-DATUM READ
Read system data

FN19:PLC
Transfer values to the PLC

FN20:WAIT FOR
Synchronize NC and PLC

FN25:PRESET
Set datum during program run

FN26:TABOPEN
Open a freely definable table

FN27:TABWRITE
Write to a freely definable table

FN28:TABREAD
Read from a freely definable table

HEIDENHAIN iTNC 530 517


11.8 Additional Functions
FN14: ERROR: Displaying error messages
With the function FN14: ERROR you can call messages under Error number Text
program control. The messages were programmed by the machine 1000 Spindle?
tool builder or by HEIDENHAIN. Whenever the TNC comes to a block
with FN 14 in the Program Run or Test Run mode, it interrupts the 1001 Tool axis is missing
program run and displays a message. The program must then be 1002 Tool radius too small
restarted. The error numbers are listed in the table below. 1003 Tool radius too large
1004 Range exceeded
Range of error numbers Standard dialog text
1005 Start position incorrect
0 ... 299 FN 14: Error code 0 .... 299 1006 ROTATION not permitted
1007 SCALING FACTOR not
300 ... 999 Machine-dependent dialog
permitted
1000 ... 1099 Internal error messages (see table 1008 MIRRORING not permitted
at right) 1009 Datum shift not permitted
1010 Feed rate is missing
Example NC block 1011 Entry value incorrect
The TNC is to display the text stored under error number 254. 1012 Wrong sign programmed
1013 Entered angle not permitted
180 FN14: ERROR = 254 1014 Touch point inaccessible
1015 Too many points
1016 Contradictory entry
1017 CYCL incomplete
1018 Plane wrongly defined
1019 Wrong axis programmed
1020 Wrong RPM
1021 Radius comp. undefined
1022 Rounding-off undefined
1023 Rounding radius too large
1024 Program start undefined
1025 Excessive subprogramming
1026 Angle reference missing
1027 No fixed cycle defined
1028 Slot width too small
1029 Pocket too small
1030 Q202 not defined
1031 Q205 not defined
1032 Enter Q218 greater than Q219
1033 CYCL 210 not permitted
1034 CYCL 211 not permitted
1035 Q220 too large
1036 Enter Q222 greater than Q223
1037 Q244 must be greater than 0
1038 Q245 must not equal Q246
1039 Angle range must be < 360°
1040 Enter Q223 greater than Q222
1041 Q214: 0 not permitted

518 11 Programming: Q Parameters


11.8 Additional Functions
Error number Text
1042 Traverse direction not defined
1043 No datum table active
1044 Position error: center in axis 1
1045 Position error: center in axis 2
1046 Hole diameter too small
1047 Hole diameter too large
1048 Stud diameter too small
1049 Stud diameter too large
1050 Pocket too small: rework axis 1
1051 Pocket too small: rework axis 2
1052 Pocket too large: scrap axis 1
1053 Pocket too large: scrap axis 2
1054 Stud too small: scrap axis 1
1055 Stud too small: scrap axis 2
1056 Stud too large: rework axis 1
1057 Stud too large: rework axis 2
1058 TCHPROBE 425: length exceeds max
1059 TCHPROBE 425: length below min
1060 TCHPROBE 426: length exceeds max
1061 TCHPROBE 426: length below min
1062 TCHPROBE 430: diameter too large
1063 TCHPROBE 430: diameter too small
1064 No measuring axis defined
1065 Tool breakage tolerance exceeded
1066 Enter Q247 unequal 0
1067 Enter Q247 greater than 5
1068 Datum table?
1069 Enter direction Q351 unequal 0
1070 Thread depth too large
1071 Missing calibration data
1072 Tolerance exceeded
1073 Block scan active
1074 ORIENTATION not permitted
1075 3-D ROT not permitted
1076 Activate 3-D ROT
1077 Enter depth as a negative value
1078 Q303 not defined in measuring cycle
1079 Tool axis not allowed
1080 Calculated values incorrect
1081 Contradictory measuring points
1082 Clearance height entered incorrectly
1083 Contradictory type of plunging
1084 Machining cycle not permitted
1085 Line is write-protected

HEIDENHAIN iTNC 530 519


11.8 Additional Functions
FN15: PRINT: Output of texts or Q parameter
values

Setting the data interface: In the menu option PRINT or


PRINT-TEST, you must enter the path for storing the texts
or Q parameters. See “Assign,” page 582.
FN15 cannot transfer data over the Ethernet interface.

The function FN15: PRINT transfers Q parameter values and error


messages through the data interface, for example to a printer. When
you save the data in the TNC memory or transfer them to a PC, the
TNC stores the data in the file %FN 15RUN.A (output in program run
mode) or in the file %FN15SIM.A (output in test run mode).
The data are transmitted from a buffer. Data output begins at the latest
by program end or when you stop the program. In the Single Block
mode of operation, data transfer begins at block end.

To output dialog texts and error messages with FN15: PRINT


“numerical value”
Numerical values from 0 to 99: Dialog texts for OEM cycles
Numerical values exceeding 100: PLC Error Messages
Example: Output of dialog text 20

67 FN15: PRINT 20

Outputting dialog texts and Q parameters with FN15: PRINT


“Q parameter”
Application example: Recording workpiece measurement.
You can transfer up to six Q parameters and numerical values
simultaneously. The TNC separates them with slashes.
Example: Output of dialog text 1 and numerical value for Q1

70 FN15: PRINT1/Q1

520 11 Programming: Q Parameters


11.8 Additional Functions
FN16: F-PRINT: Formatted output of texts or Q
parameter values

Setting the data interface: In the menu option PRINT or


PRINT-TEST, you must enter the path for storing the text
file. See “Assign,” page 582.
FN16 cannot transfer data over the Ethernet interface.
With FN16, you can also output to the screen any
messages from the NC program. Such messages are
displayed by the TNC in a pop-up window.

The function FN16: F-PRINT transfers Q parameter values and texts in


a selectable format through the data interface, for example to a printer.
If you save the values internally or send them to a computer, the TNC
saves the data in the file that you defined in the FN 16 block.
To output the formatted texts and Q parameter values, create a text
file with the TNC’s text editor. In this file you then define the output
format and Q parameters you want to output.
Example of a text file to define the output format:
“TEST RECORD IMPELLER CENTER OF GRAVITY”;
“DATE: %02.2d-%02.2d-%4d“,DAY,MONTH,YEAR4;
“TIME: %2d:%02.2d:%02.2d“,HOUR,MIN,SEC;“
“————————————————————————“
“NO. OF MEASURED VALUES : = 1”;
“*******************************************“;#
“X1 = %9.3LF”, Q31;
“Y1 = %9.3LF”, Q32;
“Z1 = %9.3LF”, Q33;
“******************************************“;

HEIDENHAIN iTNC 530 521


11.8 Additional Functions When you create a text file, use the following formatting functions:

Special
Function
character
“............“ Define output format for texts and variables
between the quotation marks

%9.3LF Define format for Q parameter:


9 places in total (with decimal point), three of
which are decimal places, long, floating
(decimal number)

%S Format for text variable

, Separation character between output format


and parameter

; End of block character

The following functions allow you to include the following additional


information in the protocol log file:
Code word Function
CALL_PATH Gives the path for the NC program where you
will find the FN16 function. Example:
“Measuring program: %S”,CALL_PATH;

M_CLOSE Closes the file to which you are writing with


FN16. Example: M_CLOSE;

L_ENGLISH Display the text only in English conversational


language

L_GERMAN Display the text only in German conversational


language

L_CZECH Display text only in Czech conversational


language

L_FRENCH Display text only in French conversational


language

L_ITALIAN Display text only in Italian conversational


language

L_SPANISH Display text only in Spanish conversational


language

L_SWEDISH Output text only in Swedish conversational


language

L_DANISH Display text only in Danish conversational


language

L_FINNISH Display text only in Finnish conversational


language

522 11 Programming: Q Parameters


11.8 Additional Functions
Code word Function
L_DUTCH Display the text only in Dutch conversational
language

L_POLISH Display text only in Polish conversational


language

L_HUNGARIA Display text only in Hungarian conversational


language

L_ALL Display the text independent of the


conversational language

HOUR Number of hours from the real-time clock

MIN Number of minutes from the real-time clock

SEC Number of seconds from the real-time clock

DAY Day from the real-time clock

MONTH Month as a number from the real-time clock

STR_MONTH Month as a string abbreviation from the real-


time clock

YEAR2 Two-digit year from the real-time clock

YEAR4 Four-digit year from the real-time clock

In the part program, program FN 16: F-PRINT, to activate the


output:
96 FN16: F-PRINT TNC:\MASKE\MASKE1.A/RS232:\PROT1.TXT

The TNC then outputs the file PROT1.TXT through the serial interface:
CALIBRAT. CHART IMPELLER CENTER GRAVITY
DATE: 27:11:2001
TIME: 8:56:34
NO. OF MEASURED VALUES : = 1
*******************************************
X1 = 149.360
Y1 = 25.509
Z1 = 37.000
*******************************************

HEIDENHAIN iTNC 530 523


11.8 Additional Functions
If you use FN 16 several times in the program, the TNC
saves all texts in the file that you have defined with the
first FN 16 function. The file is not output until the TNC
reads the END PGM block, or you press the NC stop
button, or you close the file with M_CLOSE.
In the FN16 block, program the format file and the log file
with their respective extensions.
If you enter only the file name for the path of the log file,
the TNC saves the log file in the directory in which the NC
program with the FN16 function is located.

524 11 Programming: Q Parameters


11.8 Additional Functions
Displaying messages on the TNC screen
You can also use the function FN16 to display any messages from the
NC program in a pop-up window on the TNC screen. This makes it
easily possible to display explanatory texts, including long texts, at any
point in the program in a way that the user has to react to it. You can
also display Q-parameter contents if the protocol description file
contains such instructions.
For the message to appear on the TNC screen, you need only enter
SCREEN: as the name of the protocol file.

96 FN16: F-PRINT TNC:\MASKE\MASKE1.A/SCREEN:

If the message has more lines than fit in the pop-up window, you can
use the arrow keys to page in the window.
To close the pop-up window, press the CE key.

All the previously described conventions apply for the


protocol description file.
If you output to the screen more than one text in the
program, the TNC appends all texts to the end of the text
already displayed. To display each text individually on the
screen, program the function M_CLOSE at the end of the
protocol description file.

HEIDENHAIN iTNC 530 525


11.8 Additional Functions
FN18: SYS-DATUM READ Read system data
With the function FN 18: SYS-DATUM READ you can read system
data and store them in Q parameters. You select the system data
through a group number (ID number), and additionally through a
number and an index.

Group name, ID No. Number Index Meaning


Program information, 10 1 - MM/inch condition

2 - Overlap factor for pocket milling

3 - Number of active fixed cycle

Machine status, 20 1 - Active tool number

2 - Prepared tool number

3 - Active tool axis


0=X, 1=Y, 2=Z, 6=U, 7=V, 8=W

4 - Programmed spindle rpm

5 - Active spindle status: –1=undefined, 0=M3 active,


1=M4 active, 2=M5 after M3, 3=M5 after M4

8 - Coolant status: 0=off, 1=on

9 - Active feed rate

10 - Index of the prepared tool

11 - Index of the active tool

Cycle parameter, 30 1 - Set-up clearance of active fixed cycle

2 - Drilling depth / milling depth of active fixed cycle

3 - Plunging depth of active fixed cycle

4 - Feed rate for pecking in active fixed cycle

5 - 1st side length for rectangular pocket cycle

6 - 2nd side length for rectangular pocket cycle

7 - 1st side length for slot cycle

8 - 2nd side length for slot cycle

9 - Radius for circular pocket cycle

10 - Feed rate for milling in active fixed cycle

11 - Direction of rotation for active fixed cycle

12 - Dwell time for active fixed cycle

13 - Thread pitch for Cycles 17, 18

526 11 Programming: Q Parameters


11.8 Additional Functions
Group name, ID No. Number Index Meaning
14 - Milling allowance for active fixed cycle

15 - Direction angle for rough out in active fixed cycle

Data from the tool table, 50 1 Tool no. Tool length

2 Tool no. Tool radius

3 Tool no. Tool radius R2

4 Tool no. Oversize for tool length DL

5 Tool no. Oversize for tool radius DR

6 Tool no. Oversize for tool radius DR2

7 Tool no. Tool inhibited (0 or 1)

8 Tool no. Number of replacement tool

9 Tool no. Maximum tool age TIME1

10 Tool no. Maximum tool age TIME2

11 Tool no. Current tool age CUR. TIME

12 Tool no. PLC status

13 Tool no. Maximum tooth length LCUTS

14 Tool no. Maximum plunge angle ANGLE

15 Tool no. TT: Number of teeth CUT

16 Tool no. TT: Wear tolerance for length LTOL

17 Tool no. TT: Wear tolerance for radius RTOL

18 Tool no. TT: Rotational direction DIRECT (0=positive/-1=negative)

19 Tool no. TT: Offset for radius R-OFFS

20 Tool no. TT: Offset for length L-OFFS

21 Tool no. TT: Breakage tolerance in length LBREAK

22 Tool no. TT: Breakage tolerance in radius RBREAK

No index: Data of the currently active tool

Pocket table data, 51 1 Pocket Tool number


number

2 Pocket Special tool: 0=no, 1=yes


number

3 Pocket Fixed pocket: 0=no, 1=yes


number

HEIDENHAIN iTNC 530 527


11.8 Additional Functions
Group name, ID No. Number Index Meaning
4 Pocket Locked pocket: 0=no, 1=yes
number

5 Pocket PLC status


number

Pocket number of a tool in the tool- 1 Tool no. Pocket number


pocket table, 52

Immediately after TOOL CALL 1 - Position valid / invalid (1/0)


programmed position, 70

2 1 X axis

2 2 Y axis

2 3 Z axis

3 - Programmed feed rate (–1: no feed rate programmed)

Active tool compensation, 200 1 - Tool radius (including delta values)

2 - Tool length (including delta values)

Active transformations, 210 1 - Basic rotation in MANUAL OPERATION mode

2 - Programmed rotation with Cycle 10

3 - Active mirror axis

0: mirroring not active

+1: X axis mirrored

+2: Y axis mirrored

+4: Z axis mirrored

+64: U axis mirrored

+128: V axis mirrored

+256: W axis mirrored

Combinations = sum of individual axes

4 1 Active scaling factor in X axis

4 2 Active scaling factor in Y axis

4 3 Active scaling factor in Z axis

4 7 Active scaling factor in U axis

4 8 Active scaling factor in V axis

4 9 Active scaling factor in W axis

528 11 Programming: Q Parameters


11.8 Additional Functions
Group name, ID No. Number Index Meaning
5 1 3-D ROT A axis

5 2 3-D ROT B axis

5 3 3-D ROT C axis

6 - Tilted working plane active / inactive (–1/0) in a Program


Run operating mode

7 - Tilted working plane active / inactive (–1/0) in a Manual


operating mode

Active datum shift, 220 2 1 X axis

2 Y axis

3 Z axis

4 A axis

5 B axis

6 C axis

7 U axis

8 V axis

9 W axis

Traverse range, 230 2 1 to 9 Negative software limit switch in axes 1 to 9

3 1 to 9 Positive software limit switch in axes 1 to 9

Nominal position in the REF system, 1 1 X axis


240

2 Y axis

3 Z axis

4 A axis

5 B axis

6 C axis

7 U axis

8 V axis

9 W axis

Current position in the active 1 1 X axis


coordinate system, 270

2 Y axis

HEIDENHAIN iTNC 530 529


11.8 Additional Functions
Group name, ID No. Number Index Meaning
3 Z axis

4 A axis

5 B axis

6 C axis

7 U axis

8 V axis

9 W axis

Status of M128, 280 1 - 0: M128 inactive, –1: M128 active

2 - Feed rate that was programmed with M128

Triggering touch probe, 350 10 - Touch probe axis

11 - Effective ball radius

12 - Effective length

13 - Radius setting ring

14 1 Center misalignment in reference axis

2 Center misalignment in minor axis

15 - Direction of center misalignment compared with 0°


position

TT 130 Tool Touch Probe 20 1 Center point X axis (REF system)

2 Center point Y axis (REF system)

3 Center point Z axis (REF system)

21 - Probe contact radius

Measuring touch probe, 350 30 - Calibrated stylus length

31 - Stylus radius 1

32 - Stylus radius 2

33 - Setting ring diameter

34 1 Center misalignment in reference axis

2 Center misalignment in minor axis

35 1 Compensation factor for 1st axis

2 Compensation factor for 2nd axis

3 Compensation factor for 3rd axis

530 11 Programming: Q Parameters


11.8 Additional Functions
Group name, ID No. Number Index Meaning
36 1 Power ratio for 1st axis

2 Power ratio for 2nd axis

3 Power ratio for 3rd axis

Last touch point in TCH PROBE 1 1 to 9 Position in the active coordinate system in axes 1 to 9
Cycle 0 or last touch point from
manual operating mode, 360

2 1 to 9 Position in the REF system in axes 1 to 9

Value from the active datum table in Datum 1 to 9 X axis to W axis


the active coordinate system, 500 number

REF value from the active datum Datum 1 to 9 X axis to W axis


table, 501 number

Datum table selected, 505 1 - Return code = 0: No datum table active


Return code = 1: Datum table active

Data from the active pallet table, 510 1 - Active line

2 - Palette number from PAL/PGM field

Existence of machine parameter, MP MP index Return value = 0: MP does not exist


1010 number Return code = 1: MP exists

Example: Assign the value of the active scaling factor for the
Z axis to Q25
55 FN18: SYSREAD Q25 = ID210 NR4 IDX3

FN19: PLC: Transferring values to the PLC


The function FN 19: PLC transfers up to two numerical values or
Q parameters to the PLC.
Increments and units: 0.1 µm or 0.0001°

Example: Transfer the numerical value 10 (which means 1 µm or


0.001°) to the PLC
56 FN19: PLC=+10/+Q3

HEIDENHAIN iTNC 530 531


11.8 Additional Functions
FN20: WAIT FOR: NC and PLC synchronization

This function may only be used with the permission of


your machine tool builder.

With function FN 20: WAIT FOR you can synchronize the NC and PLC
with each other during a program run. The NC stops machining until
the condition that you have programmed in the FN 20 block is fulfilled.
With FN10 the TNC can check the following operands:

PLC operand Abbreviation Address range


Marker M 0 to 4999

Input I 0 to 31, 128 to 152


64 to 126 (first PL 401 B)
192 to 254 (second
PL 401 B)

Output O 0 to 30
32 to 62 (first PL 401 B)
64 to 94 (second PL 401 B)

Counter C 48 to 79

Timer T 0 to 95

Byte B 0 to 4095

Word W 0 to 2047

Double word D 2048 to 4095

The following conditions are permitted in the FN 20 block:


Condition Abbreviation
Equals ==

Less than <

Greater than >

Less than or equal <=

Greater than or equal >=

Example: Stop program run until the PLC sets marker 4095 to 1
32 FN20: WAIT FOR M4095==1

532 11 Programming: Q Parameters


11.8 Additional Functions
FN 25: PRESET: Setting a new datum

This function can only be programmed if you have entered


the code number 555343 (see “Code Numbers” on page
579).

With the function FN 25: PRESET, it is possible to set a new datum in


an axis of choice during program run.
8 Select a Q parameter function: Press the Q key (in the numerical
keypad at right). The Q parameter functions are displayed in a soft-
key row.
8 To select the additional functions, press the DIVERSE FUNCTIONS
soft key.
8 Select FN25: Switch the soft-key row to the second level, press the
FN25 DATUM SET soft key.
8 Axis?: Enter the axis where you wish to set the new datum and
confirm with ENT.
8 Value to be calculated?: Enter the coordinate for the new datum
point in the active coordinate system.
8 New datum?: Enter the coordinate that the value to be converted
should have in the new coordinate system.

Example: Set a new datum at the current coordinate X+100


56 FN25: PRESET = X/+100/+0

Example: The current coordinate Z+50 will have the value -20 in
the new coordinate system
56 FN25: PRESET = Z/+50/-20

With the miscellaneous function M104 you can reactivate


the datum that was last set in the Manual Operation mode
(see “Activating the most recently entered datum: M104”
on page 242).

HEIDENHAIN iTNC 530 533


11.8 Additional Functions
FN26:TABOPEN: Opening a freely definable table
With FN 26: TABOPEN you can define a table to be written with FN27,
or to be read from with FN28.

Only one table can be open in an NC program. A new block


with TABOPEN automatically closes the last opened table.
The table to be opened must have the file name extension
.TAB.

Example: Open the table TAB1.TAB, which is saved in the


directory TNC:\DIR1.
56 FN26: TABOPEN TNC:\DIR1\TAB1.TAB

FN27: TABWRITE: Writing to a freely definable


table
After you have opened a table with FN 26 TABOPEN, you can use
function FN 27: TABWRITE to write to it.
You can define and write up to 8 column names in a TABWRITE block.
The column names must be written between quotation marks and
separated by a comma. You define the values that the TNC is to write
to the respective column with Q parameters.

You can write only to numerical table fields.


If you wish to write to more than one column in a block,
you must save the values under successive Q parameter
numbers.

Example:
You wish to write to the columns “Radius,” “Depth” and “D” in line
5 of the presently opened table. The values to be written in the table
must be saved in the Q parameters Q5, Q6 and Q7.

53 FN0: Q5 = 3.75
54 FN0: Q6 = -5
55 FN0: Q7 = 7.5
56 FN27: TABWRITE 5/“RADIUS,DEPTH,D” = Q5

534 11 Programming: Q Parameters


11.8 Additional Functions
FN28:TABREAD: Reading a freely definable table
After you have opened a table with FN 26 TABOPEN, you can use
function FN 28: TABREAD to read from it.
You can define, i.e. read, up to 8 column names in a TABREAD block.
The column names must be written between quotation marks and
separated by a comma. In the FN 28 block you can define the
Q parameter number in which the TNC is to write the value that is first
read.

You can read only numerical table fields.


If you wish to read from more than one column in a block,
the TNC will save the values under successive Q
parameter numbers.

Example:
You wish to read the values of the columns “Radius,” “Depth” and
“D” from line 6 of the presently opened table. Save the first value in
Q parameter Q10 (second value in Q11, third value in Q12).

56 FN28: TABREAD Q10 = 6/“RADIUS,DEPTH,D”

HEIDENHAIN iTNC 530 535


11.9 Entering Formulas Directly
11.9 Entering Formulas Directly

Entering formulas
You can enter mathematical formulas that include several operations
directly into the part program by soft key.
Press the FORMULA soft key to call the formula functions. The TNC
displays the following soft keys in several soft-key rows:

Logic command Soft key


Addition
Example: Q10 = Q1 + Q5

Subtraction
Example: Q25 = Q7 – Q108

Multiplication
Example: Q12 = 5 * Q5

Division
Example: Q25 = Q1 / Q2

Opening parenthesis
Example: Q12 = Q1 * (Q2 + Q3)

Closing parenthesis
Example: Q12 = Q1 * (Q2 + Q3)

Square of a value
Example: Q15 = SQ 5

Square root
Example: Q22 = SQRT 25

Sine of an angle
Example: Q44 = SIN 45

Cosine of an angle
Example: Q45 = COS 45

Tangent of an angle
Example: Q46 = TAN 45

Arc sine
Inverse of the sine. Determine the angle from the ratio
of the opposite side to the hypotenuse.
Example: Q10 = ASIN 0.75

Arc cosine
Inverse of the cosine. Determine the angle from the
ratio of the adjacent side to the hypotenuse.
Example: Q11 = ACOS Q40

536 11 Programming: Q Parameters


11.9 Entering Formulas Directly
Logic command Soft key
Arc tangent
Inverse of the tangent. Determine the angle from the
ratio of the opposite to the adjacent side.
Example: Q12 = ATAN Q50

Powers of values
Example: Q15 = 3^3

Constant “pi” (3.14159)


Example: Q15 = PI

Natural logarithm (LN) of a number


Base 2.7183
Example: Q15 = LN Q11

Logarithm of a number, base 10


Example: Q33 = LOG Q22

Exponential function, 2.7183 to the power of n


Example: Q1 = EXP Q12

Negate (multiplication by -1)


Example: Q2 = NEG Q1

Truncate decimal places


Form an integer
Example: Q3 = INT Q42

Absolute value of a number


Example: Q4 = ABS Q22

Truncate places before the decimal point


Form a fraction
Example: Q5 = FRAC Q23

Check algebraic sign of a number


Example: Q12 = SGN Q50
If result for Q12 = 1, then Q50 >= 0
If result for Q12 = –1, then Q50 < 0

Calculate modulo value


Example: Q12 = 400 % 360
Result: Q12 = 40

HEIDENHAIN iTNC 530 537


11.9 Entering Formulas Directly
Rules for formulas
Mathematical formulas are programmed according to the following
rules:

Higher-level operations are performed first


12 Q1 = 5 * 3 + 2 * 10 = 35

1st calculation: 5 * 3 = 15
2nd calculation: 2 * 10 = 20
3rdstep 15 + 20 = 35

or
13 Q2 = SQ 10 - 3^3 = 73

1st calculation: 10 squared = 100


2nd calculation: 3 to the power of 3 = 27
3rdcalculation 100 – 27 = 73

Distributive law
for calculating with parentheses
a * (b + c) = a * b + a * c

538 11 Programming: Q Parameters


11.9 Entering Formulas Directly
Programming example
Calculate an angle with the arc tangent from the opposite side (Q12)
and adjacent side (Q13); then store in Q25.

To select the formula entering function, press the


Q key and FORMULA soft key.

PARAMETER NO. FOR RESULT?

Enter the parameter number.


25

Shift the soft-key row and select the arc tangent


function.

Shift the soft-key row and open the parentheses.

Enter Q parameter number 12.


12

Select division.

Enter Q parameter number 13.


13

Close parentheses and conclude formula entry.

Example NC block
37 Q25 = ATAN (Q12/Q13)

HEIDENHAIN iTNC 530 539


11.10 Preassigned Q Parameters
11.10 Preassigned Q Parameters
The Q parameters Q100 to Q122 are assigned values by the TNC.
These values include:
„ Values from the PLC
„ Tool and spindle data
„ Data on operating status, etc.

Values from the PLC: Q100 to Q107


The TNC uses the parameters Q100 to Q107 to transfer values from
the PLC to an NC program.

Active tool radius: Q108


The active value of the tool radius is assigned to Q108. Q108 is
calculated from:
„ Tool radius R (Tool table or TOOL DEF block)
„ Delta value DR from the tool table
„ Delta value DR from the TOOL CALL block

Tool axis: Q109


The value of Q109 depends on the current tool axis:

Tool axis Parameter value


No tool axis defined Q109 = –1

X axis Q109 = 0

Y axis Q109 = 1

Z axis Q109 = 2

U axis Q109 = 6

V axis Q109 = 7

W axis Q109 = 8

540 11 Programming: Q Parameters


11.10 Preassigned Q Parameters
Spindle status: Q110
The value of Q110 depends on which M function was last
programmed for the spindle:

M Function Parameter value


No spindle status defined Q110 = –1

M03: Spindle ON, clockwise Q110 = 0

M04: Spindle ON, counterclockwise Q110 = 1

M05 after M03 Q110 = 2

M05 after M04 Q110 = 3

Coolant on/off: Q111

M Function Parameter value


M08: Coolant ON Q111 = 1

M09: Coolant OFF Q111 = 0

Overlap factor: Q112


The overlap factor for pocket milling (MP7430) is assigned to Q112.

Unit of measurement for dimensions in the


program: Q113
The value of parameter Q113 specifies whether the highest-level NC
program (for nesting with PGM CALL) is programmed in millimeters or
inches.

Dimensions of the main program Parameter value


Metric system (mm) Q113 = 0

Inch system (inches) Q113 = 1

Tool length: Q114


The current value for the tool length is assigned to Q114.

HEIDENHAIN iTNC 530 541


11.10 Preassigned Q Parameters
Coordinates after probing during program run
The parameters Q115 to Q119 contain the coordinates of the spindle
position at the moment of contact during programmed measurement
with the 3-D touch probe. The coordinates are referenced to the
datum that is currently active in the Manual operating mode.
The length and radius of the probe tip are not compensated in these
coordinates.

Coordinate axis Parameter value


X axis Q115

Y axis Q116

Z axis Q117

IVth axis Q118


dependent on MP100

Vth axis Q119


dependent on MP100

Deviation between actual value and nominal


value during automatic tool measurement with
the TT 130

Actual-nominal deviation Parameter value


Tool length Q115

Tool radius Q116

Tilting the working plane with mathematical


angles: Rotary axis coordinates calculated by the
TNC

coordinates Parameter value


A axis Q120

B axis Q121

C axis Q122

542 11 Programming: Q Parameters


11.10 Preassigned Q Parameters
Measurement results from touch probe cycles
(see also User’s Manual for Touch Probe Cycles)

Measured actual values Parameter value


Angle of a straight line Q150

Center in reference axis Q151

Center in minor axis Q152

Diameter Q153

Length of pocket Q154

Width of pocket Q155

Length in the axis selected in the cycle Q156

Position of the center line Q157

Angle of the A axis Q158

Angle of the B axis Q159

Coordinate of the axis selected in the cycle Q160

Determined deviation Parameter value


Center in reference axis Q161

Center in minor axis Q162

Diameter Q163

Length of pocket Q164

Width of pocket Q165

Measured length Q166

Position of the center line Q167

Determined solid angles Parameter value


Rotation about the A axis Q170

Rotation about the B axis Q171

Rotation about the C axis Q172

HEIDENHAIN iTNC 530 543


11.10 Preassigned Q Parameters
Workpiece status Parameter value
Good Q180

Re-work Q181

Scrap Q182

Measured deviation with cycle 440 Parameter value


X axis Q185

Y axis Q186

Z axis Q187

Reserved for internal use Parameter value


Markers for cycles (point patterns) Q197

Number of the last active measuring cycle Q198

Status during tool measurement with TT Parameter value


Tool within tolerance Q199 = 0.0

Tool is worn (LTOL/RTOL exceeded) Q199 = 1.0

Tool is broken (LBREAK/RBREAK exceeded) Q199 = 2.0

544 11 Programming: Q Parameters


11.11 Programming Examples
Example: Ellipse

Program sequence
„ The contour of the ellipse is approximated by
many short lines (defined in Q7). The more Y
calculation steps you define for the lines, the
smoother the curve becomes.
„ The machining direction can be altered by 50
changing the entries for the starting and end
angles in the plane:

30
Clockwise machining direction:
starting angle > end angle
50
Counterclockwise machining direction:
starting angle < end angle
„ The tool radius is not taken into account.

X
50

0 BEGIN PGM ELLIPSE MM


1 FN 0: Q1 = +50 Center in X axis
2 FN 0: Q2 = +50 Center in Y axis
3 FN 0: Q3 = +50 Semiaxis in X
4 FN 0: Q4 = +30 Semiaxis in Y
5 FN 0: Q5 = +0 Starting angle in the plane
6 FN 0: Q6 = +360 End angle in the plane
7 FN 0: Q7 = +40 Number of calculation steps
8 FN 0: Q8 = +0 Rotational position of the ellipse
9 FN 0: Q9 = +5 Milling depth
10 FN 0: Q10 = +100 Feed rate for plunging
11 FN 0: Q11 = +350 Feed rate for milling
12 FN 0: Q12 = +2 Set-up clearance for pre-positioning
13 BLK FORM 0.1 Z X+0 Y+0 Z-20 Define the workpiece blank
14 BLK FORM 0.2 X+100 Y+100 Z+0
15 TOOL DEF 1 L+0 R+2.5 Define the tool
16 TOOL CALL 1 Z S4000 Tool call
17 L Z+250 R0 FMAX Retract the tool
18 CALL LBL 10 Call machining operation
19 L Z+100 R0 FMAX M2 Retract in the tool axis, end program

HEIDENHAIN iTNC 530 545


11.11 Programming Examples
20 LBL 10 Subprogram 10: Machining operation
21 CYCL DEF 7.0 DATUM SHIFT Shift datum to center of ellipse
22 CYCL DEF 7.1 X+Q1
23 CYCL DEF 7.2 Y+Q2
24 CYCL DEF 10.0 ROTATION Account for rotational position in the plane
25 CYCL DEF 10.1 ROT+Q8
26 Q35 = (Q6 - Q5) / Q7 Calculate angle increment
27 Q36 = Q5 Copy starting angle
28 Q37 = 0 Set counter
29 Q21 = Q3 * COS Q36 Calculate X coordinate for starting point
30 Q22 = Q4 * SIN Q36 Calculate Y coordinate for starting point
31 L X+Q21 Y+Q22 R0 FMAX M3 Move to starting point in the plane
32 L Z+Q12 R0 FMAX Pre-position in tool axis to set-up clearance
33 L Z-Q9 R0 FQ10 Move to working depth

34 LBL 1
35 Q36 = Q36 + Q35 Update the angle
36 Q37 = Q37 + 1 Update the counter
37 Q21 = Q3 * COS Q36 Calculate the current X coordinate
38 Q22 = Q4 * SIN Q36 Calculate the current Y coordinate
39 L X+Q21 Y+Q22 R0 FQ11 Move to next point
40 FN 12: IF +Q37 LT +Q7 GOTO LBL 1 Unfinished? If not finished, return to LBL 1

41 CYCL DEF 10.0 ROTATION Reset the rotation


42 CYCL DEF 10.1 ROT+0
43 CYCL DEF 7.0 DATUM SHIFT Reset the datum shift
44 CYCL DEF 7.1 X+0
45 CYCL DEF 7.2 Y+0
46 L Z+Q12 F0 FMAX Move to set-up clearance
47 LBL 0 End of subprogram
48 END PGM ELLIPSE MM

546 11 Programming: Q Parameters


11.11 Programming Examples
Example: Concave cylinder machined with spherical cutter

Program sequence
Z
„ Program functions only with a spherical cutter.
The tool length refers to the sphere center. R4
0 X
„ The contour of the cylinder is approximated by
many short line segments (defined in Q13). The
more line segments you define, the smoother
the curve becomes. -50

„ The cylinder is milled in longitudinal cuts (here: Y Y


parallel to the Y axis). 100

„ The machining direction can be altered by


changing the entries for the starting and end
angles in space:
Clockwise machining direction:
starting angle > end angle
Counterclockwise machining direction:
starting angle < end angle
„ The tool radius is compensated automatically.

50 100 X Z

0 BEGIN PGM CYLIN MM


1 FN 0: Q1 = +50 Center in X axis
2 FN 0: Q2 = +0 Center in Y axis
3 FN 0: Q3 = +0 Center in Z axis
4 FN 0: Q4 = +90 Starting angle in space (Z/X plane)
5 FN 0: Q5 = +270 End angle in space (Z/X plane)
6 FN 0: Q6 = +40 Radius of the cylinder
7 FN 0: Q7 = +100 Length of the cylinder
8 FN 0: Q8 = +0 Rotational position in the X/Y plane
9 FN 0: Q10 = +5 Allowance for cylinder radius
10 FN 0: Q11 = +250 Feed rate for plunging
11 FN 0: Q12 = +400 Feed rate for milling
12 FN 0: Q13 = +90 Number of cuts
13 BLK FORM 0.1 Z X+0 Y+0 Z-50 Define the workpiece blank
15 BLK FORM 0.2 X+100 Y+100 Z+0
15 TOOL DEF 1 L+0 R+3 Define the tool
16 TOOL CALL 1 Z S4000 Tool call
17 L Z+250 R0 FMAX Retract the tool
18 CALL LBL 10 Call machining operation
19 FN 0: Q10 = +0 Reset allowance

HEIDENHAIN iTNC 530 547


11.11 Programming Examples
20 CALL LBL 10 Call machining operation
21 L Z+100 R0 FMAX M2 Retract in the tool axis, end program

22 LBL 10 Subprogram 10: Machining operation


23 Q16 = Q6 - Q10 - Q108 Account for allowance and tool, based on the cylinder radius
24 FN 0: Q20 = +1 Set counter
25 FN 0: Q24 = +Q4 Copy starting angle in space (Z/X plane)
26 Q25 = (Q5 - Q4) / Q13 Calculate angle increment
27 CYCL DEF 7.0 DATUM SHIFT Shift datum to center of cylinder (X axis)
28 CYCL DEF 7.1 X+Q1
29 CYCL DEF 7.2 Y+Q2
30 CYCL DEF 7.3 Z+Q3
31 CYCL DEF 10.0 ROTATION Account for rotational position in the plane
32 CYCL DEF 10.1 ROT+Q8
33 L X+0 Y+0 R0 FMAX Pre-position in the plane to the cylinder center
34 L Z+5 R0 F1000 M3 Pre-position in the tool axis
35 LBL 1
36 CC Z+0 X+0 Set pole in the Z/X plane
37 LP PR+Q16 PA+Q24 FQ11 Move to starting position on cylinder, plunge-cutting obliquely into
the material
38 L Y+Q7 R0 FQ12 Longitudinal cut in Y+ direction
39 FN 1: Q20 = +Q20 + +1 Update the counter
40 FN 1: Q24 = +Q24 + +Q25 Update solid angle
41 FN 11: IF +Q20 GT +Q13 GOTO LBL 99 Finished? If finished, jump to end
42 LP PR+Q16 PA+Q24 FQ11 Move in an approximated “arc” for the next longitudinal cut
43 L Y+0 R0 FQ12 Longitudinal cut in Y– direction
44 FN 1: Q20 = +Q20 + +1 Update the counter
45 FN 1: Q24 = +Q24 + +Q25 Update solid angle
46 FN 12: IF +Q20 LT +Q13 GOTO LBL 1 Unfinished? If not finished, return to LBL 1
47 LBL 99
48 CYCL DEF 10.0 ROTATION Reset the rotation
49 CYCL DEF 10.1 ROT+0
50 CYCL DEF 7.0 DATUM SHIFT Reset the datum shift
51 CYCL DEF 7.1 X+0
52 CYCL DEF 7.2 Y+0
53 CYCL DEF 7.3 Z+0
54 LBL 0 End of subprogram
55 END PGM CYLIN

548 11 Programming: Q Parameters


11.11 Programming Examples
Example: Convex sphere machined with end mill

Program sequence
„ This program requires an end mill.
„ The contour of the sphere is approximated by Y
Y
many short lines (in the Z/X plane, defined in
Q14). The smaller you define the angle 100
increment, the smoother the curve becomes.
„ You can determine the number of contour cuts
through the angle increment in the plane

5
5

R4
(defined in Q18). R4
„ The tool moves upward in three-dimensional 50
cuts.
„ The tool radius is compensated automatically.

X Z
50 100 -50

0 BEGIN PGM SPHERE MM


1 FN 0: Q1 = +50 Center in X axis
2 FN 0: Q2 = +50 Center in Y axis
3 FN 0: Q4 = +90 Starting angle in space (Z/X plane)
4 FN 0: Q5 = +0 End angle in space (Z/X plane)
5 FN 0: Q14 = +5 Angle increment in space
6 FN 0: Q6 = +45 Radius of the sphere
7 FN 0: Q8 = +0 Starting angle of rotational position in the X/Y plane
8 FN 0: Q9 = +360 End angle of rotational position in the X/Y plane
9 FN 0: Q18 = +10 Angle increment in the X/Y plane for roughing
10 FN 0: Q10 = +5 Allowance in sphere radius for roughing
11 FN 0: Q11 = +2 Set-up clearance for pre-positioning in the tool axis
12 FN 0: Q12 = +350 Feed rate for milling
13 BLK FORM 0.1 Z X+0 Y+0 Z-50 Define the workpiece blank
14 BLK FORM 0.2 X+100 Y+100 Z+0
15 TOOL DEF 1 L+0 R+7.5 Define the tool
16 TOOL CALL 1 Z S4000 Tool call
17 L Z+250 R0 FMAX Retract the tool

HEIDENHAIN iTNC 530 549


11.11 Programming Examples
18 CALL LBL 10 Call machining operation
19 FN 0: Q10 = +0 Reset allowance
20 FN 0: Q18 = +5 Angle increment in the X/Y plane for finishing
21 CALL LBL 10 Call machining operation
22 L Z+100 R0 FMAX M2 Retract in the tool axis, end program
23 LBL 10 Subprogram 10: Machining operation
24 FN 1: Q23 = +Q11 + +Q6 Calculate Z coordinate for pre-positioning
25 FN 0: Q24 = +Q4 Copy starting angle in space (Z/X plane)
26 FN 1: Q26 = +Q6 + +Q108 Compensate sphere radius for pre-positioning
27 FN 0: Q28 = +Q8 Copy rotational position in the plane
28 FN 1: Q16 = +Q6 + -Q10 Account for allowance in the sphere radius
29 CYCL DEF 7.0 DATUM SHIFT Shift datum to center of sphere
30 CYCL DEF 7.1 X+Q1
31 CYCL DEF 7.2 Y+Q2
32 CYCL DEF 7.3 Z-Q16
33 CYCL DEF 10.0 ROTATION Account for starting angle of rotational position in the plane
34 CYCL DEF 10.1 ROT+Q8
35 LBL 1 Pre-position in the tool axis
36 CC X+0 Y+0 Set pole in the X/Y plane for pre-positioning
37 LP PR+Q26 PA+Q8 R0 FQ12 Pre-position in the plane
38 CC Z+0 X+Q108 Set pole in the Z/X plane, offset by the tool radius
39 L Y+0 Z+0 FQ12 Move to working depth

550 11 Programming: Q Parameters


11.10 Preassigned Q Parameters
40 LBL 2
41 LP PR+Q6 PA+Q24 R9 FQ12 Move upward in an approximated “arc”
42 FN 2: Q24 = +Q24 - +Q14 Update solid angle
43 FN 11: IF +Q24 GT +Q5 GOTO LBL 2 Inquire whether an arc is finished. If not finished, return to LBL 2.
44 LP PR+Q6 PA+Q5 Move to the end angle in space
45 L Z+Q23 R0 F1000 Retract in the tool axis
46 L X+Q26 R0 FMAX Pre-position for next arc
47 FN 1: Q28 = +Q28 + +Q18 Update rotational position in the plane
48 FN 0: Q24 = +Q4 Reset solid angle
49 CYCL DEF 10.0 ROTATION Activate new rotational position
50 CYCL DEF 10.0 ROT+Q28
51 FN 12: IF +Q28 LT +Q9 GOTO LBL 1
52 FN 9: IF +Q28 EQU +Q9 GOTO LBL 1 Unfinished? If not finished, return to label 1
53 CYCL DEF 10.0 ROTATION Reset the rotation
54 CYCL DEF 10.1 ROT+0
55 CYCL DEF 7.0 DATUM SHIFT Reset the datum shift
56 CYCL DEF 7.1 X+0
57 CYCL DEF 7.2 Y+0
58 CYCL DEF 7.3 Z+0
59 LBL 0 End of subprogram
60 END PGM SPHERE MM

HEIDENHAIN iTNC 530 551


11.10 Preassigned Q Parameters

552 11 Programming: Q Parameters


Test Run and Program Run
12.1 Graphics
12.1 Graphics
Function
In the program run modes of operation as well as in the Test Run
mode, the TNC provides the following three display modes: Using soft
keys, select whether you desire:
„ Plan view
„ Projection in 3 planes
„ 3-D view
The TNC graphic depicts the workpiece as if it were being machined
with a cylindrical end mill. If a tool table is active, you can also simulate
the machining operation with a spherical cutter. For this purpose,
enter R2 = R in the tool table.
The TNC will not show a graphic if
„ the current program has no valid blank form definition
„ no program is selected
With Machine Parameters 7315 to 7317 you can have the TNC display
a graphic even if no tool axis is defined or moved.

A graphic simulation is not possible for program sections


or programs in which rotary axis movements or a tilted
working plane are defined. In this case, the TNC will
display an error message.
The TNC graphic does not show a radius oversize DR that
has been programmed in the TOOL CALL block.

554 12 Test Run and Program Run


12.1 Graphics
Setting the speed of the test run

You can set the speed of the test run only if the “Display
of machining time” function is active (see “Activating the
stopwatch function” on page 561). The TNC otherwise
always performs the test run at the maximum possible
speed.
The most recently set speed remains active, even after a
restart, until you change it.

After you have started a program, the TNC displays the following soft
keys with which you can set the simulation speed.

Function Soft key


Execute test run at the same speed at which the
program will be executed (programmed feed rates are
taken into account).

Increase the test speed incrementally.

Decrease the test speed incrementally.

Test run at the maximum possible speed (default


setting).

HEIDENHAIN iTNC 530 555


12.1 Graphics
Overview of display modes
The control displays the following soft keys in the Program Run and
Test Run modes of operation:

Display mode Soft key


Plan view

Projection in 3 planes

3-D view

Limitations during program run


A graphical representation of a running program is not possible if the
microprocessor of the TNC is already occupied with complicated
machining tasks or if large areas are being machined. Example:
Multipass milling over the entire blank form with a large tool. The TNC
interrupts the graphics and displays the text ERROR in the graphics
window. The machining process is continued, however.

Plan view
This is the fastest of the three graphic display modes.
8 Press the soft key for plan view.
8 Regarding depth display, remember:

The deeper the surface, the darker the shade.

556 12 Test Run and Program Run


12.1 Graphics
Projection in 3 planes
Similar to a workpiece drawing, the part is displayed with a plan view
and two sectional planes. A symbol to the lower left indicates whether
the display is in first angle or third angle projection according to ISO
6433 (selected with MP7310).
Details can be isolated in this display mode for magnification (see
“Magnifying details” on page 559).
In addition, you can shift the sectional planes with the corresponding
soft keys:
8 Select the soft key for projection in three planes.

8 Shift the soft-key row and select the soft key for
sectional planes.
8 The TNC then displays the following soft keys:

Function Soft keys


Shift the vertical sectional plane to the right
or left

Shift the vertical sectional plane forward or


backward

Shift the horizontal sectional plane upwards


or downwards

The positions of the sectional planes are visible during shifting.


The default setting of the sectional plane is selected such that it lies in
the working plane in the workpiece center and in the tool axis on the
top surface.

Coordinates of the line of intersection


At the bottom of the graphics window, the TNC displays the
coordinates of the line of intersection, referenced to the workpiece
datum. Only the coordinates of the working plane are shown. This
function is activated with MP7310.

HEIDENHAIN iTNC 530 557


12.1 Graphics
3-D view
The workpiece is displayed in three dimensions, and can be rotated
about the vertical axis.
You can rotate the 3-D display about the vertical and horizontal axes.
The shape of the workpiece blank can be depicted by a frame overlay
at the beginning of the graphic simulation.
In the Test Run mode of operation you can isolate details for
magnification, see “Magnifying details” on page 559.
8 Press the soft key for 3-D view.

Rotating and magnifying/reducing the 3-D view


8 Shift the soft-key row until the soft key for the rotating and
magnification/reduction appears.
8 Select functions for rotating and magnifying/reducing:

Function Soft keys


Rotate in 5° steps about the vertical axis

Rotate in 5° steps about the horizontal axis

Magnify the graphic stepwise. If the view is


magnified, the TNC shows the letter Z in
the footer of the graphic window.

Reduce the graphic stepwise. . If the view


is magnified, the TNC shows the letter Z in
the footer of the graphic window.

Reset image to programmed size

Switch the frame overlay display for the workpiece blank on/off:
8 Shift the soft-key row until the soft key for the rotating and
magnification/reduction appears.
8 Select functions for rotating and magnifying/reducing:

8 Show the frame for the BLK FORM: Set the highlight
in the soft key to SHOW
8 Hide the frame for the BLK FORM: Set the highlight in
the soft key to OMIT

558 12 Test Run and Program Run


12.1 Graphics
Magnifying details
You can magnify details in all display modes in the Test Run mode and
a program run mode.
The graphic simulation or the program run, respectively, must first
have been stopped. A detail magnification is always effective in all
display modes.

Changing the detail magnification


The soft keys are listed in the table.
8 Interrupt the graphic simulation, if necessary.
8 Shift the soft-key row in the Test Run mode, or in a program run
mode, respectively, until the soft key for detail enlargement
appears.
8 Select the functions for section magnification.

8 Press the corresponding soft key to select the


workpiece surface (see table below).
8 To reduce or magnify the blank form, press and hold
the MINUS or PLUS soft key, respectively.
8 Restart the test run or program run by pressing the
START soft key (RESET + START returns the
workpiece blank to its original state).

Function Soft keys


Select the left/right workpiece surface

Select the front/back workpiece surface

Select the top/bottom workpiece surface

Shift the sectional plane to reduce or


magnify the blank form

Select the isolated detail

HEIDENHAIN iTNC 530 559


12.1 Graphics Cursor position during detail magnification
During detail magnification, the TNC displays the coordinates of the
axis that is currently being isolated. The coordinates describe the area
determined for magnification. To the left of the slash is the smallest
coordinate of the detail (MIN point), to the left is the largest (MAX
point).
If a graphic display is magnified, this is indicated with MAGN at the lower
right of the graphics window.
If the workpiece blank cannot be further enlarged or reduced, the TNC
displays an error message in the graphics window. To clear the error
message, reduce or enlarge the workpiece blank.

Repeating graphic simulation


A part program can be graphically simulated as often as desired, either
with the complete workpiece or with a detail of it.

Function Soft key


Restore workpiece blank to the detail magnification in
which it was last shown.

Reset detail magnification so that the machined


workpiece or workpiece blank is displayed as it was
programmed with BLK FORM.

With the WINDOW BLK FORM soft key, you return the
displayed workpiece blank to its originally programmed
dimensions, even after isolating a detail without
TRANSFER DETAIL.

560 12 Test Run and Program Run


12.1 Graphics
Measuring the machining time
Program Run modes of operation
The timer counts and displays the time from program start to program
end. The timer stops whenever machining is interrupted.

Test Run
The timer displays the approximate time that the TNC calculates from
the duration of tool movements. The time calculated by the TNC
cannot be used for calculating the production time because the TNC
does not account for the duration of machine-dependent interruptions,
such as tool change. If you have switched the "find machining time"
function on, you can generate a file listing the usage times of all tools
used in the program (see “Dependent files” on page 593).

Activating the stopwatch function


Shift the soft-key rows until the TNC displays the following soft keys
with the stopwatch functions:

Stopwatch functions Soft key


Enable (ON) or disable (OFF) the "measure the
machining time" function.

Store displayed time

Display the sum of stored time


and displayed time

Clear displayed time

The soft keys available to the left of the stopwatch


functions depend on the selected screen layout.
During the Test Run, the TNC resets the machining time
as soon as a new BLK form is evaluated.

HEIDENHAIN iTNC 530 561


12.2 Functions for Program Display
12.2 Functions for Program Display

Overview
In the Program Run modes of operation as well as in the Test Run
mode, the TNC provides the following soft keys for displaying a part
program in pages:

Function Soft key


Go back in the program by one screen

Go forward in the program by one screen

Go to beginning of program

Go to end of program

562 12 Test Run and Program Run


12.3 Test Run

12.3 Test Run


Function
In the Test Run mode of operation you can simulate programs and
program sections to prevent errors from occurring during program run.
The TNC checks the programs for the following:
„ Geometrical incompatibilities
„ Missing data
„ Impossible jumps
„ Violation of the machine’s working space
The following functions are also available:
„ Blockwise test run
„ Interrupt test at any block
„ Optional block skip
„ Functions for graphic simulation
„ Measuring the machining time
„ Additional status display

Running a program test


If the central tool file is active, a tool table must be active (status S) to
run a program test. Select a tool table via the file manager (PGM MGT)
in the Test Run mode of operation.
With the MOD function BLANK IN WORK SPACE, you can activate
work space monitoring for the test run (see “Showing the Workpiece
in the Working Space” on page 596).
8 Select the Test Run operating mode
8 Call the file manager with the PGM MGT key and
select the file you wish to test, or
8 Go to the program beginning: Select line “0” with the
GOTO key and confirm your entry with the ENT key.
The TNC then displays the following soft keys:
Function Soft key
Test the entire program

Test each program block individually

Show the blank form and test the entire program

Interrupt the test run

HEIDENHAIN iTNC 530 563


12.3 Test Run Run a program test up to a certain block
With the STOP AT N function the TNC does a test run up to the block
with block number N.
8 Go to the beginning of program in the Test Run mode of operation.
8 To run a program test up to a specific block,
press the STOP AT N soft key.
8 Stop at N: Enter the block number at which you wish
the test to stop.
8 Program: Enter the name of the program that contains
the block with the selected block number. The TNC
displays the name of the selected program. If the test
run is to be interrupted in a program that was called
with PGM CALL, you must enter this name.
8 Repetitions: If N is located in a program section
repeat, enter the number of repeats that you want to
run.
8 To test a program section, press the START soft key.
The TNC will test the program up to the entered
block.

564 12 Test Run and Program Run


12.4 Program Run

12.4 Program Run


Function
In the Program Run, Full Sequence mode of operation the TNC
executes a part program continuously to its end or up to a program
stop.
In the Program Run, Single Block mode of operation you must start
each block separately by pressing the machine START button.
The following TNC functions can be used in the program run modes of
operation:
„ Interrupt program run
„ Start program run from a certain block
„ Optional block skip
„ Editing the tool table TOOL.T
„ Checking and changing Q parameters
„ Superimposing handwheel positioning
„ Functions for graphic simulation
„ Additional status display

Running a part program


Preparation
1 Clamp the workpiece to the machine table.
2 Set the datum.
3 Select the necessary tables and pallet files (status M).
4 Select the part program (status M).

You can adjust the feed rate and spindle speed with the
override knobs.
It is possible to reduce the rapid traverse speed when
starting the NC program using the FMAX soft key. The
entered value remains in effect even after the machine
has been turned off and on again. In order to re-establish
the original rapid traverse speed, you need to re-enter the
corresponding value.

Program Run, Full Sequence


8 Start the part program with the machine START button.

Program Run, Single Block


8 Start each block of the part program individually with the machine
START button.

HEIDENHAIN iTNC 530 565


12.4 Program Run
Interrupting machining
There are several ways to interrupt a program run:
„ Programmed interruptions
„ Pressing the machine STOP button
„ Switching to Program Run, Single Block
If the TNC registers an error during program run, it automatically
interrupts the machining process.

Programmed interruptions
You can program interruptions directly in the part program. The TNC
interrupts the program run at a block containing one of the following
entries:
„ STOP (with and without a miscellaneous function)
„ Miscellaneous function M0, M2 or M30
„ Miscellaneous function M6 (determined by the machine tool builder)

Interrupting the machining process with the machine STOP


button
8 Press the machine STOP button: The block which the TNC is
currently executing is not completed. The asterisk in the status
display blinks.
8 If you do not wish to continue the machining process, you can reset
the TNC with the INTERNAL STOP soft key. The asterisk in the
status display goes out. In this case, the program must be restarted
from the program beginning.

Interrupting the machining process by switching to the Program


Run, Single Block mode of operation
You can interrupt a program that is being run in the Program Run, Full
Sequence mode of operation by switching to the Program Run, Single
Block mode. The TNC interrupts the machining process at the end of
the current block.

566 12 Test Run and Program Run


12.4 Program Run
Moving the machine axes during an interruption
You can move the machine axes during an interruption in the same
way as in the Manual Operation mode.

Danger of collision!
If you interrupt program run while the working plane is
tilted, you can change from a tilted to a non-tilted
coordinate system, and vice versa, by pressing the 3-D
ON/OFF soft key.
The functions of the axis direction buttons, the electronic
handwheel and the positioning logic for returning to the
contour are then evaluated by the TNC. When retracting
the tool make sure the correct coordinate system is active
and the angular values of the tilt axes are entered in the
3-D ROT menu.

Application example:
Retracting the spindle after tool breakage
8 Interrupt machining.
8 Enable the external direction keys: Press the MANUAL OPERATION
soft key.
8 Move the axes with the machine axis direction buttons.

On some machines you may have to press the machine


START button after the MANUAL OPERATION soft key to
enable the axis direction buttons. Refer to your machine
manual.

HEIDENHAIN iTNC 530 567


12.4 Program Run
Resuming program run after an interruption

If a program run is interrupted during a fixed cycle, the


program must be resumed from the beginning of the
cycle. This means that some machining operations will be
repeated.

If you interrupt a program run during execution of a subprogram or


program section repeat, use the RESTORE POS AT N function to
return to the position at which the program run was interrupted.
When a program run is interrupted, the TNC stores:
„ The data of the last defined tool
„ Active coordinate transformations (e.g. datum shift, rotation,
mirroring)
„ The coordinates of the circle center that was last defined

Note that the stored data remain active until they are reset
(e.g. if you select a new program).

The stored data are used for returning the tool to the contour after
manual machine axis positioning during an interruption (RESTORE
POSITION soft key).

Resuming program run with the START button


You can resume program run by pressing the machine START button
if the program was interrupted in one of the following ways:
„ The machine STOP button was pressed.
„ An interruption was programmed.

Resuming program run after an error


If the error message is not blinking:
8 Remove the cause of the error.
8 To clear the error message from the screen, press the CE key.
8 Restart the program, or resume program run where it was
interrupted.
If the error message is blinking:
8 Press and hold the END key for two seconds. This induces a TNC
system restart.
8 Remove the cause of the error.
8 Start again.
If you cannot correct the error, write down the error message and
contact your repair service agency.

568 12 Test Run and Program Run


12.4 Program Run
Mid-program startup (block scan)

The RESTORE POS AT N feature must be enabled and


adapted by the machine tool builder. Refer to your
machine manual.

With the RESTORE POS AT N feature (block scan) you can start a part
program at any block you desire. The TNC scans the program blocks
up to that point. Machining can be graphically simulated.
If you have interrupted a part program with an INTERNAL STOP, the
TNC automatically offers the interrupted block N for mid-program
startup.
If the program was interrupted by one of the conditions described
below, the TNC saves the point of interruption.
„ EMERGENCY STOP
„ Power interruption
„ Control software crash
After you have called the mid-program startup function, you can press
the soft key SELECT LAST N to reactivate the point of interruption and
approach it with an NC start. After switch-on the TNC then shows the
message NC program was interrupted.

Mid-program startup must not begin in a subprogram.


All necessary programs, tables and pallet files must be
selected in a Program Run mode of operation (status M).
If the program contains a programmed interruption before
the startup block, the block scan is interrupted. Press the
machine START button to continue the block scan.
After a block scan, return the tool to the calculated position
with RESTORE POSITION.
Tool length compensation does not take effect until after
the tool call and a following positioning block. This applies
if you have only changed the tool length.

HEIDENHAIN iTNC 530 569


12.4 Program Run
If you are working with nested programs, you can use
MP7680 to define whether the block scan is to begin at
block 0 of the main program or at block 0 of the last
interrupted program.
If the working plane is tilted, you can use the 3-D ON/OFF
soft key to define whether the TNC is to return to the
contour in a tilted or in a non-tilted coordinate system.
The function M128 is not permitted during a mid-program
startup.
Cycle 247 DATUM SETTING is not permitted during a mid-
program startup.
If you want to use the block scan feature in a pallet table,
select the program in which a mid-program startup is to be
performed from the pallet table by using the arrow keys.
Then press the RESTORE POS AT N soft key.
The TNC skips all touch probe cycles in a mid-program
startup. Result parameters that are written to from these
cycles might therefore remain empty.

570 12 Test Run and Program Run


12.4 Program Run
8 To go to the first block of the current program to start a block scan,
enter GOTO “0”.
8 To select mid-program startup, press the RESTORE
POS AT N soft key.
8 Start-up at N: Enter the block number N at which the
block scan should end.
8 Program: Enter the name of the program containing
block N.
8 Repetitions: If block N is located in a program section
repeat, enter the number of repetitions to be
calculated in the block scan.
8 To start the block scan, press the machine START
button.
8 Contour approach (see following section)

Returning to the contour


With the RESTORE POSITION function, the TNC returns to the
workpiece contour in the following situations:
„ Return to the contour after the machine axes were moved during a
program interruption that was not performed with the
INTERNAL STOP function.
„ Return to the contour after a block scan with RESTORE POS AT N,
for example after an interruption with INTERNAL STOP.
„ Depending on the machine, if the position of an axis has changed
after the control loop has been opened during a program
interruption.
8 To select a return to contour, press the RESTORE POSITION soft
key.
8 Restore machine status, if required.
8 To move the axes in the sequence that the TNC suggests on the
screen, press the machine START button.
8 To move the axes in any sequence, press the soft keys RESTORE X,
RESTORE Z, etc., and activate each axis with the machine START
key.
8 To resume machining, press the machine START key.

HEIDENHAIN iTNC 530 571


12.5 Automatic Program Start
12.5 Automatic Program Start

Function

The TNC must be specially prepared by the machine tool


builder for use of the automatic program start function.
Refer to your machine manual.

In a Program Run operating mode, you can use the soft key
AUTOSTART (see figure at upper right) to define a specific time at
which the program that is currently active in this operating mode is to
be started:
8 Show the window for entering the starting time (see
figure at center right).
8 Time (h:min:sec): Time of day at which the program
is to be started.
8 Date (DD.MM.YYYY): Date at which the program is to
be started.
8 To activate the start, set the AUTOSTART soft key to
ON.

572 12 Test Run and Program Run


12.6 Optional block skip

12.6 Optional block skip


Function
In a test run or program run, the TNC can skip over blocks that begin
with a slash “/”:
8 To run or test the program without the blocks
preceded by a slash, set the soft key to ON.
8 To run or test the program with the blocks preceded
by a slash, set the soft key to OFF.

This function does not work for TOOL DEF blocks.


After a power interruption the control returns to the most
recently selected setting.

Erasing the “/” character


8 In the Programming and Editing mode you select the block in which
the character is to be erased.
8 Erase the “/” character.

HEIDENHAIN iTNC 530 573


12.7 Optional program-run
12.7 Optional program-run interruption
interruption
Function
The TNC optionally interrupts the program run or test run at blocks
containing M01. If you use M01 in the Program Run mode, the TNC
does not switch off the spindle or coolant.
8 Do not interrupt Program Run or Test Run at blocks
containing M01: Set soft key to OFF.
8 Interrupt Program Run or Test Run at blocks
containing M01: Set soft key to ON.

574 12 Test Run and Program Run


MOD Functions
13.1 MOD functions
13.1 MOD functions

The MOD functions provide additional input possibilities and displays.


The available MOD functions depend on the selected operating mode.

Selecting the MOD functions


Call the operating mode in which you wish to change the MOD
functions.
8 To select the MOD functions, press the MOD key.
The figures at right show typical screen menus in
Programming and Editing (figure at upper right), Test
Run (figure at lower right) and in a machine operating
mode (see figure on next page).

Changing the settings


8 Select the desired MOD function in the displayed menu with the
arrow keys.
There are three possibilities for changing a setting, depending on the
function selected:
„ Enter a numerical value directly, e.g. when determining traverse
range limit.
„ Change a setting by pressing the ENT key, e.g. when setting
program input.
„ Change a setting via a selection window. If more than one possibility
is available for a particular setting, you can superimpose a window
listing all of the given possibilities by pressing the GOTO key. Select
the desired setting directly by pressing the corresponding numerical
key (to the left of the colon), or by using the arrow keys and then
confirming with ENT. If you don’t want to change the setting, close
the window again with END.

Exiting the MOD functions


8 Close the MOD functions with the END key or soft key.

Overview of MOD functions


Depending on the selected mode of operation, you can make the
following changes:
Programming and Editing:
„ Display software numbers
„ Enter code number
„ Set data interface
„ Machine-specific user parameters (if provided)
„ HELP files (if provided)
„ Loading service packs

576 13 MOD Functions


13.1 MOD functions
Test Run:
„ Display software numbers
„ Enter code number
„ Setting the data interface
„ Showing the Workpiece in the Working Space
„ Machine-specific user parameters (if provided)
„ Displaying HELP files (if provided)
In all other modes:
„ Display software numbers
„ Display code digits for installed options
„ Select position display
„ Unit of measurement (mm/inches)
„ Programming language for MDI
„ Select the axes for actual position capture
„ Set the axis traverse limits
„ Display reference points
„ Display operating times
„ HELP files (if provided)

HEIDENHAIN iTNC 530 577


13.2 Software Numbers and
13.2 Software Numbers and Option Numbers
Option Numbers
Function
The following software numbers are displayed on the TNC screen
after the MOD functions have been selected:
„ NC: Number of the NC software (managed by HEIDENHAIN)
„ PLC: Number and name of the PLC software (managed by your
machine tool builder)
„ DSP1: Number of the speed controller software (managed by
HEIDENHAIN)
„ ICTL1: Number of the current controller software (managed by
HEIDENHAIN)
In addition, coded numbers for the options available on your control
are displayed after the abbreviation OPT:
No options active %0000000000000000
Bit 0 to bit 7: Additional control loops %0000000000000011
Bit 8 to bit 15: Software options %0000001100000011

578 13 MOD Functions


13.3 Code Numbers

13.3 Code Numbers


Function
The TNC requires a code number for the following functions:

Function Code number


Select user parameters 123

Configure an Ethernet card (not NET123


iTNC 530 with Windows 2000)

Enable special functions for 555343


Q-parameter programming

In addition, you can use the keyword version to create a file containing
all current software numbers of your control:
8 Enter the keyword version and confirm with the ENT key.
8 The TNC displays all current software numbers on the screen.
8 To terminate the version overview, press the END key.

If necessary, you can output the file version.a saved in


the directory TNC:, and send it to your machine
manufacturer or HEIDENHAIN for diagnostic purposes.

HEIDENHAIN iTNC 530 579


13.4 Loading Service Packs
13.4 Loading Service Packs

Function

We strongly recommend contacting your machine tool


builder before you install a service pack.
The TNC restarts the system after the installation
procedure is completed. Before loading the service pack,
put the machine in the EMERGENCY STOP condition.
Connect the network drive from which you want to import
the service pack (if not already done).

This function provides a simple way of updating the software of your


TNC.
8 Select the Programming and Editing mode of operation.
8 Press the MOD key.
8 To start the software update, press the “Load Service Pack” soft
key. The TNC then displays a superimposed window for selecting
the update file.
8 Use the arrow keys to select the directory in which the service pack
is stored. The respective subdirectories can be shown by pressing
the ENT key.
8 To select the file: Press the ENT key twice on the selected directory.
The TNC switches from the directory window to the file window.
8 To start the updating process, press the ENT key to select the file.
The TNC unpacks all required files and then restarts the control. This
process may take several minutes.

580 13 MOD Functions


13.5 Setting the Data Interfaces
13.5 Setting the Data Interfaces
Function
To set up the data interfaces, press the RS-232 / RS-422 SETUP soft
key to call a menu for setting the data interfaces:

Setting the RS-232 interface


The mode of operation and baud rates for the RS-232 interface are
entered in the upper left of the screen.

Setting the RS-422 interface


The mode of operation and baud rates for the RS-422 interface are
entered in the upper right of the screen.

Setting the OPERATING MODE of the external


device

The functions “Transfer all files,” “Transfer selected file,”


and “Transfer directory” are not available in the operating
modes FE2 and EXT.

Setting the BAUD RATE


You can set the BAUD RATE (data transfer speed) from 110 to 115 200
baud.
Operating
External device Symbol
mode
PC with HEIDENHAIN software LSV2
TNCremo for remote operation of
the TNC

PC with HEIDENHAIN data transfer FE1


software TNCremo

HEIDENHAIN floppy disk units


FE 401 B FE1
FE 401 from prog. no. 230 626 03 FE1

HEIDENHAIN floppy disk unit FE2


FE 401 up to prog. no. 230 626 02

Non-HEIDENHAIN devices such as EXT1, EXT2


punchers, PC without TNCremo

HEIDENHAIN iTNC 530 581


13.5 Setting the Data Interfaces
Assign
This function sets the destination for the transferred data.
Applications:
„ Transferring values with Q parameter function FN15
„ Transferring values with Q parameter function FN16
The TNC mode of operation determines whether the PRINT or PRINT
TEST function is used:
TNC mode of operation Transfer function
Program Run, Single Block PRINT

Program Run, Full Sequence PRINT

Test Run PRINT TEST

You can set PRINT and PRINT TEST as follows:


Function Path
Output data via RS-232 RS232:\....

Output data via RS-422 RS422:\....

Save data to the TNC’s hard disk TNC:\....

Save the data in the same directory as the - vacant -


program with FN15/FN16.

File names

Data Operating mode File name


Values with FN15 Program Run %FN15RUN.A

Values with FN15 Test Run %FN15SIM.A

Values with FN16 Program Run %FN16RUN.A

Values with FN16 Test Run %FN16SIM.A

582 13 MOD Functions


13.5 Setting the Data Interfaces
Software for data transfer
For transfer of files to and from the TNC, we recommend using the
HEIDENHAIN TNCremoNT data transfer software. With TNCremoNT,
data transfer is possible with all HEIDENHAIN controls via the serial
interface or the Ethernet interface.

You can download the current version of TNCremoNT free


of charge from the HEIDENHAIN Filebase
(www.heidenhain.de, <service>, <download area>,
<TNCremo NT>).

System requirements for TNCremoNT:


„ PC with 486 processor or higher
„ Operating system Windows 95, Windows 98, Windows NT 4.0,
Windows 2000
„ 16 MB RAM
„ 5 MB free memory space on your hard disk
„ An available serial interface or connection to the TCP/IP network

Installation under Windows


8 Start the SETUP.EXE installation program with the file manager
(Explorer).
8 Follow the setup program instructions.

Starting TNCremoNT under Windows


8 Click <Start>, <Programs>, <HEIDENHAIN Applications>,
<TNCremoNT>
When you start TNCremoNT for the first time, TNCremoNT
automatically tries to set up a connection with the TNC.

HEIDENHAIN iTNC 530 583


13.5 Setting the Data Interfaces Data transfer between the TNC and TNCremoNT
Check whether the TNC is connected to the correct serial port on your
PC or to the network, respectively.
Once you have started TNCremoNT, you will see a list of all files that
are stored in the active directory in the upper section of the main
window 1. Using the menu items <File> and <Change directory>, you
can change the active directory or select another directory on your PC.
If you want to control data transfer from the PC, establish the
connection with your PC in the following manner:
8 Select <File>, <Setup connection>. TNCremoNT now receives the
file and directory structure from the TNC and displays this at the
bottom left of the main window 2.
8 To transfer a file from the TNC to the PC, select the file in the TNC
window with a mouse click and drag and drop the highlighted file
into the PC window 1.
8 To transfer a file from the PC to the TNC, select the file in the PC
window with a mouse click and drag and drop the highlighted file
into the TNC window 2.
If you want to control data transfer from the TNC, establish the
connection with your PC in the following way:
8 Select <Extras>, <TNCserver>. TNCremoNT is now in server mode.
It can receive data from the TNC and send data to the TNC.
8 You can now call the file management functions on the TNC by
pressing the key PGM MGT (see “Data transfer to or from an
external data medium” on page 106) and transfer the desired files.

End TNCremoNT
Select the menu items <File>, <Exit>.

Refer also to the TNCremoNT context-sensitive help texts


where all of the functions are explained in more detail. The
help texts must be called with the F1 key.

584 13 MOD Functions


13.6 Ethernet Interface

13.6 Ethernet Interface


Introduction
The TNC is shipped with a standard Ethernet card to connect the
control as a client in your network. The TNC transmits data via the
Ethernet card with
„ the smb protocol (server message block) for Windows operating
systems, or
„ the TCP/IP protocol family (Transmission Control Protocol/Internet
Protocol) and with support from the NFS (Network File System).

Connection possibilities
You can connect the Ethernet card in your TNC to your network
through the RJ45 connection (X26, 100BaseTX or 10BaseT), or directly
to a PC. The connection is metallically isolated from the control
electronics.
For a 100BaseTX or 10BaseT connection you need a Twisted Pair
cable to connect the TNC to your network.
TNC
The maximum cable length between TNC and a node PC
depends on the quality grade of the cable, the sheathing
and the type of network (100BaseTX or 10BaseT).
If you connect the TNC directly with a PC you must use a
10BaseT / 100BaseTx
transposed cable.

HEIDENHAIN iTNC 530 585


13.6 Ethernet Interface
Connecting the iTNC directly with a Windows PC
You don’t need any large effort or special networking knowledge to
attach the iTNC 530 directly to a PC that has an Ethernet card. You
simply have to make some settings on the TNC and the corresponding
settings on the PC.

Settings on the iTNC


8 Connect the iTNC (connection X26) and the PC with a crossed
Ethernet cable (trade names: crossed patch cable or STP cable).
8 In the Programming and Editing mode of operation, press the MOD
key. Enter the keyword NET123. The iTNC will then display the main
screen for network configuration (see figure at top right).
8 Press the DEFINE NET soft key to enter the network setting for a
specific device (see figure at center right).
8 Enter any network address. Network addresses consist of four
numbers separated by periods, e.g. 160.1.180.23
8 Press the right arrow key to select the next column, and enter the
subnet mask. The subnet mask also consists of four numbers
separated by periods, e.g. 255.255.0.0
8 Press the END key to leave the network configuration screen.
8 Press the DEFINE MOUNT soft key to enter the network settings
for a specific PC (see figure at bottom right).
8 Define the PC name and drive that you want to access, beginning
with two slashes, e.g. //PC3444/C
8 Press the right arrow key to select the next column, and enter the
name that the iTNC’s file manager uses to display the PC, e.g.
PC3444:
8 Press the right arrow key to select the next column, and enter the
file system type smb
8 Press the right arrow key to select the next column and enter the
following information (depending on the PC operating system):
ip=160.1.180.1,username=abcd,workgroup=SALES,password=uvwx
8 To exit the network configuration, press the END key twice. The
iTNC restarts automatically.

The parameters username, workgroup and password do not


need to be entered in all Windows operating systems.

586 13 MOD Functions


13.6 Ethernet Interface
Settings on a PC with Windows 2000

Prerequisite:
The network card must already be installed on the PC and
ready for operation.
If the PC that you want to connect the iTNC to is already
integrated in your company network, then keep the PC’s
network address and adapt the iTNC’s network address
accordingly.

8 To open Network Connections, click <Start>, <Control Panel>,


<Network and Dial-up Connections>, and then Network
Connections.
8 Right-click the <LAN connection> symbol, and then <Properties> in
the menu that appears.
8 Double-click <Internet Protocol (TCP/IP)> to change the IP settings
(see figure at top right).
8 If it is not yet active, select the <Use the following IP address>
option.
8 In the <IP address> input field, enter the same IP address that you
entered for the PC network settings on the iTNC, e.g. 160.1.180.1
8 Enter 255.255.0.0 in the <Subnet mask> input field.
8 Confirm the settings with <OK>.
8 Save the network configuration with <OK>. You may have to restart
Windows now.

HEIDENHAIN iTNC 530 587


13.6 Ethernet Interface
Configuring the TNC

To configure the dual-processor version: See “Network


Settings,” page 645.
Make sure that the person configuring your TNC is a
network specialist.

8 In the Programming and Editing mode of operation, press the MOD


key. Enter the keyword NET123. The TNC will then display the main
screen for network configuration.

General network settings


8 Press the DEFINE NET soft key to enter the general network
settings and enter the following information:

Setting Meaning
ADDRESS Address that your network specialist must
assign to the TNC. Input: four numerical values
separated by points, e.g. 160.1.180.20

MASK The SUBNET MASK serves to differentiate


between the network ID and the host ID in the
network. Input: four numerical values separated
by points. Ask your network specialist for the
values, e.g. 255.255.0.0

BROADCAST The broadcast address of the control is required


only if it differs from the standard setting. The
standard setting is formed from the network ID
and the host ID, for which all bits are set to 1,
e.g. 160.1.255.255

ROUTER Internet address of your default router. Enter


the Internet address only if your network
consists of several parts. Input: four numerical
values separated by points. Ask your network
specialist for the values, e.g. 160.1.0.2

HOST Name under which the TNC identifies itself in


the network

DOMAIN Domain name of the control (is not evaluated


until later)

NAMESERVER Network address of the domain server (is not


evaluated until later)

You do not need to indicate the protocol with the


iTNC 530. It uses the transmission protocol according to
RFC 894.

588 13 MOD Functions


13.6 Ethernet Interface
Network settings specific to the device
8 Press the soft key DEFINE MOUNT to enter the network settings
for a specific device. You can define any number of network
settings, but you can manage only seven at one time.

Setting Meaning
MOUNTDEVICE „ Connection via NFS:
Name of the directory that is to be logged on.
This is formed by the network address of the
server, a colon and the name of the directory
to be mounted. Input: four numerical values
separated by points. Ask your network
specialist for the values, e.g. 160.1.13.4.
Directory of the NFS server that you wish to
connect to the TNC. Be sure to differentiate
between small and capital letters when
entering the path.
„ Connection via smb:
Enter the network name and the share name
of the computer, e.g. //PC1791NT/C

MOUNTPOINT Name that the TNC shows in the file manager


for a connected device. Remember that the
name must end with a colon.

FILESYSTEM- File system type.


TYPE nfs: Network File System
smb: Server Message Block (Windows
protocol)

OPTIONS for Data without spaces, separated by commas,


FILESYSTEM- and written in sequence. Switch between
TYPE=nfs upper and lower case letters.
rsize=: Packet size in bytes for data reception.
Input range: 512 to 8192
wsize=: Packet size in bytes for data
transmission. Input range: 512 to 8192
time0=: Time, in tenths of a second, after
which the TNC repeats a Remote Procedure
Call. Input range: 0 to 100 000. If there is no
entry, the standard value 7 is used. Use higher
values only if the TNC must communicate with
the server through several routers. Ask your
network specialist for the proper value.
soft=: Definition of whether the TNC should
repeat the Remote Procedure Call until the NFS
server answers.
“soft” entered: Do not repeat the Remote
Procedure Call.
“soft” not entered: Always repeat the Remote
Procedure Call.

HEIDENHAIN iTNC 530 589


13.6 Ethernet Interface
Setting Meaning
OPTIONS for Data without spaces, separated by commas,
FILESYSTEM- and written in sequence. Switch between
TYPE=smb for upper and lower case letters.
direct ip=:: IP address of PC to which the TNC is to
connection to be connected
Windows username=: User name under which the TNC is
networks to log on
workgroup=: Work group under which the TNC
is to log on
password=: Password that the TNC is to use for
logon (up to 80 characters)

AM Definition of whether the TNC upon switch-on


should automatically connect with the network
drive.
0: Do not automatically connect
1: Connect automatically

The entries username, workgroup and password in the


OPTIONS column may not be necessary in Windows 95
and Windows 98 networks.
With the ENCODE PASSWORD soft key, you can encode
the password defined under OPTIONS.

Defining a network identification


8 Press the soft key DEFINE UID / GID to enter the network
identification.

Setting Meaning
TNC USER ID Definition of the User Identification under
which the end user accesses files in the
network. Ask your network specialist for the
proper value.

OEM USER ID Definition of the User Identification under


which the machine manufacturer accesses
files in the network. Ask your network
specialist for the proper value.

TNC GROUP ID Definition of the group identification with


which you access files in the network. Ask
your network specialist for the proper value.
The group identification is the same for end
users and machine manufacturers.

UID for mount Defines the user identification (UID) for the
log-on procedure.
USER: The user logs on with the USER
identification.
ROOT: The user logs on with the ID of the
ROOT user, value = 0.

590 13 MOD Functions


13.6 Ethernet Interface
Test network connection
8 Press the PING soft key.
8 In the HOST line, enter then internet address of the computer for
which you want to check the network connection.
8 Confirm your entry with the ENT key. The TNC transmits data
packets until you exit the test monitor by pressing the END key.
In the TRY line the TNC shows the number of data packets that were
transmitted to the previously defined addressee. Behind the number
of transmitted data packets the TNC shows the status:
Status display Meaning
HOST RESPOND Data packet was received again, connection is
OK.

TIMEOUT Data packet was not received, check the


connection.

CAN NOT ROUTE Data packet could not be transmitted. Check


the Internet address of the server and of the
router to the TNC.

HEIDENHAIN iTNC 530 591


13.7 Configuring PGM MGT
13.7 Configuring PGM MGT

Function
Use the MOD functions to specify which directories or files are to be
displayed by the TNC:
„ PGM MGT setting: Simple file management (directories are not
displayed) or enhanced file management (directories are displayed).
„ Dependent files setting: Specify whether dependent files are
displayed.

Note: see “Standard File Management” on page 89, and


see “Advanced File Management” on page 96.

Changing the PGM MGT setting


8 To select the file manager in the Programming and Editing mode of
operation, press the PGM MGT key
8 To select the MOD function, press the MOD key.
8 To select the PGM MGT setting: Using the arrow keys, move the
highlight onto the PGM MGT setting and use the ENT key to switch
between STANDARD and ENHANCED.

592 13 MOD Functions


13.7 Configuring PGM MGT
Dependent files
In addition to the file extension, dependent files also have the
extension .SEC.DEP (SECtion, DEPendent). The following different
types are available:
„ .H.SEC.DEP
The TNC creates files with the .SEC.DEP extension if you work with
the structure function. The file contains information needed by the
TNC to rapidly jump from one structure point to the next.
„ .T.SEC.DEP: Tool usage file for individual conversational-format
programs
The TNC creates files with the .T.DEP extension if
„ bit 2 of the machine parameter 7246=1 is set
„ the machining timer is active in the Test Run operating mode
„ a plain language program is being run in the Test run mode
„ .P.T.SEC.DEP: Tool usage file for a complete pallet
The TNC creates files with the .P.T.DEP ending if, in a program run
mode, you run the tool usage test (see “Tool Usage Test” on page
594) for a pallet entry of the active pallet file. This file then lists the
sum of all tool usage times of all tools that you use within a pallet.
In a tool usage file, the TNC saves the following information:
Column Meaning
TOKEN „ TOOL: Tool usage time per TOOL CALL. The
entries are listed in chronological order.
„ TTOTAL: Total usage time of a tool
„ STOTAL: Call of a subprogram (including
cycles). The entries are listed in
chronological order.

TNR Tool number (–1: No tool inserted yet)

IDX Tool index

NAME Tool name from the tool table

TIME Tool usage time in seconds

RAD Tool radius R + Oversize of tool radius DR


from the tool table. The unit is 0.1 µm

BLOCK Block number in which the TOOL CALL block


was programmed

PATH „ TOKEN = TOOL: Path name of the active main


program or subprogram
„ TOKEN = STOTAL: Path name of the
subprogram

HEIDENHAIN iTNC 530 593


13.7 Configuring PGM MGT Tool Usage Test
With the TOOL USAGE TEST soft key, you can check before starting
a program in a Program Run operating mode whether the tool being
used has enough service life remaining. Here the TNC compares the
actual values for service life in the tool table with the nominal values
from the tool requirement file.
The TNC can show a tool's remaining service life in a pop-up window.
There are two ways to run a tool usage test for a pallet file:
„ The highlight is on a pallet entry in the pallet file:
The TNC runs the tool usage test for the entire pallet.
„ The highlight is on a program entry in the pallet file:
The TNC runs the tool usage test for the selected program.

Changing the MOD setting for dependent files


8 To select the file manager in the Programming and Editing mode of
operation, press the PGM MGT key
8 To select the MOD function, press the MOD key.
8 To select the Dependent files setting: Using the arrow keys, move
the highlight onto the Dependent files setting and use the ENT key
to switch between AUTOMATIC and MANUAL.

Dependent files are only visible in the file manager if you


selected the MANUAL setting.
If dependent files exist for a file, then the TNC displays a +
character in the status column of the file manager (only if
Dependent files is set to AUTOMATIC).

594 13 MOD Functions


13.8 Machine-Specific User

13.8 Machine-Specific User Parameters


Parameters
Function
To enable you to set machine-specific functions, your machine tool
builder can define up to 16 machine parameters as user parameters.

This function is not available on all TNCs. Refer to your


machine manual.

HEIDENHAIN iTNC 530 595


13.9 Showing the Workpiece in the
13.9 Showing the Workpiece in the Working Space
Working Space
Function
This MOD function enables you to graphically check the position of the
workpiece blank in the machine's working space and to activate work
space monitoring in the Test Run mode of operation.
The TNC displays a transparent cuboid for the working space. Its
dimensions are shown in the Traverse range table (standard color is
green). The TNC takes the dimensions for the working space from the
machine parameters for the active traverse range. Since the traverse
range is defined in the reference system of the machine, the datum of
the cuboid is also the machine datum. You can see the position of the
machine datum in the cuboid by pressing the soft key M91 in the 2nd
soft-key row.
another transparent cuboid represents the workpiece blank. Its
dimensions are shown in the BLK FORM table (standard color is blue).
The TNC takes the dimensions from the workpiece blank definition of
the selected program. The workpiece cuboid defines the coordinate
system for input. Its datum lies within the traverse-range cuboid. You
can view the position of the active datum within the traverse range by
pressing the "Show tool datum" soft-key (2nd soft-key row).
For a test run it normally does not matter where the workpiece blank
is located within the working space. However, if you test programs
that contain movements with M91 or M92, you must graphically shift
the workpiece blank to prevent contour damage. Use the soft keys
shown in the following table.
You can also activate the working-space monitor for the Test Run
mode in order to test the program with the current datum and the
active traverse ranges (see table below, last line).

Function Soft key


Move workpiece blank to the left

Move workpiece blank to the right

Move workpiece blank forward

Move workpiece blank backward

Move workpiece blank upward

Move workpiece blank downward

596 13 MOD Functions


13.9 Showing the Workpiece in the Working Space
Function Soft key
Show workpiece blank referenced to the set datum

Show the entire traversing range referenced to the


displayed workpiece blank

Show the machine datum in the working space

Show a position determined by the machine tool


builder (e.g. tool change position) in the working
space

Show the workpiece datum in the working space

Enable (ON) or disable (OFF) working-space


monitoring

Rotate the entire image


The third soft-key row provided functions with which you can rotate
and tilt the entire image:

Function Soft keys


Rotate the image about the vertical axis

Tilt the image about the horizontal axis

HEIDENHAIN iTNC 530 597


13.10 Position Display Types
13.10 Position Display Types
Function
In the Manual Operation mode and in the Program Run modes of
operation, you can select the type of coordinates to be displayed.
The figure at right shows the different tool positions:
„ Starting position
„ Target position of the tool
„ Workpiece datum
„ Machine datum
The TNC position displays can show the following coordinates:
Function Display
Nominal position: the value presently NOML.
commanded by the TNC

Actual position; current tool position ACTL.

Reference position; the actual position relative to REF


the machine datum

Distance remaining to the programmed position; DIST.


difference between actual and target positions

Servo lag: difference between nominal and actual LAG


positions (following error)

Deflection of the measuring touch probe DEFL.

Traverses that were carried out with handwheel M118


superpositioning (M118)
(only Position display 2)

With the MOD function Position display 1, you can select the position
display in the status display.
With Position display 2, you can select the position display in the
additional status display.

598 13 MOD Functions


13.11 Unit of Measurement

13.11 Unit of Measurement


Function
This MOD function determines whether the coordinates are displayed
in millimeters (metric system) or inches.
„ To select the metric system (e.g. X = 15.789 mm) set the Change
mm/inches function to mm. The value is displayed to 3 decimal
places.
„ To select the inch system (e.g. X = 0.6216 inches) set the Change
mm/inches function to inches. The value is displayed to 4 decimal
places.
If you would like to activate the inch display, the TNC shows the feed
rate in inch/min. In an inch program you must enter the feed rate larger
by a factor of 10.

HEIDENHAIN iTNC 530 599


13.12 Select the Programming Language for $MDI
13.12 Select the Programming
Language for $MDI
Function
The Program input MOD function lets you decide whether to program
the $MDI file in HEIDENHAIN conversational dialog or in ISO format.
„ To program the $MDI.H file in conversational dialog,
set the Program input function to HEIDENHAIN
„ To program the $MDI.I file according to ISO,
set the Program input function to ISO

600 13 MOD Functions


13.13 Selecting the Axes for

13.13 Selecting the Axes for Generating L Blocks


Generating L Blocks
Function
The axis selection input field enables you to define the current tool
position coordinates that are transferred to an L block. To generate a
separate L block, press the ACTUAL-POSITION-CAPTURE soft key.
The axes are selected by bit-oriented definition similar to programming
the machine parameters:
Axis selection %11111: Transfer the X, Y, Z, IV, and V axes
Axis selection %01111: X, Y, Z, IV. Transfer the axis
Axis selection %00111: Transfer the X, Y and Z axes
Axis selection %00011: Transfer the X and Y axes
Axis selection %00001: Transfer the X axis

HEIDENHAIN iTNC 530 601


13.14 Enter the Axis Traverse Limits,
13.14 Enter the Axis Traverse Limits, Datum Display
Datum Display
Function
The AXIS LIMIT MOD function allows you to set limits to axis traverse
within the machine’s actual working envelope.
Z
Possible application: Protecting an indexing fixture against tool
collision.
The maximum range of traverse of the machine tool is defined by
software limit switches. This range can be additionally limited through Z max
the TRAVERSE RANGE MOD function. With this function, you can Z min
enter the maximum and minimum traverse positions for each axis,
referenced to the machine datum. If several traverse ranges are Y
possible on your machine, you can set the limits for each range
X min
separately using the soft keys TRAVERSE RANGE (1) to TRAVERSE Ymax
RANGE (3).
X max Ymin

Working without additional traverse limits X


To allow a machine axis to use its full range of traverse, enter the
maximum traverse of the TNC (+/- 99 999 mm) as the TRAVERSE
RANGE.

Find and enter the maximum traverse


8 Set the Position display mod function to REF.
8 Move the spindle to the positive and negative end positions of the
X, Y and Z axes.
8 Write down the values, including the algebraic sign.
8 To select the MOD functions, press the MOD key.
8 Enter the limits for axis traverse: Press the TRAVERSE
RANGE soft key and enter the values that you wrote
down as limits in the corresponding axes
8 To exit the MOD function, press the END soft key.

Active tool radius compensations are not taken into


account in the axis traverse limit values.
The traverse range limits and software limit switches
become active as soon as the reference points are
traversed.

602 13 MOD Functions


13.14 Enter the Axis Traverse Limits, Datum Display
Datum display
The values shown at the top right of the screen define the currently
active datum. The datum can have been set manually or can have been
activated from the preset table. The datum cannot be changed in the
screen menu.

The displayed values depend on your machine


configuration. Refer to the notes in Chapter 2 (see
“Explanation of values saved in the preset table” on page
68).

HEIDENHAIN iTNC 530 603


13.15 Displaying HELP Files
13.15 Displaying HELP Files

Function
Help files can aid you in situations in which you need clear instructions
before you can continue (for example, to retract the tool after an
interruption of power). The miscellaneous functions may also be
explained in a help file. The figure at right shows the screen display of
a help file.

HELP files are not provided on every machine. Your


machine tool builder can provide you with further
information on this feature.

Selecting HELP files


8 Press the MOD key to select the MOD function.
8 To select the last active HELP file, press the HELP soft
key.
8 Call the file manager (PGM MGT key) and select a
different help file, if necessary.

604 13 MOD Functions


13.16 Display operating times

13.16 Display operating times


Function

The machine tool builder can provide further operating


time displays. The machine tool manual provides further
information.

The MACHINE TIME soft key enables you to show different operating
time displays:

Operating time Meaning


Control ON Operating time of the control since
commissioning

Machine ON Operating time of the machine tool since


commissioning

Program Run Duration of controlled operation since


commissioning

HEIDENHAIN iTNC 530 605


13.17 Teleservice
13.17 Teleservice

Function

The teleservice functions are enabled and adapted by the


machine tool builder. The machine tool manual provides
further information.
The TNC provides two soft keys for teleservice, making it
possible to configure two different service agencies.

The TNC allows you to carry out teleservice. To be able to use this
feature, your TNC should be equipped with an Ethernet card which
achieves a higher data transfer rate than the serial RS232-C interface.
With the HEIDENHAIN TeleService software, your machine tool
builder can then establish a connection to the TNC via an ISDN modem
and carry out diagnostics. The following functions are available:
„ On-line screen transfer
„ Polling of machine states
„ Data transfer
„ Remote control of the TNC

Calling/exiting teleservice
8 Select any machine mode of operation.
8 To select the MOD function, press the MOD key.
8 Establish a connection to the service agency: Set the
SERVICE or SUPPORT soft key to ON. The TNC
breaks the connection automatically if no new data is
transferred for a time set by the machine tool builder
(default: 15 min).
8 To break the connection to the service agency: Set the
SERVICE or SUPPORT soft key to OFF. The TNC
terminates the connection after approx. one minute.

606 13 MOD Functions


13.18 External Access

13.18 External Access


Function

The machine tool builder can configure teleservice


settings with the LSV-2 interface. The machine tool
manual provides further information.

The soft key SERVICE can be used to grant or restrict access through
the LSV-2 interface.
With an entry in the configuration file TNC.SYS you can protect a
directory and its subdirectories with a password. The password is
requested when data from this directory is accessed from the LSV-2
interface. Enter the path and password for external access in the
configuration file TNC.SYS.

The TNC.SYS file must be stored in the root directory


TNC:\.
If you only supply one entry for the password, then the
entire drive TNC:\ is protected.
You should use the updated versions of the HEIDENHAIN
software TNCremo or TNCremoNT to transfer the data.

Entries in TNC.SYS Meaning


REMOTE.TNCPASSWORD= Password for LSV-2 access

REMOTE.TNCPRIVATEPATH= Path to be protected

Example of TNC.SYS
REMOTE.TNCPASSWORD=KR1402
REMOTE.TNCPRIVATEPATH=TNC:\RK

Permitting/Restricting external access


8 Select any machine mode of operation.
8 To select the MOD function, press the MOD key.
8 Permit a connection to the TNC: Set the EXTERNAL
ACCESS soft key to ON. The TNC will then permit
data access through the LSV-2 interface. The
password is requested when a directory that was
entered in the configuration file TNC.SYS is accessed.
8 Block connections to the TNC: Set the EXTERNAL
ACCESS soft key to OFF. The TNC will then block
access through the LSV-2 interface.

HEIDENHAIN iTNC 530 607


Tables and Overviews
14.1 General User Parameters
14.1 General User Parameters

General user parameters are machine parameters affecting TNC


settings that the user may want to change in accordance with his
requirements.
Some examples of user parameters are:
„ Dialog language
„ Interface behavior
„ Traversing speeds
„ Sequence of machining
„ Effect of overrides

Input possibilities for machine parameters


Machine parameters can be programmed as
„ Decimal numbers
Enter only the number
„ Pure binary numbers
Enter a percent sign (%) before the number
„ Hexadecimal numbers
Enter a dollar sign ($) before the number

Example:
Instead of the decimal number 27 you can also enter the binary
number %11011 or the hexadecimal number $1B.
The individual machine parameters can be entered in the different
number systems.
Some machine parameters have more than one function. The input
value for these machine parameters is the sum of the individual
values. For these machine parameters the individual values are
preceded by a plus sign.

Selecting general user parameters


General user parameters are selected with code number 123 in the
MOD functions.

The MOD functions also include machine-specific user


parameters.

610 14 Tables and Overviews


14.1 General User Parameters
External data transfer
Integrating TNC interfaces EXT1 (5020.0) MP5020.x
and EXT2 (5020.1) to an external device 7 data bits (ASCII code, 8th bit = parity): +0
8 data bits (ASCII code, 9th bit = parity): +1

Block Check Character (BCC) any: +0


Block Check Character (BCC) control character not permitted: +2

Transmission stop through RTS active: +4


Transmission stop through RTS inactive: +0

Transmission stop through DC3 active: +8


Transmission stop through DC3 inactive: +0

Character parity even: +0


Character parity odd: +16

Character parity not desired: +0


Character parity desired: +32

Number of stop bits that are transmitted at the end of a character:


1 stop bit: +0
2 stop bits: +64
1 stop bit: +128
1 stop bit: +192
Example:
Use the following setting to adjust the TNC interface EXT2 (MP 5020.1) to
an external non-HEIDENHAIN device:
8 data bits, any BCC, transmission stop through DC3, even character
parity, character parity desired, 2 stop bits
Input for MP 5020.1: 1+0+8+0+32+64 = 105

Interface type for EXT1 (5030.0) and MP5030.x


EXT2 (5030.1) Standard transmission: 0
Interface for blockwise transfer: 1

3-D Touch Probes


Select signal transmission MP6010
Touch probe with cable transmission: 0
Touch probe with infrared transmission: 1

Probing feed rate for triggering touch MP6120


probes 1 to 3000 [mm/min]

Maximum traverse to first probe point MP6130


0.001 to 99 999.9999 [mm]

Safety clearance to probing point during MP6140


automatic measurement 0.001 to 99 999.9999 [mm]

Rapid traverse for triggering touch probes MP6150


1 to 300 000 [mm/min]

HEIDENHAIN iTNC 530 611


14.1 General User Parameters
3-D Touch Probes
Measure center misalignment of the stylus MP6160
when calibrating a triggering touch probe No 180° rotation of the 3-D touch probe during calibration: 0
M function for 180° rotation of the touch probe during calibration: 1 to 999

M function for orienting the infrared sensor MP6161


before each measuring cycle Function inactive: 0
Orientation directly through the NC: -1
M function for orienting the touch probe: 1 to 999

Angle of orientation for the infrared sensor MP6162


0 to 359.9999 [°]

Difference between the current angle of MP6163


orientation and the angle of orientation set 0 to 3.0000 [°]
in MP 6162; when the entered difference is
reached, an oriented spindle stop is to be
carried out.

Automatically orient the infrared sensor MP6165


before probing to the programmed probing Function inactive: 0
direction Orient infrared sensor: 1

Multiple measurement for programmable MP6170


probe function 1 to 3

Confidence range for multiple MP6171


measurement 0.001 to 0.999 [mm]

Automatic calibration cycle: Center of the MP6180.0 (traverse range 1) to MP6180.2 (traverse range3)
calibration ring in the X axis referenced to 0 to 99 999.9999 [mm]
the machine datum

Automatic calibration cycle: Center of the MP6181.x (traverse range 1) to MP6181.2 (traverse range3)
calibration ring in the Y axis referenced to 0 to 99 999.9999 [mm]
the machine datum

Automatic calibration cycle: Upper edge of MP6182.x (traverse range 1) to MP6182.2 (traverse range3)
the calibration ring in the Z axis referenced 0 to 99 999.9999 [mm]
to the machine datum

Automatic calibration cycle: Distance below MP6185.x (traverse range 1) to MP6185.2 (traverse range 3)
the upper edge of the ring where the 0.1 to 99 999.9999 [mm]
calibration is carried out by the TNC

Radius measurement with the TT 130 touch MP6505.0 (traverse range 1) to 6505.2 (traverse range 3)
probe: Probing direction Positive probing direction in the angle reference axis (0° axis): 0
Positive probing direction in the +90° axis: 1
Negative probing direction in the angle reference axis (0° axis): 2
Negative probing direction in the +90° axis: 3

Probing feed rate for second measurement MP6507


with TT 120, stylus shape, corrections in Calculate feed rate for second measurement with TT 130,
TOOL.T with constant tolerance: +0
Calculate feed rate for second measurement with TT 130,
with variable tolerance: +1
Constant feed rate for second measurement with TT 130: +2

612 14 Tables and Overviews


14.1 General User Parameters
3-D Touch Probes
Maximum permissible measuring error MP6510.0
with TT 130 during measurement with 0.001 to 0.999 [mm] (recommended input value: 0.005 mm)
rotating tool
MP6510.1
Required for calculating the probing feed rate in 0.001 to 0.999 [mm] (recommended input value: 0.01 mm)
connection with MP6570

Feed rate for probing a stationary tool with MP6520


the TT 130 1 to 3000 [mm/min]

Radius measurement with the TT 130: MP6530.0 (traverse range 1) to MP6530.2 (traverse range 3)
Distance from lower edge of tool to upper 0.001 to 99.9999 [mm]
edge of stylus

Set-up clearance in the tool axis above the MP6540.0


stylus of the TT 130 for pre-positioning 0.001 to 30 000.000 [mm]

Clearance zone in the machining plane MP6540.1


around the stylus of the TT 130 for pre- 0.001 to 30 000.000 [mm]
positioning

Rapid traverse for TT 130 in the probe cycle MP6550


10 to 10 000 [mm/min]

M function for spindle orientation when MP6560


measuring individual teeth 0 to 999

Measuring rotating tools: Permissible MP6570


rotational speed at the circumference of the 1.000 to 120.000 [m/min]
milling tool
Required for calculating rpm and probe feed
rate

Measuring rotating tools: Permissible MP6572


rotational rpm 0.000 to 1000.000 [rpm]
If you enter 0, the speed is limited to 1000 rpm

HEIDENHAIN iTNC 530 613


14.1 General User Parameters
3-D Touch Probes
Coordinates of the TT 120 stylus center MP6580.0 (traverse range 1)
relative to the machine datum X axis

MP6580.1 (traverse range 1)


Y axis

MP6580.2 (traverse range 1)


Z axis

MP6581.0 (traverse range 2)


X axis

MP6581.1 (traverse range 2)


Y axis

MP6581.2 (traverse range 2)


Z axis

MP6582.0 (traverse range 3)


X axis

MP6582.1 (traverse range 3)


Y axis

MP6582.2 (traverse range 3)


Z axis

Monitoring the position of rotary axes and MP6585


parallel axes Function inactive: 0
Function active: 1

Defining the rotary axes and parallel axes to MP6586.0


be monitored Do not monitor the position of the A axis: 0
Monitor the position of the A axis: 1
MP6586.1
Do not monitor the position of the B axis: 0
Monitor the position of the B axis: 1
MP6586.2
Do not monitor the position of the C axis: 0
Monitor the position of the C axis: 1
MP6586.3
Do not monitor the position of the U axis: 0
Monitor the position of the U axis: 1
MP6586.4
Do not monitor the position of the V axis: 0
Monitor the position of the V axis: 1
MP6586.5
Do not monitor the position of the W axis: 0
Monitor the position of the W axis: 1

614 14 Tables and Overviews


14.1 General User Parameters
TNC displays, TNC editor
Cycles 17, 18 and 207: MP7160
Oriented spindle stop Oriented spindle stop: 0
at beginning of cycle No oriented spindle stop: 1

Programming station MP7210


TNC with machine: 0
TNC as programming station with active PLC: 1
TNC as programming station with inactive PLC: 2

Acknowledgment of MP7212
POWER INTERRUPTED Acknowledge with key: 0
after switch-on Acknowledge automatically: 1

ISO programming: Set MP7220


the block number 0 to 150
increment

Disabling the selection MP7224.0


of file types All file types selectable via soft key: +0
Disable selection of HEIDENHAIN programs (soft key SHOW .H): +1
Disable selection of ISO programs (soft key SHOW .I): +2
Disable selection of tool tables (soft key SHOW .T): +4
Disable selection of datum tables (soft key SHOW .D): +8
Disable selection of pallet tables (soft key SHOW .P): +16
Disable selection of text files (soft key SHOW .A):+32
Disable selection of point tables (soft key SHOW .PNT): +64

Disabling the editor for MP7224.1


certain file types Do not disable editor: +0
Disable editor for
Note:
„ HEIDENHAIN programs: +1
If a particular file type is
inhibited, the TNC will „ ISO programs: +2
erase all files of this type. „ Tool tables: +4
„ Datum tables: +8
„ Pallet tables: +16
„ Text files: +32
„ Point tables: +64

Configure pallet files MP7226.0


Pallet table inactive: 0
Number of pallets per pallet table: 1 to 255

Configure datum files MP7226.1


Datum table inactive: 0
Number of datums per datum table: 1 to 255

Program length for MP7229.0


program check Blocks 100 to 9999

Program length up to MP7229.1


which FK blocks are Blocks 100 to 9999
permitted

HEIDENHAIN iTNC 530 615


14.1 General User Parameters
TNC displays, TNC editor
Dialog language MP7230
English: 0
German: 1
Czech: 2
French: 3
Italian: 4
Spanish: 5
Portuguese: 6
Swedish: 7
Danish: 8
Finnish: 9
Dutch: 10
Polish: 11
Hungarian: 12
Reserved: 13
Russian (Cyrillic character set): 14 (only on the MC 422 B)
Chinese (simplified): 15
Chinese (traditional): 16

Internal clock of the MP7235


TNC Universal time (Greenwich time): 0
Central European Time (CET): 1
Central European Summer Time: 2
Time difference to universal time: -23 to +23 [hours]

Configure tool tables MP7260


Inactive: 0
Number of tools generated by the TNC when a new tool table is opened:
1 to 254
If you require more than 254 tools, you can expand the tool table with the function APPEND N
LINES see “Tool Data” on page 152

Configure pocket MP7261.0 (magazine 1)


tables MP7261.1 (magazine 2)
MP7261.2 (magazine 3)
MP7261.3 (magazine 4)
Inactive: 0
Number of pockets in the tool magazine: 1 to 254
If the value 0 is entered in MP7261.1 to MP7261.3, only one tool magazine will be used.

Index tool numbers in MP7262


order to be able to Do not index: 0
assign different Number of permissible indices: 1 to 9
compensation data to
one tool number

Soft key for pocket MP7263


tables Show the POCKET TABLE soft key in the tool table: 0
Do not show the POCKET TABLE soft key in the tool table: 1

616 14 Tables and Overviews


14.1 General User Parameters
TNC displays, TNC editor
Configure tool table MP7266.0
(To omit from the Tool name – NAME: 0 to 32; column width: 16 characters
table: enter 0); Column MP7266.1
number in the tool Tool length – L: 0 to 32; column width: 11 characters
table for MP7266.2
Tool radius – R: 0 to 32; column width: 11 characters
MP7266.3
Tool radius 2 – R2: 0 to 32; column width: 11 characters
MP7266.4
Oversize length – DL: 0 to 32; column width: 8 characters
MP7266.5
Oversize radius – DR: 0 to 32; column width: 8 characters
MP7266.6
Oversize radius 2 – DR2: 0 to 32; column width: 8 characters
MP7266.7
Tool locked – TL: 0 to 32; column width: 2 characters
MP7266.8
Replacement tool – RT: 0 to 32; column width: 3 characters
MP7266.9
Maximum tool life – TIME1: 0 to 32; column width: 5 characters
MP7266.10
Maximum tool life for TOOL CALL – TIME2: 0 to 32; column width: 5 characters
MP7266.11
Current tool life – CUR. TIME: 0 to 32; column width: 8 characters

HEIDENHAIN iTNC 530 617


14.1 General User Parameters
TNC displays, TNC editor
Configure tool table MP7266.12
(To omit from the Tool comment – DOC: 0 to 32; column width: 16 characters
table: enter 0); Column MP7266.13
number in the tool Number of teeth – CUT.: 0 to 32; column width: 4 characters
table for MP7266.14
Tolerance for wear detection in tool length – LTOL: 0 to 32; column width: 6 characters
MP7266.15
Tolerance for wear detection in tool radius – RTOL: 0 to 32; column width: 6 characters
MP7266.16
Cutting direction – DIRECT.: 0 to 32; column width: 7 characters
MP7266.17
PLC status – PLC: 0 to 32; column width: 9 characters
MP7266.18
Offset of the tool in the tool axis in addition to MP6530 – TT:L-OFFS: 0 to 32
column width: 11 characters
MP7266.19
Offset of the tool between stylus center and tool center – TT:R-OFFS: 0 to 32
column width: 11 characters
MP7266.20
Tolerance for break detection in tool length – LBREAK: 0 to 32; column width: 6 characters
MP7266.21
Tolerance for break detection in tool radius – RBREAK: 0 to 32; column width: 6 characters
MP7266.22
Tooth length (Cycle 22) – LCUTS: 0 to 32; column width: 11 characters
MP7266.23
Maximum plunge angle (Cycle 22) – ANGLE.: 0 to 32; column width: 7 characters
MP7266.24
Tool type –TYP: 0 to 32; column width: 5 characters
MP7266.25
Tool material – TMAT: 0 to 32; column width: 16 characters
MP7266.26
Cutting data table – CDT: 0 to 32; column width: 16 characters
MP7266.27
PLC value – PLC-VAL: 0 to 32; column width: 11 characters
MP7266.28
Center misalignment in reference axis – CAL-OFF1: 0 to 32; column width: 11 characters
MP7266.29
Center misalignment in minor axis – CAL-OFF2: 0 to 32; column width: 11 characters
MP7266.30
Spindle angle for calibration – CALL-ANG: 0 to 32; column width: 11 characters
MP7266.31
Tool type for the pocket table–PTYP: 0 to 32; column width: 2 characters
MP7266.32
Limitation of spindle speed – NMAX: – to 999999; Column width: 6 characters
MP7266.33
Retraction at NC stop – LIFTOFF: Y / N; column width is 1 character

618 14 Tables and Overviews


14.1 General User Parameters
TNC displays, TNC editor
Configure tool pocket MP7267.0
table (to omit from the Tool number – T: 0 to 7
table: enter 0); Column MP7267.1
number in the pocket Special tool – ST: 0 to 7
table for MP7267.2
Fixed pocket – F: 0 to 7
MP7267.3
Pocket locked – L: 0 to 7
MP7267.4
PLC status – PLC: 0 to 7
MP7267.5
Tool name from tool table – TNAME: 0 to 7
MP7267.6
Comment from tool table – DOC: 0 to 77
MP7267.7
Tool type – PTYP: 0 to 99
MP7267.8
Value for PLC – P1: -99999.9999 to +99999.9999
MP7267.9
Value for PLC – P2: -99999.9999 to +99999.9999
MP7267.10
Value for PLC – P3: -99999.9999 to +99999.9999
MP7267.11
Value for PLC – P4: -99999.9999 to +99999.9999
MP7267.12
Value for PLC – P5: -99999.9999 to +99999.9999
MP7267.13
Reserved pocket – RSV: 0 to 1
MP7267.14
Pocket above locked – LOCKED_ABOVE: 0 to 65535
MP7267.15
Pocket below locked – LOCKED_BELOW: 0 to 65535
MP7267.16
Pocket at left locked – LOCKED_LEFT: 0 to 65535
MP7267.17
Pocket at right locked – LOCKED_RIGHT: 0 to 65535

Manual Operation MP7270


mode: Display of feed Display feed rate F only if an axis direction button is pressed: 0
rate Display feed rate F even if no axis direction button is pressed (feed rate defined via soft key F or
feed rate of the “slowest” axis): 1

Decimal character MP7280


The decimal character is a comma: 0
The decimal character is a point: 1

Position display in the MP7285


tool axis Display is referenced to the tool datum: 0
Display in the tool axis is referenced to the
tool face: 1

HEIDENHAIN iTNC 530 619


14.1 General User Parameters
TNC displays, TNC editor
Display step for the MP7289
spindle position 0,1 °: 0
0,05 °: 1
0,01 °: 2
0,005 °: 3
0,001 °: 4
0,0005 °: 5
0,0001 °: 6

Display step MP7290.0 (X axis) to MP7290.8 (9th axis)


0.1 mm: 0
0.05 mm: 1
0.01 mm: 2
0.005 mm: 3
0.001 mm: 4
0.0005 mm: 5
0.0001 mm: 6

Disable datum setting MP7295


Do not disable datum setting: +0
Disable datum setting in the X axis: +1
Disable datum setting in the Y axis: +2
Disable datum setting in the Z axis: +4
Disable datum setting in the IVth axis: +8
Disable datum setting in the Vth axis: +16
Disable datum setting in the 6th axis: +32
Disable datum setting in the 7th axis: +64
Disable datum setting in the 8th axis: +128
Disable datum setting in the 9th axis: +256

Disable datum setting MP7296


with the orange axis Do not disable datum setting: 0
keys Disable datum setting with the orange axis keys: 1

Reset status display, Q MP7300


parameters, tool data Reset all when a program is selected: 0
and machining time Reset all when a program is selected and with M02, M30, END PGM: 1
Reset only status display and tool data when a program is selected: 2
Reset only status display, machining time and tool data when a program is selected and with
M02, M30, END PGM: 3
Reset status display, machining time and Q parameters when a program is selected: 4
Reset status display, machining time, and Q parameters when a program is selected and with
M02, M30, END PGM: 5
Reset status display and machining time when a program is selected: 6
Reset status display and machining time when a program is selected and with M02, M30, END
PGM: 7

Graphic display mode MP7310


Projection in three planes according to ISO 6433, projection method 1: +1
Projection in three planes according to ISO 6433, projection method 2: +1
Do not rotate coordinate for graphic display: +0
Rotate coordinate system for graphic display by 90°: +2
Display new BLK FORM in Cycle 7 DATUM SHIFT referenced to the old datum: +0
Display new BLK FORM in Cycle 7 DATUM SHIFT referenced to the new datum: +4
Do not show cursor position during projection in three planes: +0
Show cursor position during projection in three planes: +8

620 14 Tables and Overviews


14.1 General User Parameters
TNC displays, TNC editor
Graphic simulation MP7315
without programmed 0 to 99 999.9999 [mm]
tool axis: Tool radius

Graphic simulation MP7316


without programmed 0 to 99 999.9999 [mm]
tool axis: Penetration
depth

Graphic simulation MP7317.0


without programmed 0 to 88 (0: Function inactive)
tool axis: M function
for start

Graphic simulation MP7317.1


without programmed 0 to 88 (0: Function inactive)
tool axis: M function
for end

Screen saver MP7392


0 to 99 [min] (0: Function inactive)
Enter the time after
which the TNC should
start the screen saver

HEIDENHAIN iTNC 530 621


14.1 General User Parameters
Machining and program run
Effect of Cycle 11 SCALING FACTOR MP7410
SCALING FACTOR effective in 3 axes: 0
SCALING FACTOR effective in the working plane only: 1

Manage tool data/calibration data MP7411


Take the compensation values for the 3-D touch probe from the calibration
data: +0
Take the compensation values for the 3-D touch probe from the tool table:
+1
Manage calibrated data for the 3-D touch probe in the calibration menu: +0
Manage the calibration data for the 3-D touch probe in the tool table: +2

SL Cycles MP7420
Mill channel around the contour - clockwise for islands and
counterclockwise for pockets: +0
Mill channel around the contour - clockwise for pockets and
counterclockwise for islands: +1
First mill the channel, then rough out the contour: +0
First rough out the contour, then mill the channel: +2
Combine compensated contours: +0
Combine uncompensated contours: +4
Complete one process for all infeeds before switching to the other
process: +0
Mill channel and rough-out for each infeed depth before continuing to the
next depth: +8

The following note applies to the Cycles 6, 15, 16, 21, 22, 23, and 24:
At the end of the cycle, move the tool to the position that was last
programmed before the cycle call: +0
At the end of the cycle, retract the tool in the tool axis only: +16

Cycle 4 POCKET MILLING, Cycle 5 CIRCULAR MP7430


POCKET MILLING, and Cycle 6 ROUGH OUT: 0.1 to 1.414
Overlap factor

Permissible deviation of circle radius MP7431


between circle end point and circle starting 0.0001 to 0.016 [mm]
point

Operation of various miscellaneous MP7440


functions M Program stop with M06: +0
No program stop with M06: +1
Note: No cycle call with M89: +0
The kV factors for position loop gain are set by Cycle call with M89: +2
the machine tool builder. Refer to your machine Program stop with M functions: +0
manual. No program stop with M functions: +4
kV factors cannot be switched through M105 and M106: +0
kV factors switchable through M105 and M106: +8
Reduce the feed rate in the tool axis with M103 F..
Function inactive: +0
Reduce the feed rate in the tool axis with M103 F..
Function active: +16
Exact stop for positioning with rotary axes inactive: +0
Exact stop for positioning with rotary axes active: +64

622 14 Tables and Overviews


14.1 General User Parameters
Machining and program run
Error message during cycle call MP7441
Error message when M3/M4 not active: 0
Suppress error message when M3/M4 not active: +1
Reserved: +2
Suppress error message when positive depth programmed: +0
Output error message when negative depth programmed: +4

M function for spindle orientation in the MP7442


fixed cycles Function inactive: 0
Orientation directly through the NC: -1
M function for orienting the spindle: 1 to 999

Maximum contouring speed at feed rate MP7470


override setting of 100% in the Program Run 0 to 99 999 [mm/min]
modes

Feed rate for rotary-axis compensation MP7471


movements 0 to 99 999 [mm/min]

Compatibility machine parameters for MP7475


datum tables Datum shifts are referenced to the workpiece datum: 0
If the value 1 was entered in older TNC controls or in controls with
software 340 420-xx, datum shifts were referenced to the machine datum.
This function is no longer available. You must now use the preset table
instead of datum tables referenced to REF (see “Datum management with
the preset table” on page 66).

HEIDENHAIN iTNC 530 623


14.2 Pin Layout and Connecting
14.2 Pin Layout and Connecting Cable for the Data Interfaces
Cable for the Data Interfaces
RS-232-C/V.24 interface for HEIDENHAIN
devices

The interface complies with the requirements of


EN 50 178 for “low voltage electrical separation.”

When using the 25-pin adapter block:

Adapter block
TNC Connecting cable 365 725-xx Connecting cable 274 545-xx
310 085-01
Male Assignment Female Color Female Male Female Male Color Female
1 Do not assign 1 1 1 1 1 WH/BN 1
2 RXD 2 Yellow 3 3 3 3 Yellow 2
3 TXD 3 Green 2 2 2 2 Green 3
4 DTR 4 Brown 20 20 20 20 Brown 8
5 Signal GND 5 Red 7 7 7 7 Red 7
6 DSR 6 Blue 6 6 6 6 6
7 RTS 7 Gray 4 4 4 4 Gray 5
8 CTR 8 Pink 5 5 5 5 Pink 4
9 Do not assign 9 8 Violet 20
Hsg. Ext. shield Hsg. Ext. shield Hsg. Hsg. Hsg. Hsg. Ext. shield Hsg.

When using the 9-pin adapter block:

Adapter block
TNC Connecting cable 355 484-xx Connecting cable 366 964-xx
363 987-02
Male Assignment Female Color Male Female Male Female Color Female
1 Do not assign 1 Red 1 1 1 1 Red 1
2 RXD 2 Yellow 2 2 2 2 Yellow 3
3 TXD 3 White 3 3 3 3 White 2
4 DTR 4 Brown 4 4 4 4 Brown 6
5 Signal GND 5 Black 5 5 5 5 Black 5
6 DSR 6 Violet 6 6 6 6 Violet 4
7 RTS 7 Gray 7 7 7 7 Gray 8
8 CTR 8 WH/GN 8 8 8 8 WH/GN 7
9 Do not assign 9 Green 9 9 9 9 Green 9
Hsg. Ext. shield Hsg. Ext. shield Hsg. Hsg. Hsg. Hsg. Ext. shield Hsg.

624 14 Tables and Overviews


14.2 Pin Layout and Connecting Cable for the Data Interfaces
Non-HEIDENHAIN devices
The connector pin layout of a non-HEIDENHAIN device may differ
considerably from that on a HEIDENHAIN device.
This often depends on the unit and type of data transfer. The table
below shows the connector pin layout on the adapter block.

Adapter block 363 987-02 Connecting cable 366 964-xx


Female Male Female Color Female
1 1 1 Red 1
2 2 2 Yellow 3
3 3 3 White 2
4 4 4 Brown 6
5 5 5 Black 5
6 6 6 Violet 4
7 7 7 Gray 8
8 8 8 WH/GN 7
9 9 9 Green 9
Hsg. Hsg. Hsg. Ext. shield Hsg.

HEIDENHAIN iTNC 530 625


14.2 Pin Layout and Connecting Cable for the Data Interfaces
RS-422/V.11 interface
Only non-HEIDENHAIN devices are connected to the RS-422
interface.

The interface complies with the requirements of


EN 50 178 for “low voltage electrical separation.”
The pin layouts on the TNC logic unit (X28) and on the
adapter block are identical.

Connecting cable Adapter block


TNC
355 484-xx 363 987-01
Female Assignment Male Color Female Male Female
1 RTS 1 Red 1 1 1
2 DTR 2 Yellow 2 2 2
3 RXD 3 White 3 3 3
4 TXD 4 Brown 4 4 4
5 Signal GND 5 Black 5 5 5
6 CTS 6 Violet 6 6 6
7 DSR 7 Gray 7 7 7
8 RXD 8 WH/GN 8 8 8
9 TXD 9 Green 9 9 9
Hsg. Ext. shield Hsg. Ext. Hsg. Hsg. Hsg.
shield

Ethernet interface RJ45 socket


Maximum cable length:
„ Unshielded: 100 m
„ Shielded: 400 m
Pin Signal Description
1 TX+ Transmit Data

2 TX– Transmit Data

3 REC+ Receive Data

4 Vacant

5 Vacant

6 REC– Receive Data

7 Vacant

8 Vacant

626 14 Tables and Overviews


14.3 Technical Information

14.3 Technical Information


Explanation of symbols
„ Standard
z Axis option
Software option 1
†Software option 2
User functions
Description „ Basic version: 3 axes plus spindle
z Fourth NC axis plus auxiliary axis
or
z 8 additional axes or 7 additional axes plus 2nd spindle
„ Digital current and speed control

Programming HEIDENHAIN conversational and ISO formats

Position entry „ Nominal positions for line segments and arcs in Cartesian or polar coordinates
„ Absolute or incremental dimensions
„ Display and entry in mm or inches
„ Display of the handwheel path during machining with handwheel superimposition

Tool Compensation „ Tool radius in the working plane and tool length
„ Calculating the radius-compensated contour up to 99 blocks in advance (M120)
„ Three-dimensional tool-radius compensation for subsequent changing of tool data
without having to recalculate the program

Tool tables Multiple tool tables with any number of tools

Cutting data tables Cutting data tables for automatic calculation of spindle speed and feed rate from tool-
specific data (cutting speed, feed per tooth)

Constant cutting speed „ With respect to the path of the tool center
„ With respect to the cutting edge

Background programming Create one program with graphical support while another program is running.

3-D machining †Motion control with minimum jerk


(software option 2) †3-D compensation through surface normal vectors
†Using the electronic handwheel to change the angle of the swivel head during program
run without affecting the position of the tool point (TCPM = Tool Center Point
Management)
†Keeping the tool normal to the contour
†Tool radius compensation normal to the direction of traverse and the tool direction
†Spline interpolation

Rotary table machining Programming of cylindrical contours as if in two axes


(software option 1) Feed rate in length per minute

HEIDENHAIN iTNC 530 627


14.3 Technical Information
User functions
Contour elements „ Straight line
„ Chamfer
„ Circular path
„ Circle center
„ Circle radius
„ Tangentially connecting circle
„ Corner rounding

Contour approach and „ Via straight line: tangential or perpendicular


departure „ Via circular arc

FK free contour programming „ FK free contour programming in HEIDENHAIN conversational format with graphic
support for workpiece drawings not dimensioned for NC

Program jumps „ Subprograms


„ Program section repeat
„ Program as subprogram

Fixed cycles „ Drilling cycles for drilling, pecking, reaming, boring, tapping with a floating tap holder,
rigid tapping
„ Cycles for milling internal and external threads
„ Milling and finishing rectangular and circular pockets
„ Cycles for multipass milling of flat and twisted surfaces
„ Cycles for milling linear and circular slots
„ Linear and circular point patterns
„ Contour pockets—also with contour-parallel machining
„ Contour train
„ OEM cycles (special cycles developed by the machine tool builder) can also be
integrated

Coordinate transformation „ Datum shift, rotation, mirroring


„ Axis-specific scaling
Tilting the working plane (software option 1)

Q parameters „ Mathematic functions =, +, –, *, /, sin α , cos α


Programming with variables 2
a +b
2
a
„ Logical comparisons (=, =/, <, >)
„ Calculating with parentheses
„ tan α, arc sin, arc cos, arc tan, an, en, ln, log, absolute value of a number, the constant
π , negation, truncation of digits before or after the decimal point
„ Functions for calculating circles

Programming support „ Pocket calculator


„ Context-sensitive help function for error messages
„ Graphical support during programming of cycles
„ Comment blocks in the NC program

Actual position capture „ Actual positions can be transferred directly into the NC program

628 14 Tables and Overviews


14.3 Technical Information
User functions
Test Run graphics Graphic simulation before a program run, even while another program is being run
Display modes
„ Plan view / projection in 3 planes / 3-D view
„ Magnification of details

Interactive Programming „ In the Programming and Editing mode, the contour of the NC blocks is drawn on
graphics screen while they are being entered (2-D pencil-trace graphics), even while another
program is running

Program Run graphics „ Graphic simulation of real-time machining in plan view / projection in 3 planes / 3-D
Display modes view

Machining time „ Calculating the machining time in the Test Run mode of operation
„ Display of the current machining time in the Program Run modes

Returning to the contour „ Mid-program startup in any block in the program, returning the tool to the calculated
nominal position to continue machining
„ Program interruption, contour departure and reapproach

Datum tables „ Several datum tables

Pallet tables „ Pallet tables (with as many entries as desired for the selection of pallets, NC programs
and datums) can be machined workpiece by workpiece or tool by tool

Touch Probe Cycles „ Calibrating a touch probe


„ Compensation of workpiece misalignment, manual or automatic
„ Datum setting, manual or automatic
„ Automatic workpiece measurement
„ Cycles for automatic tool measurement

Specifications
Components „ MC 422 main computer
„ CC 422 controller unit
„ Keyboard
„ TFT 10.4-inch or 15.1-inch flat-panel display with soft keys

Program memory „ Hard disk with at least 2 GB for NC programs

Input resolution and display „ To 0.1 µm for linear axes


step „ To 0.0001° for angular axes

Input range „ Maximum 99 999.999 mm (3.937 in.) or 99 999.999°

Interpolation „ Line in 4 axes


†Line in 5 axes (subject to export permit) (software option 1)
„ Arc in 2 axes
Arc in 3 axes with tilted working plane (software option 1)
„ Helix:
Combination of circular and linear motion
„ Spline:
Execution of splines (3rd degree polynomials)

HEIDENHAIN iTNC 530 629


14.3 Technical Information
Specifications
Block processing time „ 3.6 ms
3-D straight line without radius
compensation †0.5 ms (software option 2)

Axis feedback control „ Position loop resolution: Signal period of the position encoder/1024
„ Cycle time of position controller: 1.8 ms
„ Cycle time of speed controller: 600 µs
„ Cycle time of current controller: minimum 100 µs

Traverse range „ Maximum 100 m (3973 inches)

Spindle speed „ Maximum 40 000 rpm (with 2 pole pairs)

Error compensation „ Linear and nonlinear axis error, backlash, reversal spikes during circular movements,
thermal expansion
„ Stick-slip friction

Data interfaces „ One each RS-232-C /V.24 and RS-422 / V.11 max. 115 kilobaud
„ Expanded data interface with LSV-2 protocol for remote operation of the TNC through
the data interface with the HEIDENHAIN software TNCremo
„ Ethernet interface 100 Base T
approx. 2 to 5 megabaud (depending on file type and network load)

Ambient temperature „ Operation: 0 °C to +45 °C (32 °F to 113 °F)


„ Storage: –30 °C to +70 °C (–22 °F to 158 °F)

Accessories
Electronic handwheels „ One HR 410: portable handwheel or
„ One HR 130: panel-mounted handwheel or
„ Up to three HR 150: panel-mounted handwheels via HRA 110 handwheel adapter

Touch probes „ TS 220: 3-D touch trigger probe with cable connection, or
„ TS 632: 3-D touch trigger probe with infrared transmission
„ TT 130: 3-D touch trigger probe for workpiece measurement

630 14 Tables and Overviews


14.3 Technical Information
Software option 1
Rotary table machining Programming of cylindrical contours as if in two axes
„ Feed rate in length per minute

Coordinate transformations Tilting the working plane

Interpolation Circle in 3 axes (with tilted working plane)

Software option 2
3-D machining †Motion control with minimum jerk
†3-D compensation through surface normal vectors
†Using the electronic handwheel to change the angle of the swivel head during program
run without affecting the position of the tool point (TCPM = Tool Center Point
Management)
†Keeping the tool normal to the contour
†Tool radius compensation normal to the direction of traverse and the tool direction
†Spline interpolation

Interpolation †Line in 5 axes (subject to export permit)

Block processing time †0.5 ms

HEIDENHAIN iTNC 530 631


14.3 Technical Information
Input format and unit of TNC functions
Positions, coordinates, circle radii, chamfer –99 999.9999 to +99 999.9999
lengths (5.4: places before decimal point, places after decimal point) [mm]

Tool numbers 0 to 32 767.9 (5.1)

Tool names 16 characters, enclosed by quotation marks with TOOL CALL. Permitted
special characters: #, $, %, &, -

Delta values for tool compensation –99.9999 to +99.9999 (2.4) [mm]

Spindle speeds 0 to 99 999.999 (5.3) [rpm]

Feed rates 0 to 99 999.999 (5.3) [mm/min] or [mm/rev]

Dwell time in Cycle 9 0 to 3600.000 (4.3) [s]

Thread pitch in various cycles –99.9999 to +99.9999 (2.4) [mm]

Angle of spindle orientation 0 to 360.0000 (3.4) [°]

Angle for polar coordinates, rotation, tilting -360.0000 to 360.0000 (3.4) [°]
the working plane

Polar coordinate angle for helical -5400.0000 to 5400.0000 (4.4) [°]


interpolation (CP)

Datum numbers in Cycle 7 0 to 2999 (4.0)

Scaling factor in Cycles 11 and 26 0.000 001 to 99.999 999 (2.6)

Miscellaneous Functions M 0 to 999 (1.0)

Q parameter numbers 0 to 399 (1.0)

Q parameter values -99 999.9999 to +99 999.9999 (5.4)

Labels (LBL) for program jumps 0 to 254 (3.0)

Number of program section repeats REP 1 to 65 534 (5.0)

Error number with Q parameter function 0 to 1 099 (4.0)


FN14

Spline parameter K –9.999 999 99 to +9.999 999 99 (1.8)

Exponent for spline parameter -255 to 255 (3.0)

Surface-normal vectors N and T with 3-D –9.999 999 99 to +9.999 999 99 (1.8)
compensation

632 14 Tables and Overviews


14.4 Exchanging the Buffer Battery

14.4 Exchanging the Buffer Battery


A buffer battery supplies the TNC with current to prevent the data in
RAM memory from being lost when the TNC is switched off.
If the TNC displays the error message Exchange buffer battery, then
you must replace the batteries:

To exchange the buffer battery, first switch off the TNC.


The buffer battery must be exchanged only by trained
service personnel.

Battery type:1 Lithium battery, type CR 2450N (Renata)


ID Nr. 315 878-01
1 The buffer battery is at the back of the MC 422 422 B (see 1,
figure at upper right)
2 Exchange the battery. The new battery can only be inserted
correctly.

HEIDENHAIN iTNC 530 633


iTNC 530 with Windows 2000
(Option)
15.1 Introduction
15.1 Introduction

End User License Agreement (EULA) for


Windows 2000
You have purchased Microsoft software together with the TNC. The
Microsoft software was licensed to HEIDENHAIN by Microsoft
Licensing Inc. or its affiliates (MS). Those installed software products
of MS origin, as well as associated media, printed materials and
"online" or electronic documentation (“SOFTWARE“) are protected
both by international intellectual property laws and treaties. This
SOFTWARE is licensed, not sold. All rights reserved.

If you do not agree to this End User License Agreement


(EULA), you are not permitted to use the TNC or copy the
SOFTWAREPRODUCT. Instead, promptly contact
HEIDENHAIN for instructions on the return of the unused
TNC. Any use of this SOFTWARE, including but not
limited to its use on the TNC, will constitute your
agreement to this EULA (or ratification of any previous
consent).

Grant of software license


You may use the SOFTWARE only on the TNC. This EULA grants you
the following license:

Not tolerant
The SOFTWARE is not fault tolerant. HEIDENHAIN has independently
determined how to use the SOFTWARE in the TNC, and MS has
relied upon HEIDENHAIN to conduct sufficient testing to determine
that the SOFTWARE is suitable for such use.

No warranties for the software


The SOFTWARE is provided “as is” and with all faults. The entire risk
as to satisfactory quality, performance, accuracy and effort (including
lack of negligence) is with you. Also, there is no warranty against
interference with your enjoyment of the software or against
infringement. If you have received any warranties regarding the TNC
or the SOFTWARE those warranties do not originate from and are not
binding on MS.

636 15 iTNC 530 with Windows 2000 (Option)


15.1 Introduction
Note on Java Support
The SOFTWARE may contain support for programs written in Java.
Java technology is not fault tolerant and is not designed,
manufactured or intended for use or resale as online control software
in hazardous environments requiring fail-safe performance, such as in
the operation of nuclear facilities, aircraft navigation or communication
systems, air traffic control, direct life support machines, or weapons
systems, in which the failure of Java technology could lead directly to
death, personal injury or severe physical or environmental damage.
Sun Microsystems, Inc. has contractually obligated MS to make this
disclaimer.

No liability for Certain Damages


Except as prohibited by law, MS shall have no liability for any indirect,
special, consequential or incidental damages arising from or in
connection with the use or performance of the SOFTWARE. This
limitation shall apply even if any remedy fails of its essential purpose.
In no event shall MS be liable for any amount in excess of U.S. two
hundred fifty dollars (U.S. $250.00).

Limitations on Reverse Engineering, Decompilation, and


Disassembly
You may not reverse engineer, decompile or disassemble the
SOFTWARE, except and only to the extent that such activity is
expressly permitted by applicable law notwithstanding this limitation..

Software transfer allowed but with restrictions


You may permanently transfer rights under this EULA only as part of a
permanent sale or transfer of the TNC, and only if the recipient agrees
to this EULA. If the SOFTWARE is an upgrade, any transfer must
include all prior versions of the SOFTWARE.

Export restrictions
You acknowledge that SOFTWARE is subject to U.S. export
jurisdiction. You agree to comply with all applicable international and
national laws that apply to the SOFTWARE, including the U.S. Export
Administration Regulations, as well as end user, end use, and
destination restrictions issued by U.S. and other governments. You
will find more information under http://www.microsoft.com/exporting/
.

HEIDENHAIN iTNC 530 637


15.1 Introduction
General Information

The special features of the iTNC 530 with Windows 2000


are described in this chapter. For the Windows 2000
system functions, please refer to the Windows
documentation.

The TNC controls from HEIDENHAIN have always been user-friendly:


Simple programming in HEIDENHAIN conversational format, field-
proven cycles, unambiguous function keys and clearly structured
graphic functions make them extremely popular shop-floor
programmable controls.
The standard Windows operating system is now also provided as a
user interface. The new and highly efficient HEIDENHAIN hardware
with two processors is the basis for the iTNC 530 with Windows 2000.
The first processor handles real-time jobs and the HEIDENHAIN
operating system, whereas the second processor is available only to
the standard Windows operating system and thus provides the user
access to the world of information technology.
Again, ease of operation has been given top priority:
„ A complete PC keyboard with touch pad is integrated in the
operating panel.
„ The 15-inch high-resolution color flat-panel monitor displays both
the iTNC interface and the Windows applications.
„ Standard PC equipment such as a mouse or drives can easily be
connected to the control through USB interfaces.

638 15 iTNC 530 with Windows 2000 (Option)


15.1 Introduction
Specifications

Specifications iTNC 530 with Windows 2000


Version Dual-processor control with
„ HEROS real-time operating system for
controlling the machine
„ Windows 2000 PC operating system as
user interface

Memory „ Random access memory (RAM)


„ 64 MB for control applications
„ 128 MB for Windows applications
„ Hard disk
„ 2.63 GB for TNC files
„ 9 GB for Windows files, of which approx.
7.7 GB are available for applications

Data interfaces „ Ethernet 10/100 BaseT (up to 100 Mbps


depending on network utilization)
„ RS-232-C/V.24 (max. 115 200 bps)
„ RS-422/V.11 (max. 115 200 bps)
„ 2 x USB
„ 2 x PS/2

HEIDENHAIN iTNC 530 639


15.2 Starting an iTNC 530
15.2 Starting an iTNC 530 Application
Application
Logging on to Windows
After you have switched on the power supply, the iTNC 530 starts
booting automatically. When the input dialog for logging on to
Windows appears, there are two possibilities for logging in:
„ Logging on as a TNC user
„ Logging on as a local administrator

Logging on as a TNC user


8 Enter the user name “TNC” in the User name input box. Leave the
Password input box blank and press the OK button.
8 The TNC software is automatically started. The status message
Starting, please wait... appears in the iTNC Control Panel. .

Do not open or use any other Windows programs as long


as the iTNC Control Panel is displayed (see figure at right).
When the iTNC software has successfully started, the
Control Panel minimizes itself to a HEIDENHAIN symbol
on the task bar.
This user identification permits very limited access to the
Windows operating system. You are neither allowed to
change the network settings, nor are you allowed to install
new software.

640 15 iTNC 530 with Windows 2000 (Option)


15.2 Starting an iTNC 530 Application
Logging on as a local administrator

Please contact your machine tool builder for the user


name and the password.

As a local administrator, you are allowed to install software and change


the network settings.

HEIDENHAIN does not assist you in installing Windows


applications and offers no guarantee for the function of the
applications you installed.
HEIDENHAIN is not liable for faulty hard disk contents
caused by installing updates to third-party software or
additional application software.
If HEIDENHAIN is required to render service after
programs or data have been changed, HEIDENHAIN will
charge you for the service costs incurred.

In order to guarantee the trouble-free function of the iTNC application,


the Windows 2000 system must at all times have sufficient
„ CPU performance
„ free hard disk memory on the C drive
„ RAM
„ bandwidth for the hard drive interface
available.
By sufficiently buffering the TNC data, the control can compensate
brief interruptions (up to one second at a block cycle time of 0.5 ms)
to the data transfer from the Windows PC. However, if the data
transfer from the Windows PC is interrupted for a longer time period,
problems can occur with the feed rate during program run, resulting in
damage to the workpiece.

Keep in mind the following requirements for software


installations:
The program to be installed must not overburden the
computing power of the Windows PC (128 MB RAM,
266 MHz clock frequency).
Programs executed under Windows with the priority
levels above normal, high or real time (e.g. games),
must not be installed.

HEIDENHAIN iTNC 530 641


15.3 Switching Off the iTNC 530
15.3 Switching Off the iTNC 530

Fundamentals
To prevent data from being lost at switch-off, you must shut down the
iTNC 530 properly. The following sections describe the various
possibilities for doing so.

Inappropriate switch-off of the iTNC 530 can lead to data


loss.
Exit the iTNC 530 application before exiting Windows.

Logging a user off


You can log a user off of Windows at any time without adversely
influencing the iTNC software, However, the iTNC screen is not visible
during the log-off process, and you cannot make any entries during
this time.

Note that machine-specific keys (such as NC Start or the


axis direction keys) remain active.

After a new user has logged on, the iTNC screen reappears.

642 15 iTNC 530 with Windows 2000 (Option)


15.3 Switching Off the iTNC 530
Exiting the iTNC application

Caution!
Before you exit the iTNC application, you absolutely must
press the Emergency Stop key. Otherwise you could lose
data or the machine could become damaged.

There are two possibilities for exiting the iTNC application:


„ Internal exiting via the Manual operating mode; simultaneously exits
Windows
„ External exiting via the iTNC Control Panel; only exits the iTNC
application

Internal exiting via the Manual operating mode


8 Select the Manual operating mode
8 Shift the soft-key row until the soft key for shutting down the iTNC
application appears.
8 Select the function for shutting down and confirm the
following dialog prompt again with the YES soft key.
8 When the message It is now safe to turn off your
computer. appears on the iTNC screen, you may
switch off the power supply to the iTNC 530.

External exiting via the iTNC Control Panel


8 Press the Windows key on the ASCII keyboard to minimize the iTNC
application and display the Task Bar.
8 Double-click the green HEIDENHAIN symbol to the lower right in
the Task Bar for the iTNC Control Panel to appear (see figure at
upper right).
8 Select the function for exiting the iTNC 530
application: Press the Stop iTNC button.
8 After you have pressed the Emergency Stop button,
acknowledge the iTNC message with the Yes screen
button. The iTNC application is stopped.
8 The iTNC Control Panel remains active. To restart the
iTNC 530, press the Restart iTNC button.
To exit Windows, select
8 the Start button
8 the menu item Shut down...
8 again the menu item Shut down...
8 and confirm with OK

HEIDENHAIN iTNC 530 643


15.3 Switching Off the iTNC 530
Shutting down Windows
If you try to shut down Windows while the iTNC software is still active,
the control displays a warning (see figure at top right).

Caution!
Before you confirm with OK, you absolutely must press
the Emergency Stop button. Otherwise you could lose
data or the machine could become damaged.

If you confirm with OK, the iTNC software is exited and Windows is
shut down.

Caution!
After several seconds Windows displays its own warning,
covering the iTNC warning (see figure at center right).
Never confirm the warning with End Now, since you could
lose data or the machine could become damaged.

644 15 iTNC 530 with Windows 2000 (Option)


15.4 Network Settings

15.4 Network Settings


Prerequisite

You must log on as a local administrator to be able to


change the network settings. Please contact your machine
tool builder for the required user name and password.
The network should be configured only by network
specialists.

Adjusting the network settings


The iTNC 530 is shipped with two network connections: The Local
Area Connection and the iTNC Internal Connection (see figure at
right).
The Local Area Connection is the iTNC’s connection to its network.
You may adjust all familiar Windows 2000 settings to your network
(also see the Windows 2000 network description).

The iTNC Internal Connection is exactly that: an internal


iTNC connection. The configuration of this connection
must not be changed. Changes might cause the iTNC to
stop functioning.
This internal network address has a default setting of
192.168.254.253 and must not collide with your company
network, meaning that the subnet 192.168.254.xxx
cannot already exist in your network.
The option Obtain IP address automatically must be
inactive.

HEIDENHAIN iTNC 530 645


15.4 Network Settings
Controlling access
Administrators have access to the TNC drives D, E and F. Please note
that some of the data in these partitions is binary encoded, and write-
accesses might lead to undefined behavior of the iTNC.
The partitions D, E and F have access rights for the user groups
SYSTEM and Administrators. The group SYSTEM ensures that the
Windows service that starts the control has access. The group
Administrators ensures that the real-time processor of the iTNC
receives a network connection via the iTNC Internal Connection.

You may not restrict access by these groups, nor may you
add groups and prohibit certain accesses by these groups
(in Windows, access restrictions have priority over access
rights).

646 15 iTNC 530 with Windows 2000 (Option)


15.5 Specifics About File

15.5 Specifics About File Management


Management
The iTNC drive
When you call the iTNC file manager, the left window shows all
available drives. For example:
„ C:\: Windows partition of the built-in hard disk 1 2
„ RS232:\: Serial interface 1
„ RS422:\: Serial interface 2
„ TNC:\: Data partition of the iTNC
There might also be other networks available if you have connected
them with Windows Explorer.

Please note that the data drive of the iTNC appears in the
file manager with the name TNC:\. In Windows Explorer,
this drive (partition) appears with the letter D.
Subdirectories on the TNC drive (e.g. RECYCLER and System
Volume Identifier) are created by Windows 2000 and
may not be deleted.
With machine parameter 7225 you can define letters of
drives that should not be shown in the file management of
the TNC.

If you connect a new network drive with Windows Explorer, you may
have to update the iTNC’s display of available drives:
8 To call the file manager, press the PGM MGT key.
8 Move the highlight to the drive window at left.
8 Switch to the second level of the soft-key row.
8 To update the drive overview, press the UPDATE TREE soft key.

HEIDENHAIN iTNC 530 647


15.5 Specifics About File Management
Data transfer to the iTNC 530

Before you can initiate a data transfer on the iTNC, the


network drive must have been connected with Windows
Explorer. Access to UNC network names (e.g.
\\PC0815\DIR1) is not possible.

TNC-specific files
After integrating the iTNC 530 into your network, you can access any
computer and transfer files to it from the iTNC. However, certain file
types may only be transferred if the data transfer was initiated by the
iTNC. The reason is that these files must be converted into binary
format during the data transfer to the iTNC.

Simply copying the file types listed below to the D drive


using Windows Explorer is both prohibited and useless.

File types that may not be copied using Windows Explorer:


„ Conversational dialog programs (extension .H)
„ ISO programs (extension .I)
„ Tool tables (extension .T)
„ Pocket tables (extension .TCH)
„ Pallet tables (extension .P)
„ Datum tables (extension .D)
„ Point tables (extension .PNT)
„ Cutting data tables (extension .CDT)
„ Freely definable tables (extension .TAB)
Procedure for data transfer: See “Data transfer to or from an external
data medium,” page 106.

ASCII files
There are no limitations regarding the direct copying of ASCII files
(files with the extension .A) with Windows Explorer.

Please note that all the files you want to use on the TNC
must be stored on drive D.

648 15 iTNC 530 with Windows 2000 (Option)


Index

Index
C D
Circular slot Dependent files ... 593
SYMBOLE Reciprocating ... 358 Dialog ... 113
3-D compensation ... 171 Roughing+finishing ... 342 Directory ... 96, 100
Delta values ... 173 Circular stud finishing ... 353 Copying ... 102
Face milling ... 174 Code numbers ... 579 Creating ... 100
Normalized vector ... 172 Constant contouring speed: M90 ... 243 Deleting ... 103
Peripheral milling ... 176 Contour train ... 383 Drilling ... 280, 286, 291
Tool forms ... 172 Conversational format ... 113 Deepened starting point ... 293
Tool orientation ... 173 Converting Drilling cycles ... 278
3-D data ... 415 FK programs ... 220 Dwell time ... 449
3-D view ... 558 Generate backward program ... 485
Converting FK programs ... 220 E
A Coordinate transformation ... 429 Ellipse ... 545
Accessories ... 49 Copying program sections ... 118 Enter the desired spindle speed, ... 164
Actual position capture ... 115, 199 Corner rounding ... 201 Error list ... 131
Adding Comments ... 124 Cutting data calculation ... 178 Error messages ... 130, 131
Animation, PLANE function ... 458 Cutting data table ... 178 Help with ... 130
Approach contour ... 191 Cycle Ethernet Interface
With polar coordinates ... 192 Calling ... 271 Ethernet interface
ASCII files ... 125 Defining ... 269 Configuring ... 588
Automatic cutting data Groups ... 270 Connecting and disconnecting
calculation ... 156, 178 Cycles and point tables ... 276 network drives ... 109
Automatic Program Start ... 572 Cylinder ... 547 Connection possibilities ... 585
Automatic tool measurement ... 156 Cylinder surface Introduction ... 585
Auxiliary axes ... 83 Contour machining ... 385 External Access ... 607
Axis-specific scaling ... 440 Contour milling ... 392 External data transfer
Ridge machining ... 390 iTNC 530 ... 92, 106
B Slot machining ... 387 iTNC 530 with Windows
Back boring ... 288 2000 ... 647
Block scan ... 569 D
after power failure ... 569 Data backup ... 88 F
Blocks Data interface Face milling ... 421
Deleting ... 117 Assigning ... 582 Feed rate ... 63
Inserting, editing ... 117 Pin layout ... 624 Changing ... 63
Bolt hole circle ... 365 Setting ... 581 For rotary axes, M116 ... 257
Bore milling ... 294 Data transfer rate ... 581 Feed rate factor for plunging
Boring ... 284 Data transfer software ... 583 movements: M103 ... 248
Buffer battery, exchanging ... 633 Datum management ... 66 Feed rate in millimeters per spindle
Datum setting ... 64 revolution: M136 ... 249
C During program run ... 533
Calculating Circles ... 513 Without a 3-D touch probe ... 64
Calculating with parentheses ... 536 Datum shift
Chamfer ... 200 With datum tables ... 431
Changing the spindle speed ... 63 Within the program ... 430
Circle center ... 202 Deepened starting point for
Circular path ... 203, 204, 205, 212, 213 drilling ... 293
Circular pocket Define the blank ... 111
Finishing ... 351 Depart contour ... 191
Roughing+finishing ... 333 With polar coordinates ... 192

HEIDENHAIN iTNC 530 649


Index F F L
File Management FN19: PLC: Transfer values to the Laser cutting machines, miscellaneous
Advanced ... 96 PLC ... 531 functions ... 265
Overview ... 97 FN20: WAIT FOR NC and PLC L-block generation ... 601
Calling ... 89, 98 synchronization ... 532 List of error messages ... 131
Configuring with MOD ... 592 FN23: CIRCLE DATA: Calculating a Look-ahead ... 250
Copying a file ... 91, 101 circle from 3 points ... 513
Copying a table ... 102 FN24: CIRCLE DATA: Calculating a M
Deleting a file ... 90, 103 circle from 4 points ... 513 M functions: See Miscellaneous
Dependent files ... 593 FN26:TABOPEN: Opening a Freely functions
Directories ... 96 Definable Table ... 534 Machine parameters
Copying ... 102 FN27: TABWRITE: writing to a freely For 3-D touch probes ... 611
Creating ... 100 definable table ... 534 For external data transfer ... 611
External data transfer ... 92, 106 FN28:TABREAD: Reading a Freely For machining and program
File name ... 87 Definable Table ... 535 run ... 622
File protection ... 95, 105 Full circle ... 203 For TNC displays and TNC
File type ... 87 Fundamentals ... 82 editor ... 615
Overwriting files ... 108 Machine-referenced coordinates: M91,
Renaming a file ... 94, 105 G M92 ... 240
Selecting a file ... 90, 99 Generate backward program ... 485 Measuring the machining time ... 561
Standard ... 89 Graphic simulation ... 560 Milling an inside thread ... 304
Tagging files ... 104 Graphics Mirror image. ... 436
File status ... 89, 98 Display modes ... 556 Miscellaneous Functions
FK Programming ... 218 During programming ... 121 entering ... 238
Circular paths ... 222 Magnifying a detail ... 122 For contouring behavior ... 243
Converting to conversational Magnifying details ... 559 For coordinate data ... 240
dialog ... 220 For laser cutting machines ... 265
Dialog initiation ... 221 H for program run control ... 239
Fundamentals ... 218 Hard disk ... 87 For rotary axes ... 257
Graphics ... 219 Helical interpolation ... 213 For spindle and coolant ... 239
Input possibilities Helical thread drilling/milling ... 314 MOD Function
Auxiliary points ... 226 Helix ... 213 MOD function
Circle data ... 224 Help files, displaying ... 604 Exiting ... 576
Closed contours ... 225 Help with error messages ... 130 Overview ... 576
Direction and length of contour Select ... 576
elements ... 223 I Modes of Operation ... 42
End points ... 223 Inclined-tool machining in a tilted Moving the machine axes ... 54
Relative data ... 227 plane ... 478 In increments ... 55
Straight lines ... 222 Indexed tools ... 159 With the electronic
FK programming Information on formats ... 632 handwheel ... 56, 57
Input possibilities Interactive Programming With the machine axis direction
Floor finishing ... 381 graphics ... 219 buttons ... 54
FN 25: PRESET: Setting a new Interrupt machining. ... 566 Multiaxis machining ... 480
datum ... 533 iTNC 530 ... 38
FN14: ERROR: Displaying error with Windows 2000 ... 636
messages ... 518
FN15: PRINT: Formatted output of K
texts ... 521 Keyboard ... 41
FN15: PRINT: Unformatted output of
texts ... 520
FN18: SYSREAD: Read system
data ... 526

650
Index
N P P
NC and PLC synchronization ... 532 Path functions Program management. See File
NC Error Messages ... 130, 131 Pecking ... 291 management
Nesting ... 495 Deepened starting point ... 293 Program name: See File Management,
Network connection ... 109 Pin layout for data interfaces ... 624 File name
Network connection, testing ... 591 Ping ... 591 Program Run
Network settings ... 588 Plan view ... 556 Block scan ... 569
iTNC 530 with Windows PLANE function ... 456 Executing ... 565
2000 ... 645 Animation ... 458 Interrupting ... 566
Automatic positioning ... 473 Optional block skip ... 573
O Euler angle definition ... 464 Overview ... 565
Oblong hole milling ... 355 Inclined-tool machining ... 478 Resuming after an
Open contours: M98 ... 247 Incremental definition ... 470 interruption ... 568
Operating time ... 605 Points definition ... 468 Program run
Option number ... 578 Positioning behavior ... 472 Program section repeat ... 492
Oriented spindle stop ... 451 Projection angle definition ... 462 Program sections, copying ... 118
Reset ... 459 Programming tool movements ... 113
P Selection of possible Projection in 3 planes ... 557
Pallet table solutions ... 476
Entering coordinates ... 134, 138 Space-angle definition ... 460 Q
executing ... 136, 147 Vector definition ... 466 Q parameters
Function ... 133, 137 PLC and NC synchronization ... 532 Checking ... 516
Selecting and leaving ... 135, 141 Pocket calculator ... 129 Formatted output ... 521
Parametric programming: See Q Pocket table ... 161 Preassigned ... 540
parameter programming Point Patterns Transferring values to the
Part families ... 508 Circular ... 365 PLC ... 531
Path ... 96 Linear ... 367 Unformatted output ... 520
Path contours Overview ... 364 Q-parameter programming ... 506
Cartesian coordinates Point patterns Additional functions ... 517
Circular arc with tangential Point tables ... 274 Basic arithmetic (assign, add,
connection ... 205 Polar Coordinates subtract, multiply, divide, square
Circular path around circle center Approach/depart contour ... 192 root) ... 509
CC ... 203 Fundamentals ... 84 Calculating Circles ... 513
Circular path with defined Programming ... 210 If/then decisions ... 514
radius ... 204 Polar coordinates Programming notes ... 506
Overview ... 198 Positioning Trigonometric functions ... 511
Straight line ... 199 With a tilted working
Free contour programming FK: See plane ... 242, 264 R
FK programming with manual data input (MDI) ... 78 Radius compensation ... 168
Polar Coordinates Preset table ... 66 Input ... 169
Circular arc with tangential Principal axes ... 83 Outside corners, inside
connection ... 213 Probing Cycles: See “Touch Probe corners ... 170
Circular path around pole Cycles” User’s Manual Rapid traverse ... 150
CC ... 212 Program Reaming ... 282
Overview ... 210 Editing ... 116 Rectangular pockets
Straight line ... 212 Open new ... 111 Finishing ... 347
Path Functions Structure ... 110 Roughing+finishing ... 328
Fundamentals ... 186 Structuring ... 123 Rectangular stud finishing ... 349
Circles and circular arcs ... 188 Program call Reference system ... 83
Pre-position ... 189 Program as subprogram ... 493 Replacing texts ... 120
Via cycle ... 450 Retraction from the contour ... 253

HEIDENHAIN iTNC 530 651


Index P S T
Returning to the contour ... 571 Straight line ... 199, 212 Tool Data
Rotary axis Structuring programs ... 123 Calling ... 164
Reducing display: M94 ... 259 Subprogram ... 491 Delta values ... 153
Shorter-path traverse: M126 ... 258 Superimposing handwheel Enter them into the program ... 153
Rotation ... 438 positioning: M118 ... 252 Entering into tables ... 154
Rough out: See SL Cycles: Rough-out Switch between upper and lower case Indexing ... 159
Ruled surface ... 418 letters ... 126 Tool length ... 152
Switch-off ... 53 Tool material ... 156, 180
S Switch-on ... 52 Tool measurement ... 156
Scaling factor ... 439 Tool name ... 152
Screen layout ... 40 T Tool number ... 152
Search function ... 119 Tapping Tool radius ... 153
Select the unit of measure ... 111 With a floating tap holder ... 296 Tool table
Service pack, installing ... 580 Without a floating tap Editing functions ... 158
Setting the BAUD rate ... 581 holder ... 298, 300 Editing, exiting ... 158
Setting the datum ... 86 TCPM ... 480 Input possibilities ... 154
Side finishing ... 382 Cancellation ... 484 Tool type, selecting ... 156
SL Cycles Teleservice ... 606 Tool usage file ... 594
Contour data ... 378 Test Run Tool usage test ... 594
Contour geometry cycle ... 374 Executing ... 563 Touch probe monitoring ... 254
Contour train ... 383 Overview ... 562 Traverse reference points ... 52
Floor finishing ... 381 Speed setting ... 555 Trigonometric functions ... 511
Fundamentals ... 371, 405 Up to a certain block ... 564 Trigonometry ... 511
Overlapping contours ... 375, 408 Text files
Pilot drilling ... 379 Delete functions ... 127 U
Rough-out ... 380 Editing functions ... 126 Universal drilling ... 286, 291
Side finishing ... 382 Finding text sections ... 128 Updating TNC software ... 580
SL Cycles with Contour Formula Opening and exiting ... 125 USB interface ... 638
Slot milling Thread drilling/milling ... 310 User parameters ... 610
Reciprocating ... 355 Thread milling, fundamentals ... 302 General
Roughing+finishing ... 337 Thread milling, outside ... 318 For 3-D touch probes ... 611
Software number ... 578 Thread milling/countersinking ... 306 For external data transfer ... 611
Software options ... 631 Tilted axes ... 260, 261 For machining and program
Software update ... 580 Tilting the working run ... 622
Specifications ... 627 plane ... 72, 441, 456 For TNC displays, TNC
iTNC 530 with Windows Cycle ... 441 editor ... 615
2000 ... 639 Guide ... 445 Machine-specific ... 595
Sphere ... 549 Manually ... 72
Spline interpolation ... 234 TNCremo ... 583 V
Block format ... 234 TNCremoNT ... 583 Version numbers ... 579
Input range ... 235 Tool change ... 165 Visual display unit ... 39
Status display ... 45 Tool Compensation
Additional ... 46 Tool compensation W
General ... 45 Length ... 167 Windows 2000 ... 636
Radius ... 168 Windows, logging on ... 640
Three-dimensional ... 171 WMAT.TAB ... 179
Workpiece material, defining ... 179
Workpiece positions
Absolute ... 85
Incremental ... 85
Workspace monitoring ... 563, 596

652
Table of Cycles
Cycle DEF- CALL-
Cycle designation Page
number active active
7 Datum shift „ page 430

8 Mirror image „ page 436

9 Dwell time „ page 449

10 Rotation „ page 438

11 Scaling factor „ page 439

12 Program call „ page 450

13 Oriented spindle stop „ page 451

14 Contour definition „ page 374

19 Tilting the working plane „ page 441

20 Contour data SL II „ page 378

21 Pilot drilling SL II „ page 379

22 Rough out SL II „ page 380

23 Floor finishing SL II „ page 381

24 Side finishing SL II „ page 382

25 Contour train „ page 383

26 Axis-specific scaling „ page 440

27 Cylinder surface „ page 385

28 Cylindrical surface slot „ page 387

29 Zylinder-Mantel Steg „ page 387

30 3-D data „ page 415

32 Tolerance „ page 451

39 Zylinder-Mantel Außenkontur „ page 387

200 Drilling „ page 280

201 Reaming „ page 282

202 Boring „ page 284

203 Universal drilling „ page 286

204 Back boring „ page 288


Cycle DEF- CALL-
Cycle designation Page
number active active
205 Universal pecking „ page 291

206 Tapping with a floating tap holder, new „ page 296

207 Rigid tapping, new „ page 298

208 Bore milling „ page 294

209 Tapping with chip breaking „ page 300

210 Slot with reciprocating plunge „ page 355

211 Circular slot „ page 358

212 Rectangular pocket finishing „ page 347

213 Rectangular stud finishing „ page 349

214 Circular pocket finishing „ page 351

215 Circular stud finishing „ page 353

220 Point pattern on circle „ page 365

221 Puntemuster auf Linien „ page 367

230 Multipass milling „ page 416

231 Ruled surface „ page 418

232 Face milling „ page 421

247 Datum setting „ page 435

251 Rectangular pocket (complete machining) „ page 328

252 Circular pocket (complete machining) „ page 333

253 Slot milling „ page 337

254 Circular slot „ page 342

262 Thread milling „ page 304

263 Thread milling/countersinking „ page 306

264 Thread drilling/milling „ page 310

265 Helical thread drilling/milling „ page 314

267 Outside thread milling „ page 318


Table of Miscellaneous Functions
M Effect Effective at block start end Page
M00 Stop program/Spindle STOP/Coolant OFF „ page 239

M01 Optional program STOP „ page 574

M02 Stop program/Spindle STOP/Coolant OFF/Clear status display „ page 239


(depending on machine parameter)/Go to block 1

M03 Spindle ON clockwise „ page 239


M04 Spindle ON counterclockwise „
M05 Spindle STOP „

M06 Tool change/Stop program run (depending on machine parameter)/Spindle STOP „ page 239

M08 Coolant ON „ page 239


M09 Coolant OFF „

M13 Spindle ON clockwise/Coolant ON „ page 239


M14 Spindle ON counterclockwise/Coolant ON „

M30 Same function as M02 „ page 239

M89 Vacant miscellaneous function or „ page 271


Cycle call, modally effective (depending on machine parameter) „

M90 Only in lag mode: Constant contouring speed at corners „ page 243

M91 Within the positioning block: Coordinates are referenced to machine datum „ page 240

M92 Within the positioning block: Coordinates are referenced to position defined by machine „ page 240
tool builder, such as tool change position

M94 Reduce display of rotary axis to value under 360° „ page 259

M97 Machine small contour steps „ page 245

M98 Machine open contours completely „ page 247

M99 Blockwise cycle call „ page 271

M101 Automatic tool change with replacement tool if maximum tool life has expired „ page 166
M102 Reset M101 „

M103 Reduce feed rate during plunging to factor F (percentage) „ page 248

M104 Reactivate the datum as last defined „ page 242

M105 Machining with second kv factor „ page 622


M106 Machining with first kv factor „

M107 Suppress error message for replacement tools „ page 165


M108 Reset M107 „
M Effect Effective at block start end Page
M109 Constant contouring speed at tool cutting edge „ page 250
(increase and decrease feed rate)
M110 Constant contouring speed at tool cutting edge „
(feed rate decrease only)
M111 Reset M109/M110 „

M114 Automatic compensation of machine geometry when working with tilted axes „ page 260
M115 Reset M114 „

M116 Feed rate for angular axes in mm/minn „ page 257


M117 Reset M116 „

M118 Superimpose handwheel positioning during program runn „ page 252

M120 Pre-calculate radius-compensated contour (LOOK AHEAD) „ page 250

M124 Do not include points when executing non-compensated line blocks „ page 244

M126 Shortest-path traverse of rotary axes „ page 258


M127 Reset M126 „

M128 Maintain the position of the tool tip when positioning with tilted axes (TCPM) „ page 261
M129 Reset M128 „

M130 Moving to position in an untilted coordinate system with a tilted working plane „ page 242

M134 Exact stop at nontangential contour transitions when positioning with rotary axes „ page 263
M135 Reset M134 „

M136 Feed rate F in millimeters per spindle revolution „ page 249


M137 Reset M136 „

M138 Select tilting axes „ page 263

M140 Retraction from the contour in the tool-axis direction „ page 253

M141 Suppress touch probe monitoring „ page 254

M142 Delete modal program information „ page 255

M143 Delete basic rotation „ page 255

M144 Compensating the machine’s kinematic configuration for ACTUAL/NOMINAL positions at „ page 264
end of block „
M145 Reset M144

M148 Automatically retract tool from the contour at an NC stop „ page 256
M149 Reset M148 „

M200 Laser cutting: Output programmed voltage directly „ page 265


M201 Laser cutting: Output voltage as a function of distance „
M202 Laser cutting: Output voltage as a function of speed „
M203 Laser cutting: Output voltage as a function of time (ramp) „
M204 Laser cutting: Output voltage as a function of time (pulse) „

You might also like