Ethercat panel configuration

More
1 year 7 months ago #324948 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!
The following user(s) said Thank You: harindugamlath

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

More
1 year 7 months ago #324949 by Soccer Kid
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
1 year 7 months ago #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.

More
1 year 7 months ago #325019 by Soccer Kid
<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.

More
1 year 7 months ago #325020 by Soccer Kid
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
1 year 7 months ago #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.

Time to create page: 0.361 seconds
Powered by Kunena Forum