Closed loop - encoder/position not updating while moving
- backyardengineer
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
23 Mar 2026 10:19 #344626
by backyardengineer
Closed loop - encoder/position not updating while moving was created 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
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
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 718
- Thank you received: 438
23 Mar 2026 11:57 #344631
by meister
Replied by meister on topic Closed loop - encoder/position not updating while moving
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.
- backyardengineer
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
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.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17797
- Thank you received: 5206
23 Mar 2026 17:41 #344643
by PCW
Replied by PCW on topic Closed loop - encoder/position not updating while moving
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)
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