HEIDENHAIN TNC 360 ISO Programming User Manual
Page 130

6
Subprograms and Program Section Repeats
6-7
TNC 360
6.2
Program Section Repeats
Example for exercise: Milling with program section repeat without radius compensation
Machining sequence
• Upward milling direction
• Machine the area from X = 0 to 50 mm
(program all X coordinates with the tool
radius subtracted) and from Y = 0 to
100 mm : G98 L1
• Machine the area from X = 50 to 100 mm
(program all X coordinates with the tool
radius added) and from Y = 0 to 100 mm :
G98 L2
• After each upward pass, the tool is moved by
an increment of +2.5 mm in the Y axis.
The illustration to the right shows the block
numbers containing the end points of the
corresponding contour elements.
Part program
100
–20,2
Y
X
Z
–30
–51
–70
11
50
89 100
21,646
78,354
R30
100
Y
X
Z
90 100
110
120
230
220
210
200
%S67I G71 * .............................................................. Begin program
N10 G30 G17 X+0 Y+0 Z–70 * .................................. Define workpiece blank (note: blank form has changed)
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+10 * ............................................ Define the tool
N40 T1 G17 S1750 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X–20 Y–1 M03 * ................................................. Pre-position in the X, Y plane
N70 G98 L1 * ............................................................. Begin program section 1
N80 G90 Z–51 *
N90 G01 X+1 F100 *
N100 X+11.646 Z–20.2 * ........................................... Program section for machining from
N110 G06 X+40 Z+0 * ............................................... X = 0 to 50 mm and Y = 0 to 100 mm
N120 G01 X+41 *
N130 G00 Z+10 *
N140 X–20 G91 Y+2.5 *
N150 L1,40 * ............................................................. Call LABEL 1, repeat program section between blocks
...................................................................................
N70 and N150 40 times
N160 G90 Z+20 * ...................................................... Retract the tool
N170 X+120 Y–1 * ..................................................... Pre-position for program section 2
N180 G98 L2 * ........................................................... Beginning of program section 2
N190 G90 Z–51 *
N200 G01 X+99 F100 *
N210 X+88.354 Z–20.2 * ........................................... Program section for machining from
N220 G06 X+60 Z+0 * ............................................... X = 50 to 100 mm and Y = 0 to 100 mm
N230 G01 X+59 *
N240 G00 Z+10 *
N250 X+120 G91 Y+2.5 *
N260 L2,40 * ............................................................. Call LABEL 2, repeat program section between blocks
N180 and N260 40 times
N270 G90 Z+100 M02 * ............................................ Retract the tool
N9999 %S67I G71 *