PLC comms bug fixes