On Monday 17 April 2017 05:09:47 Niemand Sonst wrote:

> Am 15.04.2017 um 16:03 schrieb Gene Heskett:
> > Greetings everybody;
> >
> > I think I asked about this once before, but do not recall getting an
> > answer I could use, so asking again.
> >
> > My jog wheel code currently has no way to switch between inches and
> > mm's, either for the motion stepsize, or for the displayed step
> > size.  So I need a pair of pins exposed that tally the G20-G21
> > status, to be used as a step size modifier, and a pin from the view
> > mode tallying whether the backplot dro is in mm's or inches.
> >
> > I would use the G20-21 tally to change the step size to mm's, and
> > the view tally to change the size of step display.
> >
> > If those pins can be exposed for my use, it would solve the last
> > problem, that of needing to maintain 2 configs whose only difference
> > would be a a pair of setp statements. That doesn't strike me as
> > being a long term viable solution.
> >
> > Can this be done, or is it hidden in the #5xxx data and I've not
> > found it?
> >
> > Cheers, Gene Heskett
>
> Hallo Gene,
>
>
> have you looked at the code of combi_dro.py?
>
Not till now. And it generates a nice 4 axis dro on the r-pi. But 500+ 
loc when all I need are two halpins supplying a true/false? I don't need 
the display, just the status.  And there's no one on this list, 
including me that thinks I am a python guru.
 
> I use a timer to update the information about coordinate systems and
> used unints.
>
> It should be easy to add a hal pin and convert that code to be a user
> comp.

Stripped of the gui stuff, slimmed down to just the X & Z queries, with 2 
output halpins, it may be something I could add to the jog-thread, 
currently running at 100hz.  But I doubt if I am the one to do it.

> Norbert
>
>
> ----------------------------------------------------------------------
>-------- 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


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