07-13-2018 06:31 AM
@Ben wrote:
Would anyone care to offer any suggestion on how to go about tuning two PIDs each running one of the hydraulic servo valves?
I can hear our process engineer say: "PID controllers are the worst kind of controller you can come up with. They're very general applicable, but terrible at what they do".
It would be better to design a custom MIMO system, but that requires process engineering knowledge (I tried, but not my cup of tea).
Synchronizing two parallel PID's would almost certainly involve hacking and tweaking 'until it works'.
07-13-2018 08:30 AM
My first thought was: Mechanical problem .. mechanical solution...
Couple the valves and use one controller
(Highlandermode: https://www.youtube.com/watch?v=sqcLjcSloXs)
07-13-2018 10:22 AM
Application Story
We were testing helicopter transmissions under extreme load.
Strain gauges were carefully hand laminated to the gear teeth and a giant bundle of wires snaked out to the DAQ hardware.
A big motor connected to a huge reducer would drive the transmission against an air brake. The brake would go from 0 to around 20 kNm, but it had to ramp and hold steady as quick as possible because the wires pulled in as the gear turned. Only one rotation was possible.
Not only was this a major programming challenge, but all the DUTs were basically priceless prototypes.
Fortunately, LabVIEW for the win on this one. Setting up the delayed PID I needed to manage delay in the operating the air brake would have been pretty much impossible otherwise.
The only near disasters we had were once when brake was run "dry", which made it extra grabby. Fortunately the emergency stop caught it in time and nothing was damaged.
The one that made us all jump was when someone forgot to bolt the brake back down. It was pretty heavy, but not 20 kNm heavy. Fortunately I caught the movement out of the corner of my (good) eye and mashed one of the big red buttons before something really bad happened.
The durability test on this one was fun too. Drain all the oil and spin the transmission way past redline.
Had some hydraulic lines blow during these tests, but the DUT never did explode, even though there were precautions for just that. It sure made some crazy noises though. (...like how I imagine the soixante neuf drive would sound....extra points for anyone knowing that obscure reference )
07-13-2018 10:36 AM
07-13-2018 11:33 AM
@BowenM wrote:
So earlier today you posted a link to some Mainstream Preppers forum... which made me think of you... which in turn made me wonder if you'd ever gotten this solved.
Sadly - I missed your last two updates at the time. Glad you fixed the original problem! Did you ever get the two separate PIDs working together?
After the customer saw the price tag of upgrading to two 500 Hp pumps, upgrading the electrical service to run them...
They decided the system was just fine the way it is now.
Ben
07-13-2018 12:07 PM
Same disclaimer as Bob, of course 😄
I assume it's not you doing the PID, but that hardware has itself a PID incorporated which processes the control signal to get the hardware to the setpoint. As a first step, I would re-scale the two graphs for matching average amplitudes in order to better display the time-lag between them (currently, the black has a lower amplitude, causing the signals to cross). Ideally, you should be able to shift, scale, subtract so only the high frequency remains. The shift will tell you about the time lag. (Or just do a FFT and look at the phase difference of the dominant frequency)
The amplitude of the oscillations itself seems to be proportional to the amplitude of the control signal. They seem easily 4x larger near the peaks compared to the valleys. Do these oscillations remain if you keep the drive signal at a constant value? Do they disappear if the controls signal is zero?
Do you have some real data to play with?
07-13-2018 12:16 PM
@altenbach wrote:
Same disclaimer as Bob, of course 😄
...
Do you have some real data to play with?
The original problem was a poorly tuned PID and I tuned it to work as expected and stop breaking things.
My follow-up about tuning two PIDs was prompted by the customer asking;
"So now that it works, what would it take to double the speed?"
Since it required upgrading the hydraulic system the cost convinced them to stick with what was working.
Ben
07-16-2018 04:31 PM