Train network control system simulation test device, method and system based on OPC
Through the OPC-based train network control system simulation test device, the data interaction and simulation test are implemented using software, which solves the problem that simulation test relies on physical equipment in the existing technology, and improves the simulation test efficiency and cost-effectiveness.
Patent Information
- Application Number
- CN202411484528.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-18
AI Technical Summary
The existing simulation testing methods of train network control systems rely on physical equipment, resulting in long procurement cycles, high costs, poor versatility and low simulation testing efficiency.
The OPC-based train network control system simulation test device is adopted to realize software-level data interaction and simulation testing through the combination of data interaction unit, CCU logic simulation unit, HMI interface simulation unit, hardware circuit and subsystem simulation unit.
By breaking through the limitations of semi-physical simulation testing methods on physical equipment, designers can complete simulation testing on the PC side, saving manpower, material resources and time costs, and improving simulation testing efficiency.
Smart Images

Figure CN119472587A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of rail transit, and in particular to a train network control system simulation test device, method and system based on OPC (full name: Object Linking and Embedding (OLE) for Process Control, i.e., OLE for process control). Background Art
[0002] With the rapid development of high-speed train technology, the comfort and intelligence level of high-speed EMUs have been qualitatively improved. As the central system of the EMU, the train network control system undertakes important functions such as train operation control, information display and comprehensive diagnosis. With the continuous improvement of the intelligence level of the train electrical system, the functions of the train network control system are becoming increasingly complex. Therefore, how to improve the efficiency of the development and debugging of the train network control system and ensure the safe and stable operation of the train network control system has become an important issue that all companies need to solve and improve urgently.
[0003] At present, the existing technology adopts the semi-physical simulation test method to carry out the simulation test of the logical function of the train network control system. The network control logic runs on the CCU (Central Control Unit) chassis, the HMI interface program runs on the driver's display screen, the train hard-wired circuit and subsystem logic are simulated on the industrial computer through CB software, and the various devices are connected through physical cables to achieve joint simulation testing.
[0004] However, this type of simulation test method relies on physical equipment such as the CCU chassis, driver display screen, and physical cables, and requires a dedicated site for storage, assembly, and equipment debugging. It has problems such as long procurement cycle, high manpower and material costs, poor versatility, and low simulation test efficiency. Summary of the invention
[0005] In order to solve one of the above-mentioned technical defects, an OPC-based train network control system simulation test device, method and system are provided in an embodiment of the present application.
[0006] A first aspect of an embodiment of the present application provides an OPC-based train network control system simulation test device, the device comprising:
[0007] Data interaction unit, used to build OPC communication server and perform communication configuration;
[0008] A CCU logic simulation unit, used for reading the data information in the data interaction unit to perform CCU control logic simulation, and sending the simulation result to the HMI interface simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit;
[0009] An HMI interface simulation unit, used to display the data information read from the data interaction unit, and send the received control instructions to the CCU logic simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit;
[0010] The hardware circuit and subsystem simulation unit is used to build a train hardware circuit model and a subsystem control model, simulate the data information forwarded by the data interaction unit, and send the simulation results to the CCU logic simulation unit and the HMI interface simulation unit through the data interaction unit.
[0011] A second aspect of an embodiment of the present application provides a simulation test method for a train network control system simulation test device based on OPC, the method comprising:
[0012] Build the data interaction unit, CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit respectively;
[0013] Connecting the CCU logic simulation unit, the HMI interface simulation unit and the hardware circuit and subsystem simulation unit to the data interaction unit;
[0014] The data interaction unit, CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit are started, and simulation tests are performed according to test cases.
[0015] The third aspect of the embodiment of the present application provides an OPC-based train network control system simulation test system, the system includes an industrial computer, a first PC terminal, a second PC terminal, a switch and the OPC-based train network control system simulation test device described in the first aspect of the embodiment of the present application, the data interaction unit and the hardware circuit and subsystem simulation unit are built in the industrial computer, the first PC terminal has a built-in CCU logic simulation unit, the second PC terminal has a built-in HMI interface simulation unit, and the industrial computer, the first PC terminal and the second PC terminal are all connected to the switch.
[0016] The OPC-based train network control system simulation test device provided in the embodiment of the present application is used, each simulation unit is implemented by software, and the data interaction between the software in each simulation unit is communicated by establishing an OPC communication server to form an OPC-based digital train network control system simulation test platform. In this way, the limitations of the existing semi-physical simulation test method on physical equipment are broken through, and the designer can complete the simulation test of the train network control system on the PC side, saving a lot of manpower, material resources and time costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 A functional block diagram of an OPC-based train network control system simulation test device provided in Example 1 of the present application;
[0019] Figure 2 A principle block diagram of the OPC-based train network control system simulation test method provided in Example 2 of the present application;
[0020] Figure 3 A flow chart of a train network control system simulation test method based on OPC provided in Example 2 of the present application;
[0021] Figure 4 This is a principle block diagram of the OPC-based train network control system simulation test system provided in Example 3 of the present application. DETAILED DESCRIPTION
[0022] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0023] Example 1
[0024] like Figure 1 As shown, this embodiment proposes a train network control system simulation test device based on OPC, which is composed of a data interaction unit, a CCU logic simulation unit, an HMI interface simulation unit and a hardware circuit and subsystem simulation unit. The CCU logic simulation unit is used to simulate the train CCU control logic. The HMI interface simulation unit is used to simulate the driver display interface program. The hardware circuit and subsystem simulation unit is used to simulate the train's key switches, hard-wired circuits, and the internal logic of subsystems such as traction and braking. The data interaction unit is used to realize the connection and data interaction between the above-mentioned CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit, and finally realize the joint simulation test of the train network control system.
[0025] Specifically, in this embodiment, the data interaction unit is used to build an OPC communication server and perform communication configuration. The CCU logic simulation unit is used to read the data information in the data interaction unit to perform CCU control logic simulation, and send the simulation results to the HMI interface simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit. The HMI interface simulation unit is used to display the data information read from the data interaction unit, and send the received control instructions to the CCU logic simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit. The hardware circuit and subsystem simulation unit is used to build a train hardware circuit model and a subsystem control model, simulate the data information forwarded by the data interaction unit, and send the simulation results to the CCU logic simulation unit and the HMI interface simulation unit through the data interaction unit.
[0026] More specifically, the data interaction unit of this embodiment has the following functions:
[0027] (1) Build an OPC communication server using KEPServerEX6 software;
[0028] (2) The OPC communication server performs communication configuration to implement the configuration and import of data tags;
[0029] (3) As the data transmission hub of OPC communication, the data interaction unit can be connected with the CCU logic simulation unit, the HMI interface simulation unit and the hardware circuit and subsystem simulation unit to realize data interaction among the CCU logic simulation unit, the HMI interface simulation unit and the hardware circuit and subsystem simulation unit.
[0030] The CCU logic simulation unit has the following functions:
[0031] (1) As an OPC UA communication client, it connects to the OPC communication server through the OPC Toobox module of Matlab software to read and write relevant data;
[0032] (2) The CCU logic simulation unit can perform CCU control logic simulation through the Simulink tool of Matlab software, taking the variable information read from the OPC communication server as the control input, and sending the final control output data to the HMI interface simulation unit and the hardware circuit and subsystem simulation unit through the OPC communication server.
[0033] The HMI interface simulation unit has the following functions:
[0034] (1) As an OPC UA communication client, it connects to the OPC communication server through the open62541 tool to read and write relevant data;
[0035] (2) The HMI interface simulation unit uses the train parameter information read from the OPC communication server as input and displays it on the HMI interface by running the HMI interface display code. The train parameter information may be parameter information of key equipment of the train or fault status information, etc., which is not specifically limited in this embodiment;
[0036] (3) The HMI interface simulation unit can also receive user operations, convert the received user operations into control instructions, and send the control instructions to the CCU logic simulation unit and the hardware circuit and subsystem simulation unit through the OPC communication server, where the control instructions can be device control or cut-off reset, etc., which is not specifically limited in this embodiment.
[0037] The hardware circuit and subsystem simulation unit has the following functions:
[0038] (1) Use the Configure CB_OPC tool of ControlBuild software to connect to the OPC communication server to read and write relevant data;
[0039] (2) Use ControlBuild software to build a train hardware circuit model, simulate the working status of physical switches and hard-wired circuits, and implement data interaction with the CCU logic simulation unit and HMI interface simulation unit through the OPC communication server;
[0040] (3) Build a subsystem control model through ControlBuild software, and combine it with the hardware circuit model to provide controlled object simulation and operation parameter feedback for the CCU logic simulation unit and the HMI interface simulation unit, where the subsystem control model may include but is not limited to subsystems such as traction, braking, air conditioning or door.
[0041] This embodiment uses software to implement each simulation unit, and establishes an OPC communication server to facilitate data interaction between the software in each simulation unit, thereby forming an OPC-based digital train network control system simulation test platform. This breaks through the limitations of existing semi-physical simulation test methods on physical equipment, and designers can complete the simulation test of the train network control system on the PC, saving a lot of manpower, material resources and time costs.
[0042] Example 2
[0043] like Figure 2 As shown, this embodiment proposes a simulation test method for a train network control system simulation test device based on OPC, which can be applied to the train network control system simulation test device based on OPC proposed in Example 1. The method specifically includes:
[0044] S101, respectively build a data interaction unit, a CCU logic simulation unit, an HMI interface simulation unit, and a hardware circuit and subsystem simulation unit;
[0045] S102, connecting the CCU logic simulation unit, the HMI interface simulation unit and the hardware circuit and subsystem simulation unit to the data interaction unit;
[0046] S103, start the data interaction unit, CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit, and perform simulation tests according to test cases.
[0047] Specifically, Figure 3 As shown, the specific process of the method proposed in this embodiment is as follows:
[0048] (1) Use KEPServerEX6 software to build the OPC communication server, complete the configuration and import of data tags, and establish a data interaction unit;
[0049] (2) Use ControlBuild software to build hardware circuits and subsystem simulation units;
[0050] (3) Use Matlab software to establish CCU logic simulation unit;
[0051] (4) Use Qt software to establish an HMI interface simulation unit;
[0052] (5) Use the Configure CB_OPC tool to implement data interaction between the hardware circuit and subsystem simulation unit ControlBuild and the data interaction unit OPC communication server;
[0053] (6) Use the OPC Toobox module to realize data interaction between the CCU logic simulation unit Matlab and the data interaction unit OPC communication server;
[0054] (7) Use open62541 tools to implement data interaction between the HMI interface simulation unit Qt and the data interaction unit OPC communication server;
[0055] (8) Start simulation tests of the data interaction unit, CCU logic simulation unit, HMI interface simulation unit, and hardware circuit and subsystem simulation unit, and keep data synchronization among the CCU logic simulation unit, HMI interface simulation unit, and hardware circuit and subsystem simulation unit within the simulation time;
[0056] (9) Carry out simulation testing according to test cases;
[0057] (10) If problems are found during the test, the corresponding code can be modified directly through the simulation software and the simulation test can be re-performed to verify the functional correctness;
[0058] (11) If no problems are found after the test, the code will be uploaded to the physical controller during the train commissioning phase to complete the final functional verification.
[0059] This embodiment uses Matlab software to replace the CCU chassis to complete the CCU logic simulation, uses Qt software to replace the driver display screen to complete the HMI interface simulation, uses ControlBuild software to replace the subsystem controller to realize the hardware circuit and subsystem logic simulation, and realizes the data interaction between the simulation modules through the OPC communication method, thereby realizing the method of digital simulation test of the train network control system. Get rid of the dependence of the semi-physical simulation test method on hardware equipment, saving a lot of manpower, material resources and time costs. Both the CCU logic simulation unit and the HMI interface simulation unit use the OPC UA communication method for data interaction, support distributed simulation test methods, and improve test portability.
[0060] Example 3
[0061] like Figure 4 As shown, this embodiment proposes an OPC-based train network control system simulation test system, which includes an industrial computer 1, a first PC terminal 2, a second PC terminal 3, a switch 4 and an OPC-based train network control system simulation test device, wherein the specific composition and working principle of the OPC-based train network control system simulation test device can refer to the contents recorded in Examples 1 and 2, and will not be repeated in this embodiment.
[0062] The CCU control logic and HMI interface display program of the train network control system are generally developed by different network system designers. Both parties perform interface configuration and software development work in accordance with the established protocol specifications. In order to ensure the correctness of data interaction and logical functions between the CCU, display screen, hardware circuits and subsystems, the network control system needs to be simulated and tested before the equipment is put on the train. In the common method, the CCU logic code and HMI display code need to be uploaded to the CCU chassis and the driver's display screen respectively, and connected to the industrial computer through communication cables. The simulation test can only be carried out after the test bench is assembled and debugged. In this embodiment, the PC client can be connected to the industrial computer equipped with an OPC communication server and a train hardware circuit and subsystem simulation unit, and the network control system simulation test can be carried out.
[0063] Specifically, the system is composed of an industrial computer 1, a first PC terminal 2, a second PC terminal 3, a switch 4 and a train network control system simulation test device based on OPC. Among them, the data interaction unit and the hardware circuit and subsystem simulation unit are built in the industrial computer 1. The first PC terminal 2 has a built-in CCU logic simulation unit. The second PC terminal 3 has a built-in HMI interface simulation unit. The industrial computer 1, the first PC terminal 2 and the second PC terminal 3 are all connected to the switch 4.
[0064] This embodiment uses software to implement each simulation unit, and establishes an OPC communication server to facilitate data interaction between the software in each simulation unit, thereby forming an OPC-based digital train network control system simulation test platform. This breaks through the limitations of existing semi-physical simulation test methods on physical equipment, and designers can complete the simulation test of the train network control system on the PC, saving a lot of manpower, material resources and time costs.
[0065] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0066] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0067] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A train network control system simulation test device based on OPC, the device comprising: Data interaction unit, used to build OPC communication server and perform communication configuration; A CCU logic simulation unit, used for reading the data information in the data interaction unit to perform CCU control logic simulation, and sending the simulation result to the HMI interface simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit; An HMI interface simulation unit, used to display the data information read from the data interaction unit, and send the received control instructions to the CCU logic simulation unit and the hardware circuit and subsystem simulation unit through the data interaction unit; The hardware circuit and subsystem simulation unit is used to build a train hardware circuit model and a subsystem control model, simulate the data information forwarded by the data interaction unit, and send the simulation results to the CCU logic simulation unit and the HMI interface simulation unit through the data interaction unit.
2. The device according to claim 1, characterized in that The data interaction unit builds an OPC communication server through KEPServerEX6 software.
3. The device according to claim 1, characterized in that The CCU logic simulation unit is connected to the OPC communication server via the OPC Toobox module of Matlab software.
4. The device according to claim 1 or 3, characterized in that: The CCU logic simulation unit performs CCU control logic simulation through the Simulink tool of Matlab software, uses the variable information read from the OPC communication server as control input data, and sends the control output data to the HMI interface simulation unit and the hardware circuit and subsystem simulation unit through the OPC communication server.
5. The device according to claim 1, characterized in that The HMI interface simulation unit is connected to the OPC communication server via the open62541 tool.
6. The device according to claim 1 or 5, characterized in that The HMI interface simulation unit runs the HMI interface display code, takes the train parameter information read from the OPC communication server as input, and displays it on the HMI interface.
7. The device according to claim 1, characterized in that The hardware circuit and subsystem simulation unit are connected to the OPC communication server through the Configure CB_OPC tool of the ControlBuild software.
8. The device according to claim 1 or 7, characterized in that The hardware circuit and subsystem simulation unit builds a train hardware circuit model through ControlBuild software to simulate the working status of physical switches and hard-wired circuits.
9. The device according to claim 1 or 7, characterized in that: The hardware circuit and subsystem simulation unit builds a subsystem control model through ControlBuild software, and combines the hardware circuit model to provide controlled object simulation and operation parameter feedback for the CCU logic simulation unit and the HMI interface simulation unit.
10. A simulation test method for an OPC-based train network control system simulation test device according to any one of claims 1 to 9, characterized in that: The method comprises: Build the data interaction unit, CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit respectively; Connecting the CCU logic simulation unit, the HMI interface simulation unit and the hardware circuit and subsystem simulation unit to the data interaction unit; The data interaction unit, CCU logic simulation unit, HMI interface simulation unit and hardware circuit and subsystem simulation unit are started, and simulation tests are performed according to test cases.
11. A train network control system simulation test system based on OPC, characterized in that: The system includes an industrial computer, a first PC terminal, a second PC terminal, a switch and the OPC-based train network control system simulation test device as described in any one of claims 1 to 9, the data interaction unit and the hardware circuit and subsystem simulation unit are built in the industrial computer, the first PC terminal has a built-in CCU logic simulation unit, the second PC terminal has a built-in HMI interface simulation unit, and the industrial computer, the first PC terminal and the second PC terminal are all connected to the switch.
Citation Information
Patent Citations
Semi-physical simulation testing platform of train control network
CN102323761A
Simulation test system and simulation test device of train network control software
CN102567205A