A large scale of renewable energy employing grid connected electronic inverters fail to contribute inertia or damping to power systems, and, therefore, may bring negative effects to the stability of power system. As a solution, an advanced Virtual Synchronous Generator (VSG) control technology based on Hamilton approach is introduced in this paper firstly to support the frequency and enhance the suitability and robustness of the system. The charge and discharge process of power storage devices forms the virtual inertia and damping of VSG, and, therefore, limits on storage capacity may change the coefficients of VSG. To provide a method in keeping system output in an acceptable level with the capacity restriction in a transient period, an energy control algorithm is designed for VSG adaptive control. Finally, simulations are conducted in DIgSILENT to demonstrate the correctness of the algorithm. The demonstration shows: (1) the proposed control model aims at better system robustness and stability; and (2) the model performs in the environment closer to practical engineering by fitting the operation state of storage system.