beautypg.com

HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 194

background image

7-5

TNC 426/TNC 425/TNC 415 B/TNC 407

7

Programming with Q Parameters

7.1

Q Parameters in Place of Numerical Values

Example for exercise: Full circle

Circle center I, J:

X

= 50 mm

Y

= 50 mm

Beginning and end
of circular arc C:

X

= 50 mm

Y

=

0 mm

Milling depth:

Z

M

= –5 mm

Tool radius:

R

= 15 mm

–5

50

50

Y

X

Z

CC

Part program without Q parameters

%S520I G71 * ............................................................ Start of program
N10 G30 G17 X+1 Y+1 Z–20 * .................................. Blank form MIN point
N20 G31 G90 X+100 Y+100 Z+0 * ............................ Blank form MAX point
N30 G99 T6 L+0 R+15 * ............................................ Define tool
N40 T6 G17 S1500 * .................................................. Call tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract and insert tool
N60 X+50 Y–40 * ....................................................... Pre-position in the working plane
N70 Z5 M03 * ............................................................ Move tool to working depth
N80 I+50 J+50 * ........................................................ Coordinates of the circle center
N90 G01 G41 X+50 Y+0 F100 * ................................ Move to first contour point with radius compensation at

machining feed rate

N100 G26 R10 * ........................................................ Soft (tangential) approach
N110 G02 X+50 Y+0 * ............................................... Mill arc around circle center I, J;

negative rotation; coordinates of end point
X = +50 mm and Y = +0

N120 G27 R10 * ........................................................ Soft (tangential) departure
N130 G00 G40 X+50 Y–40 * ...................................... Depart contour, cancel radius compensation
N140 Z+100 M02 * .................................................... Retract in the infeed axis
N99999 %S520I G71 *

Continued on next page...