Real-time simulation of a Microgrid Control System Using MODBUS Communication