On 17 May 2018 at 17:05, Jon Elson <el...@pico-systems.com> wrote:

> So, a component needs to set the encoder-index to true, and then watch for
> it to go false.  When it sees the encoder-index go false, if does the
> subtraction and stores the difference in a net.  It then turns the
> index-enable back to true.

I think that needs three states.

The software encoder has "latch" inputs and outputs, possibly for this
purpose (they exist but the docs say nothing:
http://linuxcnc.org/docs/2.7/html/man/man9/encoder.9.html


The Mesa encoder goes one step further, the latch inputs and outputs
are created but not even documented:
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/drivers/mesa-hostmot2/encoder.c#L461

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

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