Ethercat HAL driver
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6432
Please Log in or Create an account to join the conversation.
Still waiting 90 seconds. But I don't mind that much.
Rather, I need to solve the PREOP for EL4004.
If anyone had any advice I would be very happy.
Thank you.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6432
Maybe it is waiting for something else, but the only other thing i can think of it the network, and that usually waits a bit and it gets backgrounded so the boot process can continue.
Please Log in or Create an account to join the conversation.
- Avoid waiting time to start up network services
"nano /lib/systemd/system/networking.service" (change here "TimeoutStartSec = 5min" to "TimeoutStartSec = 1sec")
But I had to set 20 seconds. When it was less, the system did not connect to the Internet.
Maybe that's why she waits.
Please Log in or Create an account to join the conversation.
Can you try only this module?
Does TWINCAT3 work for you?
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
<slave idx="0" type="EK1100" name="EK1100"/>
<slave idx="1" type="EL4004" name="EL4004"/>
</master>
</masters>
Chimeno
Please Log in or Create an account to join the conversation.
Thank you for your response.
The module itself is also PREOP.
Twincat I tried only version "2". But I couldn't connect. I also wondered if there is a problem in the module. I will try to download Twincat 3. Which version should I download? There are 10 pieces.
Thank you.
Jirka
Please Log in or Create an account to join the conversation.
"It is OP" !!!
I tried "EtherCAT_Configurator" and found that "#define LCEC_EL4004_PID 0x0fc23052" in the "lcec_el40x4.h" file does not match.
I wrote "0x0fa43052". And it works.
But I still have errors when I start my PC. And I don't know what to do with it.
Can you advise me?
Thank you very much.
Jirka
Please Log in or Create an account to join the conversation.
I am very happy that everything works, I only have EL4034, in relation to the error, it seems an error in the device number 5, although I am not sure why it gives you error when starting the PC.
Twincat I tried only version "2". But I couldn't connect. I also wondered if there is a problem in the module. I will try to download Twincat 3. Which version should I download? There are 10 pieces.
TwinCAT 3.1 – eXtended Automation Engineering (XAE) 3.1.4024.7
to see the error messages you can use the command
dmesg
greeting
Chimeno
Please Log in or Create an account to join the conversation.
Thank you very much for your support.
Where can I copy text that is on PC startup? I won't have to do .jpg.
Thank you very much.
Jirka
Please Log in or Create an account to join the conversation.
- Sockheaven
- Offline
- Senior Member
- Posts: 48
- Thank you received: 10
I have been trying to get LinuxCNC working with EtherCAT and a Kollmorgen AKD Servo Drive.
I have been posting on this other thread:
forum.linuxcnc.org/27-driver-boards/3559...tall?start=60#159103
But I'm stuck on one last thing, and after sifting through this thread, you guys sound like the right audience. I didn't notice any other posts in here indicating the same problem though.
Basically I'm getting data to/from the drive, i started off using StepGen to control the AKD but now i'm using that project to cobble together an EtherCAT setup so i can update my mill and get rid of some signal issues i've got (low voltage parallel port).
Forgive the mess in the HAL/INI files, so don't assume anything is there on purpose and a bit is commented out. I had to use the SCALE HAL component to handle scaling (it's arbitrary right now).
The problem I have not been able to figure out is:
How do i get the EtherCAT/Can state machine to operate based on the enable/disable button in LinuxCNC?
My understanding is it's not a simple bit, the control word (which i have mapped in the pdo section) has to change a few values in sequence for the device to enable/disable, but i haven't found an example of anyone else doing that to enable/disable.
Anyone have an inkling what i'm missing?
Attachments:
Please Log in or Create an account to join the conversation.