Programmierbeispiel
Programmierbeispiel
Zentrieren und einfaches Bohren
; Centering
#VAR
  ; input parameters:
  V.L.SurfacePosition = 0    ( Z-Position of workpiece surface )
  V.L.RetractionPlane = 20   ( Z-Position of retraction plane )
  V.L.SafetyClearance = 5    ( relative value of safety clearance in Z )
  V.L.CenterDiameter  = 8    ( centering diameter )
  V.L.DrillingDepth   = 25   ( drilling depth )
#ENDVAR
(------------------------------ Centering -----------------------------)
T1 D1                        ( Tool data )
M6                           ( Tool change )
G90 G54 F250 M03 S400        ( Technology data )
G00 ZV.L.RetractionPlane     ( Go to Z start position )
G00 X20 Y20                  ( 1. drilling position )
L CYCLE [NAME=SysDrillCenterHole.ecy  \
  @P1  = V.L.SurfacePosition          \
  @P2  = V.L.RetractionPlane          \
  @P3  = V.L.SafetyClearance          \
  @P68 = V.L.CenterDiameter           \
  ]
G00 Z200 M5                  ( Final position, stop of spindle )
(------------------------------ Drilling ------------------------------)
T2 D2                        ( Tool data )
M6                           ( Tool change )
G90 G54 F500 M03 S5000       ( Technology data )
G00 ZV.L.RetractionPlane     ( Go to Z start position )
G00 X20 Y20                  ( 1. drilling position )
L CYCLE [NAME=SysDrillCenterHole.ecy  \
  @P1 = V.L.SurfacePosition           \
  @P2 = V.L.RetractionPlane           \
  @P3 = V.L.SafetyClearance           \
  @P4 = V.L.DrillingDepth             \
  ]
G00 Z200 M5                  ( Final position, stop of spindle )
M30
