Dear community,
I want to implement biss-c for a Renishaw absolute encoder on arduino mega.
here are the datasheet for the encoder:
http://resources.renishaw.com/en/download/data-sheet-resolute-absolute-optical-encoder-with-biss-serial-communications--103093
Of course i found the biss-c protocol datasheet from renishaw:
http://resources.renishaw.com/en/download/data-sheet-biss-c-mode-unidirectional-for-resolute-encoders-recommended--88887
It mention that:
The master controls the timing of position acquisition and the data transmission speed,
and the encoder is the slave. The interface consists of two unidirectional differential pairs of lines:
• “MA” transmits position acquisition requests and timing information (clock) from master to encoder
• “SLO” transfers position data from encoder to master, synchronised to MA.
Based on it, i bought two rs485 module to arduino. One will be the Ma pair, and one the Slo pair.
I tried implement with one rs485 module, to communicate with the encoder, but thats not worked.
(connected Ma +/Slo + together and Ma -/Slo - together) tried to send out 255 and 0 on Serial1 with rs485 output mode and changed to input mode to read out the bits, but its not worked as i thinked.
So, my question is, how can i produce the clock speed with Serial1?
With an USB adapter, and the software added to it (it is an RLS-E201-9s adapter) a 280kHZ frequency, and 2 status bits, 6 CRC bits, 26 data bits i was able to read out the absolute position, but i need to read out, with the arduino because of a controlling mechanism.
This adapter is an rs422 implementation, so thats the reason why i will use two rs485, to implement full-duplex phy level.
One will be the Ma+ and Ma- what is clock + and -.
The other will be the Slo+ and Slo-, what is data + and -.
I want to read out now the 26 bits on Serial2, but maybe i will have another encoder, with 32 bit or other. Thats not problem. If i will produce clock signal, i will able to read out data bytes and manipulate it to an unsigned long. After it will work, i will use the CRC bits too.
Thanks a lot in advance.