A data communication method, communication service end and system of a DCS system of a nuclear power plant

By designing the communication server to receive read variable tables and update the periodic read variable tables in the DCS system of the nuclear power plant, the problem of local variable communication is not supported, and the automated reading of local and global variables of the control station is realized, which improves the testing efficiency and stability.

CN119002437BActive Publication Date: 2024-12-20BEIJING HELISHI CONTROL TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411472698.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2024-12-20
Estimated Expiration
2044-10-21

AI Technical Summary

Technical Problem

The existing DCS system of nuclear power plants cannot support communication operations on local variables of the control station, resulting in the warranty personnel need to manually read and record the control station data, affecting the efficiency of automated testing, especially in the event of network failure or master-slave state changes.

Method used

A data communication method for DCS system of nuclear power stations was designed, and the read variable table was received through the communication server, query the variable data information point table, and update the variable value in the periodic read variable table, supporting the third-party system to read the local and control stations. Global variables to implement automated testing.

Benefits of technology

It improves the automation testing efficiency of the DCS system of the nuclear power plant, reduces the amount of manual operations, enhances the reliability and stability of data reading, and can realize automated communication of control station variables without affecting the original system structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002437B_ABST
    Figure CN119002437B_ABST
Patent Text Reader

Abstract

A data communication method, communication service end and system of a DCS system of a nuclear power plant. The method comprises: a communication service end receives a read variable table sent by a communication client end, and according to the variables included in the read variable table, queries the variable data information point table of the control station corresponding to the variable to obtain the variable information; inserts the variable information into the periodic read variable table of the control station corresponding to the variable; the variable is a global variable or a local variable; for each control station, the following operations are performed periodically: according to each variable information in the periodic read variable table of the control station, the variable value of the corresponding variable in the control station is read, and the read variable value is updated to the periodic read variable data area of ​​the control station, and filled into the variable value table; the communication service end returns the variable value table to the communication client end to provide it to the test terminal. The scheme of the present application can realize that a third-party system reads the local variables of the control station, and improves the efficiency of the automated testing of the DCS system of a nuclear power plant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to the control technology of the DCS system of a nuclear power plant, and in particular to a data communication method, a communication server and a system of the DCS system of a nuclear power plant. Background Art

[0002] In the DCS (Distributed Control System) system of a nuclear power plant, the operation logic of each control station is required to have high reliability and high security. Testing is the quality assurance barrier of the nuclear power DCS system. Quality assurance personnel need to test the operation logic of each control station in the nuclear power plant DCS system.

[0003] In the existing nuclear power plant DCS system, the control station variables include global variables and local variables. Among them, global variables are added during engineering configuration. After setting global variables in the DCS system server, they can be used in multiple software (such as control station algorithm logic, operator station human-machine interface), with a wide range of applications. Local variables can only be applied to the corresponding program organization unit in the control station project, and are only valid in the program unit to which they belong, with a limited scope of use.

[0004] In conventional nuclear power DCS systems, IO servers only support communication with global variables of each control station, but do not support communication operations with local variables of the control station, nor do they support communication operations with third-party systems on control station variables. In the DCS control station software, only the display and operation of local variables of the control station are provided, but no external communication interface is provided. Therefore, local variables of the control station cannot be provided to third-party systems for use. This results in quality assurance personnel needing to manually read and record global variables and local variable data in the control station in the control station configuration software of the engineer station when testing the nuclear power plant DCS system. When the control station network fails or the master-slave status of the control station changes, the engineer station needs to be manually controlled to reconnect to the control station, which seriously affects the reading and operation efficiency of the control station data. The existing control station variable reading method cannot meet the needs of automated testing of nuclear power DCS systems. Summary of the invention

[0005] The embodiments of the present application provide a data communication method, a communication server, and a system for a DCS system of a nuclear power plant, which can enable a third-party system to read local variables of a control station and improve the efficiency of automated testing of the DCS system of a nuclear power plant.

[0006] An embodiment of the present application provides a data communication method of a DCS system of a nuclear power plant, wherein the DCS system of the nuclear power plant includes a plurality of control stations, including:

[0007] The communication service end receives the read variable table sent by the communication client, queries the variable data information point table of the control station corresponding to the variable according to the variables included in the read variable table, and obtains the variable information of the variable; inserts the variable information into the periodic read variable table of the control station corresponding to the variable; wherein the variable is a global variable or a local variable; the variable data information point table includes the variable information of all global variables and local variables in the corresponding control station; the read variable table is generated by the communication client according to the read request of the test terminal;

[0008] The communication service end periodically performs the following operations for each control station: reading the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updating the read variable value to the periodic variable reading data area of ​​the control station; and filling the variable value table with the variable value of the periodic variable reading data area of ​​the control station according to the reading variable table;

[0009] The communication server returns the variable value table to the communication client to provide it to the test terminal.

[0010] In an exemplary embodiment, the variable information includes one or more of a variable position, a variable region, a variable length, and a variable type;

[0011] Before querying the variable data information point table of the control station corresponding to the variable according to the variable included in the read variable table, the method further includes:

[0012] When the communication service end is started, the engineering symbol table of each control station is obtained from the DCS engineer station;

[0013] The communication service end performs the following operations on the engineering symbol table of each control station:

[0014] The engineering symbol table is decrypted, and variable information of all global variables and local variables in the control station in the DCS system is queried according to the decrypted engineering symbol table, and a variable data information point table of the control station is constructed according to the variable information obtained by the query.

[0015] In an exemplary embodiment, after the communication service end is started, before the engineering symbol table of each control station is obtained from the DCS engineer station, the method further includes:

[0016] The communication service end performs network status diagnosis for each control station and sets a status flag of the control station according to the network status diagnosis result; and establishes a network connection with the control station whose status flag is normal and serves as a host.

[0017] In an exemplary embodiment, the communication service end establishes a network connection with a control station whose status flag is normal and serves as a host, including:

[0018] Determine the master-slave status of the control station; if the control station is a slave, close the network connection with the control station and reconnect to the next control station; if the control station is a host, insert a life cycle signal into the periodic read variable table of the control station; the life cycle signal is used by the communication server to monitor the operating status of the control station as the host, as well as the connection status between the communication server and the control station as the host.

[0019] In an exemplary embodiment, if the communication service end detects that the master-slave state of the control station is switched, the current network connection with the control station is closed, and a network connection is re-established with the control station whose status mark is normal and which serves as the master; or,

[0020] If the communication service end detects that a network failure has occurred, after the network failure is restored, the communication service end re-establishes a network connection with the control station whose status mark is normal and which serves as the host.

[0021] In an exemplary embodiment, the periodic variable reading table includes variable information and a read time mark of the variable information;

[0022] The step of reading the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updating the read variable value to the periodic variable reading data area of ​​the control station includes:

[0023] Based on the read time mark of the variable information in the periodic read variable table of the control station, determine whether there is a read operation for the variable information within the first time threshold before the current moment; if there is no read operation, delete the variable information from the periodic read variable table and the periodic read variable data area of ​​the control station; if there is a read operation, read the variable value from the control station based on the variable information, update the variable value to the periodic read variable data area of ​​the control station, and update the read time mark of the variable information in the periodic read variable table of the control station.

[0024] Another embodiment of the present application provides a communication service end, which is applied to a data communication system of a nuclear power plant DCS system, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the data communication method of the nuclear power plant DCS system as described above is implemented.

[0025] Another embodiment of the present application provides a data communication system of a nuclear power plant DCS system, including:

[0026] The communication server as described above, and the communication client;

[0027] The communication client is used to receive a read request from a test terminal, generate a read variable table according to the read request, and send the read variable table to the communication server; and return the variable value table received from the communication server to the test terminal.

[0028] In an exemplary embodiment, returning the variable value table received from the communication service end to the test terminal includes:

[0029] The communication client performs variable value conversion on the variable value table and returns the conversion result to the test terminal; wherein the variable value conversion includes data type conversion and / or data value conversion.

[0030] In an exemplary embodiment, the communication client is deployed on the same computer as the test terminal;

[0031] The communication service end is deployed on one or more computers at the following locations: an engineer station of the DCS system, an independent computer, or the same computer as the test terminal.

[0032] Through the technical solution provided in the embodiment of the present application, it is possible to enable a third-party system to read local variables of the control station and improve the efficiency of automated testing of the DCS system of a nuclear power plant.

[0033] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0035] Figure 1 A flow chart of a data communication method for a nuclear power plant DCS system provided in an embodiment of the present application;

[0036] Figure 2 A data flow diagram provided for an embodiment of the present application;

[0037] Figure 3 A flow chart of control station data processing provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of the structure of a communication service terminal provided in an embodiment of the present application;

[0039] Figure 5 A program execution flow chart of a communication client provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of the structure of a data communication system of a nuclear power plant DCS system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0042] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0043] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.

[0044] When quality assurance personnel are testing the operational logic of each control station in the DCS system of a nuclear power plant, they may encounter a situation where requests to read control station variables are initiated simultaneously from multiple test terminals. The request to read control station variables may be executed simultaneously for multiple control stations, and for each control station, the variable values ​​of multiple local variables or global variables need to be read.

[0045] In the existing nuclear power plant DCS system, on the one hand, the IO server does not have the communication function of the local variables of the control station, and only provides partial communication capabilities of the global variables of the control station. In the DCS system, the global variables are divided into server items and IO items. At present, the IO server only provides the communication capabilities of the IO items. Although the service items can be modified in the control station software of the DCS system, in order to ensure the correct operation of the system, the server items for modifying the global variables also need to provide variable information. The DCS system control station software does not have the ability to obtain variable information, and for local variables, it only provides the display and operation functions of local variables, and does not provide an external interface. On the other hand, the process of reading variables from the DCS system takes a long time and is easily affected by the need to reconnect the master-slave state change of the control station, or network failures. Frequently reading a large number of control station variables at the same time will consume a large amount of DCS system computing resources, which may cause software operation blocking, thereby causing system jams and delays in third-party control software, untimely refresh of the control screen, and other problems, seriously affecting the normal operation of the DCS system. In response to the above problems, the present application proposes a data communication method for a nuclear power plant DCS system.

[0046] Figure 1 The flowchart of a data communication method of a nuclear power plant DCS system provided by an embodiment of the present application is shown, wherein the nuclear power plant DCS system includes multiple control stations. Figure 1 As shown, the method includes:

[0047] Step S100: The communication service end receives the read variable table sent by the communication client, queries the variable data information point table of the control station corresponding to the variable according to the variables included in the read variable table, and obtains the variable information of the variable; inserts the variable information into the periodic read variable table of the control station corresponding to the variable;

[0048] Step S101, the communication service end periodically performs the following operations for each control station: reads the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updates the read variable value to the periodic variable reading data area of ​​the control station; and fills the variable value table with the variable value of the periodic variable reading data area of ​​the control station according to the variable reading table;

[0049] Step S102: The communication server returns the variable value table to the communication client to provide it to the test terminal.

[0050] The data flow diagram between the test terminal, the communication client, the communication service end and the DCS system of the nuclear power plant in this embodiment is as follows: Figure 2 As shown. In this embodiment, taking the variable reading of control station 1 as an example, the nuclear power DCS system includes an engineer station and one or more control stations (control station 1...control station n), and the variables of each control station are read and obtained through the communication service end, which will not affect the IO server and computing server of the DCS system, and will not affect the normal operation of the DCS. When the communication service end is started, a periodic reading variable table and a periodic reading variable data area are created for each control station, wherein the periodic reading variable table is used to store the variable information of the variables that need to be read from the control station and has a storage upper limit, and the periodic reading variable data area is used to store the variable values ​​read and obtained from the control station according to the variable information in the periodic reading variable table. The periodic reading variable table and periodic reading variable data area of ​​each control station are released when the communication service end program ends.

[0051] In this embodiment, the communication client provides an operation interface for reading control station variables in a DCS system for the automated test terminal. The communication client may be one or more. The communication client generates a read variable table according to the read request of the test terminal and sends it to the communication server. The read variable table includes global variables and / or local variables of one or more control stations that the test terminal needs to read. After receiving the read variable table from the communication client, the communication server generates a variable value table corresponding to the read variable table to store all variable values ​​returned to the communication client obtained by the read variable table read operation. After the communication server completes the read request sent by the client this time and returns the variable value table, the read variable table and the corresponding variable value table of this read operation can be released.

[0052] In this embodiment, the variables included in the variable reading table may be global variables or local variables of the control station. The variable data information point table of each control station includes the variable information of all global variables and local variables included in the control station, wherein the variable information is the information necessary for reading the variable value of the variable, such as the location where the variable is stored, etc. The variable may also be called a point item, and the point table is a table compiled according to the set of variables. In this way, the communication service end can query the variable data information point table of the control station corresponding to the variable according to the variables included in the variable reading table, and obtain the variable information, and insert it into the periodic variable reading table of the corresponding control station. The variable information in the periodic variable table can be used to read the variable value of the variable from the corresponding control station.

[0053] Normally, for each cycle of reading the variable table, the communication server needs to read the corresponding variable values ​​one by one according to the variable information and return them to the communication client, and then return them to the test terminal. The entire process of the communication server reading the variable value of each variable from the control station and returning it to the test terminal takes hundreds of milliseconds. When multiple test terminals read variables across multiple control stations at the same time, the DCS system cannot respond to a large number of read requests instantly, which can easily cause program blocking and read timeout, greatly reducing the variable reading efficiency.

[0054] In order to reduce the delay of reading variables, the communication service end in this embodiment periodically reads the variable information in the control station according to the periodic variable reading table of each control station, and refreshes the read variable value in the periodic variable reading data area of ​​the control station, so that all the variable data that need to be read in the control station can be uniformly read in one cycle, saving a lot of reading time. When the communication service end receives the variable reading request sent by the client, the variable information of the variable in the variable reading table is inserted into the periodic variable reading table of the corresponding control station, and the variable value is read according to the newly added variable information in the next cycle, updated to the periodic variable reading data area of ​​the corresponding control station, and then filled into the variable value table corresponding to the current read request and returned. If there are variables that have been read in the history in the subsequent variable table reading request sent by the communication client, the periodic variable reading data area of ​​the corresponding control station of the variable that has been read in the history has saved the latest variable value of the variable periodically maintained by the communication service end, so that the communication service end can directly fill the latest variable value of the variable in the periodic variable reading data area of ​​the control station into the variable value table and return it without waiting for the next cycle of reading, which greatly improves the efficiency of the test terminal in reading the control station variables. Among them, according to the read variable table, filling the variable values ​​of the control station periodic read variable data area into the variable value table specifically includes: filling the variable values ​​of the variables included in the read variable table read this time in the control station periodic read variable data area into the variable value table.

[0055] The data communication method for the control station variables of the DCS system provided in this embodiment receives the read variable table sent by the communication client through the communication service end, queries the variable data information point table of the control station corresponding to the variable according to the variables included in the read variable table, obtains the variable information of the variable and inserts it into the periodic read variable table of the control station corresponding to the variable; then, for each control station, performs a periodic read operation on the variable value of the corresponding variable in the control station according to each variable information in the periodic read variable table of the control station, and updates the read variable value to the periodic read variable data area of ​​the control station; and fills the variable value of the periodic read variable data area of ​​the control station into the variable value table. ; Finally, the communication service end returns the variable value table to the communication client end to provide it to the test terminal. Under the premise of not changing the original DCS system structure, not affecting the DCS engineering configuration, not interfering with the normal monitoring and operation of the DCS control station software, not hindering the data communication of the DCS server, and not interfering with the normal operation of the DCS control station, the data communication of the local variables and global variables between the third-party automated test system terminal and the nuclear power plant DCS system control station can be realized, reducing the workload of the test personnel to manually read the control station variables from the engineer station, effectively reducing human errors, and greatly improving the efficiency and test quality of the DCS system automatic test work. The solution provided in this embodiment can effectively promote the progress of nuclear power projects and provide effective technical support for the development and implementation of automated test tools.

[0056] In an exemplary embodiment, the variable information includes one or more of a variable position, a variable region, a variable length, and a variable type;

[0057] Before querying the variable data information point table of the control station corresponding to the variable according to the variable included in the read variable table, the method further includes:

[0058] When the communication service end is started, the engineering symbol table of each control station is obtained from the DCS engineer station;

[0059] The communication service end performs the following operations on the engineering symbol table of each control station:

[0060] The engineering symbol table is decrypted, and variable information of all global variables and local variables in the control station in the DCS system is queried according to the decrypted engineering symbol table, and a variable data information point table of the control station is constructed according to the variable information obtained by the query.

[0061] In this embodiment, when the communication server software is started, it first obtains engineering information from the engineer station of the nuclear power plant DCS system, and at the same time applies for a cache area for the information needed in the variable reading process, wherein the engineering information includes engineering configuration and engineering symbol table, and generates a control station variable data information point table for each control station according to the engineering information, and the control station variable data information point table contains the variable information of all global variables and local variables in the control station. After applying for the cache area, if the server software does not receive a program end command, the server software executes the main program in a loop; when the server software receives a program end command, it releases the cache and critical area and ends the program. In the subsequent reading process of the control station variables, there is no need to access the engineer station again, which reduces the resource requirements of the DCS system. Figure 3 As shown, the specific steps of the communication service end generating the control station variable data information point table for each control station may include:

[0062] First, determine whether the engineering symbol table exists. If not, return to the main program loop. If it exists, continue to determine whether the engineering symbol to be loaded is loaded successfully. If loading fails, return to the main program loop. If loading is successful, continue to execute the following steps S302.1;

[0063] Step S302.1, decrypt the engineering symbol table.

[0064] Step S302.2: According to the decrypted engineering symbol table, query the variable information of all global variables and local variables in the DCS system in the control station, such as variable position, variable area, variable length, variable type, etc.

[0065] Step S302.3: construct the variable data information point table of the control station according to the variable information obtained by query.

[0066] In an exemplary embodiment, the communication service end can also query the variable data information point table of the control station corresponding to the variable according to the variable included in the variable reading table, and after obtaining the variable information of the variable, insert the variable length and variable type in the variable information into the variable value table. Before the communication service end fills the variable value in the variable data area of ​​the control station periodic read variable into the variable value table, it needs to determine whether the variable value meets the requirements of the variable length and variable type. In this way, it can ensure that the variable value read from the control station is consistent with the variable information recorded in the engineering information, thereby improving the reliability of variable value reading.

[0067] In an exemplary embodiment, after the communication service end is started, before the engineering symbol table of each control station is obtained from the DCS engineer station, the method further includes:

[0068] The communication service end performs network status diagnosis for each control station and sets a status flag of the control station according to the network status diagnosis result; and establishes a network connection with the control station whose status flag is normal and serves as a host.

[0069] In this embodiment, Figure 3 As shown, the communication service end may perform network status diagnosis for each control station, which may specifically include:

[0070] Step S301.1, determine the connection status of the four network lines of the control station.

[0071] Step S301.2: Set the control station network status flag according to the judgment result.

[0072] In an exemplary embodiment, the communication service end establishes a network connection with a control station whose status flag is normal and serves as a host, including:

[0073] Determine the master-slave status of the control station; if the control station is a slave, close the network connection with the control station and reconnect to the next control station; if the control station is a host, insert a life cycle signal into the periodic read variable table of the control station; the life cycle signal is used by the communication server to monitor the operating status of the control station as the host, as well as the connection status between the communication server and the control station as the host.

[0074] In this embodiment, the control station serving as the host may be one or more. The communication service end first connects to the control station whose status is marked as normal, such as Figure 3 As shown, the specific steps may include:

[0075] Determine whether the control station is connected. If it is connected, return to the main program loop. If it is not connected, continue to execute step S303.1.

[0076] Step S303.1, select a control station network.

[0077] Step S303.2: Set the communication parameters with the control station.

[0078] Step S303.3, connect to the communication gateway and open the communication channel.

[0079] Step S303.4: Set the control station connection flag.

[0080] After the communication server is connected to the control station, the communication server also needs to determine the master-slave status of the control station and determine whether to maintain the connection with the control station. The specific steps include:

[0081] Step S304.1: Determine the master-slave status of the connected control stations.

[0082] Step S304.2: If the control station is a slave, close the network connection with the control station and execute step S304.3;

[0083] Step S304.3: trigger reconnection to the next control station.

[0084] Step S304.4: If the control station is a host, insert a life cycle signal into the periodic read variable table of the control station, and maintain the network connection with the control station.

[0085] In the above step S304.3, the communication service end can reconnect to the next control station by changing the IP address until the connected control station is the host. The communication service end performs the above steps until connections are established with all control stations that are hosts.

[0086] In this embodiment, the communication service end establishes a communication connection with the control station as the host after performing configuration analysis on the engineering information obtained by the DCS system engineer station. Each control station that establishes a connection with the communication service end has a fixed control station life cycle signal variable in the periodic reading variable table, which is used to monitor the control station status and the connection status between the control station and the communication service end. The remaining variable information in the periodic reading variable table is generated according to the client's read request. Since the control station provides a TCP connection mode to the outside, in this case, after the communication service end is started, an uninterrupted communication connection is established for each control station as the host, and the communication service end automatically manages the network connection with each control station, which simplifies the design of the communication client. Even if the communication service end does not receive a read request from the communication client, it will periodically read the life signal point value in the periodic variable table of each control station to maintain the normal network connection with the control station.

[0087] In an exemplary embodiment, if the communication service end detects that the master-slave state of the control station is switched, the current network connection with the control station is closed, and a network connection is re-established with the control station whose status mark is normal and which serves as the master; or,

[0088] If the communication service end detects that a network failure has occurred, after the network failure is restored, the communication service end re-establishes a network connection with the control station whose status mark is normal and which serves as the host.

[0089] In this embodiment, when the communication service end detects that the master-slave state of the control station has switched, or the network connection with the control station fails, it takes active measures to re-establish the network connection with the control station whose status mark is normal and serves as the host, and autonomously switches to the new control station host without performing a reconnection operation on the client. This can ensure that the communication between the communication client and the control station variables will not be disturbed by the master-slave state conversion of the control station or the change of the network status, thereby improving the stability and reliability of the DCS system automation test.

[0090] In an exemplary embodiment, the periodic variable reading table includes variable information and a read time mark of the variable information;

[0091] The step of reading the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updating the read variable value to the periodic variable reading data area of ​​the control station includes:

[0092] Based on the read time mark of the variable information in the periodic read variable table of the control station, determine whether there is a read operation for the variable information within the first time threshold before the current moment; if there is no read operation, delete the variable information from the periodic read variable table and the periodic read variable data area of ​​the control station; if there is a read operation, read the variable value from the control station based on the variable information, update the variable value to the periodic read variable data area of ​​the control station, and update the read time mark of the variable information in the periodic read variable table of the control station.

[0093] In this embodiment, the communication service end maintains a periodic read variable table for each control station in each reading cycle, and removes the variable information that has not been read within the first time threshold before the current moment, so that the variable information with low reading frequency can be deleted, thereby saving data storage space. If the variable needs to be read again, it is only necessary to add the variable information of the variable to the periodic read variable table of the corresponding control station according to the read request of the communication client. The communication service end periodically refreshes the variable value read from the control station according to the periodic read variable table of the control station and stores it in the periodic read variable data area of ​​the control station, so that when the client requests, the latest variable value in the periodic read variable data area is updated to the variable value table and returned to the communication client.

[0094] like Figure 3 As shown, the specific steps of maintaining the periodic read variable table and the periodic read variable data area in each reading cycle for each control station may include:

[0095] Step S305.1: Delete the variable information with read timeout from the control station periodic read variable table and periodic read variable data area according to the read time mark of the variable information.

[0096] Step S305.2: Send all variable information in the periodic variable reading table to the control station.

[0097] Step S305.3: Receive the variable value corresponding to the variable information in the periodic read variable table returned by the control station, and update the read time mark of the variable information.

[0098] Step S305.4: Fill the read variable value into the periodic read variable data area of ​​the control station.

[0099] Another embodiment of the present application provides a communication server, which is applied to a data communication system of a DCS system of a nuclear power plant, such as Figure 4 As shown, it includes a memory 400, a processor 401 and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the data communication method of the nuclear power plant DCS system as described above is implemented.

[0100] Another embodiment of the present application provides a data communication system of a nuclear power plant DCS system, including:

[0101] The communication server as described above, and the communication client;

[0102] The communication client is used to receive a read request from a test terminal, generate a read variable table according to the read request, and send the read variable table to the communication server; and return the variable value table received from the communication server to the test terminal.

[0103] In this embodiment, the program execution process of the communication client is as follows: Figure 5 As shown, the specific steps may include:

[0104] Step S501: Receive a read request from a test terminal.

[0105] Step S502: perform interface parameter check on the read request.

[0106] Step S503: Calculate and apply for a buffer area.

[0107] Step S504: Generate a read variable table according to the read request.

[0108] Step S505: Send the read variable table to the communication server.

[0109] Step S506: If the read request is successfully processed, the variable value table received from the communication service end is returned to the test terminal.

[0110] Step S507: If the read request processing fails, an error code is returned to the test terminal.

[0111] In an exemplary embodiment, returning the variable value table received from the communication service end to the test terminal includes:

[0112] The communication client performs variable value conversion on the variable value table and returns the conversion result to the test terminal; wherein the variable value conversion includes data type conversion and / or data value conversion.

[0113] In this embodiment, the external interface of the communication client usually adopts COM technology, while the program of the control station is an embedded program. The software implementation methods of the two are different, and the data types cannot be directly mapped one by one. Therefore, it is necessary to perform data type conversion and / or data value conversion on the variable value table returned by the communication server before sending it to the test terminal. This application does not limit the specific conversion method of the variable value.

[0114] In an exemplary embodiment, the communication client is deployed on the same computer as the test terminal;

[0115] The communication service end is deployed on one or more computers at the following locations: an engineer station of the DCS system, an independent computer, or the same computer as the test terminal.

[0116] In an exemplary embodiment, the structure of the system is as follows Figure 6 As shown, one or more automated test terminals can communicate with the communication server through the network. The communication server communicates with the engineer station through the system network (redundancy) of the DCS system, and the engineer station communicates with the I / O server through the management network (redundancy) of the DCS system, and communicates with one or more control stations (control station 1...control station n) through the system network (redundancy).

[0117] In this embodiment, the communication client can be deployed on the automated test terminal, and the communication server can be deployed on the engineer station of the DCS system, or on an independent computer, or installed on a certain automated test terminal. Among them, the server requires the network to be connected to a layer of control network of the DCS system. Both the communication client and the communication server can be flexibly deployed in one or more groups without changing the DCS system architecture of the nuclear power plant. The communication client can exchange data with the communication server through a private protocol.

[0118] The solution provided in this embodiment supports the synchronous operation of multiple automated test terminals and provides a flexible deployment method for the communication server and the communication client, thus well meeting the requirements of automated testing of the DCS system of a nuclear power plant.

[0119] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A data communication method for a DCS system of a nuclear power plant, wherein the DCS system of the nuclear power plant includes a plurality of control stations; characterized in that: include: The communication service end receives the read variable table sent by the communication client, queries the variable data information point table of the control station corresponding to the variable according to the variables included in the read variable table, and obtains the variable information of the variable; inserts the variable information into the periodic read variable table of the control station corresponding to the variable; wherein the variable is a global variable or a local variable; the variable data information point table includes the variable information of all global variables and local variables in the corresponding control station; the read variable table is generated by the communication client according to the read request of the test terminal; The communication service end periodically performs the following operations for each control station: reading the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updating the read variable value to the periodic variable reading data area of ​​the control station; and filling the variable value table with the variable value of the periodic variable reading data area of ​​the control station according to the reading variable table; The communication server returns the variable value table to the communication client to provide it to the test terminal.

2. The data communication method of the nuclear power plant DCS system according to claim 1, characterized in that: The variable information includes one or more of variable position, variable region, variable length, and variable type; Before querying the variable data information point table of the control station corresponding to the variable according to the variable included in the read variable table, the method further includes: When the communication service end is started, the engineering symbol table of each control station is obtained from the DCS engineer station; The communication service end performs the following operations on the engineering symbol table of each control station: The engineering symbol table is decrypted, and variable information of all global variables and local variables in the control station in the DCS system is queried according to the decrypted engineering symbol table, and a variable data information point table of the control station is constructed according to the variable information obtained by the query.

3. The data communication method of the DCS system of a nuclear power plant according to claim 2, characterized in that: After the communication service end is started, before the engineering symbol table of each control station is obtained from the DCS engineer station, the method further includes: The communication service end performs network status diagnosis for each control station and sets a status flag of the control station according to the network status diagnosis result; and establishes a network connection with the control station whose status flag is normal and serves as a host.

4. The data communication method of the nuclear power plant DCS system according to claim 3, characterized in that: The communication service end establishes a network connection with a control station with a normal status mark and serving as a host, including: Determine the master-slave status of the control station; if the control station is a slave, close the network connection with the control station and reconnect to the next control station; if the control station is a host, insert a life cycle signal into the periodic read variable table of the control station; the life cycle signal is used by the communication server to monitor the operating status of the control station as the host, as well as the connection status between the communication server and the control station as the host.

5. The data communication method of the DCS system of a nuclear power plant according to claim 4, characterized in that: Also includes: If the communication server detects that the master-slave status of the control station has switched, it closes the current network connection with the control station and re-establishes a network connection with the control station whose status mark is normal and serves as the master; or, If the communication service end detects that a network failure has occurred, after the network failure is restored, the communication service end re-establishes a network connection with the control station whose status mark is normal and which serves as the host.

6. The data communication method of a nuclear power plant DCS system according to any one of claims 1 to 5, characterized in that: The periodic variable reading table includes variable information and a read time mark of the variable information; The step of reading the variable value of the corresponding variable in the control station according to each variable information in the periodic variable reading table of the control station, and updating the read variable value to the periodic variable reading data area of ​​the control station includes: Based on the read time mark of the variable information in the periodic read variable table of the control station, determine whether there is a read operation for the variable information within the first time threshold before the current moment; if there is no read operation, delete the variable information from the periodic read variable table and the periodic read variable data area of ​​the control station; if there is a read operation, read the variable value from the control station based on the variable information, update the variable value to the periodic read variable data area of ​​the control station, and update the read time mark of the variable information in the periodic read variable table of the control station.

7. A communication server, applied to a data communication system of a DCS system of a nuclear power plant, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the data communication method of the nuclear power plant DCS system according to any one of claims 1 to 6 is implemented.

8. A data communication system for a DCS system of a nuclear power plant, characterized in that: include: The communication server and the communication client as claimed in claim 7; The communication client is used to receive a read request from a test terminal, generate a read variable table according to the read request, and send it to the communication server; and return the variable value table received from the communication server to the test terminal.

9. The data communication system of the DCS system of a nuclear power plant according to claim 8, characterized in that: The step of returning the variable value table received from the communication service end to the test terminal comprises: The communication client performs variable value conversion on the variable value table and returns the conversion result to the test terminal; wherein the variable value conversion includes data type conversion and / or data value conversion.

10. The data communication system of the DCS system of a nuclear power plant according to claim 8 or 9, characterized in that: The communication client is deployed on the same computer as the test terminal; The communication service end is deployed on one or more computers at the following locations: an engineer station of the DCS system, an independent computer, or the same computer as the test terminal.

Citation Information

Patent Citations

  • OPC-based interface method for realizing system communication of two different types of protocols

    CN105530220A

  • Automatic generation method for nuclear power station DCS unvarnished transmission network variable logical relationship

    CN113987725A

  • Maintenance method and system for safety-level DCS of nuclear power plant, and storage medium

    CN115167317A

  • Automatic setting method, device and equipment based on mandatory data of DCS (Distributed Control System)

    CN115202299A

  • Simulation method and system for signal preprocessing system of nuclear safety level instrument control system

    CN117518877A