Problems with Lichuan Ethercat servo drive

More
2 years 1 month ago #311076 by Sandro
It is this DVS servo motor from Aliexpress. It works with the same XML configuration like the Lichuans. I've just changed the product and vendor ID and removed the IO section. It has a 23-bit absolute encoder but I have configured it as 17-bit incremental atm:

de.aliexpress.com/item/1005005929510135....gatewayAdapt=glo2deu

And the spindle:

de.aliexpress.com/i/1005006232728097.html?gatewayAdapt=glo2deu


 

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

More
2 years 1 month ago #311077 by Sandro

Hello, thanks for sharing your configuration. I took a quick look and there is one thing I don't quite understand
net x-output <= cia402.2.velocity-cmd
net x-output <= pid.x.output
Is the direction above reversed? It should be
net x-output => cia402.2.velocity-cmd


Yes ths is a mistake on my end. But as mentioned it is for readability only.

This is given by:pitch of your ballsrews / Number of Encoder pulses per revolution.
In this case I would guess:
2^23 / 5   = 1677721.6
i.e. this tells you how many encoder pulses you get per physical movement of your machine.
This would foe example be for an sfu2005 ball screw with a 23bit encoder (23bit = 2^23 = 8388608)
(I'm pretty new to all of this so please correct me if I'm wrong)


Correct. And additionally for the velocity scale I have used 2^23 / 60 (as in 60 seconds) for the Lichuans and 2^17 / 60 for the spindle.
 

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

More
2 years 1 month ago #311079 by Sandro

you can do it like thisloadrt flipflop names=flip-is-on
addf flip-is-on servo-thread

net is-on       halui.machine.is-on  =>  flip-is-on.set
net is-on-reset motion.is-all-homed  =>  flip-is-on.reset
net go-home     flip-is-on.out       =>  halui.home-all


Thank you! This works like a charm. Machine is homed after enabling and ready to go.

I wanna see this actually moving a machine. Interesting about the CSV/CSP, but I think it makes sense in relation to what someone else said in another thread, that you are getting the reported position one frame late, so it always appears to lag, even though it "isn't".
 


I think I saw this post as well. But the following error was really high so I thought it can't just be that. But maybe I am wrong here. If anyone figures out how to properly run these in csp mode I would be very interested - no need for PID-Tuning in LCNC.

Sorry for the multiple posts, but editing in this forum is horrible.
 

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

More
2 years 2 weeks ago - 2 years 2 weeks ago #311937 by burnie
Thank you all. I finally got my servos working, but I'm stuck at implementing homing. I have read through the LCNC documentation on homing and more or less understand that part, but I don't get how to link that to the EtherCAT system, if I use the drive's internal homing mode, how do I select which mode to use? Or how do I configure external homing mode, I see that Rodw has made a cia402 home comp, how do I set that up?

My machine is a moving gantry machine with 2 y servos, all the servos have abs encoder. How should I implement homing on this machine? 

Ideally, I want the machine to be in a homed state and ready to use when LCNC starts and only need homing when the batter on the drives runs out by homing against a limit switch and then searching for the index signal (does that even work with 2 Y servo?). 

Edit: With Rodw cia402 home comp I was able to get the drive into a homing mode (showing 86ry) on the screen, but it does nothing.
Last edit: 2 years 2 weeks ago by burnie.

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

More
2 years 1 week ago #313223 by Macwolf
Hello, I use a different servo, but I also get Ethercat warnings. Can you briefly explain how to transfer the manufacturer XML to the servo?

Many thanks

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

More
2 years 1 day ago #313551 by GDTH
He, so far the stuff made here is super great!
i had a quick question about the cia402.comp. Maybe i am doing something wrong.
I have a servo on the z axis which needs to engage a brake, to make sure it doesn't destroy my table.
In the end i want this to be done by the driver itself (not sure yet how to do that)
But for now i wanted to be controlled through LCNC with :

net z-brake   cia402.0.stat_switched_on =>lcec.0.4.dout-5

However i am getting this error. All of the pins are non excisting. however when i look in the hallshow they do excist.
twopass: Error in file ./hallib/ethercat.hal:
    Pin 'cia402.0.stat_switched_on' does not exist

Does anyone have an idea?
Kind regards.
Andries

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

Time to create page: 0.424 seconds
Powered by Kunena Forum