Superconducting Magnetic Energy Storage (SMES) system is one of the key technologies to overcome the voltage sag, swell, interruption and frequency fluctuation by fast response speed of current charge and discharge. In order to evaluate the characteristics of over mega joule class grid connected High Temperature Superconducting (HTS) SMES system, the authors proposed an algorithm by which the SMES coil could be connected to the Real Time Digital Simulator (RTDS). Using the proposed algorithm, users can perform the simulation of voltage sag and frequency stabilization with a real SMES coil in real time and easily change the capacity of SMES system as much as they need. To demonstrate the algorithm, real charge and discharge circuit and active load were manufactured and experimented. The results show that the current from real system was well amplified and applied to the current source of simulation circuit in real time.