Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %
- (place probe aprox center of block)
- (probes the surface then probes in z the #3 distance around the edges.)
- (use at your own risk)
- #1 = 3.95 (max x dim of block)
- #2 = 3.375 (max y dim of block)
- #3 = .3 (z in to measure edge)
- #4 = 1 (tolerance to move bigger than block per side - in case you don't place the probe perfectly in the center)
- G20
- G91 G38.2 F25 Z-0.4
- G90 G0 Z[#5063+0.010]
- G91 G38.2 F0.2 Z-0.020
- G90 G0 Z[#5063+0.2]
- #5 = #5063 (surface of block)
- (probe left side)
- G91 g0 x[0-[#1/2+.75]]
- g90 g0 z[#5-#3]
- G20
- G91 G38.2 F25 X[#4+.5]
- G90 G0 X[#5061-0.010]
- G91 G38.2 F0.2 X+0.020
- G90 G0 X[#5061-0.2+[2.5/25.4]]
- #1000=#5061 (left of block)
- G90 G0 Z[#5+0.2]
- (probe right side)
- g90 g0 x[#1000 + [2.5/25.4] + #1 + #4]
- g90 g0 z[#5-#3]
- G20
- G91 G38.2 F25 X[0-[#4+.5]]
- G90 G0 X[#5061+0.010]
- G91 G38.2 F0.2 X-0.020
- G90 G0 X[#5061+0.2-[2.5/25.4]]
- #1001=#5061 (right of block)
- G90 G0 Z[#5+0.2]
- (goto real center)
- g90 g0 x[#1000+[#1001-#1000]/2]
- (probe top of part)
- g91g0y[#2/2+#4]
- g90 g0 z[#5-#3]
- G20
- G91 G38.2 F25 Y[0-[#4+.5]]
- G90 G0 Y[#5062+0.010]
- G91 G38.2 F0.2 Y-0.020
- G90 G0 Y[#5062+0.2-[2.5/25.4]]
- #1002=#5062 (top of part)
- G90 G0 Z[#5+0.2]
- (probe bottom)
- g90g0y[#1002-[2.5/25.4]-#2-#4]
- g90 g0 z[#5-#3]
- G20
- G91 G38.2 F25 Y[#4+0.5]
- G90 G0 Y[#5062-0.010]
- G91 G38.2 F0.2 Y+0.020
- G90 G0 Y[#5062-0.2+[2.5/25.4]]
- #1003=#5062
- G90 G0 Z[#5+0.2]
- (goto center)
- g90g0y[#1003+[#1002-#1003]/2]
- %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement