On Sunday 13 May 2018 12:24:50 Gene Heskett wrote:

> On Sunday 13 May 2018 11:08:13 andy pugh wrote:
> > On 13 May 2018 at 14:21, Gene Heskett <[email protected]> wrote:
> > > how do I get a #defined numerical
> > > value into hal to be used as the scale modules .gain input?
> >
> > M67 or M68
>
> Thanks Andy.  Reading up on them now, but are there some usage
> examples in the wiki? I've exercised motion-analog-out-00 but still
> have not managed to feed a #<_var> to m68E0Q, ahh yes, just made it
> work once I got rid of the typu's. Thanks. I can get the rest of it
> from the ini file via the usual methods. This will take a wholesale
> editing session to convert all my rigid tapping .ngc's. But s/b worth
> it in the long view to anyone setup to do rigid tapping.

Ok, made step 1 work, scaling the recorded count by the tpmm. But I need 
now to multiply that by the reciprocal of the encoder scale in effect 
according to the gearshift knob, which should then return the distance 
in mm's.  But I've forgotten how to get the reciprocal out of a mult2! I 
can hard code it, but ought to be able to calculate it so if I ever 
change the [SPINDLE]ENCODER_SCALE, the correction would just cascade 
thru the whole chain.

> One last Q, is this something that is zeroed out by loading a new .ngc
> file that does not contain a #<_tpmm> or #<_tpi> enumeration, or
> should I explicitly zero that m68 as the file is ending, just in front
> of the m2?
>
What I'm considering is writing a couple sub files, one that init's these 
vars for a G33.1, and one to clear them if thats the case. Do the first 
after the files local vars are set, and the 2nd just in front of the M2.

> I just last night, ordered a big bucks worth of SS grub screws for
> this tap hat project. So I should be able to make some more progress
> on that in the next 2 or 3 weeks.
>
> Hopefully this can be put in the wiki under contributed stuffs once
> its working.

Thank you 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>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to