Programming example
Programing Example
Mill circumferential slots
The following parameter settings are used in the programming example:
- The Z value of the blank surface is 0:
@P1 = 0
- Retraction plane is at height 40:
@P2 = 40
- Safety clearance in Z of 10mm:
@P3 = 10
- Safety clearance on retraction in XY is 10mm:
@P4 = 10
- Maximum feed in Z direction is 10mm:
@P5 = 10
- Maximum feed in XY direction is the tool radius:
@P6=V.G.WZ_AKT.R
- Feedrate for infeed in Z is 500mm/min:
@P7 = 500
- Feed rate for milling in XY plane is 600mm/min:
@P8 = 600
- Finishing and roughing in one pass:
@P9= 3
- The slot is milled in clockwise direction:
@P10 = 2
- Finishing allowance at base and edge is 1mm in each case:
@P11=1 @P12=1
- Feed rate for finishing is same as for roughing: No definition of @P13 and @P14
- The circle centre is at the current position when the cycle is called: No definition of @P15 and @P16
- The slot depth is 30mm:
@P17 = 30
- Slot with opening angle of 45°
@P18 = 45
- Slot 20mm wide:
@P19 = 20
- A total of 4 slots are milled:
@P20 = 4
- The radius of the circle is 100mm:
@P21 = 100
T9 D9 ( Tool data )
M6 ( Tool change )
G00 G90 M03 S6000 ( Technology data )
G00 Z100 ( Approach starting position in Z )
G00 X-50 Y0 ( Approach circle centre point )
; polynomial smoothing for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]
G261
; Vertical infeed
L CYCLE[NAME=SysMillCircumferentialSlot.ecy @P1=0 @P2=40 @P3=10 @P4=10 @P5=10 \
@P6=V.G.WZ_AKT.R @P7=500 @P8=600 \
@P9=3 @P10=2 @P11=1 @P12=1 @P17=30\
@P18=45 @P19=20 @P20=4 @P21=100]
; Helical infeed @P24=2
L CYCLE[NAME=SysMillCircumferentialSlot.ecy @P1=0 @P2=40 @P3=10 @P4=10 @P5=10 \
@P6=V.G.WZ_AKT.R @P7=500 @P8=600 \
@P9=3 @P10=2 @P11=1 @P12=1 @P17=30\
@P18=45 @P19=20 @P20=4 @P21=100 \
@P24=2]
G260
M30