On Tue, 4 Feb 2020 at 21:25, Todd Zuercher <[email protected]> wrote:
> To deal with probe tip, probe the perimeter, connect the dots, then just
> offset the shape you made with the probe's tip radius.
That works a treat once the points are in the CAD.
And here is the G-code routine I used.
;probe a profile
;the routine will initially probe in negative Y and will walk around
the profile clockwise
;but can follow a re-entrant shape
#1 = 0 (explore angle)
#2 = #<_X> (start positions)
#3 = #<_Y>
#4 = 3 (step size)
#5 = 0.5 (retract on sucessful probe)
(AXIS,stop)
(LOGOPEN,profile1.txt)
O100 WHILE [#<_flood> EQ 0] (use the flood button to stop and save data)
G38.3 F100 X[#2 + #4 * COS[#1 - 90]] Y[#3 + #4 * SIN[#1 - 90]]
O101 IF [#5070 EQ 1]
G38.5 F20 X#2 Y#3 (slow probe away, store point)
(LOG, #5061 #5062)
#2 = [#5061 + #5 * COS[#1 + 90]]
#3 = [#5062 + #5 * SIN[#1 + 90]]
G0 X#2 Y#3 (1mm back along probe track)
O102 DO
G38.5 F500 X#2 Y#3
G38.3 F500 X[#2 + #4 * COS[#1]] Y[#3 + #4 * SIN[#1]]
O103 IF [#5070 EQ 1]
#1 = [#1 + 15]
O103 ENDIF
O102 WHILE [#5070 EQ 1]
#2 = #<_X>
#3 = #<_Y>
O101 ELSE
(missed, so now start a clockwise polygon looking for the edge)
#1 = [#1 - 15]
O101 ENDIF
O100 ENDWHILE
(LOGCLOSE)
M2
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users