A programmable logic controller (PLC) is a digital computer used for automation of electromechanical processes, such as control of machinery on factory production lines.
PLCs were developed in the 1970s to offer a more flexible option compared to the hard-wired automation controllers based on relay racks which were dominant at the time.