CN106940533B - Cloud super real-time simulation platform and hardware-in-loop based real-time decision method - Google Patents
Cloud super real-time simulation platform and hardware-in-loop based real-time decision method Download PDFInfo
- Publication number
- CN106940533B CN106940533B CN201710233149.8A CN201710233149A CN106940533B CN 106940533 B CN106940533 B CN 106940533B CN 201710233149 A CN201710233149 A CN 201710233149A CN 106940533 B CN106940533 B CN 106940533B
- Authority
- CN
- China
- Prior art keywords
- controller
- output variable
- variable value
- real
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention discloses a cloud super real-time simulation platform and hardware in-loop based real-time decision method, which relates to the field of industrial automation control system software methods and comprises the steps of reading an input value, writing the input value into a first controller and a second controller, respectively executing logic operation by the first controller and the second controller to obtain a first output variable value and a second output variable value, comparing the second output variable value with a fault tree, if a fault is judged to exist, forcibly writing a third output variable value into the first controller and entering the next step, and if the fault is judged not to exist, directly entering the next step; and judging whether the first output variable value is the same as the second output variable value or whether the third output variable value is the same as the second output variable value, returning to the initial step if the first output variable value is the same as the second output variable value, and assigning the second output variable value to be the first output variable value or the third output variable value according to different conditions and returning to the initial step if the second output variable value is different from the first output variable value.
Description
Technical Field
The invention relates to a software method of an industrial automation control system, in particular to a cloud super real-time simulation platform and hardware-in-the-loop based real-time decision method.
Background
In an industrial automation control system, system simulation mostly follows a Model-View-Controller (MVC) mode, a Model pointer describes physical characteristics and functional behavior characteristics of a control object, and the state of the control object is saved in the simulation process; the view refers to a user visual interface, displays the model state in the simulation process, and allows a user to input parameters and transmit the parameters to the controller; the controller provides a control algorithm that updates algorithm parameters in response to user manipulation. When a change in the control algorithm occurs, the changed state will be sent to the model. And when the model receives the request, the updated behavior characteristics are obtained by calculating the state change through the physical model and are returned to the controller.
The system simulation method mainly comprises two modes of closed-loop simulation and in-loop simulation. In the closed-loop simulation mode, the model and the controller are both in software simulation, and real-time or super-real-time simulation is realized by deploying the model and the controller in a computer, a server or a cloud. In the ring simulation, data exchange with a model running on a computer is realized by deploying a controller to corresponding physical equipment and by means of Ethernet, USB or industrial field bus.
In the long-time operation process of the existing industrial automatic control system, sudden failures without warning often occur in system hardware, and even if the system passes long-time closed-loop simulation verification, unknown software errors and unknown errors under extreme conditions cannot be completely avoided. In addition, the existing loop simulation scheme adopts a full-software simulation method, so that the time period for establishing the model is long, the cost is high, the accuracy is low, and the difference between the simulation result and the real result is large; and the simulation platform mostly carries out super real-time simulation in an off-line mode, and no matter a hardware-in-loop simulation method or a full-software simulation method, real-time intervention on an on-line system according to an off-line simulation result cannot be realized so as to avoid faults.
Disclosure of Invention
In view of the above defects in the prior art, the technical problem to be solved by the present invention is to perform self-diagnosis when a sudden fault occurs during the operation of the industrial automation control system, so as to increase the speed of system fault diagnosis, realize the capability of predicting the fault before the fault occurs, perform real-time intervention on the industrial automation control system, and perform self-repair to avoid the fault.
In order to solve the problems, the invention provides a cloud super real-time simulation platform and hardware-in-the-loop based real-time decision method, which comprises the following steps:
Further, the input values in the step 100 are all input values read through an industrial fieldbus, and the first controller and the second controller read the input values at the same time.
Further, the first controller is an industrial controller, the second controller is a virtual controller, and the second controller is a virtual controller mirror image established by the cloud super real-time simulation platform for the first controller.
Further, the first controller and the second controller simultaneously establish a closed-loop connection with an input device, and the first controller and the second controller periodically read the input value.
Further, the operation logic in step 300 is an actual working logic of the first controller, and the second controller simulates one or more next update cycles by using the operation logic according to the input value.
Further, the failure in step 410 includes a problem causing a system shutdown and a process stop.
Further, the writing of the third output variable value to the first controller in the step 500 is performed in real time, and the cloud super real-time simulation platform sends a force rewrite instruction to the first controller, so as to prevent a fault from occurring.
Further, the decision method is based on a system comprising a cloud super real-time simulation platform, a sensor and an actuator, an industrial controller and industrial system equipment, wherein the cloud super real-time simulation platform and the industrial controller are connected through an industrial Ethernet, the industrial controller and the sensor and the actuator are connected through an industrial field bus, and the sensor and the actuator are connected to the industrial system equipment; the system includes at least one of the sensors, at least one actuator, and at least one of the industrial controllers.
Further, the cloud super real-time simulation platform comprises a communication module, a virtual controller operation stack and a decision auxiliary manager, wherein the communication module reads an input value through an industrial field bus, a sensor and an actuator and writes the input value into the virtual controller operation stack; the virtual controller operation stack comprises one or more virtual controller operation environments, each virtual controller operation environment operates independently, and after the input value is processed, the virtual controller pushes the generated second output variable value to the decision auxiliary manager; and the decision auxiliary manager compares the received second output variable value with fault tree data preset in a cloud super real-time simulation platform database, judges whether a fault occurs according to a comparison result, searches a solution of the corresponding fault from the database and writes the solution back to the industrial controller.
Further, when the system starts to deploy an industrial automation control program, control codes are uploaded to the industrial controller and the virtual controller at the same time.
The invention provides an online real-time decision-making method based on a cloud super real-time simulation platform and equipment mixed ring, which particularly realizes super real-time simulation by using industrial automation control system software, judges equipment faults in advance according to a simulation result, realizes self-protection by a real-time online monitoring means and has the following advantages:
1. the invention provides a method for prejudging the fault of an industrial automatic control system, which greatly reduces the downtime of the industrial automatic production process, improves the production efficiency, and reduces the economic loss and the waste of industrial raw materials caused by the fault of the system;
2. according to the method, the cloud platform is used as simulation and decision-making auxiliary computing resources, a user can customize the computing capacity of the cloud platform according to the requirements of different industrial control systems, and the waste of time, resources and energy consumption in the simulation process is greatly reduced;
3. the super real-time simulation technology provided by the invention uses the controller and the code which are the same as the actual situation, so that the time for establishing a simulation model is saved, the time for developing and testing the system is greatly saved, and the simulation efficiency is improved.
4. The super real-time simulation technology provided by the invention achieves the effect of prejudging the system fault in advance by combining the means of closed-loop super real-time simulation and online real-time verification of the industrial controller and the virtual controller.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the decision method of the present invention;
FIG. 2 is a schematic structural diagram of a preferred embodiment of a decision method related system of the present invention;
fig. 3 is a schematic diagram of the working relationship between the cloud super real-time simulation platform and other modules in the preferred embodiment of the decision method of the present invention.
Detailed Description
The following describes in detail a preferred embodiment of a cloud-based super-real-time simulation platform and hardware-in-the-loop real-time decision method according to the present invention with reference to the accompanying drawings, but the present invention is not limited to this embodiment. In the following description of the preferred embodiments of the present invention, specific details are set forth in order to provide a thorough understanding of the present invention.
Example 1
As shown in fig. 1, a cloud super real-time simulation platform and hardware-in-the-loop based real-time decision method includes the following steps:
As shown in fig. 2, a system of a real-time decision method based on a cloud super real-time simulation platform and a hardware-in-loop includes the cloud super real-time simulation platform, sensors and actuators, an industrial controller and an industrial system device, the cloud super real-time simulation platform is connected with at least one industrial controller through an industrial ethernet, each industrial controller is connected with at least one sensor and at least one actuator through an industrial field bus, and the at least one sensor and the at least one actuator are connected to the industrial system device. As shown in fig. 2, the system includes 3 sensors and 3 actuators, 3 industrial controllers. The industrial field bus updates the connected input devices and output devices at a fixed frequency, and when each cycle period begins, the first controller or the second controller performs logic calculation according to all input values read by the industrial field bus, updates the output values of the first controller or the second controller bus and transmits the output values to the actuator.
As shown in fig. 3, the cloud super real-time simulation platform includes a communication module, a virtual controller operation stack and a decision-making auxiliary manager, where the communication module reads an input value through an industrial field bus, a sensor and an actuator, and writes the input value into the virtual controller operation stack; the virtual controller operation stack comprises one or more virtual controller operation environments, each virtual controller operation environment operates independently, and after the input value is processed, the virtual controller pushes the generated second output variable value to the decision auxiliary manager; and the decision auxiliary manager compares the received second output variable value with fault tree data preset in a cloud super real-time simulation platform database, judges whether a fault occurs according to a comparison result, searches a solution of the corresponding fault from the database and writes the solution back to the industrial controller, and thus, the fault pre-judgment and self-protection functions are realized.
When the system starts to deploy the industrial automation control program, the control codes are uploaded to the industrial controller and the virtual controller simultaneously.
Hardware-in-Loop, i.e. Hardware-in-the-Loop, is divided into the following three cases (if the simulation of the real controller is called as the virtual controller and the simulation of the real object is called as the virtual object, 3 types of simulation of the control system can be obtained:)
Firstly, a virtual controller and a virtual object are a dynamic simulation system, and are pure system simulation;
a virtual controller and an actual object are a Rapid Control Prototype (RCP) simulation system, and the system is a semi-physical simulation system;
and the other type of hardware-in-loop (HiL) simulation system is the other type of semi-physical simulation of the system.
Example 2
Embodiment 2 adopts a method and a system similar to those of embodiment 1, wherein only the cloud server adopted by the super real-time simulation computing is replaced by the local server, and the network delay can be reduced by using the local server, but the relative computing capacity of the local server is weaker than that of the cloud server.
Example 3
Embodiment 3 adopts a method and a system similar to those in embodiment 1, wherein the fault tree can be replaced by a fault defined by any custom-formatted text or data, but after the fault defined by any custom-formatted text or data is replaced, the system cannot share information, which causes difficulty in sharing and mining output data.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations can be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions that can be obtained by a person skilled in the art through logic analysis, reasoning or limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection determined by the claims.
Claims (9)
1. A real-time decision method based on a cloud super real-time simulation platform and a hardware-in-the-loop is characterized by comprising the following steps:
reading an input value;
writing the input value read in the step (100) into an input variable memory of the first controller and an input variable memory of the second controller in a step (200);
step (300) according to the input value written in step (200), the first controller executes the operation logic to obtain a first output variable value, and the second controller executes the operation logic to obtain a second output variable value;
step (400) comparing the second output variable value obtained in step (300) with a fault tree;
step (410) according to the comparison result of step (400), judging whether a fault exists: if there is a failure, proceeding to step (500), if there is no failure, proceeding to step (600);
step (500) of forcibly writing a third output variable value into the first controller according to the judgment result in step (410), and proceeding to step (600);
step (600) of comparing the first output variable value with the second output variable value according to step (410) or comparing the third output variable value with the second output variable value according to step (500);
step (610) of determining whether the first output variable value and the second output variable value in step (600) are the same or whether the third output variable value and the second output variable value are the same: if the first output variable value is the same as the second output variable value or the third output variable value is the same as the second output variable value, returning to step (100); if the first output variable value is different from the second output variable value or the third output variable value is different from the second output variable value, entering step (700);
step (700) according to the judgment result of step (610), if the first output variable value is different from the second output variable value, copying the first output variable value to the second controller, and transmitting the first output variable value to the actuator, and returning to step (100); copying the third output variable value into the second controller and delivering the third output variable value to an actuator if the third output variable value is different from the second output variable value, returning to step (100);
the first controller is an industrial controller, the second controller is a virtual controller, and the second controller is a virtual controller mirror image established by a cloud super real-time simulation platform for the first controller.
2. The cloud-based hyper-real-time simulation platform and hardware-in-the-loop real-time decision method according to claim 1, wherein the input values in the step (100) are all input values read through an industrial field bus, and the first controller and the second controller read the input values at the same time.
3. The cloud-based super real-time simulation platform and hardware-in-the-loop real-time decision method as claimed in claim 2, wherein the first controller and the second controller simultaneously establish a closed-loop connection with an input device, and the first controller and the second controller periodically read the input value.
4. The cloud-based super real-time simulation platform and hardware-in-the-loop real-time decision method according to claim 1, wherein the operation logic in the step (300) is an actual working logic of the first controller, and the second controller simulates one or more next update cycles by using the operation logic according to the input values.
5. The cloud-based hyper-real-time simulation platform and hardware-in-the-loop real-time decision method as claimed in claim 1, wherein said fault in said step (410) comprises a problem causing system shutdown, process shutdown.
6. The cloud super real-time simulation platform and hardware-in-the-loop based real-time decision method as claimed in claim 5, wherein the writing of the third output variable value to the first controller in the step (500) is performed in real time by the cloud super real-time simulation platform sending a force rewrite instruction to the first controller.
7. The cloud-based hyper-real-time simulation platform and hardware-in-the-loop real-time decision method according to any one of claims 1 to 6, wherein the decision method is based on a system comprising a cloud hyper-real-time simulation platform, a sensor and an actuator, an industrial controller and an industrial system device, wherein the cloud hyper-real-time simulation platform and the industrial controller are connected through an industrial Ethernet network, the industrial controller and the sensor and the actuator are connected through an industrial field bus, and the sensor and the actuator are connected to the industrial system device.
8. The cloud super real-time simulation platform and hardware-in-the-loop based real-time decision method as claimed in claim 7, wherein the cloud super real-time simulation platform comprises a communication module, a virtual controller operation stack and a decision auxiliary manager, wherein the communication module reads input values through an industrial field bus, a sensor and an actuator and writes the input values into the virtual controller operation stack; the virtual controller operation stack comprises one or more virtual controller operation environments, each virtual controller operation environment operates independently, and after the input value is processed, the virtual controller pushes the generated second output variable value to the decision auxiliary manager; and the decision auxiliary manager compares the received second output variable value with fault tree data preset in a cloud super real-time simulation platform database, judges whether a fault occurs according to a comparison result, searches a solution of the corresponding fault from the database and writes the solution back to the industrial controller.
9. The cloud-based super real-time simulation platform and hardware-in-the-loop real-time decision method as claimed in claim 8, wherein when the system starts to deploy an industrial automation control program, control code will be uploaded to the industrial controller and the virtual controller simultaneously.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233149.8A CN106940533B (en) | 2017-04-11 | 2017-04-11 | Cloud super real-time simulation platform and hardware-in-loop based real-time decision method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233149.8A CN106940533B (en) | 2017-04-11 | 2017-04-11 | Cloud super real-time simulation platform and hardware-in-loop based real-time decision method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106940533A CN106940533A (en) | 2017-07-11 |
CN106940533B true CN106940533B (en) | 2020-01-03 |
Family
ID=59464193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710233149.8A Active CN106940533B (en) | 2017-04-11 | 2017-04-11 | Cloud super real-time simulation platform and hardware-in-loop based real-time decision method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106940533B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3660612B1 (en) * | 2018-11-30 | 2022-12-28 | Siemens Aktiengesellschaft | Method and system for elimination of fault conditions in a technical installation |
CN110648040A (en) * | 2019-06-17 | 2020-01-03 | 河北人元科技有限公司 | Data processing system and working method thereof |
CN112306033B (en) * | 2019-07-29 | 2022-01-28 | 北京新能源汽车股份有限公司 | Vehicle-mounted controller joint test control method, device and system |
CN110751873B (en) * | 2019-11-15 | 2021-10-26 | 郑州意昂新能源汽车科技有限公司 | Method for interconnecting whole vehicle electric control practical training platform of new energy automobile and actual vehicle |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1945480A (en) * | 2006-10-17 | 2007-04-11 | 南京科远自动化集团有限公司 | General industrial controller |
CN101000490A (en) * | 2006-01-11 | 2007-07-18 | 上海电气集团股份有限公司 | Virtual machine real electric emulate system for assembling large industrial machinery |
CN101303584A (en) * | 2008-06-26 | 2008-11-12 | 上海交通大学 | Method for reconfiguring control module of reconfigurable digital controller |
CN102081358A (en) * | 2009-12-01 | 2011-06-01 | 爱默生过程管理电力和水解决方案公司 | Decentralized industrial process simulation system |
CN102759984A (en) * | 2012-06-13 | 2012-10-31 | 上海交通大学 | Power supply and performance management system for virtualization server cluster |
CN104142629A (en) * | 2013-05-09 | 2014-11-12 | 洛克威尔自动控制技术股份有限公司 | Using cloud-based data for virtualization of an industrial machine environment |
CN104267613A (en) * | 2014-09-15 | 2015-01-07 | 东北大学 | Metal rolling process automatic control hardware-in-loop simulation platform and method for experiment |
CN104570768A (en) * | 2014-12-31 | 2015-04-29 | 浙江大学 | Information physics semi-physical simulation system based on Rt-Lab and OPNET |
CN105093963A (en) * | 2015-08-12 | 2015-11-25 | 上海交通大学 | Modular robot self-repairing simulation system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2801872B1 (en) * | 2013-05-06 | 2018-06-06 | dSPACE digital signal processing and control engineering GmbH | Test device for testing a virtual control device |
-
2017
- 2017-04-11 CN CN201710233149.8A patent/CN106940533B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101000490A (en) * | 2006-01-11 | 2007-07-18 | 上海电气集团股份有限公司 | Virtual machine real electric emulate system for assembling large industrial machinery |
CN1945480A (en) * | 2006-10-17 | 2007-04-11 | 南京科远自动化集团有限公司 | General industrial controller |
CN101303584A (en) * | 2008-06-26 | 2008-11-12 | 上海交通大学 | Method for reconfiguring control module of reconfigurable digital controller |
CN102081358A (en) * | 2009-12-01 | 2011-06-01 | 爱默生过程管理电力和水解决方案公司 | Decentralized industrial process simulation system |
CN102759984A (en) * | 2012-06-13 | 2012-10-31 | 上海交通大学 | Power supply and performance management system for virtualization server cluster |
CN104142629A (en) * | 2013-05-09 | 2014-11-12 | 洛克威尔自动控制技术股份有限公司 | Using cloud-based data for virtualization of an industrial machine environment |
CN104267613A (en) * | 2014-09-15 | 2015-01-07 | 东北大学 | Metal rolling process automatic control hardware-in-loop simulation platform and method for experiment |
CN104570768A (en) * | 2014-12-31 | 2015-04-29 | 浙江大学 | Information physics semi-physical simulation system based on Rt-Lab and OPNET |
CN105093963A (en) * | 2015-08-12 | 2015-11-25 | 上海交通大学 | Modular robot self-repairing simulation system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106940533A (en) | 2017-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106940533B (en) | Cloud super real-time simulation platform and hardware-in-loop based real-time decision method | |
US11477083B2 (en) | Industrial internet connected control system | |
US10018978B2 (en) | Electronic operator interface based controller and device automatic downloads | |
RU2487388C2 (en) | Actuator for hvac systems and method for operation thereof | |
US20210389738A1 (en) | Control system database systems and methods | |
CN100524133C (en) | A method of obtaining a snapshot of simulation system | |
CN104155879A (en) | System and method for emulation of an automation control system | |
US10198536B2 (en) | Simulation system, method for carrying out a simulation, control system, and computer program product | |
US20140172402A1 (en) | Simulation system, method for carrying out a simulation, guidance system, and computer program product | |
CN105179156B (en) | Pump-storage generator controls program off-line test system and method | |
US10678231B2 (en) | Production controller equipped with function of identifying cause upon operation stop of production facility including manufacturing facilities | |
CN104145222A (en) | Apparatus and method for synchronization of control logic | |
CN107450980B (en) | Method for operating an automation device and automation device | |
US20140222408A1 (en) | Simulation system, method of carrying out a simulation, guidance system and computer program product | |
US10042335B2 (en) | Embedded emulation modules in industrial control devices | |
US20230315613A1 (en) | Method and system for eradicating programmatical errors from engineering programs in a technical installation | |
KR102117960B1 (en) | Highly Available Intelligent Control System for using Spare Gateway and Control method of the Same | |
EP4193225B1 (en) | Method and system for providing engineering of an industrial device in a cloud computing environment | |
EP4328681A1 (en) | Method and system for managing technical installation during occurrence of error state in a controller | |
CN113412477A (en) | System and method for testing and validating applications | |
US20230350392A1 (en) | Method and system for seamless transition of runtime system from controller device to digitalization platform | |
CN118708468A (en) | Application program upgrade test method, device, computer equipment and storage medium | |
KR20220166108A (en) | Electronic control unit with fault diagnosis function | |
KR20150139678A (en) | Real-time integrated management system and operating method thereof of hardware-in-the-loop simulation information for distributed collaboration embedded systems | |
CN118348882A (en) | Digital twinning-based lithium battery production line fault monitoring system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |