HEIDENHAIN TNC 320 (77185x-01) ISO programming User Manual
Page 286

Programming: Q Parameters
9.9
Entering formulas directly
9
286
TNC 320 | User's Manual for DIN/ISO Programming | 3/2014
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