Issue with OP Entry Delay and Failures in LinuxCNC + EtherCAT System

More
05 Apr 2025 00:14 #325727 by rodw

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

More
05 Apr 2025 08:31 #325749 by papagno-source
Thanks for support.
The following user(s) said Thank You: rodw

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

More
08 Apr 2025 18:12 #325948 by papagno-source
Hi at all.
I have install r8168-dkms, but not have result , the wait time for read pdo is present again and in dmesg have again wait synch message.

I have in refClocksynccycles =1.
If change refClocksynccycle at -1 , not have error synch , the wait time for read pdo is more short, but on debian 10 is more fast .

I thing the problem is in ethercat version, the version installed on debian 10 , the 1.5.2 is more fast at start up .

And i don't undestand why with debian 10 and the same ethercat configuration use
refClocksynccycles =1 and on debian 12 use refClocksynccycles =-1
The following user(s) said Thank You: Soccer Kid

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
09 Apr 2025 05:51 #325960 by Hakan
Why do you use refclocksynccycles=1? That's low.

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

More
09 Apr 2025 06:41 #325961 by papagno-source
I have see value 1 on much example the xml file and not have problem with this value on debian 10 , lcnc 2.9.0-pre0 and ethercat 1.5.2.

I have test on debian 12, lcnc 2.10.0 and etehrcat 1.6.3 with value 1 and 5 and 1000 , but have error synch 5000 ms foe every drive.

only with -1 the error disappears.

What I don't understand is why on Debian 12, when LCNC starts, the PDO information is written to HAL after a few seconds and in sequence, one Ethercat node at a time from 0 to 5, while with the Debian 10 configuration, the PDOs are immediately read and updated in HAL, as soon as LCNC is running.

another difference between debian 10 and debian 12.
I use PCs with two ethernet ports.
With devian 10, with ip a I have 2 network cards enp1s0 and enp2s0,
while with debian 12 I have three, the two physical network cards and one with written: eoe0s0, which is created when ethercat is running.

Could it be that ethercat 1.6.3 unlike 1.5.2 uses a virtual card that in turn closes on a real one?
The following user(s) said Thank You: Soccer Kid

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
09 Apr 2025 16:28 #325997 by Hakan
With -1 you ask the master not to synchronize the dc clocks for the slaves. I would think 1000 could be a good number, every 1000 cycles the master will synchronize the dc clocks of the slaves. The clocks will run with good precision by themself in between syncs.
Sounds like you got a weird setup with EoE, never seen that before. It is explained in the IgH ethercat master manual. A way to establish ethernet connection to a slave over ethercat. Doesn't happen by itself must be something in your setup.
The message "Slave did not sync after 5000 ms" may not be fatal, most likely its clock got synchronized later.
You can enable debug with "ethercat debug 1" and check debug messages with "sudo dmesg". Maybe you can get something out of that. There will be more messages about the synchronization and how that succeeds.

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

More
09 Apr 2025 18:25 #326005 by papagno-source
If remain -1 can have some problem on real machine ?

Normally the next version the ethercat, it should be more performant, but in reality on debian 10 there are no such problems

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

More
28 Apr 2025 07:35 #327204 by Soccer Kid
The test results of versions 2.9.3 and 1.6.4 are consistent

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

More
28 Apr 2025 18:48 #327229 by papagno-source
Please , i want understand :

If remain refclocksynccycles = -1 in xml file, can have some problem on real machine ?

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

Time to create page: 0.074 seconds
Powered by Kunena Forum