Ethercat HAL driver

More
7 years 11 months ago - 7 years 11 months ago #120631 by Grotius
Replied by Grotius on topic Ethercat HAL driver
Got it working.

Have used a prime time linuxcnc verision of the past. 2.6. Thanks to Andy for providing a fast iso cd adres on the forum in other thread. forum.linuxcnc.org/38-general-linuxcnc-q...2-6-live-cd-download
the iso cd of 2.6 debian linuxcnc
I grabbed a new pc and installed the iso cd, after the cd, only used this for core installation ethercat :
Warning: Spoiler!





So now i have some ehtercat working after 5 hours on a old linuxcnc version, problably 32 bit.
But i was started with c code on 64 bit linuxcnc system.
This was compiling but i have to know more about c coding. But first test tonight is so far so good.
The reverse engineering will take some time. I will now first investegate the real time lsec component.
On my 64 bit system the etercat connection is good. But reading value's with a custom component is until now the bottleneck.
Maybe time will bring me to next level.
Last edit: 7 years 11 months ago by Grotius.

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

More
7 years 11 months ago #120690 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hello Grotius,
Ohh that's good, it's exciting when you do the first tests and it starts to work something. It's a good start.

regards
Chimeno

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

More
7 years 11 months ago #120923 by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi, i have a little Ethercat project update for 64 bit linuxcnc systems.

It's a hard case. My c program language must be improved...
But there is every day a little progress.

Next thing to do is setting an digital output outside of linuxcnc. When this succeed i will try to include hal.h.

.

Warning: Spoiler!

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

More
7 years 11 months ago #121155 by Hawkeye
Replied by Hawkeye on topic Ethercat HAL driver
Hello Grotius,

looks like you are already have a great progress on porting ethercat-driver to 64bit environment. As your last post is already a couple days old, did you already had the chance to test other modules like EL7041 using your modifications?

Would you suggest to start the installation of debian on a clean stock image rather than modifing the already existing debian9 iso-file you mentioned above?

Best Regards,
Ben

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

More
7 years 11 months ago #121237 by CNCDestroyer
Replied by CNCDestroyer on topic Ethercat HAL driver
Hello,

i want to retrofit a deckel fp4a with Beckhoff, granite devices Argon servo driver and stock servos.
is it possible to controll all devices over ethercat or had someone experience with it ?.

i already worked with beckhoff ethercat I/O´s and Linuxcnc this is not the problem.

i have already found a tutorial with Argon drivers and Linuxcnc but without ethercat.

Please correct me if iam thinking wrong but technically should comunicate etherything over ethercat with linuxcnc ?

Best Regards
Thomas G.

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

More
7 years 11 months ago - 7 years 11 months ago #121245 by Grotius
Replied by Grotius on topic Ethercat HAL driver
@Hawkeye,

I have ordered 2 extra Beckhoff component's. One is for 5v high speed output, this for testing stepper motor's drives and motors relating to the parport LTP1 max rpm's. To measure the real rpm's output difference i can make a conclusion.
Second Beckhoff component is 0-10 volt analog input, for testing torch height control with Beckhoff.

Your EL7041 is a stepper motor driver. This will work, but i think they are expensive, also they are limitied to 8000 steps / rev.
I use 10.000. Then you can use better an ordnary stepper driver with 80volts, you have more power also. 30 volt's up. And less
cost's. But it's nice to see everything in one din row.

The ethercat is currently for me only working outside Linuxcnc. I am looking to find a solution. Every day i spent a lot of time to this issue, and every day i come closer to a solution. One solution can be to solve the makefile from Sascha to 64 bit.
Then this github.com/sittner/linuxcnc-ethercat wil install on 64 bit. I get very far, even i get out an .so file. But there are problem's i have to solve to make this happen without problem's.

Second way is to make a c coded glue module for Linuxcnc. It's only possible with component's, for example Hostmot2 is such a component. What i am learning now is to make command's for the Real Time Api. RTapi. My c program language has to improve, otherwise i get no solution.

I have installed the 32 bit version of ethercat 2 times. I work's directly. But maybe my mistake, sometimes it was locking linux completely. It could be a configuration fault.

The Etercat outside of linuxcnc on 4.9.0-8-rt-amd64 is working perfectly. So now spent some time to integrate it. I have several idea's and tested, also several idea's on stock. Every day i come closer.

@CNC destoyer,
Look at "servo over ethercat", there are servo system's on 32 bit linuxcnc. Also on github.

When installing the github version on 64 bit i get this error :

Warning: Spoiler!


The error is related to the line 19 in the realtime.mk file :
LDFLAGS += -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal -lethercat
The -lethercat is not found.....
Last edit: 7 years 11 months ago by Grotius.

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

Time to create page: 0.402 seconds
Powered by Kunena Forum