Multi-process operation method and device for wind farm

Through the multi-process operation method, wind farm operation data and commands are collected and updated, which solves the problem of frequency and reactive voltage control of wind turbines in high-penetration regional power grids, and improves the operating efficiency of wind farms and grid stability.

CN113535418BActive Publication Date: 2024-10-08BEIJING GOLDWIND SCI & CREATION WINDPOWER EQUIP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010300347.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-16
Publication Date
2024-10-08
Estimated Expiration
2040-04-16

AI Technical Summary

Technical Problem

In high-penetration regional power grids, the safety and stability of wind turbines are affected by fluctuations in grid frequency and reactive power voltage after new energy sources are integrated into the grid, resulting in increased demand for grid frequency regulation and reactive power control, which is difficult to effectively cope with with existing technologies.

Method used

Using a multi-process operation method, the wind farm operation data is collected through the communication master station process server, the local database is updated, and the shared database and command library are updated in the shared memory to realize hierarchical processing and sending of wind farm operation commands and improve the multi-process operation of the wind farm. Process operating efficiency.

Benefits of technology

It improves the multi-process operation efficiency of the wind farm, enhances the ability to control the grid frequency and reactive voltage, and improves the stability and security of the wind farm in high-penetration regional power grids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535418B_ABST
    Figure CN113535418B_ABST
Patent Text Reader

Abstract

A multi-process operation method and device for a wind farm are provided. The multi-process operation method for a wind farm comprises: in a polling of application devices in the wind farm, collecting wind farm operation data and updating a local database based on the collected wind farm operation data; in response to the end of the polling, updating a shared database of wind farm operation data stored in a shared memory based on the updated local database; in response to a shared command library of wind farm operation commands in the shared memory being updated by an application process server after the end of the polling, obtaining the updated shared command library from the shared memory; and sending wind farm operation commands based on the updated shared command library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of wind power generation, and more specifically, to a multi-process operation method and device for a wind farm. Background Art

[0002] With the increasing penetration rate of new energy generators, the safety and stability of wind turbines have attracted widespread attention in power grids with high penetration rates. In the actual operation of the power grid, when the power consumption does not match the power supply, it can cause a small component with a small change and a short change period in the power grid frequency. This frequency disturbance mainly relies on the steam turbine generator set's own regulation system to automatically adjust the steam turbine throttle to complete the grid load compensation and correct the fluctuation of the grid frequency. This process is the primary frequency regulation of the generator set.

[0003] Since the areas where new energy is connected to the grid often lack local loads and conventional power supply support, the electricity generated by new energy needs to be transmitted to the load center over a long distance, causing the reactive voltage fluctuations of the transmission channel to increase with the changes in the output of new energy. Therefore, higher and higher requirements are placed on the reactive power control and voltage stability of new energy stations.

[0004] Therefore, for new energy power plants, primary frequency regulation and reactive voltage control are required simultaneously by many power grids. Summary of the invention

[0005] An exemplary embodiment of the present disclosure is to provide a multi-process operation method and device for a wind farm, so as to improve the multi-process operation efficiency of the wind farm.

[0006] According to an exemplary embodiment of the present disclosure, a multi-process operation method of a wind farm is provided, which is executed by a communication master process server. The multi-process operation method of the wind farm includes: in a polling of an application device in the wind farm, collecting wind farm operation data and updating a local database based on the collected wind farm operation data; in response to the end of the polling, updating a shared database of wind farm operation data stored in a shared memory based on the updated local database; in response to the shared command library of wind farm operation commands in the shared memory being updated by the application process server after the end of the polling, obtaining the updated shared command library from the shared memory; and sending wind farm operation commands based on the updated shared command library.

[0007] Optionally, the shared database and the local database may have a preset data structure, in which the preset data structure may include device files, point table files and linear tables with logical relationships, and data is stored in the linear table, device files and point table files in a sequential manner.

[0008] Optionally, the step of updating the local database based on the collected wind farm operation data may include: searching for the corresponding address of the collected wind farm operation data in the linear table of the local database according to the logical relationship between the device file, the point table file and the linear table; and filling the collected wind farm operation data into the linear table of the local database according to the corresponding address found.

[0009] Optionally, the device file may include at least one of the device serial number, device name, transformer number, socket, communication mode key parameters, message sending and receiving key parameters, file association, and device maximum and minimum point indexes. The point table file may include at least one of point name, index, address offset, read / write type, read / write length, read / write address, coefficient, and dead zone.

[0010] Optionally, the data in the linear table and point table files may be arranged in the order of fixed value, strategy, OPC UA device data, and device data other than OPC UA devices.

[0011] Optionally, the step of sending the wind farm operation command may include: sending the wind farm operation command to the corresponding device in a single command sequence or multiple commands together through a first-in first-out FIFO circular queue according to the logical relationship between the device file and the point table file.

[0012] Optionally, the step of sending the wind farm operation command may include: processing and sending the acquired wind farm operation command in the shared command library in a hierarchical data processing manner.

[0013] Optionally, the step of processing the wind farm operation commands in the acquired shared command library by hierarchical data processing may include: when the time difference between the current time and the time when the fast command was last received is greater than a first duration, reading the fast command from the acquired shared command library, wherein the fast command requires the corresponding device to execute the command at a speed exceeding a preset speed; when the time difference between the current time and the time when the slow command was last received is greater than a second duration, reading the slow command from the acquired shared command library, wherein the slow command does not require the corresponding device to execute the command at a speed exceeding the preset speed.

[0014] According to an exemplary embodiment of the present disclosure, a multi-process operation method of a wind farm is provided, which is executed by an application process server. The multi-process operation method of the wind farm includes: in a polling of an application device in the wind farm executed by a communication master process server, a shared database about wind farm operation data is obtained from a shared memory, and a local database is updated based on the obtained shared database; wind farm operation data is obtained from the updated local database; a wind farm operation command is generated based on the obtained wind farm operation data, and a local command library is updated based on the generated wind farm operation command; and in response to the end of the polling, a shared command library about wind farm operation commands stored in the shared memory is updated based on the updated local command library.

[0015] Optionally, the shared database and the local database may have a preset data structure, and the data obtained from the updated local database is arranged in a preset tree structure.

[0016] Optionally, the step of obtaining wind farm operation data from an updated local database may include: searching for a point table index from the updated local database through the name of a leaf node in a tree structure; and searching for data of a corresponding address in a linear table of the updated local database according to the point table index, and filling the data of the corresponding address in the linear table into the leaf node as the value of the leaf node.

[0017] According to an exemplary embodiment of the present disclosure, a multi-process operation device of a wind farm is provided, comprising: a local database update unit, configured to collect wind farm operation data in a polling of application devices in the wind farm and update the local database based on the collected wind farm operation data; a shared database update unit, configured to update a shared database about wind farm operation data stored in a shared memory based on the updated local database in response to the end of the one polling; a shared command library acquisition unit, configured to acquire an updated shared command library from the shared memory in response to a shared command library about wind farm operation commands in the shared memory being updated by an application process server after the end of the one polling; and a command sending unit, configured to send wind farm operation commands based on the updated shared command library.

[0018] Optionally, the multi-process operation device of the wind farm is integrated in the VSG of the wind farm.

[0019] Optionally, the shared database and the local database have a preset data structure, in which a device file, a point table file and a linear table having a logical relationship are included, and data is stored in the linear table, the device file and the point table file in a sequential storage manner.

[0020] Optionally, the local database update unit can be configured to: search for the corresponding address of the collected wind farm operation data in the linear table of the local database according to the logical relationship between the device file, the point table file and the linear table; and fill the collected wind farm operation data into the linear table of the local database according to the searched corresponding address.

[0021] Optionally, the device file may include at least one of the device serial number, device name, transformer number, socket, communication mode key parameters, message sending and receiving key parameters, file association, and device maximum and minimum point indexes. The point table file may include at least one of point name, index, address offset, read / write type, read / write length, read / write address, coefficient, and dead zone.

[0022] Optionally, the data in the linear table and point table files may be arranged in the order of fixed value, strategy, OPC UA device data, and device data other than OPC UA devices.

[0023] Optionally, the command sending unit may be configured to send the wind farm operation command to the corresponding device in a manner of sending a single command in sequence or sending multiple commands together through a first-in first-out FIFO circular queue according to the logical relationship between the device file and the point table file.

[0024] Optionally, the command sending unit may be configured to: process and send the acquired wind farm operation command in the shared command library in a hierarchical data processing manner.

[0025] Optionally, the command sending unit can also be configured to: when the time difference between the current time and the last time a fast command was received is greater than a first duration, read a fast command from the acquired shared command library, wherein the fast command requires the corresponding device to execute the command at a speed exceeding a preset speed; when the time difference between the current time and the last time a slow command was received is greater than a second duration, read a slow command from the acquired shared command library, wherein the slow command does not require the corresponding device to execute the command at a speed exceeding the preset speed.

[0026] According to an exemplary embodiment of the present disclosure, a multi-process operation device of a wind farm is provided, comprising: a local database update unit, configured to obtain a shared database about wind farm operation data from a shared memory in a polling for application devices in the wind farm performed by a communication master process server, and update the local database based on the obtained shared database; a data acquisition unit, configured to obtain wind farm operation data from the updated local database; a local command library update unit, configured to generate a wind farm operation command based on the acquired wind farm operation data, and update the local command library based on the generated wind farm operation command; and a shared command library update unit, configured to update the shared command library about wind farm operation commands stored in the shared memory based on the updated local command library in response to the end of the polling.

[0027] Optionally, the multi-process operation device of the wind farm is integrated in the VSG of the wind farm.

[0028] Optionally, the shared database and the local database may have a preset data structure, and the data obtained from the updated local database is arranged in a preset tree structure.

[0029] Optionally, the data acquisition unit can be configured to: search for the point table index from the updated local database through the name of the leaf node in the tree structure; search for the data of the corresponding address in the linear table of the updated local database according to the point table index, and fill the data of the corresponding address in the linear table as the value of the leaf node into the leaf node.

[0030] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a multi-process operation method of a wind farm according to an exemplary embodiment of the present disclosure is implemented.

[0031] According to an exemplary embodiment of the present disclosure, a computer device is provided, including: a processor; and a memory storing a computer program, wherein when the computer program is executed by the processor, a multi-process operation method of a wind farm according to an exemplary embodiment of the present disclosure is implemented.

[0032] According to the multi-process operation method and device of the wind farm of the exemplary embodiment of the present disclosure, in a polling of the application equipment in the wind farm, the wind farm operation data is collected and the local database is updated based on the collected wind farm operation data; in response to the end of the polling, the shared database of wind farm operation data stored in the shared memory is updated based on the updated local database; in response to the shared command library of wind farm operation commands in the shared memory being updated by the application process server after the end of the polling, the updated shared command library is obtained from the shared memory; and the wind farm operation commands are sent based on the updated shared command library, thereby improving the multi-process operation efficiency of the wind farm.

[0033] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:

[0035] Figure 1 A flowchart showing a multi-process operation method of a wind farm executed by a communication master process server according to an exemplary embodiment of the present disclosure;

[0036] Figure 2 An example of a device file according to an exemplary embodiment of the present disclosure is shown;

[0037] Figure 3 An example of a point table file according to an exemplary embodiment of the present disclosure is shown;

[0038] Figure 4 shows the logical relationship between the device file, the point table file and the linear table according to an exemplary embodiment of the present disclosure;

[0039] Figure 5 A flowchart showing a multi-process operation method of a wind farm executed by an application process server according to an exemplary embodiment of the present disclosure;

[0040] Figure 6 shows an example of a tree structure according to an exemplary embodiment of the present disclosure;

[0041] Figure 7 A framework diagram showing an inter-process communication method of a wind farm according to an exemplary embodiment of the present disclosure;

[0042] Figure 8 A block diagram showing a multi-process operation device of a wind farm according to an exemplary embodiment of the present disclosure;

[0043] Fig. 9 A block diagram showing a multi-process operation device of a wind farm according to an exemplary embodiment of the present disclosure; and

[0044] Fig.10 A schematic diagram showing a computer device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0045] Reference will now be made in detail to exemplary embodiments of the present disclosure, examples of which are shown in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below with reference to the drawings in order to explain the present disclosure.

[0046] Data structure is the way computers store and organize data. Data structure refers to a collection of data elements that have one or more specific relationships with each other. Usually, a carefully selected data structure can bring higher operation or storage efficiency.

[0047] A sequential file is a file in which the order in which records are arranged in the physical structure is consistent with the order in which records are arranged in the logical structure.

[0048] The sequential search method starts from the first record in the file and compares the keyword value given by the user with the keyword value of the current record being searched. If they match, the search is successful, the position of the searched record in the file is given, and the search ends. If the keyword values ​​of all n records have been compared and there is no record that matches the keyword value that the user wants to search, the search fails and the message 0 is given.

[0049] A linear list is a finite sequence of n data elements with the same characteristics.

[0050] Sequential storage refers to using a set of storage units with consecutive addresses to sequentially store the data elements of a linear list. Sequential storage is also called the sequential storage structure or sequential mapping of a linear list. Sequential storage uses "physical location proximity" to represent the logical relationship between data elements in a linear list, and any element in the list can be randomly accessed.

[0051] A circular queue is a queue (array) that is conceived as a circular table connected head to tail, so that the useless space at the front of the array caused by deletion operations can be reused as much as possible.

[0052] A tree is a structure consisting of a finite set of n30 nodes (symbol D) and a set of relationships between nodes, denoted by T. When n=0, T is called an empty tree. In any non-empty tree, there is a special node It is called the root node of the tree; the remaining nodes D–{t} are divided into m>0 non-overlapping subsets D1, D2, …, Dm, where each subset Di constitutes a tree, called the subtree of t.

[0053] Interprocess Communication (IPC) refers to the transmission or exchange of information between different processes. IPC methods usually include pipes (including unnamed pipes and named pipes), message queues, semaphores, shared storage, Sockets, Streams, etc. Among them, Sockets and Streams support IPC between two processes on different hosts.

[0054] Shared Memory refers to two or more processes sharing a given storage area.

[0055] A semaphore is a counter used to achieve mutual exclusion and synchronization between processes, rather than to store inter-process communication data.

[0056] Figure 1 A flowchart showing a multi-process operation method of a wind farm executed by a communication master process server according to an exemplary embodiment of the present disclosure is shown.

[0057] Reference Figure 1 In step S101, in a polling of application devices in a wind farm, wind farm operation data is collected and a local database is updated based on the collected wind farm operation data.

[0058] In an exemplary embodiment of the present disclosure, the local database may have a preset data structure, which may include device files, point table files and linear tables with logical relationships, and data may be stored in the linear table, device files and point table files in a sequential storage manner.

[0059] In an exemplary embodiment of the present disclosure, a device file may include at least one of a device serial number, a device name, a transformer number, a socket, a communication mode key parameter, a message sending and receiving key parameter, a file association, and a device maximum and minimum point index. Here, the socket may be the primary keyword, and the device serial number may be the secondary keyword. For example, Figure 2 An example of a device file according to an exemplary embodiment of the present disclosure is shown. Figure 2 In the device file, the device serial number, device name, transformer number, socket, key parameters of communication mode, key parameters of message sending and receiving, index of maximum and minimum points of the device, and file association are included.

[0060] In an exemplary embodiment of the present disclosure, the point table file may include at least one of a point name, an index, an address offset, a read / write type, a read / write length, a read / write address, a coefficient, and a dead zone. Figure 3 An example of a point table file according to an exemplary embodiment of the present disclosure is shown. Figure 3 The point table file includes index, point name, address offset, read / write type, read / write length, read / write address, coefficient, and dead zone.

[0061] In an exemplary embodiment of the present disclosure, data may be arranged in the linear table and point table file in the order of fixed value, strategy, OPC UA device data, and device data other than OPC UA devices.

[0062] Specifically, the linear table is stored in a sequential manner, and when searching, the value can be obtained according to the sequence number (address offset) of the point in the table. Figure 4 FIG. 1 shows the logical relationship between the device file, the point table file and the linear table according to an exemplary embodiment of the present disclosure. Figure 4 In the char MIOData[Global_MIODataLen], the value of each point is stored. The correspondence between this table and the point is obtained through the address offset. The Name in the point table is realized by splicing the device name and the point name together.

[0063] In an exemplary embodiment of the present disclosure, when the local database is updated based on the collected wind farm operation data, the corresponding address of the collected wind farm operation data in the linear table of the local database can be first searched according to the logical relationship between the device file, the point table file and the linear table, and then the collected wind farm operation data can be filled into the linear table of the local database according to the searched corresponding address.

[0064] In step S102 , in response to the polling being completed, the shared database on wind farm operation data stored in the shared memory is updated based on the updated local database.

[0065] In an exemplary embodiment of the present disclosure, the shared database and the local database have the same preset data structure, which may include device files, point table files and linear tables with logical relationships, and data may be stored in a sequential manner in the linear table, device files and point table files.

[0066] In step S103, in response to the shared command library about the wind farm operation command in the shared memory being updated by the application process server after the polling is completed, the updated shared command library is obtained from the shared memory.

[0067] In step S104, a wind farm operation command is sent based on the updated shared command library.

[0068] In an exemplary embodiment of the present disclosure, when sending a wind farm operation command, the wind farm operation command can be sent to the corresponding device in a manner of sending a single command in sequence or sending multiple commands together through a first-in first-out FIFO circular queue according to the logical relationship between the device file and the point table file. For example, when there are 32 processes and each process has a maximum of 500 commands, each command is sent through a circular queue of 32 lengths.

[0069] In an exemplary embodiment of the present disclosure, when sending a wind farm operation command, the wind farm operation command acquired in the shared command library may be processed and sent by a hierarchical data processing method.

[0070] In an exemplary embodiment of the present disclosure, when the wind farm operation commands in the acquired shared command library are processed by a hierarchical data processing method, when the time difference between the current time and the time when the fast command was last received is greater than a first duration, the fast command is read from the acquired shared command library, wherein the fast command requires the corresponding device to execute the command at a speed exceeding a preset speed; when the time difference between the current time and the time when the slow command was last received is greater than a second duration, the slow command is read from the acquired shared command library, wherein the slow command does not require the corresponding device to execute the command at a speed exceeding the preset speed.

[0071] Specifically, in the multi-process operation method of the wind farm according to the exemplary embodiment of the present disclosure, a multi-process method is adopted to realize different functional requirements, and a process is established for each function. Different processes are started according to the different requirements of the actual market and the power grid, so that it can be flexibly applied and reduce the complexity of debugging and operation. Here, the communication method between different processes can be implemented in the form of shared memory plus semaphores. Shared memory can be said to be the fastest and most effective inter-process communication method under Linux. The meaning of two different processes A and B sharing memory is that the same physical memory is mapped to the process address space of each process A and B, and process A can immediately see the update of process B to the data in the shared memory; conversely, process B can also immediately see the update of process A to the data in the shared memory. The semaphore mechanism is an effective process synchronization tool.

[0072] Multiple processes may include initial process, common data master process, OPCUA data master process and other processes.

[0073] In the initial process, a data structure is created, and a shared memory is created according to this structure. Other processes obtain data according to the shared memory of this data structure.

[0074] In the process of the general data master station, the operation data of the equipment in the wind farm can be read, and the storage address of the read operation data can be determined through the logical relationship between the equipment file, the point table file and the linear table, and the read data can be filled into the linear table of the shared database (for example, the linear table of the shared memory area) according to the determined storage address. In the process of the general data master station, the shared command library (for example, the command area data of the shared memory area) can be obtained, and the wind farm operation commands in the shared command library can be forwarded to the corresponding equipment in the wind farm in a circular queue manner according to the association between the equipment file and the point table file.

[0075] In the OPCUA data master process, the OPCUA device data can be read, and the storage address of the read OPCUA device data can be determined through the logical relationship between the device file, the point table file and the linear table, and the read OPCUA device data can be filled into the linear table of the shared database (for example, the linear table of the shared memory area) according to the determined storage address. In the OPCUA data master process, the shared command library (for example, the command area data of the shared memory area) can be obtained, and the wind farm operation commands in the shared command library can be forwarded to the corresponding devices in a circular queue manner according to the association between the device file and the point table file. The data structure of this process and the processing ideas of the shared memory area are similar to those of the ordinary data master process, which will not be repeated here.

[0076] Figure 5 A flowchart of a multi-process operation method of a wind farm executed by an application process server according to an exemplary embodiment of the present disclosure is shown.

[0077] Reference Figure 5 In step S501, in a polling of application devices in the wind farm performed by the communication master process server, a shared database of wind farm operation data is obtained from the shared memory, and the local database is updated based on the obtained shared database.

[0078] In an exemplary embodiment of the present disclosure, the shared database and the local database may have a preset data structure, and the data acquired from the updated local database is arranged in a preset tree structure.

[0079] In step S502, wind farm operation data is acquired from the updated local database.

[0080] In an exemplary embodiment of the present disclosure, when obtaining wind farm operation data from an updated local database, the point table index can be first searched from the updated local database through the name of the leaf node in the tree structure, and then the data of the corresponding address in the linear table of the updated local database can be searched according to the point table index, and the data of the corresponding address in the linear table can be filled into the leaf node as the value of the leaf node.

[0081] In step S503, a wind farm operation command is generated based on the acquired wind farm operation data, and a local command library is updated based on the generated wind farm operation command.

[0082] In step S504, in response to the completion of the polling, the shared command library for wind farm operation commands stored in the shared memory is updated based on the updated local command library.

[0083] Specifically, multiple processes may include reactive voltage regulation process, primary frequency regulation process, IEC104 slave process, Modbus slave process, anti-islanding process and other processes.

[0084] Figure 6 An example of a tree structure according to an exemplary embodiment of the present disclosure is shown. The same tree structure can be used to implement primary frequency modulation, reactive voltage regulation, and external slave station data transmission. For example, in primary frequency modulation, data can be divided into several trees: fixed value, strategy, grid connection point, equipment, AGC, etc. The last leaf node in each tree contains several key values, such as name, index, and value. Figure 6 In the tree, the value of the Name leaf node is the device name plus the point name. Based on this name, the index Handle is retrieved from the point table file and assigned to the DataHandle in this tree. Then, based on this DataHandle, the address offset AddressOffset is retrieved from the point table file. Based on AddressOffset, the specific value can be found in the linear table MIOData and stored in the leaf node ValueREAL or ValueINT16 or ValueINT32. By analogy, all data in a process can be associated through this different tree data results.

[0085] In a frequency modulation process, the name of the leaf node in the tree structure is used to find the point table index in the shared memory data structure, and then the data of the corresponding address in the linear table is found according to the index, and the value node in the leaf node is filled in to obtain all real-time data. When issuing a command, the DataHandle index and Value in the leaf node are placed in the command process area, and finally put into the shared memory area, and the master station process obtains the command and issues it.

[0086] In the reactive voltage regulation process, the name of the leaf node in the tree structure is used to find the point table index in the shared memory data structure, and then the data of the corresponding address in the linear table is found according to the index, and filled into the value node in the leaf node to obtain all real-time data. When issuing a command, the DataHandle index and Value in the leaf node are placed in the command process area, and finally put into the shared memory area, and the master station process obtains the command and issues it.

[0087] Figure 7 The following is a framework diagram of an inter-process communication method of a wind farm according to an exemplary embodiment of the present disclosure. As the capacity of new energy power plants increases and too many devices are connected, if the point-by-point reading and writing method after locking the memory is adopted, the signal volume will be too frequent, resulting in the shared memory not being able to respond immediately, resulting in the problem of function non-response or slow response. Figure 7 In the example, each process using shared memory takes the shared data structure locally and fills it as a whole, rather than filling each point independently. Figure 7 The inter-process communication method in is compatible with multiple communication protocols such as Modbus, IEC104, OPC UA, and private protocols.

[0088] All communication master processes (for example, ordinary master processes, OPCUA master processes) can put the collected data into the linear table of the data structure of the local process, and put the entire local linear table into the shared memory after a poll. Here, the linear table of the OPCUA master process is filled in the shared memory after the fixed value and strategy, while the linear table of the ordinary master process is filled after OPCUA, with clear sections and no influence on each other. The command area is divided into the ordinary command area and the OPCUA command area. The command area is written into the shared memory once after a poll. The two command areas are processed separately: 1) The ordinary master process reads the ordinary command area command locally, and then sends it to different devices in sequence in a circular queue. The sending of commands is divided into two ways: sending a single command in sequence and sending multiple commands together. Sending multiple commands together reduces the number of write operations of the ordinary master, further improving efficiency. 2) The commands in the OPCUA command area are processed by the OPCUA master process. Whether it is a single command set or a multi-command set read from the shared memory area, it can be reprocessed, and all that can be packaged can be packaged to further improve efficiency. In addition, in order to reduce the communication pressure on the slave station, the OPC UA master station can use a hierarchical data processing method to process the read commands. That is, only the commands that need to be read quickly will be read quickly, and other commands that do not require fast speed will be read slowly.

[0089] All application processes (for example, primary frequency modulation process, reactive voltage control process, slave process) can get each shared data structure locally, and then the tree structure gets data from the local data structure instead of getting it from the shared memory point by point. The local data structure gets it from the shared memory once for each round of training and updates it. When issuing a command, put the command in the command area. For example, the command area can include 32 threads, and each thread can accommodate 500 commands.

[0090] By using multiple threads to share memory storage, the scalability of the wind farm system can be improved when adding new functions (new processes). That is, when adding new functions, the changes to the original architecture are relatively small.

[0091] The above has been combined Figures 1 to 7 A multi-process operation method of a wind farm according to an exemplary embodiment of the present disclosure is described. Figure 8 and Fig. 9 A multi-process operation device of a wind farm and units thereof according to an exemplary embodiment of the present disclosure are described.

[0092] Figure 8 A block diagram showing a multi-process operation device of a wind farm according to an exemplary embodiment of the present disclosure is shown.

[0093] Reference Figure 8 The multi-process operation device of the wind farm includes a local database updating unit 81 , a shared database updating unit 82 , a shared command library acquiring unit 83 and a command sending unit 84 .

[0094] In an exemplary embodiment of the present disclosure, a multi-process operation device of a wind farm may be integrated in a virtual synchronous generator (Virtual Synchronous Generator, VSG for short) of the wind farm.

[0095] The local database updating unit 81 is configured to collect wind farm operation data in one polling of application devices in the wind farm and update the local database based on the collected wind farm operation data.

[0096] In an exemplary embodiment of the present disclosure, the local database update unit 81 can be configured to search for the corresponding address of the collected wind farm operation data in the linear table of the local database according to the logical relationship between the device file, the point table file and the linear table, and fill the collected wind farm operation data into the linear table of the local database according to the searched corresponding address.

[0097] The shared database updating unit 82 is configured to update the shared database on wind farm operation data stored in the shared memory based on the updated local database in response to the completion of the one polling.

[0098] In an exemplary embodiment of the present disclosure, the shared database and the local database may have a preset data structure, which includes a device file, a point table file and a linear table with a logical relationship, and the linear table, the device file and the point table file are sequentially stored for data storage.

[0099] In an exemplary embodiment of the present disclosure, the device file may include at least one of the device serial number, device name, transformer number, socket, communication mode key parameters, message transmission and reception key parameters, file association, and device maximum and minimum point indexes. The point table file may include at least one of the point name, index, address offset, read and write type, read and write length, read and write address, coefficient, and dead zone.

[0100] In an exemplary embodiment of the present disclosure, data may be arranged in the linear table and point table file in the order of fixed value, strategy, OPC UA device data, and device data other than OPC UA devices.

[0101] The shared command library acquisition unit 83 is configured to acquire the updated shared command library from the shared memory in response to the shared command library about the wind farm operation command in the shared memory being updated by the application process server after the polling is completed.

[0102] The command sending unit 84 is configured to send a wind farm operation command based on the updated shared command library.

[0103] In an exemplary embodiment of the present disclosure, the command sending unit 84 may be configured to send the wind farm operation command to the corresponding device in a manner of sending a single command sequentially or sending multiple commands together through a first-in-first-out FIFO circular queue according to the logical relationship between the device file and the point table file.

[0104] In an exemplary embodiment of the present disclosure, the command sending unit 84 may be configured to process and send the acquired wind farm operation command in the shared command library by means of hierarchical data processing.

[0105] In an exemplary embodiment of the present disclosure, the command sending unit 84 may also be configured to read a quick command from the acquired shared command library when the time difference between the current time and the last time a quick command was received is greater than a first duration, wherein the quick command requires the corresponding device to execute the command at a speed exceeding a preset speed; and to read a slow command from the acquired shared command library when the time difference between the current time and the last time a slow command was received is greater than a second duration, wherein the slow command does not require the corresponding device to execute the command at a speed exceeding the preset speed.

[0106] Fig. 9 A block diagram showing a multi-process operation device of a wind farm according to an exemplary embodiment of the present disclosure is shown.

[0107] Reference Fig. 9 The multi-process operation device of the wind farm includes a local database updating unit 91 , a data acquisition unit 92 , a local command library updating unit 93 and a shared command library updating unit 94 .

[0108] In an exemplary embodiment of the present disclosure, a multi-process operation device of a wind farm may be integrated in a VSG of the wind farm.

[0109] The local database updating unit 91 is configured to obtain a shared database on wind farm operation data from a shared memory in a polling of application devices in the wind farm performed by the communication master process server, and update the local database based on the obtained shared database.

[0110] In an exemplary embodiment of the present disclosure, the shared database and the local database may have a preset data structure, and the data acquired from the updated local database is arranged in a preset tree structure.

[0111] The data acquisition unit 92 is configured to acquire wind farm operation data from the updated local database.

[0112] In an exemplary embodiment of the present disclosure, the data acquisition unit 92 may be configured to first search for a point table index from an updated local database through the name of a leaf node in a tree structure, and then search for data of a corresponding address in a linear table of the updated local database according to the point table index, and fill the data of the corresponding address in the linear table into the leaf node as the value of the leaf node.

[0113] The local command library updating unit 93 is configured to generate a wind farm operation command based on the acquired wind farm operation data, and update the local command library based on the generated wind farm operation command.

[0114] The shared command library updating unit 94 is configured to update the shared command library regarding wind farm operation commands stored in the shared memory based on the updated local command library in response to the completion of the one polling.

[0115] In addition, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed, the multi-process operation method of the wind farm according to the exemplary embodiment of the present disclosure is implemented.

[0116] In an exemplary embodiment of the present disclosure, the computer-readable storage medium may carry one or more programs, and when the computer program is executed, the following steps may be implemented: in a polling of application devices in a wind farm, wind farm operation data is collected and a local database is updated based on the collected wind farm operation data; in response to the end of the polling, a shared database of wind farm operation data stored in a shared memory is updated based on the updated local database; in response to a shared command library of wind farm operation commands in the shared memory being updated by an application process server after the end of the polling, the updated shared command library is obtained from the shared memory; and wind farm operation commands are sent based on the updated shared command library.

[0117] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a computer program that may be used by or in conjunction with an instruction execution system, device or device. The computer program contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof. The computer-readable storage medium may be contained in any device; it may also exist alone without being assembled into the device.

[0118] The above has been combined Figure 8 and Fig. 9 A multi-process operation device of a wind farm according to an exemplary embodiment of the present disclosure is described. Fig.10 A computer device according to an exemplary embodiment of the present disclosure is described.

[0119] Fig.10 A schematic diagram showing a computer device according to an exemplary embodiment of the present disclosure.

[0120] Reference Fig.10 According to the exemplary embodiment of the present disclosure, the computer device 10 includes a memory 101 and a processor 102. The memory 101 stores a computer program. When the computer program is executed by the processor 102, the multi-process operation method of the wind farm according to the exemplary embodiment of the present disclosure is implemented.

[0121] In an exemplary embodiment of the present disclosure, when the computer program is executed by the processor 102, the following steps can be implemented: in a polling of application devices in a wind farm, wind farm operation data is collected and a local database is updated based on the collected wind farm operation data; in response to the end of the polling, a shared database of wind farm operation data stored in a shared memory is updated based on the updated local database; in response to a shared command library of wind farm operation commands in the shared memory being updated by an application process server after the end of the polling, an updated shared command library is obtained from the shared memory; and wind farm operation commands are sent based on the updated shared command library.

[0122] Fig.10 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0123] The above has been referred to Figures 1 to 10 The multi-process operation method and device of the wind farm according to the exemplary embodiment of the present disclosure are described. However, it should be understood that: Figure 8 and Fig. 9 The multi-process operation device of the wind farm and its units shown in the figure can be respectively configured as software, hardware, firmware or any combination of the above items to perform specific functions. Fig.10 The computer device shown in the figure is not limited to including the components shown above, but some components may be added or deleted as needed, and the above components may also be combined.

[0124] According to the multi-process operation method and device of the wind farm of the exemplary embodiment of the present disclosure, in a polling of the application equipment in the wind farm, the wind farm operation data is collected and the local database is updated based on the collected wind farm operation data; in response to the end of the polling, the shared database of wind farm operation data stored in the shared memory is updated based on the updated local database; in response to the shared command library of wind farm operation commands in the shared memory being updated by the application process server after the end of the polling, the updated shared command library is obtained from the shared memory; and the wind farm operation commands are sent based on the updated shared command library, thereby improving the multi-process operation efficiency of the wind farm.

[0125] While the present disclosure has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the following claims.

Claims

1. A multi-process operation method of a wind farm, executed by a communication master station process server, characterized in that: include: In a polling of application devices in the wind farm, wind farm operation data is collected and a local database is updated based on the collected wind farm operation data; In response to the one polling being completed, updating the shared database on wind farm operation data stored in the shared memory based on the updated local database; In response to the shared command library about the wind farm operation command in the shared memory being updated by the application process server after the polling is completed, obtaining the updated shared command library from the shared memory; and Send wind farm operation commands based on the updated shared command library, The shared database and the local database have a preset data structure, in which a device file, a point table file and a linear table with a logical relationship are included, and data is stored in the linear table, the device file and the point table file in a sequential manner, and Among them, the step of updating the local database based on the collected wind farm operation data includes: searching for the corresponding address of the collected wind farm operation data in the linear table of the local database according to the logical relationship between the device file, the point table file and the linear table; and filling the collected wind farm operation data into the linear table of the local database according to the corresponding address found.

2. The multi-process operation method according to claim 1, characterized in that: The device file includes at least one of a device serial number, a device name, a transformer number, a socket, a communication mode key parameter, a message sending and receiving key parameter, a file association, and a device maximum and minimum point index; The point table file includes at least one of a point name, an index, an address offset, a read / write type, a read / write length, a read / write address, a coefficient, and a dead zone.

3. The multi-process operation method according to claim 2, characterized in that: In the linear table and point table files, the data are arranged in the order of fixed value, strategy, OPCUA device data, and device data other than OPCUA devices.

4. The multi-process operation method according to claim 1, characterized in that: The steps of sending wind farm operation commands include: According to the logical relationship between the device file and the point table file, the wind farm operation command is sent to the corresponding device through a first-in first-out FIFO circular queue in a manner of sending a single command in sequence or sending multiple commands together.

5. The multi-process operation method according to claim 1, characterized in that: The steps of sending wind farm operation commands include: The wind farm operation commands acquired in the shared command library are processed and sent through a hierarchical data processing method.

6. The multi-process operation method according to claim 5, characterized in that: The steps of processing the wind farm operation command obtained in the shared command library by hierarchical data processing include: When the time difference between the current time and the time when the quick command was last received is greater than the first time length, reading the quick command from the acquired shared command library, wherein the quick command requires the corresponding device to execute the command at a speed exceeding a preset speed; When the time difference between the current time and the time when the slow command was last received is greater than the second duration, the slow command is read from the acquired shared command library, wherein the slow command does not require the corresponding device to execute the command at a speed exceeding a preset speed.

7. A multi-process operation method of a wind farm, executed by an application process server, characterized in that: include: In a polling of application devices in the wind farm performed by the communication master process server, a shared database on wind farm operation data is obtained from a shared memory, and a local database is updated based on the obtained shared database; Obtain wind farm operation data from the updated local database; Generate a wind farm operation command based on the acquired wind farm operation data, and update a local command library based on the generated wind farm operation command; and In response to the polling being completed, the shared command library of wind farm operation commands stored in the shared memory is updated based on the updated local command library. The shared database and the local database have a preset data structure, the data obtained from the updated local database is arranged in a preset tree structure, and Among them, the step of obtaining wind farm operation data from the updated local database includes: searching for the point table index from the updated local database through the name of the leaf node in the tree structure; and searching for the data of the corresponding address in the linear table of the updated local database according to the point table index, and filling the data of the corresponding address in the linear table as the value of the leaf node into the leaf node.

8. A multi-process operation device for a wind farm, characterized in that: include: A local database updating unit is configured to collect wind farm operation data and update the local database based on the collected wind farm operation data in a polling of application devices in the wind farm; a shared database updating unit, configured to update the shared database on wind farm operation data stored in the shared memory based on the updated local database in response to the completion of the one polling; A shared command library acquisition unit is configured to acquire an updated shared command library from the shared memory in response to the shared command library about the wind farm operation command in the shared memory being updated by the application process server after the polling is completed; and A command sending unit is configured to send a wind farm operation command based on the updated shared command library, The shared database and the local database have a preset data structure, in which a device file, a point table file and a linear table with a logical relationship are included, and data is stored in the linear table, the device file and the point table file in a sequential manner, and Among them, the operation of the local database update unit to update the local database based on the collected wind farm operation data includes: searching for the corresponding address of the collected wind farm operation data in the linear table of the local database according to the logical relationship between the device file, the point table file and the linear table; and filling the collected wind farm operation data into the linear table of the local database according to the corresponding address found.

9. The multi-process operation device according to claim 8, characterized in that: The multi-process operation device of the wind farm is integrated in the VSG of the wind farm.

10. A multi-process operation device for a wind farm, characterized in that: include: The local database updating unit is configured to obtain a shared database on wind farm operation data from a shared memory in a polling of application devices in the wind farm performed by the communication master station process server, and update the local database based on the obtained shared database; A data acquisition unit is configured to acquire wind farm operation data from an updated local database; a local command library updating unit configured to generate a wind farm operation command based on the acquired wind farm operation data, and to update the local command library based on the generated wind farm operation command; and A shared command library updating unit is configured to update the shared command library of wind farm operation commands stored in the shared memory based on the updated local command library in response to the completion of the polling. The shared database and the local database have a preset data structure, the data obtained from the updated local database is arranged in a preset tree structure, and Among them, the step of obtaining wind farm operation data from the updated local database includes: searching for the point table index from the updated local database through the name of the leaf node in the tree structure; and searching for the data of the corresponding address in the linear table of the updated local database according to the point table index, and filling the data of the corresponding address in the linear table as the value of the leaf node into the leaf node.

11. The multi-process operation device according to claim 10, characterized in that: The multi-process operation device of the wind farm is integrated in the VSG of the wind farm.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to execute the steps of the multi-process operation method of a wind farm according to any one of claims 1 to 7.

13. A computer device, characterized in that: include: processor; A memory storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the multi-process operation method of a wind farm according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method for achieving real-time transmission of transformer substation device information based on shared memory

    CN104378439A

  • Method for synchronizing multi-computer communication in shared memory of power quality management system

    CN109032816A

  • Method for updating shared memory of power quality management system

    CN109033353A

  • Control method, device and system of field-control level power grid and storage medium

    CN109638872A

  • Wind power plant power quality monitoring system based on time series database platform

    CN203101531U