The invention belongs to the field of fault protection of a high-
voltage direct-
current generator controller, and particularly relates to a
software design method for excitation positive
short circuit of a generator controller, which comprises the following steps of: setting excitation protection conditions, and when the frequency of a permanent
magnet machine is greater than or equal to a network
casting rotating speed, a voting unloading
signal is network
casting permission and a control command of a main
contactor is switched on; when the excitation protection condition is met, an excitation over-ground
short circuit fault protection mark is set, excitation is removed, and the main
contactor is switched off; when it is detected that the excitation positive
voltage is normal for a first continuous number of times, eliminating the excitation positive
voltage abnormal count and the excitation over-ground
short circuit fault mark; and if the frequency of one beat of the permanent
magnet machine is smaller than the network
casting rotating speed or the voting unloading
signal is unloading or the main
contactor control command is disconnection, clearing the excitation positive voltage abnormal count, the excitation positive voltage jump count and the excitation over-ground
short circuit fault mark. And the continuous short circuit or intermittent
short circuit fault of the excitation positive voltage can be accurately identified.