Nowadays, with an increase in the number of wind power plants, the rules for connecting these plants to the grid have been changed. Under the new standards, to maintain a frequency stability, the power variations of wind farms must be limited. For this reason, the use of the energy storage sources along with wind turbines have been proposed and many publications have been published on this subject. One of the energy storage systems is the hybrid energy storage system with battery and capacitor. In this paper, the control of the hybrid energy storage system with battery and capacitor for the PMSG based wind turbines has been investigated and a method is proposed to control and divide the power between the battery and the capacitor. By eliminating the unnecessary charges and discharges of the battery, which existed in the conventional approaches, this method improves the performance of the energy storage system and increases the battery life compared to the conventional methods. Finally, the functionality of the proposed method is investigated by simulation in MATLAB/Simulink Software.