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