Processing of power supply by PLC