beautypg.com

1 principle and overview, Programming notes – HEIDENHAIN iTNC 530 (340 422) ISO programming User Manual

Page 418

background image

418

10 Programming: Q Parameters

1

0

.1 Pr

inc

iple a

nd O

v

erv

iew

10.1 Principle and Overview

You can program an entire family of parts in a single part program. You
do this by entering variables called Q parameters instead of fixed
numerical values.

Q parameters can represent information such as:

n

Coordinate values

n

Feed rates

n

Spindle speeds

n

Cycle data

Q parameters also enable you to program contours that are defined
with mathematical functions. You can also use Q parameters to make
the execution of machining steps depend on logical conditions.

Q parameters are designated by the letter Q and a number between 0
and 299. They are grouped according to three ranges:

Programming notes

You can mix Q parameters and fixed numerical values within a
program.

Q parameters can be assigned numerical values between
–99 999.9999 and +99 999.9999. Internally, the TNC can calculate up
to a width of 57 bits before and 7 bits after the decimal point (32-bit
data width corresponds to a decimal value of 4 294 967 296).

Meaning

Range

Freely applicable parameters, globally effective
for all programs stored in the TNC memory

Q0 to Q99

Parameters for special TNC functions

Q100 to Q199

Parameters that are primarily used for cycles,
globally effective for all programs that are stored
in the TNC memory

Q200 to Q399

Q4

Q2

Q3

Q1

Q5

Q6

Some Q parameters are always assigned the same data by
the TNC. For example, Q108 is always assigned the
current tool radius (see “Preassigned Q Parameters,”
page 437
).

If you are using the parameters Q60 to Q99 in encoded
OEM cycles, define via MP7251 whether the parameters
are only to be used locally in the OEM cycles, or may be
used globally.