Dual axis Lichuan driver configuration problem

More
04 Jan 2026 19:58 #340984 by lateAtNight
I've been really curious about EtherCAT and decided to take a deep dive and a bit of risk in ordering a Lichuan CL57E-2A. It's a 2 axis, closed-loop stepper driver: en.xlichuan.com/product-xq/200.html

It took a little while looking through the forum, but once I found the information in this thread , particularly from Robbbbbb (thank you!), I got the drive into an OP state and 1 axis working in LinuxCNC fairly easily. So it was with a lot of expectation that I added the configuration for the 2nd axis, but then got nowhere for days.

Has anyone had success with a drive that has 2 axes?

I run `ethercat pdos` and have created the config .xml file attached. As I said, the first axis works, but the second doesn't get set up correctly, and it isn't controllable from LinuxCNC. Using the show HAL configuration tool, I can see the statusword in LCEC HAL pin shows `0x0000` for the second axis. Reading the value via `ethercat upload -p 0 0x6841 0 -t uint16`, I can see that it's not `0x0000`. So I'm thinking something is wrong with my config file or with the lece driver? Is it normal to have two PDOs in one sync manager?

Many thanks,
David.

 
Attachments:

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

More
05 Jan 2026 19:26 #341019 by Hakan
It happens there are several pdos in a syncmanager, it's ok.

I don't see anything obvious wrong. So it can be some details.
Here are some options.
Check output of syslog "sudo dmesg | tail -30". The EtherCAT master writes 
messages there especially things it doesn't like.

The PDOS might not be configurable. You then need to specify exactly
the order the pdoentries appear, with correct sizes, don't skip anything. You have your listing
in some disorder so that might be it. Take help from the output of "lcec_configgen --typedb=false"

 

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

Time to create page: 0.068 seconds
Powered by Kunena Forum