Guidance Needed! Initial LinuxCNC/PncConf setup
22 Feb 2023 19:44 #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.
The following user(s) said Thank You: Sray69
Please Log in or Create an account to join the conversation.
22 Feb 2023 19:45 #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 or Create an account to join the conversation.
22 Feb 2023 19:53 #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 or Create an account to join the conversation.
22 Feb 2023 19:58 #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 or Create an account to join the conversation.
22 Feb 2023 20:42 #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.
The following user(s) said Thank You: Sray69
Please Log in or Create an account to join the conversation.
22 Feb 2023 21:12 #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)
The following user(s) said Thank You: Sray69
Please Log in or Create an account to join the conversation.
23 Feb 2023 00:17 - 23 Feb 2023 00:18 #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:
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.
23 Feb 2023 01:09 #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?
The following user(s) said Thank You: Sray69
Please Log in or Create an account to join the conversation.
23 Feb 2023 18:28 #265134
by Sray69
Replied by Sray69 on topic Guidance Needed! Initial LinuxCNC/PncConf setup
Attachments:
Please Log in or Create an account to join the conversation.
23 Feb 2023 19:21 #265138
by PCW
Replied by PCW on topic Guidance Needed! Initial LinuxCNC/PncConf setup
Better but still pretty bad (6.5 ms)
How is the latency test?
How is the latency test?
The following user(s) said Thank You: Sray69
Please Log in or Create an account to join the conversation.
Time to create page: 0.238 seconds