Problems with Lichuan Ethercat servo drive

More
2 years 6 months ago #299395 by drboeller
I tried to run the servo with twincat and the esi config file. This worked. Then i tried to remap the pdo´s in twincat so that they match with the ethercat-config.xml. Still the same issue.

Then i deleted the PDO mapping with command:
Code:
ethercat -p0 --type uint8 download 0x1600 0 0 ethercat -p0 --type uint8 download 0x1a00 0 0

Now im able to get the servo in OP mode using:
Code:
ethercat states OP

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 or Create an account to join the conversation.

More
2 years 6 months ago #299511 by scottlaird
If you look at the PDO output from post #1, it looks like it's using somewhat unusual PDO addresses -- 0x1b01 and 0x1701, while the XML file going around uses 0x1600 and 0x1a00. PDO mapping and addresses seems to vary a *lot* between various CiA 402 Ethercat devices that I've seen. Examples:

- 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.
The following user(s) said Thank You: rodw, Sandro, cncLab

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

More
2 years 5 months ago - 2 years 5 months ago #299692 by Sandro
Thank you for helping us out scott!

This is what ethercat pdos looks like after power-cycling (ethercat_pdos.txt) and ethercat pdos after LCNC start and subsequent shutdown (ethercat_pdos_after_startup.txt). I have also attached the XML file I am currently using.
Last edit: 2 years 5 months ago by Sandro.

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

More
2 years 5 months ago #299741 by scottlaird
Thanks. Nothing leaps out at me here, although I'm not sure that the DC config is right. To verify that, I need the ESI file for the LC10E. Failing that, the information *might* be in the LC10E manual.

This is surprisingly difficult to find. servo.xlichuan.com shows up on Google but doesn't list the LC10E or anything similar. Aliexpress has a broken link to www.lichuanservomotor.com/ ; cutting and pasting that shows "Ethercat AC Serco Motor kit" listings that show the LC10E (and have images labeled "LC10E") but don't actually use the term "LC10E" in text anywhere.

Searching Google a bit more turns up aqtronic.com/wp-content/uploads/2023/10/...manual-A5-driver.pdf , which says that it's the LC10 (non-E) manual, but has "A5" in the description. Looking at the Lichuan A5 on their website shows that it's *also* called the LC10, and that it comes in two flavors, the LC10P and LC10E. But that's in an image, so you can't search for it. Of course. The A5 manual is more or less identical to the one linked above. It says that there's an EtherCAT version, but provides no information whatsoever about EtherCAT beyond that. No SDO info, etc.

I *think* this is a new product for them; they posted about it on Youtube and Facebook in late April, so maybe the English-language manual is still waiting for translation? I'll poke at their FB page and see how helpful they are.

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

More
2 years 5 months ago - 2 years 5 months ago #299748 by Sandro
I have created a folder which contains the user manual which I have received from Lichuan as well as the XML-File provided (LC10E V1.04_slave_description_source_lichuan.xml). I have also generated a slave description XML after power-cycling with the "ethercat xml" command (LC10E_slave_description). From the XML provided by Lichuan I took a screenshot from the DC section.

drive.google.com/drive/folders/1tk1QHigm...g8cWkT_b?usp=sharing
 
Last edit: 2 years 5 months ago by Sandro.

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

More
2 years 5 months ago #299757 by pippin88
The LC10E / A5 Ethercat manual is not on their website as far as I could find.

They emailed me a copy. I have put it, and the XML file they sent me on OneDrive:

1drv.ms/f/s!Ag2mbb7kEO9giLxzBJsl1sAU7TO8FA?e=Ch5iFU

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

Time to create page: 0.107 seconds
Powered by Kunena Forum