246 Programming: Subprograms and Program Section Repeats
8.6 Programming Examples
8.6 Programming Examples
Example: Milling a contour in several infeeds
Program sequence
îš„ Pre-position the tool to the workpiece surface
îš„ Enter the infeed depth in incremental values
îš„ Contour milling
îš„ Repeat infeed and contour-milling
%PGMWDH G71 *
N10 G30 G17 X+0 Y+0 Z-40 *
N20 G31 G90 X+100 Y+100 Z+0 *
N40 T1 G17 S3500 *
Tool call
N50 G00 G40 G90 Z+250 *
Retract the tool
N60 I+50 J+50 *
Set pole
N70 G10 R+60 H+180 *
Pre-position in the working plane
N80 G01 Z+0 F1000 M3 *
Pre-position to the workpiece surface