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