- Posts: 77
- Thank you received: 0
Problems with Lichuan Ethercat servo drive
I have now received my drive as well and tested with the config of yours. Unfortunately no luck so far. Here is what is reported back with "sudo dmesg -wH":
[Apr20 19:33] EtherCAT: Requesting master 0...
[ +0.000002] EtherCAT: Successfully requested master 0.
[ +0.000175] EtherCAT 0: Domain0: Logical address 0x00000000, 196 byte, expected working counter 1.
[ +0.000002] EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 196 byte, type LWR.
[ +0.000006] EtherCAT 0: Master thread exited.
[ +0.000001] EtherCAT 0: Starting EtherCAT-OP thread.
[ +0.000021] EtherCAT WARNING 0: 1 datagram UNMATCHED!
[ +4.295428] EtherCAT ERROR 0-0: Timeout while setting state OP.
[ +0.007773] EtherCAT 0: Slave states on main device: SAFEOP.
[ +12.904002] EtherCAT 0: Slave states on main device: SAFEOP + ERROR.
ethercat slaves -v reports the following, so address should be correct:
Sorry I don't know how to format code here.=== Master 0, Slave 0 ===
Device: Main
State: PREOP
Flag: +
Identity:
Vendor Id: 0x00000766
Product code: 0x00000402
Revision number: 0x00000204
Serial number: 0x00000000
DL information:
FMMU bit operation: no
Distributed clocks: yes, 64 bit
DC system time transmission delay: 0 ns
Port Type Link Loop Signal NextSlave RxTime [ns] Diff [ns] NextDc [ns]
0 MII up open yes - 3652581971 0 0
1 MII down closed no - - - -
2 N/A down closed no - - - -
3 N/A down closed no - - - -
Mailboxes:
Bootstrap RX: 0x0000/0, TX: 0x0000/0
Standard RX: 0x1000/128, TX: 0x1100/128
Supported protocols: CoE
General:
Group: EtherCAT Driver
Image name:
Order number:
Device name: LC10E_V1.04
CoE details:
Enable SDO: yes
Enable SDO Info: yes
Enable PDO Assign: yes
Enable PDO Configuration: yes
Enable Upload at startup: no
Enable SDO complete access: no
Flags:
Enable SafeOp: no
Enable notLRW: no
Current consumption: 0 mA
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Did you have to do some special configuration on the driver end?
Please Log in to join the conversation.
Tried:
ethercat state -p0 PREOP -> drive shows 20ry, 2 is flashing
ethercat state -p0 INIT -> drive shows 10ry
ethercat state -p0 SAFEOP -> drive shows 20ry, 2 is flashing
ethercat state -p0 OP -> drive shows 20ry, 2 is flashing
Linuxcnc startup:
20ry
Switch machine on
40ry
10s later
F0ry and log shows safeop+error
Log Shows:
Please Log in to join the conversation.
Display shows "_10ry", not flashing, and dmesg:
Display shows "_20ry", the two is flashing, and dmesg:
Display shows "_20ry", the two is flashing, and dmesg:
Startup of LCNC:
Display shows "_F0ry", not flashing, and dmesg:
I find this interesting when manually switching states:
Please Log in to join the conversation.
Please Log in to join the conversation.
Then i deleted the PDO mapping with command:
Now im able to get the servo in OP mode using:
After starting linuxcnc, the pdos are remapped and the same error (previus post) occurs.
Really dont know what to do now, that doesnt make sense to me, espacially that it doesnt work when i set the pdos with twincat.
Please Log in to join the conversation.
- scottlaird
- Offline
- Premium Member
-
- Posts: 136
- Thank you received: 0
- RTelligent ECT60. Supports 3x RX and TX PDOs with 12 entries each, at 0x1600, 0x1601, and 0x1602.
- RTelligent ECT60X2. Supports 2x RX and TX PDOs with 12 entries each, at 0x1600 and 0x1610. 0x1601 returns an error. 0x1620 returns an error.
- Leadshine 2CS3E-D507. Supports 3x RX and TX PDOs with 8 entries each at 0x1600, 0x1601, etc. Setting 0x1600:09 returns an error.
- Omron MX2. Supports 512x (!) RX and TX PDOs with 2 (!) entries each, at 0x1600-0x17ff. Setting 0x1600:03 returns an error.
I suspect there are some devices that will let you use anything in that general range for PDOs, and just follow whatever you put into the sync manager config. Others are *extremely* limited. Even better, a lot of this depends on the exact firmware involved, and the firmware doesn't always match the documentation. For example, RTelligent's ESI claims that the ECT60X2 has the same config as the ECT60, but mine *really* doesn't.
Deleting the PDO config mostly just means that there's no way to tell the device what to do; that's the important part of the config
To start with, what does `ethercat pdos` show *after power-cycling but before running LinuxCNC*? And what does your XML file look like?
I just broke down and ordered a cheap Lichuan LC10E, so hopefully there will be a driver for it by late May, but that depends on shipping and my work schedule.
Please Log in to join the conversation.
