How to set current encoder pos to current position while homing by Driver.

More
11 months 3 weeks ago #337918 by tar_san
I have a problem. (EtherCAT Servo motor  Incremental )

1) while Homing by driver ..
2) begin to move  and then push Emstop.
3) Turn on " Machine Power "
4)  Suddenly servo motor move to the previous position( when I push homing button)  really crazy fast .

I think while homing, Servo driver control the position.

So I believe , While homing, LinuxCNC control position must be set by current servo driver encoder pos.

Please give me a hint to fix this problem.

I'm using ..
LinuxCNC Version 2.9.4
Lichuan LC10E Servo motor (17bit inc) 
CIA402, Custom Homing component
 

Please Log in to join the conversation.

More
11 months 3 weeks ago #337971 by andypugh
I would rather expect joint.N.motor-pos-cmd to re-init to the current encoder feedback value (joint.N.motor-pos-fb) on restart.
Maybe you have a missing HAL connection?
It's probably worth halscoping / halmetering those pins (and others) to see what is happening.

Please Log in to join the conversation.

More
11 months 3 weeks ago #338007 by tar_san
Thanks. I'm almost solving this problem and finalize my project. After that, I'm planning to share my "Lichuan-EtherCAT" project .

Please Log in to join the conversation.

Time to create page: 0.246 seconds
Powered by Kunena Forum