The invention provides a preparation method for a foam draining
corrosion inhibitor. The preparation method comprises the steps that 1,
alkylphenol polyoxyethylene is added in a reaction kettle, and then
sulfamic acid is added, and a temperature-programmed reaction is performed to obtain
alkylphenol polyoxyethylene ether sulfonate; 2,
lauric acid imidazoline is synthesized, and then the
alkylphenol polyoxyethylene ether sulfonate is added to obtain alkylphenol
polyoxyethylene ether sulfonic acid imidazoline salt; 3, the alkylphenol polyoxyethylene is added in the reaction kettle, then the
sulfamic acid is added, the temperature is increased, a reaction is performed, then diethanol amine is added, and the reaction is continuously performed to obtain
sulfonic acid diethanolamine salt of the alkylphenol polyoxyethylene; 4,
fatty amine polyoxyethylene
ether is added in the reaction kettle, the
sulfamic acid is added, the temperature is increased, a reaction is performed, then
ammonia water is added, and the reaction is continuously performed to obtain
sulfonic acid amine salt of the
fatty amine polyoxyethylene
ether; 5, the reactants are added in the reaction kettle,
alkyl trimethyl benzyl
quaternary ammonium salt and the
fatty amine polyoxyethylene
ether are added and mixed with water, and then a reaction is performed through heating to obtain the foam draining
corrosion inhibitor. The foam draining
corrosion inhibitor can effectively control corrosion of media in well washing and liquid draining process.