Encoder improvements for THCAD
23 May 2020 03:04 - 23 May 2020 03:56 #168640
by PCW
Encoder improvements for THCAD was created 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"
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.
Please Log in or Create an account to join the conversation.
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.
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.
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.
where the signal is cleanest.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
23 May 2020 08:53 #168664
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
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.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2388
- Thank you received: 779
24 Jun 2020 18:21 #172606
by snowgoer540
Replied by snowgoer540 on topic Encoder improvements for THCAD
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
24 Jun 2020 18:51 #172613
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
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.
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
24 Jun 2020 19:23 #172617
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
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.
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
24 Jun 2020 20:12 #172627
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
Mesa 7i92, servo at 1ms.
Please Log in or Create an account to join the conversation.
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.
Moderators: snowgoer540
Time to create page: 0.118 seconds