pennells Posted May 1, 2013 Share Posted May 1, 2013 We have a rather specialized type of SSI encoder which have an extra most-significant bit that specifies the health of the encoder information (IE 18-bit encoder that sends 19 bits of data with the MSB as a health signal). Is there a way to use the encoder information directly in the encoder table while masking off the extra MSB so that the information is correct. I figure that I can read that bit directly from the ACC24E3 data structure but I figure that the extra bit will mess the EncTable reading up when it wraps around. I tried sett the type to 1 and using index2 (right-shift) {13} and index1 (left-shift) {14} to get rid of the MSB but that doesn't appear to work--if the MSB gets set, the position data goes to some small negative value regardless of the other bits. Any ideas of a possible solution? Link to comment Share on other sites More sharing options...
Richard Naddaf Posted May 1, 2013 Share Posted May 1, 2013 Yes, you should be able to mask it properly. This is a common procedure. Try shifting only left 14 bits (index1) and setting EncTable[x].ScaleFactor=1/exp2(14). Link to comment Share on other sites More sharing options...
pennells Posted May 17, 2013 Author Share Posted May 17, 2013 Finally, got this specialized encoder and your solution worked perfectly, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts