- Posts: 4
- Thank you received: 0
Ethercat HAL driver
4 years 11 months ago #225468
by ASKoskov
Replied by ASKoskov on topic Ethercat HAL driver
I think it doesn't reach the op state.
Please Log in to join the conversation.
- Schaumstofffräsnewbie
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
4 years 11 months ago #225793
by Schaumstofffräsnewbie
Replied by Schaumstofffräsnewbie on topic Ethercat HAL driver
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
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
Please Log in to join the conversation.
4 years 11 months ago #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...
-"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...
Please Log in to join the conversation.
- Schaumstofffräsnewbie
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
4 years 11 months ago #225814
by Schaumstofffräsnewbie
Replied by Schaumstofffräsnewbie on topic Ethercat HAL driver
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?
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 to join the conversation.
4 years 11 months ago #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 .
Please Log in to join the conversation.
- Schaumstofffräsnewbie
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
4 years 11 months ago #226069
by Schaumstofffräsnewbie
Replied by Schaumstofffräsnewbie on topic Ethercat HAL driver
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..
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..
Please Log in to join the conversation.
4 years 11 months ago #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...
seems like a typo, because at one of your last posts, lcec_conf has worked...
Please Log in to join the conversation.
- Schaumstofffräsnewbie
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
4 years 11 months ago #226082
by Schaumstofffräsnewbie
Replied by Schaumstofffräsnewbie on topic Ethercat HAL driver
No I changed it a little bit, because of the execution order stuff you mentioned.
This is it now:
This is it now:
Please Log in to join the conversation.
4 years 11 months ago #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
change:
loadusr -W /home/sfm100/linuxcnc/configs/SFM100/ethercat-conf.xml
to:
loadusr -W lcec_conf /home/sfm100/linuxcnc/configs/SFM100/ethercat-conf.xml
Please Log in to join the conversation.
- Schaumstofffräsnewbie
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
4 years 11 months ago #226553
by Schaumstofffräsnewbie
Replied by Schaumstofffräsnewbie on topic Ethercat HAL driver
Took my old ethercat.hal file with the adjustments you mentioned, but I got a different error. Seems like I got Permission issues for some access..
I attached the used file below and the error message from the terminal.
I attached the used file below and the error message from the terminal.
Please Log in to join the conversation.
Time to create page: 0.293 seconds
