Ethercat HAL driver

More
9 years 3 months ago #96478 by mngr0
Replied by mngr0 on topic Ethercat HAL driver
thanks, i understood my mistake,
this is what i did:
Code:
git clone https://github.com/sittner/linuxcnc-ethercat.git sudo touch /etc/apt/sources.list.d/linuxcnc-mds.list echo "deb http://repo.modusoft.de/linuxcnc/wheezy ./" | sudo tee /etc/apt/sources.list.d/linuxcnc-mds.list sudo apt-get update sudo apt-get install -y --force-yes etherlabmaster-dev cd linuxcnc-ethercat make sudo make install cd src sudo cp lcec_conf /usr/bin/

i set my configuration in the file /etc/default/ethercat.
now, i think i have to write something like
Code:
sudo /etc/init.d/ethercat start
am i right?
but in init.d there is no ethercat executable, using find i see some results
Code:
/lib/modules/3.4-9-rtai-686-pae/ethercat /usr/realtime-3.4-9-rtai-686-pae/modules/ethercat /usr/bin/ethercat /etc/default/ethercat

the only executable is /usr/bin/ethercat, but it do not accept the "start" command (it would accept "slaves" command, for example)

do i have to start the master in this way?

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

More
9 years 3 months ago #96490 by Allan
Replied by Allan on topic Ethercat HAL driver
In my experience, following installation the master starts automatically.

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

More
9 years 3 months ago #96572 by mngr0
Replied by mngr0 on topic Ethercat HAL driver
you are right allan, i just had to reboot to see the slave,
the master was the slave, then operational, then started linuxcnc, patched the xml file, an halcmd command, and then the led switched on!!

thank you very much sirop for your patience and your help

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

More
9 years 2 months ago #97069 by sqmathlete
Replied by sqmathlete on topic Ethercat HAL driver
Hi,

I am looking for some clarification regarding the setup of Delta ASDA-A2E (ethercat) servo amps using Twincat2. I am totally new to this and my body of knowledge regarding CoE comes basically from Copely's CANopen Programmers manual and Delta's ASDA-A2 Ethercat Manual.

Do you have to configure all of the SDO contents (PDO's) in Twincat2 before you create the xml file? from sittners files it looks like you are setting only the values of the PDO objects not assigning them???

Example: For testing I wired the basic 4 digital inputs (+limit, - limit, estop, homesw) required by default. I can send commands through Twincat2 and the motor works. (Note: I followed the instructions in the Ethercat manual) Now, I need to add a few more inputs/outputs for interacting with LinuxCNC, is it as simple as changing the parameters in the servo amp, restarting and then re-scanning in Twincat2? or is there some other sort of wizardry required?

Kind Regards,
Dan

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

More
9 years 2 months ago - 9 years 2 months ago #97070 by sirop
Replied by sirop on topic Ethercat HAL driver

sqmathlete wrote: Hi,
Do you have to configure all of the SDO contents (PDO's) in Twincat2 before you create the xml file? from sittners files it looks like you are setting only the values of the PDO objects not assigning them???

Now, I need to add a few more inputs/outputs for interacting with LinuxCNC, is it as simple as changing the parameters in the servo amp, restarting and then re-scanning in Twincat2? or is there some other sort of wizardry required?

Kind Regards,
Dan

Sittner's XML does allow PDO configuration by means of RAW SDO which is not so convenient and pretty error prone.

So you have to configure your additional PDOs either with TwinCAT or similar to this example www.iram.fr/~blanchet/ethercat/akd/examples/akd_free_pdo.sh .
Check "How to Map (or Remap) a PDO" of Copley's CANopen Programmers manual .
Last edit: 9 years 2 months ago by sirop. Reason: typo

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

More
9 years 2 months ago #97096 by plopes9000
Replied by plopes9000 on topic Ethercat HAL driver
Hi Frank,

How did you overcome the issue of the el6751 dynamic PDOs? Via backup parameter?

Thank you

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

Time to create page: 0.206 seconds
Powered by Kunena Forum