beautypg.com

HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 211

background image

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

7 - 2 2

7

Programming with Q Parameters

2

ENT

5

1

2

1

3

END

7.7 Entering Formulas Directly

Q

Q

Rules for formulas

• Higher-level operations are performed first (multiplication and division

before addition and subtraction):

Q1 = 5 x 3 + 2 x 10 = 35 =>

1st step: 5 x 3 = 15
2nd step: 2 x 10 = 20
3rd step: 15 + 20 = 35

Q2 = SQ 10 – 3^3 = 73 =>

1st step: 10

2

= 100

2nd step: 3

3

= 27

3rd step: 100 – 27 = 73

• Distributive law:

a(b + c) = ab + ac

Programming example

Calculate an angle with arc tangent as opposite side (Q12) and adjacent
side (Q13), then store in Q25.

Select the formula entering function.

PARAMETER NUMBER FOR RESULT ?

Enter the parameter number, for example Q25.

Shift the soft-key row to the right.
Select arc tangent.

Shift the soft-key row back to the left.
Open parentheses.

Enter parameter number Q12.

Select division.

Enter parameter number Q13.
Close parentheses; conclude formula entry.

Resulting NC block: Q25 = ATAN (Q12 / Q13)