Encoder improvements for THCAD

More
23 May 2020 03:04 - 23 May 2020 03:56 #168640 by PCW
LinuxCNC master has a minor change in the encoder driver code to improve frequency
measurement resolution, This will improve the noise performance of the THCAD
somewhat so is worthwhile enabling. What changed was the timestamp frequency
that is used for encoder velocity/frequency calculations. This was set to nominally
1 MHz before the change. This default frequency has been increased to 2 MHz and
now has an option allowing a 10 MHz frequency to be selected. To select a 10 MHz
timestamp frequency, you set the hm2_card.0.encoder.hires-timestamp pin "true"
Last edit: 23 May 2020 03:56 by PCW.
The following user(s) said Thank You: chimeno, tommylight, rodw, thefabricator03, dvn4life1972

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

More
23 May 2020 03:16 #168643 by rodw
Replied by rodw on topic Encoder improvements for THCAD
Thansk Peter. So users of master branch chould enable the 10 Mhz setting for best performance? I take it this specific to mesa hardware and the hostmod2 driver?

Sounds like this will be useful fo those cheaper plasma cutteres wher ethe arc voltage signal is quite noisy.

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

More
23 May 2020 03:58 #168647 by PCW
Replied by PCW on topic Encoder improvements for THCAD
Yes, this is HostMot2 specific, and actually the difference will be most apparent
where the signal is cleanest.
The following user(s) said Thank You: Clive S, rodw, thefabricator03

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

More
23 May 2020 08:53 #168664 by tommylight
Nice timing, as i might get finally today or tomorrow my 4 THCAD's ! :)
The following user(s) said Thank You: thefabricator03

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

More
24 Jun 2020 18:21 #172606 by snowgoer540
So to enable this, all I have to do is change hm2_card.0.encoder.hires-timestamp to true?

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

More
24 Jun 2020 18:51 #172613 by tommylight
Yup, that is it.
Have not tested it yet, so will do that promptly ... just as soon as i finish adjusting some drag chains on both machines. :)

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

More
24 Jun 2020 19:23 #172617 by tommylight
Enabled it and now there is no encoder velocity ? Instead of velocity and voltage i get "inf" .

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

More
24 Jun 2020 20:11 #172626 by PCW
Replied by PCW on topic Encoder improvements for THCAD
What hardware and servo thread rate do you have?

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

More
24 Jun 2020 20:12 #172627 by tommylight
Mesa 7i92, servo at 1ms.

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

More
24 Jun 2020 20:31 #172631 by PCW
Replied by PCW on topic Encoder improvements for THCAD
Hmm I can't duplicate this with a 7I92 and a 1 ms servo thread (or 7i96 or 7I76E)

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

Time to create page: 0.096 seconds
Powered by Kunena Forum