Guidance Needed! Initial LinuxCNC/PncConf setup

More
3 years 8 months ago #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.

Please Log in to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #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 to join the conversation.

More
3 years 8 months ago #265062 by Sray69
That appears to have stopped the error.

Thanks for the assist!

Please Log in to join the conversation.

More
3 years 8 months ago #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.

Please Log in to join the conversation.

More
3 years 8 months ago #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)

Please Log in to join the conversation.

More
3 years 8 months ago #265078 by Sray69
I ran the following:
sudo chrt 99 ping -i .001 -q 10.10.10.10

Result:
 

Attachment not found



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

Result:
 

Attachment not found



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

Please Log in to join the conversation.

More
3 years 8 months ago #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?

Please Log in to join the conversation.

More
3 years 8 months ago #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.

 

Attachment not found



I think it looks better than the previous one.

Please Log in to join the conversation.

More
3 years 8 months ago #265138 by PCW
Better but still pretty bad (6.5 ms)

How is the latency test?

Please Log in to join the conversation.

Time to create page: 0.249 seconds
Powered by Kunena Forum