HEIDENHAIN TNC 407 (280 580) User Manual User Manual
Page 201

TNC 425/TNC 415 B/TNC 407
7-16
7
Programming with Q Parameters
2
ENT
5
1
2
Q
1
3
END
Q
7.7 Entering Formulas Directly
Rules for formulas
• Higher-level operations are performed first (multiplication and division
before addition and subtraction)
e.g. 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
e.g. Q2 = SQ 10 – 3^3 = 73 => 1st step: 10 squared = 100
2nd step: 3 to the power of 3 = 27
3rd step: 100 – 27 = 73
• Law of distribution for calculating with parentheses
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, e.g. 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)
Q