Beckhoff ethercat 64 with bit linuxcnc, How to install.
10 Dec 2022 22:14 #259143
by rodw
Replied by rodw on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
What IO module?
If its not beckhof, you need to make a custom xml file.
With just the io module connected type
ethercat slaves -v
ethercat pdos
You will have all the info to build a xml file similar to slave1 here
github.com/rodw-au/linuxcnc-cia402/blob/...ercat-conf-diewu.xml
If its not beckhof, you need to make a custom xml file.
With just the io module connected type
ethercat slaves -v
ethercat pdos
You will have all the info to build a xml file similar to slave1 here
github.com/rodw-au/linuxcnc-cia402/blob/...ercat-conf-diewu.xml
Please Log in or Create an account to join the conversation.
12 Dec 2022 10:42 #259249
by akg1904
Replied by akg1904 on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
So I am trying to get a Weidmuller UR20-FBC-EC IO module integrated.
I tried my best to make the xml file.
I had a few doubts though...
On line 6 what are these responsible for:
appTimePeriod="1000000"
refClockSyncCycles="1"
On line 7 what are these responsible for:
type="generic"
configPdos="false"
On line 8 what are these responsible for:
assignActivate="300"
sync0Cycle="*1"
sync0Shift="0"
I have also attached the xml file with this post.
At the end of the file there are 3 commented out sections that have the response to:
ethercat slaves -v
ethercat pdos
ethercat sdos
Not sure if that is any help or not but just thought maybe the extra information may be useful. Please ignore it if it's useless.
Now I do have another question. After this custom xml file is generated, how do I go about integrating it with linuxcnc?
Thanks again for you help
I tried my best to make the xml file.
I had a few doubts though...
On line 6 what are these responsible for:
appTimePeriod="1000000"
refClockSyncCycles="1"
On line 7 what are these responsible for:
type="generic"
configPdos="false"
On line 8 what are these responsible for:
assignActivate="300"
sync0Cycle="*1"
sync0Shift="0"
I have also attached the xml file with this post.
At the end of the file there are 3 commented out sections that have the response to:
ethercat slaves -v
ethercat pdos
ethercat sdos
Not sure if that is any help or not but just thought maybe the extra information may be useful. Please ignore it if it's useless.
Now I do have another question. After this custom xml file is generated, how do I go about integrating it with linuxcnc?
Thanks again for you help

Attachments:
Please Log in or Create an account to join the conversation.
12 Dec 2022 11:42 - 12 Dec 2022 11:44 #259250
by rodw
Replied by rodw on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
LINE 6 = servo thread length. must agree
LINE 7 generic. because it does not have built in support so you are creating a generic slave
LINE 8 I just accepted.
halpin = the name you wil call this as a pin in linuxcnc so it cannot have spaces
vid and pid are as in your slaves -v
vid = Vendor Id: 0x00000230
pid = Product code: 0x4f911c30
Probably other errors that i am not familiar with but a good start.
LINE 7 generic. because it does not have built in support so you are creating a generic slave
LINE 8 I just accepted.
halpin = the name you wil call this as a pin in linuxcnc so it cannot have spaces
vid and pid are as in your slaves -v
vid = Vendor Id: 0x00000230
pid = Product code: 0x4f911c30
Probably other errors that i am not familiar with but a good start.
Last edit: 12 Dec 2022 11:44 by rodw.
Please Log in or Create an account to join the conversation.
12 Dec 2022 14:46 #259255
by akg1904
Replied by akg1904 on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
Thanks you for that prompt response, I appreciate your effort.
I've attached the xml rectifying the hal pin spaces and updated the PID and VID.
Can you point me to any resource on how to integrate this xml file into Linuxcnc so that it reflects in the HAL configuration window?
Right now its just kinda sitting in my config folder...
I've attached the xml rectifying the hal pin spaces and updated the PID and VID.
Can you point me to any resource on how to integrate this xml file into Linuxcnc so that it reflects in the HAL configuration window?
Right now its just kinda sitting in my config folder...
Attachments:
Please Log in or Create an account to join the conversation.
12 Dec 2022 17:36 #259260
by rodw
Replied by rodw on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
I can't help any further except to say configpdos should be true (I think)
If you ignore the cia402 stuff, this example shows how to load from your halfile
github.com/rodw-au/linuxcnc-cia402/blob/main/cia402.hal
The sticky at the end shows how to use halcmd to do basic testing.
Expect errors so do at the command line so yo see them..
If you ignore the cia402 stuff, this example shows how to load from your halfile
github.com/rodw-au/linuxcnc-cia402/blob/main/cia402.hal
The sticky at the end shows how to use halcmd to do basic testing.
Expect errors so do at the command line so yo see them..
The following user(s) said Thank You: akg1904
Please Log in or Create an account to join the conversation.
14 Dec 2022 08:11 #259432
by akg1904
Replied by akg1904 on topic Beckhoff ethercat 64 with bit linuxcnc, How to install.
Hi Rodw,
Thank you for your input, it helped me a lot in figuring out the problems, I followed the link you shared and then circled back to an old post of yours and realised linuxcnc-uspace-dev hadn't been installed as well. Super embarassing but I finally managed to get lcec to show in the hal configuration.
So, once again thanks for the help.
Thank you for your input, it helped me a lot in figuring out the problems, I followed the link you shared and then circled back to an old post of yours and realised linuxcnc-uspace-dev hadn't been installed as well. Super embarassing but I finally managed to get lcec to show in the hal configuration.
So, once again thanks for the help.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.309 seconds