Download HF2 User Manual - Zurich Instruments

Transcript
3.11. Tutorial PID Controller Tuning Tools
3.11.4. Determining the PID Parameters Manually using the
Open Loop Bode Plot
In this section we apply the Ziegler-Nichols method using the tuning tools available in the PID tab.
To use these tools we first have to provide a system model that describes the device under test.
We specify the model in the DUT System model section of the PID tab. Since our device under test
is a simple feedback cable, a suitable model for our system is the All Pass model and we set the
gain to 0.7071. This gain corresponds to 1/√2, appropriate since the PID input, demodulator X, is
in RMS units (we assume the cable itself has a gain of 1). We don't need to select Negative Gain
or add an Integrator to the model. See Figure 3.55 for a screenshot of the model's parameters
in the PID tab.
In the Bode Plot sub-tab of the PID tab the user can plot the transfer functions of various
components of the system or the entire system itself. In particular we can plot the transfer
functions of:
• PID
• System model for the Device Under Test (DUT)
• Demodulator filter (updated with the current settings)
• Combined system model and demodulator filter
• Open loop of the entire system: the system model, demodulator filter and PID controller
• Closed loop of the entire system: the system model, demodulator filter and PID controller;
this describes the full feedback system
Note
With the exception of the PID and demodulator filter Bode plots, the reliability of the bode plots
depends on the accuracy of the provided model for the DUT.
In the following, we'll make use of the Open Loop Bode Plot to determine the critical gain. The
Open Loop plot can be used to tell whether the feedback system with the current P, I and D gains
is stable or not. The top plot is the Bode magnitude plot and the bottom the Bode phase plot. By
the definition of feedback systems, the closed loop system is instable when the open loop gain is
greater than 1 at the frequency where the open loop phase is -180°.
The phase margin and gain margin both give an indication of the proximity to instability. The phase
margin is defined as the amount of phase lag required before the closed loop system becomes
instable. Similarly, the gain margin is defined as the smallest amount that the open loop gain can
be increased before the closed loop system becomes instable. The blue bar in the Open Loop Bode
magnitude plot indicates the frequency where the gain margin is 0 dB (corresponding to a gain of
1 in linear units) and the blue bar in the Open Loop Bode phase plot indicates the frequency where
the phase margin is zero. The actual phase margin (P.M.) and gain margin (G.M.) of the feedback
system are displayed at the right-hand side of the Open Loop bode plot and are highlighted in
green in the Open Loop Bode plots. The distance along the green line between the dashed red line
and the black curve of the bode plot gives the gain margin, respectively, phase margin.
By definition, a gain margin of 0 dB corresponds to the point after which the system becomes
instable, and if we set I and D to zero, then the value of P that produces an open loop gain margin
of 0 dB is exactly the critical gain PU. This is visible in the open loop Bode plot as when the phase
margin and gain margins can be found at the same frequency and the blue and green lines lie on
top of one another. We now proceed to find this point experimentally by increasing the controller's
P gain.
HF2 User Manual
Revision 30817
Zurich Instruments
96