Ethercat HAL driver

More
22 Jul 2017 10:55 #96275 by mngr0
Replied by mngr0 on topic Ethercat HAL driver
Hi all, i am new in this forum,
i am trying to use linuxcnc to control some machines using ethercat.
So far i have tryed with a Weidmuller ethercat module, i made the xml file like described in the tutorial, i couldn't find some parameteres, like watchdog, so i did not put them in the xml. do i need all the parameters? or can i do without some of them?

I didn't reached the OP state, giving an error, do i have to do more than the xml to reach this state?

For some ethercat modules like this or other beckhoff modules not in this list for example EL32xx modules what do i have to do to make them work?
Thanks for any answer, mngr0

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

More
22 Jul 2017 11:54 #96276 by sirop
Replied by sirop on topic Ethercat HAL driver

Hi all, i am new in this forum,
i am trying to use linuxcnc to control some machines using ethercat.
So far i have tryed with a Weidmuller ethercat module, i made the xml file like described in the tutorial, i couldn't find some parameteres, like watchdog, so i did not put them in the xml. do i need all the parameters? or can i do without some of them?

I didn't reached the OP state, giving an error, do i have to do more than the xml to reach this state?


Missing Watchdog config should not be a show stopper as then the slave's default watchdog values are used.

Share your ethercat and linuxcnc logs as otherwise it is hard to guess which went wrong.

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

More
24 Jul 2017 15:08 #96352 by mngr0
Replied by mngr0 on topic Ethercat HAL driver
Thank you sirop for the fast answer,

i quite surely have failed something in the installation,
this morning i have tried installing compiling from source,
ethercat driver wiki , section Building: it compiled.
then halrun a file containing
loadrt threads name1=master period1=1000000
loadusr -W lcec_conf myConfigs.xml
loadrt lcec
addf lcec.read-all master
addf lcec.write-all master
start

it said "Enable to open shared memory, err=2, segmentation fault"

i think it is because i did not install the ethercat master... so here is my questions:
-do i have to install it? (i can use ethercat commands in the terminal, so i think it is installed)
-if i have to install it, is it before or after the ethercat driver?
-how do i start the ethercat master? i mean, i have to start it to talk with the ethercat slave...

the content of the file (with halrun commands) is copied from this forum, i thougth the "start" line started the master.

sorry for the dumb question,
mngr0

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

More
24 Jul 2017 17:09 #96357 by sirop
Replied by sirop on topic Ethercat HAL driver


it said "Enable to open shared memory, err=2, segmentation fault"

What should be enabled? Do you quote ethercat or linuxcnc log?

Normally you install ethercat master before installing linucnc-ethercat by Sittner.

If ethercat slaves issued from command line shows reasonable output, than your master is already running.

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

More
25 Jul 2017 21:24 #96423 by plopes9000
Replied by plopes9000 on topic Ethercat HAL driver
First off, great work with beckhoff's ethercat support in linuxcnc - love the modularity of the bus ... it's great that it's supported by linuxcnc.

I'm interested in adding support for the IL2301 B110. In particular I'm after using the IP Link to control Festo valve blocks.

I have multipoint valve blocks hooked up to my Linux cnc box, but would prefer to save the 16 digital ports (only really using 8 now) - besides it so much more elegant to control it via ethercat.

Could not find anything on the web, any pointers?

Thank you

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

More
25 Jul 2017 22:43 #96429 by sirop
Replied by sirop on topic Ethercat HAL driver

I'm interested in adding support for the IL2301 B110. In particular I'm after using the IP Link to control Festo valve blocks.

It detects the connected modules and automatically allocates the input and output data to the process image.

www.beckhoff.de/default.asp?fieldbus_box/il230x_b110.htm

So just write an XML description in order to try this slave out.

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

More
26 Jul 2017 13:58 #96466 by mngr0
Replied by mngr0 on topic Ethercat HAL driver


it said "Enable to open shared memory, err=2, segmentation fault"

What should be enabled? Do you quote ethercat or linuxcnc log?


I meant "Unable.. sorry for the horrible typo

today i installed igh master and then linuxcnc-ethercat driver using this commands:

File Attachment:

File Name: cmds.txt
File Size:1 KB

when i type
sudo /etc/init.d/ethercat start
the answer is
Starting EtherCAT master 1.5.2 ERROR: could not insert 'ec_master': Invalid argument
failed

what did i do wrong?
still, thank sirop for the patience
Attachments:

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

More
26 Jul 2017 14:07 #96468 by sirop
Replied by sirop on topic Ethercat HAL driver
Maybe, you installed more than 1 EtherLab master?

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

More
26 Jul 2017 14:33 #96474 by mngr0
Replied by mngr0 on topic Ethercat HAL driver
it may be, because while installing linuxcnc-ethercat he told me that the file /etc/default/ethercat was already existing, and asked me what to do (replace, or keep the file, i kept the file)

so i don't have to install the ethercat master?
this is what i tried the first time, but i didn't know where is the file to configure the master and the one to start it.

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

More
26 Jul 2017 14:36 #96475 by sirop
Replied by sirop on topic Ethercat HAL driver
A network device can be used only by one master at atime.
So there should be only one master.

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

Time to create page: 0.193 seconds
Powered by Kunena Forum