beautypg.com

6 creating and writing programs, Organization of an nc program in iso format, Define blank form: g30/g31 – HEIDENHAIN TNC 410 ISO Programming User Manual

Page 97: Organization of an nc program in iso format, Define blank form

background image

HEIDENHAIN TNC 410, TNC 426, TNC 430

71

4.6 Cr

eating

and

W

riting

Pr

ogr

ams

4.6 Creating and Writing Programs

Organization of an NC program in ISO format

A part program consists of a series of program blocks. The figure at
right illustrates the elements of a block.

The TNC numbers the blocks in ascending sequence.

The first block of a program is identified by %, the program name and
the active unit of measure (G70/G71).

The subsequent blocks contain information on:

n

The workpiece blank

n

Tool definitions, tool calls

n

Feed rates and spindle speeds, as well as

n

Path contours, cycles and other functions

The last block of a program is identified by N999999, %, the program
name and the active unit of measure (G70/G71).

Define blank form: G30/G31

Immediately after initiating a new program, you define a cuboid
workpiece blank. This definition is needed for the TNC’s graphic
simulation feature. The sides of the workpiece blank lie parallel to the
X, Y and Z axes and may be up to 100 000 mm long (TNC 410: 30 000
mm). The blank form is defined by two of its corner points:

n

MIN point G30: the smallest X, Y and Z coordinates of the blank
form, entered as absolute values.

n

MAX point G31: the largest X, Y and Z coordinates of the blank form,
entered as absolute or incremental values (with G91).

N10 G00 G40 X+10 Y+5 F100 M3

Block number

Path function

Words

Blocks

You only need to define the blank form if you wish to run
a graphic test for the program!

The TNC can display the graphic only if the ratio of the
shortest to the longest side of the blank form is less than
1 : 64.