The invention provides an optional
voltage type drainage circuit structure which comprises a drainage circuit, a
control circuit, a detection circuit and a set switch, wherein the detection circuit is connected with a pipeline testing terminal and a
reference electrode of a
metal pipeline protection circuit structure, and is sequentially connected with the
control circuit and the drainage circuit; the
control circuit is connected with the set switch; the drainage circuit is divided into a main circuit and a spare circuit, and is connected with a
magnesium anode of the
metal pipeline protection circuit structure. The optional
voltage type drainage circuit structure has the effects that the function of intelligent 'on-demand drainage' can be realized by the circuits; the whole drainage
system does not have drainage blind area
voltage, so that the consumption of the
magnesium anode is greatly reduced, and the
operating cost is saved. The working state of the main circuit is detected by the control circuit regularly every 2h-4h; if the main circuit is abnormal due to damage, the main circuit is immediately switched to the spare circuit, and the
negative potential of the
magnesium anode is isolated by the spare circuit and can not be completely applied onto a pipeline, so that the phenomena that the
metal pipeline has
hydrogen evolution reaction, an insulating layer of the pipeline falls off, and the like can be avoided, and the pipeline drainage operation is safe and reliable.