| gpetilli |
12-01-2014 11:41 |
Re: Jags resetting in CAN
Quote:
Originally Posted by DMike
(Post 1325670)
In speed mode using the USD E4P-250-N-S-D-D-B encoder we are tripping the JAG reset when we switch from +max to -max or the opposite, using a joystick controller. This happens in any P value , we are not an I or D value. No matter how we tune the PID, we see a choppy transition from + to -. In % votage mode everything works fine.
|
We had this issue three years ago and tracked it down to the Jaguar browning out. The PID tries to drive max current to achieve the large change in commanded velocity. We measured peak currents well over 100A - the Jaguar is rated at 60A for short (<5sec ?) periods and 92A instantaneous. The self resetting breaker in the PDB is only rated at 40A but I seem to remember someone on CD testing it and reporting 2x tripping in ~15sec.
You need to limit the peak current to <60A. There are several ways to do this, the best being to add a slew limit or ramp. There is a 0.125sec ramp in the Jaguar code but it is not used in PID mode. You can/should add a ramp in your code before you send the command to the PID.
Also, the Jaguar uses an integrating velocity PID which is best tuned by using the I term first and then adding the P term, keep D term zero. There is a CD thread from 2011 "jaguar speed control only reaches 50%" - start with reply 34.
|