Programming Qparameters | Entering formulas directly
9
Soft key Linking function Priority
Natural logarithm (LN) of a number
Base = e = 2.7183
e.g. Q15 = LN Q11
Function
Logarithm of a number
Base = 10
e.g. Q33 = LOG Q22
Function
Exponential function (e ^ n)
Base = e = 2.7183
e.g. Q1 = EXP Q12
Function
Negate values
Multiply by -1
e.g. Q2 = NEG Q1
Function
Truncate decimal places
Form an integer
e.g. Q3 = INT Q42
The INT function does not round off—it simply truncates
the decimal places.
Further information: "Example: Rounding a value",
Page 351
Function
Absolute value of a number
e.g. Q4 = ABS Q22
Function
Truncate places before the decimal point
Form a fraction
e.g. Q5 = FRAC Q23
Function
Check algebraic sign of a number
e.g. Q12 = SGN Q50
If Q50 = 0, then SGN Q50 = 0
If Q50 < 0, then SGN Q50 = -1
If Q50 > 0, then SGN Q50 = 1
Function
Calculate the modulo value (division remainder)
e.g., Q12 = 400 % 360 Result: Q12 = 40
Function
286
HEIDENHAIN | TNC620 | Klartext Programming User's Manual | 01/2022