Advertisement
Guest User

Untitled

a guest
Nov 29th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. %
  2. (place probe aprox center of block)
  3. (probes the surface then probes in z the #3 distance around the edges.)
  4. (use at your own risk)
  5. #1 = 3.95 (max x dim of block)
  6. #2 = 3.375 (max y dim of block)
  7. #3 = .3 (z in to measure edge)
  8. #4 = 1 (tolerance to move bigger than block per side - in case you don't place the probe perfectly in the center)
  9.  
  10. G20
  11. G91 G38.2 F25 Z-0.4
  12. G90 G0 Z[#5063+0.010]
  13. G91 G38.2 F0.2 Z-0.020
  14. G90 G0 Z[#5063+0.2]
  15. #5 = #5063 (surface of block)
  16.  
  17. (probe left side)
  18. G91 g0 x[0-[#1/2+#4]]
  19. g90 g0 z[#5-#3]
  20.  
  21.  
  22. G20
  23. G91 G38.2 F25 X[#4+.5]
  24. G90 G0 X[#5061-0.010]
  25. G91 G38.2 F0.2 X+0.020
  26. G90 G0 X[#5061-0.2+[2.5/25.4]]
  27. #1000=#5061 (left of block)
  28.  
  29. G90 G0 Z[#5+0.2]
  30.  
  31. (probe right side)
  32.  
  33. g90 g0 x[#1000 + [2.5/25.4] + #1 + #4]
  34. g90 g0 z[#5-#3]
  35.  
  36. G20
  37. G91 G38.2 F25 X[0-[#4+.5]]
  38. G90 G0 X[#5061+0.010]
  39. G91 G38.2 F0.2 X-0.020
  40. G90 G0 X[#5061+0.2-[2.5/25.4]]
  41. #1001=#5061 (right of block)
  42.  
  43. G90 G0 Z[#5+0.2]
  44.  
  45. (goto real center)
  46.  
  47. g90 g0 x[#1000+[#1001-#1000]/2]
  48.  
  49. (probe top of part)
  50.  
  51. g91g0y[#2/2+#4]
  52. g90 g0 z[#5-#3]
  53.  
  54. G20
  55. G91 G38.2 F25 Y[0-[#4+.5]]
  56. G90 G0 Y[#5062+0.010]
  57. G91 G38.2 F0.2 Y-0.020
  58. G90 G0 Y[#5062+0.2-[2.5/25.4]]
  59. #1002=#5062 (top of part)
  60.  
  61. G90 G0 Z[#5+0.2]
  62.  
  63. (probe bottom)
  64. g90g0y[#1002-[2.5/25.4]-#2-#4]
  65. g90 g0 z[#5-#3]
  66.  
  67. G20
  68. G91 G38.2 F25 Y[#4+0.5]
  69. G90 G0 Y[#5062-0.010]
  70. G91 G38.2 F0.2 Y+0.020
  71. G90 G0 Y[#5062-0.2+[2.5/25.4]]
  72. #1003=#5062
  73.  
  74. G90 G0 Z[#5+0.2]
  75.  
  76. (goto center)
  77. g90g0y[#1003+[#1002-#1003]/2]
  78.  
  79.  
  80. %
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement