Ethercat HAL driver

More
9 years 3 months ago #95428 by robh
Replied by robh on topic Ethercat HAL driver
thanks, using complex works grate, i was using an old XML file as a start point and did not see the update to complex types

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.

More
9 years 3 months ago - 9 years 3 months ago #95430 by sirop
Replied by sirop on topic Ethercat HAL driver

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
Code:
<Object> <Index>#x6060</Index> <Name>Modes of operation</Name> <Type>SINT</Type> <BitSize>8</BitSize> <Flags> <Access>rw</Access> <Category>o</Category> <PdoMapping>RT</PdoMapping> </Flags> </Object>
in the manual of your EtherCAT drive and then probably code your own component for HOMING.
Last edit: 9 years 3 months ago by sirop.

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

More
9 years 3 months ago #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
9 years 3 months ago #96276 by sirop
Replied by sirop on topic Ethercat HAL driver

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.

More
9 years 3 months ago #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
Code:
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
9 years 3 months ago #96357 by sirop
Replied by sirop on topic Ethercat HAL driver

mngr0 wrote:
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.

Time to create page: 0.180 seconds
Powered by Kunena Forum