Programming example
Programing Example
Centring and simple drilling
; Centring
#VAR
; input parameters:
V.L.SurfacePosition = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 20 ( Z position of retraction plane )
V.L.SafetyClearance = 5 ( relative value of safety clearance in Z )
V.L.DrillingDepth = 4 ( depth )
#ENDVAR
(--------------------------------- Centring ---------------------------------)
T1 D1 ( Tool data )
M6 ( Tool change )
G90 G54 F250 M03 S400 ( Technology data )
G00 Z100 ( Go to Z start position )
G00 X20 Y20 ( 1st drilling position )
L CYCLE [NAME=SysDrillCenterHole.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DrillingDepth \
]
G00 Z200 M5 ( Final position, stop of spindle )
(--------------------------------- Drilling ----------------------------------)
T2 D2 ( Tool data )
M6 ( Tool change )
G90 G54 F500 M03 S5000 ( Technology data )
G00 Z100 ( Go to Z start position )
G00 X20 Y20 ( 1st drilling position )
V.L.DrillingDepth = 20 ( Set new drilling depth )
L CYCLE [NAME=SysDrillCenterHole.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DrillingDepth \
]
G00 Z200 M5 ( Final position, stop of spindle )
(-----------------------------------------------------------------------------)
M30