Programmierbeispiel

Dieses Beispiel beschreibt das Bohren entlang eines Kreismusters am Beispiel des Zyklus "SysDrillDeepHole".

#VAR
  ; input parameters for pattern
  ; RefCycle = "SysDrillDeepHole"
  V.L.NumPoints       = 6    ( number of points )
  V.L.Radius          = 30   ( circle radius )
 
  ; 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    ( amount of feeds )
  V.L.MachiningMode   = 2    ( machining mode )
  V.L.ReturnClearance = 0.5  ( return clearance for chip breaking/evac.)
#ENDVAR
 
T2 D2                        ( Tool data )
M6                           ( Tool change )
 
G17 G90 G54 F800 M03 S1000   ( Technology data )
 
G00 Z100                     ( Go to z start position )
G00 X0 Y0                    ( 1. drilling position )
 
L CYCLE [NAME=SysDrillPatternCircle.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"                 \
  @P107 = V.L.NumPoints                     \
  @P111 = V.L.Radius                        \
  ]
 
G00 Z200 M5                  ( Final position, stop of spindle )
 
M30