Heidenhain ISO G Codes

DIN/ISO Function Overview Heidenhain TNC 640/530/410/426/430/320 G Functions.

Heidenhain TNC 640 CNC

Heidenhain TNC 640 CNC

Heidenhain ISO G Codes

Tool movements

G codeDescription
G00Straight-line interpolation, Cartesian coordinates, rapid traverse
G01Straight-line interpolation, Cartesian coordinates
G02Circular interpolation, Cartesian coordinates, clockwise
G03Circular interpolation, Cartesian coordinates, counterclockwise
G05Circular interpolation, Cartesian coordinates, without indication of direction
G06Circular interpolation, Cartesian coordinates, tangential contour approach
G07Paraxial positioning block
G10Straight-line interpolation, polar coordinates, rapid traverse
G11Straight-line interpolation, polar coordinates
G12Circular interpolation, polar coordinates, clockwise
G13Circular interpolation, polar coordinates, counterclockwise
G15Circular interpolation, polar coordinates, without indication of direction
G16Circular interpolation, polar coordinates, tangential contour approach

Chamfer/Rounding/Approach contour/Depart contour

G codeDescription
G24Chamfer with length R
G25Corner rounding with radius R
G26Tangential contour approach with radius R
G27Tangential contour approach with radius R

Tool definition

G codeDescription
G99With tool number T, length L, radius R

Tool radius compensation

G codeDescription
G40No tool radius compensation
G41Tool radius compensation, left of the contour
G42Tool radius compensation, right of the contour
G43Paraxial compensation for G07, lengthening
G44Paraxial compensation for G07, shortening

Blank form definition for graphics

G codeDescription
G30(G17/G18/G19) min. point
G31(G90/G91) max. point

Cycles for drilling, tapping and thread milling

G codeDescription
G83Pecking
G84Tapping with a floating tap holder
G85Rigid tapping
G86Thread cutting
G200Drilling
G201Reaming
G202Boring
G203Universal drilling
G204Back boring
G205Universal pecking
G206Tapping with a floating tap holder
G207Rigid tapping
G208Bore milling
G209Tapping with chip breaking

Cycles for creating point patterns

G codeDescription
G220Circular pattern
G221Linear pattern

SL Cycles, group 1

G codeDescription
G37Contour geometry, list of subcontour program numbers
G56Pilot drilling
G57Rough-out
G58Contour milling in clockwise direction (finishing)
G59Contour milling, counterclockwise (finishing)

SL cycles, group 2

G codeDescription
G37Contour geometry, list of subcontour program numbers
G120Contour data (applies to G121 to G124)
G121Pilot drilling
G122Rough-out
G123Floor finishing
G124Side finishing
G125Contour train (machining open contour)
G127Cylinder surface
G128Cylindrical surface slot

Coordinate transformation

G codeDescription
G53Datum shift in datum table
G54Datum shift in program
G28Mirror image
G73Rotation of the coordinate system
G72Scaling factor (reduce or enlarge contour)
G80Tilting the working plane
G247Datum setting

Cycles for multipass milling

G codeDescription
G60Run 3-D data
G230Multipass milling of plane surfaces
G231Multipass milling of tilted surfaces
G232Face milling

Special cycles

G codeDescription
G04Dwell time with F seconds
G36Spindle orientation
G39Program call
G62Tolerance deviation for fast contour milling
G440Measure axis shift
G441Fast probing

Define machining plane

G codeDescription
G17Working plane X/Y, tool axis Z
G18Working plane Z/X, tool axis Y
G19Working plane Y/Z, tool axis X
G20Tool axis IV

Dimensions

G codeDescription
G90Absolute dimensions
G91Incremental dimensions

Unit of measure

G codeDescription
G70Inches (set at start of program)
G71Millimeters (set at start of program)

Other G functions

G codeDescription
G29Transfer the last nominal position value as a pole (circle center)
G38STOP program run
G51Next tool number (with central tool file)
G79Cycle call
G98Set label number

Cycles for drilling, tapping and thread milling

G codeDescription
G240Centering
G200Drilling
G201Reaming
G202Boring
G203Universal drilling
G204Back boring
G205Universal pecking
G206Tapping with a floating tap holder
G207Rigid tapping
G208Bore milling
G209Tapping with chip breaking
G241Single-lip deep-hole drilling

Cycles for drilling, tapping and thread milling

G codeDescription
G262Thread milling
G263Thread milling/countersinking
G264Thread drilling/milling
G265Helical thread drilling/milling
G267External thread milling

Cycles for milling pockets, studs and slots

G codeDescription
G74Slot milling
G75Rectangular pocket milling in clockwise direction
G76Rectangular pocket milling in counterclockwise direction
G77Circular pocket milling in clockwise direction
G78Circular pocket milling in counterclockwise direction
G210Slot milling with reciprocating plunge
G211Round slot with reciprocating plunge
G212Rectangular pocket finishing
G213Rectangular stud finishing
G214Circular pocket finishing
G215Circular stud finishing

Cycles for milling pockets, studs and slots

G codeDescription
G251Rectangular pocket, complete
G252Circular pocket, complete
G253Slot, complete
G254Circular slot, complete
G256Rectangular stud
G257Circular stud

Cycles for creating point patterns

G codeDescription
G220Circular point pattern
G221Point patterns on lines

Cycles for multipass milling

G codeDescription
G230Multipass milling of smooth surfaces
G231Multipass milling of tilted surfaces
G232Face milling

Touch probe cycles for measuring workpiece misalignment

G codeDescription
G400Basic rotation using two points
G401Basic rotation from two holes
G402Basic rotation from two studs
G403Compensate a basic rotation via a rotary axis
G404Set basic rotation
G405Compensating misalignment with the C axis

Touch probe cycles for datum setting

G codeDescription
G408Slot center reference point
G409Reference point at center of hole
G410Datum from inside of rectangle
G411Datum from outside of rectangle
G412Datum from inside of circle
G413Datum from outside of circle
G414Datum in outside corner
G415Datum in inside corner
G416Datum circle center
G417Datum in touch probe axis
G418Datum in center of 4 holes
G419Reference point in selectable axis

Touch probe cycles for workpiece measurement

G codeDescription
G55Measure any coordinate
G420Measure any angle
G421Measure hole
G422Measure cylindrical stud
G423Measure rectangular pocket
G424Measure rectangular stud
G425Measure slot
G426Measure ridge
G427Measure any coordinate
G430Measure circle center
G431Measure any plane

Touch probe cycles for tool measurement

G codeDescription
G480Calibrating the TT
G481Measure tool length
G482Measure tool radius
G483Measure tool length and tool radius