The present invention relates to an electrosurgical apparatus including an electrosurgical generator that can be coupled to an electrosurgical applicator. In one aspect of the invention, the controller of the electrosurgical generator is configured to perform a dynamic leakage current compensation algorithm or function to compensate for the leakage current of the co-operating cable coupling the electrosurgical applicator and the electrosurgical generator to the electrosurgical generator. In another aspect of the present invention, the controller of the electrosurgical generator includes a dynamic leakage current compensation algorithm or function to dynamically control the crest factor of the output waveform of the electrosurgical generator based on the measured impedance across the active and return terminals of the electrosurgical generator. .본 발명은 전기수술 어플리케이터에 결합될 수 있는 전기수술 발전기를 포함하는 전기수술장치에 관한 것이다. 본 발명의 일 측면에서, 전기수술 발전기의 제어기는 전기수술 어플리케이터 및 전기수술 어플리케이터를 전기수술 발전기와 결합시키는 동반 케이블의 누설전류를 보상하기 위해 동적 누설전류 보상 알고리즘 또는 기능을 수행하도록 구성된다. 본 발명의 다른 측면에서, 전기수술 발전기의 제어기는 전기수술 발전기의 액티브 및 리턴 단자 양단에 측정된 임피던스에 기초하여 전기수술 발전기의 출력 파형의 파고율을 동적으로 제어하기 위해 동적 누설전류 보상 알고리즘 또는 기능을 수행하도록 구성된다.