beautypg.com

10 entering formulas directly, Entering formulas – HEIDENHAIN TNC 320 (340 551-01) User Manual

Page 356

background image

356

10 Programming: Q Parameters

1

0

.1

0 Ent

e

ri

ng F

o

rm

ulas Dir

e

ctly

10.10 Entering Formulas Directly

Entering formulas

You can enter mathematical formulas that include several operations
directly into the part program by soft key.

Press the FORMULA soft key to call the formula functions. The TNC
displays the following soft keys in several soft-key rows:

Logic command

Soft key

Addition
Example: Q10 = Q1 + Q5

Subtraction
Example: Q25 = Q7 – Q108

Multiplication
Example: Q12 = 5 * Q5

Division
Example: Q25 = Q1 / Q2

Opening parenthesis
Example: Q12 = Q1 * (Q2 + Q3)

Closing parenthesis
Example: Q12 = Q1 * (Q2 + Q3)

Square of a value
Example: Q15 = SQ 5

Square root
Example: Q22 = SQRT 25

Sine of an angle
Example: Q44 = SIN 45

Cosine of an angle
Example: Q45 = COS 45

Tangent of an angle
Example: Q46 = TAN 45

Arc sine
Inverse of the sine. Determine the angle from the ratio
of the opposite side to the hypotenuse.
Example: Q10 = ASIN 0.75

Arc cosine
Inverse of the cosine. Determine the angle from the
ratio of the adjacent side to the hypotenuse.
Example: Q11 = ACOS Q40