Gray code-based large-scale hydraulic power plant gate opening degree determination method and system
By using Gray code technology in the gate system of a hydropower plant, the gate opening signal of the gate is collected and processed, the problem of low gate opening calculation accuracy in the existing technology is solved, and the reliability of the system and the safe and stable operation of the hydropower plant are improved.
Patent Information
- Application Number
- CN202510090363.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-13
AI Technical Summary
The existing gate opening calculation method has low accuracy and cannot ensure the safe and stable operation of the hydropower plant.
Using a Grey code-based method, the gate opening sensor installed on the top of the hydraulic cylinder of the water inlet fast door is collected by collecting the Grey code displacement signal, performing binary conversion, determining the real-time code value of the gate opening, and obtaining the actual opening value through calculation.
It improves the reliability of the water inlet fast door control system and ensures the safe and stable operation of the hydropower plant's hydrowheel generator set.
Smart Images

Figure CN119984130A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gate control technology, and in particular to a method and system for determining the gate opening of a large hydropower plant based on Gray code. Background Art
[0002] The gate of a hydropower plant is an important part of the hydropower plant. By opening or closing the gate, the water level of the reservoir can be controlled to meet the needs of irrigation, power generation, shipping, etc. The gate can effectively control the speed and direction of the water flow to prevent the water flow from scouring and eroding the water conservancy facilities. During the flood season, the discharge of flood water can be effectively regulated by opening and closing the gate, thereby reducing the flood pressure downstream. By opening or closing the gate, the flow and mixing of water bodies can be controlled to improve water quality. In addition, in the hydropower plant, a fast gate is installed at the inlet of the unit water diversion pipe, which can be quickly closed when an overspeed accident occurs in the unit to prevent the occurrence of an overspeed accident. It can be seen that the gate of a hydropower plant is crucial to ensuring the safe and stable operation of the hydropower plant, and it has a far-reaching impact on flood control, irrigation, shipping, and water quality improvement.
[0003] Among the many types of gates in a hydropower plant, it is more critical to install a fast gate at the inlet of the water diversion pipe. The fast gate has the functions of static water lifting and dynamic water closing. If an accident occurs during the operation of the unit, the water inlet fast gate can be quickly closed to cut off the water flow to prevent the occurrence of an overspeed accident of the unit. A stable and reliable water inlet fast door control system is crucial to ensure the safe and stable operation of the hydropower plant. The reliability of the water inlet fast door control system depends on its accurate gate opening calculation method. Only when the control system accurately calculates the real-time gate opening can the control system perform functions such as gate sliding self-lifting and remote automatic opening and closing. However, the accuracy of the existing gate opening calculation is not high, and it cannot ensure the safe and stable operation of the hydropower plant. Therefore, designing an accurate and reliable gate opening calculation method is of great significance to ensure the safe and stable operation of the hydropower plant. Summary of the invention
[0004] The present application provides a method and system for determining the gate opening of a large hydropower plant based on Gray code, so as to at least solve the technical problem of low accuracy of the existing gate opening calculation.
[0005] The first embodiment of the present application proposes a method for determining the gate opening of a large hydropower plant based on Gray code, the method comprising:
[0006] The gate opening sensor installed on the top of the hydraulic cylinder of the water inlet rapid door is used to collect the Gray code displacement signal of the gate hydraulic cylinder piston;
[0007] Determine the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal;
[0008] The actual opening value of the gate of the large hydropower plant is determined according to the real-time code value of the opening of the gate of the large hydropower plant.
[0009] Preferably, the Gray code displacement signal is a 16-bit Gray code displacement signal.
[0010] Furthermore, the determining of the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal comprises:
[0011] Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal;
[0012] The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
[0013] Further, the determining the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant includes:
[0014] Obtaining the full open code value, full closed code value, and opening range of the gate of the large hydropower plant;
[0015] Determine the actual opening value of the gate of the large hydropower plant according to the actual opening value, full opening code value, full closing code value, and opening range of the gate of the large hydropower plant;
[0016] Among them, the full-open code value, the full-closed code value, and the opening range are all binary numbers.
[0017] Furthermore, the calculation formula for the actual opening value of the gate of the large hydropower plant is as follows:
[0018] K s =(K q -S)×L÷(K q -G q )
[0019] In the formula, K s is the actual opening value of the gate of a large hydropower plant, K q is the full opening code value, S is the actual opening value, L is the opening range, G q It is the full code value.
[0020] The second embodiment of the present application proposes a system for determining the gate opening of a large hydropower plant based on Gray code, comprising:
[0021] The acquisition module is used to acquire the Gray code displacement signal of the gate hydraulic cylinder piston by using the gate opening sensor installed on the top of the hydraulic cylinder of the water inlet fast door;
[0022] A first determination module is used to determine the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal;
[0023] The second determination module is used to determine the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant.
[0024] Preferably, the Gray code displacement signal is a 16-bit Gray code displacement signal.
[0025] Furthermore, the first determining module is further configured to:
[0026] Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal;
[0027] The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
[0028] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0029] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect of the present application.
[0030] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0031] This application proposes a method and system for determining the gate opening of a large hydropower plant based on Gray code, the method comprising: using a gate opening sensor installed on the top of the hydraulic cylinder of the water inlet rapid door to collect the Gray code displacement signal of the gate hydraulic cylinder piston; determining the real-time code value of the opening of the large hydropower plant gate according to the Gray code displacement signal; determining the actual opening value of the large hydropower plant gate according to the real-time code value of the opening of the large hydropower plant gate. The technical solution proposed in this application improves the reliability of the water inlet rapid door control system and ensures the safe and stable operation of the hydropower plant turbine generator set.
[0032] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0034] Figure 1 A flowchart of a method for determining the gate opening of a large hydropower plant based on Gray code according to an embodiment of the present application;
[0035] Figure 2 A schematic diagram of converting Gray code into binary code according to an embodiment of the present application;
[0036] Figure 3 The present invention is a structural diagram of a system for determining the gate opening of a large hydropower plant based on Gray code according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0038] The present application proposes a method and system for determining the gate opening of a large hydropower plant based on Gray code, the method comprising: using a gate opening sensor installed on the top of the hydraulic cylinder of the water inlet rapid door to collect the Gray code displacement signal of the gate hydraulic cylinder piston; determining the real-time code value of the opening of the large hydropower plant gate according to the Gray code displacement signal; determining the actual opening value of the large hydropower plant gate according to the real-time code value of the opening of the large hydropower plant gate. The technical solution proposed in the present application improves the reliability of the water inlet rapid door control system and ensures the safe and stable operation of the hydropower plant turbine generator set.
[0039] The following describes a method and system for determining the gate opening of a large hydropower plant based on Gray code according to an embodiment of the present application with reference to the accompanying drawings.
[0040] Embodiment 1
[0041] Figure 1 Flow chart of a method for determining gate opening of a large hydropower plant based on Gray code according to an embodiment of the present application, as shown in FIG. Figure 1 As shown, the method includes:
[0042] Step 1: Use the gate opening sensor installed on the top of the hydraulic cylinder of the water inlet fast door to collect the Gray code displacement signal of the gate hydraulic cylinder piston.
[0043] In the disclosed embodiment, the Gray code displacement signal is a 16-bit Gray code displacement signal.
[0044] It should be noted that the water inlet rapid door control system uses a programmable logic controller PLC as an automatic controller. Its function is to receive the gate opening signal input by the gate opening sensor, process the gate opening signal, and then design a gate opening calculation algorithm through programming to automatically calculate the real-time gate opening.
[0045] The gate opening sensor uses the YQX-Ⅱ built-in opening sensor, which is installed on the top of the rapid door hydraulic cylinder. When the gate hydraulic cylinder drives the gate to open or close, the gear inside the hydraulic cylinder will drive the gate opening sensor to rotate, thereby outputting a 16-bit Gray code signal to the PLC controller.
[0046] Among them, the displacement detection wire rope is placed inside the oil cylinder, and the wire rope works together with the piston and the piston rod. When the piston moves downward, the wire rope connected to the piston drives the drum and the main shaft to rotate, and the spring is tightened by the rotation of the main shaft. When the piston moves upward, the spring relies on its restoring torque to make the main shaft drive the drum to rotate and tighten the wire rope. In this process, the encoder rotates synchronously with the main shaft driven by the main shaft, so the displacement of the piston can be obtained according to the diameter of the drum and the number of encoder rotations. The displacement is converted into a digital signal (such as 10110) by the encoder and sent to the PLC controller of the hydraulic cylinder detection system.
[0047] Step 2: Determine the real-time code value of the opening of the gate of the large hydropower plant according to the Gray code displacement signal.
[0048] In the embodiment of the present disclosure, step 2 specifically includes:
[0049] Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal;
[0050] The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
[0051] It should be noted that, because the data sent from the gate opening sensor to the PLC controller is a 16-bit Gray code, the PLC cannot directly use the data to calculate the opening, so data processing is required first to convert the Gray code into a binary number, and the binary Gray code into a binary code. The rule is to retain the highest bit of the Gray code as the highest bit of the natural binary code, and the second highest natural binary code is the high-order natural binary code and the second highest Gray code. The difference or algorithm is obtained. For example, if the input Gray code is 10110, it is converted into a binary code of 11011. The specific algorithm is as follows Figure 2 As shown:
[0052] If the gate opening digital signal measured by the gate opening encoder is 10110, the signal is Gray code and needs to be converted into binary. The conversion rule is to take the first digit of the Gray code as the first digit of the binary number, and then perform "XOR calculation" on the first digit 1 of the binary code and the second digit 0 of the Gray code (that is, the same is 0, and different is 1). The number obtained is the second digit of the binary number. The second digit 0 of the Gray code and the first digit 1 of the binary code are XORed to obtain 1, and then 1 is used as the second digit of the binary code. The second digit 1 of the binary code and the third digit 1 of the Gray code are XORed to obtain the number 0 as the third digit of the binary code. According to this method, the Gray code 10110 is converted into binary code in turn, and 11011 is obtained as the gate opening code value.
[0053] It should be noted that the above Gray code is converted into a binary code algorithm and written as a PLC program, and the water inlet rapid door control system can use the binary code to calculate the real-time code value of the opening.
[0054] Step 3: Determine the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant.
[0055] In the embodiment of the present disclosure, step 3 specifically includes:
[0056] Obtaining the full open code value, full closed code value, and opening range of the gate of the large hydropower plant;
[0057] Determine the actual opening value of the gate of the large hydropower plant according to the actual opening value, full opening code value, full closing code value, and opening range of the gate of the large hydropower plant;
[0058] Among them, the full-open code value, the full-closed code value, and the opening range are all binary numbers.
[0059] Furthermore, the calculation formula for the actual opening value of the gate of the large hydropower plant is as follows:
[0060] K s =(K q -S)×L÷(K q -G q )
[0061] In the formula, K s is the actual opening value of the gate of a large hydropower plant, K q is the full opening code value, S is the actual opening value, L is the opening range, G q It is the full code value.
[0062] It should be noted that after calculating the gate opening code value, the real-time gate opening can be calculated, and the algorithm is: actual gate opening = (gate fully open code value - gate opening real-time code value) × gate opening range ÷ (gate fully open code value - gate fully closed code value), among which the gate fully open (gate fully open code value: 63600), fully closed code value (fully closed code value: 600) and gate opening range (gate opening range: 9950) are manually written into the program according to actual conditions, and the gate real-time code value is collected in real time by the opening sensor.
[0063] The method proposed in this embodiment further improves the reliability of the water inlet rapid door control system and ensures the safe and stable operation of the hydro-turbine generator set in the hydropower plant. The invention has a simple principle, accurate algorithm, strong versatility, and is suitable for calculating the opening of the water inlet gate of large, medium and small hydropower plants.
[0064] In summary, the method for determining the gate opening of a large hydropower plant based on Gray code proposed in this embodiment can accurately calculate the real-time gate opening, improve the reliability of the water inlet rapid door control system, and ensure the safe and stable operation of the hydropower plant's turbine generator set.
[0065] Embodiment 2
[0066] Figure 3 FIG. 1 is a structural diagram of a large hydropower plant gate opening determination system based on Gray code according to an embodiment of the present application, such as Figure 3 As shown, the system comprises:
[0067] The acquisition module 100 is used to acquire the Gray code displacement signal of the gate hydraulic cylinder piston by using the gate opening sensor installed on the top of the hydraulic cylinder of the water inlet fast door;
[0068] A first determination module 200, for determining a real-time code value of the opening of a gate of a large hydropower plant according to the Gray code displacement signal;
[0069] The second determination module 300 is used to determine the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant.
[0070] Wherein, the Gray code displacement signal is a 16-bit Gray code displacement signal.
[0071] In the embodiment of the present disclosure, the first determining module 200 is further configured to:
[0072] Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal;
[0073] The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
[0074] In the embodiment of the present disclosure, the second determining module 300 is further configured to:
[0075] Obtaining the full open code value, full closed code value, and opening range of the gate of the large hydropower plant;
[0076] Determine the actual opening value of the gate of the large hydropower plant according to the actual opening value, full opening code value, full closing code value, and opening range of the gate of the large hydropower plant;
[0077] Among them, the full-open code value, the full-closed code value, and the opening range are all binary numbers.
[0078] The calculation formula for the actual opening value of the gate of the large hydropower plant is as follows:
[0079] K s =(K q -S)×L÷(K q -G q )
[0080] In the formula, K s is the actual opening value of the gate of a large hydropower plant, K q is the full opening code value, S is the actual opening value, L is the opening range, G q It is the full code value.
[0081] In summary, the large hydropower plant gate opening determination system based on Gray code proposed in this embodiment can accurately calculate the real-time gate opening, improve the reliability of the water inlet rapid door control system, and ensure the safe and stable operation of the hydropower plant turbine generator set.
[0082] Embodiment 3
[0083] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in Embodiment 1 is implemented.
[0084] Embodiment 4
[0085] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first embodiment is implemented.
[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0087] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0088] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for determining gate opening of a large hydropower plant based on Gray code, characterized in that: The method comprises: The gate opening sensor installed on the top of the hydraulic cylinder of the water inlet rapid door is used to collect the Gray code displacement signal of the gate hydraulic cylinder piston; Determine the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal; The actual opening value of the gate of the large hydropower plant is determined according to the real-time code value of the opening of the gate of the large hydropower plant.
2. The method according to claim 1, characterized in that The Gray code displacement signal is a 16-bit Gray code displacement signal.
3. The method according to claim 2, characterized in that Determining the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal includes: Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal; The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
4. The method according to claim 3, characterized in that The method of determining the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant comprises: Obtaining the full open code value, full closed code value, and opening range of the gate of the large hydropower plant; Determine the actual opening value of the gate of the large hydropower plant according to the actual opening value, full opening code value, full closing code value, and opening range of the gate of the large hydropower plant; Among them, the full-open code value, the full-closed code value, and the opening range are all binary numbers.
5. The method according to claim 4, characterized in that The calculation formula for the actual opening value of the gate of the large hydropower plant is as follows: K s =(K q -S)×L÷(K q -G q ) In the formula, K s is the actual opening value of the gate of a large hydropower plant, K q is the full opening code value, S is the actual opening value, L is the opening range, G q It is the full code value.
6. A system for determining gate opening of a large hydropower plant based on Gray code, characterized in that: The system comprises: The acquisition module is used to acquire the Gray code displacement signal of the gate hydraulic cylinder piston by using the gate opening sensor installed on the top of the hydraulic cylinder of the water inlet fast door; A first determination module is used to determine the real-time code value of the opening of the gate of a large hydropower plant according to the Gray code displacement signal; The second determination module is used to determine the actual opening value of the gate of the large hydropower plant according to the real-time code value of the opening of the gate of the large hydropower plant.
7. The system according to claim 6, characterized in that The Gray code displacement signal is a 16-bit Gray code displacement signal.
8. The system according to claim 7, characterized in that The first determining module is further used for: Performing binary conversion on the Gray code displacement signal to obtain a binary code corresponding to the Gray code displacement signal; The binary code corresponding to the Gray code displacement signal is used as the real-time code value of the opening of the gate of the large hydropower plant.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.