Advertisement
Guest User

Untitled

a guest
Sep 4th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. (info: Normal Drilling)
  2. o<drill>sub
  3. #<Z_StartOfCut> = #1 (=0.100 Z Start of Cut)
  4. #<Z_EndOfCut> = #2 (Z End of Cut)
  5. #<FeedRate> = #3 (Feed IPM)
  6. #<Spindle_RPM> = #4 (Spindle RPM)
  7. #<ToolNumber> = #5 (Tool Number)
  8. #<Coolant> = #6 (=8 Coolant 8 On 9 Off)
  9. #<Cycle> = #7 (=0 0=G81 1=G83)
  10. #<Peck> = #8 (=0 Peck Increment)
  11.  
  12. G17 G20 G40 G61 G80
  13. T#<ToolNumber> M6
  14. G43 G7
  15.  
  16. ; Drill the hole
  17. S#<Spindle_RPM> M3 M#<Coolant> F#<FeedRate>
  18. o110 if [#<Cycle> EQ 0]
  19. G81 X0.000 Z#<Z_EndOfCut> R#<Z_StartOfCut>
  20. o110 else
  21. G83 X0.000 Z#<Z_EndOfCut> R#<Z_StartOfCut> Q#<Peck>
  22. o110 endif
  23. M5 M9
  24. G53 G0 X0 Z0
  25. o<drill>endsub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement