ethercat master service
07 Aug 2024 08:02 #307154
by endian
ethercat master service was created by endian
hello,
i did ethercat master driver reinstallation from generic to natural which is on the chipset on the board for some performance configuration for time period reduction... everything works well till I do not switch power of slave 24V mains off... after that ethercat master service is still active but bus is death... I have to do
for restart the ethercat bus ... how to do it automaticly or am I missing something?
regards...
i did ethercat master driver reinstallation from generic to natural which is on the chipset on the board for some performance configuration for time period reduction... everything works well till I do not switch power of slave 24V mains off... after that ethercat master service is still active but bus is death... I have to do
sudo systemctl stop ethercat.service
sudo systemctl disable ethercat.service
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
#sudo systemctl status ethercat.service
for restart the ethercat bus ... how to do it automaticly or am I missing something?
regards...
Please Log in or Create an account to join the conversation.
07 Aug 2024 08:41 #307157
by rodw
Replied by rodw on topic ethercat master service
I think you have missed the udev rules as per the sticky.
Please Log in or Create an account to join the conversation.
07 Aug 2024 20:57 #307216
by endian
Replied by endian on topic ethercat master service
Do you mean this permisions?
?
[u][b]SETUP PERMISSION.[/b][/u]
OPEN IN PICO TO GIVE ETHERCAT PORT STARTUP PERMISSION
[b]sudo pico /etc/udev/rules.d/99-ethercat.rules[/b]
ONCE THE FILE IS OPEN, ADD THE FOLLOWING:
[b]KERNEL=="EtherCAT[0-9]", MODE="0777"[/b]
?
Please Log in or Create an account to join the conversation.
07 Aug 2024 21:34 #307221
by rodw
Replied by rodw on topic ethercat master service
yes
The following user(s) said Thank You: endian
Please Log in or Create an account to join the conversation.
08 Aug 2024 08:50 #307248
by endian
Replied by endian on topic ethercat master service
Have you ever try more then one ethercat task on the single master? Something as lcec.0 with 1ms scan time and lcec.1 with diferent scan time?
Please Log in or Create an account to join the conversation.
08 Aug 2024 19:30 #307275
by rodw
Replied by rodw on topic ethercat master service
no, out of my depth here but to me lcec.0 and lcec.1 imply separate instances of Ethercat. I would put them on different Linuxcnc threads so the timing is different.
Please Log in or Create an account to join the conversation.
09 Aug 2024 08:06 #307300
by endian
Replied by endian on topic ethercat master service
yes exactly, second instance in the different thread timing ... like a 2/4/8/16ms thread or else... but I do not know how it shoudl be with a .xml file... there is necessary a new .xml file or ?
because a lcec instance 0 should run in servo thread ... but I am doing configuration for canopen and it is working at 4ms ethercat scan time... when I am using deifferent time, there are no 4th time every PDOs filled with 0x0000...
I think solution should be a new thread in 4ms cycle time which will filtrated this raw situation or something more complex as lcec in the 4ms time
because a lcec instance 0 should run in servo thread ... but I am doing configuration for canopen and it is working at 4ms ethercat scan time... when I am using deifferent time, there are no 4th time every PDOs filled with 0x0000...
I think solution should be a new thread in 4ms cycle time which will filtrated this raw situation or something more complex as lcec in the 4ms time
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:14 #307310
by Grotius
Replied by Grotius on topic ethercat master service
@Endian,
Can you implement a cycle counting component that counts up 4.
Then read in the canopen values, in other words, open the gate to the canopen every 4 cycles?
@ Rod,
I installed the linuxcnc iso. But udev rules are not working when set, also reload rules.
So bus is not starting after reboot.
I now have to start the bus invoking sudo after reboot.
I don't get it, where it's goes wrong.
Can you implement a cycle counting component that counts up 4.
Then read in the canopen values, in other words, open the gate to the canopen every 4 cycles?
@ Rod,
I installed the linuxcnc iso. But udev rules are not working when set, also reload rules.
So bus is not starting after reboot.
I now have to start the bus invoking sudo after reboot.
I don't get it, where it's goes wrong.
The following user(s) said Thank You: endian
Please Log in or Create an account to join the conversation.
09 Aug 2024 09:49 #307320
by rodw
My Bullseye system that runs the deb you made for me is still running stong!
As you know there are a few steps required after installing the Debs, it is easy to miss one. I think they are all covered in the sticky.
forum.linuxcnc.org/ethercat/45336-etherc...step-by-step?start=0
Replied by rodw on topic ethercat master service
I installed it the other day after I built the ISO and had no problems. If you have problems I am speechless because you taught me all I know@Endian,
Can you implement a cycle counting component that counts up 4.
Then read in the canopen values, in other words, open the gate to the canopen every 4 cycles?
@ Rod,
I installed the linuxcnc iso. But udev rules are not working when set, also reload rules.
So bus is not starting after reboot.
I now have to start the bus invoking sudo after reboot.
I don't get it, where it's goes wrong.
My Bullseye system that runs the deb you made for me is still running stong!
As you know there are a few steps required after installing the Debs, it is easy to miss one. I think they are all covered in the sticky.
forum.linuxcnc.org/ethercat/45336-etherc...step-by-step?start=0
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
09 Aug 2024 10:39 #307335
by Grotius
Replied by Grotius on topic ethercat master service
Hi Rod,
For me it's a long time ago i did ethercat installing. So i had to look again how it was done step by step.
I installed from gitlab.
I have seen the ethercat-master on gitlab is updated last week, the ./configure script run's now without any
additional arguments. It install flawless. This was not alway's the case.
However i was not able to start the ethercat bus as user, after adding rules to udev, reload, reboot etc.
So i thought how is this possible?
Relating to my time shedule, i leave it now as is.
Maybe i will make a new iso soon.
I have installed the trixie with rt kernel, it's really a lot off work to get this installed and running.
A new iso will be very handy.
On the linuxcnc iso, there was a message about the ethercat after installing, i think it was unable to find
the update sources.
Ok, thanks so far!
For me it's a long time ago i did ethercat installing. So i had to look again how it was done step by step.
I installed from gitlab.
I have seen the ethercat-master on gitlab is updated last week, the ./configure script run's now without any
additional arguments. It install flawless. This was not alway's the case.
However i was not able to start the ethercat bus as user, after adding rules to udev, reload, reboot etc.
So i thought how is this possible?
Relating to my time shedule, i leave it now as is.
Maybe i will make a new iso soon.
I have installed the trixie with rt kernel, it's really a lot off work to get this installed and running.
A new iso will be very handy.
On the linuxcnc iso, there was a message about the ethercat after installing, i think it was unable to find
the update sources.
Ok, thanks so far!
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds