Double-control-cabinet data acquisition method, device, equipment, medium and product
Through the design of the redundant system of the dual control cabinet, the problem of data acquisition invalid caused by the failure of a single control cabinet in a nuclear power plant is solved, the reliability and safety of data transmission are achieved, and the strict requirements of the nuclear power plant for data acquisition are met.
Patent Information
- Application Number
- CN202411209127.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-10
AI Technical Summary
In the safety-level control system of a nuclear power plant, a single-row control cabinet failure results in invalid data collection, which cannot guarantee the reliability and safety integrity of data communication.
Using a dual control cabinet redundant system, multiple measurement signals are obtained, quality codes are calculated, and in the event of a failure are connected to the first non-security control cabinet and the second non-security control cabinet. Switch the control cabinet to ensure the reliability and security of data transmission.
The high reliability and safety integrity of the dual control cabinet data acquisition system is achieved, the data invalidity caused by the failure of a single control cabinet is avoided, and the strict requirements of nuclear power plants for data acquisition are met.
Smart Images

Figure CN119299477A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data acquisition, and in particular to a dual control cabinet data acquisition method, device, equipment, medium and product. Background Art
[0002] In the distributed control system of a nuclear power plant, the safety-level control system is responsible for protecting the safety control of the nuclear power plant and has high reliability requirements. In order to achieve centralized data monitoring, the data of the safety-level control system is transmitted to the non-safety-level control cabinet through the gateway communication card, and the non-safety-level control cabinet then sends the data to the non-safety-level monitoring layer for data processing and human-machine interface display.
[0003] For control systems with low reliability requirements, the input communication data is only connected to a single-row control cabinet. When the control cabinet itself fails, such as power failure in the control cabinet, fire in the deployment room, etc., these will cause the main and standby controllers in the control cabinet to be offline and unable to send data normally. If a double-row control cabinet is set up, the main control cabinet sends the collected data, and the standby controller does not send the collected data. When the main and standby control cabinets each have some different data point collection channel failures, no matter which control cabinet is selected to send it alone, it cannot guarantee that all the collected signals are valid. The data communication between the safety-level system and the non-safety-level system of a nuclear power plant has extremely high reliability requirements, and it is urgent to avoid the problem of invalid collected data due to the failure of a single-row control cabinet.
[0004] The quality code identifies the quality of the collected data and provides operators with a basis for whether the collected data is credible and valid. When the collection link is normal, the quality code of the collected data is good; when a fault occurs in the collection link, such as a communication card failure, a collection channel failure, the collected data is out of range, or the controller is offline, the quality code of the collected data will be marked as bad.
[0005] How to improve the reliability and safety integrity level of data communication between the two systems and avoid invalidation of collected field data due to failure of a single-row control cabinet is an issue that needs to be addressed urgently. Summary of the invention
[0006] The purpose of this application is to provide a dual control cabinet data acquisition method, device, equipment, medium and product, which can improve the reliability and safety integrity of data acquisition.
[0007] To achieve the above objectives, this application provides the following solutions:
[0008] In a first aspect, the present application provides a dual control cabinet data acquisition method, which is implemented by a dual control cabinet redundant system; the dual control cabinet redundant system includes: a target device, a control cabinet and a communication server; the communication server includes: a host communication server and a standby communication server; the control cabinet includes: a first non-safety-class control cabinet and a second non-safety-class control cabinet;
[0009] The target device is connected to the first non-safety control cabinet and the second non-safety control cabinet respectively; the first non-safety control cabinet is connected to the host communication server and the standby communication server respectively; the second non-safety control cabinet is connected to the host communication server and the standby communication server respectively;
[0010] The dual control cabinet data acquisition method comprises:
[0011] Acquire multiple measurement signals of the current round; the measurement signals include three attributes: value, timestamp and quality code; the multiple measurement signals are sequence signals composed of multiple acquisition signals according to timestamps; the acquisition signals are acquired by the control cabinet through acquisition of the target device; the multiple measurement signals include: multiple measurement signals of the first non-safety control cabinet and multiple measurement signals of the second non-safety control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round;
[0012] Calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has an over-range or link failure phenomenon; the quality code includes: a first quality code corresponding to the first non-safety grade control cabinet and a second quality code corresponding to the second non-safety grade control cabinet;
[0013] According to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, logical calculation processing is performed to determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal; the measurement signal of the current round is a measurement signal selected after the redundancy calculation of multiple measurement signals; the value of the sequence of the control cabinet number is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of the control cabinet number of the initial round is composed of data whose values are all 1; the comprehensive calculation result signal includes three attributes: value, timestamp and quality code;
[0014] Determine the control cabinet switching information of the current round according to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round;
[0015] The communication transmission information of the current round corresponding to the communication server is determined according to the control cabinet switching information of the current round.
[0016] Optionally, the quality code of the measurement signal of the current round is calculated according to whether the acquisition signal of the current round has an over-range or link failure phenomenon, specifically including:
[0017] In the current round, for the multiple measurement signals of the first non-safety control cabinet and the multiple measurement signals of the second non-safety control cabinet, the following are performed:
[0018] Determine whether each collected signal has an over-range or link failure phenomenon, obtain a judgment result, and calculate the quality code of the collected signal; the link failure includes: configuration parameter error, board channel failure, self-test voltage error, or target device offline resulting in the signal being unable to communicate normally;
[0019] If the judgment result corresponding to the acquisition signal is yes, setting the quality code corresponding to the acquisition signal;
[0020] If the judgment result corresponding to the acquisition signal is negative, the quality code corresponding to the acquisition signal is set to bad;
[0021] Performing redundancy removal calculations on the multiple measurement signals of the first non-safety-grade control cabinet and the multiple measurement signals corresponding to the second non-safety-grade control cabinet, and outputting one channel of measurement signals respectively; the redundancy removal calculation is to select one channel of measurement signals with good quality codes from the multiple redundant measurement signals;
[0022] The first quality code corresponding to the first non-safety grade control cabinet is a quality code corresponding to the measurement signal after redundancy calculation of the first non-safety grade control cabinet;
[0023] The second quality code corresponding to the second non-safety-grade control cabinet is a quality code corresponding to the measurement signal after redundancy removal calculation of the second non-safety-grade control cabinet.
[0024] Optionally, according to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, a logical calculation process is performed to determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal, specifically including:
[0025] Based on the sequence of the control cabinet numbers of the previous round, if the status of the transmission quality code of the selected control cabinet is good, the control cabinet will not be switched, and the sequence of the control cabinet numbers of the current round is equal to the sequence of the control cabinet numbers of the previous round;
[0026] If the status of the transmission quality code of the selected control cabinet is bad, and the status of the transmission quality code of the other control cabinet is good, the control cabinet is switched, and the sequence of the control cabinet number of the current round is equal to the sequence of the other control cabinet number;
[0027] If the transmission quality code status of the first non-safety control cabinet and the second non-safety control cabinet are both bad, the control cabinet will not be switched, and the sequence of the control cabinet numbers of the current round is equal to the sequence of the control cabinet numbers of the previous round;
[0028] The comprehensive calculation result signal is output according to the measurement signal of the selected control cabinet number.
[0029] Optionally, according to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round, the control cabinet switching information of the current round is determined, specifically including:
[0030] If the sequence of the control cabinet numbers of the current round is different from the sequence of the control cabinet numbers of the previous round, it is determined that a control cabinet switch has occurred, and then the control cabinet switch information of the current round is determined.
[0031] Optionally, the dual control cabinet data collection method further includes:
[0032] Determine whether the first non-safety control cabinet and the second non-safety control cabinet are offline, the communication server determines that they are offline after waiting for processing based on a set timeout period, and sets the quality code status of the measurement signal of the offline control cabinet to bad;
[0033] If the selected control cabinet number is switched from the first non-safety control cabinet to the second non-safety control cabinet, the second non-safety control cabinet is controlled to resend the measurement signal;
[0034] If the selected control cabinet number is switched from the second non-safety control cabinet to the first non-safety control cabinet, the first non-safety control cabinet is controlled to resend the measurement signal.
[0035] Optionally, the dual control cabinet data collection method further includes:
[0036] Based on the measurement signals reissued by the non-safety-grade control cabinet and the comprehensive calculation result signals, the storage request is processed in the order of timestamps;
[0037] In the real-time library and the historical library, if the timestamp of the measurement signal requested to be stored is earlier than the timestamp of the measurement signal currently stored, the storage request will not be accepted;
[0038] The HMI monitoring interface reads the measurement information stored in the real-time library and the historical library and displays it.
[0039] In a second aspect, the present application provides a dual control cabinet data acquisition device, the dual control cabinet data acquisition device comprising:
[0040] The signal acquisition module is used to acquire multiple measurement signals of the current round; the measurement signals include three attributes: value, timestamp and quality code; the multiple measurement signals are sequence signals composed of multiple acquisition signals according to timestamps; the acquisition signals are acquired by acquiring the target device through the control cabinet; the multiple measurement signals include: multiple measurement signals of the first non-safety-grade control cabinet and multiple measurement signals of the second non-safety-grade control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round;
[0041] A quality code determination module is used to calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has an over-range or link failure phenomenon; the quality code includes: a first quality code corresponding to the first non-safety grade control cabinet and a second quality code corresponding to the second non-safety grade control cabinet;
[0042] A logic processing module is used to perform logic calculation processing according to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, and determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal; the measurement signal of the current round is a measurement signal selected after the redundancy calculation of multiple measurement signals; the value of the sequence of the control cabinet number is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of the control cabinet number of the initial round is composed of data whose values are all 1; the comprehensive calculation result signal includes three attributes: value, timestamp and quality code;
[0043] A switching control module is used to determine the control cabinet switching information of the current round based on the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round;
[0044] The communication transmission module is used to determine the communication transmission information of the current round corresponding to the communication server according to the control cabinet switching information of the current round.
[0045] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the dual control cabinet data acquisition method described above.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned dual control cabinet data acquisition method.
[0047] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the above-mentioned dual control cabinet data acquisition method when executed by a processor.
[0048] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0049] The present application provides a dual control cabinet data acquisition method, device, equipment, medium and product, which obtains multiple measurement signals of the current round, determines the quality code of the current round of measurement signals according to whether the current round of acquisition signals have over-range or link failure phenomena; performs logical calculation processing according to the measurement signals of the current round and the sequence of the control cabinet numbers of the previous round, determines the sequence of the control cabinet numbers of the current round and the comprehensive calculation result signal; determines the control cabinet switching information of the current round according to the sequence of the control cabinet numbers of the previous round and the current round; determines the communication transmission information of the current round corresponding to the communication server according to the control cabinet switching information of the current round. The present application sets up redundant dual-row control cabinets, performs information processing based on dual-row control cabinets, realizes interference-free switching, improves the reliability and safety integrity level of the data acquisition system, and meets the data acquisition requirements of the demanding instrumentation and control systems such as nuclear power. Therefore, the present application can improve the reliability and safety integrity of data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] 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 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 work.
[0051] Figure 1 It is a flow chart of the data collection method of dual control cabinets;
[0052] Figure 2 It is a schematic diagram of the framework structure relationship of dual control cabinet data acquisition in actual application;
[0053] Figure 3 Schematic diagram of the structure relationship of the collected data;
[0054] Figure 4 Design schematics for signal acquisition logic;
[0055] Figure 5 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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.
[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0058] An embodiment of the present application provides a dual control cabinet data acquisition method, which is implemented using a dual control cabinet redundant system; the dual control cabinet redundant system includes: a target device, a control cabinet and a communication server; the communication server includes: a host communication server and a backup communication server; the control cabinet includes: a first non-safety-level control cabinet and a second non-safety-level control cabinet.
[0059] The target device is connected to the first non-safety control cabinet and the second non-safety control cabinet respectively; the first non-safety control cabinet is connected to the host communication server and the backup communication server respectively; the second non-safety control cabinet is connected to the host communication server and the backup communication server respectively.
[0060] like Figure 1 As shown, the dual control cabinet data acquisition method includes:
[0061] Step 100: Get the multiple measurement signals of the current round. The measurement signal includes three attributes: value, timestamp and quality code; the multiple measurement signal is a sequence signal composed of multiple acquisition signals according to timestamps; the acquisition signal is obtained by acquiring the target device through the control cabinet; the multiple measurement signals include: the multiple measurement signals of the first non-safety control cabinet and the multiple measurement signals of the second non-safety control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round.
[0062] Step 200: Calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has over-range or link failure. The quality code includes: a first quality code corresponding to the first non-safety grade control cabinet and a second quality code corresponding to the second non-safety grade control cabinet.
[0063] Step 300: Perform logical calculations based on the current round of measurement signals and the sequence of control cabinet numbers in the previous round to determine the sequence of control cabinet numbers in the current round and the comprehensive calculation result signal. The current round of measurement signals is a measurement signal selected after multiple measurement signals are de-redundantly calculated; the value of the control cabinet number sequence is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of control cabinet numbers in the initial round is composed of data whose values are all 1; the comprehensive calculation result signal contains three attributes: value, timestamp, and quality code.
[0064] Step 400: Determine the control cabinet switching information of the current round according to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round.
[0065] Step 500: Determine the communication transmission information of the current round corresponding to the communication server according to the control cabinet switching information of the current round.
[0066] In one embodiment, the quality code of the measurement signal of the current round is calculated according to whether the acquisition signal of the current round has an over-range or link failure phenomenon, specifically including:
[0067] In the current round, for the multiple measurement signals of the first non-safety control cabinet and the multiple measurement signals of the second non-safety control cabinet, the following are performed:
[0068] Determine whether each collected signal has over-range or link failure, obtain the judgment result, and calculate the quality code of the collected signal; link failure includes: configuration parameter error, board channel failure, self-test voltage error or target device offline resulting in signal failure to communicate normally.
[0069] If the judgment result corresponding to the collected signal is yes, the quality code corresponding to the collected signal is set.
[0070] If the judgment result corresponding to the acquisition signal is negative, the quality code corresponding to the acquisition signal is set to bad.
[0071] De-redundancy calculation is performed on the multiple measurement signals of the first non-safety grade control cabinet and the multiple measurement signals corresponding to the second non-safety grade control cabinet, and one measurement signal is output respectively; the de-redundancy calculation is to select one measurement signal with a good quality code from the multiple redundant measurement signals.
[0072] The first quality code corresponding to the first non-safety-grade control cabinet is a quality code corresponding to the measurement signal after redundancy calculation of the first non-safety-grade control cabinet.
[0073] The second quality code corresponding to the second non-safety-grade control cabinet is a quality code corresponding to the measurement signal after redundancy calculation of the second non-safety-grade control cabinet.
[0074] According to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, logical calculation processing is performed to determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal, specifically including:
[0075] Based on the sequence of control cabinet numbers in the previous round, if the status of the transmission quality code of the selected control cabinet is good, the control cabinet will not be switched, and the sequence of control cabinet numbers in the current round is equal to the sequence of control cabinet numbers in the previous round.
[0076] If the status of the transmission quality code of the selected control cabinet is bad and the status of the transmission quality code of the other control cabinet is good, the control cabinet is switched, and the sequence of the control cabinet number of the current round is equal to the sequence of the other control cabinet number.
[0077] If the states of the transmission quality codes of the first non-safety control cabinet and the second non-safety control cabinet are both bad, the control cabinet will not be switched, and the sequence of the control cabinet numbers of the current round is equal to the sequence of the control cabinet numbers of the previous round.
[0078] The comprehensive calculation result signal is output according to the measurement signal of the selected control cabinet number.
[0079] As an optional implementation mode, according to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round, the control cabinet switching information of the current round is determined, specifically including:
[0080] If the sequence of the control cabinet numbers of the current round is different from the sequence of the control cabinet numbers of the previous round, it is determined that a control cabinet switch has occurred, and then the control cabinet switch information of the current round is determined.
[0081] In one embodiment, the dual control cabinet data collection method further includes:
[0082] It is determined whether the first non-safety control cabinet and the second non-safety control cabinet are offline. The communication server determines that they are offline after waiting for a set timeout period, and sets the quality code status of the measurement signal of the offline control cabinet to bad.
[0083] If the selected control cabinet number is switched from the first non-safety control cabinet to the second non-safety control cabinet, the second non-safety control cabinet is controlled to resend the measurement signal.
[0084] If the selected control cabinet number is switched from the second non-safety control cabinet to the first non-safety control cabinet, the first non-safety control cabinet is controlled to resend the measurement signal.
[0085] In addition, the dual control cabinet data collection method also includes:
[0086] Based on the measurement signals reissued by the non-safety-grade control cabinet and the comprehensive calculation result signals, the warehousing request is processed in the order of timestamps.
[0087] In the real-time library and the historical library, if the timestamp of the measurement signal requested to be stored is earlier than the timestamp of the measurement signal currently stored, the storage request will not be accepted.
[0088] The HMI monitoring interface reads the measurement information stored in the real-time library and the historical library and displays it.
[0089] Based on the same inventive concept, the embodiment of the present application also provides a dual control cabinet data acquisition device for implementing the dual control cabinet data acquisition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more dual control cabinet data acquisition device embodiments provided below can refer to the limitations of the dual control cabinet data acquisition method above, and will not be repeated here.
[0090] In an exemplary embodiment, a dual control cabinet data acquisition device is provided, and the dual control cabinet data acquisition device includes:
[0091] The signal acquisition module is used to obtain multiple measurement signals of the current round; the measurement signal includes three attributes: value, timestamp and quality code; the multiple measurement signal is a sequence signal composed of multiple acquisition signals according to timestamps; the acquisition signal is obtained by acquiring the target device through the control cabinet; the multiple measurement signals include: the multiple measurement signals of the first non-safety-level control cabinet and the multiple measurement signals of the second non-safety-level control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round.
[0092] The quality code determination module is used to calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has over-range or link failure; the quality code includes: the first quality code corresponding to the first non-safety grade control cabinet and the second quality code corresponding to the second non-safety grade control cabinet.
[0093] The logic processing module is used to perform logic calculation processing according to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, and determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal; the measurement signal of the current round is a measurement signal selected after the redundancy calculation of multiple measurement signals; the value of the sequence of control cabinet numbers is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of the control cabinet numbers of the initial round is composed of data whose values are all 1; the comprehensive calculation result signal includes three attributes: value, timestamp and quality code.
[0094] The switching control module is used for determining the control cabinet switching information of the current round based on the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round.
[0095] The communication transmission module is used to determine the communication transmission information of the current round corresponding to the communication server according to the control cabinet switching information of the current round.
[0096] In practical applications, the design concept of the method mentioned in this application includes system architecture design, data structure design and redundant signal acquisition logic design. The architecture design describes the system structure of the entire dual control cabinet redundant data acquisition system. The data structure design includes the data structure composition of the signals collected by each control cabinet and the calculated input and output signals. Based on the data structure, signal acquisition calculation and signal switching are realized. The redundant signal acquisition logic design explains how to obtain a signal displayed on the human-machine interface from multiple measurement signals transmitted from the safety level, and explains the method of achieving interference-free switching.
[0097] The system architecture design consists of redundant measurement systems, redundant control cabinets, redundant communication servers, real-time libraries, historical libraries and human-machine monitoring interface systems.
[0098] The data that the redundant measurement system needs to collect are redundant multiple measurement signals. The two redundant control cabinets respectively collect multiple measurement signals from field equipment or safety-level systems, perform redundancy calculations on the multiple measurement signals in the controller of the control cabinet, and output one measurement signal. The collection and calculation software is deployed in the active-standby redundant communication server. After receiving the two measurement signals sent from the two control cabinets, it performs switching logic calculations and processing on the redundant data, and outputs one calculation result signal for display on the human-machine monitoring interface.
[0099] Data structure design includes two parts: input data and output data:
[0100] 1) The data structures of the measurement signals sent by the two control cabinets contain the value, timestamp and quality code, which together with the control cabinet number selected in the last calculation serve as the input signal for subsequent calculation processing.
[0101] 2) The data structure of the signal output in the communication server includes the signal value, timestamp, quality code, and the control cabinet number selected this time.
[0102] 3) Each data point of the output signal has four attributes: value, timestamp, quality code and selected control cabinet number. When the acquisition channel of a data point fails, only the acquisition of this data point is selected to switch to another control cabinet. It is not necessary to switch all the signals of the entire control cabinet, thus realizing the control cabinet switching at the data point level.
[0103] Based on the data structure design, the acquisition logic implementation steps of the redundant data of the dual control cabinet are as follows:
[0104] 1) The controller and communication card in the control cabinet calculate the quality code of the data point according to whether the communication data exceeds the range and whether the link fails. Link failures include configuration parameter errors, card channel failures, self-test voltage errors, target device offline, and other failures that cause the signal to fail to communicate normally. If there is an over-range or link failure, the controller and communication card set the quality code of the data point to bad, otherwise the quality code is set to good. When the communication server detects that the controller is offline, the quality code of the data sent by the controller is set to bad and written into the real-time library and historical library. Otherwise, it is written into the real-time library and historical library according to the quality code of the data sent by the controller.
[0105] 2) In order to avoid unnecessary interference caused by frequent switching of the selected control cabinet, the principle of signal selection by the communication server is not to switch unless necessary. The first control cabinet is selected by default for the first calculation; if the quality code of the signal sent by the last selected control cabinet is good, the control cabinet will not be switched, and the output signal will continue to be calculated according to the last selected signal, and the quality code of the calculation result signal will be set to good; if the signal quality code sent by the last selected control cabinet is bad, and the signal quality code sent by the other control cabinet is good, the control cabinet will be switched, and the quality code of the calculation result signal will be set to good; if the signal quality codes of both control cabinets are bad, the control cabinet will not be switched, and the quality code of the calculation result signal will be set to bad.
[0106] 3) After one controller goes offline, the communication server needs to wait for a timeout period to determine that the controller is offline and set the acquisition signal quality code to bad. If the calculation result is switched to another signal after one controller goes offline, the problem of data loss will occur in the middle. In the redundant switching logic design, if it is determined that the control cabinet selected locally is different from the last time, the data of the newly selected control cabinet will be reissued. The reissued data may include data that has been sent. The data entered into the real-time library and the historical library have a time stamp sequence. The real-time library and the historical library strictly control the order of entry by comparing the timestamp of the requested entry data point with the latest timestamp of the data point that has been entered into the library. If the timestamp of the requested entry measurement point is earlier than the latest entry timestamp, it will not be entered into the library. In this way, the duplicate data contained in the reissued data is filtered out, and the HMI monitoring interface reads data from the real-time library and the historical library, and will not be disturbed by the failure of a single-column control cabinet, thereby realizing the interference-free switching of the dual control cabinet signals.
[0107] In the safety-level and non-safety-level communication data acquisition systems of nuclear power, there are extremely high requirements for reliability. The control cabinet adopts a dual redundant structure configuration to avoid the problem that the collected data cannot be normally sent to the upper-level monitoring system due to the failure of a single-row control cabinet. For the dual control cabinet redundant system, this application uses the quality code to judge the validity of the signals sent by the two control cabinets, and combines the control cabinet selected last time to calculate which signal should be selected as the calculation output signal, thereby realizing signal switching after one control cabinet fails. When switching signals, data retransmission technology and timing filtering technology are used to ensure zero loss of real-time data and historical data, realize disturbance-free switching of the two-way transmission signals, and ensure the high reliability and high availability of the data acquisition system.
[0108] like Figure 2 As shown in the figure, two redundant control cabinets are configured in the non-safety-level system, and each control cabinet is configured with a pair of redundant controllers. The safety-level system is connected to the communication cards in the two control cabinets, and the safety-level signals are sent to the two control cabinets at the same time. The controllers in the two control cabinets send the collected data to the communication server at the same time.
[0109] The main and standby communication servers both receive data sent from the two control cabinets, and perform calculations based on the quality codes of the two redundant acquisition signals and the control cabinet number selected last time, to determine which signal the monitoring data should display, and finally obtain one signal after calculation. The two redundant data collected are calculated and processed to generate one channel of data. The main communication server writes the calculation results into the real-time library and the historical library, and the human-machine monitoring interface obtains the calculated data from the real-time library and the historical library.
[0110] Combination Figure 3 The data structure shown and Figure 4 The switching logic of the redundant signal shown. For each pair of position numbers X1 and X2 sent by the redundant dual control cabinet, X3 is calculated, and each pair of position numbers is equipped with a sequence SEL of the selected control cabinet number. The specific calculation example is as follows:
[0111] (1) Calculate the control cabinet number SEL_CUR to be selected.
[0112] If X1_Q equals BAD and X2_Q equals GOOD, then SEL_CUR=2.
[0113] If X2_Q equals BAD and X1_Q equals GOOD, then SEL_CUR=1.
[0114] If X1_Q equals bad and X2_Q equals bad, or, X1_Q equals good and X2_Q equals good, then SEL_CUR = SEL_PRE.
[0115] (2) Calculate the comprehensive calculation result signal.
[0116] If SEL_CUR is equal to 1, then X3_V = X1_V; X3_Q = X1_Q; X3_T = X1_T;
[0117] If SEL_CUR is equal to 2, then X3_V=X2_V; X3_Q=X2_Q; X3_T=X3_T.
[0118] (3) Calculate whether the data needs to be reissued.
[0119] If SEL_CUR is not equal to SEL_PRE, it means that the control cabinet has been switched, and the first 5 seconds of SEL_CUR data will be reissued, and the comprehensive calculation result signal data of the current cycle will be sent to the real-time library and the historical library. The real-time library and the historical library will filter duplicate data. Since the data is entered in the order of timestamps, the data that is earlier than the current data will be filtered out, ensuring zero data loss and non-disturbance switching when switching the control cabinet signal.
[0120] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for dual control cabinet data collection. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a dual control cabinet data collection method is implemented.
[0121] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0122] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0123] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0124] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0125] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0126] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0127] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0128] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0129] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A dual control cabinet data acquisition method, characterized in that: The dual control cabinet data acquisition method is implemented by using a dual control cabinet redundant system; The dual control cabinet redundant system includes: a target device, a control cabinet and a communication server; the communication server includes: a host communication server and a standby communication server; the control cabinet includes: a first non-safety control cabinet and a second non-safety control cabinet; The target device is connected to the first non-safety control cabinet and the second non-safety control cabinet respectively; the first non-safety control cabinet is connected to the host communication server and the standby communication server respectively; the second non-safety control cabinet is connected to the host communication server and the standby communication server respectively; The dual control cabinet data acquisition method comprises: Acquire multiple measurement signals of the current round; the measurement signals include three attributes: value, timestamp and quality code; the multiple measurement signals are sequence signals composed of multiple acquisition signals according to timestamps; the acquisition signals are acquired by the control cabinet through acquisition of the target device; the multiple measurement signals include: multiple measurement signals of the first non-safety control cabinet and multiple measurement signals of the second non-safety control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round; Calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has an over-range or link failure phenomenon; the quality code includes: a first quality code corresponding to the first non-safety grade control cabinet and a second quality code corresponding to the second non-safety grade control cabinet; According to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, logical calculation processing is performed to determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal; the measurement signal of the current round is a measurement signal selected after the redundancy calculation of multiple measurement signals; the value of the sequence of the control cabinet number is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of the control cabinet number of the initial round is composed of data whose values are all 1; the comprehensive calculation result signal includes three attributes: value, timestamp and quality code; Determine the control cabinet switching information of the current round according to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round; The communication transmission information of the current round corresponding to the communication server is determined according to the control cabinet switching information of the current round.
2. The dual control cabinet data acquisition method according to claim 1 is characterized in that: The quality code of the current round of measurement signal is calculated according to whether the current round of acquisition signal has an over-range or link failure phenomenon, specifically including: In the current round, for the multiple measurement signals of the first non-safety control cabinet and the multiple measurement signals of the second non-safety control cabinet, the following are performed: Determine whether each collected signal has an over-range or link failure phenomenon, obtain a judgment result, and calculate the quality code of the collected signal; the link failure includes: configuration parameter error, board channel failure, self-test voltage error, or target device offline resulting in the signal being unable to communicate normally; If the judgment result corresponding to the acquisition signal is yes, setting the quality code corresponding to the acquisition signal; If the judgment result corresponding to the acquisition signal is negative, then the quality code corresponding to the acquisition signal is set to bad; Performing redundancy removal calculations on the multiple measurement signals of the first non-safety-grade control cabinet and the multiple measurement signals corresponding to the second non-safety-grade control cabinet, and outputting one channel of measurement signals respectively; the redundancy removal calculation is to select one channel of measurement signals with good quality codes from the multiple redundant measurement signals; The first quality code corresponding to the first non-safety grade control cabinet is a quality code corresponding to the measurement signal after redundancy calculation of the first non-safety grade control cabinet; The second quality code corresponding to the second non-safety-grade control cabinet is a quality code corresponding to the measurement signal after redundancy removal calculation of the second non-safety-grade control cabinet.
3. The dual control cabinet data acquisition method according to claim 1 is characterized in that: According to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, logical calculation processing is performed to determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal, specifically including: Based on the sequence of the control cabinet numbers of the previous round, if the status of the transmission quality code of the selected control cabinet is good, the control cabinet will not be switched, and the sequence of the control cabinet numbers of the current round is equal to the sequence of the control cabinet numbers of the previous round; If the status of the transmission quality code of the selected control cabinet is bad, and the status of the transmission quality code of the other control cabinet is good, the control cabinet is switched, and the sequence of the control cabinet number of the current round is equal to the sequence of the other control cabinet number; If the transmission quality code status of the first non-safety control cabinet and the second non-safety control cabinet are both bad, the control cabinet will not be switched, and the sequence of the control cabinet numbers of the current round is equal to the sequence of the control cabinet numbers of the previous round; The comprehensive calculation result signal is output according to the measurement signal of the selected control cabinet number.
4. The dual control cabinet data acquisition method according to claim 1 is characterized in that: According to the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round, the control cabinet switching information of the current round is determined, including: If the sequence of the control cabinet numbers of the current round is different from the sequence of the control cabinet numbers of the previous round, it is determined that a control cabinet switch has occurred, and then the control cabinet switch information of the current round is determined.
5. The dual control cabinet data acquisition method according to claim 4 is characterized in that: The dual control cabinet data acquisition method also includes: Determine whether the first non-safety control cabinet and the second non-safety control cabinet are offline, the communication server determines that they are offline after waiting for processing based on a set timeout period, and sets the quality code status of the measurement signal of the offline control cabinet to bad; If the selected control cabinet number is switched from the first non-safety control cabinet to the second non-safety control cabinet, the second non-safety control cabinet is controlled to resend the measurement signal; If the selected control cabinet number is switched from the second non-safety control cabinet to the first non-safety control cabinet, the first non-safety control cabinet is controlled to resend the measurement signal.
6. The dual control cabinet data acquisition method according to claim 5, characterized in that: The dual control cabinet data acquisition method also includes: Based on the measurement signals reissued by the non-safety-grade control cabinet and the comprehensive calculation result signals, the storage request is processed in the order of timestamps; In the real-time library and the historical library, if the timestamp of the measurement signal requested to be stored is earlier than the timestamp of the measurement signal currently stored, the storage request will not be accepted; The HMI monitoring interface reads the measurement information stored in the real-time library and the historical library and displays it.
7. A dual control cabinet data acquisition device, characterized in that: The dual control cabinet data acquisition device comprises: The signal acquisition module is used to acquire multiple measurement signals of the current round; the measurement signals include three attributes: value, timestamp and quality code; the multiple measurement signals are sequence signals composed of multiple acquisition signals according to timestamps; the acquisition signals are acquired by acquiring the target device through the control cabinet; the multiple measurement signals include: multiple measurement signals of the first non-safety-grade control cabinet and multiple measurement signals of the second non-safety-grade control cabinet; each time the dual control cabinet redundant system completes the acquisition-transmission process corresponding to the multiple measurement signals, it is recorded as a round; A quality code determination module is used to calculate the quality code of the current round of measurement signals according to whether the current round of acquisition signals has an over-range or link failure phenomenon; the quality code includes: a first quality code corresponding to the first non-safety grade control cabinet and a second quality code corresponding to the second non-safety grade control cabinet; A logic processing module is used to perform logic calculation processing according to the measurement signal of the current round and the sequence of the control cabinet number of the previous round, and determine the sequence of the control cabinet number of the current round and the comprehensive calculation result signal; the measurement signal of the current round is a measurement signal selected after the redundancy calculation of multiple measurement signals; the value of the sequence of the control cabinet number is 1 or 2; wherein the value 1 corresponds to the first non-safety control cabinet, and the value 2 corresponds to the second non-safety control cabinet; the sequence of the control cabinet number of the initial round is composed of data whose values are all 1; the comprehensive calculation result signal includes three attributes: value, timestamp and quality code; A switching control module is used to determine the control cabinet switching information of the current round based on the sequence of the control cabinet numbers of the previous round and the sequence of the control cabinet numbers of the current round; The communication transmission module is used to determine the communication transmission information of the current round corresponding to the communication server according to the control cabinet switching information of the current round.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the dual control cabinet data acquisition method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the dual control cabinet data acquisition method described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the dual control cabinet data acquisition method described in any one of claims 1 to 6 is implemented.