A method, apparatus, and equipment for controlling the deployment of a virtual factory model based on twins.

By building a 3D scene twin platform and configuring data sources, twin operation packages are generated and controlled, and the problems of complex construction of digital virtual model scenarios in the factory are solved, data integration difficulties and the inability to release twin operation packages are achieved, and efficient monitoring and management of the factory are achieved.

CN119784919APending Publication Date: 2025-04-08GUANGDONG LYRIC ROBOT INTELLIGENT AUTOMATION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411993842.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The digital virtual model of the existing factory has technical problems such as complex scenario construction, difficulty in data integration, and inability to release product twin operation packages.

Method used

By obtaining the structural layout diagram of the factory area, a 3D scene twin platform matching the factory area is built, and the data source configuration is used using entity ID and data source binding technology to generate twin operation packages corresponding to the factory area, and the twin operation package operation is controlled to monitor and manage the factory area.

Benefits of technology

It realizes simplified construction of factory scenarios, seamless data integration and independent release of twin operation packages, solving the problems of complex scenario construction, difficulty in data integration and inability to release twin operation packages in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784919A_ABST
    Figure CN119784919A_ABST
Patent Text Reader

Abstract

The present application relates to a twin-based factory virtual model release control method, device and equipment, the method includes obtaining a structural layout diagram of the factory, building a 3D scene twin platform according to the structural layout diagram; obtaining the product entity ID of all products in the factory, using the entity ID and data source binding technology to configure the data source of the 3D scene twin platform to obtain the release data; generating a twin operation package according to the release data, and controlling the operation of the twin operation package to monitor and manage the factory. The method realizes the construction of the factory scene by constructing a 3D scene twin platform; the entity ID and data source binding technology are used to realize the seamless connection between the physical entity and the digital twin of the 3D scene twin platform, so that the data between the 3D scene twin platform and the product can be seamlessly interactively connected to obtain the release data, and realize simple integrated data; the monitoring interface is operated through the twin operation package to obtain the separate operation of multiple visualization functions temporarily.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent factory monitoring, and in particular to a twin-based factory virtual model publishing control method, device and equipment. Background Art

[0002] In today's era of rapid technological development, smart warehousing has quietly become a new force in the logistics industry. It is not only an innovative warehousing management model, but also a revolutionary transformation driven by digital technology. The smart warehousing digital twin system, like a magic mirror, seamlessly connects the real-world warehousing facilities with the virtual environment, and builds a highly simulated, real-time interactive digital mapping.

[0003] As the name implies, the smart warehouse digital twin system transforms the physical warehouse into a digital virtual model through advanced technologies such as the Internet of Things, big data, and artificial intelligence. This model can reflect the flow of materials and storage status in the warehouse in real time, and even predict potential problems, to achieve all-round and refined management of warehouse operations. Through digital twins, managers can remotely monitor and adjust strategies in real time, which greatly improves warehouse efficiency and reduces operating costs. However, the existing smart warehouse digital twin system does not have a mature product that can restore the scene 1:1, and the model it constructs cannot be data-driven. After the model achieves the twin effect, it cannot achieve software and hardware expansion through data source configuration, and requires secondary development of code, and it is also impossible to release a separate twin running package. Summary of the invention

[0004] The present application provides a twin-based factory virtual model release control method, device and equipment, which are used to solve the technical problems of complex scene construction, difficult data integration and inability to release product twin operation packages in the digital virtual model of the existing factory.

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

[0006] On the one hand, a twin-based plant virtual model release control method is provided, comprising the following steps:

[0007] Obtain a structural layout diagram of the factory area, and build a 3D scene twin platform matching the factory area according to the structural layout diagram;

[0008] Obtain the product entity IDs of all products in the factory area, use entity ID and data source binding technology to configure the data source of the 3D scene twin platform, and obtain published data;

[0009] A twin operation package corresponding to the plant area is generated according to the published data, and the operation of the twin operation package is controlled to monitor and manage the plant area.

[0010] Preferably, generating a twin operation package corresponding to the plant area according to the published data includes:

[0011] The published data is converted using LINQ to JSON or a serialization / deserialization library of LINQ technology to obtain format data that satisfies the format of the three-dimensional rendering base in the 3D scene twin platform;

[0012] The meaning of each field and the storage structure of each field are set, and the format data is configured according to the meaning and the storage structure of each field to obtain a configuration file that satisfies the base package in the 3D scene twin platform;

[0013] Add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain a loading file;

[0014] The CI / CD tool is used to automatically package the loading file to generate a twin operation package corresponding to the factory area.

[0015] Preferably, controlling the operation of the twin operation package to monitor and manage the plant area includes:

[0016] The 3D scene twin platform of the twin operation package is used to obtain scene engineering configuration data, model data and UI interface, and the interface type in the 3D scene twin platform of the twin operation package is used to obtain dynamic data information of the twin;

[0017] Generate corresponding UI components and model entities at corresponding coordinate points of the UI interface according to the scene engineering configuration data and the model data;

[0018] Twin mapping is performed on the corresponding UI components and the model entities according to the dynamic data information, and the data displayed on the UI interface is updated in real time to monitor and manage the factory area.

[0019] Preferably, the entity ID and data source binding technology is used to configure the data source of the 3D scene twin platform, and the published data includes:

[0020] Obtain an interface type set for all products in the factory area, and configure a driver interface for each interface type in the interface type set on the 3D scene twin platform;

[0021] Bind the product entity ID to the drive interface corresponding to the product one by one;

[0022] Data is exchanged with the interface corresponding to the product through the driving interface, and the operation data of the corresponding product is obtained in real time, and the operation data is imported into the 3D scene twin platform to control the model operation of the corresponding product, and the scene information is obtained and integrated and uploaded to the twin server database of the 3D scene twin platform;

[0023] The operation of the 3D scene twin platform is controlled according to the scene information in the twin server database to obtain the published data.

[0024] Preferably, constructing a 3D scene twin platform matching the factory area according to the structural layout diagram includes:

[0025] Obtain all products in the factory area, use standardized UI components to model each product, obtain corresponding product models and configure model data for each product model, wherein the model data includes product entity ID, storage path, size, material and deformation parameters;

[0026] Drag the product model corresponding to each product to the designated coordinate point, obtain the storage path and the product entity ID of each product model, and import the corresponding product model into the 3D scene;

[0027] All the 3D scenes are rendered according to the size, material and deformation of the corresponding products to construct a 3D scene twin platform.

[0028] In yet another aspect, a twin-based plant virtual model release control device is provided, comprising a platform construction module, a data generation module, and a release monitoring module;

[0029] The platform construction module is used to obtain a structural layout diagram of the factory area and construct a 3D scene twin platform matching the factory area according to the structural layout diagram;

[0030] The data generation module is used to obtain the product entity IDs of all products in the factory area, and configure the data source of the 3D scene twin platform using the entity ID and data source binding technology to obtain the published data;

[0031] The release monitoring module is used to generate a twin operation package corresponding to the factory area according to the release data, and control the operation of the twin operation package to monitor and manage the factory area.

[0032] Preferably, the release monitoring module includes: a conversion submodule, a configuration submodule, a file adding submodule and a release submodule;

[0033] The conversion submodule is used to convert the published data using LINQ to JSON or a serialization / deserialization library of LINQ technology to obtain format data that meets the format of the three-dimensional rendering base in the 3D scene twin platform;

[0034] The configuration submodule is used to set the meaning of each field and the storage structure of each field, and perform file configuration on the format data according to the meaning and storage structure of each field to obtain a configuration file that satisfies the base package in the 3D scene twin platform;

[0035] The configuration submodule is used to add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain a loading file;

[0036] The publishing submodule is used to automatically package the loading file using the CI / CD tool to generate a twin operation package corresponding to the factory area.

[0037] Preferably, the release monitoring module is also used to obtain scene engineering configuration data, model data and UI interface using the 3D scene twin platform of the twin operation package, and to obtain dynamic data information of the twin using the interface type in the 3D scene twin platform of the twin operation package; to generate corresponding UI components and model entities at corresponding coordinate points of the UI interface according to the scene engineering configuration data and the model data; to perform twin mapping on the corresponding UI components and the model entities according to the dynamic data information and to update the data displayed on the UI interface in real time, so as to monitor and manage the factory area.

[0038] Preferably, the data generation module includes an interface configuration submodule, a binding submodule, an information generation submodule and a data publishing submodule;

[0039] The interface configuration submodule is used to obtain the interface type set of all products in the factory area, and configure a driving interface for each interface type in the interface type set on the 3D scene twin platform;

[0040] The binding submodule is used to bind the product entity ID to the drive interface corresponding to the product one by one;

[0041] The information generation submodule is used to perform data interaction with the interface corresponding to the product through the driving interface, obtain the operation data of the corresponding product in real time, import the operation data into the 3D scene twin platform to control the model operation of the corresponding product, obtain scene information and integrate and upload the scene information to the twin server database of the 3D scene twin platform;

[0042] The data publishing submodule is used to control the operation of the 3D scene twin platform according to the scene information in the twin server database to obtain published data.

[0043] In another aspect, a terminal device is provided, comprising a processor and a memory;

[0044] The memory is used to store program codes and transmit the program codes to the processor;

[0045] The processor is used to execute the above-mentioned twin-based plant virtual model release control method according to the instructions in the program code.

[0046] The twin-based factory virtual model release control method, device and equipment, the twin-based factory virtual model release control method includes obtaining a structural layout diagram of the factory, and building a 3D scene twin platform matching the factory according to the structural layout diagram; obtaining the product entity IDs of all products in the factory, and using the entity ID and data source binding technology to configure the data source of the 3D scene twin platform to obtain the release data; generating a twin operation package corresponding to the factory according to the release data, and controlling the operation of the twin operation package to monitor and manage the factory.

[0047] It can be seen from the above technical scheme that the present application has the following advantages: the twin-based factory virtual model release control method realizes the construction of factory scenes by constructing a 3D scene twin platform; the entity ID and data source binding technology is used to realize the seamless connection between the physical entity and the digital twin of the 3D scene twin platform, so that the data between the 3D scene twin platform and the product can be seamlessly interactively connected to obtain the release data and realize simple data integration; a twin operation package corresponding to the factory is generated according to the release data, and the monitoring interface is temporarily operated separately through the twin operation package, which solves the technical problems of complex scene construction, difficult data integration and inability to release product twin operation packages in the digital virtual model of the existing factory.

[0048] The twin-based factory virtual model release control device realizes scene construction, data source configuration, twin data drive binding, and independent release of twin operation packages of twin products on the platform through three modules: platform construction module, data generation module and release monitoring module. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0050] Figure 1 A flowchart of the steps of the twin-based plant virtual model publishing control method described in an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of the operation of the twin operation package in the twin-based plant virtual model release control method described in an embodiment of the present application;

[0052] Figure 3 This is a schematic diagram of a data source configuration page of a 3D scene twin platform in the twin-based plant virtual model publishing control method described in an embodiment of the present application;

[0053] Figure 4 This is a schematic diagram of a product entity data page of a 3D scene twin platform in the twin-based factory virtual model publishing control method described in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of a framework of a control device for publishing a twin-based plant virtual model according to an embodiment of the present application;

[0055] Figure 6 A schematic diagram of a terminal device described in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this 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 the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0058] In the embodiments of the present 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 one; it can be a mechanical connection or an electrical connection; 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 those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0059] Patent terms:

[0060] LINQ (Language Integrated Query) is a set of technologies for querying data in the .NET framework. It allows query statements to be written in a declarative manner using high-level languages ​​such as C# or VB.NET.

[0061] LINQ to JSON is a way to process JSON data in LINQ technology, which makes it easier to query and modify JSON data. The core of LINQ to JSON is this third-party library, which provides support for JSON serialization and deserialization and allows developers to operate JSON objects using LINQ syntax. The implementation of the LINQ to JSON mechanism relies on the library to convert JSON data into a queryable NET object model.

[0062] The embodiment of the present application provides a twin-based plant area virtual model release control method, device and equipment, which solves the technical problems of complex scene construction, difficult data integration and inability to release product twin operation packages in the existing digital virtual model of the plant area. The twin-based plant area virtual model release control method, device and equipment can not only be applied to factory logistics warehousing, such as the field of warehousing logistics intelligent manufacturing, but also to various buildings.

[0063] Embodiment 1:

[0064] Figure 1 This is a step flow chart of the twin-based plant virtual model publishing control method described in an embodiment of the present application.

[0065] like Figure 1 As shown, the embodiment of the present application provides a twin-based plant virtual model release control method, comprising the following steps:

[0066] S1. Obtain the structural layout diagram of the factory area, and build a 3D scene twin platform matching the factory area based on the structural layout diagram.

[0067] It should be noted that in step S1, the structural layout diagram of the factory is first obtained, and then a 3D scene twin platform matching the factory is constructed based on it. In this embodiment, the constructed 3D scene twin platform is obtained by constructing a one-to-one restoration model of the factory based on the structural layout diagram, providing a platform for the subsequent release of the twin operation package.

[0068] S2. Obtain the product entity IDs of all products in the factory, use the entity ID and data source binding technology to configure the data source of the 3D scene twin platform, and obtain the published data.

[0069] It should be noted that in step S2, the 3D scene twin platform is constructed according to step S1 and based on obtaining the product entity IDs of all products in the factory, after binding the product entity IDs of all products in the factory with the data source of the 3D scene twin platform, the data source for configuring the hardware on the 3D scene twin platform is obtained, which is convenient for obtaining published data. In this embodiment, the 3D scene twin platform can configure the data source through the entity ID and data source binding technology, and can update the data displayed on the 3D scene twin platform based on the real-time acquisition of factory data. Among them, the published data includes data obtained by configuring the data source in the 3D scene twin platform. The products in the factory include shelves, stackers, conveyor lines, automatic guided vehicles AGV, manipulators, etc.

[0070] Figure 2 This is a schematic diagram of the operation of the twin operation package in the twin-based plant virtual model release control method described in an embodiment of the present application.

[0071] S3. Generate a twin operation package corresponding to the factory area based on the published data, and control the operation of the twin operation package to monitor and manage the factory area.

[0072] It should be noted that in step S3, a twin operation package corresponding to the plant area is generated according to the published data obtained in step S2, and the user can directly use the twin operation package to monitor and manage the plant area. In this embodiment, click on the twin operation package to run, such as Figure 2 As shown in the figure, the contents displayed by running the twin operation package include: twin function module and visualization function module. The twin function module is used for 3D factory visualization, factory roaming, equipment virtual-real synchronization and equipment health status monitoring. The visualization function module is used to display the warehouse location hotspot map, factory information dashboard and real-time monitoring display.

[0073] In an embodiment of the present application, the twin-based factory virtual model release control method constructs a 3D scene twin platform, and uses entity ID and data source binding technology to achieve seamless docking of physical entities (such as products in the factory) with digital twins of the 3D scene twin platform, and achieves seamless interactive docking of data between the 3D scene twin platform and the products, and obtains release data for generating a twin operation package corresponding to the factory. The existing 3D scene twin platform and release data obtained in steps S1 and S2 are used to generate an independent twin operation package through platform construction technology to support the separate operation of multiple visualization functions.

[0074] The present application provides a twin-based factory virtual model release control method, including obtaining a structural layout diagram of the factory, building a 3D scene twin platform matching the factory according to the structural layout diagram; obtaining the product entity IDs of all products in the factory, configuring the data source of the 3D scene twin platform using the entity ID and data source binding technology to obtain release data; generating a twin operation package corresponding to the factory according to the release data, and controlling the operation of the twin operation package to monitor and manage the factory. The twin-based factory virtual model release control method realizes the construction of the factory scene by constructing a 3D scene twin platform; the entity ID and data source binding technology are used to realize the seamless connection between the physical entity and the digital twin of the 3D scene twin platform, so that the data between the 3D scene twin platform and the product can be seamlessly interactively connected to obtain release data and realize simple integrated data; a twin operation package corresponding to the factory is generated according to the release data, and the monitoring interface is temporarily operated separately through the operation of the twin operation package to obtain multiple visualization functions; the technical problems of the existing digital virtual model of the factory, such as complex scene construction, difficult data integration, and the inability to publish the product twin operation package, are solved.

[0075] In one embodiment of the present application, constructing a 3D scene twin platform matching the factory area according to the structural layout diagram includes:

[0076] Obtain all products in the factory, use standardized UI components to model each product, obtain the corresponding product model and configure model data for each product model. The model data includes product entity ID, storage path, size, material and deformation parameters;

[0077] Drag the product model corresponding to each product to the specified coordinate point, obtain the storage path and product entity ID of each product model, and import the corresponding product model into the 3D scene;

[0078] All 3D scenes are rendered according to the size, material and deformation of the corresponding products to build a 3D scene twin platform.

[0079] It should be noted that in the process of building a 3D scene twin platform, the model library is built first. The model library construction is to obtain the corresponding product model by standardizing the product model, and configure the product entity ID, storage path, size, material and deformation parameters of each product model on the software for building the platform. The second is to call the model library to build the 3D scene twin platform. The model library call means that when the corresponding product model entity is called, the storage path of the product model entity is obtained through the entity ID at the specified coordinate point of the software, the corresponding product model entity is imported into the 3D scene, and the 3D scene twin platform is constructed by rendering according to the corresponding size, material, and deformation of the product entity.

[0080] In one embodiment of the present application, the entity ID and data source binding technology are used to configure the data source of the 3D scene twin platform, and the published data includes:

[0081] Obtain the interface type set of all products in the factory, and configure the driver interface for each interface type on the 3D scene twin platform;

[0082] Bind the product entity ID to the corresponding product driver interface one by one;

[0083] Data is exchanged between the driver interface and the interface of the corresponding product to obtain the operation data of the corresponding product in real time, and the operation data is imported into the 3D scene twin platform to control the model operation of the corresponding product, obtain the scene information and integrate and upload the scene information to the twin server database of the 3D scene twin platform;

[0084] The 3D scene twin platform is controlled to run according to the scene information in the twin server database to obtain the published data.

[0085] It should be noted that in the process of obtaining the published data, the interface type of the product is first obtained and the corresponding drive interface is configured on the 3D scene twin platform; then the generated drive interface is bound to the corresponding product entity ID to facilitate subsequent data collection. The twin-based factory virtual model publishing control method interacts with the corresponding product through the drive interface. It can be understood that the product's operating data is collected by the controller (such as PLC) that controls the operation of the product, and then the collected product's operating data is stored in the Redis database of the data source through the controller (such as PLC) communication protocol, and then obtained from the Redis database of the data source through the drive interface. After that, the operating data of all products will be obtained and summarized, and the summarized data will be imported into the 3D scene twin platform, and the 3D scene twin platform will be driven to run to obtain scene information and publish data. In this embodiment, the interface types include cargo location interface class, stacker interface class, conveyor line, AGV, manipulator and other interface classes. The scene information contains all entity IDs, entity parameters, entity coordinates, and real-time operation data.

[0086] In the embodiment of the present application, the cargo location interface class refers to each element data and shelf attribute of the interface, for example: the element data includes the id primary key, lane, row, column, layer, depth, status, carrier type and other fields; the shelf attributes include column orientation, layer orientation, lane number, row number, initial number of columns, initial number of layers and other configuration parameters. On the 3D scene twin platform, the configuration driver interface for the cargo location interface class can match the values ​​of lanes, rows, columns and layers to the element data of the corresponding interface, and then realize the twin display of the warehouse location hotspot map through fields such as status and carrier type.

[0087] In the embodiment of the present application, the stacker interface class refers to each element data and shelf data of the interface. The element data includes the id primary key, column, layer, carrier number, carrier type, whether there is material, stacker status, alarm information, X-axis (horizontal axis), Y-axis (vertical axis), Z-axis (fork axis) and other fields. The shelf data includes configurations such as data source, primary key, data source type, etc. On the 3D scene twin platform, the stacker interface class configuration driver interface can match the element data of the corresponding interface through the primary key value, and then realize the twin display of the stacker through the X, Y, Z axis, stacker status, carrier type and other fields.

[0088] It should be noted that in order to achieve the twin effect, the process of configuring the driver interface is similar to the stacker interface class, except that the interface fields corresponding to different entities are different.

[0089] Figure 3 This is a schematic diagram of a data source configuration page of a 3D scene twin platform in a twin-based plant virtual model publishing control method described in an embodiment of the present application. Figure 4 This is a schematic diagram of the product entity data page of the 3D scene twin platform in the twin-based factory virtual model publishing control method described in an embodiment of the present application.

[0090] In the embodiment of the present application, due to the unified standard shelf, stacker, and conveyor line information acquisition interface, different types of product entities correspond to different data source interface types. In the process of binding the product entity ID to the corresponding product driver interface one by one, all interfaces that require data drive on the data source configuration page of the 3D scene twin platform, such as Figure 3 As shown; on the product entity data page that needs to be data-driven, select the data source and configure the primary key to bind the product entity ID to the driver interface of the corresponding product one by one, so that the product entity of the 3D scene twin platform can trigger corresponding action changes, coordinate changes, color changes, etc. according to real-time data, avoiding excessive data call frequency and causing the server interface of the 3D scene twin platform to freeze or crash.

[0091] In an embodiment of the present application, the twin-based factory virtual model publishing control method changes the 3D scene twin platform from the existing single data query interface to a batch query interface through the setting of step S2, and the data queried uniformly by periodically calling the data interface of the data source is temporarily stored in the digital twin terminal, and each product entity queries the corresponding data from the configured data source storage unit according to the primary key for parsing and processing.

[0092] In one embodiment of the present application, generating a twin operation package corresponding to a plant area according to the published data includes:

[0093] Use LINQ to JSON or serialization / deserialization library of LINQ technology to transform the published data to obtain format data that meets the format of 3D rendering base in 3D scene twin platform;

[0094] Set the meaning of each field and the storage structure of each field, configure the format data file according to the meaning and storage structure of each field, and obtain the configuration file that meets the requirements of the base package in the 3D scene twin platform;

[0095] Add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain the loading file;

[0096] Use CI / CD tools to automatically package the loading files and generate twin running packages corresponding to the factory area.

[0097] It should be noted that in the process of generating the twin running package, first use LINQ to JSON or other serialization / deserialization libraries (such as Newtonsoft.Json) to convert the collected publishing data into a format suitable for the 3D rendering base, such as the format data of the 3D rendering base format in the 3D scene twin platform. Secondly, define the meaning of each field and its storage structure to ensure that the converted format data can be directly applied to the configuration file in the configuration folder corresponding to the base package. Then add the converted configuration file to the directory corresponding to the base package to obtain the loading file to ensure that it can be loaded correctly when running after the release is completed. Finally, use CI / CD tools (Jenkins, GitHub Actions) to automatically package and generate the twin running package corresponding to the factory area. The automatic packaging content of the CI / CD tool includes compiling code, building Docker images, etc.

[0098] In one embodiment of the present application, controlling the operation of the twin operation package to monitor and manage the plant area includes:

[0099] The 3D scene twin platform of the twin operation package is used to obtain the scene engineering configuration data, model data and UI interface, and the interface type in the 3D scene twin platform of the twin operation package is used to obtain the dynamic data information of the twin;

[0100] Generate corresponding UI components and model entities at corresponding coordinate points on the UI interface according to the scene engineering configuration data and model data;

[0101] Based on the dynamic data information, twin mapping is performed on the corresponding UI components and model entities, and the data displayed on the UI interface is updated in real time to monitor and manage the factory area.

[0102] It should be noted that when starting the twin running package application, the scene engineering configuration data is automatically called first. The twin engine will initialize the scene according to the configuration file, create a model instance and set its properties (such as position, color, etc.), and generate the corresponding user UI interface according to the UI configuration. Secondly, the corresponding model entity is generated at the corresponding scene coordinate point according to all model data; the corresponding UI component is generated at the interface coordinate point of the corresponding scene according to all UI interface data. Finally, an initialization manager is implemented, which is responsible for parsing the configuration file (data source configuration, etc.) when the application starts, and according to the data source such as the interface configured therein, the twin dynamic data information is obtained to assign values ​​to the constructed model entity instance and UI interface instance, so that the model entity can achieve the twin effect and the data displayed on the UI interface can be updated in real time. In this embodiment, the model data includes entity ID, entity attributes and entity coordinates. The scene engineering configuration data includes UI component ID and component attributes of UI interface data.

[0103] In the embodiment of the present application, the interface type in the 3D scene twin platform of the twin running package is used to obtain the dynamic data information of the twin, and the twin data source is obtained according to the data source interface configured by the 3D scene twin platform. The content of obtaining the twin data source includes:

[0104] Define RESTful API standards to ensure that real-time data can be provided in a unified manner;

[0105] Integrate the HTTP client library in the twin project to periodically send requests to the specified data source to obtain the latest twin data;

[0106] Implement an initialization manager, which is responsible for parsing the configuration file (data source configuration, etc.) when the application starts, and obtains dynamic data information based on the configured interface and other data sources and saves it in the memory pool;

[0107] Model entity instance: According to the interface name and primary key ID configured for each different type of model instance, data is obtained from the memory pool and the corresponding entity model status is updated, such as changing the position, appearance, status box, etc. of the object, so as to achieve synchronization between the physical world and the virtual world;

[0108] Data instance of the UI interface: According to the interface name and primary key ID configured for each different type of UI interface, data is obtained from the memory pool and the content displayed on the corresponding UI interface is updated, such as changing the proportion of the pie chart, the axis data of the bar chart, etc. The interface component data is dynamically updated to achieve data visualization effects.

[0109] In an embodiment of the present application, before generating a twin operation package corresponding to the factory area according to the release data, the twin-based factory virtual model release control method also includes downloading a three-dimensional rendering base package to a local terminal and obtaining current scene engineering data.

[0110] It should be noted that the content of downloading the 3D rendering base package to the local terminal includes: first building a 3D scene twin platform to obtain the latest 3D rendering base package from the twin server through webapi download or FTP, and then using the HttpClient class to execute the download task and save the downloaded content to the specified path. Among them, Webapi obtains data information, and FTP obtains download files. The package is a compressed file (ZIP) containing necessary resource files, configuration files, and pre-built basic 3D scene projects. Obtaining the current scene engineering data includes: first, using the reflection mechanism of C# on the 3D scene twin platform to traverse all models, UI elements and their properties in the current scene and extract their information; second, calling the twin engine API (Entity and Transform classes) on the 3D scene twin platform to obtain entity ID, position, rotation, scaling and other information; third, obtaining UI data of UI component-related properties through methods in the Blazor component library, including component ID, layout parameters, etc.; fourth, requesting the twin server through the API on the 3D scene twin platform to obtain the configuration information of the corresponding data source and scene in the database.

[0111] Embodiment 2:

[0112] Figure 5 A framework diagram of a twin-based plant virtual model publishing control device as described in an embodiment of the present application.

[0113] like Figure 5 As shown, the embodiment of the present application provides a twin-based plant area virtual model release control device, including a platform construction module 10, a data generation module 20 and a release monitoring module 30;

[0114] The platform construction module 10 is used to obtain the structural layout diagram of the factory area and build a 3D scene twin platform matching the factory area according to the structural layout diagram;

[0115] The data generation module 20 is used to obtain the product entity IDs of all products in the factory area, and configure the data source of the 3D scene twin platform using the entity ID and data source binding technology to obtain the published data;

[0116] The release monitoring module 30 is used to generate a twin operation package corresponding to the factory area according to the release data, and control the operation of the twin operation package to monitor and manage the factory area.

[0117] It should be noted that the module content of the twin-based plant virtual model release control device corresponds to the content of the steps in the method of Example 1. Example 1 has elaborated on the step content of the twin-based plant virtual model release control method, and this embodiment will not repeat the module content of the twin-based plant virtual model release control device. The twin-based plant virtual model release control device implements scene building, data source configuration, twin data drive binding, and independent release of twin operation packages of twin products on the platform through three modules: platform construction module 10, data generation module 20, and release monitoring module 30.

[0118] In the embodiment of the present application, the publishing monitoring module 30 includes: a conversion submodule, a configuration submodule, a file adding submodule and a publishing submodule;

[0119] The conversion submodule is used to convert the published data using LINQ to JSON or serialization / deserialization library of LINQ technology to obtain format data that meets the format of the three-dimensional rendering base in the 3D scene twin platform;

[0120] The configuration submodule is used to set the meaning of each field and the storage structure of each field. The format data is configured according to the meaning and storage structure of each field to obtain a configuration file that satisfies the base package in the 3D scene twin platform.

[0121] The configuration submodule is used to add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain the loading file;

[0122] The release submodule is used to automatically package the loading files using CI / CD tools to generate a twin running package corresponding to the factory area.

[0123] In an embodiment of the present application, the release monitoring module 30 is also used to obtain scene engineering configuration data, model data and UI interface using a 3D scene twin platform of a twin operation package, and to obtain dynamic data information of the twin using the interface type in the 3D scene twin platform of the twin operation package; to generate corresponding UI components and model entities at corresponding coordinate points of the UI interface according to the scene engineering configuration data and model data; to perform twin mapping on the corresponding UI components and model entities according to the dynamic data information and to update the data displayed on the UI interface in real time, so as to monitor and manage the factory area.

[0124] In the embodiment of the present application, the data generation module 20 includes an interface configuration submodule, a binding submodule, an information generation submodule and a data publishing submodule;

[0125] The interface configuration submodule is used to obtain the interface type set of all products in the factory area, and configure the driver interface for each interface type on the 3D scene twin platform;

[0126] The binding submodule is used to bind the product entity ID to the corresponding product driver interface one by one;

[0127] The information generation submodule is used to exchange data with the interface of the corresponding product through the driver interface, obtain the operation data of the corresponding product in real time, import the operation data into the 3D scene twin platform to control the model operation of the corresponding product, obtain the scene information and integrate and upload the scene information to the twin server database of the 3D scene twin platform;

[0128] The data publishing sub-module is used to control the operation of the 3D scene twin platform according to the scene information of the twin server database to obtain the published data.

[0129] Embodiment three:

[0130] Figure 6 A schematic diagram of a terminal device described in an embodiment of the present application.

[0131] like Figure 6 As shown, an embodiment of the present application provides a terminal device, including a processor and a memory;

[0132] A memory, used for storing program codes and transmitting the program codes to a processor;

[0133] A processor is used to execute the above-mentioned twin-based plant virtual model release control method according to instructions in the program code.

[0134] It should be noted that the processor is used to execute the steps in the above-mentioned embodiment of a twin-based plant virtual model release control method according to the instructions in the program code. Alternatively, the processor implements the functions of each module / unit in the above-mentioned system / device embodiments when executing the computer program.

[0135] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in a memory and executed by a processor to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the computer program in a terminal device.

[0136] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that this does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0137] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (dSIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0138] The memory may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Furthermore, the memory may include both an internal storage unit of the terminal device and an external storage device. The memory is used to store computer programs and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.

[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0140] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0144] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A twin-based plant virtual model release control method, characterized in that: The following steps are involved: Obtain a structural layout diagram of the factory area, and build a 3D scene twin platform matching the factory area according to the structural layout diagram; Obtain the product entity IDs of all products in the factory area, use entity ID and data source binding technology to configure the data source of the 3D scene twin platform, and obtain published data; A twin operation package corresponding to the plant area is generated according to the published data, and the operation of the twin operation package is controlled to monitor and manage the plant area.

2. The twin-based plant virtual model release control method according to claim 1 is characterized in that: Generating a twin operation package corresponding to the plant area according to the published data includes: The published data is converted using LINQ to JSON or a serialization / deserialization library of LINQ technology to obtain format data that satisfies the format of the three-dimensional rendering base in the 3D scene twin platform; The meaning of each field and the storage structure of each field are set, and the format data is configured according to the meaning and the storage structure of each field to obtain a configuration file that satisfies the base package in the 3D scene twin platform; Add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain a loading file; The CI / CD tool is used to automatically package the loading file to generate a twin operation package corresponding to the factory area.

3. The twin-based plant virtual model release control method according to claim 1 is characterized in that: Controlling the operation of the twin operation package to monitor and manage the plant area includes: The 3D scene twin platform of the twin operation package is used to obtain scene engineering configuration data, model data and UI interface, and the interface type in the 3D scene twin platform of the twin operation package is used to obtain dynamic data information of the twin; Generate corresponding UI components and model entities at corresponding coordinate points of the UI interface according to the scene engineering configuration data and the model data; Twin mapping is performed on the corresponding UI components and the model entities according to the dynamic data information, and the data displayed on the UI interface is updated in real time to monitor and manage the factory area.

4. The twin-based plant virtual model release control method according to claim 1 is characterized in that: The entity ID and data source binding technology is used to configure the data source of the 3D scene twin platform, and the published data includes: Obtain an interface type set for all products in the factory area, and configure a driver interface for each interface type in the interface type set on the 3D scene twin platform; Bind the product entity ID to the drive interface corresponding to the product one by one; Data is exchanged with the interface corresponding to the product through the driving interface, and the operation data of the corresponding product is obtained in real time, and the operation data is imported into the 3D scene twin platform to control the model operation of the corresponding product, and the scene information is obtained and integrated and uploaded to the twin server database of the 3D scene twin platform; The operation of the 3D scene twin platform is controlled according to the scene information in the twin server database to obtain the published data.

5. The twin-based plant virtual model release control method according to any one of claims 1 to 4, characterized in that: Building a 3D scene twin platform matching the factory area according to the structural layout diagram includes: Obtain all products in the factory area, use standardized UI components to model each product, obtain corresponding product models and configure model data for each product model, wherein the model data includes product entity ID, storage path, size, material and deformation parameters; Drag the product model corresponding to each product to the designated coordinate point, obtain the storage path and the product entity ID of each product model, and import the corresponding product model into the 3D scene; All the 3D scenes are rendered according to the size, material and deformation of the corresponding products to construct a 3D scene twin platform.

6. A twin-based plant virtual model release control device, characterized in that: Includes platform building module, data generation module and release monitoring module; The platform construction module is used to obtain a structural layout diagram of the factory area and construct a 3D scene twin platform matching the factory area according to the structural layout diagram; The data generation module is used to obtain the product entity IDs of all products in the factory area, and configure the data source of the 3D scene twin platform using the entity ID and data source binding technology to obtain the published data; The release monitoring module is used to generate a twin operation package corresponding to the factory area according to the release data, and control the operation of the twin operation package to monitor and manage the factory area.

7. The twin-based plant virtual model publishing control device according to claim 6 is characterized in that: The publishing monitoring module includes: a conversion submodule, a configuration submodule, a file adding submodule and a publishing submodule; The conversion submodule is used to convert the published data using LINQ to JSON or a serialization / deserialization library of LINQ technology to obtain format data that meets the format of the three-dimensional rendering base in the 3D scene twin platform; The configuration submodule is used to set the meaning of each field and the storage structure of each field, and perform file configuration on the format data according to the meaning and storage structure of each field to obtain a configuration file that satisfies the base package in the 3D scene twin platform; The configuration submodule is used to add the configuration file to the storage directory of the base package in the 3D scene twin platform to obtain a loading file; The publishing submodule is used to automatically package the loading file using the CI / CD tool to generate a twin operation package corresponding to the factory area.

8. The twin-based plant virtual model publishing control device according to claim 6 is characterized in that: The release monitoring module is also used to obtain scene engineering configuration data, model data and UI interface using the 3D scene twin platform of the twin operation package, and to obtain dynamic data information of the twin using the interface type in the 3D scene twin platform of the twin operation package; Corresponding UI components and model entities are generated at corresponding coordinate points of the UI interface according to the scene engineering configuration data and the model data; twin mapping is performed on the corresponding UI components and the model entities according to the dynamic data information, and the data displayed on the UI interface is updated in real time to monitor and manage the factory area.

9. The twin-based plant virtual model publishing control device according to claim 6 is characterized in that: The data generation module includes an interface configuration submodule, a binding submodule, an information generation submodule and a data publishing submodule; The interface configuration submodule is used to obtain the interface type set of all products in the factory area, and configure a driving interface for each interface type in the interface type set on the 3D scene twin platform; The binding submodule is used to bind the product entity ID to the drive interface corresponding to the product one by one; The information generation submodule is used to perform data interaction with the interface corresponding to the product through the driving interface, obtain the operation data of the corresponding product in real time, import the operation data into the 3D scene twin platform to control the model operation of the corresponding product, obtain scene information and integrate and upload the scene information to the twin server database of the 3D scene twin platform; The data publishing submodule is used to control the operation of the 3D scene twin platform according to the scene information in the twin server database to obtain published data.

10. A terminal device, characterized in that: including a processor and a memory; The memory is used to store program codes and transmit the program codes to the processor; The processor is used to execute the twin-based plant virtual model release control method as described in any one of claims 1 to 5 according to the instructions in the program code.