Ethercat HAL driver

More
28 Oct 2021 20:04 #224609 by CORBETT
Replied by CORBETT on topic Ethercat HAL driver
I believe lightning hit the power line... as it and the PLC that I bought were both no good....  

I have plenty of other setups using EL4132's, but wanted to use the EM7004 for one of our 4 axis mills for a nice compact setup.  Yeah I have always wanted one and too bad the very one that I bought was non-functioning....   Plus the loss of money on non-working unit.

 

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

More
06 Nov 2021 04:54 - 06 Nov 2021 05:08 #225468 by ASKoskov
Replied by ASKoskov on topic Ethercat HAL driver
I think it doesn't reach the op state.
Attachments:
Last edit: 06 Nov 2021 05:08 by ASKoskov.
The following user(s) said Thank You: GuiHue

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

More
09 Nov 2021 09:15 #225793 by Schaumstofffräsnewbie
When I try to start Linuxcnc with my configuration, I get the following error messages:
lcec_conf: ERROR: unexpected node syncmanager found
lcec_conf: ERROR: Parse error at line 4: parsing aborted
/usr/share/linuxcnc/hallib/ethercat.hal:1: waitpid failed lcec_conf lcec_conf
/usr/share/linuxcnc/hallib/ethercat.hal:1: lcec_conf exited without becoming ready

After that lcnc is shutting down.
I attached my .ini, my ethercat.hal and my ethercat-config.xml

I hope you can find what I am missing here (I am new to linux, linuxcnc and HAL)
best regards
Antonio

 
Attachments:

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

More
09 Nov 2021 11:49 #225807 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hello,

-"syncmanager" hast to be "syncManager" ( M)

-as haltypes only exists (float, bit, u32, s32) you have to change this
uint = u32, int = s32

-at this stage for getting ethercat communication to work, your hal file works.
but for motion etc. it will not. search in this thread for "execution order" i have explained this a few times...
The following user(s) said Thank You: tommylight

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

More
09 Nov 2021 12:58 #225814 by Schaumstofffräsnewbie
Okay, so if I got u right, I need to do your suggested changes in my ethercat-conf.xml.
But if UINT=u32 int=s32, what about DINT and SINT?
I guess that they are not float, but are they bit?

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

More
09 Nov 2021 13:11 #225817 by db1981
Replied by db1981 on topic Ethercat HAL driver
Dint and Sint , are s32 too. IN hal they are all 4 Byte, casting is done by the value of bitlen .
The following user(s) said Thank You: Schaumstofffräsnewbie

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

More
11 Nov 2021 06:52 #226069 by Schaumstofffräsnewbie
Changed the syncmanager Entrys to syncManager, and changed the data types like you described it. Now I got the following errors:

I see that got no permission to enter the ethercat-conf file but I did not find the option where i can change the entry permissions yet..
Attachments:

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

More
11 Nov 2021 08:54 #226081 by db1981
Replied by db1981 on topic Ethercat HAL driver
is the hal file still the same as above?
seems like a typo, because at one of your last posts, lcec_conf has worked...

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

More
11 Nov 2021 09:00 #226082 by Schaumstofffräsnewbie
No I changed it a little bit, because of the execution order stuff you mentioned.
This is it now:
Attachments:

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

More
11 Nov 2021 11:09 - 11 Nov 2021 11:11 #226093 by db1981
Replied by db1981 on topic Ethercat HAL driver
in line 2 the component is missing.

change:

loadusr -W /home/sfm100/linuxcnc/configs/SFM100/ethercat-conf.xml

to:

loadusr -W lcec_conf /home/sfm100/linuxcnc/configs/SFM100/ethercat-conf.xml

 
Last edit: 11 Nov 2021 11:11 by db1981.

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

Time to create page: 0.172 seconds
Powered by Kunena Forum