On Friday 20 November 2020 11:11:16 Jon Elson wrote: > On 11/20/2020 07:40 AM, Gene Heskett wrote: > > Greetings all; > > > > I am rewriting my holefinder routine. I would like to know if a G10 > > L2 axis's R P1 is exactly the same as doing a touch off by mouse for > > system G54? Except for the added R of course. > > > > On the 6040, I have also worked out a 2 pins in parallel method to > > use either an electrical touch probe, or that bit of plastic crap > > that sells for $70 they sell on fleabay for an edge finder. Both > > hooked up at the same time. > > Here is a probing routine I wrote for my Blum touch probe. > It does a double touch in each direction, first a fast touch > and then a slower one for best accuracy > (the 2nd touch is so fast you can't even see it), then it > reports the center and width in both X and Y, and moves to > the center of the hole, and goes a G10 L20 to zero out the X > and Y coordinates there. > The 0.1526 is the radius of the probe ball corrected for the > deflection of the probe it requires to trigger it. > > g91 g1 F10 X-0.05 > g91 G38.2 X0.5 > G91 G1 F1 X-0.02 > g91 G38.2 X0.1 > #1001=#5061 > g91 g1 f10 X-0.05 > g91 G38.2 X-1.0 > G91 G1 F1 X0.02 > g91 G38.2 X-0.1 > #1002=#5061 > #1003=[[#1001+#1002]/2] > #1001=[#1001-#1002+0.1526] > (debug,X center #1003) > (debug,X width #1001) > G90 G1 F10 X#1003 > g91 g1 F10 Y-0.05 > g91 G38.2 Y0.5 > G91 G1 F1 Y-0.02 > g91 G38.2 Y0.1 > #1004=#5062 > g91 g1 f10 Y-0.05 > g91 G38.2 Y-1.0 > G91 G1 F1 Y0.02 > g91 G38.2 Y-0.1 > #1005=#5062 > #1006=[[#1004+#1005]/2] > #1004=[#1004-#1005+0.1526] > (debug,Y center #1006) > (debug,Y width #1004) > G90 G1 F10 Y#1006 > G10 L20 P1 X0 Y0 > M02
Looks good, but the electrical contact of a wire spinning in the collet cancels any runout. You can't spin the fawncy probe because of the attached wires, so that would work only with battery powered, radio equipt probes which I wish I could afford. What it records is of course subject to the wires bent condition, as I usually use a 3" piece of 12 ga romex for a probe tip, but when probing a hole to find the exact center it's a never mind as its the center of the travel that counts, commonly found by (since its assumed you started with z0y0 touched off inside the hole), then a simple left + right addition returns the exact center of the span regardless of the spinning wires wobble as it is describing a perfect circle, ditto for front + rear since one is positive and the other is negative with the addition yielding the exact center of that span to quite a few decimal places. And I see I should be multiplying that result by 0.5000000 to get that final answer. I usually use a * 0.500000 as a / 2.000000 is generally quite a bit slower for a computer. And I've just now found a bug. Ack the docs a (PROBEOPEN filename.txt) is supposed to open a logging file, and I've used it in the past, but now the presence of the lowercase word "open" in the G38.2 comment outputs a missing filename.txt non show stopper error message. IMO it should require the whole UPPERCASE PROBEOPEN and PROBECLOSE to trigger that, reacting to a simple lower case "open" is a bug. Can this be fixed? Running this mornings master on wheezy on the 6040 if that makes a diff. Thanks Jon. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
