Guidance Needed! Initial LinuxCNC/PncConf setup

More
22 Feb 2023 19:44 #265059 by PCW
The servo thread rate can be set with pncconf or editing the .ini file:

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000 <<<<<<<<<<<<<< 1000000 ns = 1 ms = 1KHz servo thread

With the known poor Debian kernel you may have to increase the period to 2 ms
to avoid timeouts and subsequent loss of communication.
The following user(s) said Thank You: Sray69

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

More
22 Feb 2023 19:45 #265060 by Sray69
So I reset my NetworkManager to see if that would reset the Mesa card (get rid of the amber light). After resetting NetworkManager I opened LCNC and noticed the amber light went out and the 4 green lights came on.

But within 30 seconds the amber light came on again and I got the same error message in LCNC. I had not done anything yet.

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

More
22 Feb 2023 19:53 #265061 by Sray69

The servo thread rate can be set with pncconf or editing the .ini file:

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000 <<<<<<<<<<<<<< 1000000 ns = 1 ms = 1KHz servo thread

With the known poor Debian kernel you may have to increase the period to 2 ms
to avoid timeouts and subsequent loss of communication.

Here is my current Servo Thread Rate

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000

I am changing the period to 2000000 and testing.

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

More
22 Feb 2023 19:58 #265062 by Sray69
That appears to have stopped the error.

Thanks for the assist!

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

More
22 Feb 2023 20:42 #265067 by 0x2102
Can you run a LinuxCNC Latency test and post the picture/results here.

It's under the Applications Menu -> CNC -> Latency Test.
The following user(s) said Thank You: Sray69

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

More
22 Feb 2023 21:12 #265068 by PCW
For testing network latency, you can try this:

sudo chrt 99 ping -i .001 -q [card_ip_address]

And run it for an hour or so while doing normal things on the computer.
(you stop it with control C)
The following user(s) said Thank You: Sray69

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

More
23 Feb 2023 00:17 - 23 Feb 2023 00:18 #265078 by Sray69
I ran the following:
sudo chrt 99 ping -i .001 -q 10.10.10.10

Result:
 

I also ran:
latency-histogram --nobase --sbinsize 5000

Result:
 

Both of these tests ran for an hour at the same time. I also ran one instance of GLXGears and a web browser with like 20 tabs open (but no internet).

I also want to mention that I am still getting the same error as mentioned previously when I am in LCNC and I click the "Toggle Machine Power [F2]" button. The amber light comes on after about 30 seconds or so of clicking the button.
Thanks
Attachments:
Last edit: 23 Feb 2023 00:18 by Sray69.

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

More
23 Feb 2023 01:09 #265081 by PCW
Yeah that's not unexpected with almost 15 ms peak on ping

Do you have all power management, CPU speed
modulation (cool and Quiet turbo modes etc) disabled in the BIOS?
The following user(s) said Thank You: Sray69

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

More
23 Feb 2023 18:28 #265134 by Sray69
I checked my bios and although I had turned everything off previously (when I installed Debian/LCNC like 6 months ago), there appeared to be some things turned back on. I disabled everything again and reran the network latency test by itself.

 

I think it looks better than the previous one.
Attachments:

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

More
23 Feb 2023 19:21 #265138 by PCW
Better but still pretty bad (6.5 ms)

How is the latency test?
The following user(s) said Thank You: Sray69

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

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