PLC gate protection automatic control method and apparatus, and computer device

By using a PLC-based automatic control method for gate protection, the gate status is determined based on detection data, and interlocking actions are executed. This solves the problems of low stability and security in gate control, and improves the safety and reliability of gate operation.

WO2026118100A1PCT designated stage Publication Date: 2026-06-11CSG POWER GENERATION CO LTD MAINT & TEST CO +1

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
CSG POWER GENERATION CO LTD MAINT & TEST CO
Filing Date
2024-12-16
Publication Date
2026-06-11

AI Technical Summary

Technical Problem

Existing gate control methods lack protective measures, resulting in low stability and security of the control process.

Method used

The PLC gate protection automatic control method determines the current operating status based on the detection data of the target gate, and executes corresponding locking actions and generates alarm information when the preset locking conditions are met, including marking invalid commands, issuing gate stop commands, performing load signal detection, and managing control process priority.

🎯Benefits of technology

It significantly improves the safety and reliability of gate operation, prevents misoperation and abnormal conditions, and ensures the safety of equipment and operators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139495_11062026_PF_FP_ABST
    Figure CN2024139495_11062026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of PLC automatic control, and relates to a PLC gate protection automatic control method and apparatus, and a computer device. The method comprises: on the basis of detection data corresponding to a target gate, determining a current operating state corresponding to the target gate, wherein the target gate comprises a gate used for controlling a preset channel in a hydropower station, and the detection data comprises data uploaded to a PLC functional block by a detection device of the target gate; and when the current operating state satisfies a preset locking condition, executing a locking action corresponding to the locking condition, and generating alarm information corresponding to the locking condition. By means of the method, the stability and safety of a gate control process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

PLC-based automatic control methods, devices, and computer equipment for gate protection Technical Field

[0001] This application relates to the field of PLC automatic control technology, and in particular to a PLC gate protection automatic control method, device and computer equipment. Background Technology

[0002] With the continuous development of technology, hydropower stations, as a vital pillar of energy supply, face increasingly stringent requirements for operational efficiency and safety. Gates, as a key component of hydropower stations, directly impact the operational efficiency of the station and the stability of the entire power system through the precision and safety of their control. Against this backdrop, a PLC (Programmable Logic Controller) program with automatic gate control and protection functions becomes particularly important.

[0003] However, current gate control methods lack protective measures, posing safety risks during the gate control process and resulting in low stability and security. Summary of the Invention

[0004] Therefore, it is necessary to provide a PLC gate protection automatic control method, device, computer equipment, computer-readable storage medium, and computer program product that can improve the stability and safety of the gate control process, in order to address the above-mentioned technical problems.

[0005] In a first aspect, embodiments of this application provide a PLC-based automatic control method for gate protection. The method includes:

[0006] Based on the detection data corresponding to the target gate, the current operating status of the target gate is determined; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block;

[0007] If the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

[0008] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0009] If the current operating state is that the target gate is fully open, the gate lifting command is marked as invalid.

[0010] If the current operating state is that the target gate is fully closed, the closing command is marked as invalid.

[0011] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0012] If the current operating state is the gate lifting mode, and the duration of the gate fully open signal reaches the first preset duration, and the gate rise signal does not activate, a stop command is issued and the gate lifting and opening is cleared.

[0013] If the current operating state is that the gate is in the lowering mode, and the duration of the gate fully closed signal reaches the second preset duration, and the gate lowering signal does not activate, a stop command is issued and the gate lowering / opening is cleared.

[0014] In one embodiment, the detection data includes detection data of the gate's mechanical opening, detection data of the gate's electrical opening meter, and the gate opening value. Determining the current operating state of the target gate based on the detection data corresponding to the target gate includes:

[0015] When the detection data of the gate's mechanical opening indicates that the gate is fully mechanically open, or when the detection data of the gate's electrical opening meter indicates that the gate is fully electrically open, or when the gate opening value is greater than a preset full-open setting value, the current operating state is determined to be the gate fully open signal action of the target gate.

[0016] When the detection data of the gate's mechanical opening indicates that the gate is fully closed mechanically, or when the detection data of the gate's electrical opening meter indicates that the gate is fully closed electrically, or when the gate opening value is less than a preset fully closed setting value, the current operating state is determined to be the gate fully closed signal action of the target gate.

[0017] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0018] If the target gate is a hoist gate with a load signal, and the current operating state is the gate lifting mode, and the duration of the overload load signal action reaches the third preset duration, a stop gate command is issued.

[0019] If the target gate is a hoist gate with a load signal, and the current operating state is that the gate is in the lowering mode, the fully closed signal is not activated, and the duration of the underload load signal activation reaches the fourth preset duration, a stop gate command is issued.

[0020] The overload load signal indicates that the current load of the target gate is greater than the overload value, and the underload load signal indicates that the current load of the target gate is less than the underload value.

[0021] In one embodiment, the overload weight value is determined based on the gate load reference value of the target gate and a first multiple, and the underload weight value is determined based on the gate load reference value of the target gate and a second multiple, wherein the gate load reference value is determined based on the gate weight of the target gate and the weight of the counterweight.

[0022] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0023] If the start time of the gate control process meets the preset delay time, the change in the current gate opening value corresponding to the target gate is detected according to the preset time interval.

[0024] If the current operating state is in the gate lifting mode, and the change in the current gate opening value indicates a relative decrease in opening, then exit the gate control process.

[0025] If the current operating state is that the gate is in a descending mode, and the change in the current gate opening value indicates that the opening is relatively increasing, then exit the gate control process.

[0026] The gate control process can be any process that controls the target gate to execute commands.

[0027] In one embodiment, the preset delay duration is greater than the target duration, the target duration being the duration between the start time of the gate control process and the time for the gate acceleration to complete, and the preset delay duration being determined according to the gate type of the target gate;

[0028] The gate types include hoist gates controlled by direct motor start, screw gates, gates controlled by soft motor start, gates controlled by series resistor, and gates controlled by frequency converter start.

[0029] In one embodiment, the method further includes:

[0030] Obtain the current gate opening value corresponding to the target gate, and obtain the opening setting value; the opening setting value is the opening setting value corresponding to the gate control process being the target opening control process;

[0031] When the difference between the opening setting value and the current gate opening value is greater than the preset dead zone value, the opening setting value is determined to be valid;

[0032] If the difference between the opening setting value and the current gate opening value is less than or equal to the preset dead zone value, the opening setting value is determined to be invalid and the target opening control process is exited.

[0033] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0034] When the control of the target gate is switched from remote to local, or from automatic to manual, a gate stop command is executed.

[0035] In one embodiment, the method further includes:

[0036] Obtain the priority of each gate control process to be executed;

[0037] According to the priority of each gate control process, execute each gate control process to be executed;

[0038] The gate control process includes a rapid gate closing process, a stop process, a descent process, a lift process, and a target opening degree control process. The rapid gate closing process has a higher priority than the stop process, and the stop process has a higher priority than the target priority. The target priority is the priority of the descent process, the lift process, and the target opening degree control process.

[0039] In one embodiment, the step of executing the locking action corresponding to the locking condition when the current operating state satisfies the preset locking condition includes:

[0040] Obtain the analog quality value of the gate opening corresponding to the current gate opening value;

[0041] When the simulated opening value is the first quality evaluation value, the host computer corresponding to the target gate is locked.

[0042] When the simulated opening quality value is the first quality evaluation value and the gate is in operation, a stop procedure is executed for the operation.

[0043] Secondly, this application also provides a PLC-based automatic control device for gate protection. The device includes:

[0044] The current operating status determination module is used to determine the current operating status of the target gate based on the detection data corresponding to the target gate; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block;

[0045] The locking action execution module is used to execute the locking action corresponding to the locking condition when the current operating state meets the preset locking condition, and to generate the alarm information corresponding to the locking condition.

[0046] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0047] Based on the detection data corresponding to the target gate, the current operating status of the target gate is determined; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block;

[0048] If the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

[0049] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0050] Based on the detection data corresponding to the target gate, the current operating status of the target gate is determined; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block;

[0051] If the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

[0052] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0053] Based on the detection data corresponding to the target gate, the current operating status of the target gate is determined; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block;

[0054] If the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

[0055] The aforementioned PLC gate protection automatic control method, device, computer equipment, storage medium, and computer program product first send the input and output data of the target gate into the programmable logic controller (PLC) function block. Then, it determines the current operating status through logical judgment and evaluates it against the set locking conditions. If the locking conditions are met, it executes the corresponding locking action and generates alarm information corresponding to the locking conditions. By utilizing existing gate data and signals, together with variables that can be set in the program, it performs logical judgments to realize multiple automatic protection functions, achieving automatic monitoring and locking protection technology, which significantly improves the safety and reliability of gate operation. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 is a flowchart of a PLC gate protection automatic control method in one embodiment;

[0058] Figure 2 is a flowchart of the PLC gate protection automatic control method in another embodiment;

[0059] Figure 3 is a flowchart of the PLC gate protection automatic control method in another embodiment;

[0060] Figure 4 is a structural block diagram of a PLC gate protection automatic control device in one embodiment;

[0061] Figure 5 is an internal structural diagram of a computer device in another embodiment. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0064] In one embodiment, as shown in Figure 1, a PLC gate protection automatic control method is provided. This embodiment illustrates the method by applying it to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0065] S101, determine the current operating status of the target gate based on the detection data corresponding to the target gate.

[0066] The target gate includes the gate in the hydropower station used to control the preset channel; the detection data includes the data sent from the detection equipment of the target gate to the PLC function block. For example, the detection data corresponding to the target gate can be the gate I / O data.

[0067] The current operating status can be the value of a detected data item, whether an instruction is being executed, or whether a signal has been activated. For example, "the target gate's fully open signal is activated" and "the current operating status is that the gate is in the gate lifting mode, and the duration of the fully open signal has reached the first preset duration, and the gate lifting signal has not been activated."

[0068] S102, if the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

[0069] Interlocking actions refer to measures taken by the system when specific conditions occur to prevent equipment malfunctions or unsafe conditions, thereby ensuring the safety of equipment and operators. Examples include actions such as "marking the gate lifting command as invalid" or "issuing a gate stop command and clearing the gate lifting and opening status."

[0070] For example, the PLC gate protection automatic control method provided in this application has an automatic gate protection function, specifically including: inputting gate I / O data into the PLC function block, performing logical judgment based on the input signal status, generating a corresponding alarm and performing a corresponding locking action when the locking condition is met.

[0071] In the above-mentioned PLC gate protection automatic control method, the input and output data of the target gate are first sent to the programmable logic controller (PLC) function block. Then, the current operating status is determined through logical judgment, and then evaluated against the set locking conditions. If the locking conditions are met, the corresponding locking action is executed, and alarm information corresponding to the locking conditions is generated. By using the existing gate data and signals, together with the variables that can be set in the program, logical judgment is performed to realize multiple automatic protection functions, realize automatic monitoring and locking protection technology, and significantly improve the safety and reliability of gate operation.

[0072] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: if the current operating state is the gate fully open signal action of the target gate, the gate lifting command is marked as an invalid command; if the current operating state is the gate fully closed signal action of the target gate, the gate closing command is marked as an invalid command.

[0073] For example, this application provides a gate limit protection function. When the gate is fully open as determined by comprehensive judgment, the gate lifting command is regarded as an invalid command and an alarm message is generated on the host computer; when the gate is fully closed as determined by comprehensive judgment, the gate closing command is regarded as an invalid command and an alarm message is generated on the host computer.

[0074] In this embodiment, the current operating status of the target gate is first comprehensively judged to determine whether the gate fully open or fully closed signal is triggered. Then, under the condition that the gate is fully open, the gate lifting command is marked as an invalid command, and an alarm message is generated on the host computer. Under the condition that the gate is fully closed, the gate closing command is marked as an invalid command, and an alarm message is also generated on the host computer. This realizes the gate limit protection function and improves the safety and reliability of the system.

[0075] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: if the current operating state is in the gate lifting mode, and the duration of the gate fully open signal action reaches a first preset duration, and the gate rise signal does not act, a stop command is issued and the gate lifting opening is cleared; if the current operating state is in the gate lowering mode, and the duration of the gate fully closed signal action reaches a second preset duration, and the gate lowering signal does not act, a stop command is issued and the gate lowering opening is cleared.

[0076] The first preset duration can be 500 milliseconds, and the second preset duration can also be 500 milliseconds. The first preset duration can be the same or different.

[0077] For example, this application provides a gate limit protection function. During the gate lifting or sliding self-lifting process, when the gate fully open signal is activated and maintained for 500 milliseconds and the gate rising signal is not activated, the PLC program issues a stop command and clears the gate lifting open status. During the gate lowering process, when the gate fully closed signal is activated and maintained for 500 milliseconds and the gate lowering signal is not activated, the PLC program issues a stop command and clears the gate lowering open status.

[0078] In this embodiment, firstly, in the gate lifting mode, it is comprehensively determined whether there is a gate fully open signal and the duration of the signal reaches a first preset duration, and the gate lifting signal does not activate. Then, when the above conditions are met, the PLC program issues a stop command and clears the gate lifting state. In the gate lowering mode, it is comprehensively determined whether there is a gate fully closed signal and the duration of the signal reaches a second preset duration, and the gate lowering signal does not activate. Then, when the conditions are met, a stop command is also issued and the gate lowering state is cleared. This significantly improves the safety and reliability of the system, avoids the risk of misoperation caused by abnormal signals, and ensures the safety of equipment and operators.

[0079] In one embodiment, the detection data includes detection data of the gate's mechanical opening, detection data of the gate's electrical opening meter, and the gate opening value. Based on the detection data corresponding to the target gate, the current operating state of the target gate is determined, including: if the detection data of the gate's mechanical opening indicates that the gate is fully mechanically open, or if the detection data of the gate's electrical opening meter indicates that the gate is electrically fully open, or if the gate opening value is greater than a preset fully open setting value, the current operating state is determined to be the target gate's fully open signal action; if the detection data of the gate's mechanical opening indicates that the gate is fully mechanically closed, or if the detection data of the gate's electrical opening meter indicates that the gate is electrically fully closed, or if the gate opening value is less than a preset fully closed setting value, the current operating state is determined to be the target gate's fully closed signal action.

[0080] For example, the gate is considered fully open when any one of the following conditions is met: the gate is mechanically fully open, electrically fully open (using the gate opening meter), or the gate opening degree is greater than the fully open setting value. Conversely, the gate is considered fully closed when the gate is mechanically fully closed, electrically fully closed (using the gate opening meter), or the gate opening degree is less than the fully closed setting value.

[0081] In this embodiment, the current operating status of the target gate is first determined by the detection data of the gate's mechanical opening degree, the detection data of the gate's electrical opening degree instrument, and the gate opening degree value. Then, based on the detection data, it is determined whether the current operating status is a gate fully open signal action or a gate fully closed signal action. By implementing this technical solution, the accuracy and reliability of gate status monitoring are significantly improved, and it is convenient to use the fully open signal action and the gate fully closed signal action to execute the judgment process of the locking condition.

[0082] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: issuing a stop command when the target gate is a hoist gate with a load signal, the current operating state is the gate lifting mode, and the duration of the overload load signal action reaches a third preset duration; and issuing a stop command when the target gate is a hoist gate with a load signal, the current operating state is the gate lowering mode, the fully closed signal is not activated, and the duration of the underload load signal action reaches a fourth preset duration.

[0083] Among them, the overload load signal action indicates that the current load of the target gate is greater than the overload value, and the underload load signal action indicates that the current load of the target gate is less than the underload value.

[0084] For example, this application provides a load overload protection function. For a hoist gate with a load signal, when the gate is being raised, if the 110% load signal is activated and maintained for more than 5 seconds, a stop command is issued and an alarm is generated. When the gate is being lowered, if the fully closed signal is not activated and the load is less than the underload value for lowering and maintained for more than 5 seconds, a stop command is issued and an alarm is generated.

[0085] In this embodiment, when the target gate is a hoist gate with a load signal, the current operating status is first determined. If the gate is currently in lifting mode and the overload load signal action lasts for a duration of three preset durations, a stop command is issued. If the gate is currently in lowering mode and the fully closed signal is not activated, while the underload load signal action lasts for a duration of four preset durations, a stop command is also issued. This ensures that measures are taken in a timely manner in case of abnormal load. By implementing the above-mentioned interlocking action, the risks of overload and underload of the equipment are effectively prevented, ensuring the safe operation of the equipment and the safety of the operators.

[0086] In one embodiment, the overload weight is determined based on the gate load reference value of the target gate and a first multiple, and the underload weight is determined based on the gate load reference value of the target gate and a second multiple. The gate load reference value is determined based on the gate weight of the target gate and the weight of the counterweight.

[0087] The overload value can be 110% of the load alarm value. Correspondingly, the first multiple is 1.1 and the second multiple is 0.9. Therefore, the underload value can be set with reference to 0.9 times the gate load reference value.

[0088] For example, the gate load reference value is calculated from the sum of the gate weight and the counterweight weight. The load sensor is linearly calibrated at two positions: when the gate is fully closed and when the gate is stopped in mid-air. The 110% load alarm value can be set with reference to 1.1 times the gate load reference value, and the gate descent underload value can be set with reference to 0.9 times the gate load reference value.

[0089] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: if the start time of the gate control process meets the preset delay time, detecting the change in the current gate opening value corresponding to the target gate at preset time intervals; if the current operating state is in the gate lifting mode and the change in the current gate opening value indicates a relative decrease in opening, exiting the gate control process; if the current operating state is in the gate lowering mode and the change in the current gate opening value indicates a relative increase in opening, exiting the gate control process.

[0090] Among them, the gate control process is any process that executes the command to control the target gate.

[0091] The preset delay duration can be 5 seconds, and the preset time interval can be 3 seconds.

[0092] For example, this application provides a control direction protection function. After a certain delay following the start of the gate control process, the protection function is activated. When the gate is raised, the opening value is compared every 3 seconds. If the opening value decreases relatively, an alarm is triggered and the process is terminated. When the gate is lowered, the opening value is compared every 3 seconds. If the opening value increases relatively, an alarm is triggered and the process is terminated.

[0093] In this embodiment, after the gate control process is started, it is first determined whether the start time meets the preset delay time. If it does, the target gate opening value is detected according to the preset time interval. Then, when the current operating state is the gate lifting mode, if a change in the current gate opening value is detected indicating a relative decrease in opening, the gate control process is immediately exited and an alarm signal is issued. At the same time, when the current operating state is the gate lowering mode, if a change in the current gate opening value is detected indicating a relative increase in opening, the gate control process is also exited and an alarm signal is issued. Thus, by implementing the above-mentioned control direction protection function, the safety of gate operation is significantly improved.

[0094] In one embodiment, the preset delay duration is greater than the target duration, where the target duration is the time between the start of the gate control process and the time for the gate to accelerate to completion, and the preset delay duration is determined according to the gate type of the target gate.

[0095] The gate types include hoist gates controlled by direct motor start, screw gates, gates controlled by soft motor start, gates controlled by series resistor, and gates controlled by frequency converter start.

[0096] The preset delay duration is also known as the protection function activation delay time.

[0097] For example, the delay time for the protection function to be activated must be greater than the time required from the start of the process to the completion of the gate acceleration. For hoist gates and screw gates controlled by direct motor start, the delay time is set to 4-5 seconds. For gates controlled by soft start, series resistance, or frequency conversion start, the delay time is set to 10 seconds. The time parameters can be adjusted according to the gate operation test.

[0098] In one embodiment, the method further includes: obtaining the current gate opening value corresponding to the target gate, and obtaining an opening setting value; the opening setting value is the opening setting value corresponding to the gate control flow being the target opening control flow; when the difference between the opening setting value and the current gate opening value is greater than a preset dead zone value, the opening setting value is determined to be valid; when the difference between the opening setting value and the current gate opening value is less than or equal to a preset dead zone value, the opening setting value is determined to be invalid and the target opening control flow is exited.

[0099] For example, this application provides a gate opening setting value validity judgment function. When the difference between the opening setting value and the current opening value is greater than the set dead zone value, the setting value is considered valid; otherwise, an alarm is triggered and the control process is exited.

[0100] In this embodiment, the current gate opening value and the opening setting value corresponding to the target gate are first obtained. Then, it is determined whether the difference between the opening setting value and the current gate opening value is greater than a preset dead zone value. If it is greater, the opening setting value is determined to be valid, and the target opening control process is allowed to continue. If the difference is less than or equal to the dead zone value, the opening setting value is determined to be invalid and the target opening control process is exited, and an alarm signal is triggered. By implementing the above-mentioned opening setting value validity judgment function, the operational safety of the system is significantly improved, the accuracy in the opening control process is ensured, and the equipment damage and safety accidents caused by misoperation or abnormal conditions are effectively prevented.

[0101] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: when the control of the target gate is switched from remote to local, or from automatic to manual, a stop gate command is executed.

[0102] For example, this application provides a local emergency stop protection function. During the gate control process, when the control is switched from remote to local or from automatic to manual, the gate should be stopped immediately and an alarm should be triggered.

[0103] In this embodiment, when the control of the target gate is switched from remote to local or from automatic to manual, a gate stop command is immediately executed. Then, an alarm signal is issued to remind the operator to pay attention to the current situation, thereby ensuring that safety measures can be taken in a timely manner when the control mode changes. By implementing the local emergency stop protection function, misoperation caused by the change of control is effectively prevented, ensuring the safety and reliability of gate operation.

[0104] In one embodiment, the method further includes: obtaining the priority of each gate control process to be executed; and executing each gate control process to be executed according to the priority of each gate control process.

[0105] The gate control process includes a fast gate closing process, a stop process, a descent process, an elevation process, and a target opening degree control process. The fast gate closing process has a higher priority than the stop process, and the stop process has a higher priority than the target priority. The target priority is the priority of the descent process, the elevation process, and the target opening degree control process.

[0106] For example, this application provides a process interlocking function, with the control priorities from high to low as follows: fast door closing, stop, and lowering / raising / target opening control. Fast door closing has the highest priority, while lowering / raising / target opening control has the lowest and the same control priority. Only one process is allowed to be executed at a time.

[0107] In this embodiment, the priority of each gate control process to be executed is first obtained, and each control process is executed in sequence according to the priority. Then, the priority is used to implement the process interlocking function, which significantly improves the response speed and security of the gate control system and avoids operational errors caused by priority confusion.

[0108] In one embodiment, if the current operating state meets the preset locking conditions, the locking action corresponding to the locking conditions is executed, including: obtaining the opening analog quantity quality value corresponding to the current gate opening value; if the opening analog quantity quality value is a first quality evaluation value, locking the host computer corresponding to the target gate; if the opening analog quantity quality value is the first quality evaluation value and the gate is in the running process, executing a stop process for the running process.

[0109] The first quality evaluation value can be a field value that represents excellent quality, such as "good" or "average bad".

[0110] This application provides a gate data quality judgment function. When the quality of the analog quantity of the opening is bad, the control process is prohibited from execution, and the control command issued by the host computer and the touch screen is blocked. When the quality of the analog quantity of the opening is bad during the operation of the gate, the gate stop process is automatically executed.

[0111] In this embodiment, the analog quality value of the opening corresponding to the current gate opening value is first obtained. Then, it is determined whether the quality value is the first quality evaluation value. If so, the host computer corresponding to the target gate is locked. Based on this, if the gate is in the running process, the stop process for the running process is executed, thereby realizing effective control of the gate's operating status. By implementing the gate data quality judgment function, when the opening quality is bad, the control process is prohibited from execution and the gate operation is automatically stopped, ensuring the safety and stability of the system.

[0112] In another embodiment, as shown in Figure 2, a PLC gate protection automatic control method is provided, including the following steps:

[0113] S201, the gate protection program acquires real-time gate data and initializes setpoints.

[0114] S202, the gate protection program makes a comprehensive logical judgment based on the real-time gate data and the gate setting value.

[0115] S203, the gate protection program performs the corresponding protection action and generates an alarm message.

[0116] S204, the gate receives the corresponding action signal, and the host computer receives the corresponding alarm information.

[0117] In another embodiment, as shown in Figure 3, a PLC gate protection automatic control method is provided, including the following steps:

[0118] S301, when the detection data of the gate's mechanical opening indicates that the gate is fully mechanically open, or when the detection data of the gate's electrical opening meter indicates that the gate is fully electrically open, or when the gate opening value is greater than the preset full-open setting value, determine that the current operating state is the gate fully open signal action of the target gate.

[0119] S302, when the detection data of the gate's mechanical opening indicates that the gate is fully closed mechanically, or when the detection data of the gate's electrical opening meter indicates that the gate is fully closed electrically, or when the gate opening value is less than the preset full-close setting value, determine that the current operating state is the gate full-close signal action of the target gate.

[0120] S303: When the current operating status is that the target gate is fully open, the gate lifting command is marked as invalid.

[0121] S304: If the current operating state is that the target gate is fully closed, the gate closing command is marked as invalid.

[0122] S305: When the current operating state is in the gate lifting mode, and the duration of the gate fully open signal action reaches the first preset duration, and the gate rise signal does not act, issue a stop command and clear the gate lifting and opening.

[0123] S306, if the current operating state is in the gate lowering mode, and the duration of the gate fully closed signal action reaches the second preset duration, and the gate lowering signal does not act, issue a stop gate command and clear the gate lowering opening.

[0124] It should be noted that the specific limitations of the above steps can be found in the above description of the specific limitations of a PLC gate protection automatic control method, and will not be repeated here.

[0125] In another embodiment, the PLC gate protection automatic control method provided in this application requires input and output data, as well as the generation of alarm information. The parameters that need to be input and set are shown in Table 1:

[0126] Table 1

[0127]

[0128] The signal variables that need to be output are shown in Table 2:

[0129] Table 2

[0130]

[0131] The generated alarm information is shown in Table 3:

[0132] Table 3

[0133]

[0134] This application provides a PLC-based automatic gate protection control method, also known as a PLC-based automatic gate protection control method, or an automatic gate protection method for conventional hydropower stations and pumped storage power stations. Correspondingly, the computer program obtained by implementing this method can be a PLC program with automatic gate protection control functions. The design of the PLC program in this application needs to fully consider the actual situation and requirements of gate control, utilizing the data and signals sent by the gate, along with appropriate parameters, to write the corresponding control logic and algorithm. Simultaneously, rigorous testing and verification are required to ensure the stability and reliability of the PLC program.

[0135] The PLC gate protection automatic control method provided in this application embodiment makes logical judgments based on the amount of data and signals sent from the gate to the PLC and configurable calculation variables; in other words, it uses existing gate data and signals and configurable variables in the program to make logical judgments to achieve multiple automatic protection functions.

[0136] The PLC gate protection automatic control method is described in detail below with some specific embodiments. It is worth understanding that the following description is merely illustrative and not a specific limitation of the application.

[0137] Example 1: The analog gate opening value is input into Open1 (gate opening 1) and Open2 (gate opening 2). The quality of the analog gate opening value is input into OpenQua1 (gate opening 1 quality) and OpenQua2 (gate opening 2 quality). The gate's mechanically fully closed and electrically fully closed signals are ORed and input into FulClsVal (gate fully closed value). The gate's mechanically fully open and electrically fully open signals are ORed and input into FulOpeVal (gate fully open value). When the gate is mechanically fully open, electrically fully open, and the analog opening value is greater than the fully open setting value (FulOpeVal), the program treats the gate lifting command as an invalid command and generates an alarm message on the host computer. When the gate is mechanically fully closed, electrically fully closed, and the analog opening value is less than the fully closed setting value (FulClsVal), the program treats the gate closing command as an invalid command and generates an alarm message on the host computer.

[0138] Example 2: Using the gate position determination method in Example 1, when the gate is raised, the gate fully open signal (FulOpen) is activated and held for 500 milliseconds while the gate rising signal (Rising) is not activated. The PLC program issues a stop signal and clears the gate raising / opening status. During the gate descent, when the gate fully closed signal (FulCls) is activated and held for 500 milliseconds while the gate falling signal (Falling) is not activated, the PLC program issues a stop signal and clears the gate falling / opening status.

[0139] Example 3: Based on the gate weight and counterweight data, overload and underload data are derived. For example, the gate and counterweight together weigh 100t. The 110% load signal (Load110) is triggered when either gate load 1 (Load1) or gate load 2 (Load2) is greater than or equal to 110t. When the gate is raised, if the 110% load signal (Load110) is activated and maintained for more than 5 seconds, a stop command is issued and an alarm is generated. When the gate is lowered, if the fully closed signal is not activated and the load is less than the underload value (LowVal2) for more than 5 seconds, a stop command is issued and an alarm is generated.

[0140] Example 4: During the "lifting" operation, this function is activated after a delay. While the gate is rising, the gate opening (Open1, Open2) values ​​are compared with the old values ​​every 3 seconds. If the opening value decreases relatively, an alarm is triggered and the process exits. During the "lowering" operation, this function is activated after a delay. While the gate is falling, the gate opening (Open1, Open2) values ​​are compared with the old values ​​every 3 seconds. If the opening value increases relatively, an alarm is triggered and the process exits.

[0141] Example 5: When the gate is not in motion and the "opening gate operation" begins, if the quality of gate opening 1 and gate opening 2 are both poor (OpenQua1, OpenQua2), i.e., the two opening value data are abnormal, a lockout control command is issued and an alarm message is generated. During gate operation, if the quality of gate opening 1 and gate opening 2 are both poor (OpenQua1, OpenQua2), i.e., the two opening value data are abnormal, the gate stop procedure is automatically executed. During the "opening gate operation," if the difference between the issued opening setpoint and the actual opening is less than the dead zone (default is 5, can be set), a lockout control command is issued and an alarm message is generated.

[0142] Example 6: When performing the "moving gate" operation, the control is switched from remote to local, or the control mode is switched from automatic to manual. At this time, the control switching (Ctrl_switch) action generates an alarm and stops the gate operation.

[0143] Example 7: Gate control has a priority judgment, with priorities from high to low as follows: fast gate closing, stop gate, and gate controlling descent / lifting / target opening degree. Among these, the gates controlling descent / lifting / target opening degree have the same priority, and only one process is allowed to execute at a time.

[0144] For example, when controlling the gate's descent / lifting / target opening degree, a gate stop operation is performed, terminating the gate descent / lifting / target opening degree process and initiating a gate stop procedure. Similarly, when controlling the gate's descent / lifting / target opening degree, a rapid gate lowering operation is performed, terminating the gate descent / lifting / target opening degree process and initiating a rapid gate lowering operation. If, while controlling one of the gate's descent / lifting / target opening degree operations, the other two operations at the same level are then performed, an interlocking operation is initiated and an alarm is generated.

[0145] The PLC gate protection automatic control method provided in this application relates to conventional hydropower stations and pumped storage power stations. It includes a gate position comprehensive judgment function, a gate limit automatic protection function, a gate load over-limit automatic protection function, a gate control direction automatic protection function, a gate opening set value interlocking protection function, a gate control right switching protection function, a gate process priority judgment and interlocking function, and a gate opening validity protection function.

[0146] The PLC gate protection automatic control method provided in this application ensures the safety, reliability, and efficiency of the gate control process through a series of comprehensive functions and strategies; it realizes the PLC to perform effective automatic protection operations based on the real-time status of the gate, which not only improves the operating efficiency of the power plant but also greatly protects the safety of life and property of the power plant; at the same time, the method also has a certain degree of versatility and scalability, and can adapt to the needs of power plants of different types and scales.

[0147] The PLC gate protection automatic control method provided in this application utilizes existing gate data and signals, along with configurable variables in the program, to perform logical judgments and achieve various automatic protection functions. Compared to conventional gate control programs, it enriches the interlocking functions, provides different protection functions for different gate types, and allows for the setting of optimal parameters based on the site environment to achieve safe and stable gate operation.

[0148] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0149] Based on the same inventive concept, this application also provides a PLC gate protection automatic control device for implementing the aforementioned PLC gate protection automatic control method. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the PLC gate protection automatic control device provided below can be found in the limitations of the PLC gate protection automatic control method described above, and will not be repeated here.

[0150] In one embodiment, as shown in Figure 4, a PLC gate protection automatic control device is provided, including: a current operating status determination module 401 and a locking action execution module 402, wherein:

[0151] The current operating status determination module 401 is used to determine the current operating status of the target gate based on the detection data corresponding to the target gate; the target gate includes the gate in the hydropower station used to control the preset channel; the detection data includes the data sent from the detection equipment of the target gate to the PLC function block;

[0152] The locking action execution module 402 is used to execute the locking action corresponding to the locking condition when the current operating state meets the preset locking condition, and generate alarm information corresponding to the locking condition.

[0153] Each module in the aforementioned PLC gate protection automatic control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0154] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram is shown in Figure 5. The computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a PLC gate protection automatic control method. The display unit of the computer device is used to form a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0155] Those skilled in the art will understand that the structure shown in Figure 5 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or may combine certain components, or may have different component arrangements.

[0156] In one embodiment, a computer device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps in the above method embodiments.

[0157] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0158] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments. The computer program can be a PLC program. Specifically, the PLC program provided in this application has the following functions:

[0159] (1) First type of gate limit protection function. Based on multiple gate signals, the gate is judged to be fully open or fully closed. The gate is considered fully open if any of the following conditions are met: the gate is mechanically fully open, electrically fully open (using the opening meter), or the gate opening degree is greater than the fully open setting value. Conversely, the gate is considered fully closed if the gate is mechanically fully closed, electrically fully closed (using the opening meter), or the gate opening degree is less than the fully closed setting value. When the gate is fully open, the gate lifting command is considered invalid, and an alarm message is generated on the host computer. When the gate is fully closed, the gate closing command is considered invalid, and an alarm message is generated on the host computer.

[0160] (2) It has a second type of gate limit protection function. The judgment method for the gate fully open and fully closed position signals is the same as that in the first type of limit protection function. When the gate fully open signal is activated and held for 500 milliseconds and the gate rise signal is not activated, the PLC program issues a stop order and clears the gate rise and open function; during the gate descent process, when the gate fully closed signal is activated and held for 500 milliseconds and the gate descent signal is not activated, the PLC program issues a stop order and clears the gate descent and open function.

[0161] (3) It has overload protection function. For hoist gates with load signals, the gate load reference value is calculated from the sum of the gate weight and the counterweight weight. The load sensor is linearly calibrated at two positions: when the gate is fully closed and when the gate is stopped in mid-air. The 110% load alarm value can be set with reference to 1.1 times the gate load reference value, and the gate descent underload value can be set with reference to 0.9 times the gate load reference value. When the gate is raised, if the 110% load signal is activated and maintained for more than 5 seconds, a stop command is issued and an alarm is generated. When the gate is lowered, if the fully closed signal is not activated and the load is less than the descent underload value and maintained for more than 5 seconds, a stop command is issued and an alarm is generated.

[0162] (4) Possesses control direction protection function. To prevent malfunction, the protection function is activated after a certain delay following the start of the gate control process. The delay time must be greater than the time required for the gate to accelerate from the start of the process. For hoist gates and screw gates controlled by direct motor start, the delay time is set to 4 to 5 seconds; for gates controlled by soft start, series resistance, or frequency converter start, the delay time is set to 10 seconds. The time parameters can be adjusted based on the gate operation test. During gate lifting, the opening value is compared every 3 seconds. If the opening value decreases relatively, an alarm is triggered and the process is terminated. During gate lowering, the opening value is compared every 3 seconds. If the opening value increases relatively, an alarm is triggered and the process is terminated.

[0163] (5) It has the function of judging the validity of the gate opening setting value. When the difference between the opening setting value and the current opening value is greater than the set dead zone value, the setting value is considered valid; otherwise, an alarm is triggered and the control process is exited.

[0164] (6) It has a local emergency stop protection function. When the control authority is switched from remote to local or from automatic to manual during the execution of the gate control process, the gate should be stopped immediately and an alarm should be triggered.

[0165] (7) It has a process interlocking function. The control priorities from high to low are: fast gate closing, stop, and descent / lifting / target opening control. Fast gate closing has the highest priority, and descent / lifting / target opening control has the lowest priority and the same priority. Only one process is allowed to be executed at a time. For example, when the gate lifting process is being executed, if the gate is operated to close quickly, the gate lifting process will be stopped and the fast gate closing process will be executed.

[0166] (8) It has the function of judging the quality of gate data. When the quality of the opening analog quantity is bad, the control process is prohibited from being executed, and the control command issued by the host computer and touch screen is locked. When the quality of the opening analog quantity is bad during the operation of the gate, the gate stop process is automatically executed.

[0167] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0168] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for automatic control of PLC gate protection, characterized in that, The method includes: Based on the detection data corresponding to the target gate, the current operating status of the target gate is determined; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block; If the current operating state meets the preset locking conditions, execute the locking action corresponding to the locking conditions and generate the alarm information corresponding to the locking conditions.

2. The method of claim 1, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: If the current operating state is that the target gate is fully open, the gate lifting command is marked as invalid. If the current operating state is that the target gate is fully closed, the closing command is marked as invalid.

3. The method of claim 2, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: If the current operating state is the gate lifting mode, and the duration of the gate fully open signal reaches the first preset duration, and the gate rise signal does not activate, a stop command is issued and the gate lifting and opening is cleared. If the current operating state is that the gate is in the lowering mode, and the duration of the gate fully closed signal reaches the second preset duration, and the gate lowering signal does not activate, a stop command is issued and the gate lowering / opening is cleared.

4. The method according to claim 2 or 3, characterized in that, The detection data includes detection data of the gate's mechanical opening, detection data of the gate's electrical opening meter, and the gate opening value. Determining the current operating state of the target gate based on the detection data includes: When the detection data of the gate's mechanical opening indicates that the gate is fully mechanically open, or when the detection data of the gate's electrical opening meter indicates that the gate is fully electrically open, or when the gate opening value is greater than a preset full-open setting value, the current operating state is determined to be the gate fully open signal action of the target gate. When the detection data of the gate's mechanical opening indicates that the gate is fully closed mechanically, or when the detection data of the gate's electrical opening meter indicates that the gate is fully closed electrically, or when the gate opening value is less than a preset fully closed setting value, the current operating state is determined to be the gate fully closed signal action of the target gate.

5. The method of claim 1, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: If the target gate is a hoist gate with a load signal, and the current operating state is the gate lifting mode, and the duration of the overload load signal action reaches the third preset duration, a stop gate command is issued. If the target gate is a hoist gate with a load signal, and the current operating state is that the gate is in the lowering mode, the fully closed signal is not activated, and the duration of the underload load signal activation reaches the fourth preset duration, a stop gate command is issued. The overload load signal indicates that the current load of the target gate is greater than the overload value, and the underload load signal indicates that the current load of the target gate is less than the underload value.

6. The method of claim 5, wherein, The overload weight value is determined based on the gate load reference value of the target gate and a first multiple, and the underload weight value is determined based on the gate load reference value of the target gate and a second multiple. The gate load reference value is determined based on the gate weight of the target gate and the weight of the counterweight.

7. The method of claim 1, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: If the start time of the gate control process meets the preset delay time, the change in the current gate opening value corresponding to the target gate is detected according to the preset time interval. If the current operating state is in the gate lifting mode, and the change in the current gate opening value indicates a relative decrease in opening, then exit the gate control process. If the current operating state is that the gate is in a descending mode, and the change in the current gate opening value indicates that the opening is relatively increasing, then exit the gate control process. The gate control process can be any process that controls the target gate to execute commands.

8. The method of claim 7, wherein, The preset delay duration is greater than the target duration, where the target duration is the time between the start time of the gate control process and the time for the gate acceleration to complete, and the preset delay duration is determined according to the gate type of the target gate. The gate types include hoist gates controlled by direct motor start, screw gates, gates controlled by soft motor start, gates controlled by series resistor, and gates controlled by frequency converter start.

9. The method of claim 8, wherein, The method further includes: Obtain the current gate opening value corresponding to the target gate, and obtain the opening setting value; the opening setting value is the opening setting value corresponding to the gate control process being the target opening control process; When the difference between the opening setting value and the current gate opening value is greater than the preset dead zone value, the opening setting value is determined to be valid; If the difference between the opening setting value and the current gate opening value is less than or equal to the preset dead zone value, the opening setting value is determined to be invalid and the target opening control process is exited.

10. The method of claim 1, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: When the control of the target gate is switched from remote to local, or from automatic to manual, a gate stop command is executed.

11. The method of claim 1, wherein, The method further includes: Obtain the priority of each gate control process to be executed; According to the priority of each gate control process, execute each gate control process to be executed; The gate control process includes a rapid gate closing process, a stop process, a descent process, a lift process, and a target opening degree control process. The rapid gate closing process has a higher priority than the stop process, and the stop process has a higher priority than the target priority. The target priority is the priority of the descent process, the lift process, and the target opening degree control process.

12. The method of claim 9, wherein, When the current operating state meets the preset locking condition, the locking action corresponding to the locking condition is executed, including: Obtain the analog quantity quality value of the opening corresponding to the current gate opening value; When the simulated opening value is the first quality evaluation value, the host computer corresponding to the target gate is locked. When the simulated opening value is the first quality evaluation value and the gate is in operation, a stop procedure is executed for the operation.

13. A PLC gate guard automatic control device, characterized by, The device includes: The current operating status determination module is used to determine the current operating status of the target gate based on the detection data corresponding to the target gate; the target gate includes a gate in a hydropower station used to control a preset channel; the detection data includes data sent from the detection equipment of the target gate to the PLC function block; The locking action execution module is used to execute the locking action corresponding to the locking condition when the current operating state meets the preset locking condition, and to generate the alarm information corresponding to the locking condition.

14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 12.

15. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.

16. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.