Programming example
This example describes a drilling operation at any position using the example of the "SysDrillDeepHole” cycle.
#VAR
; input parameters for pattern
; RefCycle = "SysDrillDeepHole"
V.L.Pos1X = 0 ( first drill position in X )
V.L.Pos1Y = 10 ( first drill position in Y )
V.L.Pos2X = 10 ( second drill position in X )
V.L.Pos2Y = 10 ( second drill position in Y )
V.L.Pos3X = 10 ( third drill position in X )
V.L.Pos3Y = 0 ( third drill position in Y )
; input parameters for drilling cycle:
V.L.SurfacePosition = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 20 ( Z position of retraction plane )
V.L.SafetyClearance = 2 ( relative value of safety clearance in Z )
V.L.DrillingDepth = 30 ( depth )
V.L.NumberOfFeeds = 3 ( number of feeds )
V.L.MachiningMode = 2 ( machining mode )
V.L.ReturnClearance = 0.5 ( return clearance for chip breaking/evacuation )
#ENDVAR
T2 D2 ( Tool data )
M6 ( Tool change )
G17 G90 G54 F800 M03 S1000 ( Technology data )
G00 Z100 ( Go to z start position )
L CYCLE [NAME=SysDrillPatternArbitrary.ecy \
; drill parameter of SysDrillDeepHole.ecy:
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DrillingDepth \
@P11 = V.L.NumberOfFeeds \
@P31 = V.L.MachiningMode \
@P61 = V.L.ReturnClearance \
; pattern parameter and ref cycle:
@P100 = "SysDrillDeepHole" \
@P101 = V.L.Pos1X \
@P102 = V.L.Pos1Y \
@P103 = V.L.Pos2X \
@P104 = V.L.Pos2Y \
@P105 = V.L.Pos3X \
@P106 = V.L.Pos3Y \
]
G00 Z200 M5 ( Final position, stop of spindle )
M30