beautypg.com

HEIDENHAIN TNC 620 (73498x-02) User Manual

Page 310

background image

Programming: Q Parameters

9.10

Entering formulas directly

9

310

TNC 620 | User's Manual

HEIDENHAIN Conversational Programming | 5/2013

Mathematical function

Soft key

Powers

e.g.

Q15 = 3^3

Constant "pi" (3,14159)

e.g.

Q15 = PI

Natural logarithm (LN) of a number

Base 2.7183
e.g.

Q15 = LN Q11

Logarithm of a number, base 10

e.g.

Q33 = LOG Q22

Exponential function, 2.7183n

e.g.

Q1 = EXP Q12

Negate (multiplication by -1)

e.g.

Q2 = NEG Q1

Truncate digits after the decimal point

Form an integer
e.g.

Q3 = INT Q42

Absolute value

e.g.

Q4 = ABS Q22

Truncate digits before the decimal point

Form a fraction
e.g.

Q5 = FRAC Q23

Check the algebraic sign of a digit

e.g.

Q12 = SGN Q50

When return value Q12 = 1, then Q50 >= 0
When return value Q12 = -1, then Q50 < 0

Calculate modulo value (division rest)

e.g.

Q12 = 400 % 360 Result: Q12 = 40