Dynamic modeling method and device based on OPCUA

Through the dynamic modeling method of OPCUA, the equipment model in the industrial automation system is updated in real time, which solves the problem of difficulty in updating the equipment model, avoids the downtime and high time consumption of the on-site monitoring system, and realizes the efficient update of the equipment model.

CN118778950APending Publication Date: 2024-10-15NINGBO HOLLYSYS INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793172.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult to update equipment models in existing industrial automation systems, resulting in temporary shutdown of the on-site monitoring system, which is time-consuming and labor-intensive.

Method used

Adopting a dynamic modeling method based on OPCUA, by receiving pre-built device model update information, using the XML parsing interface in OPCUA to parse the differentiated configuration in the differentiated modeling file, updating the address space of the device model, and realizing the device model real-time updates.

Benefits of technology

There is no need for reconfiguration changes and service deployment releases, which solves the temporary downtime and time-consuming and labor-intensive problems that the on-site monitoring system may face, and achieves efficient real-time updates of equipment models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778950A_ABST
    Figure CN118778950A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic modeling method and device based on OPCUA. The method comprises the following steps: receiving update information of a pre-constructed equipment model; wherein the equipment model is constructed based on an address space of the OPCUA; on the basis of the updating information, a differential modeling file corresponding to the equipment model is read from a configuration file library; analyzing the differentiated configuration in the differentiated modeling file by using an XML (Extensible Markup Language) analysis interface in the OPCUA to obtain the action of each differentiated configuration node in the differentiated modeling file; and updating the address space in the equipment model by using the action of each differentiated configuration node in the differentiated modeling file to obtain an updated equipment model. Therefore, the equipment model constructed based on the OPCUA protocol can be updated in real time, reconfiguration change and service deployment release are not needed, and the problems that an on-site monitoring system may face temporary shutdown and consumes time and labor are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial automation technology, and in particular to an OPC UA-based dynamic modeling method and device. Background Art

[0002] In the existing industrial automation system, the establishment and maintenance of equipment models is an important task. The traditional equipment model establishment method usually statically loads and manages industrial equipment and data, but the traditional equipment model establishment method has the problem of difficulty in updating equipment models, and each change of equipment models requires reconfiguration changes and service deployment and release, which leads to temporary downtime, time-consuming and labor-intensive problems in the field monitoring system.

[0003] Therefore, there is an urgent need to solve the problem of difficulty in updating device models. Summary of the invention

[0004] Based on the above-mentioned deficiencies of the prior art, the present application provides a dynamic modeling method and device based on OPC UA to solve the problem of difficulty in updating device models brought about by the prior art.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] The first aspect of the present application provides a dynamic modeling method based on OPC UA, comprising:

[0007] Receiving update information of a pre-built device model; wherein the device model is built based on the address space of OPC UA;

[0008] Based on the update information, read the differential modeling file corresponding to the device model from the configuration file library;

[0009] Utilizing the XML parsing interface in OPCUA, the differential configuration in the differential modeling file is parsed to obtain the action of each differential configuration node in the differential modeling file;

[0010] The address space in the device model is updated using the action of each of the differential configuration nodes in the differential modeling file to obtain the updated device model.

[0011] Optionally, in the above-mentioned OPCUA-based dynamic modeling method, the method for constructing the device model includes:

[0012] In response to triggering a model building operation in a menu bar included in the IDE visualization platform, displaying a visualization interface;

[0013] According to the model information entered in the visualization interface, converting the model information into address space XML;

[0014] Load and parse the address space XML to generate the OPCUA address space corresponding to the address space XML;

[0015] A device model is constructed according to the OPC UA address space.

[0016] Optionally, in the above-mentioned OPCUA-based dynamic modeling method, the use of the action of each of the differential configuration nodes in the differential modeling file to update the address space in the device model to obtain the updated device model includes:

[0017] In the address space included in the device model, searching for address space information corresponding to each of the differential configuration nodes;

[0018] According to the action of each of the differential configuration nodes, the address space information corresponding to each of the differential configuration nodes is updated respectively to obtain the updated device model.

[0019] Optionally, in the above OPCUA-based dynamic modeling method, it also includes:

[0020] Collecting device data of device object mapping variable points in the device model, and storing the device data in a database of the device model;

[0021] When receiving a query request for the device object sent by a user, querying all device data of the device object from the database through a history query service according to the query request;

[0022] All device data of the device object is analyzed and predicted, and all analyzed and predicted device data is fed back to the front end.

[0023] Optionally, in the above OPCUA-based dynamic modeling method, it also includes:

[0024] Real-time monitoring of whether there is target data in the device data that meets a preset threshold condition;

[0025] If there is target data satisfying the preset threshold condition in the device data, an alarm message is generated based on the target data, and the alarm message is fed back to the front end.

[0026] The second aspect of the present application provides a dynamic modeling device based on OPC UA, comprising:

[0027] An information updating unit, configured to receive update information of a pre-built device model; wherein the device model is built based on an address space of OPC UA;

[0028] A reading unit, configured to read a differential modeling file corresponding to the device model from a configuration file library based on the update information;

[0029] A file parsing unit, used to parse the differential configuration in the differential modeling file by using the XML parsing interface in OPCUA, and obtain the action of each differential configuration node in the differential modeling file;

[0030] The address updating unit is used to update the address space in the device model by using the action of each of the differential configuration nodes in the differential modeling file to obtain the updated device model.

[0031] Optionally, in the above-mentioned OPCUA-based dynamic modeling device, it also includes:

[0032] A display unit, configured to display a visualization interface in response to triggering a model building operation in a menu bar included in the IDE visualization platform;

[0033] A conversion unit, configured to convert the model information into address space XML according to the model information entered in the visualization interface;

[0034] A loading unit, used to load and parse the address space XML, and generate an OPC UA address space corresponding to the address space XML;

[0035] A construction unit is used to construct a device model according to the OPC UA address space.

[0036] Optionally, in the above-mentioned OPC UA-based dynamic modeling device, the address updating unit includes:

[0037] A searching unit, configured to search for address space information corresponding to each of the differential configuration nodes in the address space included in the device model;

[0038] An updating unit is used to update the address space information corresponding to each of the differential configuration nodes according to the action of each of the differential configuration nodes, so as to obtain the updated device model.

[0039] Optionally, in the above-mentioned OPCUA-based dynamic modeling device, it also includes:

[0040] A collection unit, used for collecting device data of device object mapping variable points in the device model, and storing the device data in a database of the device model;

[0041] A query unit, configured to, upon receiving a query request for the device object sent by a user, query all device data of the device object from the database through a history query service according to the query request;

[0042] The analysis unit is used to analyze and predict all device data of the device object, and feed back all analyzed and predicted device data to the front end.

[0043] Optionally, in the above-mentioned OPCUA-based dynamic modeling device, it also includes:

[0044] A monitoring unit, used for monitoring in real time whether there is target data satisfying a preset threshold condition in the device data;

[0045] A feedback unit is used to generate alarm information based on the target data if there is target data that meets the preset threshold condition in the device data, and to feed back the alarm information to the front end.

[0046] The present application provides a dynamic modeling method based on OPCUA, which receives update information of a pre-built device model, wherein the device model is constructed based on the address space of OPCUA, and then reads the differential modeling file corresponding to the device model from the configuration file library based on the update information, and then uses the XML parsing interface in OPCUA to parse the differential configuration in the differential modeling file to obtain the action of each differential configuration node in the differential modeling file, and finally uses the action of each differential configuration node in the differential modeling file to update the address space in the device model to obtain the updated device model. Therefore, the device model constructed based on the OPCUA protocol can update the device model in real time without the need for reconfiguration changes and service deployment and release, thereby solving the problem that the field monitoring system may face temporary downtime, time-consuming and labor-intensive. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 A schematic diagram of a flow chart of a dynamic modeling method based on OPCUA provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a process for constructing a device model provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of the structure of a differentiated configuration file provided in an embodiment of the present application;

[0051] Figure 4 A flowchart of a method for updating an address space provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of a flow chart of a method for analyzing device data provided by another embodiment of the present application;

[0053] Figure 6 A schematic diagram of a flow chart of a method for monitoring device data provided in another embodiment of the present application;

[0054] Figure 7 A flowchart of a dynamic modeling method based on OPCUA provided in another embodiment of the present application;

[0055] Figure 8 A schematic diagram of the structure of a view level changing device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0058] The present application embodiment provides a dynamic modeling method based on OPC UA, such as Figure 1 As shown, the specific steps include:

[0059] S101: Receive update information of a pre-built device model.

[0060] The device model is constructed based on the address space of OPCUA. It should be noted that the embodiment of the present application implements real-time updating of the device model based on the real-time service of the pre-built device model. Specifically, the real-time service is based on the OPCUA C++SDK as the underlying technical framework to build the OPCUA Server (service).

[0061] Optionally, the present application embodiment provides a method for constructing a device model, such as Figure 2 As shown, the following steps are included:

[0062] S201 . In response to triggering a model building operation in a menu bar included in an IDE visualization platform, display a visualization interface.

[0063] Specifically, the user can perform information construction of the device model through IDE visualization, that is, the user will input information about the device model in the visualization interface displayed in the IDE visualization platform for subsequent model information construction.

[0064] S202. According to the model information entered in the visual interface, the model information is converted into address space XML.

[0065] Specifically, when the real-time service receives the model information input by the user, it translates the model information into address space XML recognizable by OPC UA through its own aggregation service.

[0066] S203: Load and parse the address space XML to generate the OPC UA address space corresponding to the address space XML.

[0067] It should be noted that after obtaining the address space XML recognizable by OPCUA, the real-time service needs to load and parse the address space XML so that the device model built later can provide services to the outside world. Specifically, the real-time service uses the XML parsing interface provided by OPCUA to load and parse the address space XML, thereby obtaining the OPCUA address space corresponding to the address space XML, and then based on the OPCUA address space to obtain the static characteristics of the device model for subsequent static modeling.

[0068] S204: Build a device model according to the OPC UA address space.

[0069] Specifically, static modeling is performed on the device model based on the OPC UA address space. Static modeling means that when establishing a device model, the device structure, components and the relationship between them are mainly focused on, without considering the dynamic changes of the device over time.

[0070] S102: Based on the update information, read the differentiated modeling file corresponding to the device model from the configuration file library.

[0071] It should be noted that the update of the device model refers to the addition, deletion and modification of the address space of the device model, and these addition, deletion and modification operations are pre-configured in the differential modeling file. Among them, the differential configuration file refers to the preset programming code. For specific differential configuration files, please refer to Figure 3 The content shown.

[0072] It should also be noted that, since the real-time service still needs to modify the device model after the first static modeling and publishing service, the IDE visualization still needs to modify the device model, but it does not want to redeploy the published service, which will cause the service to be shut down and restarted, which will take time and affect the high availability of the service. Therefore, in the application embodiment, after the IDE visualization modifies the device model, the operation and maintenance service will generate a corresponding differentiated configuration file based on the modified device model.

[0073] It should be emphasized that after the real-time service is built, the third-party service will notify the real-time service that there is a change in the address space of the device model. At this time, the operation and maintenance service will obtain the change request of the device model. After modifying the device model through IDE visualization, the operation and maintenance service will write the corresponding differential configuration file based on the modified device model and store it in the configuration file library, and then notify the real-time service of the update of the device model. At this time, the real-time service will receive the update information of the device model sent by the operation and maintenance service, where the update information is used to prompt the real-time service configuration file library that the differential modeling file corresponding to the device model is stored, which can be used for subsequent updates of the address space of the device model. Therefore, the real-time service will read the differential modeling file corresponding to the device model from the configuration file library according to the update information.

[0074] S103: Utilize the XML parsing interface in OPC UA to parse the differentiated configuration in the differentiated modeling file to obtain the action of each differentiated configuration node in the differentiated modeling file.

[0075] Specifically, since the differential modeling file is an XML-structured file, the real-time service will identify the differential modeling file through the XML parsing interface in OPCUA, and parse the differential configuration of the differential modeling file. Since the differential configuration includes the actions of adding, deleting, and modifying configurations, the actions of each differential configuration node in the differential modeling file will be obtained after parsing.

[0076] It should be noted that the action of each differentiated configuration node refers to the action of adding a new configuration node, the action of deleting a configuration node, and the action of modifying a configuration node.

[0077] Specifically, the action of deleting a configuration node is: the deletion of the address space includes the deletion of the node NodeId, the reference relationship Reference, and the extension information Extensions.

[0078] The action of adding a new configuration node is to update the address space of the device model using a new interface, but the parent-child relationship between the nodes of the device model needs to be established in advance.

[0079] The action of modifying the configuration node is: when the differential configuration is generated, it is generated in stages and in sequence according to "delete-add-modify" to facilitate real-time service incremental loading.

[0080] Optionally, the above configuration actions are all examples.

[0081] S104 , using the action of each differential configuration node in the differential modeling file to update the address space in the device model, to obtain an updated device model.

[0082] It can be understood that, according to the new configuration action, the content in the address space contained in the device model is added, and according to the deletion configuration action, the corresponding content in the address space is deleted, and according to the modification configuration action, the corresponding content in the address space is modified, so as to realize dynamic update of the device model and obtain the dynamically updated device model.

[0083] Optionally, in another embodiment of the present application, a specific implementation of step S104 is as follows: Figure 4 As shown, the following steps are included:

[0084] S401. In the address space included in the device model, search for address space information corresponding to each differential configuration node.

[0085] It should be noted that since there are many contents in the address space contained in the device model, not all contents need to be changed. Therefore, in order to be able to flexibly and effectively change the corresponding contents in the address space in the future, it is necessary to search the address space information corresponding to each differentiated configuration node from the address space in advance, that is, to add new configuration files, delete configurations, and modify the corresponding changes in the address space corresponding to the configuration files.

[0086] S402 : According to the action of each differentially configured node, the address space information corresponding to each differentially configured node is updated respectively to obtain an updated device model.

[0087] Optionally, according to the example of step S103, the corresponding explanation step S402, the specific implementation method is: when the configuration action of deleting the configuration file is to delete the node NodeId, the reference relationship Reference, and the extended information, then the node NodeId, the reference relationship Reference, and the extended information in the address space need to be deleted accordingly. When the configuration action of adding a new configuration file is to adopt a new interface, it is necessary to pre-establish the parent-child relationship between the nodes of the device model, and then based on the parent-child relationship between the nodes, use the new interface to update the address space of the device model. When the configuration action of modifying the configuration file is differential configuration generation, the OPCUA address space related interface is called according to the "delete-add-modify" stage to delete, add, and modify the relevant nodes, so as to obtain a dynamic update of the model.

[0088] Optionally, after constructing the device model, in order to collect and analyze data of the device objects in the device model, so as to obtain the status of the device objects, a device data analysis method is provided in another embodiment of the present application, such as Figure 5 As shown, the following steps are included:

[0089] S501. In the acquisition device model, the device object maps the device data of the variable points, and stores the device data in the database of the device model.

[0090] It should be noted that after the device model is built, the device data of the device objects in the device model can also be collected. However, before the collection, an OPCUA protocol communication connection needs to be established so that the device data of the device objects in the device model can be acquired and monitored. Specifically, the real-time service builds the OPCUA server, and the device side builds the OPCUA client. The OPCUA server establishes a connection with the OPCUA client through the OPCUA protocol, so that the device side (client) establishes a connection with the real-time service through the OPCUA protocol, and then pushes the device data through the publish-subscribe mechanism of the OPCUA protocol. The real-time service stores the device data periodically or changes in the database to complete the collection and storage of device data.

[0091] Specifically, in order to monitor the operating status of the device objects in the device model and analyze the performance of the system, the real-time service needs to collect the device data of the device objects mapping the variable points in the device model. Among them, "device data of the device objects mapping the variable points" refers to the real-time device data obtained from the variable points corresponding to each device object in the system. "Mapping variable points" usually refers to the process of associating a parameter, variable or state in the system with a specific location or address on a specific device, sensor, actuator or other hardware component. In the engineering field or system design, when designing an engineering system or control system, a series of parameters or variables that need to be monitored or controlled are defined, such as temperature, pressure, speed, etc. These parameters or variables need to be connected and interacted with various hardware devices in the system. In order to achieve this connection and interaction, each parameter or variable in the system needs to be mapped to a specific location or address on the corresponding hardware device so that the system can accurately read or control these variables.

[0092] It should also be noted that based on the high availability requirements of the industrial Internet, the real-time services of the device model built based on the OPCUA protocol must meet high availability. Therefore, the device model must meet the synchronous update of the master-slave service address space to meet the disaster recovery and high availability of the model service. Therefore, the collected device data also needs to be stored in the database.

[0093] S502: When a query request for a device object sent by a user is received, all device data of the device object are queried from a database through a history query service according to the query request.

[0094] It is understandable that after completing the collection of device data, the user can query all device data of the device objects in the device model through the history query service to analyze all device data.

[0095] Optionally, the user can send a query request for the device object through the query interface provided by the real-time service. When the real-time service receives the query request for the device object sent by the user, it will use its own historical query service (master service or slave service) to query all device data of the device object from the database according to the query request, so as to analyze the device data flexibly and quickly afterwards.

[0096] S503: Analyze and predict all device data of the device object, and feed back all analyzed and predicted device data to the front end.

[0097] Optionally, historical analysis and trend prediction are performed on all device data through historical query services, so that the results of the analysis and prediction can be displayed to the front end through display methods such as charts or curves.

[0098] Optionally, in order to know whether the device object is abnormal and make an alarm response in time, the device data can be monitored. Therefore, in another embodiment of the present application, a method for monitoring device data is also provided, such as Figure 6 As shown, the following steps are included:

[0099] S601. Real-time monitoring of whether there is target data satisfying a preset threshold condition in device data.

[0100] Specifically, the real-time service can monitor the device in real time by subscribing to the server model data on the OPCUA client through the publish-subscribe mechanism of the OPCUA protocol, so as to know whether the device object is abnormal, and thus monitor in real time whether there is target data that meets the preset threshold condition in the device data. If there is target data that meets the preset threshold condition in the device data, it indicates that the device object may be abnormal, so step S602 is executed. The preset threshold condition refers to the condition that the data is greater than and / or less than the expected threshold.

[0101] Optionally, if there is no target data satisfying the preset threshold condition in the device data, it indicates that the current status of the device object is normal, and therefore the device data is continuously checked for target data satisfying the preset threshold condition.

[0102] S602: Generate alarm information based on target data and feed back the alarm information to the front end.

[0103] It is understandable that when there is target data that meets the preset threshold conditions in the device data, the real-time service will alert the front end. Specifically, it will choose whether to configure the alarm according to the business scenario. For example, after building a model of motor equipment (parameters: voltage, current, operating temperature, noise decibels, etc.), when the operating temperature alarm is configured (alarm condition: high temperature alarm is generated when the operating temperature is >80℃), if the temperature point collected during the operation of the motor exceeds 80℃, the real-time service (model service) will issue a high temperature alarm.

[0104] For ease of understanding, the dynamic modeling process of this application based on OPC UA can be described below with a specific application scenario, such as Figure 7 As shown, it is a flowchart of a dynamic modeling method based on OPC UA provided in another embodiment of the present application.

[0105] A1: The configuration tool builds the device model, and after the device model is built, the IDE offline configuration of the configuration tool modifies the device model offline.

[0106] A2: The offline configuration library statically configures the modified device model to complete initialization, and the online configuration library performs secondary update configuration on the modified device model and stores it.

[0107] A3: The configuration tool publishes the device model after the second update, and the operation and maintenance service generates differential configuration information based on the device model after the second update.

[0108] A4: The operation and maintenance service stores the difference configuration information in the online configuration library and writes the difference configuration information to the file system.

[0109] A5: The file system performs global configuration and differential configuration on the differential configuration information, obtains the differential modeling file, and sends it to the operation and maintenance service.

[0110] A6: When the operation and maintenance service receives the differential modeling file, it sends a device model change notification to the real-time service.

[0111] A7: Based on the change notification, the real-time service reads the differential modeling file corresponding to the device model from the file system.

[0112] A8: The real-time service parses the differential modeling file, and updates the address space of the device model according to the parsed differential modeling file to obtain an updated device model.

[0113] The present application provides a dynamic modeling method based on OPCUA, which receives update information of a pre-built device model, wherein the device model is constructed based on the address space of OPCUA, and then reads the differential modeling file corresponding to the device model from the configuration file library based on the update information, and then uses the XML parsing interface in OPCUA to parse the differential configuration in the differential modeling file to obtain the action of each differential configuration node in the differential modeling file, and finally uses the action of each differential configuration node in the differential modeling file to update the address space in the device model to obtain the updated device model. Therefore, the device model constructed based on the OPCUA protocol can update the device model in real time without the need for reconfiguration changes and service deployment and release, thereby solving the problem that the field monitoring system may face temporary downtime, time-consuming and labor-intensive.

[0114] Another embodiment of the present application provides a dynamic modeling device based on OPC UA, such as Figure 8 As shown, it includes the following units:

[0115] The information updating unit 801 is used to receive the update information of the pre-built device model, wherein the device model is built based on the address space of OPC UA.

[0116] The reading unit 802 is used to read the differential modeling file corresponding to the device model from the configuration file library based on the update information.

[0117] The file parsing unit 803 is used to parse the differential configuration in the differential modeling file by using the XML parsing interface in OPC UA to obtain the action of each differential configuration node in the differential modeling file.

[0118] The address updating unit 804 is used to update the address space in the device model by using the action of each differential configuration node in the differential modeling file to obtain an updated device model.

[0119] It should be noted that the specific working process of the above-mentioned units in the embodiment of the present application can refer to steps S101 to S104 in the above-mentioned method embodiment, and will not be repeated here.

[0120] Optionally, in another embodiment of the present application, an OPC UA-based dynamic modeling device further includes:

[0121] The display unit is used to display a visualization interface in response to triggering a model building operation in a menu bar included in the IDE visualization platform.

[0122] The conversion unit is used to convert the model information into address space XML according to the model information entered in the visual interface.

[0123] The loading unit is used to load and parse the address space XML and generate the OPCUA address space corresponding to the address space XML.

[0124] The construction unit is used to construct a device model according to the OPC UA address space.

[0125] Optionally, in an OPC UA-based dynamic modeling device provided in another embodiment of the present application, the address updating unit 804 includes:

[0126] The search unit is used to search for address space information corresponding to each differential configuration node in the address space included in the device model.

[0127] The updating unit is used to update the address space information corresponding to each differential configuration node according to the action of each differential configuration node, so as to obtain an updated device model.

[0128] Optionally, in another embodiment of the present application, an OPC UA-based dynamic modeling device further includes:

[0129] The acquisition unit is used to acquire the device data of the device object mapping variable points in the device model and store the device data in the database of the device model.

[0130] The query unit is used to query all device data of the device object from the database through the history query service according to the query request when receiving a query request for the device object sent by the user.

[0131] The analysis unit is used to analyze and predict all device data of the device object, and feed back all analyzed and predicted device data to the front end.

[0132] Optionally, in another embodiment of the present application, an OPC UA-based dynamic modeling device further includes:

[0133] The monitoring unit is used to monitor in real time whether there is target data that meets the preset threshold conditions in the device data.

[0134] The feedback unit is used to generate alarm information based on the target data if there is target data that meets the preset threshold conditions in the device data, and feed back the alarm information to the front end.

[0135] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, and will not be repeated here.

[0136] In summary, the embodiment of the present application provides a dynamic modeling device based on OPCUA, which realizes real-time updating of equipment models based on the OPCUA protocol, without the need for reconfiguration changes and service deployment and release, thereby solving the problem of temporary shutdown, time-consuming and labor-intensive on-site monitoring systems.

[0137] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0138] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A dynamic modeling method based on OPCUA, characterized in that: include: Receiving update information of a pre-built device model; wherein the device model is built based on the address space of OPC UA; Based on the update information, read the differential modeling file corresponding to the device model from the configuration file library; Utilizing the XML parsing interface in OPCUA, the differential configuration in the differential modeling file is parsed to obtain the action of each differential configuration node in the differential modeling file; The address space in the device model is updated using the action of each of the differential configuration nodes in the differential modeling file to obtain the updated device model.

2. The method according to claim 1, characterized in that The method for constructing the device model includes: In response to triggering a model building operation in a menu bar included in the IDE visualization platform, displaying a visualization interface; According to the model information entered in the visualization interface, converting the model information into address space XML; Load and parse the address space XML to generate the OPCUA address space corresponding to the address space XML; A device model is constructed according to the OPC UA address space.

3. The method according to claim 1, characterized in that: The updating of the address space in the device model by using the action of each of the differential configuration nodes in the differential modeling file to obtain the updated device model includes: In the address space included in the device model, searching for address space information corresponding to each of the differential configuration nodes; According to the action of each of the differential configuration nodes, the address space information corresponding to each of the differential configuration nodes is updated respectively to obtain the updated device model.

4. The method according to claim 1, characterized in that: Also includes: Collecting device data of device object mapping variable points in the device model, and storing the device data in a database; When receiving a query request for the device object sent by a user, querying all device data of the device object from the database through a history query service according to the query request; All device data of the device object is analyzed and predicted, and all analyzed and predicted device data is fed back to the front end.

5. The method according to claim 4, characterized in that Also includes: Real-time monitoring of whether there is target data in the device data that meets a preset threshold condition; If there is target data satisfying the preset threshold condition in the device data, an alarm message is generated based on the target data, and the alarm message is fed back to the front end.

6. A dynamic modeling device based on OPCUA, characterized in that: include: An information updating unit, configured to receive update information of a pre-built device model; wherein the device model is built based on an address space of OPC UA; A reading unit, configured to read a differential modeling file corresponding to the device model from a configuration file library based on the update information; A file parsing unit, used to parse the differential configuration in the differential modeling file by using the XML parsing interface in OPCUA, and obtain the action of each differential configuration node in the differential modeling file; The address updating unit is used to update the address space in the device model by using the action of each of the differential configuration nodes in the differential modeling file to obtain the updated device model.

7. The device according to claim 6, characterized in that Also includes: A display unit, configured to display a visualization interface in response to triggering a model building operation in a menu bar included in the IDE visualization platform; A conversion unit, configured to convert the model information into address space XML according to the model information entered in the visualization interface; A loading unit, used to load and parse the address space XML, and generate an OPC UA address space corresponding to the address space XML; A construction unit is used to construct a device model according to the OPC UA address space.

8. The device according to claim 6, characterized in that The address updating unit comprises: A searching unit, configured to search for address space information corresponding to each of the differential configuration nodes in the address space included in the device model; An updating unit is used to update the address space information corresponding to each of the differential configuration nodes according to the action of each of the differential configuration nodes, so as to obtain the updated device model.

9. The device according to claim 6, characterized in that Also includes: A collection unit, used for collecting device data of device object mapping variable points in the device model, and storing the device data in a database of the device model; A query unit, configured to, upon receiving a query request for the device object sent by a user, query all device data of the device object from the database through a history query service according to the query request; The analysis unit is used to analyze and predict all device data of the device object, and feed back all analyzed and predicted device data to the front end.

10. The device according to claim 9, characterized in that Also includes: A monitoring unit, used for monitoring in real time whether there is target data satisfying a preset threshold condition in the device data; A feedback unit is used to generate alarm information based on the target data if there is target data that meets the preset threshold condition in the device data, and to feed back the alarm information to the front end.