I am trying to understand the function of a PID Controller.
It returns a value, which is the sum of three components. The proportional, derivative and integral components. I am having issues grasping the usage of the integral component.
I know what an integral is. Integration is, in this case, the accumulation of the errors captured by the controller. In other words, in every iteration the current error is added to some variable, which is then multiplied by some constant and added to the result.
However, I fail to see how is such accumulation practically helpful. I mean, its actual role in the formula.
I have seen several pages. All of them mention the same thing: it eliminates some "offset". I'm afraid I don't know what this "offset" means and, more importantly, how does it eliminate it exactly. For example, I understand very well the role of the derivative, as you can get the previous instant rate of change which allows you to attempt to predict the future error.
I was hoping this was the right place to ask this.
I had worked with PID controllers in the application of gas chromotography. the integral function of PID control feedback mechanism is akin to your "tare" function in a weighing machine. When you go to a counter in a store, you measure your purchases (eg, food items), that guy at the counter presses tare button to bring the meter read "0" offsetting the error of not only the previous measurement but also all the positive and negative errors it had accumulated over the past measurements. If the dust keeps accumulating on the weighing pan, the measurements gets adjusted strongly to subtract the weight of the dust. Similarly, in a PID controller, the offset is nothing but to get the process shoot to the baseline by reacting strongly ( by a stronger feedback to in-control process by adjusting to the errors of all the past measurements summed up (both negative and positive errors). This was my understanding of the integral component of the PID controller. I hope this answers your question.