beautypg.com

Z1 z2 – HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 193

background image

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

7 - 4

7

Programming with Q Parameters

Fig. 7.2: Part dimensions as Q parameters

Q2

Q2

Q1

Q1

Z1

Z2

7.1 Part Families — Q Parameters in Place of Numerical Values

The Q parameter function D0: ASSIGN assigns numerical values to
Q parameters.
Example: Q10 = 25

This enables you to use variables in the program instead of fixed
numerical values.
Example: X + Q10 (= X + 25)

You only need to write one program for a whole
family of parts, entering the characteristic dimen-
sions as Q parameters. To program a particular part,
you then assign the appropriate values to the
individual Q parameters.

Example

Cylinder with Q parameters

Radius

R

=

Q1

Height

H

=

Q2

Cylinder Z1:

Q1 = +30
Q2 = +10

Cylinder Z2:

Q1 = +10
Q2 = +50

To assign numerical values to Q parameters:

Select PARAMETER.

Select BASIC ARITHMETIC.

Select D0: ASSIGN.

PARAMETER NUMBER FOR RESULT ?

Enter the Q parameter number, for example 5.

FIRST VALUE / PARAMETER ?

Enter a value or another Q parameter whose value is to be assigned
to Q5.

Resulting NC block: D00 Q5 P01 +6*

ENT

5

6

END