6 Subprograms and Program Section Repeats
L
6.2 Program Section Repeats
Example for exercise: Milling with program section repeat without radius compensation
Machining sequence
l
Upward milling direction
l
Machine the area from X=0 to 50 mm
(program all X coordinates with the tool
radius subtracted) and from Y=O to
100 mm: LBL 1
l
Machine the area from X=50 to X=1 00 mm
(program all X coordinates with the tool
radius added) and from Y=O to 100 mm:
LBL 2
l
After each upward pass, the tool is moved
by an increment of +2.5 mm in the Y axis.
The iflusitrrvtion to tft@ right shows
the bfock
numbers cantaining
the
end
points of the
corresponding
ccmt~ur
~lemel~t~.
Part program:
0 BEGIN PGM 360067 MM
1 BLK FORM 0.1 Z X+0 Y+O Z-70
2 BLK FORM 0.2 X+100 Y+lOO Z+O
3 TOOL DEF 1 L+O R+lO
4 TOOL CALL 1 Z SIOOO
5 L X-20 Y-l RO FMAX M3
6
LBL 1
7 L Z-51 FMAX
8
LX+1 FIOO
9 L X+1 1.646 Z-20.2
10 CT X+40 Z+O
11
L x+41
12 L Z+lO FMAX
13
L X-20 IY+2.5
14 CALL LBL 1 REP40/40
15 L Z+20 FMAX
16
LX+12OY-1
17
18
19
20
21
22
23
24
25
26
27
LBL2
L Z-51 FMAX
L X+99 FIOO
L X+88.354 Z-20.2
CT X+60 z+o
L x+59
L Z+lO FMAX
L X+1 20 IY+2.5
CALL LBL 2 REP40140
L Z+lOO FMAX M2
END PGM 360067 MM
Note: the blank form has changed
Program section repeat 1: machining from
X=0 to 50 mm and Y=O to 100 mm
/
1
Retract, reposition
-I
Program section repeat 2: machining from X=50 to
100 mm and Y=O to 100 mm
i
TNC 370 6-7
L