With the increasing complexity of the power grid, in order to ensure the reliability and stability of the power supply system, higher requirements are imposed on the automation level of the power system. Substation security measures are generally performed manually, and maintenance personnel need to cast and withdraw pressure plates one by one based on the automatically generated secondary security measures, and manually verify the results of each step. This paper proposes a technology for the automatic execution of security measures in substations. Based on the generated security measures, it implements automatic sequence control operations and has proofreading functions. This method improves the level of substation automation while ensuring the correct execution results of safety measures, and provides an important guarantee for the safe and stable operation of the power system.