On Friday 24 February 2017 07:34:16 Ron Bean wrote:

> >What I'd like is a 0.1, 0.2, 0.5, 1.0, 2.0, 5.0 etc gain sequence,
> >extended another decade both directions.
>
> I like this idea a lot, I've been thinking along similar lines. I
> don't understand why every CNC controller uses 10x increments.

To control a mux16 I need a nibble sized 4 lines.

Aha! See man 9 multiswitch and set it for 4 bits wide. That will give the 
4 bits needed to drive a mux16, and the mux16 will have the 1,2.5 value 
sequence set at its inputs. Inputs can be setp'd, but I'd druther setp 
one master value, and scale all the other mux16 inputs from that. Set it 
once per axis in the .ini file. Now, can I put this outside the 
servo-thread loop, so all this is done once only at LCNC launch time?

Given the limited resources of the pi, I would much druther it was kept 
out of the servo loop execution every millisecond and done only at init 
time.  How can I do that? Hmmm, would need a sign bit too for both 
directions... In which case mul the reference by -1.000 and reapply to 
the mux16.  Perhaps a new mpg-thread, running at 10 milliseconds for 
this stuff?

What do you guru's think?

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-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to