- Posts: 17524
- Thank you received: 0
Guidance Needed! Initial LinuxCNC/PncConf setup
3 years 8 months ago #265059
by PCW
Replied by PCW on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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.
[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.
3 years 8 months ago #265060
by Sray69
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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.
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.
3 years 8 months ago #265061
by Sray69
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000
I am changing the period to 2000000 and testing.
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
Here is my current Servo Thread RateThe 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.
[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.
3 years 8 months ago #265062
by Sray69
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
That appears to have stopped the error.
Thanks for the assist!
Thanks for the assist!
Please Log in to join the conversation.
3 years 8 months ago #265067
by 0x2102
Replied by 0x2102 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
Can you run a LinuxCNC Latency test and post the picture/results here.
It's under the Applications Menu -> CNC -> Latency Test.
It's under the Applications Menu -> CNC -> Latency Test.
Please Log in to join the conversation.
3 years 8 months ago #265068
by PCW
Replied by PCW on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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)
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.
3 years 8 months ago #265078
by Sray69
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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
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.
3 years 8 months ago #265081
by PCW
Replied by PCW on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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?
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.
3 years 8 months ago #265134
by Sray69
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
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.
Attachment not found
I think it looks better than the previous one.
Please Log in to join the conversation.
Time to create page: 0.249 seconds
