Programming example
Programing Example
Finish-drilling
T10 D10 ( Tool data )
M6 ( Tool change )
G17 G90 G54 F250 M03 S1200 ( Technology data )
G00 Z100 ( Go to Z retract plane )
G00 X50 Y50 ( Go to start position )
#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 = 20 ( depth )
V.L.DwellTime = 2 ( Dwell time )
V.L.SetSpindel0Pos = 270 ( 0 pos. of tool(+X=0,+Y=90,-X=180,-Y=270))
V.L.RetractionMode = 2 ( Retraction mode )
V.L.RetractRadial = 1 ( Radial retraction )
V.L.RetractAxial = 1 ( Axial retraction )
#ENDVAR
;cycle call
L CYCLE [NAME=SysDrillBoring.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DrillingDepth \
@P17 = V.L.DwellTime \
@P62 = V.L.SetSpindel0Pos \
@P92 = V.L.RetractionMode \
@P93 = V.L.RetractRadial \
@P94 = V.L.RetractAxial \
]
;Final position, stop of spindle
G00 Z200 M5
M30