- Posts: 111
- Thank you received: 24
Ethercat HAL driver
- robh
- Offline
- Premium Member
-
i have the drives running and moving now.
just trying to figure how to sort the homing out, id like to just hit the home all button and have the drives run there home method. and report back to linuxcnc that its complete and set the axis to homed.
i have setup a state change to home mode on the drive when axis.n.homing is true
and set the bits to start the home method
but linuxcnc gives a following error when the drive move due to feedback.
am i missing something as is there a speshial value/setting to allow drive homing in linuxcnc?
what values should be in the home ini to allow drives todo there home method while linuxcnc just waits for it to report home finish?
thanks, rob
Please Log in or Create an account to join the conversation.
- sirop
- Offline
- Elite Member
-
- Posts: 193
- Thank you received: 57
robh wrote:
i have the drives running and moving now.
just trying to figure how to sort the homing out, id like to just hit the home all button and have the drives run there home method. and report back to linuxcnc that its complete and set the axis to homed.
i have setup a state change to home mode on the drive when axis.n.homing is true
and set the bits to start the home method
but linuxcnc gives a following error when the drive move due to feedback.
I do not know much about HOMING by the means of linuxcnc and thus I do not know if
EtherCAT drives can be homed by the means of linuxnc only.
I guess you have to read on about
Please Log in or Create an account to join the conversation.
- mngr0
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 1
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.
- sirop
- Offline
- Elite Member
-
- Posts: 193
- Thank you received: 57
mngr0 wrote: 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.
- mngr0
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 1
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
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.
- sirop
- Offline
- Elite Member
-
- Posts: 193
- Thank you received: 57
What should be enabled? Do you quote ethercat or linuxcnc log?mngr0 wrote:
it said "Enable to open shared memory, err=2, segmentation fault"
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.