This work proposes using a control system for the operation of a Minigrid System composed of two types of sources: an Inverter Based Resource (IBR) and a Synchronous Generator. The system uses a very efficient Digital Genset Controller that optimizes the performance of the Minigrid, which can operate in island mode or connected to the external grid. NEPLAN Web Services are also used in the SCADA system for the implementation of the power management system based on the optimal power flow solution. The overall work was implemented in a laboratory with real technologies in generation, control, communication, and load.