HEIDENHAIN TNC 640 User Manual

0 (0)
HEIDENHAIN TNC 640 User Manual

TNC 640

User’s Manual

DIN/ISO Programming

NC Software 340590-02 340591-02 340594-02

English (en) 5/2013

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

Alphanumeric keyboard

Key Function

File names, comments

DIN/ISO programming

Machine operating modes

Key Function

Manual operation

Electronic handwheel

Positioning with manual data input

Program run, single block

Program run, full sequence

2

Programming modes

Key Function

Programming

Test run

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

Go directly to blocks, cycles and parameter functions

Potentiometer for feed rate and spindle speed

Feed rate

Spindle speed

 

 

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

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

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

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

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

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

3

Controls of the TNC

4

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

Fundamentals

Fundamentals

About this manual

About this manual

The symbols used in this manual are described below.

This symbol indicates that important notes about the function described must be regarded.

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

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

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 640

340590-02

 

 

TNC 640 E

340591-02

 

 

TNC 640 Programming Station

340594-02

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: 892905-xx

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

7

Fundamentals

TNC model, software and features

Software options

The TNC 640 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

Programming of cylindrical contours as if in two axes

 

Feed rate in distance per minute

 

 

 

Coordinate transformation

Working plane, tilting the ...

 

 

 

Interpolation

Circle in 3 axes with tilted working plane (spacial arc)

Software option 2 (option number 09)

 

 

 

3-D machining

Motion control with minimum jerk

 

3-D tool 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 perpendicular to traversing and tool direction

 

 

 

Interpolation

Linear in 5 axes (subject to export permit)

HEIDENHAIN DNC (option number 18)

Communication with external PC applications over COM component

Display step (Option number 23)

Input resolution and display

Linear axes to 0.01 µm

step

Rotary axes to 0.00001°

 

Dynamic Collision Monitoring (DCM) software option (option number 40)

Collision monitoring in all

The machine manufacturer defines objects to be monitored

machine operating modes

Three warning levels in manual operation

 

 

Program interrupt during automatic operation

 

Includes monitoring of 5-axis movements

Software option for additional conversational languages (option number 41)

Additional conversational

Slovenian

languages

Norwegian

 

 

Slovak

 

Latvian

 

Korean

 

Estonian

 

Turkish

 

Romanian

 

Lithuanian

8

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

TNC model, software and features

DXF Converter software option (option number 42)

Extracting contour

Supported DXF format: AC1009 (AutoCAD R12)

programs and machining

For contours and point patterns

positions from DXF data.

Simple and convenient specification of reference points

Extracting contour sections

from plain-language

Select graphical features of contour sections from conversational

programs.

 

programs

Adaptive Feed Control (AFC) software option (option number 45)

Function for adaptive feedrate control for optimizing the machining conditions during series production

Recording the actual spindle power by means of a teach-in cut

Defining the limits of automatic feed rate control

Fully automatic feed control during program run

KinematicsOpt software option (option number 48)

Touch-probe cycles for automatic testing and optimization of the machine kinematics

Backup/restore active kinematics

Test active kinematics

Optimize active kinematics

Mill-Turning software option (option number 50)

Functions for milling/turning

Switching between Milling/Turning mode of operation

mode

Constant cutting speed

 

 

Tool-tip radius compensation

 

Turning cycles

Extended Tool Managment software option (option number 93)

Extended tool management, python-based

Remote Desktop Manager software option (option number 133)

Remote operation of external computer units (e.g. Windows PC) via the TNC user interface

Windows on a separate computer unit

Incorporated in the TNC interface

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

9

Fundamentals

TNC model, software and features

Cross Talk Compensation (CTC) software option (option number 141)

Compensation of axis

Determination of dynamically caused position deviation through axis

couplings

 

acceleration

 

Compensation of the TCP

Position Adaptive Control (PAC) software option (option number 142)

Changing control

Changing of the control parameters depending on the position of the

parameters

 

axes in the working space

 

Changing of the control parameters depending on the speed or

 

 

acceleration of an axis

Load Adaptive Control (LAC) software option (option number 143)

Dynamic changing of control

Automatic determination of workpiece weight and frictional forces

parameters

Continuous adaptation of the parameters of the adaptive precontrolling

 

 

 

to the actual weight of the workpiece during machining

Active Chatter Control (ACC) software option (option number 145)

Fully automatic function for chatter control during machining

10

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

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 640 | User's Manual for DIN/ISO Programming | 5/2013

11

Fundamentals

TNC model, software and features

New functions

New functions 34059x-02

DXF files can be opened directly on the TNC in order to extract contours and point patterns (Programming: Data transfer from DXF files or plain-language contours, page 215).

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

The machine manufacturer can now define any areas on the machine for collision monitoring (Dynamic Collision Monitoring (software option), page 337).

Writing and reading data in freely definable tables (Freely definable tables, page 361).

The Adaptive Feed Control (AFC) function has been integrated (Adaptive Feed Control Software Option (AFC), page 343)

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

New machining cycle 225 ENGRAVING (see User’s Manual for Cycle Programming)

New Active Chatter Control (ACC) software option (Active Chatter Control (ACC; software option), page 355).

New manual probing cycle "Center line as datum" (Setting a center line as datum , page 487).

New function for rounding corners (Rounding corners: M197, page 332).

External access to the TNC can now be blocked with a MOD function (External access, page 536).

12

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

TNC model, software and features

Modified functions 34059x-02

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

The columns AFC and ACC were added to the tool table (Enter tool data into the table, page 156).

Operation and position behavior of the manual probing cycles has been improved (Using 3-D touch probes , page 466).

Predefined values can now be entered into a cycle parameter with the PREDEF function in cycles (see User’s Manual for Cycle Programming).

The status display has been expanded with the AFC tab (Additional status displays, page 74).

The FUNCTION TURNDATA SPIN rotational function has been expanded with an input option for maximum speed (Program spindle speed, page 416).

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 480)

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

13

Fundamentals

TNC model, software and features

14

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

Contents

 

1

First Steps with the TNC 640.........................................................................................................

45

2

Introduction.......................................................................................................................................

67

3

Programming: Fundamentals, file management...........................................................................

87

4

Programming: Programming aids................................................................................................

127

5

Programming: Tools.......................................................................................................................

151

6

Programming: Programming contours........................................................................................

187

7

Programming: Data transfer from DXF files or plain-language contours.................................

215

8

Programming: Subprograms and program section repeats......................................................

233

9

Programming: Q Parameters.........................................................................................................

249

10

Programming: Miscellaneous functions.......................................................................................

313

11

Programming: Special functions..................................................................................................

333

12

Programming: Multiple Axis Machining......................................................................................

367

13

Programming: Pallet editor...........................................................................................................

405

14

Programming: Turning Operations...............................................................................................

411

15

Manual operation and setup.........................................................................................................

437

16

Positioning with Manual Data Input............................................................................................

499

17

Test run and program run.............................................................................................................

505

18

MOD functions................................................................................................................................

533

19

Tables and overviews.....................................................................................................................

557

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

15

Contents

16

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

1 First Steps with the TNC 640.........................................................................................................

45

1.1

Overview.................................................................................................................................................

46

1.2

Machine switch-on.................................................................................................................................

46

 

Acknowledging the power interruption and moving to the reference points...........................................

46

1.3

Programming the first part...................................................................................................................

47

 

Selecting the correct operating mode.....................................................................................................

47

 

The most important TNC keys.................................................................................................................

47

 

Creating a new program/file management..............................................................................................

48

 

Defining a workpiece blank......................................................................................................................

49

 

Program layout.........................................................................................................................................

50

 

Programming a simple contour................................................................................................................

51

 

Creating a cycle program.........................................................................................................................

54

1.4

Graphically testing the first part..........................................................................................................

56

 

Selecting the correct operating mode.....................................................................................................

56

 

Selecting the tool table for the test run..................................................................................................

56

 

Choosing the program you want to test.................................................................................................

57

 

Selecting the screen layout and the view...............................................................................................

57

 

Starting the test run.................................................................................................................................

58

1.5

Setting up tools.....................................................................................................................................

59

 

Selecting the correct operating mode.....................................................................................................

59

 

Preparing and measuring tools................................................................................................................

59

 

The tool table TOOL.T.............................................................................................................................

60

 

The pocket table TOOL_P.TCH.................................................................................................................

61

1.6

Workpiece setup.....................................................................................................................................

62

 

Selecting the correct operating mode.....................................................................................................

62

 

Clamping the workpiece..........................................................................................................................

62

 

Workpiece alignment with 3-D touch probe............................................................................................

63

 

Datum setting with 3-D touch probe.......................................................................................................

64

1.7

Running the first program....................................................................................................................

65

 

Selecting the correct operating mode.....................................................................................................

65

 

Choosing the program you want to run..................................................................................................

65

 

Start the program.....................................................................................................................................

65

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

17

Contents

2 Introduction.......................................................................................................................................

67

2.1

The TNC 640...........................................................................................................................................

68

 

Programming: HEIDENHAIN conversational and ISO formats.................................................................

68

 

Compatibility.............................................................................................................................................

68

2.2

Visual display unit and operating panel..............................................................................................

69

 

Display screen..........................................................................................................................................

69

 

Setting the screen layout.........................................................................................................................

69

 

Control Panel............................................................................................................................................

70

2.3

Modes of Operation...............................................................................................................................

71

 

Manual Operation and El. Handwheel.....................................................................................................

71

 

Positioning with Manual Data Input.........................................................................................................

71

 

Programming............................................................................................................................................

71

 

Test Run...................................................................................................................................................

72

 

Program Run, Full Sequence and Program Run, Single Block.................................................................

72

2.4

Status displays.......................................................................................................................................

73

 

"General" status display............................................................................................................................

73

 

Additional status displays.........................................................................................................................

74

2.5

Window Manager...................................................................................................................................

81

 

Task bar....................................................................................................................................................

82

2.6

SELinux security software.....................................................................................................................

83

2.7

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

84

 

3-D touch probes.....................................................................................................................................

84

 

HR electronic handwheels.......................................................................................................................

85

18

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

3 Programming: Fundamentals, file management...........................................................................

87

3.1

Fundamentals.........................................................................................................................................

88

 

Position encoders and reference marks..................................................................................................

88

 

Reference system....................................................................................................................................

88

 

Reference system on milling machines...................................................................................................

89

 

Designation of the axes on milling machines..........................................................................................

89

 

Polar coordinates......................................................................................................................................

90

 

Absolute and incremental workpiece positions.......................................................................................

91

 

Selecting the datum.................................................................................................................................

92

3.2 Opening programs and entering..........................................................................................................

93

 

Organization of an NC program in DIN/ISO format.................................................................................

93

 

Define the blank: G30/G31......................................................................................................................

93

 

Opening a new part program..................................................................................................................

94

 

Programming tool movements in DIN/ISO..............................................................................................

95

 

Actual position capture.............................................................................................................................

96

 

Editing a program.....................................................................................................................................

97

 

The TNC search function.......................................................................................................................

100

3.3

File manager: Fundamentals...............................................................................................................

102

 

Files........................................................................................................................................................

102

 

Displaying externally generated files on the TNC..................................................................................

104

 

Data Backup...........................................................................................................................................

104

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

19

Contents

3.4 Working with the file manager..........................................................................................................

105

Directories..............................................................................................................................................

105

Paths.......................................................................................................................................................

105

Overview: Functions of the file manager..............................................................................................

106

Calling the file manager.........................................................................................................................

107

Selecting drives, directories and files....................................................................................................

108

Creating a new directory.......................................................................................................................

109

Creating a new file.................................................................................................................................

109

Copying a single file...............................................................................................................................

109

Copying files into another directory.......................................................................................................

110

Copying a table......................................................................................................................................

111

Copying a directory................................................................................................................................

112

Choosing one of the last files selected.................................................................................................

112

Deleting a file.........................................................................................................................................

113

Deleting a directory................................................................................................................................

113

Tagging files...........................................................................................................................................

114

Renaming a file......................................................................................................................................

115

Sorting files............................................................................................................................................

115

Additional functions................................................................................................................................

116

Additional tools for management of external file types.........................................................................

117

Data transfer to/from an external data medium....................................................................................

122

The TNC in a network............................................................................................................................

124

USB devices on the TNC.......................................................................................................................

125

20

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

4 Programming: Programming aids................................................................................................

127

4.1

Adding comments................................................................................................................................

128

 

Application..............................................................................................................................................

128

 

Entering comments during programming..............................................................................................

128

 

Inserting comments after program entry..............................................................................................

128

 

Entering a comment in a separate block...............................................................................................

128

 

Functions for editing of the comment...................................................................................................

129

4.2

Display of NC Programs......................................................................................................................

130

 

Syntax highlighting.................................................................................................................................

130

 

Scrollbar..................................................................................................................................................

130

4.3

Structuring programs...........................................................................................................................

131

 

Definition and applications.....................................................................................................................

131

 

Displaying the program structure window / Changing the active window.............................................

131

 

Inserting a structuring block in the (left) program window....................................................................

131

 

Selecting blocks in the program structure window...............................................................................

131

4.4

Calculator..............................................................................................................................................

132

 

Operation................................................................................................................................................

132

4.5

Programming graphics........................................................................................................................

134

 

Generating / not generating graphics during programming...................................................................

134

 

Generating a graphic for an existing program.......................................................................................

134

 

Block number display ON/OFF...............................................................................................................

135

 

Erasing the graphic................................................................................................................................

135

 

Showing grid lines..................................................................................................................................

135

 

Magnification or reduction of details.....................................................................................................

136

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

21

Contents

4.6 Error messages.....................................................................................................................................

137

Display of errors.....................................................................................................................................

137

Open the error window.........................................................................................................................

137

Closing the error window......................................................................................................................

137

Detailed error messages........................................................................................................................

138

INTERNAL INFO soft key.......................................................................................................................

138

Clearing errors........................................................................................................................................

139

Error log..................................................................................................................................................

139

Keystroke log..........................................................................................................................................

140

Informational texts.................................................................................................................................

141

Saving service files................................................................................................................................

141

Calling the TNCguide help system........................................................................................................

142

4.7 TNCguide context-sensitive help system..........................................................................................

143

Application..............................................................................................................................................

143

Working with the TNCguide..................................................................................................................

144

Downloading current help files..............................................................................................................

148

22

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

5 Programming: Tools.......................................................................................................................

151

5.1

Entering tool-related data...................................................................................................................

152

 

Feed rate F.............................................................................................................................................

152

 

Spindle speed S.....................................................................................................................................

153

5.2

Tool data................................................................................................................................................

154

 

Requirements for tool compensation....................................................................................................

154

 

Tool number, tool name.........................................................................................................................

154

 

Tool length L..........................................................................................................................................

154

 

Tool radius R..........................................................................................................................................

154

 

Delta values for lengths and radii..........................................................................................................

155

 

Entering tool data into the program......................................................................................................

155

 

Enter tool data into the table.................................................................................................................

156

 

Importing tool tables..............................................................................................................................

164

 

Pocket table for tool changer.................................................................................................................

165

 

Call tool data..........................................................................................................................................

168

 

Tool change............................................................................................................................................

170

 

Tool usage test.......................................................................................................................................

173

 

Tool management (software option)......................................................................................................

175

5.3

Tool compensation...............................................................................................................................

182

 

Introduction.............................................................................................................................................

182

 

Tool length compensation......................................................................................................................

182

 

Tool radius compensation......................................................................................................................

183

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

23

Contents

6 Programming: Programming contours........................................................................................

187

6.1

Tool movements...................................................................................................................................

188

 

Path functions........................................................................................................................................

188

 

Miscellaneous functions M....................................................................................................................

188

 

Subprograms and program section repeats..........................................................................................

188

 

Programming with Q parameters..........................................................................................................

188

6.2 Fundamentals of Path Functions........................................................................................................

189

 

Programming tool movements for workpiece machining......................................................................

189

6.3 Approaching and departing a contour...............................................................................................

192

 

Starting point and end point..................................................................................................................

192

 

Tangential approach and departure........................................................................................................

194

6.4

Path contours - Cartesian coordinates...............................................................................................

196

 

Overview of path functions...................................................................................................................

196

 

Programming path functions..................................................................................................................

196

 

Straight line in rapid traverse G00 Straight line with feed rate G01 F...................................................

197

 

Inserting a chamfer between two straight lines....................................................................................

198

 

Corner rounding G25..............................................................................................................................

199

 

Circle center I, J.....................................................................................................................................

200

 

Circular path C around circle center CC................................................................................................

201

 

Circle G02/G03/G05 with defined radius...............................................................................................

202

 

Circle G06 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

6.5 Path contours – Polar coordinates.....................................................................................................

208

 

Overview................................................................................................................................................

208

 

Zero point for polar coordinates: pole I, J.............................................................................................

209

 

Straight line in rapid traverse G10 Straight line with feed rate G11 F....................................................

209

 

Circular path G12/G13/G15 around pole I, J..........................................................................................

210

 

Circle G16 with tangential connection...................................................................................................

210

 

Helix........................................................................................................................................................

211

 

Example: Linear movement with polar coordinates..............................................................................

213

 

Example: Helix........................................................................................................................................

214

24

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

7 Programming: Data transfer from DXF files or plain-language contours.................................

215

7.1 Processing DXF Files (Software Option)...........................................................................................

216

Application..............................................................................................................................................

216

Opening a DXF file.................................................................................................................................

217

Working with the DXF converter...........................................................................................................

217

Basic settings.........................................................................................................................................

218

Setting layers..........................................................................................................................................

220

Defining the datum................................................................................................................................

221

Selecting and saving a contour..............................................................................................................

223

Selecting and saving machining positions.............................................................................................

227

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

25

Contents

8 Programming: Subprograms and program section repeats......................................................

233

8.1

Labeling Subprograms and Program Section Repeats....................................................................

234

 

Label.......................................................................................................................................................

234

8.2

Subprograms........................................................................................................................................

235

 

Operating sequence...............................................................................................................................

235

 

Programming notes................................................................................................................................

235

 

Programming a subprogram...................................................................................................................

235

 

Calling a subprogram.............................................................................................................................

236

8.3

Program-section repeats.....................................................................................................................

237

 

Label G98...............................................................................................................................................

237

 

Operating sequence...............................................................................................................................

237

 

Programming notes................................................................................................................................

237

 

Programming a program section repeat................................................................................................

237

 

Calling a program section repeat...........................................................................................................

238

8.4

Any desired program as subprogram................................................................................................

239

 

Operating sequence...............................................................................................................................

239

 

Programming notes................................................................................................................................

239

 

Calling any program as a subprogram...................................................................................................

240

8.5

Nesting..................................................................................................................................................

241

 

Types of nesting.....................................................................................................................................

241

 

Nesting depth.........................................................................................................................................

241

 

Subprogram within a subprogram.........................................................................................................

242

 

Repeating program section repeats.......................................................................................................

243

 

Repeating a subprogram........................................................................................................................

244

8.6

Programming examples.......................................................................................................................

245

 

Example: Milling a contour in several infeeds.......................................................................................

245

 

Example: Groups of holes.....................................................................................................................

246

 

Example: Group of holes with several tools..........................................................................................

247

26

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

9 Programming: Q Parameters.........................................................................................................

249

9.1

Principle and overview of functions..................................................................................................

250

 

Programming notes................................................................................................................................

251

 

Calling Q parameter functions...............................................................................................................

252

9.2

Part families—Q parameters in place of numerical values..............................................................

253

 

Application..............................................................................................................................................

253

9.3

Describing contours with mathematical functions..........................................................................

254

 

Application..............................................................................................................................................

254

 

Overview................................................................................................................................................

254

 

Programming fundamental operations...................................................................................................

255

9.4

Angle functions (trigonometry)..........................................................................................................

256

 

Definitions...............................................................................................................................................

256

 

Programming trigonometric functions...................................................................................................

256

9.5

If-then decisions with Q parameters.................................................................................................

257

 

Application..............................................................................................................................................

257

 

Unconditional jumps...............................................................................................................................

257

 

Programming if-then decisions..............................................................................................................

257

9.6

Checking and changing Q parameters...............................................................................................

258

 

Procedure...............................................................................................................................................

258

9.7

Additional functions.............................................................................................................................

260

 

Overview................................................................................................................................................

260

 

D14: Displaying error messages............................................................................................................

261

 

D18: Reading system data.....................................................................................................................

265

 

D19: Transfer values to PLC..................................................................................................................

274

 

D20: NC and PLC synchronization.........................................................................................................

274

 

D29: Transfer values to the PLC............................................................................................................

276

 

D37 EXPORT..........................................................................................................................................

276

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

27

Contents

9.8

Accessing tables with SQL commands.............................................................................................

277

 

Introduction.............................................................................................................................................

277

 

A transaction..........................................................................................................................................

278

 

Programming SQL commands...............................................................................................................

280

 

Overview of the soft keys.....................................................................................................................

280

 

SQL BIND...............................................................................................................................................

281

 

SQL SELECT..........................................................................................................................................

282

 

SQL FETCH............................................................................................................................................

284

 

SQL UPDATE..........................................................................................................................................

285

 

SQL INSERT...........................................................................................................................................

285

 

SQL COMMIT........................................................................................................................................

286

 

SQL ROLLBACK.....................................................................................................................................

286

9.9

Entering formulas directly...................................................................................................................

287

 

Entering formulas...................................................................................................................................

287

 

Rules for formulas..................................................................................................................................

289

 

Programming example...........................................................................................................................

290

9.10

String parameters................................................................................................................................

291

 

String processing functions...................................................................................................................

291

 

Assigning string parameters..................................................................................................................

292

 

Chain-linking string parameters..............................................................................................................

292

 

Converting a numerical value to a string parameter..............................................................................

293

 

Copying a substring from a string parameter........................................................................................

294

 

Converting a string parameter to a numerical value..............................................................................

295

 

Checking a string parameter..................................................................................................................

296

 

Finding the length of a string parameter...............................................................................................

297

 

Comparing alphabetic sequence............................................................................................................

298

 

Reading machine parameters.................................................................................................................

299

28

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

 

 

 

 

 

 

 

 

..................................................................................................................9.11 Preassigned Q parameters

302

 

 

Values from the PLC: Q100 to Q107.....................................................................................................

302

 

 

Active tool radius: Q108.........................................................................................................................

302

 

Tool axis: Q109.......................................................................................................................................

302

 

Spindle status: Q110..............................................................................................................................

303

 

Coolant on/off: Q111...............................................................................................................................

303

 

 

Overlap factor: Q112..............................................................................................................................

303

 

 

Unit of measurement for dimensions in the program: Q113.................................................................

303

 

 

Tool length: Q114...................................................................................................................................

303

 

Coordinates after probing during program run.......................................................................................

304

 

Deviation between actual value and nominal value during automatic tool measurement with the TT

 

 

 

130..........................................................................................................................................................

304

 

Tilting the working plane with mathematical angles: rotary axis coordinates calculated by the TNC.....

304

 

Measurement results from touch probe cycles (see also User’s Manual for Cycle Programming)........

305

 

.......................................................................................................................9.12 Programming examples

307

Example: Ellipse.....................................................................................................................................

307

Example: Concave cylinder machined with spherical cutter..................................................................

309

Example: Convex sphere machined with end mill.................................................................................

311

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

29

Contents

10 Programming: Miscellaneous functions.......................................................................................

313

10.1 Entering miscellaneous functions M and STOP................................................................................

314

Fundamentals.........................................................................................................................................

314

10.2 M functions for program run inspection, spindle and coolant........................................................

315

Overview................................................................................................................................................

315

10.3 Miscellaneous functions for coordinate data....................................................................................

316

Programming machine-referenced coordinates: M91/M92....................................................................

316

Moving to positions in a non-tilted coordinate system with a tilted working plane: M130....................

318

10.4 Miscellaneous functions for path behavior.......................................................................................

319

Machining small contour steps: M97....................................................................................................

319

Machining open contour corners: M98..................................................................................................

320

Feed rate factor for plunging movements: M103..................................................................................

321

Feed rate in millimeters per spindle revolution: M136..........................................................................

322

Feed rate for circular arcs: M109/M110/M111........................................................................................

323

Calculating the radius-compensated path in advance (LOOK AHEAD): M120.......................................

324

Superimposing handwheel positioning during program run: M118.......................................................

326

Retraction from the contour in the tool-axis direction: M140................................................................

328

Suppressing touch probe monitoring: M141.........................................................................................

329

Deleting basic rotation: M143................................................................................................................

330

Automatically retract tool from the contour at an NC stop: M148........................................................

331

Rounding corners: M197........................................................................................................................

332

30

TNC 640 | User's Manual for DIN/ISO Programming | 5/2013

Loading...
+ 590 hidden pages