Programmierbeispiel

Programmierbeispiel

Konturzapfen fräsen

Dieses Beispiel behandelt das Fräsen einer im NC-Programm definierten Rohteilkontur mit einer Inselregion (Zapfen). Es ergibt sich folgender Zyklusaufruf:

 
T20 D20                          ( Tool data )
M6                               ( Tool change )
 
G90 G54 S6000 M03 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 = 10       ( relative value of safety clearance)
  V.L.Depth           = 10       ( depth of pocket )
  V.L.MaxIncrementZ   = V.L.Depth/2       ( maximal infeed in Z )
  V.L.MaxIncrementXY  = V.G.WZ_AKT.R*0.8  ( maximal infeed in XY )
  V.L.FeedRateZ       = 1000     ( plunging feedrate )
  V.L.ContourID       = 1        ( Idendification number raw contour)
  V.L.IsleID1         = 2        ( Idendification number spigot contour)
#ENDVAR
 
; raw contour definition:
#CONTOUR BEGIN[ID = 1]
G1 G90 X0 Y0
G91 X100
G91 Y100
G91 X-100
G91 Y-100
#CONTOUR END
 
; spigot contour definition:
#CONTOUR BEGIN[ID = 2]
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
 
 
; polynomial contouring for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]
G261
 
L CYCLE [NAME = SysMillContourSpigot.ecy  \
    @P1  = V.L.SurfacePosition            \
    @P2  = V.L.RetractionPlane            \
    @P3  = V.L.SafetyClearance            \
    @P4  = V.L.Depth                      \
    @P5  = V.L.MaxIncrementZ              \
    @P6  = V.L.MaxIncrementXY             \
    @P21 = V.L.FeedRateZ                  \
    @P31 = "Roughing"                     \
    @P50 = V.L.ContourID                  \
    @P51 = V.L.IsleID1                    \
    ]
 
G260
M05
M30