Linuxcnc floods me with errors..

More
16 Mar 2019 16:37 #128752 by vmihalca
Hi guys,
From time to time get some errors due to which I need to restart linuxcnc and redo all the homing routine.
Last time I got these errors...
I am using a Mesa 7i76e so I assume the board does the step generation.
Attachments:

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

More
16 Mar 2019 17:08 #128755 by PCW
This set of errors usually means that there is a latency problem with the host PC
What has happened is that you have a latency error so large (> say 800 usec assuming 1 KHz base thread) that:

1. You get a latency error message
2. the watchdog bites, disabling all I/O pins so you get Sserial errors since the connected device does not respond

I would run the latency test on the servo thread only for at least a few hours to test
the host latency and also do a ping test of the 7I76E
The following user(s) said Thank You: vmihalca

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

More
16 Mar 2019 23:30 #128784 by tommylight
Also what value do you have set in the ini file for servo thread ?
You should leave that at 1000000 ( one milion )

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

More
18 Mar 2019 08:54 #128877 by vmihalca
If you're talking about SERVO_PERIOD than than the value is as you said.
SERVO_PERIOD = 1000000

Here is my config file if you think something else may improve this.
github.com/85vmh/LinuxCncConfigs/blob/ma...gs/SyilX7/SyilX7.ini

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

More
18 Mar 2019 09:26 #128878 by tommylight
That looks all good to me.
The following user(s) said Thank You: vmihalca

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

More
18 Mar 2019 18:53 #128915 by PCW
Have you run a latency test?

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

More
18 Mar 2019 21:06 #128919 by vmihalca
I just did:
Servo Thread: 32000 ns
Base Thread: ~82000ns

Are these values so bad that they can cause those errors?

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

More
18 Mar 2019 21:16 #128920 by PCW
No, but you should run a latency test with no base thread:

latency-test 1ms 1ms
or
latency-histogram --nobase --sbinsize 1000

also a ping test should be done

Either

ping 10.10.10.10
or
ping 192.168.1.121

depending on how your 7I76E is set

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

More
18 Mar 2019 21:58 #128927 by vmihalca
While trying to make a video on the issue I have with the probe screen repetability, I just got:
hm2/hm2_7i76e.0: error finishing read! iter=649051

Pinging 10.10.10.10 for a few minutes got a reply every single time, no request timeout.

Running latency-test 1ms 1ms with ping running, glxgears running and using the browser while typing this post, resulted in 57128ns.

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

More
18 Mar 2019 22:01 #128929 by tommylight
What is the latency of ping replies ? It is written at the end of each reply line.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum