Programming example

Programming Example

Drill thread milling

; Drill thread milling
 
#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.DrillingDepth   = 25   ( depth )
  V.L.ThreadPitch     = 1    ( pitch of the thread )
  V.L.CW_OR_CCW       = 0    ( clockwise or counter-clockwise )
  V.L.ThreadDiameter  = 6    ( diameter of the thread )
#ENDVAR
 
 
T5 D5                        ( Act. tool data )
M6                           ( Tool change )
G17 G90 G54 S10000 M03       ( Technology data )
 
G00 Z100                                ( Rapid move to start position z )
G00 X20 Y20 F800             ( start position x y )
 
L CYCLE [NAME=SysDrillThreadMilling.ecy \
    @P1  = V.L.SurfacePosition          \
    @P2  = V.L.RetractionPlane          \
    @P3  = V.L.SafetyClearance          \
    @P4  = V.L.DrillingDepth            \
    @P7  = V.L.ThreadPitch              \
    @P30 = V.L.CW_OR_CCW                \
    @P68 = V.L.ThreadDiameter           \
    ]
 
G00 Z150 M5                  ( Park position )
 
 
M30
Programming example 1:
Programming example: Drill thread milling