Leadshine io module and encoder module cannot enter OP mode correctly

More
3 years 6 months ago - 3 years 6 months ago #269658 by whatawhiz
Hi all,
  I previously bought two second-hand Leadshine Ethercat IO modules and an encoder input module, but I haven't used them. Yesterday, I wired the MPG to these modules. The input signal in Halshow didn’t toggle when I turned the switch, I realized that these three modules were not working properly. Entering ethercat slaves command that my servo drivers can all enter OP mode. These three modules either stay in PREOP mode or display error in SAFEOP mode.

  I can't even find these modules on this company's website now. On Google, only incomplete user manuals and two XML files can be found. So I can only configure it through the parameters output by ethercat pdos and ethercat slaves commands.
 I want to know if there is something wrong with my config, but I didn't notice it myself or if there are issues with these modules themselves.
 Note: The device will get stuck in PREOP mode and report an error like:
 EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
  I especially want to roast that even the device name of the encoder module is wrong.
 Here are my config and the log files.
Code:
<masters>     <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">             <slave idx="0" type="generic" vid="00004321" pid="0x01500033" configPdos="false">             <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>             <syncManager idx="3" dir="in">                 <pdo idx="1A00">                     <pdoEntry idx="6100" subIdx="01" bitLen="32" halPin="encoder0-val" halType="s32"/>                     <pdoEntry idx="6100" subIdx="02" bitLen="32" halPin="encoder1-val" halType="s32"/>                         <pdoEntry idx="6100" subIdx="03" bitLen="32" halPin="encoder2-val" halType="s32"/>                     </pdo>             </syncManager>               </slave>         <slave idx="1" type="generic" vid="00004321" pid="0x01100063" configPdos="false">             <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>                 <syncManager idx="2" dir="out">                 <pdo idx="1602">                                 <pdoEntry idx="7000" subIdx="01" bitLen="16" halType="complex">                         <complexEntry bitLen="1" halPin="out-00" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-01" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-02" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-03" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-04" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-05" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-06" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-07" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-08" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-09" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-10" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-11" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-12" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-13" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-14" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-15" halType="bit"/>                     </pdoEntry>                       <pdoEntry idx="7000" subIdx="02" bitLen="16" halType="complex">                         <complexEntry bitLen="1" halPin="out-16" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-17" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-18" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-19" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-20" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-21" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-22" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-23" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-24" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-25" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-26" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-27" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-28" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-29" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-30" halType="bit"/>                         <complexEntry bitLen="1" halPin="out-31" halType="bit"/>                     </pdoEntry>                   </pdo>             </syncManager>             </slave>         <slave idx="2" type="generic" vid="00004321" pid="0x01100053" configPdos="false">             <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>                 <syncManager idx="3" dir="in">                 <pdo idx="1A00">                                 <pdoEntry idx="6000" subIdx="01" bitLen="16" halType="complex">                         <complexEntry bitLen="1" halPin="in-00" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-01" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-02" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-03" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-04" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-05" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-06" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-07" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-08" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-09" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-10" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-11" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-12" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-13" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-14" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-15" halType="bit"/>                     </pdoEntry>                       <pdoEntry idx="6000" subIdx="02" bitLen="16" halType="complex">                         <complexEntry bitLen="1" halPin="in-16" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-17" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-18" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-19" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-20" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-21" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-22" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-23" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-24" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-25" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-26" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-27" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-28" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-29" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-30" halType="bit"/>                         <complexEntry bitLen="1" halPin="in-31" halType="bit"/>                     </pdoEntry>                   </pdo>             </syncManager>               </slave>     </master> </masters>
 

File Attachment:

File Name: slaves.txt
File Size:3.52 KB

 

File Attachment:

File Name: debug0.txt
File Size:762 B

 

File Attachment:

File Name: debug1.txt
File Size:20.72 KB

 

File Attachment:

File Name: pdos.txt
File Size:4.32 KB
Last edit: 3 years 6 months ago by whatawhiz. Reason: reformat

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

More
3 years 6 months ago #269660 by tommylight

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

More
3 years 6 months ago #269662 by whatawhiz
I selected the code and clicked the code button. I thought it was automatically hidden, so I submitted directly. Now I have reformatted it
The following user(s) said Thank You: tommylight

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

More
3 years 6 months ago #269664 by tommylight
Oh pictures! Nice. :)
Thank you.

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

More
3 years 6 months ago #269672 by db1981
try to map all pdos that are displayed with "ethercat pdos" . Seems that these boxes are preconfigured for an special use case. In "ethercat slaves" is displayed that these slaves don't support pdo configuration, may you are getting pdo offset errors with only mapping a part of the pdos.

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

More
3 years 6 months ago #269674 by rodw
You have all of the info you need. I have done I/O modules from the pdo output like that.
I can't see anything obvious wrong but I think I would include all of the TxPDO's for the devices
I'd also probably just add each slave device one at a time to your conf file

There are a couple of I/O devices in  two seperate ethercat conf xml files in my git here if you want some inspiration. github.com/rodw-au/linuxcnc-cia402
 

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

Time to create page: 0.506 seconds
Powered by Kunena Forum