Determination of PID parameters using table method

Determination of PID parameters using table method

W dokumencie opisane są tabelaryczne metody doboru nastaw w oparciu o model inercyjny pierwszego rzędu. Parametry modelu wyznaczane są z użyciem narzędzia Realtime Monitor Function
This document describes PID tuning using step response method. Settings are calculated base on a first order inertia model, where a model constatns are approximated using the GX Log Viewer graph

1. Realtime Monitor settings

To determine the waveform parameters, it will be necessary to add the control value (CV) and the process value (PV) to the monitoring. An set value (SV) can also be included to check the operation of the controller.

Realtime Monitor functions introduction:  Real Time Monitor Function guide

2. Determination of model

2.1. Step response

Set the value of the control signal to the level corresponding to the operating point and wait for the value to settle. Then increase the value of the control signal, e.g. by 10-20%. In the case of simple systems (e.g. heating plate temperature control), it is possible to make a jump from zero to the operating point.

2.2. Determination of gain

Position the blue cursor just before the CV spike occurs. The red cursor should be set where the measured value reaches a constant value. Click on the waveform of the measured value and read the Difference value (Blue->Red), which corresponds to the increment of the measured value (dPV).

By analogy, you can measure the gain of the control signal (dCV), but it is already known:
The gain K of the object is approximately:
K=dPV/dCV=999/200 =5
Time constant values will be calculated depending on the method.

2.3. T95 method

The method is based on the measurement of the delay time and the time after which the measured value reaches 95% of the value in the steady state (relative to the initial value). The next steps are shown in the diagrams.

Delay measurement - set the first cursor at the moment of the control value jump, and the second one at the moment when the measured value starts to increase. The measured time can be read in the Span field (Blue->Red).


The time constant is estimated as 1/3 of the time value from the beginning of the measured value increase (after the delay time has elapsed) to the moment when the measured value reaches 95 values in the steady state after the control jump:


2.4. Secant method

In the secant method, the delay time and the time constant of the object are determined based on two time measurements:


- from the occurrence of a CV jump to reaching 50% of the steady-state value.


The values of the time constant and delay time can be calculated from the following formulas:

3. Regulation constants calculation

Based on the knowledge of the object gain K, the time constant T and the delay time Top, the PID controller settings can be calculated based on the setting tables. This is one of many examples available in the literature.


For example, for the model parameters calculated with the T95 method and 0% overshoot, we will obtain the PID controller settings:

In the PID parameters, the gain values are given in percent, the integral action time constant in 100 millisecond increments, and the derivative action time constant in 10 millisecond increments:

In order to enter the calculated settings correctly, the following dependencies must be taken into account:

An example of a response to a jump disturbance:

The obtained constants may be far from optimal. The method can be useful for rough determination of regulation constants, e.g. when there are problems with the autotuning function.

    • Related Articles

    • iQ-F PID controller function block

      This article describes implementation of a PID instruction inside a function block for iQ-F PLC. Ten artykuł opisuje blok funkcyjny dla sterownika iQ-F implementujący instrukcję PID. 1. Function Block This function block is a iQ-F PID instruction ...
    • Real Time Monitor Function guide

      This document describes Real Time Monitor function 1. Opening method There are two methods to start the Realtime Monitor Function. 1.1. Realtime Monitor Function from GX Works Tool menu To start monitoring of PLC controller open Tool->Real Time ...
    • iQ-F PWM outputs controler for PID temperature regulation

      This article describes the function block to control heating/cooling outputs with PWM for temperature control using PID Ten artykuł opisuje blok funkcyjny do sterowania wyjściami grzania/chłodzenia wykorzystując PWM dla kontroli temperatury poprzez ...
    • Połączenie zdalne przez VPN ze sterownikiem PLC programowanym w środowisku GX Works 3 (IQ-F IQ-R)

      The article describes remote connection method via VPN with IQ-R and IQ-F programmable controller (GX Works 3) Artykuł opisuje podłączenie zdalne z VPN do sterowników serii IQ-R i IQ-F (GX Works 3) 1) Projekt na PLC Utwórz program na sterownik PLC, ...
    • Modbus TCP on Build-in Ethernet port in iQ-F and iQ-R - Predefined Protocol

      This document describes the configuration of Modbus TCP communication on a bulit-in Ethernet port with STLite (750-352).  Wersja w j. polskim dostępna w załączniku Configuration Ethernet connection In Gx Works 3, open the embedded Ethernet port ...