Drill

More
24 Jan 2016 16:14 #69053 by BigJohnT
Drill was created by BigJohnT
Drill a hole.
(info: Drill Hole Mill)
o<drill>sub
#<Z_StartOfCut> = #1 (=0.100 Z Start)
#<Z_EndOfCut> = #2 (Z Depth)
#<X_Coord> = #3 (X Coordinate)
#<Y_Coord> = #4 (Y Coordinate)
#<FeedRate> = #5 (Feed IPM)
#<Spindle_RPM> = #6 (=1800 Spindle RPM)
#<ToolNumber> = #7 (=1 Tool Number)
#<Coolant> = #8 (=8 Coolant 8 On 9 Off)
#<Cycle> = #9 (=0 0=G81 1=G83)
#<Peck> = #10 (=0 Peck Increment)
#<X_Park> = #11 (=0 X Park)
#<Y_Park> = #12 (=0 Y Park)

G17 G20 G40 G61 G80
T#<ToolNumber> M6
G43

; Drill the hole
S#<Spindle_RPM> M3 M#<Coolant> F#<FeedRate>
o110 if [#<Cycle> EQ 0]
  G81 X#<X_Coord> Y#<Y_Coord> Z#<Z_EndOfCut> R#<Z_StartOfCut>
o110 else
  G83 X#<X_Coord> Y#<Y_Coord> Z#<Z_EndOfCut> R#<Z_StartOfCut> Q#<Peck>
o110 endif
M5 M9
G53 G0 Z0
G0 X#<X_Park> Y#<Y_Park>
o<drill>endsub

JT

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum