HEIDENHAIN TNC 640 User Manual
Hide thumbs Also See for TNC 640:
Table of Contents

Advertisement

Quick Links

TNC 640
User's Manual
ISO programming
NC Software
340590-08
340591-08
340595-08
English (en)
10/2017

Advertisement

Table of Contents
loading

Summary of Contents for HEIDENHAIN TNC 640

  • Page 1 TNC 640 User’s Manual ISO programming NC Software 340590-08 340591-08 340595-08 English (en) 10/2017...
  • Page 2 Controls and displays Programming modes Controls and displays Function Keys Programming If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Test run Further information: "Operating the Touchscreen", page 127 Entering and editing coordinate...
  • Page 3 Navigate up one page Potentiometer for feed rate Navigate down one page and spindle speed Feed rate Spindle speed Select the next tab in forms Up/down one dialog box or button HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 5 Fundamentals...
  • Page 6: About This Manual

    Signal word indicating the hazard severity Type and source of hazard Consequences of ignoring the hazard, e.g.: "There is danger of collision during subsequent machining operations" Escape – Hazard prevention measures HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 7 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 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 8 All of the cycle functions (touch probe cycles and fixed cycles) are described in the Cycle Programming User's Manual. If you need this user's manual, please contact HEIDENHAIN if required. ID: 892905-xx HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 9 Fundamentals | Control 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: Additional Axis (options 0 to 7)
  • Page 10 Extended Tool Management (option 93) Extended tool management Python-based Advanced Spindle Interpolation (option 96) Interpolating spindle Interpolation turning: Cycle 291: Interpolation turning, coupling Cycle 292: Interpolation turning, contour finishing HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 11 Active Vibration Damping – AVD (option 46) Active vibration damping Damping of machine oscillations to improve the workpiece surface Batch Process Manager (option 154) Batch process manager Planning of production orders HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 12 Legal information This product uses open source software. Further information is available on the control under: Programming operating mode MOD function LICENSE INFO soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 13: New Functions 34059X

    New function for rounding corners, see "Rounding corners: M197", page 478 External access to the control can now be blocked with an MOD function, see "External access", page 796 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 14 With the manual Basic Rotation touch probe cycle, workpiece misalignment can now be compensated for via a table rotation, see "Compensation of workpiece misalignment by rotating the table", page 717 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 15 DEPTH REFERENCE has been introduced in order to evaluate the T ANGLE, see Cycle Programming User's Manual Probing Cycle 4 MEASURING IN 3-D has been introduced, see Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 16 Cycle Programming User's Manual In Cycle 205 Universal Pecking you can now use parameter Q208 to define a feed rate for retraction, see Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 17 Transfer from CAD Files", page 327 New software option 96 Advanced Spindle Interpolation, see "Software options", page 9 New software option 131 Spindle Synchronism, see "Software options", page 9 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 18 Machine parameter maxLineGeoSearch (no. 105408) has been increased to max. 100000, see "Machine-specific user parameters", page 830 The names of software options number 8, 9 and 21 have changed, see "Software options", page 9 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 19 ENH.REC.TURNING, AX. have been expanded by plunge feed rate Q488 Eccentric turning with Cycle G800 ADJUST XZ SYSTEM is possible with option 50 Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 20: The D18 Functions Have Been Expanded, See "D18 – Reading System Data

    New software option 136 Visual Setup Control (camera-based monitoring of the setup situation), see "Software options", page 9,see "Camera-based monitoring of the setup situation VSC (option 136)", page 739. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 21 999.9999, see "Managing presets", page 689 Tilting is permitted in combination with mirroring, see "The PLANE function: Tilting the working plane (option 8)", page 553 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 22 Cycle 205 performs deburring on the coordinate surface With SL cycles, M110 is now taken into account with circles compensated inwards if it is active during machining Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 23 SWITCH soft key, see "Editing an NC program", page 165 File management displays vertical scrollbars and supports scrolling with the mouse, see "Calling the file manager", page 176 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 24 In the Test Run operating mode you can hide the rapid traverse movements with the FMAX PATHS soft key, see "3-D view in the Test Run operating mode", page 758 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 25 With functions NC/PLC Backup and NC/PLC Restore you can save and restore single directories or the complete TNC drive, see "Backup and restore", page 115 Touchscreens operation is supported, see "Operating the Touchscreen", page 127 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 26 M124 no longer triggers an error message but only a warning. This enables NC programs with programmed M124 to run through without interruption Upper and lower cases for a file name can be modified in the file management HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 27 "Entering the program at any point: Mid-program startup", page 782 Mid-program startup operation and dialog guidance has been improved, also for pallet tables, see "Entering the program at any point: Mid-program startup", page 782 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 28 Cycle 251 has been expanded by parameter Q439. The finishing strategy was also revised The finishing strategy was revised with cycle 252 Cycle 275 has been expanded with parameters Q369 and Q439 Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 29 The machine tool builder can define update rules that make it possible, for example, to automatically remove umlauts from tables and NC programs when importing a table, see "Importing tool tables", page 248 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 30 The D18 functions have been expanded, see "D18 – Reading system data", page 395 New machine parameter iconPrioList (no. 100813) for defining the order of icons in the status display, see "Machine-specific user parameters", page 830 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 31 "Machine-specific user parameters", page 830 The control now supports up to 24 control loops, including a maximum of four spindles. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 32 "General status display", page 94 The icon for FUNCTION TCPM was modified, see "General status display", page 94 The icon for the AFC function was modified, see "General status display", page 94 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 33 In the machine parameter decimalCharakter (no. 100805) you can define whether a period or a comma will be used as the decimal separator, see "Machine-specific user parameters", page 830 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 34 New SERIAL column in the touch probe table Enhancement of the contour train: Cycle 25 with Residual Material Machining, Cycle 276 Three-D Contour Train Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 35: Table Of Contents

    16 Turning............................623 17 Manual Operation and Setup......................663 18 Positioning with Manual Data Input..................747 19 Test Run and Program Run......................753 20 MOD Functions..........................791 21 Tables and Overviews........................829 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 36 Contents HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 37 Presetting with a 3-D touch probe......................85 Running the first program........................86 Selecting the correct operating mode....................86 Choosing the program you want to run....................86 Starting the program..........................86 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 38 Configuring the connection – VNC...................... 121 Shutting down or rebooting an external computer................122 Starting and stopping the connection....................123 Accessories: HEIDENHAIN 3-D touch probes and electronic handwheels........124 3-D touch probes..........................124 HR electronic handwheels........................125 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 39 Navigating in the table and NC programs................... 130 Operating the simulation........................131 Using the HEROS menu........................132 Operating the CAD viewer........................133 Functions in the taskbar........................138 Touchscreen Calibration........................138 Touchscreen Configuration........................138 Touchscreen Cleaning.......................... 139 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 40 Renaming a file............................ 185 Sorting files............................185 Additional functions..........................186 Additional tools for management of external file types...............187 Additional tools for ITCs........................195 Data transfer to or from an external data carrier.................197 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 41 Contents The control in a network........................199 USB devices on the control.........................200 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 42 Opening the error window........................220 Closing the error window........................220 Detailed error messages........................221 INTERNAL INFO soft key........................221 FILTER soft key............................ 221 Clearing errors............................222 Error log..............................222 Keystroke log............................223 Informational texts..........................224 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 43 Contents Saving service files..........................224 Calling the TNCguide help system...................... 224 TNCguide context-sensitive help system..................225 Application............................225 Working with TNCguide........................226 Downloading current help files......................230 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 44 Tool length compensation........................262 Tool radius compensation........................263 Tool management (option number 93)....................266 Basics..............................266 Calling tool management........................267 Editing tool management........................268 Available tool types..........................272 Importing and exporting tool data....................... 274 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 45 Datum for polar coordinates: pole I, J....................307 Straight line in rapid traverse G10 or straight line with feed rate F G11..........307 Circular path G12/G13/G15 around pole I, J..................308 Circle G16 with tangential connection....................308 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 46 Initiating the FK dialog......................... 316 Pole for FK programming........................316 Free straight line programming......................317 Free circular path programming......................318 Input possibilities..........................319 Auxiliary points............................. 322 Relative data............................323 Example: FK programming 1....................... 325 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 47 Using the CAD viewer......................... 330 Opening the CAD file...........................330 Basic settings............................331 Setting layers............................333 Setting a preset............................334 Defining the datum..........................336 Selecting and saving a contour......................339 Selecting and saving machining positions................... 343 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 48 Repeating program section repeats.....................362 Repeating a subprogram........................363 Programming examples........................364 Example: Milling a contour in several infeeds..................364 Example: Groups of holes........................365 Example: Group of holes with several tools..................366 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 49 D38 – Send information from NC program..................428 10.9 Entering formulas directly......................... 429 Entering formulas..........................429 Rules for formulas..........................431 Example of entry..........................432 10.10 String parameters..........................433 String processing functions......................... 433 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 50 Measurement results from touch probe cycles.................. 449 Checking the setup situation: Q601.....................450 10.12 Programming examples........................451 Example: Ellipse........................... 451 Example: Concave cylinder machined with spherical cutter..............453 Example: Convex sphere machined with end mill................455 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 51 Retraction from the contour in the tool-axis direction: M140..............473 Suppressing touch probe monitoring: M141..................475 Deleting basic rotation: M143......................476 Automatically retracting the tool from the contour at an NC stop: M148........... 477 Rounding corners: M197........................478 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 52 Recording a teach-in cut........................519 Activating and deactivating AFC......................524 Log file..............................526 Tool wear monitoring........................... 527 Tool load monitoring..........................527 12.6 Active Chatter Control ACC (option 145)..................528 Application............................528 Activating/deactivating ACC........................529 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 53 12.13 Dwell time FUNCTION DWELL......................547 Programming dwell time........................547 12.14 Lift off tool at NC stop: FUNCTION LIFTOFF.................. 548 Programming tool lift-off with FUNCTION LIFTOFF................548 Resetting the lift-off function....................... 550 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 54 From 3-D model to NC program......................594 Consider with post processor configuration..................595 Please note the following for CAM programming................597 Possibilities for intervention on the control..................599 ADP motion control..........................600 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 55 Processing pallet table......................... 607 14.2 Pallet preset management........................ 609 Fundamentals............................609 Using pallet presets..........................609 14.3 Tool-oriented machining........................610 Fundamentals............................610 Sequence of tool-oriented machining....................612 Mid-program startup with block scan....................613 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 56 15.1 Batch Process Manager (option 154)....................616 Fundamentals............................616 Application............................616 Opening the Batch Process Manager....................619 Creating a job list..........................619 Editing a job list........................... 621 Executing the job list........................... 622 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 57 16.5 Turning program functions (option 50).................... 647 Recessing and undercutting.........................647 Blank form update TURNDATA BLANK....................653 Inclined turning.............................654 Using a facing slide..........................656 Cutting force monitoring with the AFC function................. 660 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 58 Recording measured values from the touch probe cycles..............705 Writing measured values from the touch probe cycles to a datum table..........706 Writing measured values from the touch-probe cycles to the preset table.........707 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 59 17.12 Camera-based monitoring of the setup situation VSC (option 136)..........739 Basics..............................739 Overview.............................. 741 Produce live image..........................742 Manage monitoring data........................743 Configuration............................745 Results of the image evaluation......................746 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 60 Contents 18 Positioning with Manual Data Input..................747 18.1 Programming and executing simple machining operations............748 Positioning with manual data input (MDI)................... 749 Protecting programs in $MDI......................752 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 61 Returning to the contour........................787 19.6 Automatic program start........................788 Application............................788 19.7 Skipping blocks..........................789 Application............................789 Delete / symbol............................ 789 Delete / symbol............................ 789 19.8 Optional program-run interruption....................790 Application............................790 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 62 Check parity (parity no. 106704)......................807 Set stop bits (stopBits no. 106705)..................... 807 Set handshake (flowControl no. 106706).....................808 File system for file operation (fileSystem no. 106707)................ 808 Block check character (bccAvoidCtrlChar no. 106708)................. 808 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 63 Application............................825 Assigning the handwheel to a specific handwheel holder..............825 Setting the transmission channel......................826 Selecting the transmitter power......................826 Statistical data............................827 20.16 Load machine configuration......................828 Application............................828 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 64 Software options..........................853 Accessories............................856 21.4 Overview tables..........................857 Fixed cycles............................857 Miscellaneous functions........................859 21.5 Functions of the TNC 640 and the iTNC 530 compared..............861 Comparison: Specifications........................861 Comparison: Data interfaces........................861 Comparison: PC software........................862 Comparison: User functions........................ 862 Comparison: Miscellaneous functions....................
  • Page 65: First Steps With The Tnc 640

    First Steps with the TNC 640...
  • Page 66: Overview

    Read and follow the safety precautions and safety symbols Use the safety devices Refer to your machine manual. Switching on the machine and traversing the reference points can vary depending on the machine tool. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 67 The control is now ready for operation in the Manual operation mode. Further information on this topic Approaching reference points Further information: "Switch-on", page 664 Operating modes Further information: "Programming", page 92 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 68: Programming The First Part

    First Steps with the TNC 640 | Programming the first part Programming the first part Selecting the correct operating mode You can write programs only in Programming mode: Press the operating mode key The control switches to the Programming mode of operation.
  • Page 69: Opening A New Program/File Management

    First Steps with the TNC 640 | Programming the first part Opening a new program/file management Press the PGM MGT key The control opens the file manager. The file management of the control is arranged much like the file management on a PC with Windows Explorer.
  • Page 70: Defining A Workpiece Blank

    First Steps with the TNC 640 | Programming the first part Defining a workpiece blank After you have created a new program you can define a workpiece blank. For example, define a cuboid by entering the MIN and MAX points, each with reference to the selected preset.
  • Page 71: Program Layout

    First Steps with the TNC 640 | Programming the first part Program layout NC programs should be arranged consistently in a similar manner. This makes it easier to find your place, accelerates programming and reduces errors. Recommended program layout for simple, conventional...
  • Page 72 First Steps with the TNC 640 | Programming the first part Recommended program layout for simple cycle programs Example %BSBCYC G71 * N10 G30 G71 X... Y... Z...* N20 G31 X... Y... Z..* N30 T5 G17 S5000* N40 G00 G40 G90 Z+250* N50 G200...*...
  • Page 73: Programming A Simple Contour

    First Steps with the TNC 640 | Programming the first part Programming a simple contour The contour shown to the right is to be milled once to a depth of 5 mm. You have already defined the workpiece blank. After you have initiated a dialog through a function key, enter all the data requested by the control in the screen header.
  • Page 74 First Steps with the TNC 640 | Programming the first part Move tool to working depth: Press the orange axis key Z and enter the value for the position to be approached, e.g. -5. Press the ENT key Activate no radius compensation: Press the G40...
  • Page 75 First Steps with the TNC 640 | Programming the first part Press the L key to open an NC block for a linear movement Press the G00 soft key if you want to enter a rapid traverse motion Retract tool: Press the orange axis key Z to retract in the tool axis, and enter the value for the position to be approached, e.g.
  • Page 76: Creating A Cycle Program

    First Steps with the TNC 640 | Programming the first part Creating a cycle program The holes (depth of 20 mm) shown in the figure at right are to be drilled with a standard drilling cycle. You have already defined the workpiece blank.
  • Page 77 First Steps with the TNC 640 | Programming the first part Example %C200 G71 * N10 G30 G17 X+0 Y+0 Z-40* Workpiece blank definition N20 G31 X+100 Y+100 Z+0* N30 T5 G17 S4500* Tool call N40 G00 G90 Z+250 G40*...
  • Page 78: Graphically Testing The First Part

    First Steps with the TNC 640 | Graphically testing the first part Graphically testing the first part Selecting the correct operating mode You can test programs in the Test Run operating mode: Press the operating mode key The control switches to the Test Run mode of operation.
  • Page 79: Choosing The Program You Want To Test

    First Steps with the TNC 640 | Graphically testing the first part Choosing the program you want to test Press the PGM MGT key The control opens the file manager. Press the LAST FILES soft key The control opens a pop-up window with the most recently selected files.
  • Page 80: Starting The Test Run

    First Steps with the TNC 640 | Graphically testing the first part Starting the test run Press the RESET + START soft key The control resets the previously active tool data The control simulates the active program up to a...
  • Page 81: Setting Up Tools

    When measuring on the machine: store the tools in the tool changer Further information: "The pocket table TOOL_P .TCH", page 83 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 82: The Tool Table Tool.t

    "Modes of operation", page 91 Working with the tool table Further information: "Entering tool data into the table", page 238 Using the tool management (option 93) Further information: "Calling tool management", page 267 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 83: The Pocket Table Tool_P .Tch

    Further information on this topic Operating modes of the control Further information: "Modes of operation", page 91 Working with the pocket table Further information: "Pocket table for tool changer", page 251 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 84: Workpiece Setup

    Presetting with a 3-D touch probe Further information: "Presetting with a 3-D touch probe ", page 722 Presetting without 3-D touch probe Further information: "Presetting without a 3-D touch probe", page 697 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 85: Presetting With A 3-D Touch Probe

    To set to 0: Press the SET PRESET soft key Press the END soft key to close the menu Further information on this topic Presetting Further information: "Presetting with a 3-D touch probe ", page 722 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 86: Running The First Program

    First Steps with the TNC 640 | Running the first program Running the first program Selecting the correct operating mode You can run programs either in the Program run, single block or the Program run, full sequence mode: Press the operating mode key...
  • Page 87: Introduction

    Introduction...
  • Page 88: The Tnc 640

    Compatibility Machining programs created on HEIDENHAIN contouring controls (starting from the TNC 150 B) may not always run on the TNC 640. If the NC blocks contain invalid elements, the control will mark these as ERROR blocks or with error messages when the file is opened.
  • Page 89: Visual Display Unit And Operating Panel

    Soft-key selection keys for machine tool builders Keys for switching the soft keys for machine tool builders If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen",...
  • Page 90: Control Panel

    Mouse buttons USB connection The functions of the individual keys are described on the inside front cover. If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen", page 127 Refer to your machine manual.
  • Page 91: Modes Of Operation

    Soft keys for selecting the screen layout Soft key Window Program Left: program, right: status display Left: program, right: collision object HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 92: Programming

    Soft keys for selecting the screen layout Soft key Window Program Left: program, right: status display Left: program, right: graphics Graphic Left: program, right: collision object Collision object HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 93: Program Run, Full Sequence And Program Run, Single Block

    Soft keys for screen layout with pallet tables Soft key Window Pallet table Left: program, right: pallet table Left: pallet table, right: status display Left: pallet table, right: graphics HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 94: Status Displays

    Axes are moving under a basic rotation Axes are moving under a 3-D basic rotation Axes are moving in a tilted working plane Axes are mirrored and moved The M128 is active HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 95 The order of icons can be changed with the optional machine parameter iconPrioList (no. 100813). The control-in-operation symbol and the DCM icon (option 40) are always visible and cannot be configured. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 96: Additional Status Displays

    Tool information Active M functions Active coordinate transformations Active subprogram Active program section repeat Program called with % Current machining time Name and path of the active main program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 97 Active subprograms with block number in which the subprogram was called and the label number that was called HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 98 Positions and coordinates (POS tab) Soft key Meaning Type of position display, e.g. actual position Tilt angle of the working plane Angle of basic transformations Active kinematics HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 99 (TAB) and FUNCTION TURNDATA CORR (PGM) Tool life, maximum tool life (TIME 1) and maximum tool life for TOOL CALL (TIME 2) Display of programmed tool and replacement tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 100 In the optional machine parameter CfgDisplayCoordSys (no. 127501) you can specify the coordinate system in which the status display shows an active datum shift. Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 101 Shift (mW-CS) Rotation (WPL-CS) Feed rate factor Further information: "Global Program Settings (option 44)", page 497 The values of the Handwheel superimp. setting are displayed on the POS HR tab. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 102 Current deviation of the speed Current machining time Line diagram, in which the current spindle load and the value commanded by the control for the feed rate override are shown HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 103: Window Manager

    In this case, switch to the window manager and correct the problem. If required, refer to your machine manual. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 104: Overview Of Taskbar

    HEIDENHAIN symbol between the workspaces by pressing and holding the left mouse button. Click the green HEIDENHAIN symbol to open a menu in which you can get information, make settings or start applications. The following functions are available:...
  • Page 105 "VNC", page 113 WindowManagerConfig: Available only to authorized specialists Firewall: Configure the firewall Further information: "Firewall", page 818 HePacketManager: Available only to authorized specialists HePacketManager Custom: Available only to authorized specialists HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 106 The applications available under tools can be started directly by selecting the corresponding file type in the file management of the control Further information: "Additional tools for management of external file types", page 187 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 107: Portscan

    Select the Diagnostic menu item Select the Portscan menu item The control opens the HeRos Portscan pop-up window. Press the Automatic update on key Set the time interval with the slider HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 108: Remote Service

    With an NC software installation a temporary certificate is automatically installed on the control. An installation, also in the form of an update, may only be carried out by a service technician from the machine tool builder. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 109 Press the green HEIDENHAIN button to open the JH menu Select the Diagnostic menu item Select the RemoteService menu item Enter the Session key of the machine tool builder HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 110: Printer

    FN functions, e.g. during probing. Standard printer Select to define the standard printer in case several printers are available. Is defined automatically when creating the first printer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 111 Using the FN 16: F-PRINT function Further information: "Printing messages", page 394 List of printable files: Text files Graphic files PDF files The connected printer must be PostScript-enabled. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 112: Selinux Security Software

    Starting the SELinux configuration: The configuration of SELinux is usually password-protected by your machine manufacturer; refer here to the relevant machine manual HEIDENHAIN recommends activating SELinux because it provides additional protection against attacks from outside. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 113: Vnc

    Manual Manually entered client Denied This client is not permitted to connect TeleService/IPC 61xx Client via TeleService connection DHCP Other computer that obtains an IP address from this computer HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 114 This dialog makes it possible to refuse that the focus be given to the requesting client. If this does not occur, the focus changes to the requesting client after the set time limit. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 115: Backup And Restore

    Press the green HEIDENHAIN button to open the JH menu Select the Tools menu item Open the NC/PLC Backup or NC/PLC Restore menu item The control opens the pop-up window. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 116 Select the next step with the FORWARD soft key The control generates the backup file. Confirm with the OK soft key The control concludes the backup process and restarts the NC software. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 117 Stop the control if required with the STOP NC SOFTWARE soft Extract the archive The control restores the files. Confirm with the OK soft key The control restarts the NC software. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 118: Remote Desktop Manager (Option 133)

    HEIDENHAIN assures a functioning connection between HEROS 5 and the IPC 6641. No guarantee is given for other combinations and connections. If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen",...
  • Page 119: Configuring Connections - Windows Terminal Service (Remotefx)

    Select the desired operating system Win XP Win 7 Win 8.X Win 10 Another Windows Press OK The control opens the Edit the connection pop-up window. Edit the connection HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 120 This prevents that two users access the control simultaneously. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 121: Configuring The Connection - Vnc

    Host name or IP address of the external computer. In the recom- Required mended configuration of the IPC 6641, the IP address 192.168.254.3 is used Password Password for connecting to the VNC server Required HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 122: Shutting Down Or Rebooting An External Computer

    The control switches to the desktop of the connection. Single click with the right mouse button The control displays the connection menu. Move to the following Not active with this connection – workspace HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 123: Starting And Stopping The Connection

    Further information: "Shutting down or rebooting an external computer", page 122 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 124: Accessories: Heidenhain 3-D Touch Probes And Electronic Handwheels

    A wear-resistant optical switch generates the trigger signal. With the TT 160, signal transmission is by cable. The TT 460 supports infrared and radio transmission. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 125: Hr Electronic Handwheels

    Several electronic handwheels can also be connected simultaneously and used alternatively on controls with the (HSCI: HEIDENHAIN Serial Controller Interface) serial interface for control components. Configuration is performed via the machine tool builder. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 127: Operating The Touchscreen

    Operating the Touchscreen...
  • Page 128: Display Unit And Operation

    Tap on the operating mode in the header modes Shift the soft-key row Swipe horizontally over the soft-key row Soft-key selection keys Tap on the function in the touchscreen HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 129: Gestures

    Continuous contact of fingertip on the screen Swipe Flowing motion over the screen Drag A combination of long-press and then swipe, moving a finger over the screen when the starting point is clear- ly defined HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 130: Navigating In The Table And Nc Programs

    You can navigate in an NC program or a table as follows: Symbol Gesture Function Mark the NC block or table line Stop scrolling Double tap Activate the table line Swipe Scroll through the NC program or table HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 131: Operating The Simulation

    Function Double tap Set the graphic to its original size Drag Rotate the graphic (only 3-D graphics) Two-finger drag Move graphics Spread Magnify the graphic Pinch Reduce the graphic HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 132: Using The Heros Menu

    Gesture Function Select the measuring point Using the HEROS menu You can use the HEROS menu as follows: Symbol Gesture Function Select the application Long press Open the application HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 133: Operating The Cad Viewer

    Activate Add and double-tap on Reset the graphic or 3-D model to its original size and the background angle Drag Rotate the graphic or 3-D model (only in the Layer Setting mode) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 134 Select element Tap on an element in the list- Select or deselect an element view window Activate Add and tap on an Part, shorten, or lengthen and element element HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 135 Reset the graphic to its original size Swipe over an element Show a preview of selected elements Show element information Two-finger drag Move graphics Spread Magnify the graphic Pinch Reduce the graphic HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 136 Show a preview of selected elements Show element information Activate Add and drag Spread a fast selection area Activate Remove and drag Spread an area for deselection of elements Two-finger drag Move graphics HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 137 The third desktop stays active in the background Switch as follows back to the Programming mode of operation: Press the DIADUR key Select work surface 2 in the taskbar HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 138: Functions In The Taskbar

    Disable Touchfingers to hide the touch points Enable Single Touchfinger to show the touch point Enable Full Touchfingers to show the touch points of all fingers involved Confirm with OK HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 139: Touchscreen Cleaning

    The control locks the screen for 90 seconds. Clean the screen If you would like to stop the cleaning mode: Pull the displayed sliders apart at the same time HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 141: Fundamentals, File Management

    Fundamentals, File Management...
  • Page 142: Fundamentals

    With absolute encoders, an absolute position value is transmitted to the control immediately upon switch-on. In this way the assignment of the actual position to the machine slide position is re-established directly after switch-on. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 143: Reference Systems

    Tool Coordinate System All reference systems build up on each other. They are subject to the kinematic chain of the specific machine tool. The machine coordinate system is the reference system. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 144 Refer to the machine tool builder's documentation Use pallet presets only in conjunction with pallets Check the display of the PAL tab before you start machining HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 145 The ACTL. and NOML. displays show movements of the Y axis and Z axis in the input coordinate system. The user can program positions related to the machine datum, e.g. by using the miscellaneous function M91. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 146 Refer to the machine tool builder's documentation Use pallet presets only in conjunction with pallets Check the display of the PAL tab before you start machining HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 147 3D ROT functions B-CS PLANE functions Cycle 19 WORKING PLANE Cycle 7 DATUM SHIFT (shifting before tilting the working plane) Cycle 8 MIRROR IMAGE (mirroring before tilting the working plane) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 148 Other transformations are of course possible in the working plane coordinate system. Further information: "Working plane coordinate system WPL-CS", page 149 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 149 Turning function (option 50). I-CS Transformations in the working plane coordinate system: Cycle 7 DATUM SHIFT Cycle 8 MIRROR IMAGE Cycle 10 ROTATION Cycle 11 SCALING Cycle 26 AXIS-SPECIFIC SCALING PLANE RELATIVE HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 150 3-axis machine tools or with pure 3-axis machining. The BASE TRANSFORM. values of the active line of the preset table have a direct effect on the input coordinate system with this assumption. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 151 Orientation of the tool coordinate system can be way you need. performed in various reference systems. Further information: "Tool coordinate system T-CS", page 152 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 152 Tool angle of inclination in the machine coordinate system: Example W-CS N70 G01 X+10 Y+45 A+10 C+5 R0 M128* T-CS HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 153 + DR PROG PROG → toroid cutter or toroidal cutter Without the TCPM function or miscellaneous function M128, orientation of the tool coordinate system and input coordinate system is identical. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 154: Designation Of The Axes On Milling Machines

    The pole is set by entering two Cartesian coordinates in one of the three planes. These coordinates also set the reference axis for the polar angle H. Coordinates of the pole Reference axis of the angle (plane) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 155: Absolute And Incremental Workpiece Positions

    Absolute and incremental polar coordinates Absolute coordinates always refer to the pole and the angle reference axis. Incremental polar coordinates always refer to the last programmed nominal position of the tool. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 156: Selecting The Preset

    X=450 Y=750. By using the Datum shift cycle you can shift the datum temporarily to the position X=450, Y=750 and program the holes to 7) without further calculations. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 157: Creating And Writing Programs

    The control does not automatically check whether collisions can occur between the tool and the workpiece. There is danger of collision during the approach movement after a tool change! If necessary, program an additional safe auxiliary position HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 158: Defining The Blank: G30/G31

    N10 G30 G17 X+0 Y+0 Z-40* Spindle axis, MIN point coordinates N20 G31 X+100 Y+100 Z+0* MAX point coordinates N99999999 %NEW G71 * Program end, name, unit of measure HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 159 If you define a rotationally symmetric blank with incremental coordinates, the dimensions are then independent of the diameter programming. The subprogram can be designated with a number, an alphanumeric name, or a QS parameter. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 160 N70 G01 X+70* N80 G01 Z-100* N90 G01 X+0* N100 G01 Z+1* Contour end N110 G98 L0 * End of subprogram N99999999 %NEW G71 * Program end, name, unit of measure HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 161: Creating A New Nc Program

    The control automatically generates the first and last blocks of the NC program. If you do not wish to define a blank form, cancel the dialog at Working plane in graphic: XY using the DEL key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 162: Programming Tool Movements In Din/Iso

    Enter 40 and confirm with ENT to traverse without tool radius compensation, Move the tool to the left or to the right of the programmed contour: Press the G41 or G42 soft HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 163 MISCELLANEOUS FUNCTION M ? 3 (enter the miscellaneous function M3 Spindle on) With the END key, the control ends this dialog. Example N30 G01 G40 X+10 Y+5 F100 M3* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 164: Actual Position Capture

    (e.g. for radius compensation), then the control closes the soft-key row for axis selection. The actual-position-capture function is not allowed if the Tilt working plane function is active. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 165: Editing An Nc Program

    ENT key. Or: Press the GOTO key, enter the block number step and jump up or down the number of entered lines by pressing the N LINES soft HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 166 Confirm with the OK soft key or the ENT key, or press the CANCEL soft key to abort The file saved with SAVE AS can also be found in the file management by pressing the LAST FILES soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 167 If you start a search in a very long NC program, the control shows a progress indicator. You can cancel the search at any time, if necessary. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 168 Using the arrow keys, select the block after which you wish to insert the copied (cut) program section Insert the saved program section: Press the INSERT BLOCK soft To end the marking function, press the CANCEL SELECTION soft HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 169: The Control's Search Function

    Repeat the search process The control moves to the next block containing the text you are searching for. Terminate the search function: Press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 170 To replace all text occurrences, press the REPLACE ALL soft key. To skip the text and move to its next occurrence press the FIND soft key Terminate the search function: Press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 171: File Management: Basics

    2 GB in size. Depending on the setting, the control generates backup files with the extension *.bak after editing and saving of NC programs. This reduces the available memory space. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 172 The maximum permitted path length is 255 characters. The path length consists of the drive characters, the directory name and the file name, including the extension. Further information: "Paths", page 174 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 173: Displaying Externally Generated Files On The Control

    Depending on operating conditions (e.g. vibration load), hard disks generally have a higher failure rate after three to five years of service. HEIDENHAIN therefore recommends having the hard disk inspected after three to five years. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 174: Working With The File Manager

    PROG1.H was copied into it. The part program now has the following path: TNC:\AUFTR1\NCPROG\PROG1.I The chart at right illustrates an example of a directory display with different paths. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 175: Overview: Functions Of The File Manager

    Customize table view Manage network drives Select the editor Sort files by properties Copy a directory Delete directory with all its subdirectories Refresh directory Rename a directory Create a new directory HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 176: Calling The File Manager

    Date that the file was last edited Time Time that the file was last edited To display the dependent files, set the machine parameter dependentFiles (no. 122101) to MANUAL. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 177: Selecting Drives, Directories And Files

    Step 1: Select drive Move the highlight to the desired drive in the left window To select a drive, press the SELECT soft key, or Press the ENT key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 178 If you enter the first letter of the file you are looking for in file management, the cursor automatically jumps to the first program with the same letter. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 179: Creating A New Directory

    The original file is retained. When you start the copying process with the ENT key or the OK soft key, the control displays a pop-up window with a progress indicator. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 180: Copying Files Into Another Directory

    To leave the files as they are, press the CANCEL soft key If you want to overwrite a protected file, select the Protected files field or cancel the process. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 181: Copying A Table

    Press the TAG soft key Select additional lines, if required Press the SAVE AS soft key Enter a name for the table in which the selected lines are to be saved HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 182: Copying A Directory

    The control asks whether you want to delete the file. To confirm the deletion, press the OK soft key; or To cancel deletion, press the CANCEL soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 183: Deleting A Directory

    The control asks you whether you really want to delete the directory and all its subdirectories and files. To confirm the deletion, press the OK soft key; or To cancel deletion, press the CANCEL soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 184: Tagging Files

    To copy tagged files: Leave the active soft-key row Press the COPY soft key To delete tagged files: Leave the active soft-key row Press the DELETE soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 185: Renaming A File

    Press the SORT soft key Select the soft key with the corresponding display criterion SORT BY NAME SORT BY SIZE SORT BY DATE SORT BY TYPE SORT BY STATUS UNSORTED HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 186: Additional Functions

    To remove a USB device, proceed as follows: Move the cursor to the left-hand window Press the MORE FUNCTIONS soft key Remove the USB device Further information: "USB devices on the control", page 200 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 187: Additional Tools For Management Of External File Types

    Adjust the setting in the TNCremo data transfer software, if required (menu item >Extras > Configuration > Mode). If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen",...
  • Page 188 Press the key for switching the soft keys opens the File pull-down menu. PDF viewer Move the cursor to the Close menu item. Press the ENT key The control returns to the file management. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 189 Press the key for switching the soft keys additional tool opens the File pull- Gnumeric down menu. Move the cursor to the Close menu item Press the ENT key The control returns to the file management. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 190 If you position the mouse pointer over a button, a brief tool tip explaining the function of this button will be displayed. More information on how to use is available in Help. Browser HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 191 Press the ENT key The control returns to the file management. Do not change the Web Browser version. Otherwise, the security settings of SELinux will block the execution of Web Browser. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 192 Press the key for switching the soft keys opens the ARCHIVE pull-down menu. Xarchiver Move the cursor to the Exit menu item Press the ENT key The control returns to the file management. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 193 Select the Tools and Leafpad menu items in the pull-down menu Proceed as follows to exit Leafpad: Use the mouse to select the File menu item Select Exit The control returns to the file management. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 194 Press the key for switching the soft keys opens the File pull-down menu. ristretto Move the cursor to the Exit menu item Press the ENT key The control returns to the file management. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 195: Additional Tools For Itcs

    Using the additional ITC Gestures tool, the machine manufacturer configures the gesture control on the touch screen. Refer to your machine manual. This function may only be used with the permission of your machine manufacturer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 196 Start the tool in control using the task bar The ITC opens a pop-up window with three options Select Touch Sensitivity Press the OK button The ITC closes the pop-up window HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 197: Data Transfer To Or From An External Data Carrier

    Use the arrow keys to move the cursor to the file you wish to transfer: Moves the cursor up and down within a window Moves the cursor from the right to the left window, and vice versa HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 198 A status window appears on the control, informing about the copying progress, or Stop transfer: Press the WINDOW soft key The control displays the standard file manager window again. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 199 Auto column if the connec- tion is established automatically Set up new network connection Remove Delete existing network connection Copy Copy network connection Edit Edit network connection Clear Delete the status window HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 200 The dialog is closed with the HIDE soft key and file transfer is continued in the background. The control displays a warning until file transfer is completed. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 201 Fundamentals, File Management | Working with the file manager Removing USB devices To remove a USB device, proceed as follows: Move the cursor to the left-hand window Press the MORE FUNCTIONS soft key Remove the USB device HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 203: Programming Aids

    Programming Aids...
  • Page 204: Adding Comments

    Press the INSERT COMMENT soft key Alternative: Press the < key on the alphabetic keyboard The control inserts a semicolon ; at the beginning of the block. Press the END key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 205: Functions For Editing Of The Comment

    Jump to the beginning of a word. Use a space to separate words Jump to the end of a word. Use a space to separate words Switch between paste and overwrite mode HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 206: Freely Editing An Nc Program

    The control opens a new NC block. Add the desired syntax Confirm your entry with END After confirmation, the control checks the syntax. Errors will result in ERROR blocks. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 207: Display Of Nc Programs

    Screen content can be shifted with the mouse using the scroll bar at the right edge of the program window. In addition, the size and position of the scrollbar indicates program length and cursor position. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 208: Structuring Programs

    Displaying the program structure window / Changing the active window Display structure window: For this screen layout press the PROGRAM + STRUCTURE soft key Change the active window: Press the CHANGE WINDOW soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 209: Inserting A Structure Block In The Program Window

    If you are scrolling through the program structure window block by block, the control at the same time automatically moves the corresponding NC blocks in the program window. This way you can quickly skip large program sections. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 210: Calculator

    Add value to buffer memory Save the value to buffer memory Recall from buffer memory Delete buffer memory contents Natural logarithm Logarithm Exponential function Check the algebraic sign Form the absolute value HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 211 The calculator remains in effect even after a change in operating modes. Press the END soft key to close the calculator. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 212 Open the cutting data calculator You can also shift the calculator with the arrow keys on your keyboard. If you have connected a mouse you can also position the calculator with this. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 213: Cutting Data Calculator

    Window for spindle speed calculation: Code letter Meaning Tool radius (mm) Cutting speed (m/min) Result for spindle speed (rev/min) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 214 Load the feed per tooth from the open dialog field into the cutting data calculator form Load the value from an open dialog field into the cutting data calculator form Switch to the pocket calculator HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 215 Programming Aids | Cutting data calculator Soft key Function Move the cutting data calculator in the direction of the arrow Use inch values in the cutting data calculator Close the cutting data calculator HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 216: Programming Graphics

    RND light blue: holes and threads ocher: tool midpoint path red: rapid traverse Further information: "FK programming graphics", page 315 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 217: Generating A Graphic For An Existing Program

    Selecting views Plan view Front view Page view Display or hide tool paths Display or hide tool paths in rapid traverse HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 218: Block Number Display On/Off

    Shift the soft-key row Erase the graphics: Press the CLEAR GRAPHICS soft key Showing grid lines Shift the soft-key row Show grid lines: Press the Show grid lines soft HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 219: Magnification Or Reduction Of Details

    After you release the left mouse button, the control zooms in on the defined area. To rapidly magnify or reduce any area, rotate the mouse wheel backwards or forwards. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 220: Error Messages

    The control opens the error window and displays all accumulated error messages. Closing the error window Press the END soft key; or Press the ERR key The control closes the error window. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 221: Detailed Error Messages

    Open the error window Press the MORE FUNCTIONS soft key Press the FILTER soft key The control filters the identical warnings Leave Filter: Press the GO BACK soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 222: Clearing Errors

    Set the current error log if required: Press the CURRENT FILE soft key The oldest entry is at the beginning of the log file, and the most recent entry is at the end. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 223: Keystroke Log

    Soft key/Keys Function Go to beginning of keystroke log Go to end of keystroke log Find text Current keystroke log Previous keystroke log Up/down one line Return to main menu HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 224: Informational Texts

    There you will find further, more detailed information on the error message concerned. Call the help for HEIDENHAIN error messages Call the help for HEIDENHAIN machine-specific error messages, if available HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 225: Tncguide Context-Sensitive Help System

    .chm files. As an option, your machine tool builder can embed machine-specific documentation in the TNCguide. These documents then appear as a separate book in the main.chm file. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 226: Working With Tncguide

    Press the HELP key. The control opens the Help system and shows the description of the active function. This does not apply for miscellaneous functions or cycles from your machine manufacturer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 227 Select the page last shown Page forward if you have used the Select page last shown function Move up by one page Move down by one page HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 228 The control synchronizes the subject index and creates a list in which you can find the subject more easily. Use the ENT key to call the information on the selected keyword HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 229 If you activate the Search only in titles function, the control searches only through headings and ignores the body text. To activate the function, use the mouse or select it and then press the space bar to confirm. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 230: Downloading Current Help Files

    When using TNCremo to transfer the .chm files to the control, select the binary mode for files with the .chm extension. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 231 Danish TNC:\tncguide\fi Finnish TNC:\tncguide\nl Dutch TNC:\tncguide\pl Polish TNC:\tncguide\hu Hungarian TNC:\tncguide\ru Russian TNC:\tncguide\zh Chinese (simplified) TNC:\tncguide\zh-tw Chinese (traditional) TNC:\tncguide\sl Slovenian TNC:\tncguide\no Norwegian TNC:\tncguide\sk Slovak TNC:\tncguide\kr Korean TNC:\tncguide\tr Turkish TNC:\tncguide\ro Romanian HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 233: Tools

    Tools...
  • Page 234: Entering Tool-Related Data

    You can adjust the feed rate during the program run with the feed rate potentiometer F . The feed rate potentiometer lowers the programmed feed rate, not the feed rate calculated by the control. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 235: Spindle Speed S

    Changing during program run You can adjust the spindle speed during program run with the spindle speed potentiometer S. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 236: Tool Data

    The entire tool length is essential for the control in order to perform numerous functions involving multi-axis machining. Tool radius R You can enter the tool radius R directly. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 237: Delta Values For Lengths And Radii

    In the programming dialog, you can transfer the value for tool length and tool radius directly into the input line by pressing the desired axis soft key. Example N40 G99 T5 L+10 R+5* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 238: Entering Tool Data Into The Table

    You can select the table view with the Screen Layout key. You can choose between a list view and a form view. Other settings, such as HIDE/ SORT/ COLUMNS, can be made after the file is open. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 239 The Dynamic Collision Monitoring (DCM) function also uses the length and radius data for displaying the active tool and for collision monitoring. Incomplete or incorrect tool definitions may lead to premature or false collision warnings. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 240 Current age of the tool in minutes: The control automati- cally counts the current tool life (CUR_TIME: For CURrent TIME) A starting value can be entered for used tools HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 241 The control immediately uses the value given for regula- tion, meaning a teach-in cut is dropped. The value should be previously determined with a teach-in cut. Further information: "Recording a teach-in cut", page 519 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 242 Tool life expired Time for exceeding the tool life in minutes Further information: "Overtime for tool life", page 258 Function is defined by the machine manufacturer. Refer to your machine manual. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 243 If the entered value is exceeded, the control locks the tool (status L). Input range: 0 to 0.9999 mm For a description of the cycles governing automatic tool measurement, Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 244 Select the table start Select the table end Select the previous page in the table Select the next page in the table Find the text or number Go to beginning of line HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 245 Delete the current line (tool) Sort the tools according to the content of a column Select possible entries from a pop-up window Reset the value Place the cursor in the current cell HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 246 Show all drills in the tool table Show all cutters in the tool table Show all taps/thread cutters in the tool table Show all touch probes in the tool table HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 247 The control provides special tool management for turning tools to support this definition process. Further information: "Tool data", page 638 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 248: Importing Tool Tables

    If you export a tool table from an iTNC 530 and import it into a TNC 640, you have to adapt its format and content before you can use the tool table. On the TNC 640, you can adapt the tool table conveniently with the ADAPT NC PGM / TABLE function. The control converts the contents of the imported tool table to a format valid for the TNC 640 and saves the changes to the selected file.
  • Page 249 When iTNC 530 tool tables are imported, all defined tool types are transferred as well. Tool types not present are imported as type Undefined. Check the tool table after the import. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 250: Overwriting Tool Data From An External Pc

    (e.g. TST.T) is overwritten. All other tool data of the table TOOL.T remains unchanged. The procedure for copying tool tables using the file manager is described in the file management. Further information: "Copying a table", page 181 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 251: Pocket Table For Tool Changer

    Press the POCKET TABLE soft key Set the EDIT soft key to ON. On your machine this might not be necessary or even possible. Refer to your machine manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 252 Box magazine: Lock the pocket below below? LOCKED_LEFT Lock the pocket at Box magazine: Lock the pocket at left left? LOCKED_RIGHT Lock the pocket at Box magazine: Lock the pocket at right right? HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 253 Place the cursor in the current cell Sort the view Refer to your machine manual. The machine manufacturer defines the features, properties and designations of the various display filters. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 254: Calling The Tool Data

    If the tool axis is also entered in the T block, the control will insert a replacement tool if a replacement tool was defined. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 255 If you are working with tool tables, use a G51 block to preselect the next tool. Simply enter the tool number or a corresponding Q parameter, or type the tool name in quotation marks. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 256: Tool Change

    Directly before and after G24 and G25 During execution of macros During execution of a tool change Directly after a T block or G99 During execution of SL cycles HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 257 If you want to reset the current age of a tool (e.g. after changing the indexable inserts), enter the value 0 in the CUR_TIME column. The M101 function is not available for turning tools and in turning mode. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 258 (DR) either in the tool table or in the T block. With deviations, the control displays an error message and does not replace the tool. You can suppress this message with the M function M107, and reactivate it with M108. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 259: Tool Usage Test

    Completely run the NC program in the Program Run, Full Sequence/Single Block operating modes In the Test Run operating mode, press the GENERATE TOOL USAGE FILE soft key (also possible without simulation) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 260 Minimum feed rate override that occurred during machining. The control enters the value -1 during the test run NAMEPROG 0: The tool number is programmed 1: The tool name is programmed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 261 Press the OK soft key The control closes the pop-up window. Alternative: Press the ENT key You can query the tool usage test with the D18 ID975 NR1 function. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 262: Tool Compensation

    Tool length L from G99 block or tool table : Oversize for length DL in the T block CALL T block Oversize for length DL in the tool table HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 263: Tool Radius Compensation

    Oversize for radius DR in the tool table Contouring without radius compensation: G40 The tool center moves in the working plane along the programmed path, or to the programmed coordinates. Applications: Drilling and boring, pre-positioning HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 264 Select tool movement to the right of the contour: Press the G42 soft key, or Select tool movement without radius compensation or cancel radius compensation: Select function G40 Terminate the block: Press the END key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 265 Incorrect positions can lead to contour damage. Danger of collision during machining! Program safe approach and departure positions at a sufficient distance from the contour Consider the tool radius Consider the approach strategy HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 266: Tool Management (Option Number 93)

    If you edit a tool in tool management, the selected tool is locked. If this tool is required in the NC program being used, the control shows the message: Tool table locked. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 267: Calling Tool Management

    "Tool usage test", page 259 If a pallet table is selected in the Program Run operating mode, the Tooling list and T usage order are calculated for the entire pallet table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 268: Editing Tool Management

    SHIFT COLUMN active: The column can be moved by drag and drop Reset the manually changed settings (move columns) to the original condition HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 269 EDIT ON/OFF soft key to ON HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 270 Calculate the measured values of tool compensation (only active for turning tools) Add tool index Delete tool index Copy the tool data of the selected tool Insert the copied tool data in the selected tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 271 Regularly back up important data to external drives The tool data of tools still stored in the pocket table cannot be deleted. The tools must be removed from the magazine first. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 272: Available Tool Types

    Piloted counterbore(TSINK),TSINK Boring tool,BOR Back boring tool,BCKBOR Thread mill,GF Thread mill w/ countersink,GSF Thread mill w/ single thread,EP Thread mill w/ indxbl insert,WSP Thread milling drill,BGF Circular thread mill,ZBGF HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 273 Tools | Tool management (option number 93) Icon Tool type Tool type number Roughing cutter (MILL_R),MILL_R Finishing cutter (MILL_F),MILL_F Rough/finish cutter,MILL_RF Floor finisher(MILL_FD),MILL_FD Side finisher (MILL_FS),MILL_FS Face milling cutter,MILL_FACE HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 274: Importing And Exporting Tool Data

    Use the arrow keys or mouse to select the file to be imported and confirm with the ENT key The control shows a pop-up window with the content of the CSV file Start the import procedure with the EXECUTE soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 275 Example T,L,R,DL,DR Line 1 with column names 4,125.995,7.995,0,0 Line 2 with tool data 9,25.06,12.01,0,0 Line 3 with tool data 28,196.981,35,0,0 Line 4 with tool data HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 276 The control shows a pop-up window with the status of the export process Terminate the export process by pressing the END key or soft By default the control stores the exported CSV file in the TNC:\system\tooltab directory. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 277: Programming Contours

    Programming Contours...
  • Page 278: Tool Movements

    With the control's miscellaneous functions you can affect the program run, e.g., a program interruption the machine functions, such as switching spindle rotation and coolant supply on and off the path behavior of the tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 279: Subprograms And Program Section Repeats

    In addition, programming with Q parameters enables you to measure with the 3-D touch probe during the program run. Further information: "Programming Q Parameters", page 369 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 280: Fundamentals Of Path Functions

    If the NC block contains two coordinates, the control moves the tool in the programmed plane. Example N50 G00 X+70 Y+50* The tool retains the Z coordinate and moves on the XY plane to the position X=70, Y=50. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 281 When a circular path has no tangential transition to another contour element, enter the direction of rotation as follows: Clockwise direction of rotation: G02/G12 Counterclockwise direction of rotation: G03/G13 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 282 There is danger of collision during the approach movement! Program a suitable pre-position Check the sequence and contour with the aid of the graphic simulation HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 283: Approaching And Departing A Contour

    If danger of collision exists, approach the starting point in the spindle axis separately. Example N40 G00 Z-10* N30 G01 X+20 Y+30 G41 F350* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 284 Example in the figure on the right: If you set the end point in the dark gray area, the contour will be damaged when the contour is approached/departed. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 285: Tangential Approach And Departure

    The radius for G26 and G27 must be selected so that the control can execute the circular path between the starting point and the first contour point, as well as the last contour point and the end point. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 286: Overview: Types Of Paths For Contour Approach And Departure

    The tool approaches and departs a helix on its extension by moving in a circular arc that connects tangentially to the contour. You program helical approach and departure with the APPR CT and DEP CT functions. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 287: Important Positions For Approach And Departure

    There is danger of collision during the approach movement! Program a suitable pre-position Check the auxiliary point P , the sequence and the contour with the aid of the graphic simulation HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 288 If you program APPR LN or APPR CT with G40, the control stops the machining/simulation with an error message. This method of function differs from the iTNC 530 control! HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 289: Approaching On A Straight Line With Tangential Connection: Appr Lt

    N80 APPR LN X+10 Y+20 Z-10 LEN15 G24 F100* PA with radius comp. G42 N90 G01 X+20 Y+35* End point of the first contour element N100 G01 ...* Next contour element HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 290: Approaching On A Circular Path With Tangential Connection: Appr Ct

    N80 APPR CT X+10 Y+20 Z-10 CCA180 R+10 G42 F100* PA with radius comp. G42, radius R=10 N90 G01 X+20 Y+35* End point of the first contour element N100 G01 ...* Next contour element HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 291: Approaching On A Circular Path With Tangential Connection From A Straight Line To The Contour: Appr Lct

    N80 APPR LCT X+10 Y+20 Z-10 R10 G42 F100* PA with radius comp. G42, radius R=10 N90 G01 X+20 Y+35* End point of the first contour element N100 G01 ...* Next contour element HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 292: Departing In A Straight Line With Tangential Connection: Dep Lt

    Last contour element: PE with radius compensation N30 DEP LN LEN+20 F100* Depart perpendicular to contour by LEN=20 mm N40 G00 Z+100 M2* Retract in Z, return to block 1, end program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 293: Departing On A Circular Path With Tangential Connection: Dep Ct

    Last contour element: PE with radius compensation N30 DEP LCT X+10 Y+12 R+8 F100* Coordinates PN, arc radius=8 mm N40 G00 Z+100 M2* Retract in Z, return to block 1, end program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 294: Path Contours  Cartesian Coordinates

    If you enter DIN/ISO functions via a connected USB keyboard, make sure that capitalization is active. At the start of the block the control automatically writes in capitals. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 295: Straight Line In Rapid Traverse G00 Or Straight Line With Feed Rate F G01

    Select the NC block after which you want to insert the straight line block Press the actual position capture key The control generates a straight-line block with the actual position coordinates. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 296: Inserting A Chamfer Between Two Straight Lines

    A feed rate programmed in the G24 block is effective only in that CHF block. After the G24 block, the previous feed rate becomes effective again. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 297: Rounded Corners G25

    A feed rate programmed in the G25 block is effective only in that G25 block. After the G25 block, the previous feed rate becomes effective again. You can also use an G25 block for a tangential contour approach. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 298: Circle Center I, J

    The only effect of I and J is to define a position as circle center: The tool does not move to this position. The circle center is also the pole for polar coordinates. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 299: Circular Path Around Circle Center

    The maximum value for input tolerance is 0.016 mm. Set the input tolerance in the machine parameter circleDeviation (no. 200901). Smallest possible circle that the control can traverse: 0.016 mm. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 300: Circle G02/G03/G05 With Defined Radius

    However, you can also program circular arcs that do not lie in the active working plane. By simultaneously rotating these circular movements you can create spatial arcs (arcs in three axes). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 301 N100 G01 G41 X+40 Y+40 F200 M3* N110 G02 X+70 Y+40 R+20* (arc 1) N110 G03 X+70 Y+40 R+20* (arc 2) N110 G02 X+70 Y+40 R-20* (arc 3) N110 G03 X+70 Y+40 R-20* (arc 4) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 302: Circle G06 With Tangential Connection

    A tangential arc is a two-dimensional operation: the coordinates in the G06 block and in the contour element preceding it must be in the same plane of the arc! HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 303: Example: Linear Movements And Chamfers With Cartesian Coordinates

    Tangential exit N160 G40 X-20 Y-20 F1000* Retract the tool in the working plane, cancel radius compensation N170 G00 Z+250 M2* Retract the tool, end program N99999999 %LINEAR G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 304: Example: Circular Movements With Cartesian Coordinates

    N180 G40 X-20 Y-20 F1000* Retract the tool in the working plane, cancel radius compensation N190 G00 Z+250 M2* Retract the tool in the tool axis, end of program N99999999 %CIRCULAR G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 305: Example: Full Circle With Cartesian Coordinates

    N120 G01 G40 X-40 Y-50 F1000* Retract the tool in the working plane, cancel radius compensation N130 G00 Z+250 M2* Retract the tool in the tool axis, end of program N99999999 %C-CC G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 306: Path Contours - Polar Coordinates

    Combination of a circular and a Polar radius, polar angle of the linear movement arc end point, coordinate of the end point in the tool axis HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 307: Datum For Polar Coordinates: Pole I, J

    If the angle from the angle reference axis to R is clockwise: H<0 Example N120 I+45 J+45* N130 G11 G42 R+30 H+0 F300 M3* N140 H+60* N150 G91 H+60* N160 G90 H+180* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 308: Circular Path G12/G13/G15 Around Pole I, J

    The pole is the center of the contour arc! Example N120 I+40 J+35* N130 G01 G42 X+0 Y+35 F250 M3* N140 G11 R+25 H+120* N150 G16 R+30 H+30* N160 G01 Y+0* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 309: Helix

    Internal thread Work direction Direction of rotation Radius compensation Right-hand Left-hand Right-hand Z– Left-hand Z– External thread Right-hand Left-hand Right-hand Z– Left-hand Z– HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 310 Enter the radius compensation according to the table Example: Thread M6 x 1 mm with 5 revolutions N120 I+40 J+25* N130 G01 Z+0 F100 M3* N140 G11 G41 R+3 H+270* N150 G12 G91 H-1800 Z+5* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 311: Example: Linear Movement With Polar Coordinates

    N170 G40 R+60 H+180 F1000* Retract the tool in the working plane, cancel radius compensation N180 G00 Z+250 M2* Retract in the spindle axis, end of program N99999999 %LINEARPO G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 312: Example: Helix

    N100 G13 G91 H+3240 Z+13,5 F200* Helical traverse N110 G27 R2 F500* Tangential exit N120 G01 G40 G90 X+50 Y+50 F1000* Retract the tool, end program N130 G00 Z+250 M2* N99999999 %HELIX G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 313: Path Contours - Fk Free Contour Programming

    FK programming graphics. The figure at upper right shows a workpiece drawing for which FK programming is the most convenient programming method. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 314 NC blocks with the gray path function keys to fully define the direction of contour approach. Do not program an FK contour immediately after an L command. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 315: Fk Programming Graphics

    Showing block numbers in the graphic window To show a block number in the graphic window: Set the SHOW OMIT BLOCK NR. soft key to SHOW (soft-key row 3) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 316: Initiating The Fk Dialog

    The control displays the axis soft keys of the active working plane. Enter the pole coordinates using these soft keys The pole for FK programming remains active until you define a new one using FPOL. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 317: Free Straight Line Programming

    To display the soft keys for free contour programming, press the FK key To initiate the dialog, press the FLT soft key Enter all known data in the block by using the soft keys HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 318: Free Circular Path Programming

    To display the soft keys for free contour programming, press the FK key To initiate the dialog, press the FCT soft key Enter all known data in the block by using the soft keys HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 319: Input Possibilities

    Adapt imported NC programs if required Example N20 FLT X+25 LEN 12.5 AN+35 G41 F200* N30 FC DR+ R6 LEN 10 AN-45* N40 FCT DR- R15 LEN 15* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 320 Rotational direction of the arc Radius of an arc Example N10 FC CCX+20 CCY+15 DR+ R15* N20 FPOL X+20 Y+15* N30 FL AN+40* N40 FC DR+ R15 CCPR+35 CCPA+40* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 321 FK section. Beginning of CLSD+ contour: End of contour: CLSD– Example N10 G01 X+5 Y+35 G41 F500 M3* N20 FC DR- R15 CLSD+ CCX+20 CCY+35* N30 FCT DR- R+15 CLSD-* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 322: Auxiliary Points

    X and Y coordinates of an auxiliary point near a circular arc Distance of auxiliary point to circu- lar arc Example N10 FC DR- R10 P1X+42.929 P1Y+60.071* N20 FLT AN-70 PDX+50 PDY+53 D10* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 323: Relative Data

    Polar coordinates relative to block N Example N10 FPOL X+10 Y+10* N20 FL PR+20 PA+20* N30 FL AN+45* N40 FCT IX+20 DR- R20 CCA+90 RX 20* N50 FL IPR+35 PA+0 RPR 20* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 324 N Example N10 FL X+10 Y+10 G41* N20 FL ...* N30 FL X+18 Y+35* N40 FL ...* N50 FL ...* N60 FC DR- R10 CCA+0 ICCX+20 ICCY-15 RCCX10 RCCY30* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 325: Example: Fk Programming 1

    N150 DEP CT CCA90 R+5 F2000* Depart the contour on a circular arc with tangential connection N160 G00 X-30 Y+0* N170 G00 Z+250 M2* Retract the tool, end program N99999999 %FK1 G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 327: Data Transfer From Cad Files

    Data Transfer from CAD Files...
  • Page 328: Screen Layout Of The Cad Viewer

    The control displays the following file formats: File Type Format Step .STP and .STEP AP 203 AP 214 IGES .IGS and .IGES Version 5.3 .DXF R10 to 2015 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 329: Cad Import (Option 42)

    Further information: "File names", page 172 The control does not support binary DXF format. Save the DXF file in ASCII format in the CAD or drawing program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 330: Using The Cad Viewer

    Klartext program by copy and paste using the clipboard. If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen",...
  • Page 331: Basic Settings

    The active + symbol is the same as the pressed Shift key, and the active – symbol is the same as the pressed CTRL key. The active cursor symbol is the same as the mouse HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 332 In addition, you must remove the comments that the CAD-Viewer inserts into the contour program. The control displays the active basic settings in the status bar of the screen. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 333: Setting Layers

    Alternatively, use the space key Show a layer: Select the layer with the left mouse button, and click its check box to show it Alternatively, use the space key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 334: Setting A Preset

    The control sets the preset symbol at the selected location. You can adjust the orientation of the coordinate system, if required. Further information: "Adjusting the orientation of the coordinate system", page 335 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 335 In the Element Information window, the control shows how far the preset you have chosen is located from the drawing datum, and how this reference system is oriented with respect to the drawing. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 336: Defining The Datum

    The control sets the preset symbol at the selected location. You can adjust the orientation of the coordinate system, if required. Further information: "Adjusting the orientation of the coordinate system", page 337 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 337 Left-click an element that is approximately in the positive Y direction The control aligns the Y and Z axes and displays them in green and blue in the list view. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 338 Data Transfer from CAD Files | CAD import (option 42) Element information In the Element Information window, the control shows how far the datum you have chosen is located from the workpiece preset. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 339: Selecting And Saving A Contour

    Layer: Indicates the layer you are currently on Type: Indicates the current element type, e.g. line Coordinates: Shows the starting point and end point of an element, and circle center and radius where appropriate HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 340 The control saves the contour program to the selected directory. If you want to select more contours, press the Cancel Selected Elements soft key and select the next contour as described above HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 341 If the contour element to be extended or shortened is a circular arc, then the control extends or shortens the contour element along the same arc. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 342 To rapidly magnify or reduce any area: Rotate the mouse wheel backwards or forwards To return to the standard display: Double-click with the right mouse key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 343: Selecting And Saving Machining Positions

    (L X... Y... Z... F MAX M99). You can also transfer this program to older TNC controls and run it there. The point tables (.PNT) of the TNC 640 and iTNC 530 are not compatible. Transferring and processing on the other control type in each case may lead to problems and unforeseen performance.
  • Page 344 The control saves the contour program to the selected directory. If you want to select more machining positions, press the Cancel Selected Elements icon and select as described above HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 345 The control saves the contour program to the selected directory. If you want to select more machining positions, press the Cancel Selected Elements icon and select as described above HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 346 The control saves the contour program to the selected directory. If you want to select more machining positions, press the Cancel Selected Elements icon and select as described above HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 347 Display the next larger diameter found Display the largest diameter found (default setting) You can have the tool paths displayed by clicking the SHOW TOOL PATH icon. Further information: "Basic settings", page 331 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 348 To return to the standard display, press the shift key and simultaneously double-click with the right mouse button. The rotation angle is maintained if you only double-click with the right mouse button HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 349: Subprograms And Program Section Repeats

    Subprograms and Program Section Repeats...
  • Page 350: Labeling Subprograms And Program Section Repeats

    Do not use a label number or label name more than once! Label 0 (G98 L0) is used exclusively to mark the end of a subprogram and can therefore be used as often as desired. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 351: Subprograms

    Write subprograms after the block with M2 or M30 If subprograms are located before the block with M2 or M30 in the part program, they will be executed at least once even if they are not called HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 352: Programming The Subprogram

    LBL NAME soft key to switch to text entry. L 0 is not permitted (Label 0 is only used to mark the end of a subprogram). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 353: Program-Section Repeats

    The total number of times the program section is executed is always one more than the programmed number of repeats, because the first repeat starts after the first machining process. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 354: Programming A Program Section Repeat

    If you want to use a LABEL name, press the LBL NAME soft key to switch to text entry Enter the number of repeats REP and confirm with the ENT key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 355: Any Desired Nc Program As Subprogram

    Select an NC program with %:PGM: Call the last selected file with %<>% Select any NC program with G: : as a fixed cycle Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 356: Operating Sequence

    If the called NC program contains the miscellaneous functions M2 or M30, then the control displays a warning. The control automatically clears the warning as soon as you select another NC program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 357: Calling Any Program As A Subprogram

    As a rule, Q parameters are effective globally with a program call with %. So please note that changes to Q parameters in the called program also influence the calling program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 358 Enter the path name with the keyboard Press the SELECT FILE soft key The control shows a selection window that allows you to select the program to be called. Press the ENT key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 359 D18 function (ID10 NR110 and NR111) Further information: "D18 – Reading system data", page 395 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 360: Nesting

    Maximum nesting depth for subprograms: 19 Maximum nesting depth for main program calls: 19, where a G79 acts like a main program call You can nest program section repeats as often as desired HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 361: Subprogram Within A Subprogram

    45. End of subprogram 1 and return jump to the main program UPGMS. 5 Main program UPGMS is executed from block 18 up to block 35. Return jump to block 1 and end of program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 362: Repeating Program Section Repeats

    (including the program section repeat between 20 and block 27). 5 Main program REPS is executed from block 36 to block 50. Return jump to block 1 and end of program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 363: Repeating A Subprogram

    This means that subprogram 2 is repeated twice. 4 Main program UPGREP is executed from block 13 up to block 19. Return jump to block 1 and end of program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 364: Programming Examples

    Retract tool N200 L1,4* Return jump to label 1; section is repeated a total of 4 times N200 G00 Z+250 M2* Retract the tool, end program N99999999 %PGMWDH G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 365: Example: Groups Of Holes

    N160 Y+20 M99* Move to 3rd hole, call cycle N170 X-20 G90 M99* Move to 4th hole, call cycle N180 G98 L0* End of subprogram 1 N99999999 %UP1 G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 366: Example: Group Of Holes With Several Tools

    ;FEED RATE FOR PLNGNG Q211=0.5 ;DWELL TIME AT DEPTH Q208=400 ;RETRACTION FEED RATE Q203=+0 ;SURFACE COORDINATE Q204=10 ;2ND SET-UP CLEARANCE N150 L1,0* Call subprogram 1 for the entire hole pattern HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 367 N280 Y+20 M99* Move to 3rd hole, call cycle N290 X-20 G90 M99* Move to 4th hole, call cycle N300 G98 L0* End of subprogram 2 N310 %UP2 G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 369: Programming Q Parameters

    Programming Q Parameters...
  • Page 370: 10.1 Principle And Overview Of Functions

    0 to 99 Parameters for users 100 to 199 Parameters for HEIDENHAIN functions (e.g., cycles) 200 to 499 Parameters for the machine tool builder (e.g., cycles) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 371 Only use Q parameter ranges recommended by HEIDENHAIN. Comply with the documentation from HEIDENHAIN, the machine tool builder, and suppliers. Check the machining sequence using a graphic simulation HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 372: Programming Notes

    You can reset Q parameters to the status Undefined. If a position is programmed with a Q parameter that is undefined, the control ignores this movement. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 373: Calling Q Parameter Functions

    Then you define the parameter number. If you have a USB keyboard connected, you can press the Q key to open the dialog for entering a formula. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 374: Part Families-Q Parameters In Place Of Numerical Values

    Example: Cylinder with Q parameters Cylinder radius: R = Q1 Cylinder height: H = Q2 Cylinder Z1: Q1 = +30 Q2 = +10 Cylinder Z2: Q1 = +10 Q2 = +50 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 375: Describing Contours With Mathematical Functions

    You can enter the following to the right of the = sign: Two numbers Two Q parameters A number and a Q parameter The Q parameters and numerical values in the equations can be entered with positive or negative signs. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 376: Programming Fundamental Operations

    FIRST VALUE / PARAMETER? Enter Q5 as the first value and confirm with the ENT key. SECOND VALUE / PARAMETER? Enter 7 as the second value and confirm with the ENT key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 377 The D00 function also supports transfer of the value Undefined. If you wish to transfer the undefined Q parameter without D00, the control shows the error message Invalid value. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 378: 10.4 Angle Functions

    Calculate and assign an angle with the arc tangent from the opposite and adjacent sides or with the sine and cosine of the angle (0 < angle < 360°) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 379: 10.5 Calculation Of Circles

    (Y if spindle axis is Z) in parameter Q21, and the circle radius in parameter Q22. Note that D23 and D24 automatically overwrite the resulting parameter and the two following parameters. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 380: 10.6 If-Then Decisions With Q Parameters

    Unconditional jumps An unconditional jump is programmed by entering a conditional jump whose condition is always true. Example: D09 P01 +10 P02 +10 P03 1 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 381: Programming If-Then Decisions

    D12: IF LESS, JUMP e. g. D12 P01 +Q5 P02 +0 P03 "ANYNAME" * If the first value or parameter is smaller than the second value or parameter, jump to specified label HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 382: 10.7 Checking And Changing Q Parameters

    If you want to check or edit local, global or string parameters, press the SHOW PARAMETERS Q QL QR QS soft key. The control then displays the specific parameter type. The functions previously described also apply. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 383 The result of Q1 = COS 89.999 * 0.001 is shown by the control as +1.74532925e-08, whereby e-08 corresponds to the factor of 10 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 384: Additional Functions

    Read from a freely definable table Transfer up to eight values to the D37Export local Q parameters or QS parameters into a calling program Send information from the NC program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 385: D14: Displaying Error Messages

    With the D14 error function, you can output error messages under program control. The messages are predefined by the machine tool builder or by HEIDENHAIN. If, during a program run or test run, the control encounters a block with D14, then the control will interrupt the program run or test run and display an error message.
  • Page 386 Pocket too large: scrap axis 2 1054 Stud too small: scrap axis 1 1055 Stud too small: scrap axis 2 1056 Stud too large: rework axis 1 1057 Stud too large: rework axis 2 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 387 1089 Slot position 0 not allowed 1090 Enter an infeed not equal to 0 1091 Switchover of Q399 not allowed 1092 Tool not defined 1093 Tool number not permitted HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 388 Plunging type is not possible 1105 Plunge angle incorrectly defined 1106 Angular length is undefined 1107 Slot width is too large 1108 Scaling factors not equal 1109 Tool data inconsistent HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 389: D16 - Formatted Output Of Texts And Q Parameter Values

    Format for text variable QS Format for integer Separation character between output format and parameter End of block character Line break Q parameter value, right-aligned Q parameter value, left-aligned HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 390 Outputs text only for Polish conversational language L_HUNGARIA Outputs text only for Hungarian conversa- tional language L_CHINESE Outputs text only for Chinese conversational language L_CHINESE_TRAD Outputs text only for Chinese (traditional) conversational language HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 391 "MEASURING LOG OF IMPELLER CENTER OF GRAVITY"; "DATE: %02d.%02d.%04d",DAY,MONTH,YEAR4; "TIME: %02d:%02d:%02d",HOUR,MIN,SEC; "NO. OF MEASURED VALUES: = 1"; "X1 = %9.3F", Q31; "Y1 = %9.3F", Q32; "Z1 = %9.3F", Q33; HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 392 D18 (e.g., the number of the last touch probe cycle used). Further information: "D18 – Reading system data", page 395 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 393 D16 function with the following syntax: Input Function :'QS1' Set the QS parameter with preceding colon and between single quotation marks :'QL3'.txt Specify additional file name extension for the target file if required HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 394 Printer:\ as the name of the log file and then enter the corresponding file name. The control saves the file in the PRINTER: path until the file is printed. Example N90 D16 P01 TNC:\MASKE\MASKE1.A/PRINTER:\DRUCK1 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 395: D18 - Reading System Data

    This function eliminates relative file paths. QS parameter Is there a directory with the name QS(IDX)? number 0 = no, 1 = Yes Only absolute directory paths are possible. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 396 Programmed cutting speed in turning opera- tion Spindle mode in turning mode: 0 = constant speed 1 = constant cutting speed Coolant status M7: 0 = inactive, 1 = active HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 397 Q parameter number for the result (touch probe cycles 30 to 33) Q parameter type for the result (touch probe cycles 30 to 33) 1 = Q, 2 = QL, 3 = QR HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 398 TT: Breakage tolerance for radius, RBREAK Tool no. Maximum speed NMAX Tool no. Point angle TANGLE Tool no. LIFTOFF allowed (0 = No, 1 = Yes) Tool no. Wear tolerance for radius R2TOL HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 399 Timestamp of last use Tool no. Tool no. Pitch for thread cycles Tool no. AFC: reference load Tool no. AFC: overload early warning Tool no. AFC: overload NC stop HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 400 Oversize for tool length DL Tool radius oversize DR Automatic TOOL CALL 0 = Yes, 1 = No Tool radius oversize DR2 Tool index Active feed rate Cutting speed [mm/min] HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 401 13 = Unload external tool, 14 = Unload internal tool, 15 = Unload special tool Tool number T Length Radius Index Tool data programmed in TOOL DEF 1 = Yes, 0 = No HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 402 0. Index 99 = active spindle Tool compensation 1 = without Active radius oversize 2 = with oversize 3 = with HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 403 Projects the angle specified in the QL parameter from the input coordinate system to the tool coordinate system. If IDX is omitted, the angle 0 is used for projection. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 404 Read the current position in the active coordinate system Axis Current nominal position in the input system Read the current position in the active coordinate system, including offsets (handwheel, etc.) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 405 Axis Current system time System time in seconds that has elapsed since 01.01.1970, 00:00:00 (real time). System time in seconds that has elapsed since 01.01.1970, 00:00:00 (look-ahead calcu- lation). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 406 January 1, 1970 (look-ahead calculation) Format: YYYY-MM-DD hh:mm:ss Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time) Format: YYYY-MM-DD hh:mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 407 00:00:00 UTC on January 1, 1970 (look-ahead calculation) Format: D.MM.YY Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (real time) Format: YYYY-MM-DD HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 408 00:00:00 UTC on January 1, 1970 (real time) Format: h:mm Formatting of: System time in seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (look-ahead calculation) Format: h:mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 409 3 = Working plane coordinate system WPL - GPS: Shift in the workpiece system 0 = Off, 1 = On GPS: Axis offset 0 = Off, 1 = On HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 410 Rapid traverse Measuring feed rate Feed rate for pre-positioning: FMAX_PROBE or FMAX_MACHINE Maximum measuring range Set-up clearance Spindle orientation possible 0=No, 1=Yes Angle of spindle orientation in degrees HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 411 Coordinate / Readout of the measurement results in the axis form of coordinates / axis values in the input system from probing operations. Compensation: only length Oriented spindle stop HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 412 NC error 12 = Continuation with the row in the pallet table in which the NC error arose 13 = Continuation with the next pallet HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 413 Feed-rate limit for high speeds (MP_maxG1Feed) in mm/min Max. jerk at low speeds (MP_maxPathJerk) in m/s Max. jerk at high speeds (MP_maxPath- JerkHi) in m/s Tolerance at low speeds (MP_pathTolerance) in mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 414 DCM: Maximum tolerance for linear axes in cal axis mm (MP_maxLinearTolerance) Index of physi- DCM: Maximum angle tolerance in [°] cal axis (MP_maxAngleTolerance) Index of physi- Tolerance monitoring for successive threads cal axis (MP_threadTolerance) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 415 (MP_maxPathAccHi) Index of physi- Compensation of following error in the jerk cal axis phase (MP_IpcJerkFact) Index of physi- kv factor of the position controller in 1/s cal axis (MP_kvFactor) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 416 Oversize for tool length DL Tool radius oversize DR Tool radius oversize DR2 Tool locked TL 0 = not locked, 1 = locked Number of the replacement tool RT Maximum tool age TIME1 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 417 Read and write data of current turning tool Tool number Tool length XL Tool length YL Tool length ZL Tool length oversize DXL Oversize in tool length DYL Tool length oversize DZL Tooth radius (RS) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 418 Z component of the Z direction X component of the X direction Y component of the X direction Z component of the X direction Type of angle definition: Angle 1 Angle 2 Angle 3 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 419 If the tool selected by these rules is locked, a replacement tool will be returned. –1: No tool with the specified name found in the tool table or all qualifying tools are locked. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 420 0 = simulation 2-D graphics during programming active? 1 = yes 0 = no Generate graphics during programming (soft key AUTO DRAW) active? 1 = yes 0 = no HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 421 0 = no 1 = yes M101 active (visible condition)? 0 = no 1 = yes M136 active? 0 = no 1 = yes HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 422 FOR SYNC. Input no. PLC input Output no. PLC output Counter no. PLC counter Timer no. PLC timer Byte no. PLC byte Word no. PLC word Double-word PLC double word HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 423 TS probe type from TYPE column of the touch probe table (tchprobe.tp) Type of TT tool touch probe from CfgTT/type. Key name of the active tool touch probe TT from CfgProbes/activeTT. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 424 Read data of the current tool (system string) 10950 Current tool name. Example: Assign the value of the active scaling factor for the Z axis to Q25. N55 D18 Q25 ID210 NR4 IDX3* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 425: D19 - Transfer Values To The Plc

    Comply with the documentation from HEIDENHAIN, the machine tool builder, and suppliers. The D19 function transfers up to two numerical values or Q parameters to the PLC. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 426: D20 - Nc And Plc Synchronization

    NC program has actually reached that block. Example: Pause internal look-ahead calculation, read current position in the X axis N32 D20 SYNC N33 D18 Q1 ID270 NR1 IDX1* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 427: D29 - Transfer Values To The Plc

    Comply with the documentation from HEIDENHAIN, the machine tool builder, and suppliers. The D29 function transfers up to eight numerical values or Q parameters to the PLC. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 428: D37 - Export

    For more detailed information, consult the Remo Tools SDK manual. Example Document values from Q1 and Q23 in the log. D38* /"Q parameter Q1: %f Q23: %f" P02 +Q1 P02 +Q23* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 429: Entering Formulas Directly

    Q10 = ASIN 0.75 Arc cosine Inverse function of the cosine; determine the angle from the ratio of the adjacent side to the hypotenuse e.g., Q11 = ACOS Q40 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 430 When return value Q12 = 1, then Q50 > 0 When return value Q12 = -1, then Q50 < 0 Calculate modulo value (division remainder) e.g., Q12 = 400 % 360 result: Q12 = 40 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 431: Rules For Formulas

    2 Calculation step 3 to the third power = 27 3 Calculation 100 – 27 = 73 Distributive law Law of distribution with parentheses calculation a * (b + c) = a * b + a * c HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 432: Example Of Entry

    OPENING PARENTHESIS soft key Enter 12 (Q parameter number) Select division Enter 13 (Q parameter number) Close parentheses and conclude formula entry Example N10 Q25 = ATAN (Q12/Q13) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 433: String Parameters

    When you use the STRING FORMULA function, the result of the arithmetic operation is always a string. When you use the FORMULA function, the result of the arithmetic operation is always a numeric value. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 434: Assign String Parameters

    Press the SPEC FCT key Press the PROGRAM FUNCTIONS soft key Press the STRING FUNCTIONS soft key Press the DECLARE STRING soft key Example N30 DECLARE character string QS10 = "Workpiece" HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 435: Chain-Linking String Parameters

    Example: QS10 is to include the complete text of QS12, QS13 and QS14 N37 QS10 = QS12 || QS13 || QS14 Parameter contents: QS12: Workpiece QS13: Status: QS14: Scrap QS10: Workpiece Status: Scrap HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 436: Converting A Numerical Value To A String Parameter

    END key Example: Convert parameter Q50 to string parameter QS11, use 3 decimal places N37 QS11 = TOCHAR ( DAT+Q50 DECIMALS3 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 437: Copying A Substring From A String Parameter

    The first character of a text string starts internally at the 0-position Example: A four-character substring (LEN4) is read from the string parameter QS10 beginning with the third character (BEG2) N37 QS13 = SUBSTR ( SRC_QS10 BEG2 LEN4 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 438: Reading System Data

    Information for unbalance cycle, Path of the unbalance calibration table belonging to 10855 the active kinematics Tool data, 10950 Tool name DOC entry of the tool AFC control setting Tool-carrier kinematics HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 439: Converting A String Parameter To A Numerical Value

    Close the parenthetical expression with the ENT key and confirm your entry with the END key Example: Convert string parameter QS11 to a numerical parameter Q82 N37 Q82 = TONUMB ( SRC_QS11 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 440: Testing A String Parameter

    Example: Search through QS10 for the text saved in parameter QS13. Begin the search at the third place. N37 Q50 = INSTR ( SRC_QS10 SEA_QS13 BEG2 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 441: Finding The Length Of A String Parameter

    END key Example: Find the length of QS15 N37 Q52 = STRLEN ( SRC_QS15 ) If the selected string parameter is not defined the control returns the result -1. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 442: Comparing Alphabetic Priority

    +1: The first QS parameter follows the second QS parameter alphabetically Example: QS12 and QS14 are compared for alphabetic priority N37 Q52 = STRCOMP ( SRC_QS12 SEA_QS14 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 443: Reading Out Machine Parameters

    KEY_QS: Group name (key) of the machine parameter TAG_QS: Object name (entity) of the machine parameter ATR_QS: Name (attribute) of the machine parameter IDX: Index of the machine parameter HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 444 Assign string parameter for key 15 QS12 = "CfgDisplaydata" Assign string parameter for entity 16 QS13 = "axisDisplay" Assign string parameter for parameter name 17 QS1 = Read out machine parameter CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 IDX3 ) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 445 Assign string parameter for key N20 QS12 = "CfgGeoCycle" Assign string parameter for entity N30 QS13 = "pocketOverlap" Assign string parameter for parameter name N40 Q50 = CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 ) Read out machine parameter HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 446: 10.11 Preassigned Q Parameters

    Tool radius R (tool table or G99 block) Delta value DR from the tool table Delta value DR from the T block The control remembers the current tool radius even if the power is interrupted. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 447: Tool Axis: Q109

    Dimensional data of the main program Parameter value Metric system (mm) Q113 = 0 Imperial system (inch) Q113 = 1 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 448: Tool Length: Q114

    Tilting the working plane with spatial (workpiece) angles instead of spindle head angles: Coordinates for rotary axes calculated by the control. Coordinates Parameter value A axis Q120 B axis Q121 C axis Q122 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 449: Measurement Results From Touch Probe Cycles

    Parameter value Rotation about the A axis Q170 Rotation about the B axis Q171 Rotation about the C axis Q172 Workpiece status Parameter value Good Q180 Rework Q181 Scrap Q182 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 450: Checking The Setup Situation: Q601

    Q601 = 1 Error Q601 = 2 No monitoring area defined or not enough Q601 = 3 reference images Internal errs (no signal, camera fault, etc) Q601 = 10 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 451: Programming Examples

    Calculate angle increment N230 D00 Q36 P01 +Q5* Copy starting angle N240 D00 Q37 P01 +0* Set counter N250 Q21 = Q3 * COS Q36 Calculate X coordinate for starting point HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 452 Reset the rotation N380 G54 X+0 Y+0* Reset the datum shift N390 G00 G40 Z+Q12* Move to set-up clearance N400 G98 L0* End of subprogram N99999999 %ELLIPSE G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 453: Example: Concave Cylinder Machined With Spherical Cutter

    Copy starting angle in space (Z/X plane) N250 Q25 = ( Q5 - Q4 ) / Q13 Calculate angle increment N260 G54 X+Q1 Y+Q2 Z+Q3* Shift datum to center of cylinder (X axis) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 454 N420 G98 L99* N430 G73 G90 H+0* Reset the rotation N440 G54 X+0 Y+0 Z+0* Reset the datum shift N450 G98 L0* End of subprogram N99999999 %CYLIN G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 455: Example: Convex Sphere Machined With End Mill

    N280 G54 X+Q1 Y+Q2 Z-Q16* Shift datum to center of sphere N290 G73 G90 H+Q8* Account for starting angle of rotational position in the plane N300 G98 L1* Pre-position in the spindle axis HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 456 N460 D09 P01 +Q28 P02 +Q9 P03 1* N470 G73 G90 H+0* Reset the rotation N480 G54 X+0 Y+0 Z+0* Reset the datum shift N490 G98 L0* End of subprogram N99999999 %SPHERE G71 * HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 457: Miscellaneous Functions

    Miscellaneous Functions...
  • Page 458: Entering Miscellaneous Functions M And Stop

    In this case, the dialog is continued for the parameter input. In the Manual operation and Electronic handwheel operating modes, the M functions are entered with the M soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 459 M (miscellaneous) function in a STOP block: To program an interruption of program run, press the STOP key Enter a miscellaneous function M Example N87 G38 M6* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 460: Miscellaneous Functions For Program Run Inspection, Spindle And Coolant

    ■ Tool change Spindle STOP Program STOP ■ Coolant ON ■ Coolant OFF ■ Spindle ON clockwise Coolant ON ■ Spindle ON counterclockwise Coolant ON ■ Same as M2 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 461: Miscellaneous Functions For Coordinate Entries

    The coordinate values on the control screen reference the machine datum. Switch the display of coordinates in the status display to REF . Further information: "Status displays", page 94 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 462 Further information: "Showing the workpiece blank in the working space ", page 764 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 463: Moving To Positions In A Non-Tilted Coordinate System With A Tilted Working Plane: M130

    If the M130 function is combined with a cycle call, the control will interrupt the execution with an error message. Effect M130 functions blockwise in straight-line blocks without tool radius compensation. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 464: Miscellaneous Functions For Path Behavior

    Move to contour point 15 N160 Y+0.5 ... F ... M97* Machine small contour step 15 to 16 N170 G90 X ... Y ... * Move to contour point 17 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 465: Machining Open Contour Corners: M98

    Example: Move to the contour points 10, 11 and 12 in succession N100 G01 G41 X ... Y ... F ...* N110 X ... G91 Y ... M98* N120 X+ ...* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 466: Feed Rate Factor For Plunging Movements: M103

    The feed rate for plunging is to be 20% of the feed rate in the plane. Actual contouring feed rate (mm/min): N170 G01 G41 X+20 Y+20 F500 M103 F20* N180 Y+50* N190 G91 Z-2.5* N200 Y+5 Z-5* N210 X+50* N220 G90 Z+5* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 467: Feed Rate In Millimeters Per Spindle Revolution: M136

    If you change the spindle speed by using the spindle override, the control changes the feed rate accordingly. Effect M136 becomes effective at the start of the block. You can cancel M136 by programming M137. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 468: Feed Rate For Circular Arcs: M109/M110/M111

    The initial state is restored after finishing or canceling a machining cycle. Effect M109 and M110 become effective at the start of the block. M109 and M110 can be canceled with M111. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 469: Calculating The Radius-Compensated Path In Advance (Look Ahead): M120

    M120 is programmed without LA another program is called with % the working plane is tilted with Cycle G80 or with the PLANE function M120 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 470 Before using the functions listed below, you have to cancel M120 and the radius compensation: Cycle G60 Tolerance Cycle G80 Working plane PLANE function M114 M128 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 471: Superimposing Handwheel Positioning During Program Run: M118

    The coordinates are entered with the orange axis direction buttons or the ASCII keyboard. Effect To cancel handwheel positioning, program M118 once again without coordinate input. M118 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 472 For this purpose, program at least the spindle axis with its permitted range of traverse in the M118 function (e.g. M118 Z5) and select the VT axis on the handwheel. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 473: Retraction From The Contour In The Tool-Axis Direction: M140

    Effect M140 is effective only in the NC block in which itis programmed. M140 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 474 There is a danger of collision during these compensating movements! Do not combine M118 with M140 when using machines with head rotation axes. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 475: Suppressing Touch Probe Monitoring: M141

    M141 functions only for movements with straight-line blocks. Effect M141 is effective only in the NC block in which M141 is programmed. M141 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 476: Deleting Basic Rotation: M143

    M143 becomes effective at the start of the block. M143 deletes the entries in columns SPA, SPB, and SPC in the preset table; reactivating the corresponding preset table line does not activate the deleted basic rotation. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 477: Automatically Retracting The Tool From The Contour At An Nc Stop: M148

    When a power interruption occurs Effect M148 remains in effect until deactivated with M149. M148 becomes effective at the start of the block, M149 at the end of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 478: Rounding Corners: M197

    Effect The M197 function acts blockwise and is only effective on outside corners. Example G01 X... Y... RL M197 DL0.876* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 479: Special Functions

    Special Functions...
  • Page 480: 12.1 Overview Of Special Functions

    You can rapidly navigate with the cursor or mouse and select functions in the tree diagram. The control displays online help for the selected function in the window on the right. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 481: Program Defaults Menu

    Select a contour definition See Cycle- Programming User's Manual Define a complex contour See Cycle- formula Programming User's Manual Select the point file with machin- See Cycle- ing positions Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 482: Menu For Defining Different Din/Iso Functions

    547 revolutions Define Dynamic Collision Monitor- page 483 ing DCM Define DIN/ISO functions page 530 Add comments page 204 Choose path interpretation "Interpreta- tion of the programmed path" HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 483: Dynamic Collision Monitoring (Option 40)

    There is a danger of collision during execution! Check the machining sequence using a graphic simulation Carefully test the NC program or program section in the Program run, single block operating mode HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 484: Graphic Display Of The Collision Objects

    Modify the graphic display of the collision objects in the Test Run operating mode as follows: Press the FURTHER VIEW OPTIONS soft key Modify the graphic display of the collision objects using the following functions HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 485 To return to the standard display: Press the shift key and simultaneously double-click with the right mouse key. The rotation angle is maintained if you only double-click with the right mouse key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 486: Collision Monitoring In The Manual Operating Modes

    Further information: "Activating and deactivating collision monitoring", page 490 Note the general limitations of the Dynamic Collision Monitoring (DCM) function. Further information: "Function", page 483 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 487: Collision Monitoring In The Test Run Operating Mode

    Select the Test Run operating mode Press the Collision Monitoring ON soft key You can toggle collision monitoring only after the simulation has been stopped. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 488: Collision Monitoring In The Program Run Operating Modes

    (e.g. for eccentric turning), the control cannot perform collision monitoring. If at least one axis operates with following error or is not referenced, the control cannot perform collision monitoring. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 489 Special Functions | Dynamic Collision Monitoring (option 40) Note the general limitations of the Dynamic Collision Monitoring (DCM) function. Further information: "Function", page 483 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 490: Activating And Deactivating Collision Monitoring

    Press the Go to soft key Select the condition for which the selected operating modes should apply: Inactive: Deactivate collision monitoring Active: Activate collision monitoring Press the Ok soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 491 490 Symbols Symbols in the status display show the condition of collision monitoring: Icon Function Collision monitoring active Collision monitoring is not available Collision monitoring is not active HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 492: 12.3 Tool Carrier Management

    The tool carrier templates may consist of several sub- files. If the sub-files are incomplete, the control will display an error message. Do not use incomplete tool carrier templates! HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 493: Assigning Input Parameters To Tool Carriers

    If the tool carrier template does not contain any transformation vectors, names, test points and measurement points, the additional ToolHolderWizard tool does not execute any function when the corresponding icons are activated. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 494 Output file area Press the GENERATE FILE button If required, reply to the message on the control Press the CLOSE icon The control closes the additional tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 495 Output file area Press the GENERATE FILE button If required, reply to the message on the control Press the CLOSE icon The control closes the additional tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 496: Allocating Parameterized Tool Carriers

    Select the desired tool carrier using the preview screen Press the OK soft key The control copies the name of the selected tool carrier to the KINEMATIC column Exit the tool table HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 497: Global Program Settings (Option 44)

    Additive basic rotat. (W-CS) page 504 Shift (W-CS) page 505 Mirroring (W-CS) page 506 Shift (mW-CS) page 507 Rotation (WPL-CS) page 508 Handwheel superimp.: page 509 Feed rate factor page 513 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 498 (DCM), then the control must be in a stopped or interrupted state. Further information: "General status display", page 94 As an alternative you can deactivate Dynamic Collision Monitoring (DCM). Further information: "Activating and deactivating collision monitoring", page 490 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 499: Activating And Deactivating A Function

    NC program is selected in the file management. Then you can simply acknowledge the message with Ok or call the form directly with CHANGE DATA. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 500 As an alternative, use form elements to deactivate a setting possibility Further information: "Using the form", page 501 Press the Ok soft key The control applies the settings and closes the form HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 501 Apply actual values of Handwheel superimp.: to the shifts Prerequisite: The coordinate system for Handwheel superimp.: and for Displacement concur You can also easily navigate through the form with a mouse. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 502: Information Area

    There is a danger of collision during subsequent machining! Test the behavior at the machine If necessary, reset the preset after the offsets have been activated (mandatory for table rotary axes) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 503 The control considers the 180° rotation for all C axis positioning movements. The control takes the modified tool position into account. The position of the C axis does not affect the preset position. The preset remains unchanged! HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 504: Additive Basic Rotat. (W-Cs)

    Open the Global Program Settings function Activate the Additive basic rotat. (W-CS) option, specifying 90° Reselect the NC program The control considers the 90° rotation for all axis positioning movements. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 505: Shift (W-Cs)

    Global Program Settings function) The Shift (W-CS) values are displayed on the GS tab of the additional status display, the values from the NC program on the TRANS tab. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 506: Mirroring (W-Cs)

    With PLANE AXIAL, the mirroring of rotary axes is irrelevant. For the TCPM function with axis angles, all axes to be mirrored must be marked explicitly in the form. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 507: Shift (Mw-Cs)

    NC program (e.g. Cycle 7 DATUM SHIFT), the same way as it is done for an active Shift (W-CS). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 508: Rotation (Wpl-Cs)

    The value is added to the rotation defined in the NC program (e.g. Cycle 10 ROTATION). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 509: Handwheel Superimp

    If no coordinate system transformations were activated using either the NC program or the Global Program Settings function, Handwheel superimp.: is effective in the same way in all coordinate systems. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 510 Handwheel superimp.: and during the subsequent machining operations! Before exiting the form, always make sure to explicitly select the Machine Coordinate System (M-CS). Test the behavior at the machine HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 511 M118 from the NC program, you should activate Handwheel superimp.: in the Global Program Settings function prior to selecting the program. This ensures that the control uses the Global Program Settings function rather than M118. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 512 Handwheel superimp.: in virtual axis direction VT requires neither one of the PLANE functions nor the TCPM function. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 513: Feed Rate Factor

    Program Settings function) Result of all modifications = current feed rate The control displays the value of the feed rate factor on the GS tab of the additional status display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 514: Adaptive Feed Control Afc (Option 45)

    Cutting conditions are changed particularly by: Tool wear Fluctuating cutting depths that occur especially with cast parts Fluctuating hardness caused by material flaws HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 515 This helps to prevent further damage after a tool breaks or is worn out. Protection of the machine’s mechanical elements Timely feed rate reduction and shutdown responses help to avoid machine overload. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 516: Defining Basic Afc Settings

    Feed rate for traverse when the tool moves into or out of the material. Enter the value in percent with respect to the programmed feed rate. Maximum input value: 100 % HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 517 Value that the control is to transfer to the PLC at the beginning of a machining step. The machine manufacturer defines the function, so refer to your machine manual. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 518 The control displays a list with table formats. table format and confirm with the ENT key Select the AFC.TAB The control creates the table that contains the control settings. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 519: Recording A Teach-In Cut

    LOAD value with the FUNCTION AFC CUT BEGIN function. If you program both values, the control will use the value programmed in the NC program! HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 520 AFC column. Further information: "Defining basic AFC settings", page 516 Besides the data from the AFC.TAB table, the control also saves the following additional information in the <name>.I.AFC.DEP file: HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 521 Enter the desired control setting for all tools in the AFC column of the tool table TOOL.T Select the program for teach-in Activate the AFC function via the soft key Further information: "Activating and deactivating AFC", page 524 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 522 If the determined reference load is greater than 2 %, the control changes the status from teach-in (L) to controlling (C). Adaptive feed control is not possible for smaller values. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 523 In order to edit the <name>.I.AFC.DEP file, you must first set the file manager so that all file types can be displayed (SELECT TYPE soft key). Further information: "Files", page 171 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 524: Activating And Deactivating Afc

    ON—the control displays the AFC symbol in the position display Further information: "Status displays", page 94 To deactivate the adaptive feed control: Set the soft key to OFF HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 525 The control shows various pieces of information in the additional status display when adaptive feed control is on. Further information: "Additional status displays", page 96 In addition, the control shows the icon in the position display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 526: Log File

    The control enters the results of the evaluation between the key words total and saved in the last line of the log file. Where the time balance is positive, the percentage value is also positive. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 527: Tool Wear Monitoring

    If the AFC.TAB columns FMIN and FMAX each have a value of 100%, adaptive feed control is deactivated but cut-related tool load monitoring remains active. Further information: "Entering tool data into the table", page 238 and page 516 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 528: Active Chatter Control Acc (Option 145)

    ACC is also advantageous during standard roughing. When you use the ACC feature, you must enter the number of tool cuts CUT for the corresponding tool in the TOOL.T tool table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 529: Activating/Deactivating Acc

    Further information: "Status displays", page 94 To deactivate ACC: Set the soft key to OFF If ACC is active, the control shows the icon in the position display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 530: 12.7 Defining Din/Iso Functions

    Y coordinate of the circle center/pole Label call for subprogram and program section repeat Miscellaneous function Block number Tool call Polar coordinate angle Z coordinate of the circle center/pole Polar coordinate radius Spindle speed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 531: 12.8 Defining A Counter

    Set the counter to the desired value Input value: 0–9999 Increment the counter by the desired value Input value: 0–9999 Repeat the NC program starting from this label if more parts are to be machined. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 532 N510 FUNCTION COUNT INC* Increment the counter value N520 FUNCTION COUNT REPEAT LBL 11* Repeat the machining operations if more parts are to be machined. N530 M30* N540 %COUNT G71* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 533: 12.9 Creating Text Files

    Move cursor one word to the right Move cursor one word to the left Go to next screen page Go to previous screen page Cursor at beginning of file Cursor at end of file HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 534: Editing Texts

    Soft key Function Delete and temporarily store a line Delete and temporarily store a word Delete and temporarily store a character Insert a line or word from temporary storage HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 535: Editing Text Blocks

    Press the READ FILE soft key. The control displays the File name = dialog message. Enter the path and name of the file you want to insert HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 536: Finding Text Sections

    Find text : dialog prompt Enter the text that you wish to find To find text: press the FIND soft key. Exit the search function: Press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 537: 12.10 Freely Definable Tables

    TNC:\system\proto directory. Then your template will also be available in the list box for table templates when you create a new table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 538: Editing The Table Format

    Navigation using the control's keyboard: Press the navigation keys to go to the entry fields. Use the arrow keys to navigate within an entry field. To open pop-down menus, press the GOTO key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 539: Switching Between Table And Form View

    This moves the cursor to the left window, and you can select the desired line with the arrow keys. Press the green navigation key to switch back to the input window. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 540: D26 - Open A Freely Definable Table

    The table to be opened must have the extension .TAB. Example: Open the table TAB1.TAB, which is saved in the directory TNC:\DIR1. N56 D26 TNC:\DIR1\TAB1.TAB HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 541: D27 - Write To A Freely Definable Table

    Q parameters Q5, Q6 and Q7 . N53 Q5 = 3.75 N54 Q6 = -5 N55 Q7 = 7.5 N56 D27 P01 5/"RADIUS,DEPTH,D" = Q5 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 542: D28 - Read From A Freely Definable Table

    The names of tables and table columns must start with a letter and must not contain an arithmetic operator (e.g., +). Due to SQL commands, these characters can cause problems when inputting data or reading it out. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 543: Pulsing Spindle Speed Function S-Pulse

    Define speed change SCALE The control never exceeds a programmed speed limit. The spindle speed is maintained until the sinusoidal curve of the S-PULSE FUNCTION falls below the maximum speed once more. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 544: Resetting The Pulsing Spindle Speed

    Proceed as follows for the definition: Show the soft-key row with special functions Press the PROGRAM FUNCTIONS soft key Press the FUNCTION SPINDLE soft key Press the RESET SPINDLE-PULSE soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 545: 12.12 Dwell Time Function Feed

    Press the PROGRAM FUNCTIONS soft key Press the FUNCTION FEED soft key Press the FEED DWELL soft key Define the interval duration for dwelling D-TIME Define the interval duration for cutting F-TIME HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 546: Resetting Dwell Time

    Press the RESET FEED DWELL soft key You can also reset the dwell time by entering D-TIME 0. The control automatically resets the FUNCTION FEED DWELL function at the end of a program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 547: 12.13 Dwell Time Function Dwell

    Press the PROGRAM FUNCTIONS soft key FUNCTION DWELL soft key Press the DWELL TIME soft key Define the duration in seconds Alternatively, press the DWELL REVOLUTIONS soft key Define the number of spindle revolutions HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 548: Lift Off Tool At Nc Stop: Function Liftoff

    Lift-off in the tool axis direction with M148 Further information: "Automatically retracting the tool from the contour at an NC stop: M148", page 477 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 549 Show the soft-key row with special functions Press the PROGRAM FUNCTIONS soft key Press the FUNCTION LIFTOFF soft key Press the LIFTOFF ANGLE TCS soft key Enter the SPB angle HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 550: Resetting The Lift-Off Function

    Press the FUNCTION LIFTOFF soft key Press the LIFTOFF RESET soft key You can also reset the lift-off with M149. The control automatically resets the FUNCTION LIFTOFF function at the end of a program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 551: Multiple-Axis Machining

    Multiple-Axis- Machining...
  • Page 552: 13.1 Functions For Multiple Axis Machining

    Shortest-path traverse of rotary axes Reduce display value of rotary axes M128 Define the behavior of the control when positioning the rotary axes M138 Selection of tilted axes M144 Calculate machine kinematics HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 553: The Plane Function: Tilting The Working Plane (Option 8)

    The mirrored rotary axis has no effect on the tilt specified in the PLANE function used, because only the movement of the rotary axis is mirrored HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 554 0. The control only supports tilting the working plane with spindle axis Z. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 555: Overview

    PLANE function. While the animation plays, the control highlights the soft key of the selected PLANE function with a blue color. Soft key Function Switch on the animation mode Select the desired animation (highlighted in blue) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 556: Defining The Plane Function

    In the Distance-To-Go display (ACTDST and REFDST) the control shows, during tilting (MOVE or TURN mode) in the rotary axis, the distance to go to the calculated final position of the rotary axis. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 557: Resetting Plane Function

    It does not need to be defined more than once. Deactivate tilting in the Manual operation operating mode in the 3D ROT menu. Further information: "Activating manual tilting:", page 736 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 558: Defining The Working Plane With The Spatial Angle: Plane Spatial

    The result is identical for both perspectives, as the following comparison shows. Example PLANE SPATIAL SPA+45 SPB+0 SPC+90 ... A-B-C C-B-A Home position A0° B0° C0° Home position A0° B0° C0° A+45° C+90° B+0° B+0° C+90° A+45° HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 559 Spatial angle C?: Rotational angle SPC about the (non-tilted) Z axis. Input range from -359.9999 to +359.9999 Continue with the positioning properties Further information: "Specifying the positioning behavior of the PLANE function", page 572 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 560: Defining The Working Plane With The Projection Angle: Plane Projected

    You can select the desired positioning behavior. Further information: "Specifying the positioning behavior of the PLANE function", page 572 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 561 "Specifying the positioning behavior of the PLANE function", page 572 Example N50 PLANE PROJECTED PROPR+24 PROMIN+24 ROT+30 ..* Abbreviations used: PROJECTED Projected PROPR Principal plane PROMIN Minor plane Rotation HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 562: Defining The Working Plane With The Euler Angle: Plane Euler

    The 0° axis is the X axis Continue with the positioning properties Further information: "Specifying the positioning behavior of the PLANE function", page 572 Example N50 PLANE EULER EULPR45 EULNU20 EULROT22 ..* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 563 X axis shift- ed by the precession angle EULROT Rotation angle: angle describing the rotation of the tilted machining plane around the tilted Z axis HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 564: Defining The Working Plane With Two Vectors: Plane Vector

    This behavior is independent of the configuration of the machine parameters. You can select the desired positioning behavior. Further information: "Specifying the positioning behavior of the PLANE function", page 572 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 565 If the normal vector has no X component, the base vector corresponds to the original X axis If the normal vector has no Y component, the base vector corresponds to the original Y axis HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 566 N50 PLANE VECTOR BX0.8 BY-0.4 BZ-0.42 NX0.2 NY0.2 NT0.92 ..* Abbreviations used Abbreviation Meaning VECTOR Vector BX, BY, BZ Base vector : X, Y, and components NX, NY, NZ Normal vector : X, Y, and components HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 567: Defining The Working Plane Via Three Points: Plane Points

    Point 1 and Point 2 (right-hand rule). You can select the desired positioning behavior. Further information: "Specifying the positioning behavior of the PLANE function", page 572 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 568 "Specifying the positioning behavior of the PLANE function", page 572 Example N50 PLANE POINTS P1X+0 P1Y+0 P1Z+20 P2X+30 P2Y+31 P2Z+20 P3X+0 P3Y+41 P3Z+32.5 ..* Abbreviations used Abbreviation Meaning POINTS Points HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 569: Defining The Working Plane Via A Single Incremental Spatial Angle: Plane Relativ

    Continue with the positioning properties Further information: "Specifying the positioning behavior of the PLANE function", page 572 Example N50 PLANE RELATIV SPB-45 ..* Abbreviations used Abbreviation Meaning RELATIVE Relative to HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 570: Tilting The Working Plane Through Axis Angle: Plane Axial

    The SEQ, TABLE ROT and COORD ROT functions have no effect in conjunction with PLANE AXIAL. The PLANE AXIAL function does not take basic rotation into account. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 571 Input range: –99999.9999° to +99999.9999° Continue with the positioning properties Further information: "Specifying the positioning behavior of the PLANE function", page 572 Abbreviations used Abbreviation Meaning AXIAL In the axial direction HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 572: Specifying The Positioning Behavior Of The Plane Function

    The mirrored rotary axis has no effect on the tilt specified in the PLANE function used, because only the movement of the rotary axis is mirrored HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 573 FAUTO (feed rate from the T block). If you use PLANE together with STAY, you have to position the rotary axes in a separate block after the PLANE function. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 574 MB MAX positions the tool just before the software limit switch. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 575 Define and activate the PLANE function N30 G01 A+Q120 C+Q122 F2000* Position the rotary axis with the values calculated by the control. Define machining in the tilted working plane HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 576 3 If only one solution is within the traverse range, the control selects this solution 4 If neither solution is within the traverse range, the control displays the Entered angle not permitted error message. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 577 If no free rotary axis is created in a tilting situation, the COORD ROT and TABLE ROT transformation types have no effect With the PLANE AXIAL function the COORD ROT and TABLE ROT transformation types have no effect HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 578 If no transformation type was specified, the control uses the COORD ROT transformation type for the PLANE functions HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 579 B axis before tilting the working plane is maintained Because the workpiece was not positioned, the control aligns the working plane coordinate system according to the programmed spatial angle SPB+20 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 580: Tilting The Working Plane Without Rotary Axes

    N10 T 5 G17 S4500* N20 PLANE SPATIAL SPA+0 SPB-90 SPC+0 STAY* The tilt angle must be precisely adapted to the tool angle, otherwise the control will generate an error message. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 581: Inclined-Tool Machining In A Tilted Plane (Option 9)

    N13 PLANE SPATIAL SPA+0 SPB-45 SPC+0 MOVE DIST50 Define and activate the PLANE function F900* N14 M128* Activate M128 N15 G01 G91 F1000 B-17* Set the incline angle Define machining in the tilted working plane HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 582: 13.4 Miscellaneous Functions For Rotary Axes

    M116 is effective in the working plane. Reset M116 with M117. At the end of the program, M116 is automatically canceled. M116 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 583: Shortest-Path Traverse Of Rotary Axes: M126

    10° +20° 10° 340° –30° Effect M126 becomes effective at the start of the block. To cancel M126, enter M127. At the end of program, M126 is automatically canceled. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 584: Reducing Display Of A Rotary Axis To A Value Less Than 360°: M94

    C axis to the programmed value M50 G00 C+180 M94* Effect M94 is effective only in the NC block where it is programmed. M94 becomes effective at the start of the block. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 585: Maintaining The Position Of The Tool Tip When Positioning With Tilted Axes (Tcpm): M128 (Option 9)

    If M128 is active, the control shows the TCPM symbol in the status display The TCPM or M128 function cannot be used in conjunction with the Dynamic Collision Monitoring (DCM) function and the additional M118 function HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 586 Example: Feed rate of 1000 mm/min for compensation movements N50 G01 G41 X+0 Y+38.5 IB-15 F125 M128 F1000* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 587 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 588: Selecting Tilting Axes: M138

    M138 becomes effective at the start of the block. You can cancel M138 by reprogramming it without specifying any axes. Example Perform the above-mentioned functions only in the tilting axis C. N50 G00 Z+100 G40 M138 C* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 589: Compensating The Machine Kinematics In Actual/Nominal Positions At End Of Block: M144 (Option 9)

    M144 becomes effective at the start of the block. M144 does not work in connection with M128 or the Tilt Working Plane function. You can cancel M144 by programming M145. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 590: Peripheral Milling: 3-D Radius Compensation With M128 And Radius Compensation (G41/G42)

    Carefully test the NC program or program section in the Program run, single block operating mode You can define the tool orientation in a G01 block as described below. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 591: Interpretation Of The Programmed Path

    DR2 for 3-D radius compensation. If you activate FUNCTION PROG PATH, the interpretation of the programmed path as the contour is effective for 3-D compensation movements until you deactivate the function. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 592: 3-D Radius Compensation Depending On The Tool's Contact Angle (Option 92)

    NR: Consecutive line number ANGLE: Measured angle in degrees DR2: Radius deviation from the nominal value The control evaluates a maximum of 100 lines in the compensation value table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 593 NC program output at the south pole of the sphere requires tools measured on the tool tip NC program output at the center of the sphere requires tools measured on the tool center HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 594: 13.6 Running Cam Programs

    The basis for this is the real-time operating system HeROS 5 in conjunction with the ADP (Advanced Dynamic Prediction) function of the TNC 640. This enables the control to also efficiently process NC programs with high point densities. From 3-D model to NC program...
  • Page 595: Consider With Post Processor Configuration

    Avoid the output of the feed rate in every NC block. This would negatively influence the control’s velocity profile HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 596 3 Q52 = 1350 ; FEED RATE FOR MILLING 25 L Z+250 R0 FMAX 26 L X+235 Y-25 FQ50 27 L Z+35 28 L Z+33.2571 FQ51 29 L X+321.7562 Y-24.9573 Z+33.3978 FQ52 30 L X+320.8251 Y-24.4338 Z+33.8311 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 597: Please Note The Following For Cam Programming

    Normal tolerance in Cycle G62: Between 0.010 mm and 0.020 mm Normal chord error in the CAM system: Smaller than 0.005 mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 598 L and permissible contour tolerance TA: T ~ K x L x TA K = 0.0175 [1/°] Example: L = 10 mm, TA = 0.1°: T = 0.0175 mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 599: Possibilities For Intervention On The Control

    Cycle 332 Tuning. Cycle 332 can be used to modify filter settings, acceleration settings, and jerk settings. Example N340 G62 T0.05 P01 1 P02 3* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 600: Adp Motion Control

    Improved reaction to negative effects (e.g. short, step-like stages, coarse chord tolerances, heavily rounded block end- point coordinates) in NC programs generated by CAM system Precise compliance to dynamic characteristics even in difficult conditions HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 601: Pallet Management

    Pallet Management...
  • Page 602: Pallet Management

    Without a pallet changer you can use pallet tables to process NC programs with different presets in sequence with just one press of NC Start. The file name of a pallet table must always begin with a letter. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 603 Number of the pallet preset Optional field This entry is only required if pallet presets are used. W-STATUS Execution status Optional field This entry is only required for tool- oriented machining. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 604 Insert as last line in the table Delete the last line in the table Add several lines at end of table Copy the current value Insert the copied value Select beginning of line HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 605 Select end of line Find text or value Sort or hide table columns Edit the current field Sort by column contents Miscellaneous functions, e.g. saving Open file path selection HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 606: Selecting Pallet Table

    Using the arrow keys, select the desired column. Press the INSERT COLUMN soft key Press the ENT key You can remove the column with the DELETE COLUMN soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 607: Processing Pallet Table

    Scroll through the NC program with the arrow keys Press the END PGM PAL soft key The control returns to the pallet table. A machine parameter defines how the control is to react after an error. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 608 If you interrupt the processing of pallet tables, the control always suggests the previously selected NC block of the interrupted NC program for the BLOCK SCAN function. Further information: "Block scan in pallet programs", page 786 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 609: 14.2 Pallet Preset Management

    If necessary, check the active pallet preset in the PAL tab Check the traverse movements of the machine Use pallet presets only in conjunction with pallets HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 610: 14.3 Tool-Oriented Machining

    Changing the machine statuses with a miscellaneous function (e.g. M13) Writing to the configuration (e.g. WRITE KINEMATICS) Traverse range switchover Cycle G62 Tolerance Cycle 800 Tilting the working plane HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 611 SP-B, SP-C, You can enter safety positions for the axes. The SP-U, SP-V, control only approaches these positions if the SP-W machine tool builder processes them in the NC macros. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 612: Sequence Of Tool-Oriented Machining

    If you want to start machining again, change the W-STATUS to BLANK. If you change the status in the PAL line, all FIX and PGM lines below this line are automatically changed, too. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 613: Mid-Program Startup With Block Scan

    Changing the machine statuses with a miscellaneous function (e.g. M13) Writing to the configuration (e.g. WRITE KINEMATICS) Traverse range switchover Cycle G62 Tolerance Cycle 800 Tilting the working plane HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 615: Batch Process Manager

    Batch Process Manager...
  • Page 616: Batch Process Manager (Option 154)

    Times at which manual interventions in the machine are required The tool usage test function has to be enabled and switched on to ensure you get all information! Further information: "Tool usage test", page 259 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 617 Pallet, Fixture or Program is locked Pallet or Fixture is not enabled for machin- This line is currently being processed in Program run, single block or Program run, full sequence and cannot be edited HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 618 Edit opened job list Collapse or expand tree structure INSERT REMOVE Shows the soft keys INSERT BEFORE, INSERT AFTER and REMOVE Insert a new Pallet, Fixture or Program before the cursor position HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 619: Opening The Batch Process Manager

    In the pallet management Further information: "Pallet Management", page 601 The control opens the pallet table (.p) in the Batch Process Manager as a job list. Directly in the Batch Process Manager HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 620 Locked: Lock the selected line Editing possible: The selected line cannot be edited Confirm your entries by pressing the ENT key. Repeat the steps if required Press the EDIT soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 621: Editing A Job List

    The following entries can be changed: Name Datum table Preset Locked Editing possible Confirm the edited entries by pressing the ENT key. The control adopts the changes. Press the EDIT soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 622: Executing The Job List

    You can execute the job list using the pallet management Further information: "Processing pallet table", page 607 The control opens the job list as a pallet table in the pallet management (.p). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 623: Turning

    Turning...
  • Page 624: Turning Operations On Milling Machines (Option 50)

    This makes NC programs with turning functions largely exchangeable and independent of the machine model. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 625: Basic Functions (Option 50)

    Clamp the workpiece in the spindle center Clamp workpiece securely Program low spindle speeds (increase as required) Limit the spindle speed (increase as required) Eliminate unbalance (calibrate) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 626 In turning mode the measured values correspond to the X axis diameter values. You can also use the smartSelect function to define the turning functions. Further information: "Overview of special functions", page 480 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 627 Press the SELECT KINEMATICS soft key Example 11 FUNCTION MODE TURN "AC_TABLE" Activate turning mode N120 FUNCTION MODE TURN* Activate turning mode N130 FUNCTION MODE MILL "B_HEAD"* Activate milling mode HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 628: Graphic Display Of Turning Operations

    N20 G31 G90 X+87 Y+1 Z+2* N30 T301* Tool call N40 G00 G40 G90 Z+250* Retract the tool in the spindle axis at rapid traverse N50 FUNCTION MODE TURN* Activate Turning mode HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 629: Program Spindle Speed

    S: Nominal speed if no constant cutting speed is active (optional) S MAX: Maximum speed with constant cutting speed (optional). Reset with S MAX 0 GEARRANGE: Gear range for the turning spindle (optional) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 630 N30 FUNCTION TURNDATA SPIN VCONST:ON VC:100 Definition of a constant cutting speed in gear range 2 GEARRANGE:2* N30 FUNCTION TURNDATA SPIN VCONST:OFF S550* Definition of a constant spindle speed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 631: Feed Rate

    N30 G01 X+87 F200* Movement at a feed rate of 200 mm/min N40 M136* Feed rate in millimeters per revolution N50 G01 X+154 F0.2* Movement at a feed rate of 0.2 mm/1 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 632: Unbalance Functions (Option 50)

    Clamp the workpiece in the spindle center Clamp workpiece securely Program low spindle speeds (increase as required) Limit the spindle speed (increase as required) Eliminate unbalance (calibrate) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 633 Unbalance Monitor function when you switch to turning mode. The unbalance monitor is effective until you switch back to milling mode. Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 634: Measure Unbalance Cycle

    Operating notes: To compensate an unbalance, several balancing weights at different positions may be required. After clamping a balancing weight, the unbalance must be checked again in a measurement. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 635: Calibrate Unbalance Cycle

    With unbalance calibration, the rotary table is operated at various speeds with a defined weight mounted at a defined radial position. The measurement is repeated with different weights. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 636: Tools In Turning Mode (Option 50)

    In addition to the tool number and tool name, the control also shows the ZL and XL columns from the turning tool table. Example N40 FUNCTION MODE TURN* Turning mode selection N50 T301* Tool call HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 637: Tool Compensation In The Program

    Show the soft-key row with special functions Press the TURNING PROGRAM FUNCTIONS soft Press the FUNCTION TURNDATA soft key Press the TURNDATA CORR soft key. Example N210 FUNCTION TURNDATA CORR-TCS:Z/X DZL:0.1 DXL:0.05* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 638: Tool Data

    Select the machine operating mode, e.g. Manual operation Press the TOOL TABLE soft key Press the TURNING TOOLS soft key Edit the turning tool table: Set the EDIT soft key to ON HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 639 Type of turning tool: Roughing tool ROUGH, finish- ROUGH, FINISH, THREAD, ing tool FINISH, thread tool THREAD, recessing tool RECESS, BUTTON, RECTURN RECESS, button tool BUTTON, groove turning tool RECTURN HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 640 Current value of DXL Current calculated value for the tool New value of DZL New calculated value for the tool New value of DXL New calculated value for the tool HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 641 Further information: Cycle Programming User's Manual Example Input: Compens. value WPL-Z: 1 Compensation ØWPL-X: 1 Inclination angle ß: 90 Reverse the tool: Yes Result: DZL: +0.5 DXL: +1 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 642 Cutting radius Required Tool orientation Required Angle of orienta- Orientation angle Required tion CUTWIDTH Width of the recessing Required tool Oversize f. recessing tool Optional width TYPE Tool type Required HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 643 Wear compensation YL Optional Cutting radius Required Tool orientation Required Angle of orienta- Orientation angle Required tion T-ANGLE Tool angle Required P-ANGLE Point angle Required TYPE Tool type Required HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 644 Wear compensation XL Optional Wear compensation YL Optional Tool orientation Required Angle of orienta- Orientation angle Required tion T-ANGLE Tool angle Required P-ANGLE Point angle Required TYPE Tool type Required HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 645: Tool Tip Radius Compensation Trc

    Theoretical tool tip The theoretical tool tip is effective in the tool coordinate system. When the tool is inclined, the position of the tool tip rotates with the tool. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 646 The virtual tool tip enables you to perform inclined paraxial longitudinal and transverse machining operations with high contour accuracy even without radius compensation. Further information: "Simultaneous turning", page HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 647: Turning Program Functions (Option 50)

    Programming recessing and undercutting: Show the soft-key row with special functions Press the TURNING PROGRAM FUNCTIONS soft Press the RECESS/ UNDERCUT soft key Press the GRV (recess) or UDC (undercut) soft HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 648 Z coordinate, use a negative sign Example: Radial recess with depth=5, width=10, pos.= Z-15 N30 G01 X+40 Z+0* N40 G01 Z-30* N50 GRV RADIAL CENTER-15 DEPTH-5 BREADTH10 CHF1 FAR_CHF1* N60 G01 X+60* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 649 UDC THREAD: Thread undercut in compliance with DIN 76 The control always interprets undercuts as form elements in the longitudinal direction. No undercuts are possible in the plane direction. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 650 Example: Undercut form F with depth = 2, width = 15, depth of face = 1 N30 G01 X+40 Z+0* N40 G01 Z-30* N50 UDC TYPE_F R1 DEPTH2 BREADTH15 FACEDEPTH1* N60 G01 X+60* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 651 Example: Undercut form K with depth = 2, width = 15, opening angle = 30° N30 G01 X+40 Z+0* N40 G01 Z-30* N50 UDC TYPE_K R1 DEPTH3 ANG_WIDTH30* N60 G01 X+60* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 652 Undercut angle Optional Example: Thread undercut according to DIN 76 with thread pitch = 2 N30 G01 X+40 Z+0* N40 G01 Z-30* N50 UDC THREAD PITCH2* N60 G01 X+60* HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 653: Blank Form Update Turndata Blank

    Show the soft-key row with special functions Press the TURNING PROGRAM FUNCTIONS soft Press the FUNCTION TURNDATA soft key Press the TURNDATA BLANK soft key Press the BLANK OFF soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 654: Inclined Turning

    (+90°, or –90°). Tool compensation FUNCTION TURNDATA CORR- TCS is always effective in the tool coordinate system, even during inclined machining. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 655 M128 then tool-tip radius compensation without a cycle, i.e. in traversing blocks with G41/G42, is not possible. If you activate inclined machining via M144 then this limitation does not apply. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 656: Using A Facing Slide

    The COORD ROT and TABLE ROT functions, as well as SEQ refer to the XY plane. HEIDENHAIN recommends using the TURN positioning behavior. The MOVE positioning behavior is not the best option in combination with the facing slide. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 657 In the Manual operation mode, move the facing slide with the U axis key. As the Tilt the working plane function is possible, pay attention to the 3-D ROT status HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 658 Enter enter the feed rate, if required Example N70 FACING HEAD POS* Activating without clearance height N70 FACING HEAD POS HEIGHT+100 F1000* Activating with positioning to clearance height Z+100 at rapid traverse 1000 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 659 Press the SPEC FCT key Press the TURNING PROGRAM FUNCTIONS soft Press the FACING SLIDE soft key Press the ENT key Example N70 FUNCTION FACING HEAD OFF* Deactivating the facing slide HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 660: Cutting Force Monitoring With The Afc Function

    In turning mode it is not possible to insert replace- ment tools. If you define the overload reaction M, the control outputs an error message. POUT Entering the minimum load Pmin for tool breakage monitoring HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 661 1 in the SENS column. Further information: "Tool wear monitoring", page 527 Further information: "Tool load monitoring", page 527 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 663: Manual Operation And Setup

    Manual Operation and Setup...
  • Page 664: Switch-On, Switch-Off

    The control carries out a self-test. If the control does not register an error, it displays the Traverse reference points dialog. If the control registers an error, it issues an error message. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 665 Only confirm the pop-up window with YES if the axis positions match Despite confirmation, at first only move the axis carefully If there are discrepancies or you have any doubts, contact your machine tool builder HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 666: Traverse Reference Points

    Press and hold the axis direction button for each axis until the reference point has been traversed The control is now ready for operation in the Manual operation mode. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 667 If the machine does not have any absolute encoders, the position of the rotary axes must be confirmed. The position shown in the pop-up window is the last position before the control was switched off. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 668: Switch-Off

    Always shut down the control Only turn off the main switch after being prompted on the screen HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 669: Moving The Machine Axes

    "Spindle speed S, feed rate F and miscellaneous function M", page 682 If a moving task is active on the machine, the control displays the control in operation symbol. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 670: Incremental Jog Positioning

    If you are in the Jog increment menu, you can switch off incremental jog positioning with the SWITCH OFF soft key. The input range for the infeed is from 0.001 mm to 10 mm. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 671: Traverse With Electronic Handwheels

    An active handwheel must be deactivated before another handwheel can be selected. Refer to your machine manual. This feature must be enabled and adapted by the machine tool builder. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 672 NC STOP key (machine-dependent function, key can be exchanged by the machine manufacturer) Handwheel Spindle speed potentiometer Feed rate potentiometer Cable connection, not available with the HR 550FS wireless handwheel HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 673 STEP ON or OFF: Incremental jog active or inactive. If the function is active, the control additionally displays the current traversing step Soft-key row: Selection of various functions, described in the following sections HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 674 If this happens you must reduce the distance to the handwheel holder in which the radio receiver is integrated. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 675 To save the configuration and exit the configuration menu, press END The MOD operating mode includes a function for commissioning and configuring the handwheel. Further information: "Configuring the HR 550FS wireless handwheel", page 825 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 676 (only when incremental jog is not active). Selectable sensitivity levels: 0.001/0.002/0.005/0.01/0.02/0.05/0.1/0.2/0.5/1 [mm/revolution or degrees/revolution] Selectable sensitivity levels: 0.00005/0.001/0.002/0.004/0.01/0.02/0.03 [in mm/revolution or degrees/revolution] HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 677 Move the active axis in the negative direction with the - key To deactivate the handwheel, press the handwheel key on the HR 5xx Now you can operate the control via the operating panel again. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 678 Press the KBD soft key to activate the potentiometers of the machine operating panel The control issues a warning if the handwheel potentiometers are still active after the handwheel has been deactivated. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 679 10. By also pressing the CTRL key, you can increase the counting increment by a factor of 100 when pressing F1 or F2. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 680 NC block after which the new traversing block is to be inserted Activate the handwheel Press the Generate NC block key on the handwheel The control inserts a complete traversing block containing all axis positions selected through the MOD function. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 681 Further information: "Returning to the contour", page 787 On/off switch for the Tilt working plane function (handwheel soft keys MOP and then 3D) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 682: Spindle Speed S, Feed Rate F And Miscellaneous Function M

    When 3D ROT is active the machining feed rate is shown if several axes are moved If 3D ROT is not active, the feed drive display remains empty if several axes are moved HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 683: Adjusting Spindle Speed And Feed Rate

    To activate the feed rate limit F MAX, proceed as follows: Operating mode: Press the Positioning w/ Manual Data Input key Press the F MAX soft key Enter the desired maximum feed rate Press the OK soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 684: Optional Safety Concept (Functional Safety Fs)

    In this chapter you will find explanations of the functions that are additionally available on a control with functional safety. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 685: Explanation Of Terms

    Safe operating stop. Provides protection against unexpected start of the drives Safely-limited speed. Prevents the drives from exceeding the specified speed limits when the protective door is opened HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 686: Additional Status Displays

    Icon Safety-related operating mode SOM_1 operating mode active SOM_2 operating mode active SOM_3 mode active SOM_4 mode active HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 687: Checking The Axis Positions

    If necessary, move to a safe position before approaching the test positions Watch out for possible collisions Refer to your machine manual. The location of the test position is specified by your machine tool builder. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 688: Activating Feed-Rate Limitation

    SOM_1 is active, the axes and spindles are brought to a stop, because only then will you be allowed to open the guard doors in SOM_1. Select the Manual operation mode Shift the soft-key row Switch on/off feed rate limit HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 689: Managing Presets

    Never change the number of rows in the copied tables! If you want to reactivate the table, this may lead to problems. To activate the preset table copied to another directory you have to copy it back to the TNC:\table\ directory HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 690 If the preset set manually is active, the control displays the text PR MAN(0) in the status display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 691 (the row number is the preset number) If needed, select the column in the preset table that you want to change Use the soft keys to select one of the available entry possibilities HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 692 If inch display is active: Enter the value in inches, and the control will internally convert the entered values to mm HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 693 (2nd soft-key row) Insert a single line at the end of the table (2nd soft- key row) Delete a single line at the end of the table (2nd soft-key row) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 694: Protecting Presets From Being Overwritten

    Press the LOCK / UNLOCK PASSWORD soft key Enter the password in the pop-up window Confirm with the OK soft key or with the ENT key: The control writes ### in the LOCKED column. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 695 Press the LOCK / UNLOCK PASSWORD soft key Enter the password in the pop-up window Confirm with the OK soft key or with the ENT key The control rescinds the write-protection. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 696: Activating A Preset

    Use Cycle G247 in order to activate presets from the preset table during program run. In Cycle G247 you define the number of the preset to be activated. Further information: Cycle Programming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 697: Presetting Without A 3-D Touch Probe

    If the tool in the tool axis has already been set, set the display of the tool axis to the length L of the tool or enter the sum Z=L+d. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 698: Using Touch Probe Functions With Mechanical Probes Or Measuring Dials

    If you try to set a preset in a locked axis, the control will issue either a warning or an error message, depending on what the machine tool builder has defined. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 699: Using A 3-D Touch Probe

    Always set a preset in all three principal axes. This clearly and correctly defines the preset. That way you also taken into account possible deviations resulting from the tilting of the axes. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 700: Overview

    Setting the preset on any axis Set a corner as preset Set a circle center as preset Setting the centerline as preset Touch probe system data See Cycle Program- management ming User's Manual HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 701 The control closes the pop-up window. Probe the second touch point If necessary, set the preset End the probing function If the handwheel is active you cannot start the probing cycles. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 702: Suppress Touch Probe Monitoring

    Probe hole (inside circle) automatically Probe stud (outside circle) automatically Probe a model circle (center point of several elements) Select a paraxial probing direction for probing of holes, studs and model circles HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 703 Number of touch Number of probing operations (3 to 8) points? Angular length? Probing a full circle (360°) or a circle segment (angular length<360°) Automatic probing routine: Pre-position touch probe HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 704 Take the starting angle of the first probing process into account in pre-positioning; for example, at a starting angle of 0° the control will first probe in the positive direction of the reference axis. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 705: Selecting The Probing Cycle

    FN16DefaultPath (no. 102202), the control will store the TCHPRMAN.html file in the TNC:\ main directory. Operating notes: If you run several touch probes cycles in a row, the control stores the measured values below each other. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 706: Writing Measured Values From The Touch Probe Cycles To A Datum Table

    Enter the datum number in the Number in table? input field Press the ENTER IN DATUM TABLE soft key The control saves the datum in the indicated datum table under the entered number. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 707: Writing Measured Values From The Touch-Probe Cycles To The Preset Table

    ENTRY IN LOCKED LINE soft key and enter the password to overwrite the active preset The control displays a note if a table row cannot be written to because of disabling. The probing function itself is not interrupted. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 708: Calibrating 3-D Touch Probes

    Measure the radius and the center offset using a stud or a calibration pin Measure the radius and the center offset using a calibration sphere 3-D calibrating (option 92) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 709: Calibrating The Effective Length

    Press the OK soft key for the values to take effect Press the CANCEL soft key to terminate the calibrating function. The control logs the calibration process in the TCHPRMAN.html file. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 710: Calibrating The Effective Radius And Compensating Center Misalignment

    180°, and then executes another probing routine. The center offset (CAL_OF in tchprobe.tp) is determined in addition to the radius by probing from opposite orientations. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 711 The control logs the calibration process in the TCHPRMAN.html file. Refer to your machine manual. In order to be able to determine ball-tip center misalignment, the control needs to be specially prepared by the machine manufacturer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 712 The control logs the calibration process in the TCHPRMAN.html file. Refer to your machine manual. In order to be able to determine ball-tip center misalignment, the control needs to be specially prepared by the machine manufacturer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 713 The control logs the calibration process in the TCHPRMAN.html file. Refer to your machine manual. In order to be able to determine ball-tip center misalignment, the control needs to be specially prepared by the machine manufacturer. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 714: Displaying Calibration Values

    This is regardless of whether you want to use a touch-probe cycle in automatic mode or Manual operation mode. For more information about the touch probe table, refer to the User’s Manual for Cycle Programming HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 715: Compensating Workpiece Misalignment With 3-D Touch Probe

    SET BASIC ROTATION or SET TABLE ROTATION soft key. The behavior of the control during presetting depends on the setting in the machine parameter chkTiltingAxes (no. 204601). Further information: "Introduction", page 699 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 716: Identifying Basic Rotation

    Press the BASIC ROT. IN PRESET TABLE soft key If appropriate, the control opens the Overwrite active preset? menu. Press the OVERWRITE PRESET soft key The control saves the basic rotation in the preset table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 717: Compensation Of Workpiece Misalignment By Rotating The Table

    The control deletes the basic rotation from the preset table, and inserts the offset. Or press KEEP BASIC ROT. The control inserts the offset in the preset table, and the basic rotation also remains. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 718: Show Basic Rotation And Offset

    Or enter Offset of rotary table: 0 Apply with the SET BASIC ROTATION soft key Or apply with the SET TABLE ROTATION soft key To terminate the probe function, press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 719: Measuring 3-D Basic Rotation

    2nd point is on the reference axis, in a positive direction from the first point 3rd point is on the minor axis, in a positive direction of the desired workpiece coordinate system HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 720 Press the BASIC ROT. IN PRESET TABLE soft key To terminate the probe function, press the END soft key The control saves the 3-D basic rotation in the columns SPA, SPB, and SPC of the preset table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 721 Select the probe function by pressing the PROBING PL soft key Enter 0 for all angles Press the SET BASIC ROTATION soft key To terminate the probe function, press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 722: 17.10 Presetting With A 3-D Touch Probe

    With an active datum shift the determined value is with respect to the current preset (possibly a manual preset from the Manual operation mode). The datum shift is included in the position display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 723: Presetting On Any Axis

    706 Further information: "Writing measured values from the touch-probe cycles to the preset table", page 707 To terminate the probe function, press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 724: Corner As Preset

    706 Further information: "Writing measured values from the touch-probe cycles to the preset table", page 707 To terminate the probe function, press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 725 If you activate the offset, the control automatically writes the positions and the offset or only the positions to the preset table. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 726: Circle Center As Preset

    The control needs at least three touch points to calculate outside or inside circles, e.g. with circle segments. More precise results are obtained with four touch points. If possible, always pre-position the touch probe to the center. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 727 To terminate the probe function, press the END soft key Once the probing routine is completed, the control displays the current coordinates of the circle center and the circle radius. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 728 706 Further information: "Writing measured values from the touch-probe cycles to the preset table", page 707 To terminate the probe function, press the END soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 729: Setting A Center Line As Preset

    This way you can determine the positions once, and then store them in the principal axis as well as in the secondary axis. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 730: Measuring Workpieces With A 3-D Touch Probe

    Finding the coordinates of a corner point on the working plane Find the coordinates of the corner point. Further information: "Corner as preset", page 724 The control displays the coordinates of the probed corner as preset. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 731 You can measure The angle between the angle reference axis and a workpiece edge; or the angle between two sides The measured angle is displayed as a value of max. 90°. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 732 PA between the workpiece edges as the rotation angle Cancel the basic rotation, or restore the previous basic rotation by setting the rotation angle to the value that you wrote down previously HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 733: Tilting The Working Plane (Option 8)

    (option 8)", page 553 The control functions for tilting the working plane are coordinate transformations. The working plane is always perpendicular to the direction of the tool axis. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 734 (3-D tool length compensation). The control only supports the Tilt working plane function in combination with the spindle axis G17. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 735: Position Display In A Tilted System

    Limitations on working with the tilting function The Actual-position capture function is not allowed if the Tilt working plane function is active PLC positioning (determined by the machine tool builder) is not possible. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 736: Activating Manual Tilting

    If you use Cycle G80 or the PLANE function in the machining program, the angle values defined there are in effect. Angle values entered in the menu will be overwritten. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 737 Tilt working plane menu. Even if the 3D-ROT dialog in the Manual operation mode is set to Active, resetting the tilting (PLANE RESET) with an active basic transformation still functions correctly. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 738: Setting The Tool-Axis Direction As The Active Machining Direction

    The behavior of the control during presetting depends on the setting in the optional machine parameter chkTiltingAxes (no. 204601): Further information: "Introduction", page 699 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 739: Camera-Based Monitoring Of The Setup Situation Vsc (Option 136)

    As well as option number 136, a HEIDENHAIN camera system is required for VSC functions. You must create an adequate number of reference images to allow the system to compare the situation reliably. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 740 In this phase, the control only issues a warning if it finds a deviation when comparing images. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 741: Overview

    Show current camera view Produce live image Open VSC file manager The control shows the data saved for Cycle 600 and Cycle 601. Open camera cover Close camera cover HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 742: Produce Live Image

    Configuring the field of view of the camera Refer to your machine manual. These settings can only be made after entering a code number. Go back to the previous screen HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 743: Manage Monitoring Data

    All images: Display all images for this monitoring file Reference images: Only display reference images Images with error: Display all images where you have highlighted an error HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 744 Change monitoring area or highlight an error Further information: "Configuration", page 745 Go back to the previous screen If you change the configuration, the control carries out an image evaluation. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 745: Configuration

    The control indicates the clicked area with a frame. Shift the area if required by holding down the mouse button You can fix the drawn area by double-clicking it, thereby protecting it from unintentional shifting. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 746: Results Of The Image Evaluation

    You have changed the monitoring data, monitoring is more sensitive. Blank circle: No error message: All deviations saved in the image have been recognized, monitoring has not identified any conflicts. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 747: Positioning With Manual Data Input

    Positioning with Manual Data Input...
  • Page 748: Programming And Executing Simple Machining Operations

    Editing an NC block Modifying Q parameter values with the Q INFO soft key Switching the operating modes Restore the contextual reference via repetition of the required NC blocks HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 749: Positioning With Manual Data Input (Mdi)

    168 You can control and modify Q parameters with the soft keys Q PARAMETER LIST and Q INFO. Further information: "Checking and changing Q parameters", page 382 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 750 Retract the tool N9999999 %$MDI G71 * End of program Straight-line function: Further information: "Straight line in rapid traverse G00 or straight line with feed rate F G01", page 295 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 751 Select the rotary table axis, enter the rotation angle and feed rate you wrote down, e.g. G01 C +2.561 F50 Conclude entry Press the NC Start button: The rotation of the table corrects the misalignment HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 752: Protecting Programs In $Mdi

    $MDI file, e.g.Hole Press the OK soft key. To exit the file manager, press the END soft key Further information: "Copying a single file", page 179 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 753: Test Run And Program Run

    Test Run and Program Run...
  • Page 754: Graphics

    MOD menu Graphic settings you and decrease the Model quality and in that way increase the speed of simulation. If you are using a TNC 640 with touch control, you can replace some keystrokes with hand-to-screen contact. Further information: "Operating the Touchscreen",...
  • Page 755: Speed Of The Setting Test Runs

    You can also set the simulation speed before you start a program: Select the function for setting the simulation speed Select the desired function by soft key, e.g. incrementally increasing the simulation speed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 756: Overview: Display Modes

    The high-resolution 3-D view enables you to display the surface of the machined workpiece in greater detail. Using a simulated light source, the control creates realistic light and shadow conditions. Press the 3-D view soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 757 To return to the standard display: Press the shift key and simultaneously double-click with the right mouse key. The rotation angle is maintained if you only double-click with the right mouse key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 758 Activate measuring If measuring is activated, the control shows the corresponding coordinates in close proxim- ity if you position the mouse cursor on the 3-D graphics of the workpiece. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 759 A powerful zoom function is available in order for you to quickly recognize the details for the displayed tool paths. The control displays traverse movements in rapid traverse in red. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 760: Plan View

    Select projection in three planes in the operating modes Program run, single block and Program run, full sequence: Press the GRAPHICS soft key Press the View on 3 Planes soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 761 The sectional plan is automatically reset when the control is restarted. You can also move the sectional plane to its default position manually: Press the soft key for resetting the sectional planes soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 762: Repeating Graphic Simulation

    Function Program run, full sequence / Program run, single block Test Run The control displays the tool in various colors: Red: Tool is in effect Blue: Tool is retracted HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 763: Measurement Of Machining Time

    Select the desired function via soft key, e.g.,saving the displayed time Soft key Stopwatch functions Store displayed time Display the sum of stored time and displayed time Clear displayed time HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 764: Showing The Workpiece Blank In The Working Space

    Display the current traverse range This shows the traverse ranges config- ured by the machine tool builder and can be selected accordingly. Switch monitoring function on or off Display machine reference point HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 765 With BLK FORM CYLINDER, a cuboid is depicted as the workpiece blank in the working space With BLK FORM ROTATION , no workpiece blanks is depicted in the working space HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 766: Functions For Program Display

    NC program in pages: Soft key Functions Go back one screen in the NC program Go forward one screen in the NC - program Select start of program Select end of program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 767: 19.4 Test Run

    Program a safe intermediate position after the tool change and before prepositioning Carefully test the NC program in the Program run, single block operating mode If possible, use the Dynamic Collision Monitoring (DCM) function HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 768 Test Run operating mode. This macro will simulate the exact behavior of the machine. In doing so, the machine tool builder often changes the simulated tool change position. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 769: Test Run Execution

    "Showing the workpiece blank in the working space ", page 764 Operating mode: Press the Test Run key Call the file manager with the PGM MGT key and select the file you wish to test HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 770 In order to continue the test, the following actions must not be performed: Selecting another block with the arrow keys or the GOTO key Making changes to the program Selecting a new program HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 771: Test Run Up To A Certain Block

    Modification before the interruption point: The simulation restarts at the beginning Modification after the interruption point: Positioning at the interruption point is possible with GOTO HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 772: 19.5 Program Run

    Starting the program run from a certain block Optional block skip Edit the tool table TOOL.T Checking and changing Q parameters Superimpose handwheel positioning Functions for graphic simulation Additional status display HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 773: Running A Part Program

    Program Run, Full Sequence Start the machining program with the NC Start key Program Run, Single Block Start each block of the machining program individually with the NC Start key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 774: Interrupting, Stopping Or Aborting Machining

    Change setting for the optional programmed interruption with Change setting for the programmed skipping of NC blocks with During major errors, the control automatically aborts the program run (e.g., during a cycle call with stationary spindle). HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 775 Refer to your machine manual. The miscellaneous function M6 may also lead to a suspension of the program run. The machine manufacturer sets the functional scope of the miscellaneous functions. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 776 The control shows the symbol for the exited inactive status in the status display Actions such as a change of operating mode are available again HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 777: Moving The Machine Axes During An Interruption

    On some machines you may have to press the NC start key after the MANUAL TRAVERSE soft key to enable the axis direction keys. Refer to your machine manual. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 778: Resuming Program Run After An Interruption

    With an erasable error message: Remove the cause of the error Clear the error message from the screen: Press the CE key Restart the program, or resume program run where it was interrupted HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 779: Retraction After A Power Interruption

    The control selects the mode of traverse and the associated parameters automatically. If the traverse mode or the parameters have not been correctly preselected, you are unable to reset them manually. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 780 Right-handed thread: the main spindle turns clockwise when moving into the workpiece, counter-clockwise when retracting from it; left-handed thread: main spindle turns counter-clockwise when moving into the workpiece and clockwise when retracting from it HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 781 YES soft key. The control hides Retraction selectedmode. Initialize the machine: if required, cross the reference points Establish the desired machine condition: If required, reset the tilted working plane HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 782: Entering The Program At Any Point: Mid-Program Startup

    784 The BLOCK SCAN function must not be used in conjunction with the following functions: Active stretch filter Touch probe cycle G55 during the search phase of mid-program startup HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 783 After an internal stop, you would like to start in block 120 in the third machining operation of 1G98 L1. In the pop-up window enter the following data: Start-up at: N =120 Repetitions = 3 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 784 Press the NC Start key If you changed the axis positions: Press the NC Start key If the control should run the NC block: Press the NC Start key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 785 Repetitions = 1 Press the NC start key until the control runs the NC block The control continues to run the subprogram and then returns to the main program. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 786 Pallet line = Enter the row number of the pallet table Enter Repetitions = if the NC block is located within a program section repetition Press the NC Start key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 787: Returning To The Contour

    Repeat the process for all axes If the tool is located in the tool axis below the starting point, then the control offers the tool axis as the first traverse direction. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 788: 19.6 Automatic Program Start

    Time (hrs:min:sec): Time of day at which the program is to be started Date (DD.MM.YYYY): Date on which the program is to be started To activate the start, press the OK HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 789: 19.7 Skipping Blocks

    Press the INSERT soft key Delete / symbol In the Programming mode you select the block in which the character is to be erased Press the REMOVE soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 790: 19.8 Optional Program-Run Interruption

    Do not interrupt Program run or Test Run with blocks containing M1: Set the soft key to OFF Interrupt Program run or Test Run with blocks containing M1: Set the soft key to ON HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 791: Mod Functions

    MOD Functions...
  • Page 792: Mod Function

    END key. Exiting MOD functions Exit the MOD functions: Press the END soft key or the END key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 793: Overview Of Mod Functions

    System settings Set the system time Define the network connection Network: IP configuration Diagnostic functions Bus diagnosis Diagnosis of Drives HEROS information General information Version information License information Machine times HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 794: 20.2 Graphic Settings

    High High data transfer rate, exact depiction of tool geometry Medium Medium data transfer rate, approximation of tool geometry Low data transfer rate, coarse approximation of tool geometry HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 795: 20.3 Counter Settings

    You can change the Counter settings via soft key as follows: Soft key Meaning Reset count Increase count Lower count You can also enter the values directly with a connected mouse. Further information: "Defining a counter", page 531 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 796: 20.4 Machine Settings

    Proceed as follows to restrict external access: In the MOD menu, select the Machine settings group Select the External access menu Set the EXTERNAL ACCESS ON/OFF soft key to OFF Press the OK soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 797 Never Deny continuously Deny once In the overview list, an active connection is shown with a green symbol. Connections without access rights are shown gray in the overview list. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 798: Entering Traverse Limits

    The settings are kept even after the control has been restarted. You can only deactivate the protection zone by deleting all values or pressing the EMPTY EVERYTHING soft key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 799: Tool Usage File

    Select the Tool-usage file menu Select the desired setting for the Program Run, Full Sequence/ Single Block and Test Run operating modes Press the APPLY soft key Press the OK soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 800: Select Kinematics

    MOD function. When you select a kinematics model for the test run this does not affect machine kinematics. Ensure that you have selected the correct kinematics in the Test Run operating mode for checking your workpiece. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 801: 20.5 System Settings

    Press the NTP off soft key in order to select the Synchronize the time over NTP server entry Enter hostnames or the URL of an TNP server Press the Add soft key Press the OK soft key HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 802: 20.6 Select The Position Display

    REF ACTL Reference position; actual position relative to the machine datum REF NOML Reference position; nominal position relative to the machine datum Servo lag; difference between nominal and actual positions HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 803 With the MOD function Position display 1, you can select the position display in the status display. With the MOD function Position display 2, you can select the position display in the additional status display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 804: 20.7 Setting The Unit Of Measure

    Program run Duration of controlled operation since being put into service Refer to your machine manual. The machine tool builder can provide further operating time displays. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 805: 20.9 Software Numbers

    The control requires a code number for the following functions: Function Code number Select user parameters Configuring an Ethernet card NET123 Enabling special functions for Q parameter 555343 programming HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 806: 20.11 Setting Up Data Interfaces

    Open the RS232 folder. The control then displays the following settings: Set BAUD RATE (baud rate no. 106701) You can set the BAUD RATE (data transfer speed) from 110 to 115 200 baud. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 807: Set Protocol (Protocol No. 106702)

    Set stop bits (stopBits no. 106705) The start bit and one or two stop bits enable the receiver to synchronize each transmitted character during serial data transmission. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 808: Set Handshake (Flowcontrol No. 106706)

    With the state of the RTS line (optional), you can define whether the LOW level is active in idle state. TRUE: Level is LOW in idle state FALSE: Level is not LOW in idle state HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 809: Define Behavior After Receipt Of Etx (Noeotafteretx No. 106710)

    Data bits in each transferred 7 bits character Type of parity checking EVEN Number of stop bits 1 stop bit Specify type of handshake: RTS_CTS File system for file operations HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 810: Setting The Operating Mode Of The External Device (Filesystem)

    Starting TNCremo under Windows Click on <Start>, <Programs>, <HEIDENHAIN Applications>, <TNCremo> When you start TNCremo for the first time, it automatically tries to set up a connection with the control. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 811 Further information: "Available tool types", page 272 End TNCremo Select <File>, <Exit> You can open the context-sensitive help function of the TNCremo software by pressing the F1 key. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 812: 20.12 Ethernet Interface

    Only active if a second, optional Ethernet interface is avail- able on the control hardware Computer Name displayed for the control in your compa- name ny network HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 813 Only activate this function if the optionally available second Ethernet interface should be accessed externally for diagnostic purposes via the control. Only do so after instruction by our Service Department HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 814 Option Manually configure the default gateway: Manually enter the IP addresses of the default gateway Apply the changes with the OK button, or discard them with the Cancel button HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 815 Ask your network specialist for the proper value Group ID: Definition of the group identification with which you access files in the network. Ask your network specialist for the proper value HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 816 IP address in the machine network. You can also select settings for these devices. Advanced options button: Additional settings for the DNS/DHCP server. Set stan- dard values button: Set factory settings. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 817 Status log Display of status information and error messages. Press the Clear button to delete the contents of the Status Log window. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 818: 20.13 Firewall

    Set the Active option to enable the firewall Press the Set standard values button to activate the default settings recommended by HEIDENHAIN. Exit the dialog with the OK button. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 819 TeleService programs from HEIDENHAIN (e.g. screenshot). If this service is blocked, the VNC configuration dialog shows a warning from HEROS that VNC is disabled in the firewall. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 820 IP address for a host name in the firewall. Advanced options These settings are only intended for your network specialists Set standard Resets the settings to the default values values recommended by HEIDENHAIN HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 821: 20.14 Set Up Touch Probes

    Remove the battery from the touch probe Insert the battery into the touch probe The control connects to the touch probe and creates a new row in the table HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 822: Setting Up A Touch Probe In The Mod Dialog

    The control creates a new row in the table. If necessary, highlight the row with the cursor Enter the touch probe data on the right side The control immediately saves the entered data in the machine parameters. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 823: Touch Probe With Radio Transmission Configuration

    You only need to change the signal strength if there is interference. Select the strength of the radio signal You only need to change the signal strength if there is interference. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 824 Stylus deflected or not deflected Collision Collision or no collision recognized Battery status Display of the battery quality If the charge is less than the displayed bar, then the control outputs a warning. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 825: Configuring The Hr 550Fs Wireless Handwheel

    Connect HW button. To save the configuration and exit the configuration menu, press the END button HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 826: Setting The Transmission Channel

    Click on the Set power button The control displays the three available power settings. Click on the desired setting. To save the configuration and exit the configuration menu, press the END button HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 827: Statistical Data

    If this occurs, try to improve the transmission quality by selecting another channel or by increasing the transmitter power. Further information: "Setting the transmission channel", page 826 Further information: "Selecting the transmitter power", page 826 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 828: 20.16 Load Machine Configuration

    Select the backup file in the control’s file manager (e.g., BKUP-2013-12-12_.zip) The control opens the pop-up window for the backup. Press Emergency Stop Press the OK soft key to start the backup process HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 829: Tables And Overviews

    Tables and Overviews...
  • Page 830: 21.1 Machine-Specific User Parameters

    Proceed as follows in order to have the actual system names of the parameters be shown: Press the Screen layout key Press the SHOW SYSTEM NAME soft key Follow the same procedure to return to the standard display. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 831 As well as the Help text, other information is displayed, e.g. unit of measurement, initial value, selection list. If the selected machine parameter matches a parameter in the previous control model, the corresponding MP number is displayed. HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 832 M5: Display spindle position if spindle is in position control and with M5 Show or hide soft key preset table True: Soft key preset table is not displayed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 833 Program input in HEIDENHAIN Klartext conversational text or in DIN/ISO HEIDENHAIN: Program input in operating mode MDI in Klartext conversational text dialog ISO: Program input in Positioning with MDI mode of operation in DIN/ISO HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 834 CHINESE CHINESE_TRAD SLOVENIAN KOREAN NORWEGIAN ROMANIAN SLOVAK TURKISH PLC dialog language See NC dialog language PLC error message language See NC dialog language Help language See NC dialog language HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 835 ON: With new BLK form in the test run, the tool paths are reset OFF: With new BLK form in the test run, the tool paths are not reset HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 836 Setting the coordinate systems for the display Coordinate system for the datum shift WorkplaneSystem: Datum is displayed in the system of the tilted plane, WPL-CS WorkpieceSystem: Datum is displayed in the workpiece coordinate system, W-CS HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 837 ON: The mM-CS coordinate system can be selected WPL-CS coordinate system is selectable OFF: The WPL-CS coordinate system can not be selected ON: The WPL-CS coordinate system can be selected HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 838 Maximum permissible measuring error with tool measurement 0.001 to 0.999 [mm]: Second maximum permissible measuring error NC stop during tool check True: NC program is stopped if breakage tolerance is exceeded HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 839 0.001 to 99 999.9999 [mm]: Safety clearance in tool axis direction Safety zone around stylus for pre-positioning 0.001 to 99 999.9999 [mm]: Safety clearance in plane perpendicular to tool axis HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 840 Approach behavior on a slot wall in a cylindrical surface LineNormal: Approach with straight line CircleTangential: Approach with an arc movement M function for spindle orientation in machining cycles -1: Spindle orientation directly via NC HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 841 Waiting time at reversal point in thread base –999999999 to 999999999: The spindle stops for this time at the bottom of the thread before starting again in the opposite direction of rotation HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 842 TRUE: For small thread depths the spindles speed is limited to the extent that for about 1/3 of the time it runs at a constant speed FALSE: No limitation of the spindle speed HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 843 TRUE: Paraxial positioning blocks permitted FALSE: Paraxial positioning blocks locked Line number up to which identical syntax elements are searched for 500 to 400000: Search for selected elements with up/down arrow keys HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 844 FN 16 output path for Programming and Test Run operating modes Path for FN 16 output if no path has been defined in the program Serial Interface RS232 Further information: "Setting up data interfaces", page 806 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 845: Connector Pin Layout And Connection Cables For Data Interfaces

    Yellow Green Green Brown Brown Signal GND Blue Gray Gray Pink Pink Do not Violet assign Hsg. External Hsg. External Hsg. Hsg. Hsg. Hsg. External Hsg. shield shield shield HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 846 Signal GND Black Black Violet Violet Gray Gray White/ White/ Green Green Do not Green Green assign Hsg. External Hsg. External Hsg. Hsg. Hsg. Hsg. External Hsg. shield shield shield HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 847: Non-Heidenhain Devices

    Ethernet interface RJ45 socket Maximum cable length: Unshielded: 100 m Shielded: 400 m Signal Description Transmit Data TX– Transmit Data REC+ Receive Data Vacant Vacant REC– Receive Data Vacant Vacant HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 848: 21.3 Technical Information

    5 x USB (1 x front USB 2.0; 4 x rear USB 3.0) ■ Ambient temperature Operation: 5 °C to +40 °C ■ Storage: -20 °C to +60 °C HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 849 Any text string in quotation marks (“”) Number of program section repeats REP 1 to 65 534 (5, 0) Error number in Q parameter function FN14 0 to 1199 (4, 0) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 850: User Functions

    ■ Via circular arc ■ FK free contour programming FK free contour programming in HEIDENHAIN conversational format with graphic support for workpiece drawings not dimensioned for NC HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 851 Programming graphics In Programming mode, the contour of the NC blocks is drawn on screen while they are being entered (2-D pencil-trace graphics), even if another program is running HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 852 ■ Compensation of workpiece misalignment, manual or automatic ■ Presetting, manual or automatic ■ Automatically measuring workpieces ■ Cycles for automatic tool measurement ■ Cycles for automatic kinematics measurement HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 853: Software Options

    CAD import Support for DXF , STEP and IGES Adoption of contours and point patterns Simple and convenient specification of presets Selecting graphical features of contour sections from conversational programs HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 854 Cycle 880: Gear hobbing (option 50 and option 131) Remote Desktop Manager (option 133) Remote operation of external Windows on a separate computer unit computer units Incorporated in the control's interface HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 855 Active Vibration Damping – AVD (option 46) Active vibration damping Damping of machine oscillations to improve the workpiece surface Batch Process Manager (option 154) Batch process manager Planning of production orders HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 856: Accessories

    TS 740: High-precision 3-D touch trigger probe with infrared transmis- sion ■ TT 160: 3-D touch trigger probe for tool measurement ■ TT 460: 3-D touch trigger probe for tool measurement with infrared transmission HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 857: 21.4 Overview Tables

    BORING ■ UNIVERSAL DRILLING ■ BACK BORING ■ UNIVERSAL PECKING ■ TAPPING ■ RIGID TAPPING ■ BORE MILLING ■ TAPPING W/ CHIP BRKG ■ POLAR PATTERN ■ CARTESIAN PATTERN HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 858 TURN PLUNGE LONGITUDINAL EXT. ■ CONTOUR-PAR. TURNING ■ TURN CONTOUR TRANSV. ■ SHOULDER, FACE ■ SHOULDER, FACE. EXT. ■ TURN TRANSVERSE PLUNGE ■ TURN PLUNGE TRANSVERSE EXT. ■ THREAD CONTOUR-PARALLEL HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 859: Miscellaneous Functions

    Within the positioning block: Coordinates are referenced to a position defined by machine manufacturer, e.g. tool change position ■ Reduce the rotary axis display to a value below 360° HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 860 NOMINAL positions at end of block ■ M145 Reset M144 ■ M141 Suppress touch probe monitoring ■ M148 Automatically retract tool from the contour at an NC stop ■ M149 Reset M148 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 861: Functions Of The Tnc 640 And The Itnc 530 Compared

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared 21.5 Functions of the TNC 640 and the iTNC 530 compared Comparison: Specifications Function TNC 640 iTNC 530 Control loops Maximum 24 control 18 maximum loops (including up to...
  • Page 862: Comparison: Pc Software

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: PC software Function TNC 640 iTNC 530 M3D Converter for the creation of high- Available Not available resolution collision objects for collision monitoring (DCM) ConfigDesign...
  • Page 863 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Tool compensation In the working plane and tool length Radius compensated contour look ahead for up to 99 blocks Three-Dimensional Tool Radius Compensation...
  • Page 864 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Constant contouring speed relative to the path of the tool center or relative to the tool's cutting edge Parallel operation: Creating programs while another...
  • Page 865 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Q parameter programming: Standard mathematical functions Formula entry String processing Local Q parameters QL Nonvolatile Q parameters QR Changing parameters during program interruption D15: PRINT –...
  • Page 866 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Graphic support 2-D programming graphics REDRAW function (REDRAW) – Show grid lines as the background – 3-D line graphics Test graphics (plan view, projection on 3 planes, 3-D...
  • Page 867 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Datum tables: Storing workpiece-specific datums Preset table Preset management Line 0 of the preset table can be edited manually – Pallet management...
  • Page 868 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 CAM support: Loading of contours from DXF data X, option 42 X, option 42 Load contours from Step data and Iges data X, option 42 –...
  • Page 869 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Status displays: Positions, spindle speed, feed rate Larger depiction of position display, Manual operation Additional status display, form view Display of the handwheel path during machining with...
  • Page 870: Comparison: Miscellaneous Functions

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Miscellaneous functions Effect TNC 640 iTNC 530 Program STOP/Spindle STOP/Coolant OFF Optional program STOP Stop program/Spindle STOP/Coolant OFF/ Clear status display (depending on machine parameter)/Return jump to block 1...
  • Page 871 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Effect TNC 640 iTNC 530 M112 Enter contour transitions between any two contour transi- – (recommended: tions Cycle 32) M113 Reset M112 M114 Automatic compensation of machine geometry when –...
  • Page 872: Comparator: Cycles

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparator: Cycles Cycle TNC 640 iTNC 530 1 PECKING (recommended: Cycle 200, 203, 205) – 2 TAPPING (recommended: Cycle 206, 207 , 208) – 3 SLOT MILLING (recommended: Cycle 253) –...
  • Page 873 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Cycle TNC 640 iTNC 530 205 UNIVERSAL PECKING 206 TAPPING 207 RIGID TAPPING 208 BORE MILLING 209 TAPPING W/ CHIP BRKG 210 SLOT RECIP. PLNG (recommended: Cycle 253) –...
  • Page 874 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Cycle TNC 640 iTNC 530 291 COUPLG.TURNG.INTERP. X, option 96 – 292 CONTOUR.TURNG.INTRP. X, option 96 – 800 ADJUST XZ SYSTEM X, option 50 – 801 RESET ROTARY COORDINATE SYSTEM X, option 50 –...
  • Page 875: Comparison: Touch Probe Cycles In The Manual Operation And Electronic Handwheel Modes Of Operation

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Touch probe cycles in the Manual operation and Electronic handwheel modes of operation Cycle TNC 640 iTNC 530 Touch-probe table for managing 3-D touch probes –...
  • Page 876: Comparison: Probing System Cycles For Automatic Workpiece Control

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Probing system cycles for automatic workpiece control Cycle TNC 640 iTNC 530 0 REF. PLANE 1 POLAR PRESET 2 CALIBRATE TS – 3 MEASURING 4 MEASURING IN 3-D 9 CALIBRATE TS LENGTH –...
  • Page 877: Comparison: Differences In Programming

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Cycle TNC 640 iTNC 530 430 MEAS. BOLT HOLE CIRC 431 MEASURE PLANE 440 MEASURE AXIS SHIFT – 441 FAST PROBING 444 PROBING IN 3-D X, option 92 –...
  • Page 878 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Skip block function Available Available Selecting a tool from the table Selection via split-screen menu Selection in a pop-up window Programming special functions with...
  • Page 879 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Datum table: Sorting function by values within Available Not available an axis Resetting the table Available Not available Hiding axes that are not present...
  • Page 880 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Handling of error messages: Call via ERR key Call via HELP key Help with error messages Switching the operating mode Help menu is closed when the...
  • Page 881: Comparison: Differences In Test Run, Functionality

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Programming minor axes: Syntax FUNCTION PARAXCOMP: Available Not available Define the behavior of the display and the paths of traverse Syntax FUNCTION PARAXMODE:...
  • Page 882: Comparison: Differences In Test Run, Operation

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Differences in Test Run, operation Function TNC 640 iTNC 530 Arrangement of soft-key rows and Arrangement of soft-key rows and soft-keys varies depending on the soft keys within the rows active screen layout.
  • Page 883: Comparison: Differences In Manual Operation, Functionality

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Differences in Manual Operation, functionality Function TNC 640 iTNC 530 Jog increment function The jog increment can be defined The jog increment applies for both...
  • Page 884: Comparison: Differences In Manual Operation, Operation

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Differences in Manual Operation, operation Function TNC 640 iTNC 530 Capturing the position values from Confirm actual position with a soft Actual-position capture by hard key...
  • Page 885: Comparison: Differences In Program Run, Traverse Movements

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Differences in Program Run, traverse movements NOTICE Danger of collision! NC programs that were created older controls can lead to unexpected axis movements or error messages on current control models.
  • Page 886 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 Q60 to Q99 (QS60 to QS99) areal- Q60 to Q99 (QS60 to QS99) Effect of Q parameters ways local. are local or global, depending on MP7251 in converted cycle programs (.cyc).
  • Page 887 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 The incremental rotation angle IPA Circle programming with polar The algebraic sign of the direc- and the direction of rotation DR...
  • Page 888 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 SLII Cycles 20 to 24: Behavior with islands not Cannot be defined with Restricted definition in complex contained in pockets complex contour formula...
  • Page 889 Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Function TNC 640 iTNC 530 PLANE function: TABLE ROT/COORD ROT Effect: Effect The transformation types are The transformation types are effective on all free rotary axes only effective with a C rotary...
  • Page 890: Comparison: Differences In Mdi Operation

    Tables and Overviews | Functions of the TNC 640 and the iTNC 530 compared Comparison: Differences in MDI operation Function TNC 640 iTNC 530 Execution of connected sequences Function available Function available Saving modally effective functions Function available Function available...
  • Page 891: 21.6 Din/Iso Function Overview

    Retraction from the contour in the tool-axis direction M141 Suppress touch probe monitoring M143 Delete basic rotation M148 Retract the tool automatically from the contour at NC stop M149 Reset M148 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 892 UNIVERSAL PECKING G205 TAPPING with floating tap holder G206 RIGID TAPPING without floating tap holder G207 G208 BORE MILLING G209 TAPPING W/ CHIP BRKG G240 CENTERING G241 SINGLE-LIP D.H.DRLNG HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 893 DATUM SHIFT from datum tables DATUM SHIFT in the program MIRROR IMAGE ROTATION SCALING WORKING PLANE PRESETTING G247 Cycles for multipass milling MULTIPASS MILLING G230 RULED SURFACE G231 *) blockwise effective function HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 894 DWELL TIME G04* ORIENTATION PGM CALL G39* TOLERANCE Define the working plane Spindle axis Z - plane XY Spindle axis Y - plane ZX Spindle axis X - plane YZ HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 895 Setting a label number with G98 Jumping to a label number Tool length with G99 M functions Block number Cycle parameter in machining cycles Value or Q parameter in Q-parameter definition Q parameter HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 896 Programming sequence of the contour elements Radius Compensa- tion Inside (pocket) clockwise (CW) G42 (RR) counterclockwise (CCW) G41 (RL) Outside (island) clockwise (CW) G41 (RL) counterclockwise (CCW) G42 (RR) HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 897 Q parameter: Angle with ARCTAN (angle from c sin a and c cos a) Q parameter: Error message Q parameter: External output Q parameter: Write file Q parameter: Read system data Q parameter: Send value to PLC HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 898 Icon........346 Open a freely definable Mouse area......345 table........540 Dynamic Collision Monitoring... 483 CAD import (option 42).... 329 D27: TABWRITE CAD viewer Write to a freely definable HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 899 FK programming...... 313 Helix......... 309 with the handwheel..... 671 Circular paths....... 318 Help system......225 Multiple axis machining.... End point......319 Help with error message..220 Fundamentals...... 313 Initiating dialog..... 316 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 900 Any desired NC program as Circles and circular arcs..281 Reference system.... 143, 154 Pre-positioning..... 282 Basic........146 PDF Viewer......188 Input........151 PLANE function....553, 555 Machine....... 144 Automatic positioning..573 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 901 Reading system data... 438 Tool load monitoring....527 mechanical probes or measuring Structuring programs....208 Tool management....266 dials.......... 698 Subprogram......351 Editing........Any desired NC program..355 Superimposing handwheel HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 902 Wireless touch probe Setup........821 Working space monitoring..Workpiece positions....155 Workspace monitoring..... 769 Write to log......428 Writing probing values Log........705 To the datum table....706 ZIP archive....... 192 HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017...
  • Page 903 The Information Site for DR. JOHANNES HEIDENHAIN GmbH HEIDENHAIN Controls Dr.-Johannes-Heidenhain-Straße 5 83301 Traunreut, Germany  +49 8669 31-0  +49 8669 32-5061 Klartext App E-mail: info@heidenhain.de The Klartext on Your  +49 8669 32-1000 Technical support Mobile Device Measuring systems ...

This manual is also suitable for:

Tnc 640 5e

Table of Contents