A generator for the delivery of high frequency alternating current to a medical instrument has a power supply unit, a high frequency generator primary unit (HF generator primary unit), an application unit, and a control unit. The HF generator primary unit is connected to the power supply unit and the application unit and designed to supply the application unit with high frequency alternating current during operation. The application unit is electrically connected in a switchable manner to connections for connecting a medical instrument via at least one relay. The control unit is galvanically separated from the application unit and designed to control the at least one relay and the application unit as applicable. The control unit is connected to the application unit via an intermediate control circuit, wherein the intermediate control circuit is galvanically separated both from the control unit and from the application unit.