beautypg.com

Overview -7 – HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 196

background image

7-7

TNC 426/TNC 425/TNC 415 B/TNC 407

7

Programming with Q Parameters

In the above table, “values” can be any of the following:

• 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.

D5

D1

D2

D4

7.2 Describing Contours Through Mathematical Functions

Select the BASIC ARITHMETIC soft key to call the following functions:

Overview

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

Soft key

D0: ASSIGN
Example: D00 Q5 P01 +60

Assigns a numerical value.

D1: ADDITION
Example: D01 Q1 P01 –Q2 P02 –5

Calculates and assigns the sum of two values.

D2: SUBTRACTION
Example: D02 Q1 P01 +10 P02 +5

Calculates and assigns the difference of two values.

D3: MULTIPLICATION
Example: D03 Q2 P01 +3 P02 +3

Calculates and assigns the product of two values.

D4: DIVISION
Example: D04 Q4 P01 +8 P02 +Q2

Calculates and assigns the quotient of two values.
Not permitted: division by 0

D5: SQUARE ROOT
Example: D05 Q20 P01 +4

Calculates and assigns the square root of a number.
Not permitted: square root of a negative number