- Posts: 216
- Thank you received: 25
Ethercat HAL driver
- udoS
- Offline
- Elite Member
-
Less
More
5 years 1 month ago - 5 years 1 month ago #221191
by udoS
Replied by udoS on topic Ethercat HAL driver
@yrodriguez
1. You have data on the RPi4;
2. You want this data make available to PC-Ethercat-Master and ultimately to Lcnc ;
SO: some how you need the RPi to become a slave ; I told you one way to do that ;
Then you can read the data through the master into the HAL.
For that you need a component to attach the slave to the Etherlab Master, but that is available.
Hope that helped or else please give more info's / details about your setup or intensions.
best rgds udo
1. You have data on the RPi4;
2. You want this data make available to PC-Ethercat-Master and ultimately to Lcnc ;
SO: some how you need the RPi to become a slave ; I told you one way to do that ;
Then you can read the data through the master into the HAL.
For that you need a component to attach the slave to the Etherlab Master, but that is available.
Hope that helped or else please give more info's / details about your setup or intensions.
best rgds udo
Last edit: 5 years 1 month ago by udoS.
Please Log in or Create an account to join the conversation.
- udoS
- Offline
- Elite Member
-
Less
More
- Posts: 216
- Thank you received: 25
5 years 1 month ago #221192
by udoS
Replied by udoS on topic Ethercat HAL driver
@db1981
the Bausano slave is a legal expansion board for the raspi.
They are building a whole range of low cost ethercat cnc boards.
Just have a look
the Bausano slave is a legal expansion board for the raspi.
They are building a whole range of low cost ethercat cnc boards.
Just have a look
Please Log in or Create an account to join the conversation.
- udoS
- Offline
- Elite Member
-
Less
More
- Posts: 216
- Thank you received: 25
5 years 1 month ago #221194
by udoS
Replied by udoS on topic Ethercat HAL driver
Now there is also a soft-plc available running on linux-PC and RPi3/4 that has a Ethercat Master.
From there it just takes a rt-plugin (shared memory with semaphore) to have any data from plc into HAL;
Nothing illegal about it.
Best rgds. udo
From there it just takes a rt-plugin (shared memory with semaphore) to have any data from plc into HAL;
Nothing illegal about it.
Best rgds. udo
Please Log in or Create an account to join the conversation.
- yrodriguez1234
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
5 years 1 month ago - 5 years 1 month ago #221196
by yrodriguez1234
Replied by yrodriguez1234 on topic Ethercat HAL driver
I going yo explane that a have mount.
1. PC with LCNC 2.8 and ethercat Master working.
2. A raspberry pi 4 with LCNC 2.8 and ethercat Master working.
My problem is when a conect de PC with rpi through ethercat, the PC does not reconize de rpi as ethercat slave.
I need reconize rpi 4 like slave to send information from a hal component on rpi yo a hal component on PC
I readed SOES from Github but I don't know how use it to solve my question.
Thanks.
1. PC with LCNC 2.8 and ethercat Master working.
2. A raspberry pi 4 with LCNC 2.8 and ethercat Master working.
My problem is when a conect de PC with rpi through ethercat, the PC does not reconize de rpi as ethercat slave.
I need reconize rpi 4 like slave to send information from a hal component on rpi yo a hal component on PC
I readed SOES from Github but I don't know how use it to solve my question.
Thanks.
Last edit: 5 years 1 month ago by yrodriguez1234.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
5 years 1 month ago #221200
by db1981
Replied by db1981 on topic Ethercat HAL driver
you can only talk beetween ec master over an bridge interface, but that hat not be done yet on linuxcnc.
To get your pi as an slave you need an extra piece of hardware, (like the bausano udoS showed, it has an ethercat stamp on board) .
But to get your information from linuxcnc on your pi to the ec-slave board, you have to code an own component / interface driver.
If your use case is not realtime critical i would implement my own tcp communication layer in an c-comp.
To get your pi as an slave you need an extra piece of hardware, (like the bausano udoS showed, it has an ethercat stamp on board) .
But to get your information from linuxcnc on your pi to the ec-slave board, you have to code an own component / interface driver.
If your use case is not realtime critical i would implement my own tcp communication layer in an c-comp.
Please Log in or Create an account to join the conversation.
- yrodriguez1234
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
5 years 1 month ago #221202
by yrodriguez1234
Replied by yrodriguez1234 on topic Ethercat HAL driver
In my case is not realtime critical I could test your c-comp.
Please Log in or Create an account to join the conversation.
Time to create page: 0.242 seconds