Programming example
Programing Example
Mill circular pocket
This example describes the milling and deburring operations for a circular pocket.
#VAR
; input parameters: pocket
V.L.SurfacePositionZ = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 50 ( Z position of retraction plane )
V.L.SafetyClearance = 10 ( relative value of safety clearance in Z )
V.L.Depth = 10 ( depth of pocket )
V.L.MaxIncrementZ = 10 ( maximum infeed in Z )
V.L.MaxIncrementZ = 2.5 ( maximum infeed in XY )
V.L.FeedXY = 6000 ( machining feedrate in X )
V.L.FeedZ = 4000 ( plunging feedrate )
V.L.MachiningMode = 1 ( machining mode )
V.L.Radius = 10 ( radius of pocket )
; input parameters: chamfer
V.L.ChamferDepth = 1 ( depth of chamfer )
V.L.ToolAngle = 90 ( tool tip angle )
#ENDVAR
G54
G00 X0 Y0
T8 D8 ( Tool data )
M6 ( Tool change )
G00 G90 S6000 M03 ( Technology data )
L CYCLE [NAME=SysMillCircularPocket.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.Depth \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P20 = V.L.FeedXY \
@P21 = V.L.FeedZ \
@P31 = V.L.MachiningMode \
@P67 = V.L.Radius \
]
T9 D9 ( Tool data )
M6 ( Tool change )
G00 G90 S6000 M03 F2000 ( Technology data )
L CYCLE [NAME=SysMillChamfer.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P67 = V.L.Radius \
@P100 = "SysMillCircularPocket" \
@P101 = V.L.ChamferDepth \
@P103 = V.L.ToolAngle \
]
M30