With the help of temperature control modules, preheating before and during the following heat treatment of the welded joints for an ammonia pipeline was performed. The diameter of the pipeline is 620 mm wall thickness 30 mm. The heat treatment temperature 720 - 750 degrees Celsius.