Overview -5 – HEIDENHAIN TNC 360 ISO Programming User Manual

Page 139

Advertising
background image

7-5

TNC 360

7

Programming with Q Parameters

7.2 Describing Contours Through Mathematical Functions

Overview

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

D00: ASSIGN
e.g. N10 D00 Q05 P01 +60 *
Assigns a value directly

D01: ADDITION
e.g. N10 D01 Q01 P01 –Q2 P02 –5 *
Calculates and assigns the sum of two values

D02: SUBTRACTION
e.g. N10 D02 Q01 P01 +10 P02 +5 *
Calculates and assigns the difference between two values

D03: MULTIPLICATION
e.g. N10 D03 Q02 P01 +3 P02 +3 *
Calculates and assigns the product of two values

D04: DIVISION
e.g. N10 D04 Q04 P01 +8 P02 +Q02 *
Calculates and assigns the quotient of two values

Note: Division by 0 is not possible!

D05: SQUARE ROOT
e.g. N10 D05 Q20 P01 +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.

Advertising
This manual is related to the following products: