Programming example

Programming Example

Centring and simple drilling

; Centring
#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    ( centring diameter )
  V.L.DrillingDepth   = 25   ( drilling depth )
 
#ENDVAR
 
(------------------------------ Centring -----------------------------)
 
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                  ( 1st 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, spindle stop )
 
(------------------------------ 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                  ( 1st 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, spindle stop )
 
 
M30
Programming example 1:
Programming example for centring and simple drilling