EasyManua.ls Logo

HEIDENHAIN ITNC 530 - CONVERSATIONAL PROGRAMMING - Page 328

HEIDENHAIN ITNC 530 - CONVERSATIONAL PROGRAMMING
713 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
328 Programming: Q Parameters
9.9 Entering Formulas Directly
Arc tangent
Inverse of the tangent. Determines the angle from the
ratio of the opposite to the adjacent side.
Example: Q12 = ATAN Q50
Powers of values
Example: Q15 = 3^3
Constant “pi” (3.14159)
Example: Q15 = PI
Natural logarithm (LN) of a number
Base 2.7183
Example: Q15 = LN Q11
Logarithm of a number, base 10
Example: Q33 = LOG Q22
Exponential function, 2.7183 to the power of n
Example: Q1 = EXP Q12
Negate (multiplication by –1)
Example: Q2 = NEG Q1
Truncate decimal places
Form an integer
Example: Q3 = INT Q42
Absolute value of a number
Example: Q4 = ABS Q22
Truncate places before the decimal point
Form a fraction
Example: Q5 = FRAC Q23
Check algebraic sign of a number
Example: Q12 = SGN Q50
If result for Q12 = 1, then Q50 >= 0
If result for Q12 = –1, then Q50 < 0
Calculate modulo value (division remainder)
Example: Q12 = 400 % 360
Result: Q12 = 40
Mathematical function Soft key

Table of Contents

Related product manuals