7 Programming with Q Parameters
d
7.2 Describing Contours Through Mathematical Functions
The mathematical functions assign the results of one of the following
operations to a Q parameter:
4
J
Functlufl
FNO: ASSIGN
e.g. FNO: Q5 = +60
Assigns a numerical value.
soft key
FN0
/
H=Y
>
e.g. FNI: Ql = -Q2 + -5
Calculates and assigns the sum of two values.
FNI: ADDITION
FNl
/
/
x+Y
,f
FN2: SUBTRACTION
e.g. FN2: Ql = +I0 - +5
Calculates and assigns the difference of two values.
FN3: MULTIPLICATION
e.g. FN3: Q2 = +3 * +3
Calculates and assigns the product of two values.
FN4: DIVISION
e.g. FN4: 04 = +8 DIV +Q2
Calculates and assigns the quotient of two values.
Not permitted: division by 0
FN5: SQUARE ROOT
e.g. FN5: Q20 = SQRT 4
FN4
/
x / Y
)
Calculates and assigns the square root of a number.
Not permitted: square root of a negative number
The “values” in the overview above can be:
l
two numbers
l
two Q parameters
l
a number and a Q parameter
The Q parameters and numerical values in the equations can be entered
with positive or negative signs.
To select a mathematical operation
Select BASIC ARITHMETIC.
Choose function FN3: MULTIPLICATION.
-/
7-6
TNC 370