CN113535418A - Multi-process operation method and device for wind power plant - Google Patents

Multi-process operation method and device for wind power plant Download PDF

Info

Publication number
CN113535418A
CN113535418A CN202010300347.3A CN202010300347A CN113535418A CN 113535418 A CN113535418 A CN 113535418A CN 202010300347 A CN202010300347 A CN 202010300347A CN 113535418 A CN113535418 A CN 113535418A
Authority
CN
China
Prior art keywords
command
wind farm
shared
data
local database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010300347.3A
Other languages
Chinese (zh)
Other versions
CN113535418B (en
Inventor
左美灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Goldwind Science and Creation Windpower Equipment Co Ltd
Original Assignee
Xinjiang Goldwind Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinjiang Goldwind Science and Technology Co Ltd filed Critical Xinjiang Goldwind Science and Technology Co Ltd
Priority to CN202010300347.3A priority Critical patent/CN113535418B/en
Publication of CN113535418A publication Critical patent/CN113535418A/en
Application granted granted Critical
Publication of CN113535418B publication Critical patent/CN113535418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Selective Calling Equipment (AREA)
  • Wind Motors (AREA)

Abstract

A method and a device for multi-process operation of a wind power plant are provided. The multi-process operation method of the wind power plant comprises the following steps: in one poll for application devices in the wind farm, collecting wind farm operational data and updating the local database based on the collected wind farm operational data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and transmitting a wind farm operation command based on the updated shared command library.

Description

Multi-process operation method and device for wind power plant
Technical Field
The present disclosure relates to the field of wind power generation technology. More specifically, the present disclosure relates to a method and an apparatus for multi-process operation of a wind farm.
Background
With the continuous increase of the permeability of the new energy generator set, the safety and the stability of the wind turbine set draw extensive attention in a grid in a high permeability area. In the actual operation of a power grid, when the power consumption is not matched with the power supply, a tiny component with small change and short change period of the power grid frequency can be caused, the frequency disturbance mainly depends on an adjusting system of a steam turbine generator unit to directly and automatically adjust a steam turbine regulating valve to complete power grid load compensation and correct the fluctuation of the power grid frequency, and the process is primary frequency modulation of the generator unit.
Because a new energy grid-connected region often lacks local load and conventional power supply support, electric energy sent by new energy needs to be sent to a load center through a long distance, and reactive voltage fluctuation of a power transmission channel is large along with the output change of the new energy. Therefore, higher and higher requirements are put on reactive power control and voltage stability of the new energy station.
Therefore, primary frequency modulation and reactive voltage control are simultaneously required by many power grids for new energy power plants.
Disclosure of Invention
An exemplary embodiment of the present disclosure is to provide a method and an apparatus for multi-process operation of a wind farm, so as to improve the operation efficiency of the multi-process of the wind farm.
According to an exemplary embodiment of the disclosure, a method for multi-process operation of a wind farm is provided, which is executed by a process server of a communication master station. The multi-process operation method of the wind power plant comprises the following steps: in one poll for application devices in the wind farm, collecting wind farm operational data and updating the local database based on the collected wind farm operational data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and transmitting a wind farm operation command based on the updated shared command library.
Optionally, the shared database and the local database may have preset data structures, and the preset data structures may include a device file, a point table file, and a linear table with logical relationships, and data storage is performed in the linear table, the device file, and the point table file in a sequential storage manner.
Optionally, the step of updating the local database based on the collected wind farm operation data may comprise: searching corresponding addresses of the collected wind power plant operation data in a linear table of a local database according to a logical relation among the equipment file, the point table file and the linear table; and filling the collected wind power plant operation data into a linear table of a local database according to the searched corresponding address.
Optionally, the 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 messaging key parameter, a file association, and a device maximum and minimum point index. 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.
Optionally, the data may be arranged in the order of the fixed value, the policy, the OPCUA device data, and the device data other than the OPCUA device in the linear table and the point table file.
Optionally, the step of sending a wind farm operation command may comprise: and according to the logical relationship between the equipment file and the point table file, transmitting the wind power plant operation command to corresponding equipment through a first-in first-out (FIFO) circular queue in a mode of transmitting a single command sequentially or transmitting multiple commands together.
Optionally, the step of sending a wind farm operation command may comprise: and processing and sending the obtained wind power plant operation command in the shared command library in a hierarchical data processing mode.
Optionally, the step of processing the obtained wind farm operation command in the shared command library in a hierarchical data processing manner may include: reading a fast command from an acquired shared command library when the time difference between the current time and the last time of receiving the fast command is greater than a first time, wherein the fast command requires corresponding equipment to execute the command at a speed exceeding a preset speed; and reading the slow command from the obtained shared command library when the time difference between the current time and the last time of receiving the slow command is greater than a second time, wherein the slow command does not require the corresponding equipment to execute the command at a speed exceeding the preset speed.
According to an exemplary embodiment of the disclosure, a method for multi-process operation of a wind farm is provided, which is performed by an application process server. The multi-process operation method of the wind power plant comprises the following steps: in one polling for application devices in the wind farm performed by the communication master station process server, obtaining a shared database of operational data about the wind farm from the shared memory, and updating the local database based on the obtained shared database; acquiring wind power plant operation data from the updated local database; generating a wind farm operation command based on the obtained wind farm operation data, and updating a local command library based on the generated wind farm operation command; and in response to the one polling ending, updating the shared command library stored in the shared memory for wind farm operating commands based on the updated local command library.
Alternatively, 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.
Optionally, the step of obtaining wind farm operational data from the updated local database may comprise: searching a point table index from the updated local database through the name of the leaf node in the tree structure; and searching 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.
According to an exemplary embodiment of the present disclosure, there is provided a multi-process operation apparatus of a wind farm, including: a local database update unit configured to collect wind farm operation data and update the local database based on the collected wind farm operation data in one poll for application devices in the wind farm; a shared database updating unit configured to update the shared database regarding the wind farm operation data stored in the shared memory based on the updated local database in response to the end of the one polling; the shared command library obtaining unit is configured to respond to the fact that the shared command library related to the wind farm operation command in the shared memory is updated by the application process server after the polling is finished, and obtain the updated shared command library from the shared memory; and a command transmitting unit configured to transmit a wind farm operation command based on the updated shared command library.
Optionally, the multi-process running device of the wind farm is integrated in a VSG of the wind farm.
Optionally, the shared database and the local database have preset data structures, the preset data structures include device files, point table files and linear tables with logical relations, and data storage is performed in the linear tables, the device files and the point table files according to a sequential storage manner.
Optionally, the local database updating unit may be configured to: searching corresponding addresses of the collected wind power plant operation data in a linear table of a local database according to a logical relation among the equipment file, the point table file and the linear table; and filling the collected wind power plant operation data into a linear table of a local database according to the searched corresponding address.
Optionally, the 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 messaging key parameter, a file association, and a device maximum and minimum point index. 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.
Optionally, the data may be arranged in the order of the fixed value, the policy, the OPCUA device data, and the device data other than the OPCUA device in the linear table and the point table file.
Alternatively, the command transmitting unit may be configured to: and according to the logical relationship between the equipment file and the point table file, transmitting the wind power plant operation command to corresponding equipment through a first-in first-out (FIFO) circular queue in a mode of transmitting a single command sequentially or transmitting multiple commands together.
Alternatively, the command transmitting unit may be configured to: and processing and sending the obtained wind power plant operation command in the shared command library in a hierarchical data processing mode.
Optionally, the command transmitting unit may be further configured to: reading a fast command from an acquired shared command library when the time difference between the current time and the last time of receiving the fast command is greater than a first time, wherein the fast command requires corresponding equipment to execute the command at a speed exceeding a preset speed; and reading the slow command from the obtained shared command library when the time difference between the current time and the last time of receiving the slow command is greater than a second time, wherein the slow command does not require the corresponding equipment to execute the command at a speed exceeding the preset speed.
According to an exemplary embodiment of the present disclosure, there is provided a multi-process operation apparatus of a wind farm, including: a local database updating unit configured to acquire a shared database regarding wind farm operation data from the shared memory in one polling for application devices in the wind farm performed by the master communication station process server, and update the local database based on the acquired shared database; a data acquisition unit configured to acquire wind farm operation data from the 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 update the local command library based on the generated wind farm operation command; and the shared command library updating unit is configured to update the shared command library stored in the shared memory and related to the wind farm operation command based on the updated local command library in response to the end of the polling.
Optionally, the multi-process running device of the wind farm is integrated in a VSG of the wind farm.
Alternatively, 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.
Optionally, the data acquisition unit may be configured to: searching a point table index from the updated local database through the name of the leaf node in the tree structure; and searching 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.
According to an exemplary embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out a method of multi-process operation of a wind farm according to an exemplary embodiment of the present disclosure.
According to an exemplary embodiment of the present disclosure, there is provided a computer apparatus including: a processor; a memory storing a computer program which, when executed by the processor, implements a method of multi-process operation of a wind farm according to an exemplary embodiment of the present disclosure.
According to the method and the device for the multi-process operation of the wind farm, wind farm operation data are collected in one polling aiming at application equipment in the wind farm, and a local database is updated based on the collected wind farm operation data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and the wind power plant operation command is sent based on the updated shared command library, so that the multi-process operation efficiency of the wind power plant is improved.
Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
Drawings
The above and other objects and features of exemplary embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings which illustrate exemplary embodiments, wherein:
FIG. 1 shows a flow chart of a method of multi-process operation of a wind farm performed by a communications master process server according to an example embodiment of the present disclosure;
FIG. 2 illustrates an example of a device file according to an exemplary embodiment of the present disclosure;
FIG. 3 illustrates an example of a point table file according to an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a logical relationship between a device file, a point table file, and a linear table according to an exemplary embodiment of the present disclosure;
FIG. 5 shows a flow chart of a method of multi-process operation of a wind farm performed by a communications master process server, according to an example embodiment of the present disclosure;
FIG. 6 illustrates an example of a tree structure in accordance with an exemplary embodiment of the present disclosure;
FIG. 7 illustrates a block diagram of an inter-process communication manner for a wind farm according to an exemplary embodiment of the present disclosure;
FIG. 8 shows a block diagram of a multi-process operating arrangement of a wind farm according to an exemplary embodiment of the present disclosure;
FIG. 9 shows a block diagram of a multi-process operating arrangement of a wind farm according to an exemplary embodiment of the present disclosure; and
fig. 10 shows a schematic diagram of a computer device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present disclosure by referring to the figures.
Data structures are the way computers store, organize, etc. data. A data structure refers to a collection of data elements that have one or more specific relationships to each other. Typically, a carefully selected data structure can lead to greater operational or storage efficiency.
The sequential file refers to a file in which the sequence of the record arrangement in the physical structure is consistent with the sequence of the record arrangement in the logical structure.
The sequential searching method is that starting from the first record of the file, the key word value given by the user is compared with the key word value of the current searched record, if the key word value is matched with the key word value of the current searched record, the searching is successful, the position of the searched record in the file is given, and the searching is finished. If the key word values of all n records are compared, and no record matched with the key word value to be searched by the user exists, the search fails, and information 0 is given.
A linear table is a finite sequence of n data elements with identical characteristics.
Sequential storage refers to sequentially storing data elements of a linear table with a set of storage locations having consecutive addresses. Sequential storage is also referred to as a sequential storage structure or sequential mapping of linear tables. Sequential storage represents logical relationships between data elements in a linear table by "physical location neighbors," which allow random access to any element in the table.
Circular queues refer to the idea of a queue (array) as a head-to-tail circular table, so that the useless space in the front of the array caused by the delete operation is reused as much as possible.
The tree is a structure composed of a finite set (not shown by symbol D) of n30 nodes and a set of relationships between the nodes, and is denoted by T. When n is 0, T is called an empty tree. In any non-empty tree, there is a special node
Figure BDA0002453755790000061
Called the root node of the tree; the rest nodes D- { t } are divided into m>0 disjoint subsets D1, D2, … …, Dm, wherein each subset Di constitutes a respective tree, called the subtree of t.
Inter-process Communication (IPC) refers to the propagation or exchange of information between different processes. IPC is usually implemented by means of pipelines (including nameless pipelines and named pipelines), message queues, semaphores, shared memory, sockets, Streams, etc., wherein the sockets and Streams support two processes IPC on different hosts.
Shared Memory (Shared Memory) refers to two or more processes sharing a given storage area.
The semaphore (semaphore) is a counter used to implement mutual exclusion and synchronization between processes, rather than storing interprocess communication data.
FIG. 1 shows a flow chart of a method of multi-process operation of a wind farm performed by a communications master process server according to an exemplary embodiment of the present disclosure.
Referring to FIG. 1, in step S101, in one poll for application devices in a wind farm, wind farm operational data is collected and a local database is updated based on the collected wind farm operational data.
In an exemplary embodiment of the present disclosure, the local database may have a preset data structure, the preset data structure may include a device file, a point table file, and a linear table having a logical relationship, and data storage may be performed in a sequential storage manner in the linear table, the device file, and the point table file.
In an exemplary embodiment of the present disclosure, the 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 messaging key parameter, a file association, and a device maximum and minimum point index. Here, the socket may be a primary key and the device number may be a secondary key. For example, fig. 2 illustrates an example of a device file according to an exemplary embodiment of the present disclosure. In fig. 2, the device file includes information such as a device serial number, a device name, a transformer number, a socket, a communication mode key parameter, a message transceiving key parameter, a device maximum and minimum point index, and file association.
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. For example, fig. 3 illustrates an example of a point table file according to an exemplary embodiment of the present disclosure. In fig. 3, the point table file includes an index, a point name, an address offset, a read-write type, a read-write length, a read-write address, a coefficient, and a dead zone.
In an exemplary embodiment of the present disclosure, the data may be arranged in the order of the fixed value, the policy, the OPCUA device data, and the device data other than the OPCUA device in the linear table and the point table file.
Specifically, the linear table is stored in a sequential storage manner, and values can be obtained according to the sequence numbers (address offsets) of the points in the table during search. Fig. 4 illustrates a logical relationship between a device file, a point table file, and a linear table according to an exemplary embodiment of the present disclosure. In fig. 4, the value of each dot is stored in charMIOData Global _ miodalen, and the correspondence between the table and the dot is obtained by address offset. The Name in the point table is realized by splicing the device Name and the point Name together.
In an exemplary embodiment of the present disclosure, when updating the local database 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 may be first searched according to the logical relationship among the device file, the point table file, and the linear table, and then the collected wind farm operation data is filled into the linear table of the local database according to the searched corresponding address.
In step S102, in response to the end of the one polling, the shared database of operational data on the wind farm stored in the shared memory is updated based on the updated local database.
In an exemplary embodiment of the present disclosure, the shared database and the local database have the same preset data structure, the preset data structure may include a device file, a point table file and a linear table having a logical relationship, and data storage may be performed in a sequential storage manner in the linear table, the device file and the point table file.
In step S103, in response to the shared command library related to the wind farm operation command 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.
In step S104, a wind farm operation command is transmitted based on the updated shared command library.
In an exemplary embodiment of the present disclosure, when transmitting a wind farm operation command, the wind farm operation command may be transmitted to a corresponding device through a first-in first-out FIFO circular queue in a single command order transmission or a multiple command transmission together according to a logical relationship between a device file and a point table file. For example, when there are 32 processes and there are a maximum of 500 commands per process, each command is issued through a circular queue of 32 lengths.
In an exemplary embodiment of the disclosure, when the wind farm operation command is sent, the obtained wind farm operation command in the shared command library may be processed and sent in a hierarchical data processing manner.
In an exemplary embodiment of the present disclosure, when a wind farm operation command in an acquired shared command library is processed in a hierarchical data processing manner, when a time difference between a current time and a time of last receiving a fast command is greater than a first time, reading the fast command from the acquired shared command library, wherein the fast command requires a corresponding device to execute a command at a speed exceeding a preset speed; and reading the slow command from the obtained shared command library when the time difference between the current time and the last time of receiving the slow command is greater than a second time, wherein the slow command does not require the corresponding equipment to execute the command at a speed exceeding the preset speed.
Specifically, in the multi-process operation method for the wind farm according to the exemplary embodiment of the present disclosure, different function requirements are realized in a multi-process manner, one process is established for each function, and different processes are started according to different requirements of an actual market and a power grid, so that the method can be flexibly applied, and the complexity of debugging and operation can be reduced. Here, the communication mode between different processes may be implemented by sharing memory and adding semaphore. The shared memory can be said to be the fastest and most effective inter-process communication mode under Linux. The fact that two different processes A, B share the memory means that the same physical memory is mapped to the respective process address spaces of the process A, B, and the process a can immediately see the update of the process B to the data in the shared memory; on the contrary, the process B can also see the update of the process a to the data in the shared memory in real time. The semaphore mechanism is a highly effective process synchronization tool.
The multiple processes can include an initial process, a common data master process, an OPCUA data master process, and the like.
In the initial process, a data structure is created, a shared memory is created according to the structure, and other processes acquire data according to the shared memory of the data structure.
In the process of the common data master station, the operation data of the equipment in the wind power plant can be read, the storage address of the read operation data is determined through the logical relation among the equipment file, the point table file and the linear table, and the read data is filled into the linear table (for example, the linear table of the shared memory area) of the shared database according to the determined storage address. In a process of a common data master station, a shared command library (for example, command area data of a shared memory area) can be obtained, and according to a circular queue mode and association of a device file and a point table file, a wind farm operation command in the shared command library is forwarded to corresponding devices in a wind farm.
In the opua data master process, the opua device data can be read, the storage address of the read opua device data is determined through the logical relationship among the device file, the point table file and the linear table, and the read opua device data is filled into the linear table (for example, the linear table of the shared memory area) of the shared database according to the determined storage address. In the OPCUA data master station process, a shared command library (for example, command region data of a shared memory region) can be acquired, and according to a circular queue manner and association of a device file and a point table file, a wind farm operation command in the shared command library is forwarded to a corresponding device. The data structure of the process and the processing idea of the shared memory area are similar to those of the common data master process, and are not described herein again.
FIG. 5 shows a flowchart of a method of multi-process operation of a wind farm performed by a communications master process server, according to an example embodiment of the present disclosure.
Referring to fig. 5, in step S501, in one polling for application devices in a wind farm performed by a process server of a master communications station, a shared database of operational data about the wind farm is obtained from a shared memory, and a local database is updated based on the obtained shared database.
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.
At step S502, wind farm operational data is obtained from the updated local database.
In an exemplary embodiment of the present disclosure, when obtaining wind farm operation data from the updated local database, a point table index may be first searched from the updated local database by the name of a leaf node in the tree structure, then data of a corresponding address in a linear table of the updated local database may be searched according to the point table index, and the data of the corresponding address in the linear table may be filled to the leaf node as a value of the leaf node.
In step S503, a wind farm operation command is generated based on the acquired wind farm operation data, and the local command library is updated based on the generated wind farm operation command.
In step S504, in response to the end of the polling, the shared command library stored in the shared memory with respect to the wind farm operation command is updated based on the updated local command library.
Specifically, the multiple processes may include reactive voltage regulation processes, primary frequency modulation processes, IEC104 slave processes, Modbus slave processes, anti-islanding processes, and the like.
Fig. 6 illustrates an example of a tree structure according to an exemplary embodiment of the present disclosure. The same tree structure mode can be adopted for realizing primary frequency modulation, reactive power voltage regulation, external slave station data transmission and the like. For example, in primary modulation, the data may be divided into several trees: the tree of definite value, strategy, point of connection, equipment, AGC, etc., the final leaf node in each kind contains several key values of name, index and value. In fig. 6, the value of the Name leaf node is formed by splicing a device Name and a point Name, according to the Name, an index Handle is retrieved from a point table file and assigned to a DataHandle in the tree, then according to the DataHandle, an address offset AddressOffset is retrieved from the point table file, according to the AddressOffset, a specific value can be searched from a linear table MIOData, and the value is stored in a leaf node value real, or value entry 16 or value entry 32. And so on, all data in a process can be related by such different tree data results.
In the primary frequency modulation process, all real-time data are acquired in a mode that the point table index is searched from the shared memory data structure through the name of the leaf node in the tree structure, then the data of the corresponding address in the linear table is searched according to the index, and the value node in the leaf node is filled. When the command is issued, the DataHandle index and the Value in the leaf node are put into a command process area, and finally are put into a shared memory area uniformly, and the master process acquires the command and then issues the command.
In the reactive power voltage regulation process, all real-time data are acquired in a mode that the name of a leaf node in the tree structure is used for searching a point table index in the shared memory data structure, then data of a corresponding address in the linear table are searched according to the index, and the value node in the leaf node is filled. And when the command is issued, the DataHandle index and the Value in the node are put into the command process area, and finally, the DataHandle index and the Value are uniformly put into the shared memory area, and the master process acquires and then issues the command.
FIG. 7 illustrates a block diagram of an inter-process communication manner for a wind farm according to an exemplary embodiment of the present disclosure. Due to the fact that the capacity of the new energy power plant is increased, after access equipment is too much, if a point-based reading and writing mode is adopted after memory locking, the signal quantity is too frequent, the shared memory cannot respond immediately, and the problem that functions do not respond or the response is slow occurs. In FIG. 7, the process using shared memory for each process takes the shared data structure locally, filling in its entirety, rather than filling each point independently. The interprocess communication method in fig. 7 is compatible with various communication protocols such as Modbus, IEC104, opuca, and proprietary protocol.
All communication master station processes (e.g., a common master station process and an opuua master station process) can put data acquired by data acquisition into a data structure linear table of a local process, and after one round of training, the local whole linear table is put into a shared memory. Here, the linear table of the opua master station process is filled after the fixed value and the strategy in the shared memory, and the linear table of the ordinary master station process is filled after the opua, sections are clear, and do not affect each other. The command area is divided into a common command area and an OPCUA command area, and the command area is written into the shared memory once after one polling. The two command areas are processed separately: 1) and the ordinary master station process reads the ordinary command area commands to the local and then sequentially issues the commands to different devices in a circulating queue mode. The command issuing is divided into two modes of single command sequential sending and multi-command sending, and the multi-command sending reduces the number of times of writing operation of the ordinary master station, and further improves the efficiency. 2) The commands in the OPCUA command area are processed by the OPCUA master station process, and the commands can be reprocessed and packed no matter whether a single command set or a multi-command set is read from the shared memory area, so that the efficiency is further improved. In addition, the opuca master station may process the read command in a hierarchical data processing manner in order to reduce communication pressure on the slave station. That is, only the command requiring the fast reading is read at a high speed, and the other command requiring the high speed is not required to perform the slow reading.
All application processes (e.g., primary tuning process, reactive voltage control process, slave process) can take each shared data structure to the local, and then tree structure acquisition data is acquired from the local data structure, instead of point-by-point acquisition from the shared memory, and the local data structure is taken from the shared memory once per round to update. When the command is down, the command is put into the command area. For example, 32 threads may be included in the command area, each thread accommodating 500 commands.
By means of a storage mode that a plurality of threads share a memory, the capacity expansion of the wind power plant system can be improved when a new function (a new process) is added. That is, when a new function is added, the change of the original architecture is small.
A method of multi-process operation of a wind farm according to an exemplary embodiment of the present disclosure has been described above in connection with fig. 1 to 7. Hereinafter, a multi-process operation device of a wind farm and units thereof according to an exemplary embodiment of the present disclosure will be described with reference to fig. 8 and 9.
FIG. 8 shows a block diagram of a multi-process operating arrangement of a wind farm according to an exemplary embodiment of the present disclosure.
Referring to fig. 8, the multi-process running apparatus of the wind farm includes a local database updating unit 81, a shared database updating unit 82, a shared command library obtaining unit 83, and a command transmitting unit 84.
In an exemplary embodiment of the present disclosure, the multi-process running device of the wind farm may be integrated in a Virtual Synchronous Generator (VSG) of the wind farm.
The local database updating unit 81 is configured to collect wind farm operation data and update the local database based on the collected wind farm operation data in one poll for application devices in the wind farm.
In an exemplary embodiment of the present disclosure, the local database updating unit 81 may be configured to look up corresponding addresses of the collected wind farm operation data in the linear table of the local database according to a logical relationship between the device file, the point table file, and the linear table, and to fill the collected wind farm operation data in the linear table of the local database according to the looked-up corresponding addresses.
The shared database updating unit 82 is configured to update the shared database of operational data on the wind farm stored in the shared memory based on the updated local database in response to the one polling ending.
In an exemplary embodiment of the present disclosure, the shared database and the local database may have preset data structures. The preset data structure comprises a device file, a point table file and a linear table with logical relations, and data storage is carried out in the linear table, the device file and the point table file according to a sequential storage mode.
In an exemplary embodiment of the present disclosure, the 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 messaging key parameter, a file association, and a device maximum and minimum point index. 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.
In an exemplary embodiment of the present disclosure, the data may be arranged in the order of the fixed value, the policy, the OPCUA device data, and the device data other than the OPCUA device in the linear table and the point table file.
The shared command library obtaining unit 83 is configured to obtain the updated shared command library from the shared memory in response to the shared command library regarding the wind farm operation command in the shared memory being updated by the application process server after the end of the one polling.
The command transmitting unit 84 is configured to transmit a wind farm operation command based on the updated shared command library.
In an exemplary embodiment of the present disclosure, the command transmitting unit 84 may be configured to transmit the wind farm operation commands to the corresponding devices through the first-in first-out FIFO circular queue in a single command sequential transmission manner or in a multiple command transmission manner together, according to a logical relationship between the device file and the point table file.
In an exemplary embodiment of the present disclosure, the command sending unit 84 may be configured to process and send the obtained wind farm operation command in the shared command library in a hierarchical data processing manner.
In an exemplary embodiment of the present disclosure, the command transmitting unit 84 may be further configured to read a fast command from the acquired shared command library when a time difference between a current time and a time of last receiving of the fast command is greater than a first time, wherein the fast command requires a corresponding device to execute a command at a speed exceeding a preset speed; and reading the slow command from the obtained shared command library when the time difference between the current time and the last time of receiving the slow command is greater than a second time, wherein the slow command does not require the corresponding equipment to execute the command at a speed exceeding the preset speed.
FIG. 9 shows a block diagram of a multi-process operating arrangement of a wind farm according to an exemplary embodiment of the present disclosure.
Referring to fig. 9, the multi-process running apparatus of the wind farm includes a local database updating unit 91, a data obtaining unit 92, a local command library updating unit 93, and a shared command library updating unit 94.
In an exemplary embodiment of the present disclosure, a multi-process running device of a wind farm may be integrally provided in a VSG of the wind farm.
The local database updating unit 91 is configured to acquire a shared database regarding wind farm operation data from the shared memory in one polling for application devices in the wind farm performed by the master communications station process server, and update the local database based on the acquired shared database.
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.
The data acquisition unit 92 is configured to acquire wind farm operating data from the updated local database.
In an exemplary embodiment of the present disclosure, the data obtaining unit 92 may be configured to first look up a point table index from the updated local database by the name of a leaf node in the tree structure, then look up 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 as the value of the leaf node to the leaf node.
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.
The shared command library updating unit 94 is configured to update the shared command library stored in the shared memory with respect to the wind farm operation commands based on the updated local command library in response to the end of the one polling.
Furthermore, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored which, when executed, implements a method of multi-process operation of a wind farm according to an exemplary embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, the computer readable storage medium may carry one or more programs which, when executed, implement the steps of: in one poll for application devices in the wind farm, collecting wind farm operational data and updating the local database based on the collected wind farm operational data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and transmitting a wind farm operation command based on the updated shared command library.
A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing. The computer readable storage medium may be embodied in any device; it may also be present separately and not assembled into the device.
The multi-process running device of the wind farm according to the exemplary embodiment of the present disclosure has been described above with reference to fig. 8 and 9. Next, a computer device according to an exemplary embodiment of the present disclosure will be described with reference to fig. 10.
Fig. 10 shows a schematic diagram of a computer device according to an exemplary embodiment of the present disclosure.
Referring to fig. 10, a computer device 10 according to an exemplary embodiment of the present disclosure comprises a memory 101 and a processor 102, said memory 101 having stored thereon a computer program which, when executed by the processor 102, implements a method of multi-process operation of a wind farm according to an exemplary embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, the computer program, when executed by the processor 102, may implement the steps of: in one poll for application devices in the wind farm, collecting wind farm operational data and updating the local database based on the collected wind farm operational data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and transmitting a wind farm operation command based on the updated shared command library.
The computer device shown in fig. 10 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
A method and apparatus for multi-process operation of a wind farm according to exemplary embodiments of the present disclosure has been described above with reference to fig. 1 to 10. However, it should be understood that: the multi-process running apparatus of the wind farm shown in fig. 8 and 9 and units thereof may be respectively configured as software, hardware, firmware, or any combination thereof to perform specific functions, the computer device shown in fig. 10 is not limited to including the above-shown components, but some components may be added or deleted as needed, and the above components may also be combined.
According to the method and the device for the multi-process operation of the wind farm, wind farm operation data are collected in one polling aiming at application equipment in the wind farm, and a local database is updated based on the collected wind farm operation data; in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database; responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and the wind power plant operation command is sent based on the updated shared command library, so that the multi-process operation efficiency of the wind power plant is improved.
While the present disclosure has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill 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 (17)

1. A multi-process operation method of a wind power plant is executed by a process server of a communication master station, and is characterized by comprising the following steps:
in one poll for application devices in the wind farm, collecting wind farm operational data and updating the local database based on the collected wind farm operational data;
in response to the one polling ending, updating a shared database of wind farm operational data stored in a shared memory based on the updated local database;
responding to the shared command library related to the wind power plant operation command in the shared memory updated by the application process server after the polling is finished, and acquiring the updated shared command library from the shared memory; and is
And sending a wind farm operation command based on the updated shared command library.
2. The multiprocess operation method according to claim 1, wherein the shared database and the local database have preset data structures, and the preset data structures comprise a device file, a point table file and a linear table with logical relations, and data storage is performed in the linear table, the device file and the point table file according to a sequential storage manner.
3. The multiprocess operating method according to claim 2, characterized in that the step of updating the local database based on the collected wind farm operating data comprises:
searching corresponding addresses of the collected wind power plant operation data in a linear table of a local database according to a logical relation among the equipment file, the point table file and the linear table; and is
And filling the collected wind power plant operation data into a linear table of a local database according to the searched corresponding address.
4. The multiprocess operation method according to claim 2, wherein the device file comprises at least one of a device serial number, a device name, a transformer number, a socket, a communication mode key parameter, a messaging 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.
5. The multiprocess operation method according to claim 4, wherein the data is arranged in the order of fixed value, policy, OPCUA device data, and device data other than OPCUA device in the linear table and the point table file.
6. The multi-process operating method according to claim 2, wherein the step of sending a wind farm operation command comprises:
and according to the logical relationship between the equipment file and the point table file, transmitting the wind power plant operation command to corresponding equipment through a first-in first-out (FIFO) circular queue in a mode of transmitting a single command sequentially or transmitting multiple commands together.
7. The multiprocess operating method according to claim 1, characterized in that the step of sending a wind farm operating command comprises:
and processing and sending the obtained wind power plant operation command in the shared command library in a hierarchical data processing mode.
8. The multi-process operation method according to claim 7, wherein the step of processing the obtained wind farm operation command in the shared command library in a hierarchical data processing manner comprises:
reading a fast command from an acquired shared command library when the time difference between the current time and the last time of receiving the fast command is greater than a first time, wherein the fast command requires corresponding equipment to execute the command at a speed exceeding a preset speed;
and reading the slow command from the obtained shared command library when the time difference between the current time and the last time of receiving the slow command is greater than a second time, wherein the slow command does not require the corresponding equipment to execute the command at a speed exceeding the preset speed.
9. A multi-process operation method of a wind power plant is executed by an application process server, and is characterized by comprising the following steps:
in one polling for application devices in the wind farm performed by the communication master station process server, obtaining a shared database of operational data about the wind farm from the shared memory, and updating the local database based on the obtained shared database;
acquiring wind power plant operation data from the updated local database;
generating a wind farm operation command based on the obtained wind farm operation data, and updating a local command library based on the generated wind farm operation command; and is
In response to the one polling ending, updating a shared command library stored in the shared memory for wind farm operation commands based on the updated local command library.
10. The multiprocess execution method according to claim 9, wherein the shared database and the local database have a preset data structure, and the data obtained from the updated local database are arranged in a preset tree structure.
11. The multi-process operating method according to claim 10, wherein the step of obtaining wind farm operating data from the updated local database comprises:
searching a point table index from the updated local database through the name of the leaf node in the tree structure; and is
And searching 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.
12. A multi-process operation device of a wind farm, characterized by comprising:
a local database update unit configured to collect wind farm operation data and update the local database based on the collected wind farm operation data in one poll for application devices in the wind farm;
a shared database updating unit configured to update the shared database regarding the wind farm operation data stored in the shared memory based on the updated local database in response to the end of the one polling;
the shared command library obtaining unit is configured to respond to the fact that the shared command library related to the wind farm operation command in the shared memory is updated by the application process server after the polling is finished, and obtain the updated shared command library from the shared memory; and
and the command transmitting unit is configured to transmit the wind farm operation command based on the updated shared command library.
13. The multiprocess operation device according to claim 12, characterized in that the multiprocess operation device of said wind farm is integrated in a VSG of the wind farm.
14. A multi-process operation device of a wind farm, characterized by comprising:
a local database updating unit configured to acquire a shared database regarding wind farm operation data from the shared memory in one polling for application devices in the wind farm performed by the master communication station process server, and update the local database based on the acquired shared database;
a data acquisition unit configured to acquire wind farm operation data from the 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 update the local command library based on the generated wind farm operation command; and
and the shared command library updating unit is configured to update the shared command library stored in the shared memory and related to the wind farm operation command based on the updated local command library in response to the end of the polling.
15. The multiprocess operation device according to claim 14, characterized in that the multiprocess operation device of said wind farm is integrated in a VSG of the wind farm.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method for multi-process operation of a wind farm according to any one of claims 1 to 11.
17. A computer device, comprising:
a processor;
memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of multi-process operation of a wind farm according to any of claims 1 to 11.
CN202010300347.3A 2020-04-16 2020-04-16 Multi-process operation method and device for wind power plant Active CN113535418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010300347.3A CN113535418B (en) 2020-04-16 2020-04-16 Multi-process operation method and device for wind power plant

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010300347.3A CN113535418B (en) 2020-04-16 2020-04-16 Multi-process operation method and device for wind power plant

Publications (2)

Publication Number Publication Date
CN113535418A true CN113535418A (en) 2021-10-22
CN113535418B CN113535418B (en) 2024-10-08

Family

ID=78088408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010300347.3A Active CN113535418B (en) 2020-04-16 2020-04-16 Multi-process operation method and device for wind power plant

Country Status (1)

Country Link
CN (1) CN113535418B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230211B1 (en) * 1993-01-19 2001-05-08 Canon Kabushiki Kaisha Container-based method for exchanging information between computer processes
CN203101531U (en) * 2012-11-05 2013-07-31 中国电力科学研究院 Wind power plant power quality monitoring system based on time series database platform
CN104378439A (en) * 2014-11-24 2015-02-25 上海许继电气有限公司 System and method for achieving real-time transmission of transformer substation device information based on shared memory
CN109033353A (en) * 2018-07-25 2018-12-18 天津凯发电气股份有限公司 A kind of Power quality management system shared drive update method
CN109032816A (en) * 2018-07-25 2018-12-18 天津凯发电气股份有限公司 A kind of Power quality management system shared drive multi-computer communication synchronous method
CN109638872A (en) * 2018-10-16 2019-04-16 北京金风科创风电设备有限公司 Method, device and system for controlling field control level power grid and storage medium thereof
US20200042625A1 (en) * 2018-08-03 2020-02-06 American Express Travel Related Services Company, Inc. Blockchain-enabled datasets shared across different database systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230211B1 (en) * 1993-01-19 2001-05-08 Canon Kabushiki Kaisha Container-based method for exchanging information between computer processes
CN203101531U (en) * 2012-11-05 2013-07-31 中国电力科学研究院 Wind power plant power quality monitoring system based on time series database platform
CN104378439A (en) * 2014-11-24 2015-02-25 上海许继电气有限公司 System and method for achieving real-time transmission of transformer substation device information based on shared memory
CN109033353A (en) * 2018-07-25 2018-12-18 天津凯发电气股份有限公司 A kind of Power quality management system shared drive update method
CN109032816A (en) * 2018-07-25 2018-12-18 天津凯发电气股份有限公司 A kind of Power quality management system shared drive multi-computer communication synchronous method
US20200042625A1 (en) * 2018-08-03 2020-02-06 American Express Travel Related Services Company, Inc. Blockchain-enabled datasets shared across different database systems
CN109638872A (en) * 2018-10-16 2019-04-16 北京金风科创风电设备有限公司 Method, device and system for controlling field control level power grid and storage medium thereof

Also Published As

Publication number Publication date
CN113535418B (en) 2024-10-08

Similar Documents

Publication Publication Date Title
US5251314A (en) System for converting from one document type to a plurality of document types allowing accurate reversal therefrom using tables containing indications regarding non-transformable elements
CN104750773A (en) Index maintenance based on a comparison of rebuild vs. update
CN103309928B (en) The method and system of storage and retrieve data
CN113900810A (en) Distributed graph processing method, system and storage medium
CN105117171A (en) Energy SCADA massive data distributed processing system and method thereof
CN104468274A (en) Cluster monitor and management method and system
CN108874803A (en) Date storage method, device and storage medium
CN112947856A (en) Memory data management method and device, computer equipment and storage medium
CN118017564B (en) Energy storage method based on open source hong Meng system
CN112948373A (en) Internet of things equipment data processing method, device, equipment and storage medium
CN102567419B (en) Mass data storage device and method based on tree structure
CN103310008A (en) Cloud control server and file index method
CN102724301B (en) Cloud database system and method and equipment for reading and writing cloud data
CN113535418B (en) Multi-process operation method and device for wind power plant
CN113344074A (en) Model training method, device, equipment and storage medium
CN112035413A (en) Metadata information query method and device and storage medium
CN102567544A (en) Database query method and database query device
CN112380208B (en) Real-time data ID generation method, system and medium for power distribution automation system
CN111061724B (en) High-speed real-time database management method and device for power distribution automation system
CN114490540A (en) Data storage method, medium, device and computing equipment
CN114116252A (en) System and method for storing operation measurement data of regulation and control system
CN105354310A (en) MapReduce based map tile storage layout optimization method
CN117271480B (en) Data processing method, device, electronic equipment and medium
CN115509684A (en) Configuration file mapping method and device and computer readable storage medium
CN117650622A (en) 61850 roll-out data processing method and system based on large model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 830026 No. 107, Shanghai Road, Urumqi economic and Technological Development Zone, the Xinjiang Uygur Autonomous Region

Applicant after: Jinfeng Technology Co.,Ltd.

Address before: 830026 No. 107, Shanghai Road, Urumqi economic and Technological Development Zone, the Xinjiang Uygur Autonomous Region

Applicant before: XINJIANG GOLDWIND SCIENCE & TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20240903

Address after: 100176 19 Kangding street, Beijing economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Beijing Goldwind Science & Creation Windpower Equipment Co.,Ltd.

Country or region after: China

Address before: 830026 No. 107, Shanghai Road, Urumqi economic and Technological Development Zone, the Xinjiang Uygur Autonomous Region

Applicant before: Jinfeng Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant