Programmierbeispiel

Programmierbeispiel

Bahnfräsen

Dieses Beispiel behandelt das Bahnfräsen eines im NC-Programm definierten Konturpfads.

Dabei ist eine linksseitige Werkzeugradiuskorrektur definiert. Es wurde zudem ein Viertelkreis als Anfahrtsbewegung definiert, über welchem das Werkzeug während dem Anfahren in Z zugestellt wird.

 
T12 D12                     ( Tool data )
M6                          ( Tool change )
G90 G54 S6000 M03 F5000     ( Technology data )
 
#VAR
  V.L.SurfacePosition = 0   ( Z-Position of workpiece surface )
  V.L.RetractionPlane = 10  ( Z-Position of retraction plane )
  V.L.SafetyClearance = 10  ( relative value of safety clearance )
  V.L.Depth           = 20  ( depth of path milling )
  V.L.MaxIncrementZ   = V.L.Depth/2   ( maximal infeed in Z )
  V.L.FeedRateZ       = 100 ( plunging feedrate in Z )
  V.L.PlungingModeZ   = 1   ( plunging during approaching )
  V.L.TrcMode         = 2   ( trc on left side )
  V.L.ApprRad         = 10  ( approaching with radius 10 )
  V.L.ContourID       = 1   ( 50 Idendification number pocket contour )
#ENDVAR
 
; contour definition:
#CONTOUR BEGIN[ID = 1]
G1 G90 X25 Y25  (start point)
G1 G91 X50
G302 I12.5
G1 G91 Y50
G301 I12.5 J12.5
G1 G91 X50
G02 G91 X25 Y-25 I0 J-25
#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 = SysMillContourPath.ecy  \
    @P1  = V.L.SurfacePosition          \
    @P2  = V.L.RetractionPlane          \
    @P3  = V.L.SafetyClearance          \
    @P4  = V.L.Depth                    \
    @P5  = V.L.MaxIncrementZ            \
    @P21 = V.L.FeedRateZ                \
    @P31 = "Roughing"                   \
    @P32 = V.L.PlungingModeZ            \
    @P75 = V.L.TrcMode                  \
    @P90 = "MotionLinear"               \
    @P91 = V.L.ApprRad                  \
    @P50 = V.L.ContourID                \
    ]
 
G260
M30