Programmierbeispiel
Programmierbeispiel
Konturtasche fräsen
Dieses Beispiel behandelt das Fräsen einer im NC-Programm definierten Konturtasche. Es ergibt sich folgender Zyklusaufruf:
T8 D8 ( Tool data )
M6 ( Tool change )
G90 G54 M03 S6000 F5000 ( Technology data )
G00 Z100 ( Go to z start position )
G00 X0 Y0 ( Go to start position )
#VAR
V.L.SurfacePosition = 0 ( Z-Position of workpiece surface )
V.L.RetractionPlane = 100 ( Z-Position of retraction plane )
V.L.SafetyClearance = 5 ( relative value of safety clearance )
V.L.DepthOfPocket = 20 ( depth of pocket )
V.L.MaxIncrementZ = V.L.DepthOfPocket / 2 ( maximal infeed in Z )
V.L.MaxIncrementXY = V.G.WZ_AKT.R*0.9 ( maximal infeed in XY )
V.L.FeedRateZ = 150 ( plunging feedrate )
V.L.MachiningMode = 1 ( roughing )
V.L.ContourID = 1 (Idendification number pocket contour)
#ENDVAR
; contour definition:
#CONTOUR BEGIN[ID = 1]
G1 G90 X90 Y20
G1 G91 Y40
G1 G91 X-20
G1 G90 X50 Y80
G1 X30 Y60
G161 G03 X30 Y20 I30 J40
G1 X90
#CONTOUR END
G0 ZV.L.RetractionPlane
; polynomial contouring for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]
G261
L CYCLE [NAME = SysMillContourPocket.ecy \
@P1 = V.L.SurfacePosition \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P4 = V.L.DepthOfPocket \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P21 = V.L.FeedRateZ \
@P31 = V.L.MachiningMode \
@P50 = V.L.ContourID \
]
G260
M30