Ethercat panel configuration

  • Soccer Kid
  • Soccer Kid's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
26 Mar 2025 09:39 #324948 by Soccer Kid
Ethercat panel configuration was created by Soccer Kid
Hi everyone, I’d like to share a long-standing issue I encountered and the solution I found. The problem began when I tried to connect an EtherCAT panel to LinuxCNC. During the configuration process, the slave device remained stuck in the ‌PREOP‌ state and failed to enter ‌OP‌ (Operational state). This was caused by manually configuring certain PDO files, which led to unrecognized settings. The fix was to set configPdos="false" in the configuration. Apologies for my poor English—the original text was translated using software. For reference, I’ve also attached an image showing the LED activation (see attached image). Hope this helps anyone facing a similar issue!
Attachments:

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

  • Soccer Kid
  • Soccer Kid's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
26 Mar 2025 09:45 #324949 by Soccer Kid
Replied by Soccer Kid on topic Ethercat panel configuration
Role of configPdos
‌Function‌:

‌configPdos="true"‌: Enables automatic PDO mapping from the slave’s ESI file.
‌configPdos="false"‌: Requires manual PDO configuration in XML.
The following user(s) said Thank You: 0x2102

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

More
26 Mar 2025 12:17 #324954 by 0x2102
Replied by 0x2102 on topic Ethercat panel configuration
Thanks for posting your solution. 

Could you share your EtherCAT configuration for this control panel? 

 

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

  • Soccer Kid
  • Soccer Kid's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
27 Mar 2025 00:58 #325019 by Soccer Kid
Replied by Soccer Kid on topic Ethercat panel configuration
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="3">
<!-- panel -->
<slave idx="0" type="generic" vid="00000890" pid="101407" configPdos="false">
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="7000" subIdx="01" bitLen="1" halPin="out-1" halType="bit"/>
</pdo>
<pdo idx="1602">
<pdoEntry idx="7020" subIdx="01" bitLen="1" halPin="out-2" halType="bit"/>
</pdo>
<pdo idx="1603">
<pdoEntry idx="7030" subIdx="01" bitLen="1" halPin="out-3" halType="bit"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1a00">
<pdoEntry idx="6000" subIdx="01" bitLen="1" halPin="in-1" halType="bit"/>
</pdo>
<pdo idx="1a01">
<pdoEntry idx="6010" subIdx="01" bitLen="1" halPin="in-2" halType="bit"/>
</pdo>
<pdo idx="1a02">
<pdoEntry idx="6020" subIdx="01" bitLen="1" halPin="in-3" halType="bit"/>
</pdo>
<pdo idx="1a03">
<pdoEntry idx="6030" subIdx="01" bitLen="1" halPin="in-4" halType="bit"/>
<pdoEntry idx="6030" subIdx="11" bitLen="16" halPin="value" halType="u32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>

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

  • Soccer Kid
  • Soccer Kid's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
27 Mar 2025 01:00 #325020 by Soccer Kid
Replied by Soccer Kid on topic Ethercat panel configuration
Sure, but that's just one example. Because I haven't done all the configuration yet, in the XML below, I show some outputs and inputs, where value is used to read the MPG signal.

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

More
27 Mar 2025 08:15 #325036 by Hakan
Replied by Hakan on topic Ethercat panel configuration
Interesting, that grouping of pdoentries into individual PDOs reminds me of the software I use. But it isn't uncommon I have understood.
Anyway, the ethercat server writes diagnostic messages you can view with the "dmesg" command. Maybe you found something there?

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

  • Soccer Kid
  • Soccer Kid's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
28 Mar 2025 02:48 #325134 by Soccer Kid
Replied by Soccer Kid on topic Ethercat panel configuration
I've forgotten the exact debugmsg at that time. I obtained the information for this issue from the diagnostic LED provided by the manufacturer. The specific content is: Invalid parameters were written.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum