PLC memory backup