On Monday 24 August 2015 14:02:58 andy pugh wrote:

> On 24 August 2015 at 18:08, Gene Heskett <[email protected]> wrote:
> > What I want to do is convince the machine it is at 0,0,0, including
> > the dro, without diddling the machines limits as set in the ini
> > file.
>
> It sounds like that is what you have done, if the DRO isn't changing?
>
> Is the hole-finder meant to automatically zero the active coordinate
> system? Is that why you are not just using the touch-off buttons?

Yes Andy, I can g38.2 the 4 "corners" of a hole, and calculate the 
center, sometimes repeating, the first moves as a third after the 2nd 
has left it centered in that plane, and get a far more accurate center 
location without exercising the calculator buttons.  On the toy machine, 
repeatability is typically .0004 or less inches.  And it does some Z 
moves I didn't want to do.  I'll take care of that in the code that 
actually bores the hole as the bore is deeper than the tool is long.

But if this doesn't work, I'll have to copy the old code to a new name, 
and excise the z moves not needed here.  Not impossible, but that code 
actually works on a slightly different principal, expecting a cone 
shaped probe profile.  That won't do here.

Here is what I have ATM: But I had to go reboot it, my ssh -Y link died.
And I just reran this code after rebooting and re-homing the machine.

( This is intended to be run to center a bit in an already existing ) 
( hole )
( Run the machine to put the bit in the hole at full depth, but not)
( touching )
( If there is a keyway broached, as in a keyed pulley, place the keyway )
( 45 degrees away from the contact points at 0, 90, 180, and 270 )
( degrees )
G17 G21 
( zero to present co-ords )
G10 L2 P1 X0.00000 y0.00000 z0.00000 ( leave machine homed!!!! )
G0 x-20.599 (center x on hole )
G0 Y-41.781 (center y on hole )
# this was painfully slow. :(
G1 F30 Z-163.5 (watch, should put bit just beyond bottom of hole )
G54 (restore to default co-ords mapping)
G10 L2 P2 x0.0000000 y0.0000000 z0.00000000 ( Z shouldn't be moved till 
done here )
S100 M4 ( start spindle in slow reverse so hopefully it will not cut )
G55 ( switch maps to the P2 settings done above )
G4 P5 ( pause to read dro )
G56 ( switch to another map )
G4 P5 ( pause to read dro )
M5 ( stop spindle )
M2
%

No effect other than the spindle starting, running for 10 seconds, and 
stopping.

Thanks Andy.

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)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to