Closed loop - encoder/position not updating while moving

More
23 Mar 2026 10:19 #344626 by backyardengineer
Hello,
i am currently stuck implementing a direct closed loop (2 axis lathe, parallel port, stepper motor, linear scale for closed loop).
The problem is: I do get the right position feedback, when moving manually (DRO display is correct) and i can see the correct encoder positions (in Hal-Scope: encoder.0.position). However, as soon as i try to move the axis, it starts to move and errors out with following error. If i look in the hal-scope, the "encoder.0.position" does not move one bit during the move (stepper is moving). 

--> Why does read out the position while idling but not while moving ?
Thanks 
Attachments:

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

More
23 Mar 2026 11:57 #344631 by meister
maybe the move is to fast or the resolution of the encoder too high for parport

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

More
23 Mar 2026 12:09 #344632 by backyardengineer
Replied by backyardengineer on topic Closed loop - encoder/position not updating while moving
nope, moving way slower than by hand. It´s not getting any position change at all, even with super slow acceleration/velocity

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

More
23 Mar 2026 17:41 #344643 by PCW
Maybe an electrical issue, if you do a  very slow commanded move
do the parallel port inputs pins used for reading the quadrature encoders
toggle as they should?  (in halscope)

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

Time to create page: 0.098 seconds
Powered by Kunena Forum