5 - 6 en-938872/2
5.3 Programming Examples
Example 1
Creating a particular cycle with function G199 (subroutine %10199).
The cycle below is given only for guidance.
It allows execution of several drilling or punching operations «P» distributed on a
circle with radius «R» centred on XY (G17).
Cycle syntax and parameters
N.. G199 X.. Y.. ER.. Z.. P.. R.. F..
G199 Cycle for drilling equally spaced holes on a circle.
X.. Y.. Circle centre position.
ER.. Approach and clearance position.
Z.. Machining end point.
P.. Number of equally spaced holes.
R.. Radius of the hole circle.
F.. Feed rate.
Main machining programme
%20
N10 G0 G52 Z0
N20 T1 D1 M06 (DRILL)
N30 S1000 M40 M03
N40 X0 Y0 Z5
N50 G199 X50 Y50 ER2 Z-10 P6 R20 F90
Circle 1 cycle
N60 X100 Z-5 P4 R10
Circle 2 cycle
N70 X150 Y150 Z-15 P6 R25
Circle 3 cycle
N80 X200 Y50 Z-5 P4 R10
Circle 4 cycle
N90 X250 Z-10 P6 R20
Circle 5 cycle
N100 G80 G0 G52 M05
Cycle cancelled
N110 M02