Programming example
This example describes milling of a contour pocket defined in the NC program.
This results in the following cycle call:
Programing Example
Mill contour pocket
T9 D9 ( Tool data )
M6 ( Tool change )
G00 G90 M03 S6000 F5000 ( Technology data )
G00 Z100 ( Go to z start position )
G00 X0 Y0 ( Go to start position )
; cycle call parameter:
#VAR
V.L.SurfacePosition = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 100 ( Z position of return plane )
V.L.SafetyClearance = 10 ( relative value of safety clearance )
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 = V.G.WZ_AKT.R ( maximum infeed in XY )
V.L.MachiningMode = 1 ( roughing )
#ENDVAR
; 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
G0 ZV.L.RetractionPlane
; 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