Programming example
Programing Example
Mill longholes arranged in a circle
T8 D8 ( Tool data )
M6 ( Tool change )
G90 G54 F200 S2000 M03 ( Technology data )
G00 Z100 ( Go to Z start position )
G00 X50 Y50 ( Go to the centre of the slot )
#VAR
; input parameters:
V.L.SurfacePosition = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 40 ( Z position of retraction plane )
V.L.SafetyClearance = 10 ( Relative value of safety clearance in Z )
V.L.DepthOfHole = 10 ( Depth of hole )
V.L.MaxIncrementZ = 3 ( Maximal infeed in Z )
V.L.NumberOfHoles = 4 ( Number of holes )
V.L.HoleLength = 50 ( Length of hole )
V.L.Radius = 20 ( Radius of hole centres )
; optional parameters:
V.L.FeedRateXY = 1000 ( Machining feedrate in XY )
V.L.FeedRateZ = 500 ( Plunging feedrate )
V.L.PlungingModeZ = 1 ( Plunging mode in Z )
#ENDVAR
; Oscillating infeed in Z
L CYCLE[NAME=SysMillLonghole.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DepthOfHole \
@P5 = V.L.MaxIncrementZ \
@P20 = V.L.FeedRateXY \
@P21 = V.L.FeedRateZ \
@P44 = V.L.NumberOfHoles \
@P72 = V.L.HoleLength \
@P74 = V.L.Radius \
]
; Vertical infeed in Z
L CYCLE[NAME=SysMillLonghole.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DepthOfHole \
@P5 = V.L.MaxIncrementZ \
@P20 = V.L.FeedRateXY \
@P21 = V.L.FeedRateZ \
@P32 = V.L.PlungingModeZ \
@P44 = V.L.NumberOfHoles \
@P72 = V.L.HoleLength \
@P74 = V.L.Radius \
]
M05
M30