A nuclear-grade instrumentation and control system simulation method, system and device based on mirror virtualization
Through the nuclear-level instrumentation and control system simulation method based on mirror virtualization, we solve the problem that the existing technology cannot meet the application requirements in different directions at the same time and cannot effectively simulate hard logic, and achieve high-fidelity simulation and multi-functional simulation of the nuclear-level instrumentation and control system. Improves the flexibility and practicality of the system.
Patent Information
- Application Number
- CN202411346621.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-09-26
AI Technical Summary
The existing nuclear-level instrument control system simulation methods cannot meet the requirements of different directions such as full-range simulation machines, instrument control system operating condition debugging and semi-physical simulation, and cannot effectively simulate manual hard logic and lack of operating condition maintenance in the system. Function.
The core-level instrumentation and control system simulation method based on mirror virtualization is used to develop key equipment through embedded software, build a distributed control system, and design a three-layer network architecture to achieve the organic separation of the simulation control network and the secure communication network within the virtual station and between stations. and conduct multi-dimensional simulations of logic, response time, appearance, and faults.
It realizes high-fidelity simulation of the operation of various functional modules in nuclear-level instrumentation and control systems, provides comprehensive training, design verification and scientific research tools, overcomes the shortcomings of existing technology, and improves the flexibility and practicality of the simulation system. sex.
Smart Images

Figure CN118859747B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of instrumentation and control simulation, and more specifically, to a simulation method, system and device for a nuclear-level instrumentation and control system based on mirror virtualization. Background Art
[0002] The nuclear-grade instrumentation and control simulation system is one of the key components of the full-range simulator of a nuclear power plant. Its main function is to simulate the functions and performance of the nuclear-grade instrumentation and control system through software and hardware based on a computer system, provide a high-precision nuclear-grade instrumentation and control system that meets the needs of a full-range simulator, provide training services for nuclear power plant operators, reduce safety risks in nuclear power plants caused by human factors, and improve safety.
[0003] With the continuous development of simulation technology, nuclear-grade instrumentation and control systems are gradually applied to multiple directions such as designing simulation platforms, designing automatic tests, and digital reactors. Due to the different requirements for nuclear-grade instrumentation and control systems in different directions, the existing simulation system cannot simultaneously meet the requirements of different directions such as full-range simulators, instrumentation and control system operating condition debugging, and semi-physical simulation. In addition, the existing nuclear-grade instrumentation and control system simulation methods include pure simulation methods, virtual physical methods, and physical simulation methods. Domestic and foreign nuclear-grade instrumentation and control system suppliers generally use virtual physical methods to develop nuclear-grade instrumentation and control simulation systems, but they also have their own shortcomings: 1) Nuclear-grade instrumentation and control systems contain manual hard logic, and the above systems can only virtualize the logic in the digital part; 2) Existing simulation systems generally do not provide operating condition maintenance functions, which is not convenient and direct in simulator debugging; and each debugging requires restarting all software, requiring users to do a lot of debugging work.
[0004] Therefore, how to study and design a nuclear-level instrumentation and control system simulation method, system and device based on mirror virtualization that can overcome the above-mentioned defects is a problem that we urgently need to solve. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the purpose of the present invention is to provide a nuclear-grade instrumentation and control system simulation method, system and device based on mirror virtualization, which reproduces the performance and behavior of the field control station by combining software running in a desktop operating system and hardware equipment, and ultimately achieves the purpose of simulating the operation of various functional modules in the nuclear-grade instrumentation and control system. The simulation system can be applied to realize operator training, design verification, scientific research and many other aspects.
[0006] The above technical objectives of the present invention are achieved through the following technical solutions:
[0007] In a first aspect, a nuclear-level instrumentation and control system simulation method based on mirror virtualization is provided, comprising the following steps:
[0008] Key equipment simulation: Use embedded software to develop key equipment of the instrumentation and control system, configure the control logic of the instrumentation and control system in the engineer station, compile and download it to the virtual embedded environment for operation;
[0009] System configuration simulation: For the core modules in the physical instrumentation and control system, a distributed control system is constructed to maintain a one-to-one simulation effect between the mirrored virtual system and the physical system;
[0010] System communication simulation: Based on layered strategy decoupling, a three-layer network architecture is designed with secure isolation of the nuclear-level intra-station communication network layer, the nuclear-level inter-station communication network layer, and the simulation control network layer to achieve the organic separation of the simulation control network from the virtual intra-station and inter-station security communication networks.
[0011] Furthermore, the key equipment simulation is divided into logic simulation, response time simulation, appearance simulation and fault simulation.
[0012] Furthermore, the process of the logic simulation is specifically as follows:
[0013] According to the acquired logical configuration, the system configuration data is parsed to automatically obtain the interface relationship between the simulation object and the outside, and a data communication mechanism based on data transmission is generated;
[0014] According to the logical configuration multi-level data structure, the storage path and update mechanism of appearance, logic, and fault are designed, the display of equipment appearance status and its update mechanism are designed, and the association between equipment appearance status and logic is designed. The equipment fault triggering mechanism and data association in the fault process are designed, and their association is maintained after encapsulation.
[0015] Furthermore, the method also includes:
[0016] Check whether the number and type of devices in the logical configuration are consistent with the statistical information;
[0017] If they do not match, the device status is updated and initialized.
[0018] Furthermore, the method also designs a scheduling mechanism for logic simulation, including:
[0019] Creating a simulation scheduling step of the logic simulation according to the operation cycle of the device to cyclically schedule the data receiving module, the device appearance status update, the fault triggering module, the logic simulation module, the appearance update module and the data sending module;
[0020] Among them, each module allocates its operating time according to the operating cycle.
[0021] Furthermore, the hard logic simulation in the logic simulation includes:
[0022] Initialize virtual hard logic, dynamically load virtual hard logic dynamic link library, and obtain required export functions;
[0023] Initialize virtual hard logic data, use the variable list acquisition interface contained in the virtual hard logic dynamic link library to obtain the required variable information, add it to the input variable list or output variable list in the project variable manager, and perform corresponding variable binding operations;
[0024] The virtual hard logic runs,using the logic calculation interface contained in the virtual hard logic dynamic link library,,periodically performing logic operations.
[0025] Furthermore, the response time simulation is to add a response time design allocation strategy before and after the loop scheduling of the logic simulation, and the specific process is as follows:
[0026] Formulate a simulation time advancement mechanism based on the set simulation time and simulation speed;
[0027] Sending advancement mechanisms to each independent model to manage the time of each asynchronous model;
[0028] In the advancement mechanism, the simulation step size is set according to the simulation speed to achieve adjustable speed simulation;
[0029] By recording the residual simulation time each time, when the accumulated residual simulation time is close to the simulation step length, a simulation calculation is supplemented.
[0030] Furthermore, the process of the appearance simulation is specifically as follows:
[0031] Design the appearance model of the simulation system equipment according to the physical appearance, and design the storage path;
[0032] According to the physical appearance of the device, it is divided into a state display device and an input device. The state display device establishes display parameters, and the input device is designed as an input state according to the type of input device and establishes corresponding parameters to complete the dynamic design;
[0033] Establish a mapping relationship between the appearance model and the physical device;
[0034] Obtain physical device flags and dynamic data parameters from logical configuration and build associations with appearance models;
[0035] Generate image display screen according to physical device configuration information in logical configuration;
[0036] In the cyclic task scheduling of logic simulation, a device appearance status update module is constructed to update the status of the input device, and an appearance update module is established after the logic simulation module to update the structure calculated by the logic simulation to the screen appearance.
[0037] Furthermore, the fault simulation process is specifically as follows:
[0038] Obtain the data model after the failure occurs;
[0039] Build a mapping relationship between fault type, source data and subsequent data based on the data model after the fault occurs;
[0040] In the cyclic task scheduling of logic simulation, a fault trigger module is built before the logic simulation module to obtain the fault trigger instruction and pass it to the mapped source data. The logic configuration uses the source data to perform logic calculations to realize fault simulation.
[0041] Furthermore, the core modules in the physical instrumentation and control system include a main controller and a functional module;
[0042] The functional modules include an analog input / output module, a switch input / output module and a communication module.
[0043] Furthermore, the simulation of the main controller adopts the technical route of a virtual lower computer, migrating the program of the physical main controller to a general computer operating environment to form a virtual embedded operating environment to support the operation of a logically configured executable program consistent with the physical instrumentation and control system.
[0044] Furthermore, the simulation of the functional modules adopts an object-oriented modeling approach to construct virtual objects in the virtual control station VPS to achieve the functions of converting electrical quantities and engineering quantities and building communication links.
[0045] Furthermore, in the core-level intra-station communication network layer, a shared memory method is used to simulate the communication method of a physical LVDS bus, and the specific process is as follows:
[0046] In DCS, the communication between the two hot standby main controllers is realized in the form of backplane LVDS, and the content is the real-time value of the variables of this control station;
[0047] In the mirror virtual system, the communication simulation is realized by using the shared memory method;
[0048] Among them, variables are divided into analog quantities and switch quantities.
[0049] Furthermore, in the nuclear-level inter-station communication network layer, the inter-control station communication of the nuclear-level DCS adopts a protocol in a custom format, uses the point-to-point TCP communication protocol to secondary encapsulate the custom protocol, and supplements data packets of various scenarios, and encapsulates them into TCP application packets for data transmission.
[0050] Furthermore, the simulation control network layer schedules the modules of the mirror virtual system to coordinate work, and does not serve as a simulation of a physical DCS.
[0051] In a second aspect, a nuclear-level instrumentation and control system simulation system based on mirror virtualization is provided, and the system is used to implement a nuclear-level instrumentation and control system simulation method based on mirror virtualization as described in any one of the first aspects, including:
[0052] Simulation host service SHS, used to provide simulation services for all simulation modules;
[0053] Simulation Data Management Service SDS, a data management subsystem used to manage data services, simulation data processing, and storage of defined variables in the project;
[0054] Virtual control station VPS, used to simulate the control station and provide a communication platform between modules;
[0055] Virtual main control unit VPU, used for virtual main control module subsystem;
[0056] Virtual Security Display Unit (VSVDU), a subsystem used to simulate a security display unit;
[0057] The simulation management software SPM is used to provide an interface with the user, issue simulation instructions, online monitoring, and user management subsystems;
[0058] Virtual Engineering Station VMTS is a software tool used to generate project files, download software, and complete download and verification.
[0059] In a third aspect, a nuclear-level instrumentation and control system simulation device based on mirror virtualization is provided, and the device is used to implement a nuclear-level instrumentation and control system simulation system based on mirror virtualization as described in the second aspect, including:
[0060] At least one simulation host server, used to carry the simulation part of the main control module in the simulation system software, and to issue and receive simulation instructions, receive control instructions from the security display station, and send information to the security display station for display;
[0061] The safety display station simulation device is used to receive simulation instructions and issue control instructions to simulate the safety-level device for control operations. The safety-level display station simulation device is an all-in-one device with a touch screen and hard buttons;
[0062] Engineer station hardware, used to carry virtual engineer station software;
[0063] Among them, the operator station runs on the industrial computer, and the simulation host service and simulation data management software run on the server;
[0064] Furthermore, VMTS is connected to VSVDU, a simulation host running VPS or an industrial computer running VSVDU through a maintenance network to realize downloading, monitoring and maintenance functions.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] The present invention provides a nuclear-grade instrumentation and control system simulation method based on mirror virtualization, which reproduces the performance and behavior of the field control station by combining software running in a desktop operating system and hardware equipment, and ultimately achieves the purpose of simulating the operation of various functional modules in the nuclear-grade instrumentation and control system. The simulation system can be applied to realize operator training, design verification, scientific research and many other aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0068] Figure 1 is a flow chart of Embodiment 1 of the present invention;
[0069] Figure 2 It is a flowchart of the construction and design of the embedded task logic simulation model in Example 1 of the present invention;
[0070] Figure 3 is a flow chart of response time simulation in Embodiment 1 of the present invention;
[0071] Figure 4 It is a module schematic diagram of a typical control station of a typical project in Example 1 of the present invention;
[0072] Figure 5 It is a schematic diagram of the module configuration of a typical control station of a typical project in Example 1 of the present invention;
[0073] Figure 6 is a schematic diagram of communication simulation in Embodiment 1 of the present invention;
[0074] Figure 7 is a schematic diagram of the shared memory content format in Example 1 of the present invention;
[0075] Figure 8 is a schematic diagram of the communication structure of a typical system in Embodiment 1 of the present invention;
[0076] Fig. 9 is a structural diagram of a multi-simulation host mode in Embodiment 1 of the present invention;
[0077] Fig.10 This is the overall structure diagram of the nuclear-level instrumentation and control simulation system in Example 2 of the present invention.
[0078] Fig.11 This is the hardware architecture diagram of the nuclear-grade instrumentation and control simulation device in Example 3 of the present invention. DETAILED DESCRIPTION
[0079] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0080] Embodiment 1: A simulation method of a nuclear-level instrumentation and control system based on mirror virtualization, such as Figure 1 As shown, the following steps are included:
[0081] Step 1: Key equipment simulation: Use embedded software to develop key equipment of the I&C system, configure the control logic of the I&C system in the engineer station, compile and download it to the virtual embedded environment for operation;
[0082] Step 2: System configuration simulation: For the core modules in the physical instrumentation and control system, a distributed control system is constructed to maintain a one-to-one simulation effect between the mirror virtual system and the physical system;
[0083] Step 3: System communication simulation: Based on layered strategy decoupling, design a three-layer network architecture of securely isolated core-level intra-station communication network layer, core-level inter-station communication network layer, and simulation control network layer to achieve organic separation of the simulation control network from the virtual intra-station and inter-station security communication networks.
[0084] In step one, for the key equipment and features of the instrumentation and control system, key equipment simulation is integrated from four dimensions: logic simulation, response time simulation, appearance simulation, and fault simulation.
[0085] S1: Logic Simulation
[0086] The specific process of logic simulation is as follows: determine the operating system and corresponding compiler of the simulation system according to the operating environment group of the instrumentation and control equipment; determine and select the simulation software development environment according to the characteristics of the operating system; parse the system configuration data according to the acquired logic configuration to automatically obtain the interface relationship between the simulation object and the outside, and generate a data communication mechanism based on data transmission; design the storage path and update mechanism of appearance, logic, and fault according to the multi-level data structure of the logic configuration, design the display of the equipment appearance status and its update mechanism, design the association between the equipment appearance status and logic, and design the equipment fault trigger mechanism and the data association during the fault process, and maintain their association after encapsulation.
[0087] In addition, the present invention also checks whether the number and type of devices in the logical configuration are consistent with the statistical information; if not, the initialization device status is updated.
[0088] In addition, the present invention also designs a scheduling mechanism for logic simulation, including: creating a simulation scheduling step for logic simulation according to the operating cycle of the device to cyclically schedule a data receiving module, device appearance status update, fault trigger module, logic simulation module, appearance update module and data sending module; wherein each module allocates the operating time of each module according to the operating cycle.
[0089] The following is an explanation of the simulation design of the main control module:
[0090] (1) Virtual runtime environment compilation design based on multi-platform cross-compilation
[0091] Based on the virtual operating environment compilation of multi-platform cross-compilation, the board-level operating environment program of the main control module developed based on the embedded hardware platform can be directly compiled and ported to the Windows system or Linux system for use, realizing the basis of "same source, different structures". The operating environment information of MPU and VPU is shown in Table 1. Cygwin software is used as the development software of VPU under Windows, and Cygwin provides Linux environment for VPU under Windows. MinGW software is used as the development software of VPU under Linux, and MinGW provides Windows environment for VPU under Linux. The advantage of this method is that it does not depend on a specific system platform and supports platforms such as Windows and Linux.
[0092] The development environment of VPU does not rely on any commercial software. Any text editor can be used to write source code; the compiler uses the GNU-GCC suite, which is a completely open and free compiler; VPU uses Makefile to describe the compilation order and compilation rules of the project files.
[0093] Table 1 Comparison of MPU and VPU development
[0094] VPU VPU MPU operating system Windows Linux — Hardware Platform Intel X86, etc. Loongson ARM64 RM48 Development Kit Cgywin MinGW CCS
[0095] (2) Design and construction of embedded task logic simulation model
[0096] The construction of the embedded task logic simulation model requires that the configuration files (control logic programs) established by the configuration software of the real nuclear-grade control system and other upper computer software can be directly downloaded to the VPU and run directly. Therefore, in addition to supporting multiple platforms in the construction of the virtual operating environment, the overall operation process stage design of the VPU needs to be consistent with the physical MPU to ensure that the same physical configuration files execute the same operation control logic in the virtual operating environment. The overall operation process of the VPU includes four stages, namely the configuration initialization stage, the system environment variable initialization stage, the MPU and sub-device initialization stage, and the task creation and scheduling stage. Figure 2 shown.
[0097] The platform configuration initialization phase includes initial device configuration, initial algorithm configuration, and initial slot configuration. The initialization function is mainly implemented by the dynamic link library, and the VPU is started by the VPS in the form of a command line. After startup, the initialization interface of the dynamic link library is called to read the command line parameters, obtain the project name, station number, VPU slot number, download file main directory and other information, read the downloaded configuration file that is consistent with the physical logic, and then map the data and status shared memory.
[0098] The LCD display is updated during the system environment variable initialization phase. The content to be displayed is set in the VPU process, and then the LCD setting function in the dynamic link library is called to send the content to the human-machine interface for display. The system configuration initialization includes the process of obtaining the device configuration file, the path of the parameter variable file, reading the information and checking it.
[0099] The initialization phase of the MPU and sub-devices includes board initialization and operation mode initialization. Board initialization refers to the process of checking whether the card quantity statistics in the MTS engineering configuration are consistent with the information counted by the VPU, and initializing the status of each board; operation mode initialization refers to the process of reading the VPU status input information from the simulation hardware (such as the mode switching switch, output locking switch), and changing the VPU operation and locking mode.
[0100] The task creation and scheduling phase executes functions such as creating a task table and cyclic task scheduling. The five basic tasks include receiving local card data receiving tasks, synchronization tasks, algorithm tasks, sending tasks, and maintenance tasks. The task scheduling process initializes the tasks in the task table and cyclically executes the tasks and idle tasks. First, the items in the task table containing the initialization tasks are initialized, and then the LCD displays "CYCL", and then enters the task table execution cycle. Unless the stop cycle condition is not met, the cycle continues.
[0101] As for the virtualization of hard logic, the software user first uses Microsoft Visio configuration software to configure the virtual hard logic according to the actual hardware logic requirements of the project, and then compiles and generates the corresponding callable library file, which is periodically called by the virtual hard logic running module to achieve it.
[0102] Therefore, based on the system structure, the hard logic simulation is realized according to the processes of module encapsulation, algorithm writing, logic analysis, and logic operation.
[0103] The key technologies of hard logic system simulation are virtual hard logic initialization, virtual hard logic data initialization and virtual hard logic operation.
[0104] In the virtual hard logic initialization process, the virtual hard logic dynamic link library is dynamically loaded and the required export functions are obtained.
[0105] In the virtual hard logic data initialization process, the variable list acquisition interface contained in the virtual hard logic dynamic link library is used to obtain the required variable information, and it is added to the input variable list or output variable list in the project variable manager, and the corresponding variable binding operation is performed.
[0106] In the virtual hard logic operation process, the logic calculation interface contained in the virtual hard logic dynamic link library is used to perform logic operations periodically.
[0107] S2: Response time simulation
[0108] like Figure 3 As shown, the simulation method of response time is mainly to add the response time design allocation method before and after the loop scheduling of logic simulation, and its content is as follows:
[0109] At the beginning of the simulation, each key device has an independent simulation time recording function and simulation calculation time advancement step. The digital virtual basic platform formulates the simulation time advancement mechanism according to the set simulation time and simulation speed, and sends the advancement mechanism to each independent model to manage the time of each asynchronous model. In the advancement mechanism, the simulation step is set according to the simulation speed to achieve adjustable speed simulation. By recording the residual simulation time each time, when the accumulation of the residual simulation time is close to the simulation step, a simulation calculation is supplemented to solve the problem of mismatch between simulation time and simulation step, and ensure the accuracy of simulation data.
[0110] S3: Appearance Simulation
[0111] The appearance simulation method mainly adds an appearance simulation module to the logic simulation, and its contents are as follows: design the appearance model of the simulation system equipment according to the physical appearance, and design the storage path; divide the physical appearance equipment into status display equipment and input equipment according to its composition, wherein the status display equipment establishes display parameters, and the input equipment is designed as the input status according to the type of input equipment and establishes corresponding parameters to complete the dynamic design; establish a mapping relationship between the appearance model and the physical equipment; obtain the physical equipment flag bit and dynamic data parameters from the logic configuration, and establish an association relationship with the appearance model; generate an image display screen according to the physical equipment configuration information in the logic configuration; in the cyclic task scheduling of the logic simulation, construct a device appearance status update module to update the status of the input device, and establish an appearance update module after the logic simulation module to update the structure calculated by the logic simulation to the screen appearance.
[0112] For example, the control function of the main controller needs to be assisted by certain peripherals, such as mode switches, LCD / LED display lights, to switch the running process or display the control status, etc. The project designs simulation library models that are gradually refined, such as equipment simulation module library, component library, and device library. Users combine basic device simulation models (such as mode development, LED, etc.) to form component models (control process switching components, communication interface components), and then combine component models to build different module models (main controller module, IO control module, etc.) to form control algorithms and hardware control units that meet different functional requirements, and realize behavioral-level modeling and simulation of embedded main controllers.
[0113] The basic device model design is as follows:
[0114] Operation mode switch and locking switch: The physical lower computer determines the key position status by responding to the conduction of the hard-wired line. The VPU (virtual master control module) determines the key position status by obtaining the memory unit of the key switch, and the human-machine interface provides an image of the memory unit of the key switch that can be manually operated.
[0115] Reset switch: Similar to the implementation of the operating mode switch and the locking switch.
[0116] LCD: The physical lower computer transmits the string to be displayed to the LCD, and the LCD driver in the MPU realizes the screen display; the VPU determines the content to be displayed according to the actual execution status of the system, sends it to the human-machine interface, and then displays it on the human-machine interface.
[0117] LED: The on / off status of the light is realized by the high and low levels of the hard-wired wires in the physical lower computer; the VPU sends the lighting signal to the human-machine interface through the actual execution status of the system and displays the on / off status of the light on it.
[0118] S3: Fault Simulation
[0119] The specific process of fault simulation is as follows: obtaining the data model after the fault occurs; constructing the mapping relationship between the fault type, source data and its subsequent data according to the data model after the fault occurs; in the cyclic task scheduling of logic simulation, constructing a fault trigger module before the logic simulation module, obtaining the fault trigger instruction and passing it to the mapped source data, and the logic configuration uses the source data for logical calculation to realize fault simulation.
[0120] For example, in order to simulate the failure of the DI module that collects BUP control instructions, during the simulation, the fault instruction of the failure of the DI module is triggered through the human-machine interface. After receiving the fault instruction, the value of the corresponding collected signal value of the module is set to 0, the signal bit is bad, and the logic configuration uses this value for simulation, thereby realizing the simulation of the fault.
[0121] In step 2, the high-fidelity mirror virtual nuclear-grade instrumentation and control simulation system should ensure a 1:1 simulation effect between the mirror system and the physical system. The core modules in the physical instrumentation and control system include the main controller and functional modules; functional modules include but are not limited to analog input / output modules, switch input / output modules and communication modules. All types of modules used in engineering design implementation should correspond 1:1 in the mirror virtual system.
[0122] For the main controller module, the virtual lower computer technology route is adopted to migrate the program of the physical main controller to the general computer operating environment; for other functional modules, the object-oriented modeling method is adopted to build the virtual object in the virtual control station VPS to realize functions such as electrical quantity and engineering quantity conversion and communication link construction.
[0123] Taking a typical control station of a typical project as an example, the module configuration is as follows: Figure 4 The above functional modules are virtualized, wherein the main controller-A and the main controller-B are virtualized as virtual main controllers A / B, and other functional modules are virtualized as virtual analog input module objects.
[0124] like Figure 5 As shown, the virtual master controller A / B runs independently and executes the control configuration logic. The virtual analog / switch input / output module object is located in the virtual control station VPS. For example, for the virtual analog input module, for the input value of 10mA, it is mapped to the engineering quantity lower limit plus 37.5% in the range of 4mA-20mA. The virtual communication module object establishes a TCP connection between the control station and the opposite control station.
[0125] In step three, in order to realize the system simulation function and high-fidelity communication simulation at the same time, the complex architecture is summarized into three general levels, as shown in Figure 6. Based on the layered strategy decoupling, a three-layer network architecture of the securely isolated nuclear-level intra-station communication network layer, the nuclear-level inter-station communication network layer, and the simulation control network layer is designed. The organic separation of the simulation control network and the virtual intra-station and inter-station security communication network is realized. The data in the same layer only flows in this layer, and the amount of data flowing between the control layers is controlled to reduce the complexity.
[0126] In the intra-station communication network layer, the shared memory is used to simulate the communication mode of the physical LVDS bus. Combined with the characteristics of DCS, intra-station communication mainly refers to the communication between the two hot standby main controllers, which is implemented in the form of backplane LVDS in DCS, and the content is the real-time value of the variables of this control station. In the mirror virtual system, the shared memory is used to realize the communication simulation. Variables are divided into analog quantities and switch quantities. The format of shared memory content is as follows: Figure 7 shown.
[0127] At the nuclear-level inter-station communication network layer, the inter-control station communication of the nuclear-level DCS requires the use of a protocol in a custom format. Therefore, the mirror virtual system uses the extended encapsulation of the custom protocol to achieve high-fidelity inter-station communication simulation. The point-to-point TCP communication protocol is used to encapsulate the above custom protocol for a second time, and data packets of various scenarios are supplemented and encapsulated into TCP application packets for data transmission to meet the deterministic requirements of inter-station communication.
[0128] At the simulation control network layer, it does not simulate the role of the physical DCS, but aims to coordinate the work of various modules of the mirror virtual system.
[0129] The communication structure of a typical system is as follows: Figure 8 As shown. Virtual master control VPU-A and VPU-B realize communication between them by sharing content, synchronizing the real-time values of analog and switch quantities. The virtual control stations VPS use TCP protocol to encapsulate the original custom protocol and exchange data between stations. SDS controls the work of each control station in the simulation control network.
[0130] Multiple emulation host mode such as Fig. 9 As shown, the virtual control station of the simulation system is established on two simulation hosts, that is, the 1st to Nth VPSs are established on the first SHS, and the (N+1)th to Mth VPSs are established on the second SHS. The simulation data and management service SDS is established on the previous SHS. The SDS communicates with all VPSs established on the two simulation hosts. The simulation management software SPM communicates with the simulation data and management service SDS, sends simulation instructions, and obtains required information. The security display station SVDU and the virtual engineer station VMTS communicate with each VPS to respectively realize functions such as displaying the user interaction interface of the simulation system and configuration download monitoring.
[0131] Each virtual control station VPS of the simulation system is responsible for managing two virtual master controls VPU, providing communication and data scheduling services for the virtual master controls. The communication data with the simulation data and management services includes IO data, instructions and feedback data. Data management includes the management of input and output data, where input data includes all IO input data, i.e. analog input data and digital input data. Output data includes all IO output data and all simulation device status information, including the mode, locking state, fault state of the virtual master control, fault state of the virtual board, etc.
[0132] The operation of each virtual master control unit VPU requires four types of information: device configuration information, parameter variable information, algorithm logic information, and variable list. The above files are compiled and downloaded by the engineer station, transmitted to the virtual control station VPS through TCP / IP communication, and then distributed to the virtual master control unit VPU by VPS. VPU parses the board type configuration and other information of the control station through the device configuration information, parses the parameter variable information of the simulation control station through the parameter variable information, performs subsequent algorithm logic operations through the algorithm logic information, and parses the variable information of the simulation control station through the variable list.
[0133] Embodiment 2: A nuclear-level instrumentation and control system simulation system based on mirror virtualization, the system is used to implement a nuclear-level instrumentation and control system simulation method based on mirror virtualization as described in Embodiment 1, such as Fig.10 As shown, it includes: simulation host service SHS, which is used to provide simulation services for all simulation modules; simulation data management service SDS, which is used to manage data services, simulation data processing, and data management subsystems for storing defined project variables; virtual control station VPS, which is used to simulate the control station and provide a communication platform between modules; virtual main control unit VPU, which is used for the virtual main control module subsystem; virtual safety display unit VSVDU, which is used to simulate the safety display unit subsystem; simulation management software SPM, which is used to provide an interface with the user, issue simulation instructions, online monitoring, and user management subsystems; virtual engineer station VMTS, which is a software tool for generating project files, downloading software, and completing downloading and verification.
[0134] The simulation management software SPM performs the function of the human-machine interface. The program can be started on any host in the local area network. Its main function is to serve as a small trainer station, provide a simulation operation interface, and provide some equipment configuration display and operation interface.
[0135] The safety display unit (full display station) SVDU runs on an independent computer and is used to display the DCS system user interface. The virtual engineer station VMTS runs on an independent computer and provides control system configuration, configuration, and configuration download functions as a DCS system engineer station.
[0136] SHS runs as a resident process on the simulation host server. Each simulation host server only starts one simulation host service process, whose main function is to receive VPU remote start instructions and start the corresponding VPU process according to the instructions.
[0137] The simulation data and management service SDS runs as a resident process on any server. Each project only starts one simulation data and management service process. Its main function is to provide simulation project management, IO data caching, simulation instruction processing or transfer, etc.
[0138] The virtual master VPU runs on the simulated host server and is started by the VPS. In the hot standby configuration mode, each VPS can start up to two VPU processes at the same time. Each started process represents an independent virtual master. Each process is distinguished by passing in different parameters (VPS name, VPU ID, etc.) when starting.
[0139] The virtual control station VPS runs on the simulation host server and can start multiple VPS processes at the same time. Each started process represents an independent virtual control station. Each process is distinguished and assigned a corresponding IP address by passing in different parameters (name, specified IP, etc.) when starting. The IP address bound to each VPU process is added to the simulation host server when the process starts, and the relevant IP configuration is automatically cleared when the VPU process exits.
[0140] The simulation host service SHS and the simulation data management service SDS are used to provide the simulation environment. The MTS used to generate the project files exports the project files and imports them into the human-computer interface SPM. SPM sends the files to SDS by establishing a connection with SDS, prepares the project simulation environment and establishes the simulation path.
[0141] Start the system, and the MTS used to generate the download file passes the algorithm configuration file to the simulation subsystem VPU and VSVDU. After downloading and verification, the simulation subsystem places the algorithm configuration file according to the simulation path.
[0142] MTS passes the defined variable file to SDS to complete the definition of the variable. SDS sends the parameter variable information to SPM to directly display the reserves on the screen.
[0143] The human-machine interface system SPM also displays the current project information. After downloading is completed, the current project is restarted for project simulation.
[0144] Embodiment 3: A nuclear-grade instrumentation and control system simulation device based on mirror virtualization, the device is used to implement a nuclear-grade instrumentation and control system simulation system based on mirror virtualization recorded in Embodiment 2, such as Fig.11 As shown, it includes: at least one simulation host server, which is used to carry the simulation part of the main control module in the simulation system software, and is used to issue and receive simulation instructions, receive control instructions from the security display station, and send information to the security display station to display information; a security display station simulation device, which is used to receive simulation instructions and issue control instructions to simulate the security-level device for control operations. The security-level display station simulation device is an all-in-one machine with a touch screen and hard buttons; an engineer station hardware, which is used to carry the virtual engineer station software.
[0145] Among them, the operator station runs on the industrial computer, the simulation host service and simulation data management software run on the server; and VMTS is connected to VSVDU, the simulation host running VPS or the industrial computer running VSVDU through the maintenance network to realize downloading, monitoring and maintenance functions.
[0146] The TCP / IP communication method is used between each simulation control station. The simulation control station started first acts as the server, and the simulation control station started later acts as the client. A TCP / IP connection is established to achieve communication.
[0147] The process of using the system is to first draw the algorithm configuration diagram on the MTS, compile it into a VPU executable format file, and then download it to the VPS or VSVDU. After starting the VPU or VSVDU, the VPU or VSVDU reads the configuration file and then performs logical operations.
[0148] Working principle: The present invention reproduces the performance and behavior of the field control station by combining software running in a desktop operating system with hardware devices, ultimately achieving the purpose of simulating the operation of various functional modules in a nuclear-grade instrumentation and control system. The simulation system can be applied to operator training, design verification, scientific research, and many other aspects.
[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0150] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0153] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A nuclear-level instrumentation and control system simulation method based on mirror virtualization, characterized in that: The following steps are involved: Key equipment simulation: Use embedded software to develop key equipment of the instrumentation and control system, configure the control logic of the instrumentation and control system in the engineer station, compile and download it to the virtual embedded environment for operation; System configuration simulation: For the core modules in the physical instrumentation and control system, a distributed control system is constructed to maintain a one-to-one simulation effect between the mirrored virtual system and the physical system; System communication simulation: Based on the layered strategy decoupling, a three-layer network architecture is designed, which includes a securely isolated nuclear-level intra-station communication network layer, a nuclear-level inter-station communication network layer, and a simulation control network layer, to achieve the organic separation of the simulation control network from the virtual intra-station and inter-station security communication networks; The key equipment simulation is divided into logic simulation, response time simulation, appearance simulation and fault simulation; The process of the logic simulation is specifically as follows: According to the acquired logical configuration, the system configuration data is parsed to automatically obtain the interface relationship between the simulation object and the outside, and a data communication mechanism based on data transmission is generated; According to the multi-level data structure of logical configuration, design the storage path and update mechanism of appearance, logic and fault, design the display of equipment appearance status and its update mechanism, design the association between equipment appearance status and logic, design equipment fault triggering mechanism and data association during fault process, and maintain their association after encapsulation; The logic configuration is consistent with the logic configuration used in the physical instrumentation and control system, and can be directly compiled to generate an executable file, which can be downloaded to a virtual embedded environment for operation; And, the logic algorithm block used in the logic configuration is consistent with the algorithm used in the physical instrumentation and control system; The response time simulation is to add a response time design allocation strategy before and after the loop scheduling of the logic simulation. The specific process is: Formulate a simulation time advancement mechanism based on the set simulation time and simulation speed; Sending advancement mechanisms to each independent model to manage the time of each asynchronous model; In the advancement mechanism, the simulation step size is set according to the simulation speed to achieve adjustable speed simulation; By recording the residual simulation time each time, when the accumulated residual simulation time is close to the simulation step length, a simulation calculation is supplemented; The process of the appearance simulation is specifically as follows: Design the appearance model of the simulation system equipment according to the physical appearance, and design the storage path; According to the physical appearance of the device, it is divided into a state display device and an input device. The state display device establishes display parameters, and the input device is designed as an input state according to the type of input device and establishes corresponding parameters to complete the dynamic design; Establish a mapping relationship between the appearance model and the physical device; Obtain physical device flags and dynamic data parameters from logical configuration and build associations with appearance models; Generate image display screen according to physical device configuration information in logical configuration; In the cyclic task scheduling of logic simulation, a device appearance status update module is constructed to update the status of the input device, and an appearance update module is established after the logic simulation module to update the structure calculated by the logic simulation to the screen appearance; The process of the fault simulation is specifically as follows: Obtain the data model after the failure occurs; Build a mapping relationship between fault type, source data and subsequent data based on the data model after the fault occurs; In the cyclic task scheduling of logic simulation, a fault trigger module is built before the logic simulation module to obtain the fault trigger instruction and pass it to the mapped source data. The logic configuration uses the source data to perform logic calculations to achieve fault simulation. The core modules in the physical instrumentation and control system include a main controller and a functional module; The functional modules include an analog input / output module, a switch input / output module and a communication module.
2. According to the method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1, it is characterized in that: The method further includes: Check whether the number and type of devices in the logical configuration are consistent with the statistical information; If they do not match, the device status is updated and initialized.
3. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: The method also designs a scheduling mechanism for logic simulation, including: Creating a simulation scheduling step of the logic simulation according to the operation cycle of the device to cyclically schedule the data receiving module, the device appearance status update, the fault triggering module, the logic simulation module, the appearance update module and the data sending module; Among them, each module allocates its operating time according to the operating cycle.
4. According to the method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1, it is characterized in that: The hard logic simulation in the logic simulation includes: Initialize virtual hard logic, dynamically load virtual hard logic dynamic link library, and obtain required export functions; Initialize virtual hard logic data, use the variable list acquisition interface contained in the virtual hard logic dynamic link library to obtain the required variable information, add it to the input variable list or output variable list in the project variable manager, and perform corresponding variable binding operations; The virtual hard logic runs,using the logic calculation interface contained in the virtual hard logic dynamic link library,,periodically performing logic operations.
5. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: The simulation of the main controller adopts the technical route of virtual lower computer, migrates the program of the physical main controller to the general computer operating environment, and forms a virtual embedded operating environment to support the operation of the logical configuration executable program consistent with the physical instrumentation and control system.
6. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: The simulation of the functional modules adopts an object-oriented modeling approach to construct virtual objects in the virtual control station VPS to realize the conversion of electrical quantities and engineering quantities and the construction of communication links.
7. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: In the core-level intra-station communication network layer, a shared memory method is used to simulate the communication method of a physical LVDS bus. The specific process is as follows: In DCS, the communication between the two hot standby main controllers is realized in the form of backplane LVDS, and the content is the real-time value of the variables of this control station; In the mirror virtual system, the communication simulation is realized by using the shared memory method; Among them, variables are divided into analog quantities and switch quantities.
8. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: In the nuclear-level inter-station communication network layer, the inter-control station communication of the nuclear-level DCS adopts a protocol with a custom format, uses the point-to-point TCP communication protocol to secondary encapsulate the custom protocol, and supplements data packets of various scenarios, and encapsulates them into TCP application packets for data transmission.
9. The method for simulating a nuclear-grade instrumentation and control system based on mirror virtualization according to claim 1 is characterized in that: The simulation control network layer schedules the modules of the mirror virtual system to coordinate work, and does not serve as a simulation of a physical DCS.
10. A nuclear-level instrumentation and control system simulation system based on mirror virtualization, characterized in that: The system is used to implement a nuclear-level instrumentation and control system simulation method based on mirror virtualization as described in any one of claims 1 to 9, comprising: Simulation host service SHS, used to provide simulation services for all simulation modules; Simulation Data Management Service SDS, a data management subsystem used to manage data services, simulation data processing, and storage of defined variables in the project; Virtual control station VPS, used to simulate the control station and provide a communication platform between modules; Virtual main control unit VPU, used for virtual main control module subsystem; Virtual Security Display Unit (VSVDU), a subsystem used to simulate a security display unit; The simulation management software SPM is used to provide an interface with the user, issue simulation instructions, online monitoring, and user management subsystems; Virtual Engineering Station VMTS is a software tool used to generate project files, download software, and complete download and verification.
11. A nuclear-grade instrumentation and control system simulation device based on mirror virtualization, characterized in that: The device is used to implement a nuclear-level instrumentation and control system simulation system based on mirror virtualization as claimed in claim 10, comprising: At least one simulation host server, used to carry the simulation part of the main control module in the simulation system software, and to issue and receive simulation instructions, receive control instructions from the security display station, and send information to the security display station for display; The safety display station simulation device is used to receive simulation instructions and issue control instructions to simulate the safety-level device for control operations. The safety-level display station simulation device is an all-in-one device with a touch screen and hard buttons; Engineer station hardware, used to carry virtual engineer station software; Among them, the operator station runs on the industrial computer, and the simulation host service and simulation data management software run on the server; Furthermore, VMTS is connected to VSVDU, a simulation host running VPS or an industrial computer running VSVDU through a maintenance network to realize downloading, monitoring and maintenance functions.
Citation Information
Patent Citations
Method for automatically testing DCS (Digital Control System) control cabinet
CN102184749A
Method and system for testing configuration logic design of DCS (Distributed Control System) of nuclear power station
CN102522128A