10 Programming: Q Parameters
1
0
.9 Ent
er
ing F
o
rm
ulas Dir
e
ctly
Rules for formulas
Mathematical formulas are programmed according to the following
rules:
Higher-level operations are performed first (multiplication and
division before addition and subtraction)
1st
step 5 * 3 = 15
2nd
step 2 * 10 = 20
3rd
step 15 + 20 = 35
Arc tangent
Inverse of the tangent. Determine 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
Mathematical function
Soft key
12
Q1 = 5 * 3 + 2 * 10 = 35
Содержание TNC 426
Страница 3: ......
Страница 4: ......
Страница 8: ...IV...
Страница 10: ...VI...
Страница 26: ......
Страница 27: ...1 Introduction...
Страница 41: ...2 Manual Operation and Setup...
Страница 54: ......
Страница 55: ...3 Positioning with Manual Data Input MDI...
Страница 59: ...4 Programming Fundamentals of NC File Management Programming Aids Pallet Management...
Страница 122: ......
Страница 123: ...5 Programming Tools...
Страница 153: ...6 Programming Programming Contours...
Страница 201: ...7 Programming Miscellaneous functions...
Страница 226: ......
Страница 227: ...8 Programming Cycles...
Страница 366: ......
Страница 367: ...9 Programming Subprograms and Program Section Repeats...
Страница 381: ...10 Programming Q Parameters...
Страница 424: ......
Страница 425: ...11 Test run and Program Run...
Страница 443: ...12 MOD Functions...
Страница 472: ......
Страница 473: ...13 Tables and Overviews...
Страница 496: ......