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 = 2 (relative value of safety clearance in Z)
V.L.Depth = 10 (depth of pocket)
V.L.MaxIncrementZ = 10 (maximum infeed in Z)
V.L.MaxIncrementXY = 2.5 (maximum infeed in XY)
V.L.FeedZ = 2000 (plunging feedrate)
V.L.MachiningMode = 1 (machining mode)
V.L.Diameter = 20 (diameter of pocket)
; input parameters: chamfer
V.L.ChamferDepth = 1 (depth of chamfer)
V.L.ChamferFeedZ = 3000 (machining feedrate in Z)
V.L.ChamferMachDepth = 2 (machining depth for chamfer)
#ENDVAR
G54
; polynomial contouring for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = 0.01]
G261
; positioning to the starting point
G00 X50 Y50
; tool change
T8 D8 (endmill 5mm)
M6
; technology data
G90 M03 S6000 F4000
; cycle call for milling
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 \
@P21 = V.L.FeedZ \
@P31 = V.L.MachiningMode \
@P68 = V.L.Diameter \
]
; tool change
T9 D9 (chamfering mill)
M6
; technology data
G90 M03 S6000 F2000
; cycle call for milling
L CYCLE [NAME=SysMillChamfer.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.ChamferMachDepth \
@P68 = V.L.Diameter \
@P100 = "SysMillCircularPocket" \
@P101 = V.L.ChamferDepth \
@P106 = V.L.ChamferFeedZ \
]
G260
M05
M30