PID controller calculates the error as the difference between the measured variables, and the set must. The control is trying to reduce the errors by modifying the process from the first variant.
PID controller error value is calculated as the difference between the measured variables and set points to. The controller tries to reduce errors. By modifying the process parameters from the beginning.