beautypg.com

HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 210

background image

7-21

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

7

Programming with Q Parameters

7.7

Entering Formulas Directly

Mathematical function

Soft key

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

Arc tangent:
Inverse of the tangent. Determine the angle from
the ratio of the opposite to the adjacent side.
Example: Q12 = ATAN Q50

Powers (x

y

)

Example: Q15 = 3^3

πππππ

(3.14159)

Natural logarithm (LN) of a number,
base 2.7183
Example: Q15 = LN Q11

Logarithm of a number,
base 10
Example: Q33 = LOG 022

Exponential function (2.7183

n

)

Example: Q1 = EXP Q12

Negate (multiply by –1)
Example: Q2 = NEG Q1

Drop places after decimal point
(form an integer)
Example: Q3 = INT Q42

Absolute value
Example: Q4 = ABS Q22

Drop places before the decimal point
(form a fraction)
Example: Q5 = FRAC Q23