✅ (Solved) EL7342 | Working
02 Sep 2021 07:31 - 08 Oct 2021 09:19 #219412
by juniorfi
✅ (Solved) EL7342 | Working was created by juniorfi
Hello,
I'm trying to use and EL7342 and two yellow leds are on.
After having a look at the documentation I saw that is because is underpower or some missconfiguration.
- I assume that the configuration it have, is gone once I launch the master. Right? Or that still there in the eeprom?
- Does anyone have tried that EL7342 before?
- Do I have to declare the EL7342 configuration in .hal before launching the HAL/LinuxCNC?
Regards
I'm trying to use and EL7342 and two yellow leds are on.
After having a look at the documentation I saw that is because is underpower or some missconfiguration.
- I assume that the configuration it have, is gone once I launch the master. Right? Or that still there in the eeprom?
- Does anyone have tried that EL7342 before?
- Do I have to declare the EL7342 configuration in .hal before launching the HAL/LinuxCNC?
Regards
Last edit: 08 Oct 2021 09:19 by juniorfi.
Please Log in or Create an account to join the conversation.
02 Sep 2021 09:19 #219418
by db1981
Hello,
you have to tell the card its configuration. This are the values that are listet under the startup tab in the twincat projekt.
There are two ways:
-sdoconfig objects in the ethercat_conf.xml or
-loading an initcmd xml file for each card . You can snippout the initcmds for each card out of the device export xml in the twincat project.
about initcmds there is an example on the linuxcnc-ethercat github
you have to tell the card its configuration. This are the values that are listet under the startup tab in the twincat projekt.
There are two ways:
-sdoconfig objects in the ethercat_conf.xml or
-loading an initcmd xml file for each card . You can snippout the initcmds for each card out of the device export xml in the twincat project.
about initcmds there is an example on the linuxcnc-ethercat github
Please Log in or Create an account to join the conversation.
07 Sep 2021 08:17 - 07 Sep 2021 08:18 #219828
by db1981
there is not much difference...
select the device in the left tree -> edit menü -> export xml description.
After this you got an xml file with the complete device description.
In this file there has to exist an chapter <EtherCATMailbox> within this there is an chapter <CoE> and there is the initcmd block. compare if the blocks looks like the example on linuxcnc-ethercat.
Be careful the initcmds blocks exists two times in the file. the first is for the systemmanager to automatical create the device (this is what etherlab/linuxcnc can't do..... spoiler: yet .) the second block near the end of the file contains the needed data.
select the device in the left tree -> edit menü -> export xml description.
After this you got an xml file with the complete device description.
In this file there has to exist an chapter <EtherCATMailbox> within this there is an chapter <CoE> and there is the initcmd block. compare if the blocks looks like the example on linuxcnc-ethercat.
Be careful the initcmds blocks exists two times in the file. the first is for the systemmanager to automatical create the device (this is what etherlab/linuxcnc can't do..... spoiler: yet .) the second block near the end of the file contains the needed data.
Last edit: 07 Sep 2021 08:18 by db1981.
The following user(s) said Thank You: juniorfi
Please Log in or Create an account to join the conversation.
13 Sep 2021 09:26 #220417
by juniorfi
Hi db1981,
I just tried to export the xml but I did in other way. (Not sure of I did well...)
I'm using Microsoft Visual Studio for the project I have for students.
Here goes from the part I took that info:
pasteboard.co/NtIVHFPEYVMf.png
And this is how the info looks like (I exported individually, but each of those have the same .xml value):
<?xml version="1.0" encoding="ISO-8859-1"?>
<EtherCATMailbox><CoE><InitCmds><InitCmd><Transition>IP</Transition><Timeout>0</Timeout><Ccs>1</Ccs><Index>61569</Index><SubIndex>1</SubIndex><Data>00001400</Data></InitCmd></InitCmds></CoE></EtherCATMailbox>
Could you just let me know if is that enough?.
Best regards.
I just tried to export the xml but I did in other way. (Not sure of I did well...)
I'm using Microsoft Visual Studio for the project I have for students.
Here goes from the part I took that info:
pasteboard.co/NtIVHFPEYVMf.png
And this is how the info looks like (I exported individually, but each of those have the same .xml value):
<?xml version="1.0" encoding="ISO-8859-1"?>
<EtherCATMailbox><CoE><InitCmds><InitCmd><Transition>IP</Transition><Timeout>0</Timeout><Ccs>1</Ccs><Index>61569</Index><SubIndex>1</SubIndex><Data>00001400</Data></InitCmd></InitCmds></CoE></EtherCATMailbox>
Could you just let me know if is that enough?.
Best regards.
Please Log in or Create an account to join the conversation.
21 Sep 2021 07:13 #221250
by juniorfi
Hi,
After adding my config in the ehtercat-conf.xml I got the following error when launching:
Note: Using POSIX non-realtime
rtapi_shmem_new failed due to shmget(key=0xacb572c7): Invalid argument
lcec_conf: ERROR: couldn't allocate user/RT shared memory
Waiting for component 'lcec' to become ready...
Any hint?
Regards
After adding my config in the ehtercat-conf.xml I got the following error when launching:
Note: Using POSIX non-realtime
rtapi_shmem_new failed due to shmget(key=0xacb572c7): Invalid argument
lcec_conf: ERROR: couldn't allocate user/RT shared memory
Waiting for component 'lcec' to become ready...
Any hint?
Regards
Please Log in or Create an account to join the conversation.
21 Sep 2021 08:23 #221255
by db1981
hi,
you are trying to run linuxcnc in an sim environment not in realtime....
'Note: Using POSIX non-realtime
Have you configured and build linuxcnc for realtime?
Is the realtime kernel running on this machine 'uname -a' = preempt RT .
lcnc install:
/debian/ ./configure uspace
/src/ ./configure --with-realtime=uspace
you are trying to run linuxcnc in an sim environment not in realtime....
'Note: Using POSIX non-realtime
Have you configured and build linuxcnc for realtime?
Is the realtime kernel running on this machine 'uname -a' = preempt RT .
lcnc install:
/debian/ ./configure uspace
/src/ ./configure --with-realtime=uspace
Please Log in or Create an account to join the conversation.
21 Sep 2021 10:29 - 21 Sep 2021 10:33 #221258
by juniorfi
Hi thanks for the reply.
I'm actually using right now github.com/grotius-cnc/hal-core to interact with the pins without lcnc installation.
[Edit]
Yes I'm using Preempt RT. In concrete:
Linux linuxcnc 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Fri Jan 1 21:15:16 GMT 2021 armv7l GNU/Linux
I'm actually using right now github.com/grotius-cnc/hal-core to interact with the pins without lcnc installation.
[Edit]
Yes I'm using Preempt RT. In concrete:
Linux linuxcnc 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Fri Jan 1 21:15:16 GMT 2021 armv7l GNU/Linux
Last edit: 21 Sep 2021 10:33 by juniorfi.
Please Log in or Create an account to join the conversation.
Time to create page: 0.103 seconds