Example nc blocks, Example – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 336

Advertising
background image

336

10 Programming: Q Parameters

1

0

.2 P

a

rt

F

a

milies—Q P

a

ra

met

e

rs in Place of Numer

ical V

a

lues

10.2 Part Families—Q Parameters

in Place of Numerical Values

The Q parameter function FN0: ASSIGN assigns numerical values to
Q parameters. This enables you to use variables in the program
instead of fixed numerical values.

Example NC blocks

You need write only one program for a whole family of parts, entering
the characteristic dimensions as Q parameters.

To program a particular part, you then assign the appropriate values to
the individual Q parameters.

Example

Cylinder with Q parameters

15 FNO: Q10=25

Assign

...

Q10 is assigned the value 25

25 L X +Q10

Means L X +25

Cylinder radius

R = Q1

Cylinder height

H = Q2

Cylinder Z1

Q1 = +30
Q2 = +10

Cylinder Z2

Q1 = +10
Q2 = +50

Z1

Q1

Q2

Z2

Q1

Q2

Advertising