some good advice (pid)

More
30 Oct 2012 06:22 #26031 by jlviloria
Replied by jlviloria on topic some good advice (pid)
Peter,

<No, something is wrong if FF1 is not independent of P>


FF1 change a bit, and I got this result.


thanks
Attachments:

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

More
30 Oct 2012 06:35 #26034 by BigJohnT
Replied by BigJohnT on topic some good advice (pid)

No, something is wrong if FF1 is not independent of P


I noticed that when P is changed it made a small change in the centering and FF1 had to be adjusted when I tuned the BP.

John
The following user(s) said Thank You: jlviloria

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

More
30 Oct 2012 06:49 #26036 by PCW
Replied by PCW on topic some good advice (pid)
Yes, there may be a small interaction
(because the drives are not perfect velocity mode drives)
but this was a huge change like using a wildly wrong FF1 value,
perhaps the hal file was not updated or somehow out of sync

It also looks like the motor drive velocity loop is not tuned too well
(too low velocity feedback gain?),
you can see at the beginning error spike the slope of the PID out
being ahead of the velocity ramp to compensate for the drive's
lagging but the drive does not respond for maybe 20 mS or so

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

More
30 Oct 2012 06:52 #26038 by jlviloria
Replied by jlviloria on topic some good advice (pid)
this is best achieved (ignoring the peaks)

How do I remove the peaks?
looks good?
notice something wrong with my PID?

thanks,
Attachments:

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

More
30 Oct 2012 07:04 #26039 by PCW
Replied by PCW on topic some good advice (pid)
It looks like you should be able to have more P gain before instability (the oscillation) sets in
You can try slowly adding some D to see if you can make it stable enough to add more P
but the (fairly large) spikes may also be because your drive(s) are out of adjustment
(looks like too low velocity gain) or perhaps some other drive setting.

Do you have the drive manuals available?

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

More
30 Oct 2012 07:34 - 30 Oct 2012 07:34 #26040 by jlviloria
Replied by jlviloria on topic some good advice (pid)
I have the manual but printed.

I've been testing looks but failed to reduce the peaks, on the contrary increase.

think I have to adjust my drives? but that is more difficult.

check my manual to scan and upload the most important thing.

but the truth somewhat disappointed at not being able to achieve anything. but i keep trying.

increase my max_acceleration. and boot speed was faster.
Attachments:
Last edit: 30 Oct 2012 07:34 by jlviloria.

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

More
30 Oct 2012 08:19 #26042 by PCW
Replied by PCW on topic some good advice (pid)
Sure, this it expected, if you increase the acceleration, the peak errors will be larger

Have you tried slowly adding D as I suggested? this should reduce the oscillation

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

More
30 Oct 2012 09:56 - 30 Oct 2012 09:58 #26043 by jlviloria
Replied by jlviloria on topic some good advice (pid)
friend

You really need to adjust the driver?, Really gives me a little scared to go to damage the drivers, is that the procedure is simple. but remember my limitation of English (English correctly interpreted). and my lack of knowledge on the subject.

I try tomorrow with D. to see if the error is reduced.

I appreciate all your help, God bless.
Last edit: 30 Oct 2012 09:58 by jlviloria.

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

More
30 Oct 2012 21:15 #26066 by jlviloria
Replied by jlviloria on topic some good advice (pid)
Peter,

adjust the drivers in <tacho>. and zero pot.

Watch the new plot. I think it is much better in acceleration, were the peaks.
start and end.

the tacho was maladjusted.

good friend hope now if can be successfully completed.
Attachments:

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

More
30 Oct 2012 21:46 - 30 Oct 2012 21:48 #26069 by PCW
Replied by PCW on topic some good advice (pid)
Actually it looks like you went a little too far with the adjustment

At the beginning of the velocity ramp where position once lagged. now it leads

Whatever you adjusted on the drive, you should adjust for minimum spike at the beginning of motion

Also there seems to be a dropout of encoder counts during the slew. This needs to be looked into. I would check the encoder wiring and encoder power
(and make sure that the encoder shield wires are only grounded at one end of the encoder cable)

This may also be a symptom of a dirty encoder
Last edit: 30 Oct 2012 21:48 by PCW.
The following user(s) said Thank You: jlviloria

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

Time to create page: 0.262 seconds
Powered by Kunena Forum