MESA 7i76e and 7i85 setup Encoder 01 and 02

More
21 Sep 2019 14:20 #145750 by Aciera
I would like to setup my retrofit with 3 linear encoders. I've been able to setup one encoder for the X-axis by activating the encoder in the Pncconf-Wizard on the 7i76e tab. This gives me Encoder.00 in the X-Axis section in the HAL file. I wire the encoder to the Encoder Channel 0 on the 7i85 and everything works fine for the x-axis.
Then I try to do the same for the Y-axis but I cannot add another encoder in the 7i76e in the Pncconf-Wizard and adding it directly to the HAL gives an error: "hm2_7i76e.0.encoder.01.index-enable" does not exist.

How do I configure the system with all three encoders?

All hints are very much appreciated.

David

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 14:30 #145752 by PCW
Are you using firmware that supports a 7I85?

7i76e_7i76x1_7i85x1D.bit for 7I76E with 1 7I85

7i76e_7i76x1_7i85sx1D.bit for 7I76R with 1 7I85S

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 15:42 #145756 by Aciera
Yes. I flashed 7i76e_7i76x1_7i85x1D.bit and --readhmid gives me for P1 Pins 7 to13 the MuxSel0 - MUXQ-IDX.
Now I've read that I can't mix "Encoders" and "Muxed Encoders" so should I remove the Encoder in the Pncconf?

Thanks
David

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 15:51 - 21 Sep 2019 15:52 #145758 by PCW
The muxed vs non-muxed is not an issue, they are treated the same in hal and by the driver
Did you set the number of encoders in the driver command line?
( num_encoders=4 for example )
Last edit: 21 Sep 2019 15:52 by PCW.

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 16:05 - 21 Sep 2019 16:05 #145760 by Aciera
No. I did not set the number of encoders in the driver command line.
How do I do that?

David
Last edit: 21 Sep 2019 16:05 by Aciera.

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 16:13 #145761 by PCW
There should be a line near the top of a pncconf created hal file with a line something like:

loadrt hm2_eth board_ip=xx.xx.xx.xx config=" num_encoders=1 num_stepgens=5"

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 17:04 #145767 by Aciera
OK. That worked out!

Thank you!

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.182 seconds
Powered by Kunena Forum