Ver 2.9.4 iso clean install Trouble when disabling EOE

More
10 months 1 week ago - 10 months 1 week ago #340413 by Hakan
Hello Mr tar_san,

the output of dmesg was very helpful. We need to fix all issues appearing,
the first one is your drive is a EoE-capable drive. Ethernet over Ethercat.
Unfortunately linuxcnc doesn't support that.
The best way is to disable eoe in the ethercat mastyer.
Remove the installed ethercat master.
Then download ethercat master from the official site
Configure using the --disable-eoe=true option
Code:
git clone https://gitlab.com/etherlab.org/ethercat ./bootstrap ./configure --sysconfdir=/etc --disable-eoe=true make all modules
... and so on, continue to build and configure your system. Instructions are here.
gitlab.com/etherlab.org/ethercat/-/blob/stable-1.6/INSTALL.md

There is another possibility to disable EoE, but that disables EoE in the drive, and I would think
you need EoE for communication with some Yaskawa tuning software. Guessing, but not unlikely.

Test with the new ethercat master, the EoE messages should now be gone.
Let's see how many of the other messages are still there and then we act on them.

Referring to my previous post. Please add on the master line
Code:
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1" syncToRefClock="true">
If syncToRefClock gives an error because it is not supported (yet), use the following syntax:
Code:
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="-1">
Note the minus sign.

Let's see how far you come with those modifications. If there are still problems,
please show the output of dmesg again, and any errors from linuxcnc.
Last edit: 10 months 1 week ago by Hakan. Reason: bbcode

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

More
10 months 1 week ago - 10 months 1 week ago #340441 by tar_san
Please correct me if I'm wrong.

I installed LinuxCNC using official image 2.9.4
&
sudo apt install linuxcnc-ethercat

sudo systemctl stop ethercat
sudo systemctl disable ethercat

and I executed the procedures below in home/etherlab directory

git clone gitlab.com/etherlab.org/ethercat

cd ethercat
./bootstrap
./configure --sysconfdir=/etc --disable-eoe=true

I got error message >> error :invalid feature name "eoe=true"
so what I did is ..

./configure --sysconfdir=/etc --disable-eoe

make all modules

Then I followed ---- INSTALL.md ( gitlab.com/etherlab.org/ethercat/-/blob/stable-1.6/INSTALL.md )

su make modules_install install

I got error message >> su: user ake does not exist or the user entry does not contain all the required fields.

what should I do ?
Last edit: 10 months 1 week ago by tar_san.

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

More
10 months 1 week ago #340442 by tommylight

su make modules_install install

try
sudo make modules_install install

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

More
10 months 1 week ago - 10 months 1 week ago #340445 by tar_san
thank you so much. but I still have a problem.


sudo make modules_install install
sudo depmod
sudo echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules

I got error>> bash: /etc/udev/rules.d/99-EtherCAT.rules no permission
So I fixed to 
echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" | sudo tee /etc/udev/rules.d/99-EtherCAT.rules

sudo systemctl daemon-reload
sudo systemctl start ethercat

ethercat version
IgH EtherCAT master 1.6.8

ethercat slaves
0  0:0 PREOP + SGDXS-xxxxA0x EtherCAT(CoE) SERVOPACK Rev02.09

and then, I executed LinuxCNC with my simple config.

But nothing has improved. 
I attached dmesg. 

And then , what I did was.. 
syncToRefClock="true"
>> I got error, and LinuxCNC did not started.

refClockSyncCycles="-1"
>> I got LinuxCNC Terminal output "Failed to get reference clock time: Input/output error" (20 times )
What am I missing ?
 
Last edit: 10 months 1 week ago by tar_san.

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

More
10 months 1 week ago - 10 months 1 week ago #340446 by tar_san
I attached dmesg file which is
refClockSyncCycles="-1" version.

(PS)
I have to add this info.
I tested multiple times this refClockSyncCycles="-1"  version.

sometimes (33%?) , No alarm , and I could Power on (servo on) and jog moving.

But sometimes ( 66%?) I can't control servo motor at all from the begining after execute LinuxCNC.
In this case, CiA402 status=0000.  if I pull off and push in  (reconnect physically) EtherCAT cable several times, sometimes get correct status,
and after that I can control servo. ( not all the times )




 
Last edit: 10 months 1 week ago by tar_san.

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

More
10 months 1 week ago #340457 by Hakan
It looks like you are still running the old version of ethercat master.
I look at this message in syslog
Code:
[ 8170.607102] EtherCAT 0: Stopping EoE thread. [ 8170.607113] EtherCAT 0: EoE thread exited. [ 8170.607114] EtherCAT 0: Starting EoE thread.
This means the EoE code is still active in the ethercat master.
When EoE is removed from the master, all messaged with EoE will disappear.

Make sure to remove the debian/apt installed version of the ethercat master
Code:
apt purge ethercat-master ethercat-dkms
Then re-compile and re-install the new version of ethercat master.
Also, the configure statement I told you was wrong (sorry about that), it should be
Code:
make clean ./bootstrap ./configure --sysconfdir=/etc --disable-eoe
and continue to install according to INSTALL.md.

When you have the ethercat master up and running again, check the syslog. There should be no EOE mentioned.
This must work, it is all dependent on that EoE is removed.

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

Time to create page: 0.209 seconds
Powered by Kunena Forum