# How output is not zero if error is zero in control systems

In a classical negative control scheme where we have a plant and controller in series and no disturbance. The system is designed such a way to make output is equal to input no matter what problems occurs in the system. Let's say output of the system is equal to reference point or set point or input. Steady state error term becomes 0 and it is multiplied by controller making its output 0 which is multiplied by plant making output 0. Then, as I reckon, error term blows up to reference input(as output is zero) and we got non-zero output. The weird thing is I think output oscillates between 0 and reference input at all times. Can you help me understand what is going on? is not the purpose of the control scheme to make output equal to input at all times in the presence of noise and disturbance? What is the problem in my thinking?

• I note a fundamental misunderstanding in your question: “ 0 which is multiplied by plant making output 0” - most plant inputs induce a change in the plants output, not set the output directly. A good example would be an automobile, where the accelerator input creates a change in the velocity, instead of setting the velocity directly. If a plant simply passed or scaled its input to the output it probably wouldn’t need a controller at all! May 28 at 22:32

A simple P (proportional) controller will, in general, NOT track a set point exactly. As you correctly point out, there must be an error in order for the controller to have a non-zero output.

To track a set point so that the error goes to zero (after some time) it is necessary to add an integral term to the controller, giving a PI controller (proportional and integral). (Or, as Spehro Pefhany points out in his answer, the integral term may be in the plant, rather than the controller).

With a PI controller, if there is a non-zero error, that error will be integrated, and that integrated signal will eventually become large enough to move the plant so that there is zero error. When the error becomes zero, the integral signal stops growing. The input error is zero, but the controller output is non-zero. It is whatever it takes to ensure the plant is at the set-point.

• The compensation capacitor does not add an integral term, and the difference between the inverting and non-inverting inputs is not zero. The gain (proportional term) is very large, often on the order of 1 million, so the difference is a few millivolts or microvolts.
– τεκ
May 28 at 13:30

The controller and the plant each have some transfer function. If both are just multiplication then you'll get a persistent error that is inversely proportional to the gain of the controller. If the plant has a gain of 1 and the controller has a gain of 100 then at 50% setpoint you'll require an input of 0.5 and the error will have to be 0.005 or 1% of setpoint.

In a more realistic situation the plant output will not change instantaneously and too high gain can result in instability depending on the transfer function.

If either the controller or the plant integrates the input then you can have zero steady-state error.