beautypg.com

Describing contours through mathematical functions, Overview – HEIDENHAIN TNC 360 User Manual User Manual

Page 139

background image

7-5

TNC 360

7

Programming with Q Parameters

or

ENT

3

ENT

GOTO

7.2 Describing Contours Through Mathematical Functions

Overview

The mathematical functions assign the results of one of the following
operations to a Q parameter:

FN0: ASSIGN
e.g. FN0: Q5 = +60
Assigns a value directly

FN1: ADDITION
e.g. FN1: Q1 = –Q2 + –5
Calculates and assigns the sum of two values

FN2: SUBTRACTION
e.g. FN2: Q1 = +10 – +5
Calculates and assigns the difference between two values

FN3: MULTIPLICATION
e.g. FN3: Q2 = +3 ❊ +3
Calculates and assigns the product of two values

FN4: DIVISION
e.g. FN4: Q4 = +8 DIV +Q2
Calculates and assigns the quotient of two values

Note

Note

Note

Note

Note: Division by 0 is not possible!

FN5: SQUARE ROOT
e.g. FN5: Q20 = SQRT 4
Calculates and assigns the square root of a number

Note: Square root of a negative number is not possible!

The “values” in the overview above can be:

• two numbers
• two Q parameters
• 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

FN0: ASSIGN

Select function directly or with arrow keys,
e.g. FN3: MULTIPLICATION.

FN3: MULTIPLICATION

Open a new block with the function FN3: MULTIPLICATION.

Q

DEF