Programmable logic controller (PLC) is an industry computer control system that continuously monitors the state of the input device and …