Ethercat HAL driver

More
6 years 9 months ago #154300 by phoenix_83
Replied by phoenix_83 on topic Ethercat HAL driver
Hi Chimeno,

yes, quilt is installed. But what should i do with it?

Sorry for my questions, but i am a newby...

regards
Heiko

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

More
6 years 9 months ago #154345 by chimeno
Replied by chimeno on topic Ethercat HAL driver
hello phoenix_83
  I already have your error located!
Code:
sudo git clone git: //github.com/sittner/ec-debianize.git
Code:
cd ec-debianize
Code:
sudo ./get_source.sh
tenemos este error
Code:
error in hg: qpush
solucion
edit the mercurial configuration file
Code:
sudo hg config --edit
Add
Code:
[extensions] mq =
save and return to
Code:
sudo ./get source.sh
now without mistakes!
you can continue compiling ...
Code:
cd etherlabmaster
Code:
sudo dpkg-checkbuilddeps
Code:
sudo dpkg-buildpackage
Code:
cd ..
Code:
sudo dpkg -i etherlabmaster_1.5.2+xxxxxx_amd64.deb
Code:
sudo dpkg -i etherlabmaster-dev_1.5.2+xxxxxx_amd64.deb
now you just need to edit the ethercat configuration file
Code:
sudo geany /etc/default/ethercat
we apply
Code:
sudo update-ethercat-config
works!!!!
regards
Chimeno
The following user(s) said Thank You: phoenix_83

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

More
6 years 9 months ago #154421 by narogon
Replied by narogon on topic Ethercat HAL driver

Nico2017 wrote: Hi all,
I was wondering if there was a slave number limitation on the EtherCAT configuration for linuxcnc. I am trying to run a new device, the config xml file works fine when I plug the device alone, but my system crashes when I put it after 15 other slave on my EtherCAT bus.

Is such a limitation exists, is it overall, or is it per master? My computer has two Ethernet port, so maybe I could use the other one as another master. I am just wondering how I would parametrize it in the /etc/default/ethercat file.

Thank you,

Nicolas


There is a memory limitation on linuxcnc:

In src/hal/hal_priv.h ( github.com/LinuxCNC/linuxcnc/blob/master/src/hal/hal_priv.h )

you have two constant HAL_SIZE and HAL_STACK_SIZE
I've changed
Code:
#define HAL_STACKSIZE 16384 /* realtime task stacksize */
to
Code:
#define HAL_STACKSIZE 32768 /* realtime task stacksize */

and
Code:
#define HAL_SIZE (75*4096)
to
Code:
#define HAL_SIZE (75*8192)
The following user(s) said Thank You: chimeno, Nico2017

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

More
6 years 9 months ago #155579 by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi narogon,
I did extend the HAL_SIZE previously. Will try extending the HAL_STACKSIZE too.
I am just wondering
  • what are the difference between those two parameters?
  • is there a physical limitation to extending. i guess you cannot put an number too high as at some point you are physically limited by your hardware. Is there a way to enlarge those sizes and compare it a relevant maximum value, to see how we are from this limit?
Thank you again,

Nicolas

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

More
6 years 8 months ago #156364 by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello sir,

I am facing the same problem with my Driver, Driver not going to Pr-Op state to Op-state, when I am trying to do that then it will give me the sync error.

can you please help me the How to set up my driver with Linuxcnc step by step???

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

More
6 years 8 months ago #156368 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi manojpatil,
If you can give more information of the device you are trying to control and the configuration you have so far or you can also pass the project in TWINCAT3 I can take a look if I can help you.
regards
Chimeno

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

Time to create page: 0.388 seconds
Powered by Kunena Forum