Advertisement
Guest User

Untitled

a guest
Jul 27th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. (ngcgui: FEATURE 150727:14.08.25)
  2. (ngcgui: files: < /home/tom/linuxcnc/nc_files/tap.ngc >)
  3. (ngcgui: feature line added) #<_feature:> = 0
  4. (Positional parameters for /home/tom/linuxcnc/nc_files/tap.ngc:)
  5. #1 = 1
  6. #2 = 1.25
  7. #3 = 1
  8. #4 = -10
  9. #5 = 275
  10. #6 = 4
  11. #7 = 9
  12. (expanded file: /home/tom/linuxcnc/nc_files/tap.ngc)
  13. (info: Rigid Tapping)
  14. #<thread-type> = #1 (=0 0=TPI 1=MM)
  15. #<thread> = #2 (TPI/Pitch)
  16. #<Z_Start> = #3 (=0.100 Z Clearance)
  17. #<T_Depth> = #4 (End of Thread)
  18. #<RPM> = #5 (Spindle RPM)
  19. #<ToolNumber> = #6 (Tool Number)
  20. #<Coolant> = #7 (=8 Coolant 8 On 9 Off)
  21. G7 G17 G20 G40 G80
  22. T#<ToolNumber> M6 G43
  23. o<053o110> if [#<thread-type> EQ 0]
  24. #<pitch> = [1 / #<thread>]
  25. G20
  26. o<053o110> else
  27. #<pitch> = #<thread>
  28. G21
  29. o<053o110> endif
  30. ; Tap the Hole
  31. o<053o120> if [#<thread-type> EQ 0 OR #<thread-type> EQ 1]
  32. S#<RPM> M3 M#<Coolant>
  33. G0 X0.000 Z#<Z_Start>
  34. G33.1 X0.000 Z#<T_Depth> K#<pitch>
  35. M5 M9
  36. G53 G0 X0 Z0
  37. o<053o120> else
  38. (msg, you dufus you didn't use a proper thread type)
  39. o<053o120> endif
  40. ; Restore to normal units
  41. G20
  42. (ngcgui: m2 line added) m2 (g54 activated)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement