SSI encoder
- nhanpham
- Topic Author
- Offline
- Senior Member
- Posts: 77
- Thank you received: 1
However, I received a random encode value.loadrt hm2_eth board_ip="10.10.10.10" config=" num_encoders=0 num_stepgens=6 ssi_chan_0=ENC_ZH%24eENC_SIGN_Z%1b
# set speed
setp hm2_7i80.0.dpll.02.timer-us -300
setp hm2_7i80.0.ssi.00.frequency-khz 125
setp hm2_7i80.0.ssi.00.timer-number 2
setp hm2_7i80.0.ssi.00.ENC_ZH.counts-per-rev 4096
setp hm2_7i80.0.ssi.00.ENC_ZH.scale -32.25
At home position:
When I open the linuxcnc and turn on power, I get the 0 value of encoder.
But sometimes i turn on linuxcn at this position and i get 250 value of encoder.
can you hel me check my config is correctly?
thank you so much
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23162
- Thank you received: 4860
ie, is it _always_ random, or just at startup?
Please Log in or Create an account to join the conversation.
- nhanpham
- Topic Author
- Offline
- Senior Member
- Posts: 77
- Thank you received: 1
thank you so much
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17945
- Thank you received: 4814
(all 4 combinations of swapped CLK+ and CLK- and swapped DATA+and DATA-)
Also its hard to tell from the awful data sheet, but it seems to be a Gray
coded encoder so your format string may not be correct.
Please Log in or Create an account to join the conversation.
- nhanpham
- Topic Author
- Offline
- Senior Member
- Posts: 77
- Thank you received: 1
Thank you for your help.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23162
- Thank you received: 4860
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17945
- Thank you received: 4814
Replacing the "e" with a "g" in the format string will convert the encoders Gray code to binary
Please Log in or Create an account to join the conversation.
- nhanpham
- Topic Author
- Offline
- Senior Member
- Posts: 77
- Thank you received: 1
Yes, this error just happens at startup. After it worked perfectly from the start pos, which it read during startup
thank you
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17945
- Thank you received: 4814
A SSI encoder should always have a valid output
Please Log in or Create an account to join the conversation.
- annhan
- Offline
- New Member
- Posts: 3
- Thank you received: 0
thank you
Please Log in or Create an account to join the conversation.