CN114422344B - DCS system network variable increment updating method - Google Patents
DCS system network variable increment updating method Download PDFInfo
- Publication number
- CN114422344B CN114422344B CN202111480636.7A CN202111480636A CN114422344B CN 114422344 B CN114422344 B CN 114422344B CN 202111480636 A CN202111480636 A CN 202111480636A CN 114422344 B CN114422344 B CN 114422344B
- Authority
- CN
- China
- Prior art keywords
- network variable
- network
- variable
- control station
- data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 230000005540 biological transmission Effects 0.000 claims abstract description 32
- 238000012544 monitoring process Methods 0.000 claims abstract description 4
- 238000004891 communication Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 7
- 230000008859 change Effects 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims 1
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method for updating the network variable increment of the DCS system is characterized by comprising the following steps of: step 1, constructing a network variable configuration table in an engineer station, compiling a logic configuration project and generating a logic configuration project file, wherein the logic configuration project file comprises a plurality of network variable symbol tables for realizing distribution of each network variable; step 2, based on a network variable symbol table, logically downloading each control station in the DCS system; and 3, utilizing each control station in the DCS system to realize the transmission and the reception of the network variable data frame based on the logic downloaded in the step 2, and utilizing the engineer station to realize the monitoring of the network variable based on the transmission and the reception of the network variable data frame. The method is simple and accurate, and incremental update of network variables is realized under the condition of not interrupting the system operation.
Description
Technical Field
The invention relates to the field of industrial automatic control, in particular to a DCS network variable increment updating method.
Background
Currently, distributed control systems (DCS, distributed Control System) are widely used in the field of industrial automation control. Typically, in a DCS system, a plurality of control stations are included, each of which includes one DPU (also known as a control station, or data processing unit, data Processing Unit) device or two DPU devices that are redundant to each other. The connection between DPU devices may typically be made in a single ethernet or dual ethernet fashion. Each or each pair of DPU devices acts as a control station for enabling sharing of data by data transfer between each other.
In the practical application process, the operation process and the network structure of the DCS system are generally complex, and the following problems often exist.
Firstly, in practical applications, configuration of network variables in a DCS system is often implemented through manual operation steps. This manual process may cause a mismatch in the network variable point tables in the different DPU devices. For example, when the manual operation process modifies the point table parameters of one DPU device, the point table parameters of another DPU device are not automatically changed, which makes the manual operation difficult and causes a problem that configuration information cannot be unified among multiple DPU devices. In addition, when two DPU devices with unmatched point tables are respectively used as a sending end and a receiving end of a network variable to share the network variable, the problem of unmatched information also causes missing transmission and error transmission of data content.
Secondly, when one of the transmitting end and the receiving end performs logical downloading, there may be a situation that the number of the network variable of the control station is misplaced in the system, and a problem that the number of the control station is wrong may also occur. This situation, although occurring less frequently, may also occur with the problem of network variable write errors. Furthermore, in the prior art, in order to prevent the writing error of the network variable, a mode of not deleting, not comparing and not merging is adopted, namely, the modification of the network variable is realized only by adopting an additional mode. In this way, not only useless network variables are increased, the accuracy of logic configuration is affected, the operation and maintenance difficulty is increased, but also the efficiency of network communication and data processing is affected.
Aiming at the problems, the invention provides a novel DCS network variable increment updating method.
Disclosure of Invention
In order to solve the defects in the prior art, the invention aims to provide a DCS system network variable increment updating method, which divides a network variable configuration table into a plurality of network variable symbol tables corresponding to control stations in a network one by one, and realizes the logic downloading of each control station and the acquisition and the transmission of network variable data based on the network variable symbol tables.
The invention adopts the following technical scheme.
A DCS system network variable increment updating method comprises the following steps: step 1, constructing a network variable configuration table in an engineer station, compiling a logic configuration project and generating a logic configuration project file, wherein the logic configuration project file comprises a plurality of network variable symbol tables for realizing distribution of each network variable; step 2, based on a network variable symbol table, logically downloading each control station in the DCS system; and 3, utilizing each control station in the DCS system to realize the transmission and the reception of the network variable data frames based on the logic downloaded in the step 2, and utilizing the engineer station to realize the monitoring of the network variable based on the transmission and the reception of the network variable data frames.
Preferably, the network variable configuration table is constructed in the following manner: a source address and a destination address are assigned to each network variable in the network variable configuration table.
Preferably, each network variable includes a variable name, a variable ID, a data value, and a quality code; the source address is automatically allocated based on logic configuration software; the destination address is assigned based on input from the engineer station.
Preferably, the variable ID includes a source DPU address, an IO module address, and a channel number of the network variable.
Preferably, the compiling method of the logic configuration engineering comprises the following steps: step 1.1, compiling a network variable configuration table into the network variable symbol table; and 1.2, calculating CRC codes of the network variable symbol table, and generating a new logic configuration engineering file.
Preferably, the number of network variable symbol tables is less than or equal to the number of control stations in the DCS system.
Preferably, each network variable symbol table corresponds to a control station, and each network variable symbol table includes network variable information sent by a current control station to other control stations in the DCS system and network variable information that the current control station is configured to receive from other control stations in the DCS system.
Preferably, the method of logic downloading is as follows: step 2.1, the engineer station selects the current control station for executing logic downloading and establishes communication connection with the control station; step 2.2, the logic configuration engineering file is sent to a current control station, the current control station analyzes the network variable symbol table in the logic configuration engineering file, and an output network variable table and an input network variable table are constructed based on the analysis result; and 2.3, realizing logic downloading based on the output type network variable table and the input type network variable table.
Preferably, based on the analysis of the input network variable table, the current control station allocates a corresponding storage space for the data and quality code of each input network variable, and records the data type of each input network variable; the method comprises the steps of constructing a network variable data frame based on an output network variable table, and calculating a point table check code for the network variable data frame.
Preferably, the logic configuration engineering file at least comprises five information segments of a logic program, a logic task table, a logic variable table, an IO module configuration table and a network variable symbol table; wherein each information segment includes a separately calculated CRC check code for the information segment.
Preferably, the resolving method in step 2.2 is as follows: step 2.2.1, checking whether CRC check codes of the network variable symbol table information segments are changed or not, and analyzing the current network variable symbol table based on the changes, so as to construct an output network variable table and an input network variable table of the current control station; and 2.2.2, checking whether CRC check codes of other information segments are changed or not, and analyzing the other information segments based on the change so as to realize logic or configuration updating of the control station.
Preferably, the transmission and reception of the network variable data frames are realized based on a set interval time; the network variable data frame comprises a source DPU address, a point table check code, the number of the network variables and a data field of the network variables; wherein the data field of the network variable comprises the variable ID, data type, data value and quality code.
Preferably, the point table check code is obtained by performing CRC check on variable IDs of all network variables in the network variable data frame corresponding thereto.
Preferably, the control station updates the table check code in the transmission data frame based on the update of the output network variable table; and the control station updates the locally stored point table check code of the corresponding control station based on the received update of the point table check code in the data frame.
Preferably, the variable ID is used for checking the data when the data is received and written into the pre-allocated storage space; when the variable ID received by the control station is the same as the variable ID stored in the control station input type variable table, a write operation is performed on the data.
Preferably, the quality code enables valid or invalid settings based on the transmission state of the network variable; when the control station does not normally receive the data frame carrying the network variable sent by the other control station within the preset time, the quality code corresponding to the other control station is set as invalid; and when the control station does not normally receive the data frame of the current network variable within the preset time, setting the quality code corresponding to the current network variable as invalid.
Preferably, the control station prohibits receiving and transmitting the network variable data frames from the control station receiving the logical configuration engineering file until the control station generates a new network variable table.
Compared with the prior art, the DCS network variable increment updating method has the advantages that the network variable configuration table can be split into a plurality of network variable symbol tables corresponding to control stations in a network one by one, and logic downloading of each control station and collection and sending of network variable data are realized based on the network variable symbol tables. The method is simple and accurate, and incremental update of network variables is realized under the condition of not interrupting the system operation.
The beneficial effects of the invention also include:
1. The method based on the programmable logic configuration realizes the configuration and downloading of the network variables, the network variables are matched one by one through the variable ID and the data type, and the data content is written into the logic data area on the premise of the configuration and downloading. The method not only ensures the accuracy and reliability of the data content, but also realizes the undisturbed incremental update of the network variable under the condition of not interrupting the system operation, and improves the flexibility and usability of the DCS system.
2. The method can realize configuration and logic downloading of network variables based on a programmable logic configuration method, and in the process, CRC (cyclic redundancy check), address check, data type check, data point table check and the like of data are realized through a multi-layer and multi-time check mode, so that the safety in the network data transmission process is ensured, and the reliability of a DCS (distributed control system) is improved.
3. The invention divides the network variable configuration table into a plurality of symbol tables aiming at different DPU devices, can realize the transmission and the reception of the network variable by the UDP multicast communication mode, greatly reduces the complexity of network load and programs and improves the reliability of the DCS system.
Drawings
FIG. 1 is a schematic flow chart of steps of a method for updating network variable increment of a DCS system;
FIG. 2 is a schematic diagram of a network variable configuration table in a DCS network variable increment updating method according to the present invention;
FIG. 3 is a schematic diagram of a logic downloading execution process in a method for updating a network variable increment of a DCS system according to the present invention;
FIG. 4 is a schematic diagram of a network architecture of a DCS network in a method for updating a network variable increment of the DCS system according to the present invention.
Detailed Description
The application is further described below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present application, and are not intended to limit the scope of the present application.
FIG. 1 is a schematic flow chart of steps of a method for updating network variable increment of a DCS system. As shown in FIG. 1, a method for updating network variable increment of a DCS system comprises steps 1 to 3.
Step 1, constructing a network variable configuration table in an engineer station, compiling a logic configuration project and generating a logic configuration project file, wherein the logic configuration project file comprises a plurality of network variable symbol tables for realizing distribution of each network variable.
FIG. 4 is a schematic diagram of a network architecture of a DCS network in a method for updating a network variable increment of the DCS system according to the present invention. As shown in fig. 4, the DCS system of the present invention, similar to the DCS system commonly used in the prior art, includes an engineer station and a plurality of control stations connected to each other through an ethernet network and to the engineer station. In addition, each control station may include one DPU device, or two DPU devices that are redundant copies of each other.
The DPU device may access a variety of IO (Input Output) modules, such as AI (Analog Input), DI (Digital Input), DO (Digital Output), AO (Analog Output), each of which configures an address number through a mounting slot or manually. Each IO module is provided with a plurality of independent physical input or output channels, and each channel can independently complete data acquisition or execute output and communicate with the DPU device through an internal bus. In the DPU device, besides recording the data of each IO channel through the IO variable, the availability of the IO variable is also represented through the quality code. For example, if the IO module fails or the IO module is not connected, the quality codes of all the IO variables corresponding to the IO module are all set to 0, if a certain channel fails, the quality code of the IO variable corresponding to the channel is set to 0, otherwise, the quality code of the IO variable corresponding to the channel is set to 1.
If the control station comprises two DPU devices which are redundant to each other, only the host DPU can send the network variable message, and both the host DPU and the standby DPU of other control stations can receive the network variable message. If the control station contains only one DPU, the DPU can send and receive network variable messages simultaneously as a host.
In addition, the single Ethernet or the double Ethernet can be adopted between the control stations and the engineer stations to realize the transmission and the reception of the network variable messages.
In the process of updating the network variable increment in the DCS system, an operator is usually required to execute a corresponding command input process. For example, an operator may pre-configure network variable transmission or sharing functions required throughout the DCS system at an engineer station.
During the pre-configuration process, the operator may build a network variable configuration table. Generally, the network variable configuration table is generated in various ways. The configuration information generated by other platforms according to the service function can be obtained, and the configuration information can also be obtained from an automatic setting process of a DCS system, for example, after the DCS system collects the attribute and data of IO modules of all DPU control stations in the system and automatically generates a global IO variable table, an operator performs manual operation to reasonably select network variables to be used from all the information. For example, an operator may select an appropriate IO variable from the global IO variables and sort out the network variable attributes of the variable.
Besides the variable names, all IO variables also have unique identification numbers in the DCS system, wherein the identification numbers are called variable IDs, and the DCS system automatically generates the identification numbers according to hardware configuration so as to identify each IO variable.
Preferably, the variable ID includes a source DPU address, an IO module address, and a channel number of the network variable. The variable ID can characterize the mapped address of the network variable.
In one embodiment of the invention, the variables var 1-7 can be acquired from the IO module accessed by the 1#DPU device, and the variable var8 can be acquired from the IO module accessed by the 2#DPU device. Therefore, in this system, the global variable table includes at least 8 IO variables var1 to var 8. If an operator wishes to use some or all of these 8 variables as network variables, the network variable attribute field in the corresponding variable may be checked, or otherwise, for example, the attribute field may be set to a value of 0 or 1 to distinguish whether the variable has the attribute of the network variable.
FIG. 2 is a schematic diagram of a network variable configuration table in a method for updating network variable increments of a DCS system according to the present invention. As shown in fig. 2, the network variable configuration table is preferably constructed in the following manner: distributing a source address and a target address for each network variable in a network variable configuration table; wherein each network variable comprises a variable name and a variable ID, a data value and a quality code; the source address is automatically allocated based on logic configuration software and is used for describing from which control station the variable is collected; the destination address is assigned based on input from the engineer station describing to which control station or stations the variable needs to be shared.
It should be noted that, the source address of the network variable in the present invention is necessarily the address of the source control station in the variable acquisition process, and the target address of the network variable may be obtained by setting by an operator according to actual requirements.
In the invention, after the operator realizes the configuration of the network variable configuration table through an automatic or manual process, the logic configuration engineering can be compiled through logic configuration software in the DCS system.
Specifically, the compiling method of the logic configuration engineering comprises the following steps: step 1.1, compiling a network variable configuration table into a plurality of network variable symbol tables; and 1.2, calculating CRC (Cyclic Redundancy Check ) codes of the network variable symbol table, and generating a new logic configuration engineering file.
In order to realize compiling of logic configuration engineering, the configuration table for recording all network variable information is firstly split into a plurality of network variable symbol tables aiming at a plurality of control stations in the system.
Preferably, the number of the network variable symbol tables does not exceed the number of the control stations in the DCS system; and each network variable symbol table corresponds to one control station, and each network variable symbol table comprises network variable information sent by the current control station to other control stations in the DCS system and network variable information which needs to be received by the current control station from the other control stations in the DCS system.
FIG. 3 is a schematic diagram of the logic compiling and downloading execution process in the method for updating the increment of the network variables of the DCS system. Fig. 3 shows the details of the network variable symbol table. The logic configuration software sequentially searches the network variable configuration table for the network variable content related to a certain control station. For example, for the network variable configuration table in fig. 2, the destination address of the variable var 1-4 is the 2# control station, and the source address of the variable var8 is the 2# control station, so the five variables are all related to the 2# control station, so the five variables var 1-4 and var5 can be equally distributed in the network variable symbol table corresponding to the 2# control station.
As shown in fig. 3, in an embodiment of the present invention, the source address of the network variable var1 is 1, the destination addresses are 2 and 3, and after the engineering compiling, the variable is recorded as "out_1_254_1_var1" in the network variable symbol table corresponding to the DPU device of the 1# control station, and is recorded as "in_1_254_1_var1" in the network variable symbol table corresponding to the DPU device of the 2# control station and the DPU device of the 3# control station. And 2, logically downloading each control station in the DCS based on the network variable symbol table.
After the compiling of the logic configuration engineering of the engineer station in the step 1 is completed, the engineer station can issue the logic configuration engineering file generated by compiling to the DPU control station equipment in each system according to the compiling result so as to realize downloading of the corresponding logic configuration file.
Preferably, the method of logic downloading is as follows: step 2.1, the engineer station selects the current control station for executing logic downloading and establishes communication connection with the control station; step 2.2, the logic configuration engineering file is sent to a current control station, the current control station analyzes the network variable symbol table in the logic configuration engineering file, and an output network variable table and an input network variable table are constructed based on the analysis result; and 2.3, based on the analysis of the input type network variable table, the current control station allocates corresponding storage space for the data and quality codes of each input type network variable, and records the data type of each input type network variable table. And constructing a network variable data frame based on the output network variable table, and calculating a point table check code for the network variable data frame.
It will be appreciated that in one embodiment of the invention, a network connection may be established between an engineer station and a control station apparatus requiring logical downloading. Because the control station equipment in the DCS system is pre-configured with corresponding functions, the communication connection can be realized by an operator selecting the control station on the logic configuration software and clicking a connection button. Subsequently, after the control station connection is successfully displayed in the logic configuration software, the operator can continue clicking the "download logic" button through the function on the relevant software. At this time, the logic configuration engineering file generated in step 1 may be transmitted to the corresponding control station by means of network transmission.
In the invention, the logic configuration engineering file not only comprises a network variable symbol table, but also comprises other contents. Specifically, the logic configuration engineering file comprises five information segments, namely a logic program, a logic task table, a logic variable table, an IO module configuration table and a network variable symbol table. Wherein each information segment includes a separately calculated CRC check code for the information segment.
Because the amount of information in the logic configuration engineering file is more, and the information of each part is relatively independent, the storage and transmission of data can be realized in the form of information segments. Each piece of information has a relatively independent function. For example, the logical program information segment includes a logical program stored in the form of machine code. In addition, in the DCS system, the control station may be allocated with a plurality of logical tasks, and the logical tasks are executed by calling a logical program, and the logical task table is used for recording the name, execution period, starting mode, timeout time, etc. of each logical task.
In addition, in order to ensure reliable delivery of data in the logical downloading phase, in the invention, a CRC check code of each information segment is generated by adopting a CRC check algorithm in the compiling phase.
Preferably, the resolving method in step 2.2 is as follows: step 2.2.1, checking whether CRC check codes of the network variable symbol table information segments are changed or not, and analyzing the current network variable symbol table based on the change, so as to construct an output network variable table and an input network variable table of the current control station; and 2.2.2, checking whether CRC check codes of other information segments are changed or not, and analyzing the other information segments based on the change so as to realize logic or configuration updating of the control station.
It will be appreciated that in the present invention, the DPU device receives the logical configuration engineering file and compares the CRC check code in each information segment with the CRC check code of the information segment stored locally by the device DPU. If the CRC check code is not changed, the corresponding information segment is not updated in the downloading process, and the content of the information segment is not required to be analyzed again. This approach saves time and process for large amounts of data processing and does not cause missing downloading problems.
In addition, if the CRC check code of the current information segment is different from the CRC check code stored locally by the DPU device, it is interpreted that the information segment is updated, e.g., network variables are added, deleted or modified. At this point, the content in the information segment needs to be re-parsed to enable a logical update to the control station.
In fig. 3, the network variable symbol table may be split into two tables, an output network variable table and an input network variable table, respectively. In the output network variable table, the variables that the DPU device needs to collect and share to other devices are stored. In the input network variable table, the network variables that the current DPU device needs to receive from other DPU devices are stored. Based on the contents of the two tables, the DPU device can perform the reception and transmission of the network variable data.
Optionally, when the input network variable table and the output network variable table are constructed, a PEER-DPU address table can be constructed at the same time, and all source addresses of the input network variable table of the current DPU device can be listed in the address table. The address table is used to quickly filter out network variable data frames that are not relevant to the present DPU.
It should be noted that, in the present invention, the DPU device should prohibit receiving and transmitting the network variable data frame from a period from receiving the logic configuration engineering file to generating the new network variable table ending configuration, so as to prevent the occurrence of processing errors on the network variable related data.
And 3, utilizing each control station in the DCS system to realize the transmission and the reception of the network variable data frames based on the logic downloaded in the step 2, and utilizing the engineer station to realize the monitoring of the network variable based on the transmission and the reception of the network variable data frames.
After the configuration of the logic downloading is completed by adopting the method in the step 2, the method can be used for transmitting and receiving the variable data frames of the DCS network.
Preferably, the transmission and reception of the network variable data frames are realized based on a set interval time; the network variable data frame comprises the source address, the point table check code, the number of the network variables and the data field of the network variables; wherein the data field of the network variable includes a variable ID, a data type, a data value, and a quality code.
In particular, the acquisition of the data frame of the network variable in the invention is the actual acquisition and sharing process of the data related to the network variable after the configuration is completed. The contents in the data frame include not only basic information of network variables such as source address, number of network variables, data value, etc., but also point table check code, variable ID of each network variable, data type, and quality code.
Specifically, the point table check code is obtained by performing CRC check on the variable IDs of all network variables in the network variable data frame corresponding thereto; the control station that transmits the network variable updates the point table check code based on the update of the output network variable table. Meanwhile, the control station receiving the network variable updates the locally stored point table check code of the corresponding DPU based on the update of the point table check code in the received data frame.
Through the information such as the point table check code, the variable ID, the data quality code and the like, when the control station receives and analyzes the network variable data frame, the check process of multiple times and multiple layers can be realized, thereby effectively preventing the occurrence of the situations such as error codes and the like in the data transmission process and ensuring the accuracy of the data. In addition, the point table check code can be synchronously updated according to the update of the output network variable table in the control station, so that the DPU device of the data receiver can analyze and receive the data content in a latest mode in real time.
Preferably, the variable ID is used for checking the data when the data is received and written into a pre-allocated storage space; when the variable ID received by the control station is the same as the variable ID stored in the control station input type variable table, a write operation is performed on the data.
The function of the variable ID is that when the control station receives data and stores the data in a preset space, the data can be stored by comparing the locally stored content with the received content, namely the variable ID, if the data are found to be identical, otherwise, the data are discarded when the transmission process or the variable generation process is described to have problems, and the accurate data are recorded and stored by sending out instructions or retransmitting and the like.
Preferably, the quality code enables valid or invalid settings based on the transmission state of the network variable; when the control station does not normally receive the data frame carrying the network variable sent by the other control station within the preset time, the quality code corresponding to the other control station is set as invalid; and when the control station does not normally receive the data frame of the current network variable within the preset time, setting the quality code corresponding to the current network variable as invalid.
The quality code may briefly characterize the quality of the data. In general, data may be problematic in the course of transmission. This problem is caused by network transmission failure between two control stations. Thus, if one control station does not receive all data sent by the other control station within a certain time, a network fault is indicated, and at this time, the quality code can be modified to be invalid so as to inform the system that the data quality is problematic.
On the other hand, there is a possibility that a problem occurs in the transmission process of a single network variable, or that a problem occurs in the configuration of a control station, the design of a storage space, and the like of a single network variable, and at this time, a quality code may be set to be invalid.
Preferably, the control station prohibits receiving and transmitting the network variable data frames from the control station during the period from the receipt of the logical configuration engineering file by the control station to the generation of the new network variable table by the control station. By the prohibition mode, the controller running in the multithreading environment can be prevented from causing data processing errors due to preemption of the network variable sending thread and the logic updating thread.
In addition, in order to reduce network load and complexity of program and data transmission, the communication mode of the network variable is realized by adopting a UDP (user data packet protocol, user Datagram Protocol) multicast mode, and in addition, the realization of a UDP unicast mode or a TCP (transmission control protocol ) mode is also feasible. Because the invention sets a corresponding network variable symbol table for each DPU device, even if a UDP multicast mode is adopted, the receiving end DPU device can completely know how to receive the responsive data, and can shield irrelevant data.
Specifically, when the network variable sharing is realized by adopting the UDP multicast mode, the DPU device as the transmitting end may compose a packet data frame from all the network variables that the DPU needs to transmit, and transmit the data frame to the set multicast address. All DPU devices which are used as receiving ends and monitor the multicast address can recognize the message and select network variables matched with the DPU devices.
In addition, when the network variable sharing is realized by adopting the UDP unicast or the TCP protocol, the DPU device serving as the transmitting end device can group all the output network variables in the DPU device according to the target DPU address, and only the network variable aiming at the device is transmitted to the designated receiving end DPU device, so that the complexity is high.
Specifically, when the DPU device receives a network variable data frame sent by another DPU device, it may be determined whether the source address of the network variable data frame is stored in the PEER-DPU address table of the present DPU device, if so, the present data is received, and if not, the present frame data content is discarded.
For the data to be received, whether the point table check code in the data frame is changed or not can be continuously judged, and if so, the mapping relation between the network variable data field in the data frame and the DPU input type network variable needs to be reconstructed. In this way, the received network variable data field can be quickly matched with the network variable configured by the DPU.
If the dot table check code is not changed, the description logic is not changed, and the next step is executed by skipping the current step.
In the next step, the DPU device will continue to make decisions on variable IDs and data types. The ID in the input variable table of the DPU device is compared with the received variable ID one by one, and data can be written only when the data type and the ID number are the same. This prevents the problem of misalignment in transmitting and receiving network variables, and fully ensures reliability.
The data writing process can be realized based on an interface function, and when writing, the original data can be written into a corresponding storage area, and the quality code can be written into the corresponding storage area.
As described above, in one embodiment of the present invention, if a data frame of a certain DPU is not received for more than a set time, the quality codes of all input network variables with source addresses of the DPU are automatically set to 0. In addition, if some input network variable has not updated data for more than a set time, its quality code setting is automatically set to 0.
In an embodiment of the present invention, the real-time update display of the network variable data can also be seen on the interface of the configuration software in an online manner. In an embodiment of the invention, the configuration, compiling and downloading of the network variables are realized on the DCS system of the thermal power plant by adopting the method described above, so that the working efficiency of the DCS equipment of the thermal power plant is improved, the undisturbed incremental update and reliable communication of the network variables during communication among multiple stations are solved, and the safety and usability of the communication among the stations are improved.
Compared with the prior art, the DCS network variable increment updating method has the advantages that the network variable configuration table can be split into a plurality of network variable symbol tables corresponding to control stations in a network one by one, and logic downloading of each control station and collection and sending of network variable data are realized based on the network variable symbol tables. The method is simple and accurate, and incremental update of network variables is realized under the condition of not interrupting the system operation.
While the applicant has described and illustrated the embodiments of the present invention in detail with reference to the drawings, it should be understood by those skilled in the art that the above embodiments are only preferred embodiments of the present invention, and the detailed description is only for the purpose of helping the reader to better understand the spirit of the present invention, and not to limit the scope of the present invention, but any improvements or modifications based on the spirit of the present invention should fall within the scope of the present invention.
Claims (11)
1. The method for updating the network variable increment of the DCS system is characterized by comprising the following steps of:
Step 1, constructing a network variable configuration table in an engineer station, compiling a logic configuration project and generating a logic configuration project file, wherein the logic configuration project file comprises a plurality of network variable symbol tables for realizing distribution of each network variable;
step 2, based on a network variable symbol table, logically downloading each control station in the DCS system; based on the analysis of the input network variable table, the current control station allocates corresponding storage space for the data and quality codes of each input network variable and records the data type of each input network variable; checking whether the CRC check code of the network variable symbol table information segment is changed or not, and analyzing the current network variable symbol table based on the change, so as to construct a network variable table of the current control station;
step 3, utilizing each control station in the DCS system to realize the transmission and the reception of the network variable data frame based on the logic downloaded in the step 2, and utilizing the engineer station to realize the monitoring of the network variable based on the transmission and the reception of the network variable data frame;
And the control station prohibits receiving and transmitting network variable data frames during the period from the control station receiving the logic configuration engineering file to the control station generating a new network variable table.
2. The method for updating the network variable increment of the DCS system according to claim 1, wherein the method comprises the following steps:
the construction mode of the network variable configuration table is as follows: distributing a source address and a target address for each network variable in the network variable configuration table;
each network variable comprises a variable name, a variable ID, a data value and a quality code, wherein the variable ID comprises a source DPU address, an IO module address and a channel number of the network variable;
The source address is automatically allocated based on the logic configuration software, and the target address is allocated based on the input information of the engineer station.
3. The method for updating the network variable increment of the DCS system according to claim 2, wherein the method comprises the following steps:
the compiling method of the logic configuration engineering comprises the following steps:
step 1.1, compiling the network variable configuration table into a plurality of network variable symbol tables;
and 1.2, calculating CRC codes of the network variable symbol table, and generating a new logic configuration engineering file.
4. A method for updating network variables of DCS system according to claim 3, wherein:
Each network variable symbol table corresponds to one control station, and each network variable symbol table comprises network variable information sent by a current control station to other control stations in the DCS system and network variable information which needs to be received by the current control station from other control stations in the DCS system.
5. The method for updating the network variable increment of the DCS system according to claim 4, wherein the method comprises the following steps:
the method for logically downloading comprises the following steps:
Step 2.1, the engineer station selects a current control station for executing logic downloading and establishes communication connection with the control station;
Step 2.2, the logic configuration engineering file is sent to the current control station, the current control station analyzes a network variable symbol table in the logic configuration engineering file, and an output type network variable table and an input type network variable table are constructed based on an analysis result;
And 2.3, realizing the logic downloading based on the output type network variable table and the input type network variable table.
6. The method for updating the network variable increment of the DCS system according to claim 5, wherein the method comprises the following steps:
And constructing a network variable data frame based on the output network variable table, and calculating a point table check code for the network variable data frame.
7. The method for updating the network variable increment of the DCS system according to claim 5, wherein the method comprises the following steps:
the logic configuration engineering file at least comprises five information segments of a logic program, a logic task table, a logic variable table, an IO module configuration table and the network variable symbol table; wherein,
Each information segment includes a separately calculated CRC check code for the information segment.
8. The method for updating the network variable increment of the DCS system according to claim 5, wherein the method comprises the following steps:
The analysis method in the step 2.2 is as follows:
2.2.1, analyzing the current network variable symbol table, so as to construct an output network variable table and an input network variable table of the current control station;
and 2.2.2, checking whether CRC check codes of other information segments are changed or not, and analyzing the other information segments based on the change so as to realize logic or configuration updating of the control station.
9. The method for updating the network variable increment of the DCS system according to claim 8, wherein the method comprises the following steps:
the transmission and the reception of the network variable data frames are realized based on the set interval time; and
The network variable data frame comprises a source DPU address, a point table check code, the number of the network variables and a data field of the network variables;
wherein the data field of the network variable comprises the variable ID, a data type, a data value and a quality code;
The point table check code is obtained by performing CRC check on variable IDs of all network variables in the network variable data frame corresponding to the point table check code; and
The control station realizes updating of the point table check code in the transmitted data frame based on the updating of the output network variable table; and the control station updates the locally stored point table check code of the corresponding control station based on the received update of the point table check code in the data frame.
10. The method for updating the network variable increment of the DCS system according to claim 8, wherein the method comprises the following steps:
the variable ID is used for checking the data when the data is received and written into the pre-allocated storage space; and when the variable ID received by the control station is the same as the variable ID stored in the variable table input by the control station, executing a writing operation on the data.
11. The method for updating the network variable increment of the DCS system according to claim 8, wherein the method comprises the following steps:
The quality code is set to be effective or invalid based on the transmission state of the network variable;
When the control station does not normally receive a data frame carrying a network variable sent by another control station within a preset time, the quality code corresponding to the other control station is set as invalid;
and when the control station does not normally receive the data frame of the current network variable within the preset time, setting the quality code corresponding to the current network variable as invalid.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111480636.7A CN114422344B (en) | 2021-12-06 | 2021-12-06 | DCS system network variable increment updating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111480636.7A CN114422344B (en) | 2021-12-06 | 2021-12-06 | DCS system network variable increment updating method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114422344A CN114422344A (en) | 2022-04-29 |
CN114422344B true CN114422344B (en) | 2024-05-10 |
Family
ID=81266089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111480636.7A Active CN114422344B (en) | 2021-12-06 | 2021-12-06 | DCS system network variable increment updating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114422344B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115202299B (en) * | 2022-07-11 | 2024-09-24 | 中国核动力研究设计院 | Automatic setting method, device and equipment based on DCS (distributed control system) forced data |
CN118426392B (en) * | 2024-07-04 | 2024-09-10 | 北京和利时控制技术有限公司 | Distributed control system and engineering upgrading method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003271209A (en) * | 2002-03-15 | 2003-09-26 | Omron Corp | Control device, expansion device and programming tool |
CN110445656A (en) * | 2019-08-13 | 2019-11-12 | 中国核动力研究设计院 | Based on nuclear power plant DCS platform transparent transmission network data Life cycle generation method |
CN110989486A (en) * | 2019-12-20 | 2020-04-10 | 广东利元亨智能装备股份有限公司 | Interaction method of upper computer and PLC |
CN112198856A (en) * | 2020-11-20 | 2021-01-08 | 西安众博科创电子科技有限公司 | Large-scale distributed real-time control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4529085B2 (en) * | 2005-03-30 | 2010-08-25 | 横河電機株式会社 | Data acquisition apparatus and data acquisition method |
-
2021
- 2021-12-06 CN CN202111480636.7A patent/CN114422344B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003271209A (en) * | 2002-03-15 | 2003-09-26 | Omron Corp | Control device, expansion device and programming tool |
CN110445656A (en) * | 2019-08-13 | 2019-11-12 | 中国核动力研究设计院 | Based on nuclear power plant DCS platform transparent transmission network data Life cycle generation method |
CN110989486A (en) * | 2019-12-20 | 2020-04-10 | 广东利元亨智能装备股份有限公司 | Interaction method of upper computer and PLC |
CN112198856A (en) * | 2020-11-20 | 2021-01-08 | 西安众博科创电子科技有限公司 | Large-scale distributed real-time control system |
Also Published As
Publication number | Publication date |
---|---|
CN114422344A (en) | 2022-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114422344B (en) | DCS system network variable increment updating method | |
US4926375A (en) | Multiple nodes broadcast communication method with receiver identification by bit position in transferred massage | |
CN108847979B (en) | Self-adaptive configuration system and method based on SCADA | |
CN105450489A (en) | HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method | |
WO2018070518A1 (en) | Communication device, control device, and communication method | |
US20100121951A1 (en) | Method and arrangement for diagnosing networks including field bus systems | |
JP2001356801A (en) | Plant monitoring device and storage medium | |
CN109284121A (en) | The method and system of accumulation power supply multistage network multi-control apparatus synchronized update program | |
US20230012635A1 (en) | Data collection management device and data collection system | |
CN115208905A (en) | Device information synchronization method, device, system, electronic device and storage medium | |
US20220066436A1 (en) | Industrial field device replacement system | |
US20050229040A1 (en) | Communication system with users and diagnostic units | |
CN114285695A (en) | Communication method, device, equipment, system and storage medium | |
CN103685178A (en) | Industrial wireless network oriented online debugging method and system | |
CN116431277A (en) | Multi-place operation and maintenance containerization method and device, computer equipment and storage medium | |
CN113671924B (en) | DCS real-time value setting method and system, equipment and storage medium | |
CN115842860A (en) | Monitoring method, device and system for data link | |
CN111367740B (en) | BMC debugging system and method and computer readable storage medium | |
CN109906440B (en) | Multi-core device with split redundancy scheme in a process control system | |
CN115686594A (en) | Terminal automatic operation and maintenance management system and method | |
CN109327832B (en) | Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof | |
CN110149389B (en) | Data transmission control method and system of holographic display device | |
CN110012109A (en) | Method for establishing engineering information capable of realizing high accuracy | |
CN105553774A (en) | Internet data collection method and system | |
CN108243070B (en) | test methods, control node and pressure node |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |