- Posts: 790
- Thank you received: 276
Ethercat HAL driver
- db1981
- Offline
- Platinum Member
-
Less
More
5 years 6 months ago #206376
by db1981
Replied by db1981 on topic Ethercat HAL driver
Hi,
what do you want to achieve with the driver?
how should the hal interface be designed? do you want to have an "virtual" com port for the device.
or simple rx and tx buffer arrays, with correspondending transmit and receive bits?
what do you want to achieve with the driver?
how should the hal interface be designed? do you want to have an "virtual" com port for the device.
or simple rx and tx buffer arrays, with correspondending transmit and receive bits?
- Stormholt
- Offline
- Senior Member
-
Less
More
- Posts: 58
- Thank you received: 8
5 years 6 months ago - 5 years 6 months ago #206378
by Stormholt
Replied by Stormholt on topic Ethercat HAL driver
Hello again db1981 :lol:
I would love to have a virtual com port for the device, but i think either way i would make it work with my device
Edit:
On windows i can see that twincat has a Virtual Com port application.
How would one achieve similar application with linuxcnc ethercat ?
I would love to have a virtual com port for the device, but i think either way i would make it work with my device
Edit:
On windows i can see that twincat has a Virtual Com port application.
How would one achieve similar application with linuxcnc ethercat ?
Last edit: 5 years 6 months ago by Stormholt.
- Zydra
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
5 years 6 months ago #206636
by Zydra
Replied by Zydra on topic Ethercat HAL driver
Driver for EL6021 would be nice for controlling servos over Beckhoff Ethercat.
I think it's not critical if its implemented with rx and tx buffers or with linux virtual com port.
Maybe with buffers its easier to handle inside hal files by having read/write interface similar to pins.
I think it's not critical if its implemented with rx and tx buffers or with linux virtual com port.
Maybe with buffers its easier to handle inside hal files by having read/write interface similar to pins.
- Stormholt
- Offline
- Senior Member
-
Less
More
- Posts: 58
- Thank you received: 8
5 years 6 months ago - 5 years 6 months ago #206656
by Stormholt
Replied by Stormholt on topic Ethercat HAL driver
I am not sure where to share stuff like this, but i tried my hand at writing a driver for EL3004 analog input 4 channels, 12 bits, single ended, +/-10V
This my first encounter with writing a driver, so let me know how it might be improved.
This my first encounter with writing a driver, so let me know how it might be improved.
Last edit: 5 years 6 months ago by Stormholt.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 6 months ago - 5 years 6 months ago #206793
by Grotius
Replied by Grotius on topic Ethercat HAL driver
Hi Stormhold,
I checked your code..
There is something i noticed at compile time. If the project is loaded in Qt, you can see if everything is ok.
In this case something was not found.
Solved with :
Did you mention this before during halcompile?
Ok qt halcompile project attached, your driver is attached, it works without update status i suggest..
github.com/grotius-cnc/Linux-Embedded/re...ile-qt-el3004.tar.gz
To open the project, in qt load the file : qt-test.creator , then check the howto-pictures in the archive.
I checked your code..
There is something i noticed at compile time. If the project is loaded in Qt, you can see if everything is ok.
In this case something was not found.
Solved with :
Did you mention this before during halcompile?
Ok qt halcompile project attached, your driver is attached, it works without update status i suggest..
github.com/grotius-cnc/Linux-Embedded/re...ile-qt-el3004.tar.gz
To open the project, in qt load the file : qt-test.creator , then check the howto-pictures in the archive.
Last edit: 5 years 6 months ago by Grotius.
The following user(s) said Thank You: Stormholt
- Stormholt
- Offline
- Senior Member
-
Less
More
- Posts: 58
- Thank you received: 8
5 years 6 months ago #206800
by Stormholt
Replied by Stormholt on topic Ethercat HAL driver
How very embarrassing... a misspelling :blush: :sick: a new file is attached
I don't quite understand the 'how to pictures', am i supposed to write a test.c file? or was there supposed to be one in the tarball?
I have no experience with qt creator, but it seems nice to know :lol:
I don't quite understand the 'how to pictures', am i supposed to write a test.c file? or was there supposed to be one in the tarball?
I have no experience with qt creator, but it seems nice to know :lol:
Time to create page: 6.663 seconds