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.
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
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.