Feedback loop following error

More
4 years 10 months ago - 4 years 10 months ago #228311 by PCW
Replied by PCW on topic Feedback loop following error
Not sure what you are saying. If you set both following errors to 25 mm you need to be 25 mm out of position before a following error is generated. Even if P is 0 (no feedback at all) you should be closer than this for al least a few moves because the velocity command stream should be very close to right.

The reason for a plot is so others can see what's happening and possibly diagnose
the problem. A plot of velocity and following error would help a lot.
Last edit: 4 years 10 months ago by PCW.

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

More
4 years 10 months ago #228313 by chris@cnc
Yes, plot of data would be helpful. 
Not sure if i understood right. The situation is: You move axis 1mm and encoder / Gui data run ahead and stop on max error. If so i guess wiring issue on encoder. 
Your command position data X-axis  goes this way. 
x-pos-cmd    <= joint.0.motor-pos-cmd
net x-vel-cmd    <= joint.0.vel-cmd
check this data in halshow. first must stop after 1mm second zero after 1mm

feedback from encoder
net x-pos-fb               <=  hm2_7i96.0.encoder.00.position
net x-vel-fb               <=  hm2_7i96.0.encoder.00.velocity
usually same as command data
If not, your encoder is wrong wired. Maybe TTL or RS422 mixed or what kind is used.

And in your hal are this lines in all axis double. 
net x-pos-fb     <= hm2_7i96.0.encoder.00.position
net x-pos-fb     => joint.0.motor-pos-fb
One in 
# ---closedloop stepper signals--- 
and
# ---Encoder feedback signals/setup--- 

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

More
4 years 10 months ago - 4 years 10 months ago #228314 by bobi4ko23
I tell it to go for 1mm and it doesnt stop to move until the following error is reached. What should I change in the hal files other than delete the duplicate lines?

In encoder count the encoder works fine and the stepgen also showes close to the right value when following error is reached. So I dont think the encoder is wired wrong.

Also the encoder is TTL and the jumper is in the right position.
​​​
Last edit: 4 years 10 months ago by bobi4ko23. Reason: Extra info

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

More
4 years 10 months ago - 4 years 10 months ago #228317 by chris@cnc
x-pos-cmd    <= joint.0.motor-pos-cmd
net x-vel-cmd    <= joint.0.vel-cmd
first command position second command speed. What Show this after command 1mm step?
Last edit: 4 years 10 months ago by chris@cnc.

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

More
4 years 10 months ago #228318 by bobi4ko23
I will change it and inform you tomorrow. Thank you very much.

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

More
4 years 10 months ago #228319 by bobi4ko23
These parameters are like this in my hal file? What do i change to?

net x-pos-cmd <= joint.0.motor-pos-cmd
net x-vel-cmd <= joint.0.vel-cmd

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

Time to create page: 0.076 seconds
Powered by Kunena Forum