Method and device for electing main control station

By obtaining the identity information of other control stations within the preset time period in the DCS system of the nuclear power plant and comparing it, efficiently determining the unique main control station, solving the problem of complex election process of the main control station in the traditional method, and improving the stability and synchronization of the system.

CN119993589APending Publication Date: 2025-05-13CHINA TECHENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510102173.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

How to efficiently determine the unique master control station from multiple control stations of the DCS system of a nuclear power plant to ensure synchronization of system information and processing levels.

Method used

Each target control station obtains the identity information in the election report broadcast by other control stations within a preset time period, and determines whether it is the main control station based on the size relationship between its own identity information and the multiple acquired identity information.

Benefits of technology

Through the comparison of identity information, an efficient and accurate selection of a control station is avoided as the main control station, which avoids the complex comparison of priority and declaration time in the traditional method and improves the stability and synchronization of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119993589A_ABST
    Figure CN119993589A_ABST
Patent Text Reader

Abstract

The invention discloses a main control station election method and device, and relates to the technical field of nuclear power plant digital instrument control systems. Comprising the following steps: each target control station obtains identity information in election messages broadcasted by other target control stations in a preset time period; and determining whether the target control station is used as a main control station or not based on the identity information of the target control station and the size relationship of multiple pieces of identity information acquired in a preset time period. Since each target control station performs the above operations, one of the plurality of target control stations can be effectively and accurately selected as the main control station. In the invention, each target control station has unique identity information, and the identity information can be compared in size, so that the unique main control station can be efficiently determined only through comparison among the identity information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of digital instrumentation and control systems for nuclear power plants, and in particular to a method and device for selecting a master control station. Background Art

[0002] The Digital Control System (DCS) of a nuclear power plant is an advanced control technology that introduces modern technologies such as computers and network communications into the instrumentation and control systems of nuclear power plants, thereby achieving centralized monitoring and automated control of various systems and equipment in nuclear power plants.

[0003] The DCS system of a nuclear power plant usually contains multiple control stations, each of which is called a node. When performing key system tasks such as unified time calibration and unified external communication, the DCS system needs to elect one of these control stations as the master control station, and the master control station is responsible for performing unified control tasks to ensure the synchronization of all control stations at the information and processing levels.

[0004] How to efficiently determine the only master control station from multiple control stations in the DCS system of a nuclear power plant has become one of the technical problems that need to be urgently solved in the field of digital instrumentation and control systems for nuclear power plants. Summary of the invention

[0005] Based on the above problems, the present application provides a method for selecting a master control station, which is used to efficiently determine a unique master control station from multiple control stations of a DCS system of a nuclear power plant.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In a first aspect, the present application discloses a method for electing a master control station, the method comprising:

[0008] Each target control station obtains identity information in an election message broadcasted externally by other target control stations within a preset time period; the target control station is a control station with election qualification for a master control station in a digital instrumentation and control system of a nuclear power plant; the identity information corresponds to the control station one by one;

[0009] Each of the target control stations determines whether the target control station serves as a master control station based on the size relationship between the identity information of the target control station itself and the plurality of identity information acquired within the preset time period.

[0010] In an optional implementation, each of the target control stations determines whether the target control station serves as the master control station based on the size relationship between the identity information of the target control station and the plurality of identity information acquired within the preset time period, including:

[0011] If the identity information of the target control station itself meets the preset screening conditions when compared with the multiple identity information, the target control station is determined as the master control station; the preset screening conditions include: among the multiple identity information to be compared, the identity information of the target control station itself is the largest, the identity information of the target control station itself is the smallest, or the absolute value of the difference between the identity information of the target control station itself and the preset target identity information is the smallest.

[0012] In an optional implementation, each control station in the digital instrumentation and control system of the nuclear power plant broadcasts messages externally through at least two networks.

[0013] In an optional implementation, the step of determining the target control station includes:

[0014] The control station determines whether it is configured to participate in the election of the master control station;

[0015] If the control station is set to participate in the configuration state of the master control station election, determine whether the network state and operation state of the control station are normal;

[0016] If the network status and the operation status of the control station are both normal, it is determined that the control station is the target control station.

[0017] In an optional implementation, when the digital instrumentation and control system of the nuclear power plant performs the time calibration task, after determining that the network status and the operation status of the control station are normal, it also includes:

[0018] Determine whether the communication status of the control station is normal;

[0019] If the communication status of the control station is normal, it is determined that the control station is the target control station.

[0020] In an optional implementation manner, the potential target control station is any one of the target control stations. If the potential target control station serves as the master control station, the method further includes:

[0021] The potential target control station obtains identity information in election messages broadcast externally by other target control stations within the preset time period;

[0022] The potential target control station determines whether the potential target control station continues to serve as the master control station based on the size relationship between the potential target control station's own identity information and the plurality of identity information acquired within the preset time period.

[0023] In an optional implementation, the election message has the highest priority among the multiple messages broadcast externally by the control station; the multiple messages include but are not limited to status update messages and control instruction messages.

[0024] In an optional implementation, the election message includes a cyclic redundancy check code.

[0025] In an optional implementation, the method further includes:

[0026] If any control station in the digital instrumentation and control system of the nuclear power plant is set to a configuration state of a forced master control station, the control station is determined as the master control station.

[0027] The second aspect of the present application discloses a master control station election device, the device comprising:

[0028] The identity information acquisition device is used for each target control station to acquire the identity information in the election message broadcasted externally by other target control stations within a preset time period; the target control station is a control station with the election qualification of the master control station in the digital instrumentation and control system of the nuclear power plant; the identity information corresponds to the control station one by one;

[0029] The master control station determining device is used for each of the target control stations to determine whether the target control station is the master control station based on the size relationship between the identity information of the target control station itself and the multiple identity information acquired within the preset time period.

[0030] A third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method introduced in any implementation manner of the first aspect.

[0031] A fourth aspect of the present application provides an electronic device, including:

[0032] a memory having a computer program stored thereon;

[0033] A processor is used to execute the computer program in the memory to implement the steps of the method introduced in any implementation manner of the first aspect.

[0034] Compared with the prior art, this application has the following beneficial effects:

[0035] The present application discloses a method for electing a master control station, including: each target control station obtains identity information in an election message broadcasted by other target control stations within a preset time period; and determines whether the target control station is the master control station based on the size relationship between the target control station's own identity information and multiple identity information obtained within the preset time period. Since each target control station performs the above operation, one of the multiple target control stations can be effectively and accurately selected as the master control station. In the present application, each target control station has unique identity information, and the identity information can be compared in size, so the unique master control station can be efficiently determined only by comparing the identity information. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 A schematic diagram of a control station network architecture provided in an embodiment of the present application;

[0038] Figure 2 A flowchart of a method for electing a master control station provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a system failure structure provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of an election device for a master control station provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The Digital Control System (DCS) of a nuclear power plant is an advanced control technology that introduces modern technologies such as computers and network communications into the instrumentation and control systems of nuclear power plants, thereby achieving centralized monitoring and automated control of various systems and equipment in nuclear power plants.

[0042] The DCS system of a nuclear power plant usually contains multiple control stations, each of which is called a node. When performing key system tasks such as unified time calibration and unified external communication, the DCS system needs to elect one of these control stations as the master control station, and the master control station is responsible for performing unified control tasks to ensure the synchronization of all control stations at the information and processing levels.

[0043] In the traditional scheme, the master control station of the digital instrumentation and control system of a nuclear power plant is determined by the priority set for each control station and the time when the control station issues the master control station declaration. For example, in the election process of the master control station, the priority set for each control station is given priority, and the control station with the highest priority is selected as the master control station; in the case of the same priority, the control station that first issues the master control station declaration is selected as the master control station. The traditional scheme requires comparison of multiple conditions such as priority and the time when the declaration is issued to determine the master control station, and the process is relatively cumbersome; at the same time, there is a situation where the only master control station cannot be determined when the priority is the same and the time when the master control station declaration is issued is the same; this will lead to a large number of problems such as communication conflicts and command execution confusion within the digital instrumentation and control system of the nuclear power plant.

[0044] Therefore, how to efficiently determine the only master control station from multiple control stations of the DCS system of a nuclear power plant has become one of the technical problems that need to be urgently solved in the field of digital instrumentation and control systems of nuclear power plants.

[0045] The present application discloses a method for electing a master control station, including: each target control station obtains identity information in an election message broadcasted by other target control stations within a preset time period; and determines whether the target control station is the master control station based on the size relationship between the target control station's own identity information and multiple identity information obtained within the preset time period. Since each target control station performs the above operation, one of the multiple target control stations can be effectively and accurately selected as the master control station. In the present application, each target control station has unique identity information, and the identity information can be compared in size, so the unique master control station can be efficiently determined only by comparing the identity information.

[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] The digital instrumentation and control system for a nuclear power plant mentioned in the present application includes a plurality of control stations and an engineer station. In the present application, the configuration state of each control station can be set through the engineer station. Specifically, the control station can be set through the engineer station to a configuration state of participating in the election of the master control station, a configuration state of forcing the master control station, or a configuration state of not participating in the election of the master control station.

[0048] When a control station is set to be a mandatory master control station, the control station does not participate in the election between master control stations and is forced to be the master control station (usually applicable to application scenarios with only one control station).

[0049] When a control station is set to participate in the configuration state of the master control station election, if the network status and operation status of the control station are both in normal state, or the network status, operation status and communication status of the control station are all in normal working state, then the control station can participate in the election between the master control stations.

[0050] When a control station is set to a configuration state not to participate in the election of the master control station, it is directly determined that the control station does not participate in the election of the master control station; the control station is only in a listening state in the network and only accepts and uses data messages (referred to as messages) from the master control station.

[0051] It is understandable that if each control station in the digital instrumentation and control system of a nuclear power plant elects a master control station by default, the configuration work at the engineer station can be omitted.

[0052] The digital instrumentation and control system for a nuclear power plant in the present application includes multiple control stations that can broadcast messages externally through a single network or through at least two networks. The advantage of broadcasting messages externally through at least two networks is that when one of the networks is in a fault state, the message can also be broadcast externally through another network, which can improve the stability of the digital instrumentation and control system for a nuclear power plant.

[0053] Figure 1 A schematic diagram of a control station network architecture provided in an embodiment of the present application. Figure 1 As shown, the digital instrumentation and control system of a nuclear power plant in the present application includes multiple control stations which broadcast messages to the outside through two networks. Figure 1 Network 1 is the first network (also called the first network port), and network 2 is the second network (also called the second network port). Each control station has two networks, which are redundant. If one of the networks has a problem, the message can be broadcasted externally through the other network.

[0054] It should be noted that each control station in the digital instrumentation and control system of a nuclear power plant in this application has unique identity information. The identity information consists of numbers and / or strings. For example, the identity information can be a digital code consisting of numbers; the identity information can be a string consisting of characters; the identity information can also be composed of numbers and characters. In this application, the digital code is used as the identity information of the control station.

[0055] It is understandable that digital codes can be compared in size; character strings can be converted into numbers through related operations, such as hash operations, and compared in size; identity information composed of numbers and characters can also be compared in size. That is, the identity information in this application can be compared in size.

[0056] It should be noted that Figure 1 A schematic diagram of a control station network architecture is schematically given in FIG. A person skilled in the art may adopt other network architectures, such as a ring network, as the network architecture of the control station in this application. Figure 1 In the network architecture of the control station shown in , each control station may correspond to more than two networks, that is, one control station may correspond to three or even more network interfaces.

[0057] It is understandable that a controller is installed in each control station. The work tasks performed by the control station are actually the work tasks performed by the controller in the control station. The method for electing the master control station in this application is actually the method for electing the master controller, that is, the controller of the selected master control station is essentially used as the master controller among multiple controllers. The elected master controller is responsible for executing unified control tasks to ensure the synchronization of all controllers at the information and processing levels.

[0058] Figure 2 A flowchart of a method for electing a master control station provided in an embodiment of the present application. Figure 2 As shown, the method for selecting a master control station disclosed in this application includes:

[0059] S201, each target control station obtains identity information in an election message broadcasted externally by other target control stations within a preset time period.

[0060] The subject of the election method of the master control station disclosed in this application is the target control station in the digital instrumentation and control system of the nuclear power plant. The target control station in this application is a control station in the digital instrumentation and control system of the nuclear power plant that has the election qualification of the master control station. Each control station in this application has unique identity information, that is, the identity information corresponds to the control station one by one.

[0061] In an optional implementation, whether the control station is the target control station may be determined in the following manner:

[0062] In the first step, the control station determines whether it is configured to participate in the election of the master control station.

[0063] In the second step, if the control station determines that it is configured to participate in the election of the master control station, it continues to determine whether its own network status and operation status are normal.

[0064] Among them, the network status is normal. Figure 1 Either network 1 or network 2 can be used normally; if both networks have faults, it is determined that the network status is abnormal.

[0065] The normal operation status refers to that the software status of the controller in the control station is normal, the hardware indicators in the control station are normal, etc.

[0066] In the third step, if the network status and the operation status of the control station are both normal, the control station is determined to be the target control station; if one of the network status or the operation status of the control station is in an abnormal state, the control station is determined not to be the target control station.

[0067] In an optional implementation, when the digital instrumentation and control system of a nuclear power plant performs a time calibration task, after determining that the network status and operation status of the control station are normal, it can further determine whether the communication status of the control station is normal.

[0068] When executing the time calibration task, if the network status, operation status and communication status of the control station are normal, the control station is determined to be the target control station; if the network status and operation status of the control station are normal, but the communication status is abnormal, the control station is determined to be a non-target control station.

[0069] Among them, the normal communication status means that the controller can communicate normally with the time calibration module in the digital instrumentation and control system of the nuclear power plant; if it cannot communicate normally with the time calibration module, it is considered that the communication status is abnormal.

[0070] It should be noted that the subject of executing the method for determining the target control station disclosed in this application is the control station. Corresponding software, such as controller software, can be installed in the control station to implement the method for determining the target control station disclosed in this application.

[0071] The operating system installed in each control station in this application is a hard real-time operating system. A hard real-time operating system is an operating system that can ensure that tasks are completed within an absolute time window, and any operation that exceeds the specified time limit may cause system failure.

[0072] It should be noted that if the control station in the digital instrumentation and control system of a nuclear power plant is the target control station, the control station can execute the master control station election method disclosed in this application; if the control station in the digital instrumentation and control system of a nuclear power plant is not the target control station, the control station does not send data messages to the outside, only accepts and uses data from the master station, and continuously monitors whether it is eligible for the election of the master control station. Once the control station is set to the configuration state for participating in the election of the master control station and the relevant states return to normal (network state, operation state and communication state), the controller marks itself as eligible for the election of the master control station.

[0073] It is understandable that each control station in the digital instrumentation and control system of a nuclear power plant will send multiple types of data messages to the outside, including but not limited to status update messages and control command messages. In order to ensure that the master control station can be elected in a timely manner, the priority of the election message among the multiple messages broadcast by the control station to the outside is set to the highest priority in this application.

[0074] After multiple target control stations in the digital instrumentation and control system of a nuclear power plant are determined by the above method, each target control station periodically broadcasts an election message to the outside through at least two networks. The period of broadcasting the election message to the outside can be set in advance. Those skilled in the art can use 50ms as the default period.

[0075] In the present application, one of TCP (Transmission Control Protocol) communication, link layer communication or UDP (User Datagram Protocol) can be used as the communication method. In the present application, the specific form of the election message broadcasted by the target control station to the outside is not limited. In the present application, the election message broadcasted by the target control station to the outside can be a UDP message, a TCP message, etc.

[0076] For example, the election message broadcasted by the target control station is a UDP message, which may include the following information: the identity information of the control station, the master control station identifier, the master control station identity information, time information and sequence number, etc. In this application, a cyclic redundancy check (CRC verification) is added to the UDP message, thereby increasing the security of the election protocol.

[0077] Each target control station obtains the identity information in the election message broadcasted externally by other target control stations within a preset time period, which means that each target control station receives the election message broadcasted externally by other target control stations within a preset time period, and parses the received election message to obtain the identity information in each election message.

[0078] S202: Each of the target control stations determines whether to serve as a master control station based on the size relationship between the identity information of the target control station and the plurality of identity information acquired within the preset time period.

[0079] Each target control station compares its own identity information with multiple identity information acquired within a preset time period, and if it is determined that the identity information of the target control station meets the preset screening condition, the target control station is determined as the main control station.

[0080] The preset screening conditions include: among the multiple identity information to be compared, the identity information of the target control station itself is the largest, the identity information of the target control station itself is the smallest, or the absolute value of the difference between the identity information of the target control station itself and the preset target identity information is the smallest. That is, the control station with the largest identity information can be used as the main control station; the control station with the smallest identity information can be used as the main control station; the control station corresponding to the identity information with the smallest absolute value of the difference with the preset target identity information can be used as the main control station.

[0081] In an illustrative manner, the preset screening condition in the present application is determined as: among the multiple identity information to be compared, the identity information of the target control station itself is the largest, that is, the control station with the largest identity information is used as the main control station in the present application.

[0082] For example, the preset time period is five communication cycles. If target control station A only receives its own message or fails to receive the election message broadcasted by other target control stations within five communication cycles, target control station A sets itself as a slave control station; if target control station A obtains the identity information in the election message broadcasted by other target control stations within five communication cycles, and determines that the identity information of target control station A itself is the largest (or the smallest, or the absolute value of the difference with the preset target identity information is the smallest), target control station A is set as the master control station and all control stations are notified.

[0083] After the target control station A is determined as the main control station, the target control station A will obtain the identity information in the election message broadcasted by other target control stations within a preset time period; and determine whether the potential target control station continues to serve as the main control station based on the size relationship between the target control station A's own identity information and the multiple identity information obtained within the preset time period.

[0084] For example, when the target control station with the largest identity information is preset as the master control station, after becoming the master control station, the target control station A will continue to obtain the identity information in the election messages broadcast externally by other target control stations, that is, other control stations that have newly become target control stations; and compare the obtained identity information with its own identity information. Once it is found that its own identity information is not the largest identity information, it will immediately release the qualification of the master control station and set itself as a slave control station.

[0085] The present application discloses a method for electing a master control station, including: each target control station obtains identity information in an election message broadcasted by other target control stations within a preset time period; and determines whether the target control station is the master control station based on the size relationship between the target control station's own identity information and multiple identity information obtained within the preset time period. Since each target control station performs the above operation, one of the multiple target control stations can be effectively and accurately selected as the master control station. In the present application, each target control station has unique identity information, and the identity information can be compared in size, so the unique master control station can be efficiently determined only by comparing the identity information.

[0086] It can be understood that if the control station network architecture using the master control station election method in this application is Figure 1 In the network architecture, when a single fault or a cross fault occurs in the network of the control station, the redundant dual network design can ensure that each control station can still broadcast messages to the outside through the network without faults, ensuring that the election of the main control station is not affected when a single fault or a cross fault occurs in the network, thereby improving the system's security and stability under complex fault conditions.

[0087] Figure 3 A schematic diagram of a system failure structure provided in an embodiment of the present application. Figure 3 As shown, Figure 3 There are only three control stations in the system, control station A is the master control station (referred to as the master station), and control station B and control station C are both slave control stations (referred to as slave stations).

[0088] If a network of one of the control stations A, B or C fails, for example, network 1 of control station A fails, and each network of control station B and control station C is in normal state, determine Figure 3 The network in is experiencing a single network failure.

[0089] if Figure 3 At least one network of two of the three control stations has a fault. For example, if network 1 of control station A fails, network 2 of control station B fails, and network 1 of control station C fails, then determine Figure 3The network in is experiencing a cross-network failure.

[0090] By adopting the master control station election method disclosed in the present application, when a single network failure or a cross network failure occurs in the network system, the master control station election can still be effectively performed, which greatly enhances the stability of the system.

[0091] It can be understood that the master control station election method disclosed in this application can realize flexible configuration of the configuration status of each control station in the digital instrumentation and control system of a nuclear power plant, is suitable for a variety of application scenarios, and improves the application flexibility of the master control station election method.

[0092] Based on the master control station election method disclosed in the aforementioned embodiment, the present application also discloses a master control station election device. Figure 4 A schematic diagram of the structure of a master control station election device provided in an embodiment of the present application. Figure 4 As shown, the election device 400 of the master control station disclosed in the present application includes:

[0093] The identity information acquisition device 401 is used for each target control station to acquire the identity information in the election message broadcasted by other target control stations within a preset time period; the target control station is a control station with the election qualification of the master control station in the digital instrumentation and control system of the nuclear power plant; the identity information corresponds to the control station one by one;

[0094] The master control station determining means 402 is used for each of the target control stations to determine whether the target control station is to be the master control station based on the size relationship between the identity information of the target control station itself and the plurality of identity information acquired within the preset time period.

[0095] In an optional implementation, the master control station determining device 402 disclosed in the present application includes:

[0096] A master control station determination unit is used to determine the target control station as the master control station if the identity information of the target control station itself meets a preset screening condition when compared with the multiple identity information; the preset screening condition includes: among the multiple identity information to be compared, the identity information of the target control station itself is the largest, the identity information of the target control station itself is the smallest, or the absolute value of the difference between the identity information of the target control station itself and the preset target identity information is the smallest.

[0097] In an optional implementation, the election device 400 of the master control station further includes:

[0098] A first state determination module, used for the control station to determine whether the control station itself is set to participate in the configuration state of the master control station election;

[0099] A second state determination module is used to determine whether the network state and operation state of the control station are normal if the control station is set to participate in the configuration state of the master control station election;

[0100] The third status determination module is used to determine that the control station is the target control station if the network status and the operation status of the control station are both normal.

[0101] In an optional implementation, the election device 400 of the master control station further includes:

[0102] A fourth state determination module, used to determine whether the communication state of the control station is normal;

[0103] The target control station determination module is used to determine that the control station is the target control station if the communication status of the control station is normal.

[0104] In an optional implementation, the election device 400 of the master control station further includes:

[0105] An identity information continuous acquisition module, used by the potential target control station to acquire identity information in election messages broadcast externally by other target control stations within the preset time period;

[0106] The main control station continuity judgment module is used for the potential target control station to determine whether the potential target control station continues to serve as the main control station based on the size relationship between the potential target control station's own identity information and multiple identity information acquired within the preset time period.

[0107] In an optional implementation, the election device 400 of the master control station further includes:

[0108] The forced master control station determination module is used to determine any control station in the digital instrumentation and control system of the nuclear power plant as the master control station if the control station is set to the configuration state of the forced master control station.

[0109] Based on the master control station election method and device provided in the aforementioned embodiments, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements some or all of the steps in the master control station election method mentioned above.

[0110] Based on the method and device for selecting a master control station provided in the above-mentioned embodiment, the present application further provides an electronic device, including:

[0111] a memory having a computer program stored thereon;

[0112] The processor is used to execute the computer program in the memory to implement part or all of the steps in the method for selecting a master control station provided in the above embodiment.

[0113] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be covered by the protection scope of the present application.

Claims

1. A method for electing a master control station, characterized in that: The method comprises: Each target control station obtains identity information in an election message broadcasted externally by other target control stations within a preset time period; the target control station is a control station with election qualification for a master control station in a digital instrumentation and control system of a nuclear power plant; the identity information corresponds to the control station one by one; the identity information consists of numbers and / or character strings; Each of the target control stations determines whether the target control station serves as a master control station based on the size relationship between the identity information of the target control station itself and the plurality of identity information acquired within the preset time period.

2. The method according to claim 1, characterized in that Each of the target control stations determines whether the target control station is used as a master control station based on the size relationship between the identity information of the target control station and the plurality of identity information acquired within the preset time period, including: If the identity information of the target control station itself meets the preset screening conditions when compared with the multiple identity information, the target control station is determined as the master control station; the preset screening conditions include: among the multiple identity information to be compared, the identity information of the target control station itself is the largest, the identity information of the target control station itself is the smallest, or the absolute value of the difference between the identity information of the target control station itself and the preset target identity information is the smallest.

3. The method according to claim 1, characterized in that: Each control station in the digital instrumentation and control system of the nuclear power plant broadcasts messages externally through at least two networks.

4. The method according to claim 1, characterized in that The step of determining the target control station includes: The control station determines whether it is configured to participate in the election of the master control station; If the control station is set to the configuration state of participating in the master control station election, determine whether the network state and operation state of the control station are normal; If the network status and the operation status of the control station are both normal, it is determined that the control station is the target control station.

5. The method according to claim 4, characterized in that When the digital instrumentation and control system of the nuclear power plant performs the time calibration task, after determining that the network status and the operation status of the control station are normal, it also includes: Determine whether the communication status of the control station is normal; If the communication status of the control station is normal, it is determined that the control station is the target control station.

6. The method according to any one of claims 1 to 5, characterized in that The potential target control station is any one of the target control stations. After the potential target control station serves as the main control station, the method further includes: The potential target control station obtains identity information in election messages broadcast externally by other target control stations within the preset time period; The potential target control station determines whether to continue to serve as the main control station based on its own identity information and the size relationship between the multiple identity information acquired within the preset time period.

7. The method according to any one of claims 1 to 5, characterized in that The election message has the highest priority among the various messages broadcast externally by the control station; the various messages include but are not limited to status update messages and control instruction messages.

8. The method according to any one of claims 1 to 5, characterized in that The election message includes a cyclic redundancy check code.

9. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If any control station in the digital instrumentation and control system of the nuclear power plant is set to a configuration state of a forced master control station, the control station is determined as the master control station.

10. A master control station election device, characterized in that: The device comprises: The identity information acquisition device is used for each target control station to acquire the identity information in the election message broadcasted externally by other target control stations within a preset time period; the target control station is a control station with the election qualification of the master control station in the digital instrumentation and control system of the nuclear power plant; the identity information corresponds to the control station one by one; The master control station determining device is used for each of the target control stations to determine whether the target control station is the master control station based on the size relationship between the identity information of the target control station itself and the multiple identity information acquired within the preset time period.