Programming example
This example describes milling a circular pocket of radius 50. The pocket depth is 10. Its centre is at the current position when the cycle is called.
The aim is to execute finishing and roughing in one pass. The finishing allowance at the base and edge is 1 in each case. The maximum feed in the XY direction is to be half the tool diameter (10), resulting in a value of 5. In the Z direction, the tool is to be lowered by a maximum of 3 per pass. The pocket is milled clockwise and in a helical movement.
The Z value of the spigot surface is 0. On approach and retraction, a safety clearance of 10 is to be observed. The retraction plane is at height 40. The safety clearance on retraction in the XY direction is 10.
The milling velocity in the XY plane is 200 and the feed in the Z direction is 500.
Programing Example
Mill circular pocket
The following parameter settings are conceivable for the successful execution of the cycle.
- Pocket of radius 50:
@P6 = 50
- The pocket depth is 10:
@P5 = 10
- The finishing allowance at the base and edge is 1:
@P16=1 @P17=1
- Finishing and roughing in one pass:
@P8 = 3
- Helical removal:
@P7 = 1
- Maximum infeed in XY direction is 5:
@P14 = 5
- Maximum infeed in Z direction is 3:
@P12 = 3
- Spigot is milled in clockwise direction:
@P9 = 2
- Z value of spigot surface is 0:
@P1 = 0
- Retraction plane is at height 40:
@P2 = 40
- Safety clearance in Z of 10:
@P3 = 10
- Safety clearance in XY of 10:
@P4 = 10
- Feedrate for milling in XY plane is 200:
@P15 = 200
- Feedrate for infeed in Z is 500:
@P13 = 500
- The centre of the pocket is at current position when the cycle is called: No definition of @P10 and @P11
This results in the following cycle call:
T9 D9 ( Tool data / length compensation )
M6 ( Tool change )
G00 G90 M03 S6000 ( Machining values )
G00 Z100 ( Approach starting position in Z )
G00 X-50 Y0 ( Approach spigot centre point )
; Polynomial smoothing for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]
G261
L CYCLE [NAME=SysMillCircularPocket.ecy, @P6 = 50, @P7 = 1, @P8 = 3 \
@P9 = 2, @P12 = 3, @P5 = 10, \
@P16 = 1, @P17 = 1, @P15 = 200\
@P14 = 5, @P13 = 500 @P1 = 0 \
@P2 = 40, @P3 = 10, @P4 = 10]
G260
M30