6 creating and writing programs, 6 cr eating and w riting pr ogr ams – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual
Page 75

59
HEIDENHAIN TNC 410, TNC 426, TNC 430
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 automatically numbers the program blocks in ascending
sequence, if you have set a block number increment in MP7220
(see „14.1 General User Parameters“)
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:
■
The blank form:
■
Tool definitions and tool calls,
■
Feed rates and spindle speeds as well as
■
Path contours, cycles and other functions
The last block of a program begins with N999 999 and is identified
with ”%”, the program name and the active unit of measure.
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 may be max.
100 000 mm long (TNC 410: 30 000 mm) and lie parallel to the axes
X, Y and Z. The ratio of the side lengths must be less than 200:1. The
blank form is defined by two of its corner points:
■
MIN point G30: the smallest X, Y and Z coordinates of the blank
form, entered as absolute values.
■
MAX point G31: the largest X, Y and Z coordinates of the blank
form, entered as absolute or incremental values.
You only need to define the blank form if you wish to run
a graphic test for the program!
Block:
N100 G00 G40 X+10 Y+5 M3
Path function
Words
Block number
Y
X
Z
MAX
MIN
4.6 Cr
eating and
W
riting Pr
ogr
ams
Ekap4.pm6
29.06.2006, 08:06
59