beautypg.com

HEIDENHAIN TNC 407 (280 580) User Manual User Manual

Page 200

background image

7-15

TNC 425/TNC 415 B/TNC 407

7

Programming with Q Parameters

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

Arc cosine:
Inverse of the cosine; Determine the angle from
the ratio of the adjacent side to the hypotenuse
e.g. Q11 = ACOS Q

Arc tangent:
Inverse of the tangent; Determine the angle from
the ratio of the opposite to the adjacent side
e.g. Q12 = ATAN Q11

Powers
e.g. Q15 = 3^3

π

(3.14159)

Natural logarithm (LN) of a number,
base 2.7183
e.g. Q15 = LN Q11

Logarithm of a number; base 10
e.g. Q33 = LOG 022

Exponential function (2.7183 to the power of n)
e.g. Q1 = EXP Q12

Negation (multiplication by –1)
e.g. Q2 = NEG Q1

Dropping of trailing zeros (making an integer)
e.g. Q3 = INT Q42

Absolute value
e.g. Q4 = ABS Q22

Dropping the values before the decimal point;
fractions
e.g. Q5 = FRAC Q23

7.7 Entering Formulas Directly