Address automatic coding system and method in fan group control system
By using an electronically controlled switch to control the on/off state of the RS485 communication line in the wind turbine group control system, the address signal line can be reused, solving the problems of large number of cables and complex wiring, reducing costs and simplifying construction, and improving system reliability and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU XUNAO ELECTRONIC TECH CO LTD
- Filing Date
- 2026-03-16
- Publication Date
- 2026-05-01
AI Technical Summary
Existing wind turbine group control systems require additional dedicated address lines and power lines, resulting in a large number of cables, high material costs, and complex wiring, which affects work efficiency.
An electronic switch is used to control the on/off state of the RS485 communication line, enabling the multiplexing of the address signal lines. The address is passed through cascading increments, and ordinary twisted-pair cables are used instead of network cables to form a serial topology.
It reduced cable costs, simplified the construction process, and improved the reliability and efficiency of the wind turbine group control system.
Smart Images

Figure CN121967377A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication circuit technology, specifically to an automatic address encoding system and method in a wind turbine group control system. Background Technology
[0002] In cleanroom projects, FFU or BFU fans are typically deployed on a large scale, and each device must be assigned a unique ID address for centralized monitoring and management. Existing automatic address coding schemes, in order to achieve cascading address signal transmission in a serial topology, require dedicated address signal lines and independent power lines in addition to standard RS485 communication lines. This results in cables requiring at least four cores or more, often using more expensive multi-pair twisted-pair network cables in practice. This reliance on dedicated address lines not only significantly increases cable material procurement costs but also leads to a massive workload for on-site installation due to the complex wiring methods, increasing the risk of wiring errors. For large projects with thousands of fans, cabling efficiency and the accuracy of address settings directly impact the commissioning cycle and subsequent maintenance costs of the entire group control system, further affecting the system's operational efficiency.
[0003] In summary, the existing technology has technical problems such as requiring additional dedicated address lines and power lines, resulting in a large number of cables, high material costs, and complex wiring, which further affects the working efficiency of the wind turbine group control system. Summary of the Invention
[0004] The purpose of this application is to provide an automatic address encoding system and method for wind turbine group control systems, in order to solve the technical problems in the prior art that require additional dedicated address lines and power lines, resulting in a large number of cables, high material costs, and complex wiring, which further affects the working efficiency of wind turbine group control systems.
[0005] To achieve the above objectives, this application provides an automatic address encoding system and method for a wind turbine group control system.
[0006] Firstly, this application provides an automatic address encoding system in a wind turbine group control system, comprising: a networking module for establishing a sequential series connection between a host computer and n wind turbines based on an RS485 communication line, forming a series topology, wherein each wind turbine includes a controller, a first port, and a second port, the controller including an electrical control switch, the controller controlling the switching of connection and disconnection between the first port and the second port; and a wind turbine address encoding module for generating and sending address encoding signals and communication control signals through the host computer, wherein based on the address encoding signals and communication control signals, the controller sequentially encodes the wind turbine addresses according to the series sequence of the n wind turbines, wherein when the controller is in a waiting-to-encode state, the two ports of the controller... The system is in a disconnected state. The wind turbine writing module is used to acquire the initial address encoding signal sent by the host computer and transmit it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and, after feeding back a successful writing signal via the RS485 communication line, switches the power switch of the first wind turbine to connect the first port and the second port. It then increments the received initial address encoding signal by 1 to generate a new address encoding signal and sends it to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the writing operation, increments the address by 1, and passes it to the next wind turbine, and so on, until the nth wind turbine completes the address writing. Optionally, the two ports of any wind turbine are the first port and the second port, respectively. The first port is connected to the previous wind turbine, where the first port of the first wind turbine is connected to the host computer, and the second port is connected to the next wind turbine.
[0007] Optionally, the networking module includes: a main connection unit for connecting to the host computer via an RS485 communication line using the first port of the first wind turbine; a first connection unit for connecting the first port of the first wind turbine to the first port of the second wind turbine; a second connection unit for connecting the second port of the second wind turbine to the first port of the third wind turbine via an RS485 communication line; and a series connection unit for sequentially connecting the first port of the nth wind turbine to the second port of the (n-1)th wind turbine to form a series topology.
[0008] Optionally, the electrical control switch is a relay, which is disposed between the first port and the second port of each fan and is electrically connected to the first port and the second port, and is used to connect or disconnect the electrical connection between the first port and the second port under the action of a control signal.
[0009] Optionally, the RS485 communication line is a twisted pair cable or a network cable, including a first signal line and a second signal line for transmitting address encoding signals and 485 communication control signals. The first port and the second port have two pins, which are respectively connected to the first signal line and the second signal line of the twisted pair cable.
[0010] Optionally, the controller for each wind turbine further includes: an MCU unit; two 485 chips, one of which is used to receive and transmit information, connected to the first port on one side and the MCU unit on the other side; the other 485 chip is used to receive information, connected to the relay circuit on one side and the MCU unit on the other side; a power supply for powering the controller; when the controller is in the pre-encoding state, the relay switches to the state where the two ports are disconnected, and when the controller has completed encoding, the relay switches to the state where the two ports are connected.
[0011] Optionally, the wind turbine address encoding module further includes: a state determination unit, used to ensure that the electrical control switches of the n wind turbines are in a connected state between the first and second ports of the n wind turbines in the initial state, establishing a complete serial bus topology; a disconnection unit, used to ensure that after each wind turbine responds to the write address broadcast command sent by the host computer and enters the write address mode, all wind turbines switch their electrical control switches to electrically isolate the first and second ports of each wind turbine, and all wind turbines are in a communication disconnected state; and an automatic write address unit, used to perform the electrical control switch switching to connection control operation and the automatic write address operation for each of the n wind turbines in the serial sequence from the first to the nth wind turbine.
[0012] Optionally, the automatic address writing unit includes: the i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially taken from 2 to n: the electrical control switches of the first to the (i-1)-th wind turbines are all in the state of connecting two ports, and the electrical control switch of the i-th wind turbine is in the state of disconnecting two ports. It receives the (i-1)-th address information sent by the (i-1)-th wind turbine through a 485 connection and stores the (i-1)-th address information in the cache space of the corresponding wind turbine MCU unit; wherein, when the electrical control switch of the first wind turbine is in the state of disconnecting two ports, it receives the initial address information of the host computer through a 485 connection and stores it in the cache space of the first wind turbine MCU unit; in response to the received (i-1)-th address information, the MCU unit of the i-th wind turbine reads the (i-1)-th address information from the cache space, generates the i-th address information, and sets the i-th address information as the local address number of the i-th wind turbine; when i reaches n, the address writing operation of the wind turbine group is completed.
[0013] Secondly, this application also provides an automatic address encoding method in a wind turbine group control system, comprising: establishing a series connection between a host computer and n wind turbines based on an RS485 communication line to form a series topology, wherein each wind turbine includes a controller, a first port, and a second port, the controller including an electrical control switch, the controller controlling the switching of the connection and disconnection between the first port and the second port; generating and sending address encoding signals and communication control signals through the host computer; based on the address encoding signals and communication control signals, the controller sequentially encodes the wind turbine addresses according to the series sequence of the n wind turbines, wherein when the controller is in a waiting-to-encode state, the two ports of the controller are disconnected. The system acquires the initial address encoding signal sent by the host computer and transmits it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and sends a successful write signal back via the RS485 communication line. Then, it switches the power control switch of the first wind turbine to connect the first port and the second port. The controller increments the received initial address encoding signal by 1 to generate a new address encoding signal and sends it to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the write operation and increments the address by 1 before passing it to the next wind turbine, and so on, until the nth wind turbine completes the address writing.
[0014] One or more technical solutions provided in this application have at least the following technical effects or advantages: a networking module for establishing a series connection between a host computer and n wind turbines based on an RS485 communication line, forming a series topology, wherein each wind turbine includes a controller, a first port, and a second port, the controller including an electrical control switch, which controls the switching of the connection and disconnection between the first port and the second port; a wind turbine address encoding module for generating and sending address encoding signals and communication control signals through the host computer, and based on the address encoding signals and communication control signals, the controller sequentially encodes the wind turbine addresses according to the series sequence of the n wind turbines, wherein when the controller is in the waiting-to-encode state, the two ports of the controller... The system is in a disconnected state. The wind turbine writing module is used to acquire the initial address encoding signal sent by the host computer and transmit it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and, after feeding back a successful writing signal via the RS485 communication line, switches the power switch of the first wind turbine to connect the first port and the second port. It then increments the received initial address encoding signal by 1 to generate a new address encoding signal and sends it to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the writing operation, increments the address by 1, and passes it to the next wind turbine, and so on, until the nth wind turbine completes the address writing. Optionally, the two ports of any wind turbine are the first port and the second port, respectively. The first port is connected to the previous wind turbine, where the first port of the first wind turbine is connected to the host computer, and the second port is connected to the next wind turbine. In other words, by using an electronically controlled switch to control the bus on / off state, multiplexing RS485 communication lines and address signal lines, and using address increments for transmission, ordinary twisted-pair cables can be used instead of network cables, requiring only 2 cores. This reduces cable costs, simplifies construction processes, and improves the reliability and efficiency of the wind turbine group control system.
[0015] The above description is merely an overview of the technical solution of this application. To better understand the technical means of this application and to facilitate its implementation according to the description, and to make the above and other objects, features, and advantages of this application more apparent, specific embodiments of this application are described below. It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent through the following description. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely exemplary. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the automatic address encoding system in the wind turbine group control system of this application.
[0018] Figure 2 This is a wiring diagram of the automatic address encoding system in the wind turbine group control system of this application.
[0019] Figure 3 This is an application scenario diagram of the automatic address encoding system in the wind turbine group control system of this application.
[0020] Figure 4 This is a system diagram of the automatic address encoding system in the wind turbine group control system of this application.
[0021] Figure 5 This is the internal circuit schematic diagram of the first wind turbine in the system overall diagram of the automatic address encoding system in the wind turbine group control system of this application.
[0022] Figure 6 This is a schematic diagram of the 485 communication circuit of the automatic address encoding system in the wind turbine group control system of this application.
[0023] Figure 7 This is a schematic diagram of the relay circuit for the automatic address encoding system in the wind turbine group control system of this application.
[0024] Figure 8 This is a flowchart illustrating the automatic address encoding method in the wind turbine group control system of this application.
[0025] Explanation of reference numerals in the attached diagram: Networking module 11, wind turbine address encoding module 12, wind turbine address writing module 13. Detailed Implementation
[0026] This application provides an automatic address encoding system and method for wind turbine group control systems, solving the technical problem in existing technologies where the need for additional dedicated address lines and power lines leads to a large number of cables, high material costs, and complex wiring, further affecting the working efficiency of the wind turbine group control system. By using an electronically controlled switch to control the bus on / off state, multiplexing RS485 communication lines and address signal lines, and utilizing address increment-by-level transmission, this application replaces network cables with ordinary twisted-pair cables (requiring only 2 cores), thereby reducing cable costs, simplifying the construction process, and improving the reliability and working efficiency of the wind turbine group control system.
[0027] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be understood that this application is not limited to the exemplary embodiments described herein. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application. It should also be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all of them.
[0028] Example 1, please refer to the appendix. Figure 1 and attached Figure 2 This application provides an automatic address encoding system in a wind turbine group control system, wherein the automatic address encoding system in the wind turbine group control system is used to implement the steps of the automatic address encoding method in the wind turbine group control system, and the automatic address encoding system in the wind turbine group control system includes:
[0029] The networking module 11 is used to establish a series connection between the host computer and n wind turbines based on the RS485 communication line, forming a series topology. Each wind turbine includes a controller, a first port, and a second port. The controller includes an electrical control switch, which controls the switching of the connection and disconnection between the first port and the second port.
[0030] Furthermore, the networking module 11 in the address automatic encoding system of the wind turbine group control system is also used for: a main connection unit, used to connect the first port of the first wind turbine to the host computer via an RS485 communication line; a first connection unit, used to connect the second port of the first wind turbine to the first port of the second wind turbine; a second connection unit, used to connect the second port of the second wind turbine to the first port of the third wind turbine via an RS485 communication line; and a series connection unit, used to sequentially connect the first port of the nth wind turbine to the second port of the (n-1)th wind turbine, forming a series topology.
[0031] Furthermore, the networking module 11 in the address automatic encoding system of the wind turbine group control system is also used for: the electrical control switch is a relay, which is set between the first port and the second port of each wind turbine and is electrically connected to the first port and the second port, and is used to connect or disconnect the electrical connection between the first port and the second port under the action of a control signal.
[0032] Furthermore, the networking module 11 in the address automatic encoding system of the wind turbine group control system is also used for: the controller of each wind turbine includes: an MCU unit; two 485 chips, one of which is used to receive and send information, connected to the first port on one side and the MCU unit on the other side; the other 485 chip is used to receive information, connected to the relay circuit on one side and the MCU unit on the other side; a power supply for supplying power to the controller; when the controller is in the waiting encoding state, the relay switches to the state where the two ports are disconnected, and when the controller completes the encoding, the relay switches to the state where the two ports are connected.
[0033] Furthermore, the networking module 11 in the address automatic encoding system of the wind turbine group control system is also used for: the RS485 communication line is a twisted pair cable or a network cable, including a first signal line and a second signal line, used to transmit address encoding signals and 485 communication control signals, and the first port and the second port have two pins, which are respectively connected to the first signal line and the second signal line of the twisted pair cable.
[0034] Specifically, each wind turbine includes a controller, a first port, a second port, an electrical control switch, and an MCU including buffer space. The controller includes an MCU unit and two 485 chips. (See attached...) Figure 3 Appendix Figure 4 Appendix Figure 5 The electronically controlled switch connects two 485 chips and the first and second network ports respectively. The upper 485 chip and the electronically controlled switch are both connected to the second network port, while the lower 485 chip and the electronically controlled switch are connected. Each 485 chip has TX and RX lines connected to the MCU, indicating a communication connection with the MCU. Specifically, the upper 485 chip connects to the second network port and the electronically controlled switch, and the lower 485 chip connects to the electronically controlled switch. The first and second network ports are equivalent to the first and second ports, meeting the requirement of separate connections. The other side is connected to the MCU unit, with the TX and RX lines of each 485 chip connected to the MCU. The electronically controlled switch connects the MCU, the first port, the second port, the upper 485 chip, and the lower 485 chip. The electronically controlled switch is controlled by the MCU and is used to connect and disconnect the connection between the first and second ports. That is, the first and second ports each have two pins, which are connected to the first and second signal lines of the twisted pair cable, respectively.
[0035] Select the appropriate RS485 communication cable based on the number of fans and the control distance. For most cleanroom projects, RVSP2×0.5mm is recommended. 2 Or 2×0.75mm 2Shielded twisted-pair cable. This type of cable has two insulated wires twisted together, with an outer aluminum foil shield and PVC sheath, effectively suppressing electromagnetic interference. If there is already network cabling on site, a pair of twisted wires from the network cable can also be used, such as orange / white / orange or green / white / green. Confirm that the controller pre-installed in each fan is correctly installed, and that the first and second ports of the controller are clearly labeled. Each port has two terminals, usually labeled A and B. The electrical control switch (relay) is correctly connected to the first and second ports inside the controller, and the MCU's I / O pins are connected to the relay control terminals. Prepare common electrical tools such as wire strippers, crimping pliers, screwdrivers, multimeters, insulating tape, and cable ties. For large projects, a cable label printer is also needed to mark the connection relationships of each cable segment.
[0036] The first port of the first wind turbine is connected to the host computer via an RS485 communication cable. The specific process is as follows: Measure the actual distance from the host computer's installation location to the first wind turbine's installation location, and cut a twisted pair cable of the appropriate length, leaving approximately 10 cm of slack at both ends for wiring. Use wire strippers to remove approximately 3 cm of the outer sheath from both ends of the cable, exposing the shielding layer and two insulated wires. Twist the shielding layer together for grounding. Strip approximately 5 mm of insulation from the ends of the two wires, exposing the copper conductors. Connect one end of the twisted pair cable to the RS485 interface of the host computer. The host computer's RS485 interface usually has terminal blocks marked A, B, and GND or shield. Connect the darker-colored wire (commonly designated as wire A) to terminal A, and the lighter-colored wire (commonly designated as wire B) to terminal B. Connect the shielding layer to the GND or shielding terminal. Tighten the terminals with a screwdriver to ensure good contact. Connect the other end of the twisted pair cable to the first port of the first wind turbine. The terminals of the first port are also marked A and B. Maintain the same-name connection; that is, the A line of the host computer must be connected to the A terminal of the first fan, and the B line must be connected to the B terminal. Connect the shielding layer to the reserved grounding terminal on the first port. Use a multimeter in resistance mode to check for a short circuit between the A and B lines; normally, it should be an open circuit or a high-resistance condition. Measure the continuity between the two ends of the A line; the resistance value should correspond to the resistance of the cable length, such as 0.5mm². 2 The resistance of the wire is approximately 3.6 ohms per 100 meters.
[0037] Connect the second port of the first wind turbine to the first port of the second wind turbine. Specific steps: Measure the actual distance between the installation locations of the first and second wind turbines, and cut a twisted-pair cable of the appropriate length, leaving some slack. Similar to the first step, strip the sheaths from both ends to expose the wires. Connect one end of the twisted-pair cable to the second port of the first wind turbine. The terminals of the second port are also marked A and B. Connect wire A to terminal A and wire B to terminal B, grounding the shield. Connect the other end of the twisted-pair cable to the first port of the second wind turbine. Again, ensure that the corresponding terminals AA and BB are connected. Use a multimeter to check for continuity between wire A at the first port of the second wind turbine and wire A at the second port of the first wind turbine, and also check for short circuits between wires A and B.
[0038] Repeat the aforementioned process, connecting the second port of the second wind turbine to the first port of the third wind turbine via an RS485 communication line. Continue this process until the first port of the nth wind turbine is connected to the second port of the (n-1)th wind turbine, forming a series topology, where n is a positive integer. For the i-th wind turbine (i ranges from 2 to n-1), its first port has already been connected to the second port of the (i-1)th wind turbine. Now, it is necessary to connect its second port to the first port of the (i+1)th wind turbine. Cut a suitable length of twisted-pair cable, connect one end to the second port of the i-th wind turbine (A to A, B to B), and the other end to the first port of the (i+1)th wind turbine (again, A to A, B to B). Ensure that all connections are made with the same end and do not cross. After completing each connection, immediately use a multimeter to test for continuity to ensure that the physical connection is correct.
[0039] The first port of the nth wind turbine has been connected to the second port of the (n-1)th wind turbine. There are two ways to handle the second port of the nth wind turbine: one is to connect a terminating resistor. In long-distance RS485 communication, to prevent signal reflection, a 120-ohm terminating resistor needs to be connected in parallel at the end of the bus. Connect the two ends of the resistor between terminals A and B of the second port of the nth wind turbine. Alternatively, if the communication distance is short or the signal quality requirements are not high, the second port can be left unconnected. The shielding layers of all cables should be interconnected and grounded at a single point on the host computer or the controller of a specific wind turbine to avoid ground loops.
[0040] The first wind turbine in the n wind turbines establishes a communication connection with the host computer through the first port and with the second wind turbine through the second port. The middle wind turbine in the n wind turbines establishes a communication connection with the wind turbine above it through the first port and with the wind turbine below it through the second port. The middle wind turbines include the second to the (n-1)th wind turbines in the n wind turbines.
[0041] Use a multimeter to measure the resistance between line A on the host computer and line A at the second port of the nth fan. Normally, this resistance should be the sum of the resistances of all line A segments, approximately equal to the resistance value corresponding to the total cable length. Measure line B in the same way. Use a megohmmeter to measure the insulation resistance between lines A and B; it should normally be greater than 10 megohms. Measure the insulation resistance between lines A and B and the shielding layer (ground); this should also be greater than 10 megohms. Ensure all connections are AA-BB, with no AB crossovers. If a crossover occurs, the entire bus will not communicate properly. Label both ends of each cable segment with the corresponding fan number and port number for easy maintenance later.
[0042] The controller is the core control unit of each wind turbine, used for automatically generating addresses, controlling the turbine, and providing feedback on turbine status. It includes an MCU unit, two RS485 chips, electrical switches, and a power supply. It is responsible for executing address writing logic, controlling relay on / off states, and communicating with the host computer. The controller is typically installed inside the wind turbine and connects to external cables via connectors. The MCU unit, or microcontroller, is the brain of the controller. Operating at 72 MHz, it has built-in flash memory and random access memory, multiple general-purpose input / output pins, and a serial communication interface. It is responsible for running address writing programs, processing address data, controlling relays, and exchanging data with the RS485 chips. The RS485 chips are interface chips that implement RS485 physical layer communication. Each RS485 chip is responsible for converting the logic level signal output from the MCU's transmit pin (TX) into an RS485 differential signal, which is then sent to the bus via lines A and B. Simultaneously, it receives differential signals from the bus, converts them back to logic level signals, and inputs them to the MCU via the receive pin (RX). Each wind turbine is equipped with two 485 chips, one directly connected to the port and the other connected to the port via a relay, allowing both ports to send and receive data independently.
[0043] The electrical switch is a relay, an electromagnetically controlled automatic switch. In this embodiment, the relay is a double-pole double-throw type, with a common terminal contact, a normally open terminal contact, and a normally closed terminal contact. When the control coil is not energized, there is no electromagnetic force, and the common terminal contact and the normally closed terminal contact are connected. When the control coil is energized, an electromagnetic force is generated to attract the armature, connecting the common terminal contact and the normally open terminal contact. The relay here is used to control the electrical connection between the first and second ports and is the core actuator for realizing cable multiplexing. Each fan controller has two physical interfaces, and each port has two pins, which are connected to the A and B lines of the RS485 communication line, respectively. Electrically, the two ports are connected to normally closed or normally open contacts via the relay contacts, achieving the switching of the two ports between connected and disconnected states. In other words, the electronically controlled switch is a relay, including a control circuit, two common terminals connecting the control circuit, two normally open terminals, and two normally closed terminals. The two common terminals are connected to the first port, the two normally closed terminals are connected to the second port, and the two normally open terminals are connected to the A and B lines of the lower 485 chip. When in the address-to-write state, the common terminal and the normally open terminal are connected, and the first and second ports are disconnected. After the address is written, the common terminal and the normally closed terminal are connected, and the first and second ports are connected. The REY1 pin of the control circuit is connected to the control module. The following explains how the relay disconnects and connects: for example, the connection pins RS485-A+ and RS485-B- of the upper 485 chip are connected to the A and B pins of the second port, as well as the two normally closed terminals of the relay. The connection pins RS485-2A+ and RS485-2B- of the lower 485 chip are connected to the two normally open terminals of the relay; the two common terminals of the relay are connected to the A and B pins of the first port, see... Figure 4 The two pins are labeled RSA and RSB. Alternatively, another connection method can be used: if the two common terminals of the relay are connected to pins A and B of the second port, the upper 485 chip's connection pins RS485-A+ and RS485-B- are connected to pins A and B of the first port, as well as the two normally closed terminals of the relay. The lower 485 chip's connection pins RS485-2A+ and RS485-2B- are connected to the two normally open terminals of the relay. When the relay is not energized, the two common terminals and the two normally closed terminals are connected, i.e., RSA and RS485-A+ are connected, and RSB and RS485-B- are connected, thus connecting the first and second ports. When the relay is energized, the two common terminals and the two normally open terminals are connected, i.e., RSA and RS485-2A+ are connected, and RSB and RS485-2B- are connected, thus disconnecting the first and second ports.
[0044] The working principle of the address coding of the entire wind turbine group control system is as follows:
[0045] When the host computer sends a signal requiring encoding, the first and second ports of all controllers are disconnected, and all controllers enter the encoding-ready state. The first controller connected to the host computer enters the address encoding state, and the host computer sends an encoded signal containing initial address information to the first controller, such as... Figure 3 As shown, since the first port and the second port are disconnected, if the first port receives an encoded signal, it transmits the encoded information to the MCU of the first controller through the lower 485 chip. If the second port receives an encoded signal, it transmits the encoded information to the MCU of the first controller through the upper 485 chip. After the MCU of the first controller completes the address encoding of the first controller, the first port and the second port of the first controller switch to the connected state. The MCU of the first controller sends out the encoded instruction information containing the address information of the first controller through the communication line of the upper 485 chip. The host computer and the second controller connected to the first controller receive the signal through the 485 communication line. The second controller enters the encoding state, and the process repeats in a loop.
[0046] Specifically, when the first and second ports are disconnected, the port connected to the previously encoded controller transmits a communication signal containing the address encoding instruction to the MCU of that controller via the 485 communication line. After the MCU completes encoding, the first and second ports of that controller switch to connected state, and the encoded instruction signal is sent out via the 485 chip communication line. The host computer and the next controller connected to this controller receive this signal via the 485 chip communication line, and the next controller enters the encoding state. This process is repeated in a loop to complete the address encoding of all controllers. When the last controller completes encoding and the host computer receives the address encoding completion instruction signal for more than a preset time, it is determined that the encoding is complete.
[0047] It's important to note that when both ports are disconnected, the upper 485 chip is connected to the second port, and the lower 485 chip is connected to the first port via a relay. The port connected to the previous controller transmits the encoded information to the MCU through the 485 chip connected to that port. Once encoding is complete, the MCU controls the relay to connect both ports, ensuring the host computer is connected to all coded controllers until a controller with two disconnected ports enters the encoding state. In this way, encoding can be achieved regardless of whether the first or second port is connected to either port of the previous coded controller. Therefore, the two ports of two adjacent controllers can be connected arbitrarily without affecting address encoding. Furthermore, when the two ports switch to the connected state via the relay after encoding, the lower 485 chip disconnects from the first port. Therefore, the upper 485 chip transmits the encoded information; the lower 485 chip is only used to transmit information to the MCU when the two ports are disconnected. Once encoding is complete, it disconnects from the port to avoid signal interference.
[0048] Specifically, the upper 485 chip and MCU are connected via the RX pin, TX pin (UART), and RE / DE pin; the lower 485 chip and MCU are connected via the RX pin, meaning it only receives signals and does not need to send signals.
[0049] Therefore, by setting relays to switch the connection or disconnection of the first and second ports, address encoding of all controllers can be achieved using only twisted-pair cables.
[0050] The power supply is the circuit that provides the operating voltage for the controller. It typically uses a 24V DC input, which is then converted to 5V via a step-down converter (such as the LM2596) to power the MCU and relays. This is followed by a low-dropout linear regulator to provide 3.3V to power the 485 module and the MCU core. The power supply circuit includes features such as filter capacitors, reverse connection protection, and overcurrent protection to ensure stability and reliability.
[0051] RS485 communication cables are twisted-pair cables or network cables, including a first signal line and a second signal line, used to transmit address encoding signals and RS485 communication control signals. The first and second ports each have two pins, connected to the first and second signal lines of the twisted pair, respectively. They serve as the physical transmission medium connecting various devices, employing a shielded twisted-pair structure, consisting of two insulated wires twisted together, with an external aluminum foil shielding layer and a PVC sheath. The twisted structure effectively cancels electromagnetic interference, and the shielding layer further suppresses external noise. This solution uses only one pair of twisted-pair cables, i.e., two wires. The first and second signal lines are the two conductors in the twisted pair, usually distinguished by color, such as red and white, or orange-white and orange. In the RS485 standard, these two wires are called the A line (positive signal line) and the B line (negative signal line), respectively. Signals are transmitted as logic 0 and 1 through the voltage difference between the two lines (typically 2 to 6 volts).
[0052] As attached Figure 4 Appendix Figure 5 Appendix Figure 6 Appendix Figure 7 The diagram shows the main circuit modules of the controller and their connections, including: a microcontroller unit (MCU), two RS485 chips (such as SSP485 chips), an electronic switch drive circuit (including optocouplers EL357 and EL355 and their peripheral components), a power supply circuit (providing +24V, +5V and +3.3V voltages), and terminals (A, B, etc.) for the first and second ports. The circuit diagram is used to realize the controller's automatic encoding function for the fan address.
[0053] When the controller leaves the factory, the relay is already installed on the circuit board, and its contacts are connected to the A and B pins of the first and second ports via copper foil inside the circuit board. Therefore, on-site construction personnel do not need to operate the relay itself; they only need to connect the external cables to the ports. Taking the connection of the first and second fans as an example: Take a section of twisted-pair cable, strip about 3 cm of the outer sheath from both ends, exposing the shielding layer and the red and white wires. Connect the red wire (as wire A) to terminal A of the second port of the first fan, and the white wire (as wire B) to terminal B. Connect the shielding layer to the grounding terminal. Connect the other end of the cable to the first port of the second fan, again connecting the red wire to terminal A and the white wire to terminal B, and grounding the shielding layer. Ensure that all connections are made with the same AA and BB terminals and do not cross them. The controller is powered by an external DC power supply, usually 24 volts. Connect the positive terminal of the power supply to the 24V+ terminal of the controller and the negative terminal to the 24V- terminal. All controllers can be powered in parallel or in separate power supplies, but the power supply capacity must be considered. Of course, the controller power supply can also be set inside the controller, and the internal power supply will provide power when the controller is working.
[0054] The power module starts working, outputting 5V and 3.3V voltages. After the MCU resets, it begins executing the initialization program. The MCU initializes the general-purpose input / output pins controlling the relays to push-pull outputs and outputs a high level, energizing all relay coils and closing the contacts. At this point, the first and second ports of each fan are directly connected, forming a complete bus path. The MCU initializes two RS485 modules, setting the communication baud rate to 9600 bits per second, with a data format of 8-bit data, no parity, and 1 stop bit. Both modules are in receive mode, waiting for instructions from the host computer. After the host computer powers on, it establishes a connection with the bus through its RS485 module. At this time, the host computer can send broadcast commands to query the status of all fans, but it has not yet entered write address mode.
[0055] The wind turbine address encoding module 12 is used to generate and send address encoding signals and communication control signals through the host computer. Based on the address encoding signals and communication control signals, the controller encodes the wind turbine addresses sequentially according to the series connection order of n wind turbines. When the controller is in the waiting-to-encode state, the two ports of the controller are in the disconnected state.
[0056] The wind turbine address writing module 13 is used to acquire the initial address encoding signal sent by the host computer and send it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and sends back a successful address writing signal via the RS485 communication line. Then, it switches the power control switch of the first wind turbine to connect the first port and the second port. It increments the received initial address encoding signal by 1 to generate a new address encoding signal and sends it to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the address writing operation and increments the address by 1 before passing it to the next wind turbine, and so on, until the nth wind turbine completes the address writing.
[0057] Furthermore, the wind turbine address encoding module 12 in the automatic address encoding system of the wind turbine group control system is also used for: a state determination unit, used to ensure that the electrical control switches of the n wind turbines are in a connected state between the first port and the second port of the n wind turbines in the initial state, and to establish a complete serial bus topology; a disconnection unit, used to ensure that after each wind turbine responds to the write address broadcast command sent by the host computer and enters the write address mode, all wind turbines switch their electrical control switches to make the first port and the second port of each wind turbine electrically isolated, and all wind turbines are in a communication disconnected state; and an automatic write address unit, used to perform the electrical control switch switching to connection control operation and the automatic write address operation for each of the n wind turbines in the serial sequence from the first to the nth wind turbine.
[0058] Furthermore, the wind turbine address encoding module 12 in the automatic address encoding system of the wind turbine group control system is also used for: the i-th wind turbine among the n wind turbines to perform the following steps, wherein i is sequentially taken from 2 to n: the electrical control switches of the first to the (i-1)-th wind turbines are all in the state of connecting the two ports, and the electrical control switch of the i-th wind turbine is in the state of disconnecting the two ports. It receives the (i-1)-th address information sent by the (i-1)-th wind turbine through a 485 connection and stores the (i-1)-th address information in the cache space of the corresponding wind turbine MCU unit; wherein, when the electrical control switch of the first wind turbine is in the state of disconnecting the two ports, it receives the initial address information of the host computer through a 485 connection and stores it in the cache space of the MCU unit of the first wind turbine; in response to the received (i-1)-th address information, the MCU unit of the i-th wind turbine reads the (i-1)-th address information from the cache space, generates the i-th address information, and sets the i-th address information as the local address number of the i-th wind turbine; when i is taken to n, the address writing operation of the wind turbine group is completed.
[0059] Specifically, the address writing process is divided into three stages: Initial state: All electrical control switches' common and normally closed contacts are in contact, and the first and second ports of all fans are connected, thus connecting the bus; Broadcast disconnection: After receiving the address writing broadcast, all fans switch their electrical control switches, making the common and normally open contacts in contact, disconnecting the first and second ports of all fans, thus splitting the bus; Address writing per fan: Following the serial sequence, starting with the first fan, addresses are written to each fan one by one. The first fan undergoes special processing (receiving the initial address from the host computer), while fans 2 through n are processed cyclically (receiving the address from the previous fan and generating their own address). Specifically, after the first and second ports of the fan requiring encoding are connected, the electrical control switch connects the two ports of all fans, and the host computer connects all controllers via cables. When encoding is required, the host computer sends a communication control signal via cables to all controllers to wait for encoding. The electrical control switch switches to the state where the two ports are disconnected. The port receiving the signal transmits the signal to the MCU via the 485 chip. The MCU adds 1 to the previous address to obtain the address of this controller. The MCU controls the electrical control switch to connect the two ports of the fan and transmits the signal to the host computer and the next controller via the 485 chip. After receiving the signal that the controller has completed encoding, the host computer saves the address of this controller and determines whether all controllers have completed address encoding. The next controller continues address encoding, and all controllers complete address encoding in sequence.
[0060] Starting with the first controller connected to the host computer, they are numbered 1, 2, 3, ..., N. After all controllers have completed their cable connections, the power switch of each controller is switched to ensure that both ports are connected. When the host computer broadcasts the start address code, the power switches of all controllers are switched to ensure that both ports of that controller are disconnected. When the host computer receives a signal indicating that both ports of all controllers are disconnected, it sends an address encoding signal containing initial address information. The 485 chips connected to the ports of controller 1, which is connected to the host computer, receive this signal. One 485 chip is directly connected to one port, while the other is connected to the other port via an electronic switch. Controller 1 completes the address encoding and saves it. Then, it switches its electronic switch to connect both ports, establishing a connection between the host computer and controller 2. The host computer then sends the completed address encoding signal to both the host computer and controller 2 via this connection. Upon receiving this signal, the host computer saves controller 1's address and checks if address encoding for all controllers is complete. Controller 2, upon receiving controller 1's address encoding signal, increments it by 1. Controller 2 completes the address encoding and saves it. It then switches its electronic switch to connect both ports, establishing a connection between the host computer and controller 3. Controller 2 sends the completed address encoding signal to both the host computer and controller 3 via this connection. This process is repeated for all controllers.
[0061] All electrical control switches of n wind turbines are in the connected state; n wind turbines receive the write address broadcast domain sent by the host computer via 485 connection and enter write address mode in response to the write address broadcast domain signal; all electrical control switches of n wind turbines switch to the communication connection disconnected state; the i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially taken from 2 to n: the electrical control switches of the 1st to the (i-1th)th wind turbines are all in the state of connecting the two ports of the corresponding wind turbine, the electrical control switch of the i-th wind turbine is in the state of disconnecting the two ports of the i-th wind turbine, receives the (i-1th)th address information sent by the (i-1th)th wind turbine via 485 connection, and stores the (i-1th)th address information in the buffer space; wherein, when the electrical control switch of the 1st wind turbine is in the state of disconnecting the two ports of the 1st wind turbine, it receives the communication connection from the host computer via 485 connection. The initial address information of the host computer is stored in the cache space of the first wind turbine. In response to the received 485 communication signal (still writing the (i-1)th address information), the MCU of the i-th wind turbine reads the cached (i-1)th address information, generates the i-th address information, and sets the i-th address information as the local address number of the i-th wind turbine. Among them, the first wind turbine responds to the initial address information sent by the host computer, generates the first address information according to the initial address information read from the cache space of the first wind turbine, and sets the first address information as the address number of the first wind turbine. The power control switch of the i-th wind turbine is switched to connect the two ports of the i-th wind turbine, and the i-th address information is sent to the host computer and the (i+1)-th wind turbine through the 485 connection. The write address mode is exited. When i reaches n, the address writing of the wind turbine group is completed.
[0062] The specific implementation process is as follows: The system is in its default state after power-on, before address writing begins. At this time, all fans have not yet performed any address writing operations and are in standby mode. The common contact and normally closed contact of the relays are in contact, and the first and second ports are electrically connected, with resistance close to 0. The first and second ports of all fans are connected end-to-end, forming a complete physical bus from the host computer to the nth fan. Signals sent by any device can reach all other devices along the bus. After the system powers on, the MCU of each fan executes the initialization program. In the initialization code, the MCU sets the general-purpose input / output pins controlling the relays to a low level, the relay coils are not energized, and the common contact and normally closed contact are in contact. The first and second ports of the first fan are connected, the first and second ports of the second fan are connected, ..., the first and second ports of the nth fan are connected. Meanwhile, since the wind turbines are connected by cables, the entire bus forms a complete link: host computer, first port of the first turbine, second port of the first turbine, first port of the second turbine, second port of the second turbine, ..., first port of the nth turbine, second port of the nth turbine (a terminating resistor can be connected). In this state, any signal sent by the host computer can reach every wind turbine. For example, the host computer can send a query command, and all wind turbines can receive and respond.
[0063] The operator issues an automatic writing command via the host computer software, which then sends a write address broadcast command via the RS485 bus. Since all relays are initially in the normally closed state, the bus is connected, and the broadcast command can reach both ports of each wind turbine. The RS485 chips directly connected to the ports on each wind turbine are in receive mode. Upon receiving the command, the MCU parses the function code and confirms the need to enter write address mode. Each wind turbine's MCU sets its internal status flag to write address mode and begins executing the program logic in write address mode. The MCU switches the general-purpose input / output pins controlling the relays from low to high, energizing the relay coils and bringing the common and normally open contacts together. This action occurs almost simultaneously on all wind turbines; since the relay action time is typically 3-5 milliseconds, all wind turbines disconnect within tens of milliseconds. The first and second ports of each wind turbine are electrically isolated. The entire bus is divided into multiple independent segments: segment 1 connects the host computer to the first port of the first wind turbine, segment 2 connects the second port of the first wind turbine to the first port of the second wind turbine, segment 3 connects the second port of the second wind turbine to the first port of the third wind turbine, and so on, with segment n connecting the second port of the (n-1)th wind turbine to the first port of the nth wind turbine. Each wind turbine can report its disconnected status to the host computer via its first port (for the first wind turbine) or its second port. However, since the bus is now segmented, only the first port of the first wind turbine is directly connected to the host computer; feedback from other wind turbines requires passing through an open link. In fact, with the relays in the normally open state, only the first port of the first wind turbine can communicate directly with the host computer because the pathways between other wind turbines and the host computer are blocked by the two disconnected ports. Therefore, a common practice is for the host computer to send a broadcast and then wait for a fixed period of time, such as 100 milliseconds, assuming that all relays are disconnected, without relying on feedback from all wind turbines.
[0064] The wind turbines are arranged in a physical connection order of 1, 2, 3, ..., n, and signals can only be transmitted sequentially along this direction. The wind turbine currently performing a write operation has an i value ranging from 2 to n, meaning that this loop processes the second and subsequent wind turbines; the processing of the first wind turbine is listed separately. This is a cyclical process: first process i=2, then i=3, and so on until i=n. After processing each wind turbine, i is incremented by 1 until all wind turbines have been processed. In other words, the same operation sequence is executed sequentially for the 2nd, 3rd, ..., nth wind turbines. The write operation for the first wind turbine has already been completed separately. Before the loop begins, the system state is: the electrical control switch of the first wind turbine connects both ports; the electrical control switches of the second to nth wind turbines disconnect both ports; and the bus remains in a split state. The loop starts at i=2 and ends at i=n. By using a loop structure, a unified set of steps is used to describe the address writing process for all subsequent wind turbines, making the method concise and clear. At the same time, the first turbine is treated separately, highlighting its special role as the starting point, receiving the initial address from the host computer instead of the address of the previous turbine.
[0065] Before processing the i-th fan, all the preceding fans (1 to i-1) have already completed their address writing, and their relays have been switched to the corresponding fan's two ports being connected. This means the path from fan 1 to fan (i-1) is connected, but the two ports of fan i are still disconnected, so the signal can reach the first port of fan i, but cannot continue. After completing its own address writing, fan (i-1) sends its address data through its second port. This data is equal to the local address of fan (i-1), or it may be its address plus 1, depending on the design. In this description, it is called the (i-1)-th address information, i.e., the value is i-1. The MCU temporarily stores the received address data in a variable in its internal random access memory, awaiting subsequent processing. The cache space can be a general-purpose register of the MCU or a RAM unit, with a capacity of only a few bytes. Taking fan i (i≥2) as an example, before processing fan i, the address writing from fan 1 to fan (i-1) has already been completed. Since both ports of the first, second, ..., (i-1)th wind turbines are already connected, the first and second ports of these wind turbines are all connected. The path from the host computer to the (i-1)th wind turbine is open. The two ports of the i-th wind turbine are still disconnected, with its first and second ports isolated. After completing its address writing, the (i-1)th wind turbine will send address information through its second port. This signal travels along the following path: the second port of the (i-1)th wind turbine, the connecting cable, and the first port of the i-th wind turbine. Because the two ports of the i-th wind turbine are disconnected, the signal can only reach the first port of the i-th wind turbine; it cannot enter the internal circuitry of the i-th wind turbine and exit through the second port, nor can it continue to be transmitted. The 485 module connected to the first port of the i-th wind turbine receives the signal. The MCU parses the data content, obtains the address value, and writes this value into a predefined buffer variable. If there is old data in the buffer, such as data from a previous erroneous reception, it will be overwritten by the new data; this process is called refreshing the buffer space.
[0066] The address writing for the first fan is the starting point of the entire process, and it occurs immediately when all relays are in the normally open state. Both ports of all other fans are disconnected, and the bus is in a split state. Only the first port of the first fan is directly connected to the host computer. The host computer sends the initial address encoding signal via the RS485 bus. Since both ports of the first fan are disconnected, this signal can only reach the first port of the first fan. The RS485 module connected to the first port of the first fan receives the signal, the MCU parses the address data 1, and stores it in a buffer variable. After the first fan completes buffering, it will perform operations such as address generation, feedback, and switching relays to connect the two ports.
[0067] Once the MCU confirms that it has successfully received and cached the address information, it triggers the next step of processing. The MCU retrieves the address value from the previously stored cache variable and calculates the address that it should use based on the read address value using a certain algorithm. The most common algorithm is to add 1, i.e., the local address = the received address + 1. Of course, subtraction and other algorithms can also be used, decreasing sequentially. The generated address value is written to non-volatile memory as the local permanent address. At the same time, the MCU's internal status variables are also updated to the local address. For the first unit, the first unit reads the initial address sent by the host computer from the cache, such as 1; generating the first address information: usually, the first unit directly uses the initial address as its local address, i.e., address = initial address. Address 1 is written to the electrically erasable programmable read-only memory (EEPROM) for permanent storage. For the i-th unit (i≥2): the i-th unit reads the address sent by the (i-1)-th unit from the cache, such as when i=50, it reads 49. Generating the i-th address information, the local address = the received address + 1, i.e., 49 + 1 = 50. Address 50 is written to the EEPROM and stored permanently. By using a simple increment operation, there's no need for the host computer to assign an address individually to each wind turbine, greatly simplifying the system design. Since each turbine's address is uniquely incremented by 1 from the address of the previous turbine, and the writing order strictly follows the physical order, it can be guaranteed that all addresses are unique.
[0068] When the loop reaches i=n, it indicates that the last wind turbine is being processed. The processing of the nth wind turbine is basically the same as that of the ith wind turbine (i≥2), but there is a key difference: it does not need to send an address to the next wind turbine because there are no more wind turbines after it. After the (n-1)th wind turbine completes the address writing, it connects the two ports of the (n-1)th wind turbine and sends the address n (because the address of the (n-1)th wind turbine is n-1, adding 1 gives n) to the nth wind turbine through its second port; the first port of the nth wind turbine receives the address n and stores it in the buffer; the MCU of the nth wind turbine reads n from the buffer, generates its own address n, and if it uses the increment algorithm, then n=(n-1)+1, which is actually n, and saves it to the EEPROM; the nth wind turbine sends a successful address writing signal to the host computer through its first port; after receiving the feedback, the host computer waits for a predetermined time. If it does not receive subsequent address encoding information, the loop ends. At this point, the addresses of all n wind turbines have been allocated.
[0069] A complete bus is established through initial closure. After broadcasting, the entire bus is disconnected and segmented. Then, relays are switched one by one to connect the corresponding two ports, ensuring that address signals can only be transmitted step by step along the closed links. This guarantees that each wind turbine has only one predecessor that can send the address during writing, avoiding address conflicts caused by multiple turbines writing simultaneously. Each wind turbine's MCU has a buffer space to temporarily store received address information, which is read when generating its own address. The use of buffers avoids address data loss during relay operation, improving the reliability of writing. The buffer capacity is extremely small (only 2 bytes), without increasing hardware costs. By incrementing the received address value by 1 to obtain its own address and sending it to the next turbine, automatic sequential address numbering is achieved. The host computer only needs to send the initial address once; subsequent steps are completed automatically by the wind turbines, greatly simplifying the host computer software design. During the writing process, if a wind turbine fails and cannot complete the writing, the host computer can detect the anomaly through a timeout mechanism, stop the writing process, and report an error. Since the bus is segmented, a faulty wind turbine will not affect wind turbines that have already been successfully written. After troubleshooting, you can restart the address writing process, and the already written fan addresses will remain unchanged.
[0070] In summary, the automatic address encoding system in the wind turbine group control system provided in this application has the following technical effects: A networking module is used to establish a sequential series connection between the host computer and n wind turbines based on an RS485 communication line, forming a series topology. Each wind turbine includes a controller, a first port, and a second port. The controller includes an electrical control switch, which controls the switching of the connection and disconnection between the first port and the second port. A wind turbine address encoding module is used to generate and send address encoding signals and communication control signals through the host computer. Based on the address encoding signals and communication control signals, the controller sequentially encodes the wind turbine addresses according to the series sequence of the n wind turbines. When the controller is in a waiting-to-encode state, the two ports of the controller... The first wind turbine is in a disconnected state. The wind turbine writing module receives the initial address encoding signal sent by the host computer and transmits it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and, after feeding back a successful write signal via the RS485 communication line, switches the power switch of the first wind turbine, connecting the first port and the second port. It then increments the received initial address encoding signal by 1 to generate a new address encoding signal, which is transmitted to the second wind turbine through its second port. The second wind turbine repeats the write operation, incrementing the address by 1 and transmitting it to the next wind turbine, and so on, until the nth wind turbine completes the address writing. Optionally, the two ports of any wind turbine are the first port and the second port, respectively. The first port is connected to the previous wind turbine, where the first port of the first wind turbine is connected to the host computer, and the second port is connected to the next wind turbine. In other words, by using an electronically controlled switch to control the bus on / off state, multiplexing RS485 communication lines and address signal lines, and using address increments for transmission, ordinary twisted-pair cables can be used instead of network cables, requiring only 2 cores. This reduces cable costs, simplifies construction processes, and improves the reliability and efficiency of the wind turbine group control system.
[0071] Example 2: Based on the same inventive concept as the automatic address encoding system in the wind turbine group control system in Example 1, this application also provides an automatic address encoding method in the wind turbine group control system. Please refer to the appendix. Figure 8 The automatic address encoding method in the wind turbine group control system includes:
[0072] A serial connection is established between the host computer and n wind turbines via an RS485 communication line, forming a serial topology. Each wind turbine includes a controller, a first port, and a second port. The controller includes an electrical switch that controls the connection and disconnection between the first and second ports. The host computer generates and sends address encoding signals and communication control signals. Based on these signals, the controller sequentially encodes the wind turbine addresses according to the serial order of the n wind turbines. When the controller is in a waiting-to-encode state, both ports of the controller are disconnected. The initial address sent by the host computer is obtained. The initial address encoding signal is sent to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and sends a successful address writing signal back via the RS485 communication line. Then, it switches the power control switch of the first wind turbine to connect the first port and the second port. The controller increments the received initial address encoding signal by 1 to generate a new address encoding signal, which is sent to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the address writing operation and increments the address by 1 before passing it to the next wind turbine, and so on, until the nth wind turbine completes the address writing.
[0073] Furthermore, the step of establishing a series connection between the host computer and n wind turbines based on the RS485 communication line to form a series topology includes: connecting the first port of the first wind turbine to the host computer via the RS485 communication line; connecting the second port of the first wind turbine to the first port of the second wind turbine; connecting the second port of the second wind turbine to the first port of the third wind turbine via the RS485 communication line; and so on, until the first port of the nth wind turbine is connected to the second port of the (n-1)th wind turbine, thus forming a series topology.
[0074] Furthermore, the electrical control switch is a relay, which is installed between the first port and the second port of each fan and is electrically connected to the first port and the second port, and is used to connect or disconnect the electrical connection between the first port and the second port under the action of a control signal.
[0075] Furthermore, the controller for each wind turbine includes: an MCU unit; two 485 chips, one of which is used to receive and transmit information, connected to the first port on one side and the MCU unit on the other side; the other 485 chip is used to receive information, connected to the relay circuit on one side and the MCU unit on the other side; a power supply for powering the controller; when the controller is in the pre-encoding state, the relay switches to the state where the two ports are disconnected, and when the controller completes encoding, the relay switches to the state where the two ports are connected.
[0076] Furthermore, the RS485 communication line is a twisted pair cable or a network cable, including a first signal line and a second signal line, used to transmit address encoding signals and 485 communication control signals. The first port and the second port have two pins, which are respectively connected to the first signal line and the second signal line of the twisted pair cable.
[0077] Furthermore, the controller, based on the address encoding signal and communication control signal, sequentially encodes the wind turbine addresses according to the series connection order of the n wind turbines. This further includes: in the initial state, the electrical control switches of the n wind turbines ensure that the first and second ports of all n wind turbines are connected, establishing a complete series bus topology; after each wind turbine responds to the write address broadcast command sent by the host computer and enters the write address mode, all wind turbines switch their electrical control switches to electrically isolate the first and second ports of each wind turbine, placing all wind turbines in a communication disconnected state; according to the series connection order of the n wind turbines, the controller sequentially performs the electrical control switch switching to connection control operation and the automatic write address operation from the first to the nth wind turbine.
[0078] Furthermore, the step of performing the electrical control switch closing and connection control operation and automatic address writing operation for each of the n wind turbines in series order, from the first to the nth turbine, includes: the i-th wind turbine among the n wind turbines performing the following steps, wherein i is sequentially taken from 2 to n: the electrical control switches of the first to the (i-1)-th wind turbines are all in the state of connecting two ports, and the electrical control switch of the i-th wind turbine is in the state of disconnecting two ports; the i-th address information sent by the (i-1)-th wind turbine is received through the 485 connection, and the (i-1)-th address information is written to the circuit. The information is stored in the cache space of the corresponding wind turbine MCU unit; wherein, when the power control switch of the first wind turbine is in the state of two open ports, the initial address information of the host computer is received through the 485 connection and stored in the cache space of the first wind turbine MCU unit; in response to the received (i-1)th address information, the MCU unit of the i-th wind turbine reads the (i-1)th address information from the cache space, generates the i-th address information, and sets the i-th address information as the local address number of the i-th wind turbine; when i reaches n, the address writing operation of the wind turbine group is completed.
[0079] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The automatic address encoding system and specific examples in the wind turbine group control system of the aforementioned embodiment 1 are also applicable to the automatic address encoding method in the wind turbine group control system of this embodiment. Through the foregoing detailed description of the automatic address encoding system in the wind turbine group control system, those skilled in the art can clearly understand the automatic address encoding method in the wind turbine group control system of this embodiment. Therefore, for the sake of brevity, it will not be described in detail here.
[0080] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0081] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of this application and its equivalents, this application also intends to include such modifications and variations.
Claims
1. An automatic address encoding system in a wind turbine group control system, characterized in that, include: The networking module is used to establish a series connection between the host computer and n wind turbines based on RS485 communication lines, forming a series topology. Each wind turbine includes a controller, a first port, and a second port. The controller includes an electrical control switch, which controls the switching of the connection and disconnection between the first port and the second port. The wind turbine address encoding module is used to generate and send address encoding signals and communication control signals through the host computer. Based on the address encoding signals and communication control signals, the controller encodes the wind turbine addresses sequentially according to the series connection order of n wind turbines. When the controller is in the waiting-to-encode state, the two ports of the controller are in the disconnected state. The wind turbine address writing module is used to obtain the initial address encoding signal sent by the host computer and send it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and sends back a successful address writing signal via the RS485 communication line. Then, it switches the power control switch of the first wind turbine to connect the first port and the second port. It increments the received initial address encoding signal by 1 to generate a new address encoding signal and sends it to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the address writing operation and increments the address by 1 before passing it to the next wind turbine, and so on, until the nth wind turbine completes the address writing.
2. The automatic address encoding system in the wind turbine group control system according to claim 1, characterized in that, The networking module includes: The main connection unit is used to connect to the host computer via an RS485 communication line through the first port of the first wind turbine. The first connection unit is used to connect the second port of the first wind turbine to the first port of the second wind turbine. The second connection unit is used to connect the second port of the second wind turbine to the first port of the third wind turbine via an RS485 communication line. The series connection unit is used to connect the first port of the nth wind turbine to the second port of the (n-1)th wind turbine, forming a series topology.
3. The automatic address encoding system in the wind turbine group control system according to claim 1, characterized in that, The electrical control switch is a relay, which is installed between the first port and the second port of each fan and is electrically connected to the first port and the second port. It is used to connect or disconnect the electrical connection between the first port and the second port under the action of a control signal.
4. The automatic address encoding system in the wind turbine group control system according to claim 1, characterized in that, The RS485 communication line is a twisted pair cable or a network cable, including a first signal line and a second signal line, used to transmit address encoding signals and 485 communication control signals. The first port and the second port have two pins, which are respectively connected to the first signal line and the second signal line of the twisted pair cable.
5. The automatic address encoding system in the wind turbine group control system according to claim 3, characterized in that, The controller for each wind turbine also includes: MCU unit; Two 485 chips are used. One 485 chip is used to receive and send information, with one side connected to the first port and the other side connected to the MCU unit. The other 485 chip is used to receive information, with one side connected to the relay circuit and the other side connected to the MCU unit. The power supply is used to power the controller; When the controller is in the pre-encoding state, the relay switches to the state where the two ports are disconnected. When the controller completes the encoding, the relay switches to the state where the two ports are connected.
6. The automatic address encoding system in the wind turbine group control system according to claim 5, characterized in that, The wind turbine address encoding module further includes: The state determination unit is used to ensure that the electrical control switches of n wind turbines are connected between the first and second ports of the n wind turbines in the initial state, thus establishing a complete serial bus topology. The disconnection unit is used by each fan to respond to the write address broadcast command sent by the host computer and enter the write address mode. After that, all fans switch the power control switch to make the first port and the second port of each fan electrically isolated, and all fans are in a communication disconnected state. The automatic address writing unit is used to perform the switching of the electrical control switch to the connection control operation and the automatic address writing operation for each of the n wind turbines in series, from the first to the nth turbine.
7. The automatic address encoding system in the wind turbine group control system according to claim 6, characterized in that, The automatic write unit is also used for: The i-th wind turbine among the n wind turbines performs the following steps, wherein i is sequentially selected from 2 to n: The electrical control switches of the first to the (i-1)th wind turbines are all in the state of connecting the two ports, and the electrical control switch of the i-th wind turbine is in the state of disconnecting the two ports. The i-1 address information sent by the (i-1)th wind turbine is received through the 485 connection, and the i-1 address information is stored in the cache space of the corresponding wind turbine MCU unit. When the electrical control switch of the first wind turbine is in the open state of both ports, it receives the initial address information of the host computer through the 485 connection and stores it in the cache space of the MCU unit of the first wind turbine. In response to the received (i-1)th address information, the MCU unit of the i-th wind turbine reads the (i-1)th address information from the cache space, generates the i-th address information, and sets the i-th address information as the local address number of the i-th wind turbine. When i reaches n, the address writing operation of the wind turbine unit is completed.
8. An automatic address encoding method in a wind turbine group control system, characterized in that, The automatic address encoding method in the wind turbine group control system, as described in any one of claims 1 to 7, is executed by the automatic address encoding system and includes: A serial connection is established between the host computer and n wind turbines based on an RS485 communication line, forming a serial topology. Each wind turbine includes a controller, a first port, and a second port. The controller includes an electrical switch, which controls the connection and disconnection between the first port and the second port. The host computer generates and sends address encoding signals and communication control signals. Based on the address encoding signals and communication control signals, the controller encodes the addresses of the n wind turbines in series. When the controller is in the waiting-to-encode state, the two ports of the controller are in the disconnected state. The system acquires the initial address encoding signal sent by the host computer and transmits it to the first wind turbine via an RS485 communication line. The first wind turbine receives the initial address encoding signal through its first port. The controller saves the address as its local address and sends a successful write signal back via the RS485 communication line. Then, it switches the power control switch of the first wind turbine to connect the first port and the second port. The controller increments the received initial address encoding signal by 1 to generate a new address encoding signal, which is then sent to the second wind turbine through the second port of the first wind turbine. The second wind turbine repeats the write operation and increments the address by 1 before passing it to the next wind turbine, and so on, until the nth wind turbine completes the address writing.