DPF-2 electrolytic polishing and etching machine is a metallographic sample preparation machine which combines electrolytic polishing and etching function, suitable for use in factories, universities, research institutions and other laboratories. The machine uses the electrochemical principle to do metallographic sample preparation. The samples which adopt electrolytic polishing and etching avoid the deformation layer caused by the mechanical polishing, so the organization is true without illusion. Therefore it is the best method of preparation of titanium, aluminum, copper and other non-ferrous metals and high-temperature alloy samples. The instrument is designed to have higher operating voltage and operating current, metallographic preparation for the larger size of the sample, especially suitable for welding metallographic sample preparation.