Programming example
This example describes predrilling of a contour pocket defined in the NC program.
The first cycle call activates predrilling. In addition to the feedrate for drilling, the parameters used for pocket milling must be transferred to this cycle in order to calculate the plunge points of the milling cycle.
After predrilling, a tool change takes place before the contour pocket is milled.
Programing Example
Predrilling a contour pocket defined in the NC program
V.L.SurfacePosition = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 100 ( Z position of retraction plane )
V.L.SafetyClearance = 10 ( relative value of safety clearance )
; Parameter pre drilling (SysMillContourPreDrilling)
V.L.DrillFeed = 2000 ( drilling feedrate in Z )
V.L.RefToolRadius = 15 ( tool radius of reference cycle (D2))
V.L.RefCycle = 1 ( reference cycle = pocket milling )
; Parameter reference cycle (SysMillContourPocket)
V.L.FeedRateXY = 2000 ( machining feedrate in XY )
V.L.FeedRateZ = 1000 ( plunging feedrate )
V.L.Direction = 2 ( clockwise machining )
V.L.DepthOfPocket = 20 ( depth of pocket )
V.L.MaxIncrementZ = V.L.DepthOfPocket / 2 ( maximum infeed in Z )
V.L.MaxIncrementXY = 15 ( maximum infeed in XY )
V.L.MachiningMode = 1 ( roughing )
# ENDVAR
G0 G90 ZV.L.RetractionPlane F2000
; contour definition:
# CONTOUR BEGIN[ID = 1]
G1 G90 X60 Y0
G1 G91 Y40
G1 G91 X-20
G1 G90 X20 Y60
G1 X0 Y40
G161 G03 X0 Y0 I0 J20
G1 X60
# CONTOUR END
T1 D1 ( Tool data )
M6 ( Tool change )
G00 G90 M03 S1000 F5000 ( Technology data )
G00 Z100 ( Go to z start position )
G00 X0 Y0 ( Go to centre of circle )
; pre drilling call:
L CYCLE [NAME = SysMillContourPreDrilling.ecy @P1 = V.L.SurfacePosition, \
@P2 = V.L.RetractionPlane, @P3 = V.L.SafetyClearance \
@P4 = V.L.DepthOfPocket @P5 = V.L.RefToolRadius @P6 = V.L.Direction\
@P7 = V.L.RefCycle @P8 = V.L.DrillFeed \
@P9 = V.L.MaxIncrementXY @P10 = V.L.FeedRateXY @P50= 1 ]
T3 D3 ( Tool data, radius = 15 )
M6 ( Tool change )
G00 G90 M03 S6000 F5000 ( Technology data )
; reference cycle call:
L CYCLE [NAME = SysMillContourPocket.ecy @P1 = V.L.SurfacePosition, \
@P2 = V.L.RetractionPlane, @P3 = V.L.SafetyClearance \
@P4 = V.L.DepthOfPocket @P5 = V.L.MachiningMode @P6 = V.L.Direction\
@P7 = V.L.MaxIncrementZ @P8 = V.L.FeedRateZ \
@P9 = V.L.MaxIncrementXY @P10 = V.L.FeedRateXY @P50= 1 ]
M30