Advertisement
Guest User

pulley135

a guest
Dec 14th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. o103 sub
  2. (bores 8mm hole clockwise)
  3.  
  4.  
  5. #5 = 7.2 (bore diameter - tool diameter)
  6.  
  7. #3 = 5.0 (safety height)
  8. #7 = 0.5 (depth per cut)
  9. #8 = 0.0 (start depth)
  10. #4 = -6.5 (end depth)
  11.  
  12. g0 x#1 y[#2+[#5/2]] z#3
  13.  
  14. o113 while [#8 GT #4]
  15. (down toward the specified depth a bit at a time)
  16. g2 x#1 y[#2 + [#5 / 2]] i0 j[0 - [#5 / 2]] z#8
  17. #8=[#8 - #7]
  18.  
  19. o113 endwhile
  20.  
  21. (down to the actual depth)
  22. g2 x#1 y[#2 + [#5 / 2]] i0 j[0 - [#5 / 2]] z#4
  23. (full circle at the actual depth)
  24. g2 x#1 y[#2 + [#5 / 2]] i0 j[0 - [#5 / 2]]
  25. g0 z#3
  26.  
  27.  
  28. o103 endsub
  29.  
  30.  
  31.  
  32. o190 sub
  33. (drill pilot hole for hub screw)
  34.  
  35. g0 x#1 y#2 z5.0
  36.  
  37. g1 z-1
  38. g0 z1
  39. g1 z-2
  40. g0 z1
  41. g1 z-6.5
  42. g0 z5
  43.  
  44. o190 endsub
  45.  
  46.  
  47.  
  48. o200 sub
  49. (drill 135 holes for pulley teeth)
  50.  
  51. g0 z5
  52.  
  53. #8= 0.0
  54. #9= 60.0 (working radius - 0.6)
  55.  
  56. o210 while [#8 LT 360.0]
  57.  
  58. g0 x[SIN[#8] * #9] y[COS[#8] * #9]
  59.  
  60. g1 z-1
  61. g0 z1
  62. g1 z-3
  63. g0 z1
  64. g1 z-6.5
  65. g0 z2
  66.  
  67. #8=[#8 + [135/360]]
  68.  
  69. o210 endwhile
  70.  
  71. o200 endsub
  72.  
  73.  
  74. (main Program)
  75.  
  76. g40 F200
  77.  
  78. o103 call [0] [0]
  79. o190 call [-10.825318] [-6.25]
  80. o190 call [10.825318] [-6.25]
  81. o190 call [0] [12.5]
  82. o200 call
  83.  
  84. g0 x0 y61.048
  85. #8 = 0
  86.  
  87. o300 while [#8 gt -6.5]
  88.  
  89. g3 x0 y61.048 j0 z#8
  90.  
  91. #8 = [#8-0.5]
  92. o300 endwhile
  93.  
  94. g3 x0 y61.048 j0
  95.  
  96. g0 z10
  97.  
  98. M30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement