Error reading pdos / motors are not moving - solved!

More
1 year 10 months ago #316177 by piter_iceman
Hello,I followed the instructions provided in this forum thread for setting up EtherCAT with LinuxCNC.The installation and configuration seemed to go well; however, I’m facing an issue where my motors are not moving. Specifically:
  • The values from STATUS word from the drives is not appearing in the LinuxCNC - 0x000000
  • When I start LinuxCNC with
    Code:
    lathe.ini
    , LinuxCNC loads successfully, but it seems there’s no connection with the drives.
I’ve attached the following files for review:
  1. dmesg.txt: Logs showing EtherCAT activity and errors.
  2. Relevant configuration files (
    Code:
    hal
    ,
    Code:
    ini
    ,
    Code:
    XML
    , pdos, ethercat master, slaves, lcec during linux operation)
I would greatly appreciate it if someone could review the attached files and help identify any mistakes or missing steps that need to be resolved.Thank you in advance for your support!Best regards,Piotr

Please Log in to join the conversation.

More
1 year 10 months ago #316215 by Hakan
The pdos you use in ethercat-conf.xml don't agree with the pdos the devices actually have.

Please Log in to join the conversation.

More
1 year 10 months ago #316235 by piter_iceman
Hello

Thank you for your comments, please see below the updates.

I modified ethercat-conf.xml -
It looks that there is still no connection between XML and linux.I ran the command
Code:
sudo dmesg -wH
to monitor system logs in real time. (dmesg_wH.png)
  • The white area at the top of the output corresponds to the period when LinuxCNC was started.
  • The logs below show what happens when the LinuxCNC session is terminated (after clicking "Exit")
The same has been proceed for: sudo dmesg | grep EtherCAT

I would appreciate your support!




 

Please Log in to join the conversation.

More
1 year 10 months ago #316237 by Hakan

Please Log in to join the conversation.

More
1 year 10 months ago #316247 by piter_iceman
I followed this guide exactly:
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
along with the instructions from:
forum.linuxcnc.org/ethercat/53785-instal...epositories#309793.I reinstalled LinuxCNC, but there were no changes

 

Please Log in to join the conversation.

More
1 year 10 months ago #316358 by piter_iceman
  1.  

    Attachment not found

  2. It's working!!! The vid="0x00445653" and pid="0009252" must exactly match the driver's configuration, and the registers should start from RxPDOs - 0x1600 ; TxPDOs 0x1A00 - verified in TwinCAT 2 and ethercat sdos

Please Log in to join the conversation.

Time to create page: 4.983 seconds
Powered by Kunena Forum