===== Ziegler-Nichols Loop Tuning ===== The Ziegler-Nichols loop tuning protocol(([[https://staff.guilan.ac.ir/staff/users/chaibakhsh/fckeditor_repo/file/documents/Optimum%20Settings%20for%20Automatic%20Controllers%20(Ziegler%20and%20Nichols,%201942).pdf|Optimum Settings for Automatic Controllers, by J.G. Zieger and N. B. Nichols]] and\\ [[https://en.wikipedia.org/wiki/Ziegler%E2%80%93Nichols_method|Wikipedia]])) is a simple method to establishing the loop parameter values for a PI or PID control loop. This protocol is designed to optimize the loop for disturbance rejection.\\ ==== Links ==== Click here for the [[slice:qt|SLICE-QTC Manual]].\\ Click here for the [[slice:quick_start_qt|SLICE-QTC Quick Start Guide]].\\ Click here for the [[slice:qt:API|SLICE-QTC API]].\\ Click here for the [[https://www.vescent.com/products/electronics/slice/slice-qt-four-channel-temperature-controller/|SLICE-QTC web page]].\\ Click here for the [[https://github.com/Vescent|Github page for SLICE-QTC GUI]].\\ Click here for the [[https://github.com/Vescent/SLICE-QT-Firmware-Upgrade|Github page for SLICE-QTC firmware revisions]].\\ Click here for a [[https://youtu.be/jCuHNOW5q8c|Video Tutorial]].\\ ==== Instructions ==== | {{ :warning-sign.png?50&nolink }} | There is the possibility for the loop to go unstable at too high gain. Use caution as gain is increased. | - From the Home Screen, touch the Channel icon for the loop to be tuned - Touch Settings > PID Params - Choose a Set Point temperature - Set Proportional Gain (KP) to 0 - Turn off Integral and Differential portions of the loop (TI & TD, respectively) - While monitoring the error in temperature on rolling graph on the SLICE-QTC display or an [[slice:qt#front-panel_inputs_outputs|external oscilloscope]], **slowly** increase (~10% per increment) KP until the error begins to oscillate - Use the {{slice:graph_scale_x.gif}} and {{slice:graph_scale_y.gif}} icons, to scale displayed response appropriately - Use the {{slice:graph_pause.gif}} icon to pause the graph - Note: the pause icon only pauses the graph, not the servo control - Note KP where oscillations of increasing amplitude begin; this is KP, cr, the critical proportional gain. - Use the Cursors enabled by touching the {{slice:cursors.gif}} icon to measure the period of oscillation, Tcr - You can use the two rotary knobs or touch & drag the cursors on the touch screen - Use the following table to set the values of KP, TI, and TD | **Type of Control Loop** | KP | TI | TD | | **PI** | 0.45•KP, cr | 0.83•Tcr | 0 | | **PID** | 0.6•KP, cr | 0.5•Tcr | 0.125•Tcr |