On Thursday 14 November 2019 09:24:36 andy pugh wrote:

> On Thu, 14 Nov 2019 at 13:45, Gene Heskett <[email protected]> 
wrote:
> >     if s.program_units() == 1:
> > TypeError: 'int' object is not callable
>
> Try removing the brackets.

brackets? as in [], no,  removed those (parenthesis) visible above. Now 
can find units.g20 and units.g21 with a hal meter and they are correct.  
And after homing the machine, they work as advertised with a tolerable 
time lag.

Now, to translate the z overtrvl as calculated from the overtravel turns 
* tpi or tpmm, do some logic driven ( times 1 or 25.4 by this signal and 
present it to the ovrtrvl dist display in the postgui stuff.

Interestingly the original jessie based install on the pi3 had a units 
module, and I had all this working a year ago on the jessie install, yet 
no one questioned ever heard of a units module but me way back then.  
This really needs to be hal_compiled and made a loadrt/addf-able module.  
That might take quite a few less ns cpu time then. OTOH, a 1 sec refresh 
is likely quite a few less ns/second that an addf'd module would be even 
if only run in the  much slower jog-thread.  So the fraction of a second 
lag is not a huge gotcha for this particular function

But since that involves more than homing the machine sight unseen, I'd 
better dress and goto the machine & see if I have what it takes to mount 
that 40lb chuck for testing.  With my ticker only pumping about 30% 
because of that worn valve, thats probably going to be open for 
discussion.

Looking at my test exercise gcode from back then, I see I've hard 
converted what I send to hal (and the postgui stuffs) via this gcode 
statement:M68EOQ0.050 for a 20 tpi test thread, so I need to work on 
that too, so that is src'd only from the #<_tpi> (or #<_tpmm>, which 
ever exists and is a non-zero) value.

Sometimes its quite a ways from concept to working everyday code.
The arrival of a piece of junk called a 6040 distracted me.  Bad dog, no 
biscuit. Its now taken me a year to make it useful, the electronics 
supplied are junk. Then came the rpi4 announcement along with busters 
much improved video speeds.  Oh look, a new pony! Then the heart attack 
and things have slowed even more.

This makes twice the grim reaper has come for me, and twice he's blinked. 

I also have all my taps up to 12mm mounted in brass tap-hats, with a 7/8" 
od, and need to make a lathe tool holder they will also fit in. Works 
nice in the g0704 in a modified 7/8" R8, it has a cutout in one edge to 
fit a 4mm cap screw head to assure zero slippage. But the g0704, even 
with around 2hp available, doesn't quite have enough Cajones to do that 
without a lot of pecking that equals sloppy threads because the @%&# 
post is crooked... And even low gear needs to be quite a bit lower.
I need to make a gauge to measure how far and which direction more 
precisely than my results show.

They are supposed to put a new aortic valve in on Dec 11, and that should 
restore some of my giddyup.

> I did say that it was an untested off-the-cuff idea.

Well, now its been tested. And works. ;-) Edit as noted and commit 
please.

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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to