heidenhain TNC 320 Programming Manual

TNC 320

User's Manual HEIDENHAIN Conversational Programming
NC Software 771851-01 771855-01
English (en) 3/2014

Controls of the TNC

Controls of the TNC

Keys on visual display unit

Key Function
Select split screen layout
Toggle the display between machining and programming modes
Soft keys for selecting functions on screen
Shifting between soft-key rows

Machine operating modes

Key Function
Manual operation
Electronic handwheel

Program/file management, TNC functions

Key Function
Select or delete programs and files, external data transfer
Define program call, select datum and point tables
Select MOD functions
Display help text for NC error messages, call TNCguide
Display all current error messages
Show calculator

Navigation keys

Key Function
Move highlight
Positioning with manual data input
Program run, single block
Program run, full sequence

Programming modes

Key Function
Programming
Test run
Go directly to blocks, cycles and parameter functions

Potentiometer for feed rate and spindle speed

Feed rate Spindle speed
2
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
NO
ENT

Cycles, subprograms and program section repeats

Key Function
Define touch probe cycles
Define and call cycles
Enter and call labels for subprogramming and program section repeats
Enter program stop in a program

Tool functions

Key Function
Define tool data in the program
Call tool data

Special functions

Key Function
Show special functions
Select the next tab in forms
Up/down one dialog box or button

Entering and editing coordinate axes and numbers

Key Function
Select coordinate axes or enter
. . .
. . .
them in a program
Numbers
Decimal point / Reverse algebraic sign

Programming path movements

Key Function
Approach/depart contour
FK free contour programming
Straight line
Circle center/pole for polar coordinates
Circular arc with center
Circle with radius
Circular arc with tangential connection
Chamfer/Corner rounding
Polar coordinate input / Incremental values
Q-parameter programming/ Q-parameter status
Save actual position or values from calculator
Skip dialog questions, delete words
Confirm entry and resume dialog
Conclude block and exit entry
Clear numerical entry or TNC error message
Abort dialog, delete program section
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
3
Controls of the TNC
4
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual

Fundamentals

Fundamentals

About this manual

About this manual
The symbols used in this manual are described below.
This symbol indicates that important information about the function described must be considered.
This symbol indicates that there is one or more of the following risks when using the described function:
Danger to workpiece Danger to fixtures Danger to tool Danger to machine Danger to operator
This symbol indicates a possibly dangerous situation that may cause light injuries if not avoided.
This symbol indicates that the described function must be adapted by the machine tool builder. The function described may therefore vary depending on the machine.
This symbol indicates that you can find detailed information about a function in another manual.

Would you like any changes, or have you found any errors?

We are continuously striving to improve our documentation for you. Please help us by sending your requests to the following e-mail address: tnc-userdoc@heidenhain.de.
6
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual

TNC model, software and features

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
TNC 320 771851-01
TNC 320 Programming Station 771855-01
The suffix E indicates the export version of the TNC. The export version of the TNC has the following limitations:
Simultaneous linear movement in up to 4 axes
The machine tool builder adapts the usable features of the TNC to his machine by setting machine parameters. Some of the functions described in this manual may therefore not be among the features provided by the TNC on your machine tool.
TNC functions that may not be available on your machine include:
Tool measurement with the TT
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.
User's Manual for Cycle Programming:
All of the cycle functions (touch probe cycles and fixed cycles) are described in the Cycle Programming User’s Manual. Please contact HEIDENHAIN if you require a copy of this User's Manual. ID: 1096959-xx
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
7
Fundamentals
TNC model, software and features

Software options

The TNC 320 features various software options that can be enabled by your machine tool builder. Each option is to be enabled separately and contains the following respective functions:
Hardware, options
1st additional axis for 4 axes plus spindle
2nd additional axis for 5 axes plus spindle
Software option 1 (option number 08)
Rotary table machining
Coordinate transformation
Interpolation
HEIDENHAIN DNC (option number 18)
DXF Converter software option (option number 42)
Extracting contour programs and machining positions from DXF data. Extracting contour sections from plain-language programs.
Programming of cylindrical contours as if in two axes
Feed rate in distance per minute
Working plane, tilting the ...
Circle in 3 axes with tilted working plane (spacial arc)
Communication with external PC applications over COM component
Supported DXF format: AC1009 (AutoCAD R12)
For contours and point patterns
Simple and convenient specification of reference points
Select graphical features of contour sections from conversational
programs
8
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
TNC model, software and features

Feature Content Level (upgrade functions)

Along with software options, significant further improvements of the TNC software are managed via the Feature Content Level upgrade functions. Functions subject to the FCL are not available simply by updating the software on your TNC.
All upgrade functions are available to you without surcharge when you receive a new machine.
Upgrade functions are identified in the manual with FCL n, where n indicates the sequential number of the feature content level.
You can purchase a code number in order to permanently enable the FCL functions. For more information, contact your machine tool builder or HEIDENHAIN.

Intended place of operation

The TNC complies with the limits for a Class A device in accordance with the specifications in EN 55022, and is intended for use primarily in industrially-zoned areas.

Legal information

This product uses open source software. Further information is available on the control under
Programming and Editing operating mode MOD function License Info soft key
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
9
Fundamentals
TNC model, software and features

New functions

New Functions 34055x-06
The active tool-axis direction can now be activated in manual mode and during handwheel superimposition as a virtual tool axis ("Superimposing handwheel positioning during program run: M118 ", page 350).
Writing and reading data in freely definable tables ("Freely definable tables", page 373).
New touch probe cycle 484 for calibrating the wireless TT 449 tool touch probe (see User's Manual for Cycles).
The new HR 520 and HR 550 FS handwheels are supported ("Traverse with electronic handwheels", page 412).
New machining cycle 225 ENGRAVING (see User’s Manual for Cycle Programming)
New manual probing cycle "Center line as datum" ("Setting a center line as datum ", page 451).
New function for rounding corners ("Rounding corners: M197", page 356).
External access to the TNC can now be blocked with a MOD function ("External access", page 501).
10
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
TNC model, software and features
New Functions 34055x-06
The maximum number of characters for the NAME and DOC fields in the tool table has been increased from 16 to 32 ("Enter tool data into the table", page 158).
Operation and position behavior of the manual probing cycles has been improved ("Using 3-D touch probes ", page 431).
Predefined values can now be entered into a cycle parameter with the PREDEF function in cycles (see User’s Manual for Cycle Programming).
A new optimization algorithm is now used with the KinematicsOpt cycles (see User’s Manual for Cycle Programming).
With Cycle 257, circular stud milling, a parameter is now available with which you can determine the approach position on the stud (see User's Manual for Cycle Programming)
With Cycle 256, rectangular stud, a parameter is now available with which you can determine the approach position on the stud (see User's Manual for Cycle Programming).
With the "Basic Rotation" probing cycle, workpiece misalignment can now be compensated for via a table rotation ("Compensation of workpiece misalignment by rotating the table", page 444)
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
11
Fundamentals
TNC model, software and features
New functions 77185x-01
New special operating mode Retraction ("Retraction after a power interruption", page 488).
New graphic simulation ("Graphics ", page 470). New MOD function "tool usage file" within the machine settings
group ("Tool usage file", page 501). New MOD function "set system time" within the systems settings
group ("Set the system time", page 503). New MOD group "graphic settings" ("Graphic settings",
page 500). With the new cutting data calculator you can calculate the spindle
speed and the feed rate ("Cutting data calculator", page 134). New if/then decisions were introduced in the jump commands
("Programming if-then decisions", page 276). The character set of the fixed cycle 225 Engraving was expanded
by more characters and the diameter sign (see User's Manual for Cycle Programming).
New fixed cycle 275 trochoidal milling (see User’s Manual for Cycle Programming)
New fixed cycle 233 ENGRAVING (see User’s Manual for Cycle Programming)
In the drilling cycles 200, 203 and 205 the parameter Q395 BEZUG DEPTH REFERENCE was introduced in order to evaluate the T ANGLE (see User's Manual for Cycle Programming).
The probing cycle 4 MEASURING IN 3-D was introduced (see User's Manual for Cycle Programming).
12
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
TNC model, software and features
Changed functions 77185x-01
Now up to 4 functions are allowed in an NC block ("Fundamentals", page 338).
New soft keys for value transfer have been introduced in the pocket calculator ("Operation", page 131).
The distance-to-go display can now also be displayed in the input system ("Position Display Types", page 504).
Cycle 241 SINGLE-LIP DEEP HOLE DRILLING was expanded by several input parameters (see User's Manual for Cycle Programming).
Cycle 404 was expanded by the parameter Q305 NUMBER IN TABLE (see User's Manual for Cycle Programming).
In the thread milling cycles 26x an approaching feed rate was introduced (see User's Manual for Cycle Programming).
In Cycle 205 Universal Pecking you can now use parameter Q208 to define a feed rate for retraction (see User's Manual for Cycle Programming).
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
13
Fundamentals
TNC model, software and features
14
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual

Contents

1 First Steps with the TNC 320....................................................................................................... 43
2 Introduction.....................................................................................................................................63
3 Programming: Fundamentals, file management.........................................................................81
4 Programming: Programming aids.............................................................................................. 125
5 Programming: Tools..................................................................................................................... 153
6 Programming: Programming contours...................................................................................... 181
7 Programming: Data transfer from DXF files or plain-language contours............................... 233
8 Programming: Subprograms and program section repeats.................................................... 251
9 Programming: Q Parameters.......................................................................................................267
10 Programming: Miscellaneous functions.....................................................................................337
11 Programming: Special functions.................................................................................................357
12 Programming: Multiple Axis Machining.................................................................................... 379
13 Manual operation and setup.......................................................................................................407
14 Positioning with Manual Data Input.......................................................................................... 463
15 Test run and program run........................................................................................................... 469
16 MOD functions..............................................................................................................................497
17 Tables and overviews...................................................................................................................525
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
15
Contents
16
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
1 First Steps with the TNC 320....................................................................................................... 43
1.1 Overview................................................................................................................................................ 44
1.2 Machine switch-on................................................................................................................................44
Acknowledging the power interruption and moving to the reference points.......................................... 44
1.3 Programming the first part.................................................................................................................. 45
Selecting the correct operating mode.................................................................................................... 45
The most important TNC keys................................................................................................................45
Creating a new program/file management............................................................................................. 46
Defining a workpiece blank.................................................................................................................... 47
Program layout........................................................................................................................................ 48
Programming a simple contour...............................................................................................................49
Creating a cycle program........................................................................................................................52
1.4 Graphically testing the first part.........................................................................................................54
Selecting the correct operating mode.................................................................................................... 54
Selecting the tool table for the test run................................................................................................. 54
Choosing the program you want to test................................................................................................ 55
Selecting the screen layout and the view.............................................................................................. 55
Starting the test run................................................................................................................................56
1.5 Setting up tools.................................................................................................................................... 57
Selecting the correct operating mode.................................................................................................... 57
Preparing and measuring tools............................................................................................................... 57
The tool table TOOL.T............................................................................................................................ 58
The pocket table TOOL_P.TCH................................................................................................................59
1.6 Workpiece setup....................................................................................................................................60
Selecting the correct operating mode.................................................................................................... 60
Clamping the workpiece......................................................................................................................... 60
Datum setting with 3-D touch probe......................................................................................................61
1.7 Running the first program................................................................................................................... 62
Selecting the correct operating mode.................................................................................................... 62
Choosing the program you want to run................................................................................................. 62
Start the program....................................................................................................................................62
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
17
Contents
2 Introduction.....................................................................................................................................63
2.1 The TNC 320.......................................................................................................................................... 64
Programming: HEIDENHAIN conversational and ISO formats............................................................... 64
Compatibility............................................................................................................................................64
2.2 Visual display unit and operating panel............................................................................................ 65
Display screen.........................................................................................................................................65
Setting the screen layout........................................................................................................................66
Control Panel...........................................................................................................................................66
2.3 Modes of Operation..............................................................................................................................67
Manual Operation and El. Handwheel.................................................................................................... 67
Positioning with Manual Data Input........................................................................................................67
Programming........................................................................................................................................... 67
Test Run.................................................................................................................................................. 68
Program Run, Full Sequence and Program Run, Single Block................................................................68
2.4 Status displays...................................................................................................................................... 69
"General" status display...........................................................................................................................69
Additional status displays........................................................................................................................70
2.5 Window Manager..................................................................................................................................76
Task bar................................................................................................................................................... 77
2.6 SELinux security software....................................................................................................................78
2.7 Accessories: HEIDENHAIN 3-D Touch Probes and Electronic Handwheels......................................79
3-D touch probes.................................................................................................................................... 79
HR electronic handwheels......................................................................................................................80
18
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
3 Programming: Fundamentals, file management.........................................................................81
3.1 Fundamentals........................................................................................................................................ 82
Position encoders and reference marks................................................................................................. 82
Reference system................................................................................................................................... 82
Reference system on milling machines..................................................................................................83
Designation of the axes on milling machines.........................................................................................83
Polar coordinates..................................................................................................................................... 84
Absolute and incremental workpiece positions......................................................................................85
Selecting the datum................................................................................................................................86
3.2 Opening programs and entering......................................................................................................... 87
Organization of an NC program in HEIDENHAIN Conversational format................................................87
Define the blank: BLK FORM.................................................................................................................88
Opening a new part program................................................................................................................. 90
Programming tool movements in conversational................................................................................... 91
Actual position capture............................................................................................................................93
Editing a program....................................................................................................................................94
The TNC search function........................................................................................................................ 97
3.3 File manager: Fundamentals................................................................................................................99
Files......................................................................................................................................................... 99
Displaying externally generated files on the TNC.................................................................................101
Data Backup.......................................................................................................................................... 101
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
19
Contents
3.4 Working with the file manager......................................................................................................... 102
Directories............................................................................................................................................. 102
Paths......................................................................................................................................................102
Overview: Functions of the file manager............................................................................................. 103
Calling the file manager........................................................................................................................ 104
Selecting drives, directories and files................................................................................................... 105
Creating a new directory...................................................................................................................... 106
Creating a new file................................................................................................................................106
Copying a single file..............................................................................................................................106
Copying files into another directory......................................................................................................107
Copying a table..................................................................................................................................... 108
Copying a directory............................................................................................................................... 108
Choosing one of the last files selected................................................................................................109
Deleting a file........................................................................................................................................110
Deleting a directory...............................................................................................................................110
Tagging files.......................................................................................................................................... 111
Renaming a file..................................................................................................................................... 112
Sorting files........................................................................................................................................... 112
Additional functions...............................................................................................................................113
Additional tools for management of external file types........................................................................114
Data transfer to/from an external data medium................................................................................... 119
The TNC in a network.......................................................................................................................... 121
USB devices on the TNC......................................................................................................................122
20
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
4 Programming: Programming aids.............................................................................................. 125
4.1 Screen keyboard..................................................................................................................................126
Enter the text with the screen keyboard..............................................................................................126
4.2 Adding comments...............................................................................................................................127
Application............................................................................................................................................. 127
Entering a comment in a separate block..............................................................................................127
Functions for editing of the comment.................................................................................................. 128
4.3 Display of NC Programs..................................................................................................................... 129
Syntax highlighting................................................................................................................................ 129
Scrollbar.................................................................................................................................................129
4.4 Structuring programs..........................................................................................................................130
Definition and applications....................................................................................................................130
Displaying the program structure window / Changing the active window............................................130
Inserting a structuring block in the (left) program window...................................................................130
Selecting blocks in the program structure window..............................................................................130
4.5 Calculator............................................................................................................................................. 131
Operation...............................................................................................................................................131
4.6 Cutting data calculator.......................................................................................................................134
Application............................................................................................................................................. 134
4.7 Programming graphics....................................................................................................................... 136
Generate/do not generate graphics during programming.....................................................................136
Generating a graphic for an existing program...................................................................................... 136
Block number display ON/OFF..............................................................................................................137
Erasing the graphic............................................................................................................................... 137
Showing grid lines.................................................................................................................................137
Magnification or reduction of details.................................................................................................... 138
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
21
Contents
4.8 Error messages.................................................................................................................................... 139
Display of errors....................................................................................................................................139
Open the error window........................................................................................................................ 139
Closing the error window..................................................................................................................... 139
Detailed error messages.......................................................................................................................140
INTERNAL INFO soft key......................................................................................................................140
Clearing errors.......................................................................................................................................141
Error log.................................................................................................................................................141
Keystroke log.........................................................................................................................................142
Informational texts................................................................................................................................ 143
Saving service files............................................................................................................................... 143
Calling the TNCguide help system....................................................................................................... 144
4.9 TNCguide context-sensitive help system.........................................................................................145
Application............................................................................................................................................. 145
Working with the TNCguide................................................................................................................. 146
Downloading current help files............................................................................................................. 150
22
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
5 Programming: Tools..................................................................................................................... 153
5.1 Entering tool-related data.................................................................................................................. 154
Feed rate F............................................................................................................................................154
Spindle speed S.................................................................................................................................... 155
5.2 Tool data...............................................................................................................................................156
Requirements for tool compensation................................................................................................... 156
Tool number, tool name........................................................................................................................ 156
Tool length L......................................................................................................................................... 156
Tool radius R......................................................................................................................................... 156
Delta values for lengths and radii......................................................................................................... 157
Entering tool data into the program..................................................................................................... 157
Enter tool data into the table............................................................................................................... 158
Importing tool tables.............................................................................................................................166
Pocket table for tool changer................................................................................................................167
Call tool data......................................................................................................................................... 170
Tool change........................................................................................................................................... 172
Tool usage test......................................................................................................................................174
5.3 Tool compensation..............................................................................................................................176
Introduction........................................................................................................................................... 176
Tool length compensation..................................................................................................................... 176
Tool radius compensation..................................................................................................................... 177
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
23
Contents
6 Programming: Programming contours...................................................................................... 181
6.1 Tool movements..................................................................................................................................182
Path functions....................................................................................................................................... 182
FK free contour programming.............................................................................................................. 182
Miscellaneous functions M...................................................................................................................182
Subprograms and program section repeats......................................................................................... 183
Programming with Q parameters......................................................................................................... 183
6.2 Fundamentals of Path Functions.......................................................................................................184
Programming tool movements for workpiece machining..................................................................... 184
6.3 Approaching and departing a contour............................................................................................. 188
Overview: Types of paths for contour approach and departure............................................................188
Important positions for approach and departure...................................................................................189
Approaching on a straight line with tangential connection: APPR LT...................................................191
Approaching on a straight line perpendicular to the first contour point: APPR LN............................... 191
Approaching on a circular path with tangential connection: APPR CT..................................................192
Approaching on a circular path with tangential connection from a straight line to the contour:
APPR LCT.............................................................................................................................................. 193
Departing in a straight line with tangential connection: DEP LT.......................................................... 193
Departing in a straight line perpendicular to the last contour point: DEP LN....................................... 194
Departing on a circular path with tangential connection: DEP CT........................................................195
Departing on a circular arc tangentially connecting the contour and a straight line: DEP LCT.............. 195
6.4 Path contours - Cartesian coordinates............................................................................................. 196
Overview of path functions.................................................................................................................. 196
Straight line L........................................................................................................................................197
Inserting a chamfer between two straight lines...................................................................................198
Corner rounding RND........................................................................................................................... 199
24
Circle center CC....................................................................................................................................200
Circular path C around circle center CC............................................................................................... 201
CircleCR with defined radius................................................................................................................ 202
Circle CT with tangential connection.................................................................................................... 204
Example: Linear movements and chamfers with Cartesian coordinates.............................................. 205
Example: Circular movements with Cartesian coordinates.................................................................. 206
Example: Full circle with Cartesian coordinates................................................................................... 207
TNC 320 | User's Manual
HEIDENHAIN Conversational Programming | 3/2014
6.5 Path contours – Polar coordinates.................................................................................................... 208
Overview............................................................................................................................................... 208
Zero point for polar coordinates: pole CC............................................................................................ 209
Straight line LP......................................................................................................................................209
Circular path CP around pole CC.......................................................................................................... 210
Circle CTP with tangential connection..................................................................................................210
Helix.......................................................................................................................................................211
Example: Linear movement with polar coordinates............................................................................. 213
Example: Helix...................................................................................................................................... 214
6.6 Path contours – FK free contour programming...............................................................................215
Fundamentals........................................................................................................................................ 215
FK programming graphics.....................................................................................................................217
Initiating the FK dialog.......................................................................................................................... 219
Pole for FK programming......................................................................................................................219
Free straight line programming.............................................................................................................220
Free circular path programming............................................................................................................221
Input options......................................................................................................................................... 222
Auxiliary points...................................................................................................................................... 225
Relative data..........................................................................................................................................226
Example: FK programming 1................................................................................................................ 228
Example: FK programming 2................................................................................................................ 229
Example: FK programming 3................................................................................................................ 230
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
25
Contents
7 Programming: Data transfer from DXF files or plain-language contours............................... 233
7.1 Processing DXF Files (Software Option).......................................................................................... 234
Application............................................................................................................................................. 234
Opening a DXF file............................................................................................................................... 235
Working with the DXF converter.......................................................................................................... 235
Basic settings........................................................................................................................................236
Setting layers.........................................................................................................................................238
Defining the datum............................................................................................................................... 239
Selecting and saving a contour.............................................................................................................241
Selecting and saving machining positions............................................................................................ 245
26
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
8 Programming: Subprograms and program section repeats.................................................... 251
8.1 Labeling Subprograms and Program Section Repeats................................................................... 252
Label...................................................................................................................................................... 252
8.2 Subprograms....................................................................................................................................... 253
Operating sequence..............................................................................................................................253
Programming notes...............................................................................................................................253
Programming a subprogram................................................................................................................. 253
Calling a subprogram............................................................................................................................ 254
8.3 Program-section repeats.................................................................................................................... 255
Label LBL.............................................................................................................................................. 255
Operating sequence..............................................................................................................................255
Programming notes...............................................................................................................................255
Programming a program section repeat............................................................................................... 255
Calling a program section repeat.......................................................................................................... 256
8.4 Any desired program as subprogram............................................................................................... 257
Operating sequence..............................................................................................................................257
Programming notes...............................................................................................................................257
Calling any program as a subprogram.................................................................................................. 258
8.5 Nesting................................................................................................................................................. 259
Types of nesting....................................................................................................................................259
Nesting depth........................................................................................................................................259
Subprogram within a subprogram........................................................................................................ 260
Repeating program section repeats......................................................................................................261
Repeating a subprogram.......................................................................................................................262
8.6 Programming examples..................................................................................................................... 263
Example: Milling a contour in several infeeds......................................................................................263
Example: Groups of holes.................................................................................................................... 264
Example: Group of holes with several tools.........................................................................................265
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
27
Contents
9 Programming: Q Parameters.......................................................................................................267
9.1 Principle and overview of functions................................................................................................. 268
Programming notes...............................................................................................................................269
Calling Q parameter functions.............................................................................................................. 270
9.2 Part families—Q parameters in place of numerical values............................................................. 271
Application............................................................................................................................................. 271
9.3 Describing contours with mathematical functions......................................................................... 272
Application............................................................................................................................................. 272
Overview............................................................................................................................................... 272
Programming fundamental operations..................................................................................................273
9.4 Angle functions (trigonometry)......................................................................................................... 274
Definitions............................................................................................................................................. 274
Programming trigonometric functions.................................................................................................. 274
9.5 Calculation of circles...........................................................................................................................275
Application............................................................................................................................................. 275
9.6 If-then decisions with Q parameters................................................................................................ 276
Application............................................................................................................................................. 276
Unconditional jumps..............................................................................................................................276
Programming if-then decisions............................................................................................................. 276
Abbreviations used:...............................................................................................................................277
9.7 Checking and changing Q parameters............................................................................................. 278
Procedure.............................................................................................................................................. 278
9.8 Additional functions............................................................................................................................280
Overview............................................................................................................................................... 280
FN 14: ERROR: Displaying error messages......................................................................................... 281
FN 16: F-PRINT: Output of formatted texts and Q parameter values....................................................285
FN 18: SYS-DATUM READ: Reading system data................................................................................289
FN 19: PLC: Transfer values to PLC..................................................................................................... 298
FN 20: WAIT FOR: NC and PLC synchronization................................................................................. 298
FN 29: PLC: Transfer values to the PLC...............................................................................................300
FN 37: EXPORT.....................................................................................................................................300
28
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
9.9 Accessing tables with SQL commands............................................................................................ 301
Introduction........................................................................................................................................... 301
A transaction......................................................................................................................................... 302
Programming SQL commands..............................................................................................................304
Overview of the soft keys.................................................................................................................... 304
SQL BIND..............................................................................................................................................305
SQL SELECT......................................................................................................................................... 306
SQL FETCH........................................................................................................................................... 308
SQL UPDATE.........................................................................................................................................309
SQL INSERT..........................................................................................................................................309
SQL COMMIT....................................................................................................................................... 310
SQL ROLLBACK.................................................................................................................................... 310
9.10 Entering formulas directly..................................................................................................................311
Entering formulas..................................................................................................................................311
Rules for formulas.................................................................................................................................313
Programming example.......................................................................................................................... 314
9.11 String parameters............................................................................................................................... 315
String processing functions.................................................................................................................. 315
Assigning string parameters................................................................................................................. 316
Chain-linking string parameters.............................................................................................................316
Converting a numerical value to a string parameter.............................................................................317
Copying a substring from a string parameter.......................................................................................318
Converting a string parameter to a numerical value.............................................................................319
Checking a string parameter.................................................................................................................320
Finding the length of a string parameter..............................................................................................321
Comparing alphabetic sequence...........................................................................................................322
Reading machine parameters............................................................................................................... 323
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 3/2014
29
Contents
9.12 Preassigned Q parameters................................................................................................................. 326
Values from the PLC: Q100 to Q107....................................................................................................326
Active tool radius: Q108........................................................................................................................326
Tool axis: Q109......................................................................................................................................326
Spindle status: Q110............................................................................................................................. 327
Coolant on/off: Q111............................................................................................................................. 327
Overlap factor: Q112............................................................................................................................. 327
Unit of measurement for dimensions in the program: Q113................................................................327
Tool length: Q114.................................................................................................................................. 327
Coordinates after probing during program run..................................................................................... 328
Deviation between actual value and nominal value during automatic tool measurement with the
TT 130....................................................................................................................................................328
Tilting the working plane with mathematical angles: rotary axis coordinates calculated by the
TNC........................................................................................................................................................328
Measurement results from touch probe cycles (see also User’s Manual for Cycle Programming).......329
9.13 Programming examples..................................................................................................................... 331
Example: Ellipse.................................................................................................................................... 331
Example: Concave cylinder machined with spherical cutter.................................................................333
Example: Convex sphere machined with end mill................................................................................335
30
HEIDENHAIN Conversational Programming | 3/2014
TNC 320 | User's Manual
Loading...
+ 551 hidden pages