A PLC is s general purpose controller. Often these are used in mechanized automation, but it very broad in application. PID usually refers to a form of closed-loop control; named for the terms Proportional, Integral and Derivative. PID controllers are often used in temperature control.