The relay lock is a part of an automated system that ensures reliable and cost-effective operation of the power system, and serves to eliminate the malfunctions and malformations in the electrical system automatically. The relay lock continuously controls the state and operating modes of the protected energy system element, and is activated when there is a risk of injury or unusual regimen.