programmable logic controller plc block diagram