beautypg.com

HEIDENHAIN TNC 320 (34055x-06) User Manual

Page 280

background image

Programming: Q Parameters

8.10

Entering formulas directly

8

280

TNC 320 | 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