beautypg.com

Rules for formulas, Entering formulas directly 9.9 – HEIDENHAIN TNC 320 (77185x-01) ISO programming User Manual

Page 287

background image

Entering formulas directly

9.9

9

TNC 320 | User's Manual for DIN/ISO Programming | 3/2014

287

Rules for formulas

Mathematical formulas are programmed according to the following

rules:

Higher-level operations are performed first

12 Q1 = 5 * 3 + 2 * 10 = 35

1 Calculation 5 * 3 = 15
2 Calculation 2 * 10 = 20
3 Calculation 15 + 20 = 35

or

13 Q2 = SQ 10 - 3^3 = 73

1 Calculation step 10 squared = 100
2 Calculation step 3 to the third power = 27
3 Calculation 100 – 27 = 73

Distributive law

Law of distribution with parentheses calculation

a * (b + c) = a * b + a * c