The control signal = e*Kc + Integral(e) dt * KI + Kd de/dt
where Kc is the proportional gain
KI is the Inegral gain, and Kd is the Integral gain.
If L=1, the above equation is used .
If L is not equal to 1, then the proportional error contribution is changed. instead of being e*Kc, it is now changed to e*Kcmodfied. In effect, The gain multiplying the error e is modified from Kc to
Kcmodfied = Kc* [L + (1 - L) * abs(e) / sprng]
where sprng is the set point range. If the set point is fixed, or if it changes slowly (), then set L=1, and the modification is ignored. Kcmodfied=Kc
If L=0.2, the
Kmodfied=0.2Kc + the other (positve term that depend on L and the ratio of error to SetPointRange).
If the error =0, then Kcmodfied=0.2Kc, and this is the minumum value of the modfied proportional gain