Kirk Wallace wrote:

>[snip]
>
>>here's one homemade encoder: http://www.qsl.net/oe5jfl/encoder.htm
>>    
>>
>
>I'll study this. I'm not sure how gray code is better. I can use HAL's
>CONV_BIT_U32 to input the five bits to a tool number. I would need to
>create a new HAL component to convert the five gray code bits, which is
>not a big deal, but is an issue that will need to be addressed.
>  
>
CONV_BIT_U32 turns a bit into a U32 with either 0 or 1 value.  It 
doesn't convert multiple bits into a single int.

To do that, you need to use weighted_sum.
There is no gray code converter at the moment, though it should be 
pretty easy to write one.

- Steve


------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to