This specification covers the requirements for producing a continuous compound layer with controlled phase composition by means of a gaseous process, automatically controlled to maintain set values of the nitriding and carburizing potentials that determine properties of the nitrocarburized surface. Automatic control is intended to ensure repeatability of nitrogen and carbon content of the compound layer which establishes properties such as wear and corrosion resistance, ductility and fatigue strength.