Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #<Major_Dia> = 1.00
  2. #<Minor_Dia> = 0.375
  3. #<Angle> = 30
  4. #<Zstart> = 0.00
  5. #<Tool> = 32
  6. #<SurfaceSpeed> = 1200
  7. #<FeedRate> = 10
  8. #<Max_RPM> = 3000
  9. #<DOC> = 0.02
  10. #<Clearance> = 0.1
  11.  
  12. G40
  13.  
  14. T#<Tool> M6
  15. G43 G7
  16. G97 S2000
  17. G18
  18. (G96 D#<Max_RPM> S#<SurfaceSpeed>)
  19.  
  20. #<ZDOC> = [[#<DOC>] / TAN[#<Angle>]]
  21. #<Zend> = [#<Zstart> - [ [ [#<Major_Dia> - #<Minor_Dia>] / 2 ] / TAN[#<Angle>] ]]
  22. (above is delta D / 2 because we Zend needs to be a function of X travel, which is radius)
  23.  
  24.  
  25. (real quick like, use T33 to draw the outline of the programmed toolpath ie no radius comp)
  26. T33 M6
  27. G43
  28. G0 Z#<Zstart> X#<Major_Dia>
  29. M3 F#<FeedRate>
  30. G1 X#<Minor_Dia> Z#<Zend>
  31. X#<Major_Dia>
  32.  
  33. T#<Tool> M6
  34. G43
  35. ; Raster cut the taper
  36.  
  37. #<Xend> = [#<Minor_Dia>]
  38.  
  39. #3 = #<Clearance>
  40. #2 = [ #<Zstart> ]
  41. #1 = [#<Major_Dia>]
  42.  
  43. M3 F#<FeedRate>
  44.  
  45. O100 DO
  46.  
  47. G0 Z#2 X[#1 + #3]
  48.  
  49. G42
  50.  
  51. G1 X[#1]
  52.  
  53. #1 = [#1 - [2*#<DOC>]] (double the DOC because we're in diameter mode)
  54. #2 = [#2 - #<ZDOC>]
  55.  
  56. O101 IF [#1 lt #<Xend>]
  57.  
  58. (debug,we're under Xend: #<Xend>, 1: #1)
  59.  
  60. #4 = [[2*#<DOC>] - [#<Xend> - #1]]
  61. #5 = [#4 / TAN[#<Angle>]]
  62.  
  63. (debug,4: #4 5: #5)
  64.  
  65. #1 = #<Xend>
  66. #2 = [#2 - #5]
  67.  
  68. O101 ENDIF
  69.  
  70. G1 X[#1] Z[#2]
  71. G40
  72. G1 Z#<Zend>
  73.  
  74.  
  75. G0 X[#1 + #3] Z[#<Zend> + #3]
  76. Z#2
  77.  
  78. O100 WHILE [ #1 gt #<Xend> + [1 * #3] ]
  79.  
  80. M5
  81.  
  82. M2
  83.  
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement