Workshop simulation method and device, electronic equipment and storage medium

Through the joint simulation method of Modelica and Unity3D, workshop transportation instructions are generated and verified, which solves the problem of rationality verification of workshop planning and achieves effective verification and rationality guarantee of workshop-level planning.

CN118673686AActive Publication Date: 2024-09-20SUZHOU TONGYUAN SOFT CONTROL INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410714371.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-20
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In the process of factory workshop planning, it is difficult to effectively verify the rationality of workshop logistics planning with existing technology, which makes it difficult to expose hidden problems in the design stage and lacks effective verification methods.

Method used

The workshop simulation method based on Modelica and Unity3D is used to obtain the target simulation task, generate transportation instructions and conduct joint simulation, and combine the advantages of both to achieve complex large-scale workshop-level simulation and verify the rationality of workshop planning.

Benefits of technology

It achieves effective verification of workshop-level planning, ensures the rationality of workshop planning, solves the problem of exposing hidden problems in the design stage, and meets the needs of complex large-scale workshop-level simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673686A
    Figure CN118673686A
Patent Text Reader

Abstract

The embodiment of the invention discloses a workshop simulation method and device, electronic equipment and a storage medium. Obtaining a target simulation task, and performing production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transportation instruction; transmitting the transportation instruction to a scene simulation model established based on Unity 3D through a joint simulation communication interface so as to realize joint simulation of the target simulation task; a scene simulation model established based on Unity 3D performs transportation simulation according to the transportation instruction to obtain a transportation simulation result, and transmits the transportation simulation result to a workshop model through a joint simulation communication interface; and the workshop model determines a target simulation result of the target simulation task according to the transportation simulation result. According to the embodiment of the invention, the workshop-level planning is effectively verified, and the reasonability of the workshop planning is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to communication technology, and more particularly to a workshop simulation method, device, electronic device, and storage medium. Background Art

[0002] During the workshop planning process of the factory, logistics planning is required to ensure the normal operation of workshop production.

[0003] In the existing technology, logistics planning is generally carried out by design institutes in collaboration with owners based on experience to carry out unified workshop planning. However, when conducting workshop planning based on experience, some hidden problems are difficult to be exposed during the design stage, making it difficult to judge whether the workshop logistics planning is reasonable, and there is a lack of effective verification methods for the workshop planning scheme. Summary of the invention

[0004] The present application provides a workshop simulation method, device, electronic device and storage medium to effectively verify workshop-level planning and ensure the rationality of workshop planning.

[0005] In a first aspect, an embodiment of the present application provides a workshop simulation method, the workshop simulation method comprising:

[0006] Obtain the target simulation task, and perform production simulation on the target simulation task through the workshop model based on Modelica integration to generate transportation instructions;

[0007] Through the joint simulation communication interface, the transportation instructions are transmitted to the scene simulation model built based on Unity3D to achieve joint simulation of the target simulation task;

[0008] Based on the scene simulation model established in Unity3D, the transportation simulation is carried out according to the transportation instructions to obtain the transportation simulation results, and the transportation simulation results are transmitted to the workshop model through the joint simulation communication interface;

[0009] The workshop model determines the target simulation results of the target simulation task according to the transportation simulation results.

[0010] In a second aspect, an embodiment of the present application further provides a workshop simulation device, the workshop simulation device comprising:

[0011] The transport instruction generation module is used to obtain the target simulation task, perform production simulation on the target simulation task through the workshop model based on Modelica integration, and generate the transport instruction;

[0012] The transport instruction transmission module is used to transmit the transport instruction to the scene simulation model established based on Unity3D through the joint simulation communication interface to realize the joint simulation of the target simulation task;

[0013] The transport simulation result transmission module is used to perform transport simulation according to the transport instructions based on the scene simulation model established by Unity3D, obtain the transport simulation results, and transmit the transport simulation results to the workshop model through the joint simulation communication interface;

[0014] The target simulation result determination module is used for the workshop model to determine the target simulation result of the target simulation task according to the transportation simulation result.

[0015] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] A storage device for storing one or more programs;

[0018] When one or more programs are executed by one or more processors, the one or more processors implement any one of the workshop simulation methods provided in the embodiments of the present application.

[0019] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute any one of the workshop simulation methods provided in the embodiments of the present application.

[0020] This application obtains the target simulation task, and performs production simulation on the target simulation task through the workshop model based on Modelica integration to generate transportation instructions, which can effectively simulate the production process of the workshop based on Modelica; through the joint simulation communication interface, the transportation instructions are transmitted to the scene simulation model established based on Unity3D to realize the joint simulation of the target simulation task, which can combine the advantages of good openness of the Modelica model and mature collision detection function of Uinty3D to better meet the complex large-scale workshop-level simulation needs; based on the scene simulation model established by Unity3D, transportation simulation is performed according to the transportation instructions to obtain the transportation simulation results, which can effectively simulate the transportation situation of the workshop based on Unity3D; and through the joint simulation communication interface, the transportation simulation results are transmitted to the workshop model; the workshop model determines the target simulation results of the target simulation task according to the transportation simulation results, and realizes the multi-domain unified modeling and simulation analysis of the overall workshop-level system. Therefore, through the technical solution of this application, it is solved that some hidden problems are difficult to be exposed in the design stage, it is difficult to judge whether the workshop logistics planning is reasonable, and there is a lack of effective verification methods for the workshop planning scheme, and the workshop-level planning is effectively verified to ensure the rationality of the workshop planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1is a flow chart of a workshop simulation method in Embodiment 1 of the present application;

[0022] Figure 2 is a flow chart of a workshop simulation method in Embodiment 2 of the present application;

[0023] Figure 3 is a flow chart of a workshop simulation method in Embodiment 3 of the present application;

[0024] Figure 4 It is a structural schematic diagram of a workshop simulation device in Embodiment 4 of the present application;

[0025] Figure 5 It is a structural diagram of an electronic device in Embodiment 5 of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first" and "second" etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 This is a flowchart of a workshop simulation method provided in Example 1 of the present application. This embodiment can be applicable to the situation of logistics simulation of a workshop. The method can be executed by a workshop simulation device, which can be implemented using software and / or hardware and specifically configured in an electronic device, such as a computer.

[0030] See also Figure 1 The workshop simulation method shown in the figure specifically includes the following steps:

[0031] S110, obtaining a target simulation task, and performing production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transportation instruction.

[0032] The target simulation task can be a simulation task specified according to the production process of the workshop to be simulated, which is used to verify the rationality of the workshop transportation. Exemplarily, the target simulation task can be a generation task that can complete a certain production link, and the target simulation task involves at least the transportation of goods between at least two production equipment. For example, the target simulation task can be that the unpacking equipment unpacks the unpacked raw materials and transports the unpacked raw materials to the manufacturing equipment. Specifically, the target simulation task can be formulated by professional technicians according to the production process of the workshop, or the production process of the workshop can be input into the intelligent algorithm by professional technicians, and the target simulation task is automatically generated by the intelligent algorithm. This application does not make specific restrictions on this.

[0033] Modelica is an open, equation-based, object-oriented, multi-domain unified modeling language used to integrate workshop models. Modelica can build complex heterogeneous models with multi-domain coupling for different fields such as mechanics, electronics, hydraulics, air pressure and heat, and can easily realize its physical system modeling, so as to quickly build physical simulation models of complex systems, which can be used to simulate the production operation and task scheduling of production workshop equipment. Modelica has good openness, which can realize the customized development of functions and the embedding of various algorithms. In addition, the workshop model based on Modelica integration has no restrictions on the simulation scale and can perform simulation analysis of large-scale scenarios.

[0034] The workshop model can be a simulation model of a workshop with certain production functions based on Modelica integration, which is used to perform production simulation for the target simulation task. The production simulation can be to simulate the production process of the workshop according to the target simulation task. For example, the production simulation can be to unpack the raw materials to be unpacked to obtain the raw materials, and the production simulation process can include unpacking a certain number of raw materials to be unpacked to obtain a certain kilogram of raw materials. The transportation instruction can be an instruction to transport the product after the production simulation of the target simulation task. Specifically, the transportation instruction can be automatically generated by the workshop model according to the preset workshop production process for the target simulation task.

[0035] S120, transmitting the transportation instruction to the scene simulation model established based on Unity3D through the joint simulation communication interface to achieve joint simulation of the target simulation task.

[0036] Unity3D can be used for transportation simulation as an engine that can realize collision detection, collision response, and trigger events for the transportation of objects in the simulated workshop. Unity3D is a powerful game development engine, in which collision components are an important part of realizing the interaction and collision effects between game objects. In Unity3D, each object can add collision components to realize collision interaction with other objects, and the object's movement trajectory and path can also be set, which can be used to simulate the path planning and collision avoidance functions of mobile robots in transportation. For problems such as physical collision and path planning that are difficult to achieve in Modelica, Unity3D can be used to achieve them. Therefore, based on the workshop model built by Modelica and combined with Unity3D for joint simulation, the simulation requirements of typical scenes of production and transportation in the simulated workshop can be better met.

[0037] The scene simulation model may be a model for simulating the equipment placement scene in the workshop model based on Unity3D, and is used to simulate the actual scene of the simulated workshop to perform transportation simulation.

[0038] The joint simulation communication interface can be an interface for Modelica and Unity3D to communicate, and is used for data conversion and transmission when various instructions are transmitted between Modelica and Unity3D during the workshop simulation process. When Modelica and Unity3D read data, they have different requirements for the data format, so it is necessary to pre-set the joint simulation communication interface to convert the data so that various instructions can communicate between the workshop model and the scene simulation model. After the workshop model integrated based on Modelica and the scene simulation model established based on Unity3D, it is necessary to set the joint simulation communication interface for the workshop model and the scene simulation model so that joint simulation based on Modelica and Unity3D can be realized.

[0039] After the transportation instruction is generated to the joint simulation communication interface, the joint simulation communication interface converts the data format of the transportation instruction into data that conforms to the Unity3D format, and transmits it to the scene simulation model established based on Unity3D, so that the scene simulation model established based on Unity3D can effectively obtain the transportation instruction.

[0040] S130, based on the scene simulation model established in Unity3D, perform transportation simulation according to the transportation instruction, obtain the transportation simulation result, and transmit the transportation simulation result to the workshop model through the joint simulation communication interface.

[0041] Transport simulation can be a simulation of the transport process, which is used to perform collision detection and determine whether the workshop logistics planning is reasonable. Exemplarily, the transport simulation can be a scene simulation model that drives the corresponding mobile robot to move according to the transport instructions. The transport simulation results can be various data recorded during the transport simulation process, which are used to determine whether the workshop logistics planning is reasonable. Exemplarily, the transport simulation results may include the start, pause, task completion time and collision detection results of the mobile robot. The specific content of the transport simulation results can be set by professional technicians according to the simulation purpose, and this application does not make specific limitations on this.

[0042] Based on the scene simulation model established by Unity3D, the starting point and end point of the mobile robot in the scene simulation model are determined according to the transportation instructions, and the transportation path is determined according to the path planning rules preset in the scene simulation model. The mobile robot is driven to move along the transportation path, and the corresponding data during the movement is recorded according to the data type required by the transportation simulation result. The transportation simulation result is generated, and the transportation simulation result is converted into data in the Modelica format through the joint simulation communication interface, and the transportation simulation result is transmitted to the workshop model.

[0043] The path planning rules can be the principles that need to be followed for path planning set in advance in the scene simulation model, and can be set by professional technicians. The transportation path can be a pre-set fixed path or a variable path, and this application does not specifically limit this. Exemplarily, the scene simulation model can determine the transportation path through an intelligent algorithm based on the path planning rules. Exemplarily, the scene simulation model can also pre-set a fixed path planning, and automatically determine the transportation path after determining the starting point and the end point.

[0044] S140. The workshop model determines a target simulation result of the target simulation task according to the transportation simulation result.

[0045] The target simulation result can be the execution result score of the target simulation task determined according to the transportation simulation result, which is used to represent the verification result of the workshop planning scheme. The transportation simulation result can be used to evaluate the transportation time of the materials in the workshop model, whether there is a collision risk, etc., and then the target simulation result can be determined according to the various data in the transportation simulation result. Exemplarily, the target simulation result can be obtained by weighted summing the various data in the transportation simulation result. The scoring rules and weights of each data can be set according to demand, and this application does not make specific restrictions on this. For example, the shorter the transportation time, the higher the score of the transportation time item, and the smaller the collision risk, the higher the score of the collision risk item. The verification result of the workshop planning scheme can be determined according to the numerical value of the target simulation result. For example, if the target simulation result exceeds 90, it is determined that the workshop planning scheme has passed the verification, otherwise the workshop planning scheme has not passed the verification.

[0046] In traditional factory planning, logistics is an effective way to verify the planning scheme, which makes it difficult to expose some hidden problems in the design stage, such as cycle bottlenecks, unsmooth logistics paths, and mismatched equipment configuration requirements. Logistics simulation is a necessary way to solve some hidden problems in the logistics planning stage. It is a necessary means to ensure that factory logistics planning, construction and operation meet the requirements of scientificity, efficiency, timeliness and economic applicability. Its focus is on solving problems such as logistics cycle bottlenecks, equipment configuration and logistics path planning.

[0047] In the modeling and simulation process in the factory field, especially in the field of factory production logistics, the avoidance and detection of mobile robots are often involved. Although some logistics simulation software such as FlexSim (a professional term, a simulation software) can perform collision detection, its functions are simple, lack the support of optimization algorithms, and the simulation scale is limited. It cannot be used for simulation of large-scale scenarios and has poor applicability.

[0048] The technical solution of this embodiment, by obtaining the target simulation task, and performing production simulation on the target simulation task through the workshop model based on Modelica integration, generating transportation instructions, can effectively simulate the production process of the workshop based on Modelica; through the joint simulation communication interface, the transportation instructions are transmitted to the scene simulation model established based on Unity3D to realize the joint simulation of the target simulation task, which can combine the advantages of good openness of the Modelica model and mature collision detection function of Uinty3D to better meet the complex large-scale workshop-level simulation needs; based on the scene simulation model established by Unity3D, transportation simulation is performed according to the transportation instructions to obtain the transportation simulation results, and the transportation situation of the workshop can be effectively simulated based on Unity3D; and through the joint simulation communication interface, the transportation simulation results are transmitted to the workshop model; the workshop model determines the target simulation results of the target simulation task according to the transportation simulation results, and realizes the multi-domain unified modeling and simulation analysis of the overall workshop-level system. Therefore, through the technical solution of this application, it is solved that some hidden problems are difficult to be exposed in the design stage, it is difficult to judge whether the workshop logistics planning is reasonable, and there is a lack of effective verification methods for the workshop planning scheme, and the workshop-level planning is effectively verified to ensure the rationality of the workshop planning.

[0049] Embodiment 2

[0050] Figure 2 This is a flow chart of a workshop simulation method provided in Example 2 of the present application. The technical solution of this embodiment is further refined on the basis of the above technical solution.

[0051] Furthermore, “transmitting the transportation instructions to the scene simulation model established based on Unity3D through the joint simulation communication interface” is refined as: “obtaining the transportation instructions through the joint simulation communication interface; converting the transportation instructions into target script data through a preset data conversion method; transmitting the target script data to the scene simulation model established based on Unity3D”, so as to transmit the transportation instructions to the scene simulation model.

[0052] See also Figure 2 A workshop simulation method is shown, comprising:

[0053] S210, obtaining a target simulation task, and performing production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transportation instruction.

[0054] S220, the joint simulation communication interface obtains the transportation instruction.

[0055] After the workshop model performs production simulation on the target simulation task, it generates a transportation instruction and sends the transportation instruction to the joint simulation interface, which obtains the transportation instruction.

[0056] S230, converting the transport instruction into target script data through a preset data conversion method.

[0057] The preset data conversion method may be a data conversion method preset in the joint simulation communication interface, which is used to convert the data format in the transport instruction so that the transport instruction can be effectively read after being sent to the scene simulation model. The target script data may be the script data obtained after the transport instruction is converted according to the preset data conversion method, which is used to be transmitted to the scene simulation model.

[0058] The transportation instructions may involve tasks such as the collection and allocation of mobile robots, and involve data such as task type, mobile robot destination and mobile robot status. According to the data characteristics, the task type is defined as integer data, the mobile robot destination is defined as real data, and the mobile robot status is defined as Boolean data. Then, the task allocation logic is implemented through the Modelica language. Subsequently, the group of transportation instructions is converted into target script data through the joint simulation communication interface, and transmitted to the scene simulation model in Unity3D through the script. The scene simulation model reads the transportation instruction and drives the corresponding mobile robot to perform transportation.

[0059] In an optional embodiment, the preset data conversion method includes: at least one of a data reading order conversion method and a data type conversion method.

[0060] Since the data types in Modelica are different from the data types and reading order that can be recognized in Unity3D, the data order and data type conversion must be performed according to a certain logic. For example, the real data type in Modelica is converted to the floating-point data that can be recognized in Unity3D; similarly, the floating-point data that can be recognized in Unity3D can also be converted to the real data type in Modelica. The other data types can also be converted to each other according to the matching relationship.

[0061] The preset data conversion method includes: at least one of a data reading order conversion method and a data type conversion method, which can ensure that data can be interactively recognized between Modelica and Unity3D to achieve data transmission, and further achieve joint simulation of Modelica and Unity3D.

[0062] It should be noted that the co-simulation communication interface can perform bidirectional conversion according to a preset data conversion method. That is, the co-simulation communication interface can convert the data types in Modelica into data types recognizable in Unity3D according to the preset data conversion method, and can also convert the data types recognizable in Unity3D into data types in Modelica according to the preset data conversion method.

[0063] S240, transmitting the target script data to the scene simulation model established based on Unity3D.

[0064] The converted transmission instructions are transmitted to the scene simulation model based on Unity3D through the script. After receiving the target script data, the scene simulation model based on Unity3D can identify the corresponding data to perform subsequent transportation simulation.

[0065] S250, based on the scene simulation model established in Unity3D, perform transportation simulation according to the transportation instruction, obtain the transportation simulation result, and transmit the transportation simulation result to the workshop model through the joint simulation communication interface.

[0066] S260. The workshop model determines a target simulation result of the target simulation task according to the transportation simulation result.

[0067] The technical solution of this embodiment is to obtain transportation instructions through a joint simulation communication interface; convert the transportation instructions into target script data through a preset data conversion method; transmit the target script data to a scene simulation model established based on Unity3D, perform data conversion through the joint simulation communication interface, realize data transmission between Modelica and Unity3D, and realize joint simulation of Modelica and Unity3D.

[0068] Embodiment 3

[0069] Figure 3 This is a flow chart of a workshop simulation method provided in Example 3 of the present application. The technical solution of this embodiment is further refined on the basis of the above technical solution.

[0070] Furthermore, before “transmitting the transport instructions to the scene simulation model established based on Unity3D through the joint simulation communication interface”, add: “According to the connection relationship between the equipment in the workshop scene, the workshop model is integrated based on the Modelica logistics general component model library, and the scene simulation model is established based on Unity3D; based on the joint simulation communication interface of the workshop model and the scene simulation model, a communication connection between the workshop model and the scene simulation model is established” to build a communication interface between the workshop model and the scene simulation model.

[0071] See also Figure 3 A workshop simulation method is shown, comprising:

[0072] S310, according to the connection relationship of each device in the workshop scene to be simulated, the workshop model is integrated based on the Modelica logistics general component model library, and the scene simulation model is established based on Unity3D.

[0073] Before conducting workshop simulation, it is necessary to analyze the product logistics scenario of the workshop first, and then build a workshop model and scenario simulation model based on the analysis results to establish a workshop model and scenario simulation model that conforms to reality.

[0074] Product logistics scenario analysis can be based on the workflow of the workshop to be simulated, determine which production equipment, index requirements and production principles should be included in the workshop to be simulated, as well as the cross-linking relationship between upstream and downstream equipment. For example, taking a certain production workshop as an example, the production equipment of the roll-wrapping workshop can include unpacking machines, manufacturing machines and packaging machines, and the logistics equipment mainly includes conveyor belts and mobile robots, etc. The production process is that the main raw materials are unpacked by the unpacking machine, and then transmitted to the manufacturing machine through the conveyor belt, and manufactured into products together with other auxiliary materials, and then packaged into products that meet the standards by the packaging machine through the conveyor belt; in addition, the manufacturing machine and the packaging machine also have pallets for various auxiliary materials. After the pallets are used up, the mobile robot is responsible for transporting them. The mobile robot is also responsible for recycling the outer packaging of the raw materials removed by the unpacking machine.

[0075] The product logistics scenario analysis results decompose each device in the simulation workshop based on the principle of hierarchical structure, and decompose the production equipment model and logistics equipment into typical component models. For example, the unpacking machine can be abstracted as a decomposer; the manufacturing machine can be abstracted as a synthesizer; the packaging machine can be abstracted as a synthesizer, and the mobile robot corresponds to the mobile robot device in the model library. Each device can also add a fault model according to the actual situation to ensure that the simulation is closer to the actual production situation. At the same time, the decomposed components correspond one-to-one with the physical equipment, which can greatly improve the reusability of the components.

[0076] The production principles of each equipment and the connection relationships between each subsystem are defined and combined and connected, and the Modelica logistics general component model library developed by the multi-domain unified modeling software MWORKS.Sysplorer (professional term, a modeling software) is used to establish a Modelica equipment model of the production equipment that meets the actual production situation. Subsequently, the equipment model is used to integrate the workshop-level model according to the layout relationship of the workshop to be simulated and the connection relationship of the equipment, and the related joint simulation communication interface with Unity3D is reserved as an external connector to finally realize the Modelica workshop model of the workshop to be simulated.

[0077] Use 3DS Max (professional term, a modeling software) 3D modeling software or simplify the 3D model to build the basic 3D model of the equipment. The model needs to be controlled within 40,000 faces according to the development specifications, and then make model textures. After the configuration is completed, export it to Unity3D for development. The model file is imported into Unity3D and automatically converted into a series of framework nodes. Then, according to the connection relationship between the subsystems defined above, they are combined and connected to build its Unity3D scene simulation model. At the same time, based on the secondary development of Unity3D, a joint simulation communication interface between Unity3D and Modelica model is constructed as an external connector.

[0078] S320. Establish a communication connection between the workshop model and the scenario simulation model based on the joint simulation communication interface of the workshop model and the scenario simulation model.

[0079] After completing the integration of the Modelica workshop model and the construction of the Unity3D scene simulation model, the Modelica simulation data and the Unity3D simulation data are transmitted over the network using a network communication method such as UDP (professional term, a communication protocol) or TCP / IP (professional term, a communication protocol) protocol, so as to realize the data interaction between the Modelica workshop model and the Unity3D scene simulation model. Exemplarily, when Unity3D is started each time, it will automatically open the joint simulation communication interface, read the transportation instructions transmitted by the workshop model in Modelica through the joint simulation communication interface according to the set frequency, and distribute the instructions in the transportation instructions to the corresponding transportation equipment, and drive the transportation equipment to operate, obtain the transportation simulation results, and then transmit the transportation simulation results back to the workshop model in Modelica through the joint simulation communication interface, and perform subsequent data processing of the transportation simulation results to realize the joint simulation.

[0080] S330, obtaining a target simulation task, and performing production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transportation instruction.

[0081] In an optional embodiment, a target simulation task is subjected to production simulation by a workshop model based on Modelica integration to generate transportation instructions, including: determining a target device according to the target simulation task based on a workshop model based on Modelica integration; the target device is subjected to production simulation according to a preset production principle and the target simulation task to generate a target product, and determining a transportation destination of the target product; and generating transportation instructions according to the transportation destination.

[0082] The target device may be a device that performs the target simulation task in the workshop model, and is used to respond to the target simulation task. The workshop model may determine the corresponding target device according to the operation type in the target simulation task. The generated target product may be the product obtained after the target device performs production simulation. The transportation destination may be the location to which the target product needs to be transported, and is used to determine the transportation instructions. The target device performs production simulation according to the preset production principle and the target simulation task, generates the target product, and determines the transportation destination of the target product according to the production process. For example, if the target simulation task is to unpack raw materials, the workshop model determines that the target device is an unpacking machine, and the unpacking machine unpacks the raw materials to obtain the raw materials, uses the raw materials as the target product, and determines that the transportation destination is a manufacturing machine according to the production process.

[0083] A transport instruction is generated based on the transport destination and the current location of the target product. The transport instruction may include relevant information of the current location, the transport destination, and the target product. Exemplarily, the relevant information of the target product may be mass, volume, shape, etc., which is not specifically limited in this application.

[0084] Through the workshop model based on Modelica integration, the target equipment is determined according to the target simulation task; the target equipment performs production simulation according to the preset production principle and target simulation task, generates the target product, and determines the transportation destination of the target product. It can automatically perform production simulation and provide a transportation destination for the transportation instruction; according to the transportation destination, the transportation instruction is generated to facilitate the transportation simulation through the scene simulation model established by Unity3D.

[0085] S340, transmitting the transport instruction to the scene simulation model established based on Unity3D through the joint simulation communication interface to realize the joint simulation of the target simulation task.

[0086] S350, based on the scene simulation model established in Unity3D, perform transportation simulation according to the transportation instruction, obtain the transportation simulation result, and transmit the transportation simulation result to the workshop model through the joint simulation communication interface.

[0087] In an optional embodiment, based on a scene simulation model established in Unity3D, a transport simulation is performed according to the transport instructions to obtain a transport simulation result, including: based on the scene simulation model established in Unity3D, obtaining the transport destination and the current location according to the transport instructions; determining the target transport route according to the corresponding positions of the transport destination and the current location in the scene simulation model; performing a transport simulation according to the target transport route to obtain a transport simulation result.

[0088] After the scene simulation model established by Unity3D obtains the transportation instruction, it parses the transportation destination and the current position from it. The position corresponding to the transportation destination and the current position is determined in the scene simulation model. Specifically, the position coordinates corresponding to the transportation destination and the current position can be determined in the scene simulation model.

[0089] The target transportation route may be a transportation route determined by the scenario simulation model according to the transportation destination and the current position. The target transportation route is determined according to the location coordinates corresponding to the transportation destination and the current position, and the preset path determination method. Preferably, when determining the target transportation route, the volume of the target product may also be considered to ensure that no collision occurs during transportation. After determining the target transportation route, a transportation simulation is performed according to the target transportation route, and relevant data in the transportation simulation is recorded to determine the transportation simulation result.

[0090] Through the scene simulation model established based on Unity3D, the transportation destination is obtained according to the transportation instructions; the target transportation route is determined according to the transportation destination and the current position of the target equipment in the scene simulation model; transportation simulation is carried out according to the target transportation route to obtain transportation simulation results, realize the simulation of the transportation process, make up for the defects of the workshop model that cannot perform logistics planning and collision detection, realize joint simulation, realize effective verification of workshop-level planning, and ensure the rationality of workshop planning.

[0091] S360. The workshop model determines a target simulation result of the target simulation task according to the transportation simulation result.

[0092] The technical solution of this embodiment can accurately establish a workshop model that conforms to reality and improve the accuracy of simulation results by integrating the workshop model based on the Modelica logistics general component model library according to the connection relationship of each equipment in the workshop scene, and establishing a scene simulation model based on Unity3D; based on the joint simulation communication interface of the workshop model and the scene simulation model, a communication connection between the workshop model and the scene simulation model is established, and joint simulation is realized through the joint simulation communication interface, combining the advantages of the good openness of the Modelica model and the mature collision detection function of Uinty3D, so as to better meet the complex large-scale workshop-level simulation needs.

[0093] Embodiment 4

[0094] Figure 4 The figure shows a schematic diagram of the structure of a workshop simulation device provided in the fourth embodiment of the present application. This embodiment can be applied to the case of logistics simulation of a workshop. The specific structure of the workshop simulation device is as follows:

[0095] The transport instruction generation module 410 is used to obtain the target simulation task, and perform production simulation on the target simulation task through the workshop model based on Modelica integration to generate the transport instruction;

[0096] The transport instruction transmission module 420 is used to transmit the transport instruction to the scene simulation model established based on Unity3D through the joint simulation communication interface to realize the joint simulation of the target simulation task;

[0097] The transport simulation result transmission module 430 is used to perform transport simulation according to the transport instruction based on the scene simulation model established by Unity3D, obtain the transport simulation result, and transmit the transport simulation result to the workshop model through the joint simulation communication interface;

[0098] The target simulation result determination module 440 is used for the workshop model to determine the target simulation result of the target simulation task according to the transportation simulation result.

[0099] The technical solution of this embodiment, by obtaining the target simulation task, and performing production simulation on the target simulation task through the workshop model based on Modelica integration, generating transportation instructions, can effectively simulate the production process of the workshop based on Modelica; through the joint simulation communication interface, the transportation instructions are transmitted to the scene simulation model established based on Unity3D to realize the joint simulation of the target simulation task, which can combine the advantages of good openness of the Modelica model and mature collision detection function of Uinty3D to better meet the complex large-scale workshop-level simulation needs; based on the scene simulation model established by Unity3D, transportation simulation is performed according to the transportation instructions to obtain the transportation simulation results, and the transportation situation of the workshop can be effectively simulated based on Unity3D; and through the joint simulation communication interface, the transportation simulation results are transmitted to the workshop model; the workshop model determines the target simulation results of the target simulation task according to the transportation simulation results, and realizes the multi-domain unified modeling and simulation analysis of the overall workshop-level system. Therefore, through the technical solution of this application, it is solved that some hidden problems are difficult to be exposed in the design stage, it is difficult to judge whether the workshop logistics planning is reasonable, and there is a lack of effective verification methods for the workshop planning scheme, and the workshop-level planning is effectively verified to ensure the rationality of the workshop planning.

[0100] Optionally, the transport instruction transmission module 420 includes:

[0101] A transport instruction acquisition unit, used for acquiring transport instructions through a joint simulation communication interface;

[0102] A target script data determination unit, used to convert the transport instruction into target script data by a preset data conversion method;

[0103] The target script data transmission unit is used to transmit the target script data to the scene simulation model established based on Unity3D.

[0104] Optionally, the preset data conversion method includes: at least one of a data reading order conversion method and a data type conversion method.

[0105] Optional, shipping instruction generation module, including:

[0106] The target equipment determination unit is used to determine the target equipment according to the target simulation task based on the shop floor model integrated with Modelica;

[0107] A transport destination determination unit is used for the target equipment to perform production simulation according to a preset production principle and a target simulation task, generate a target product, and determine a transport destination of the target product;

[0108] The transport instruction generating unit is used to generate a transport instruction according to the transport destination.

[0109] Optional, transport simulation result transmission module, including:

[0110] The transport instruction parsing unit is used to obtain the transport destination and current location according to the transport instruction based on the scene simulation model established by Unity3D;

[0111] A target transportation route determination unit, used to determine the target transportation route according to the corresponding positions of the transportation destination and the current position in the scene simulation model;

[0112] The transport simulation result determination unit is used to perform transport simulation according to the target transport route to obtain the transport simulation result.

[0113] Optional, workshop simulation device, also includes:

[0114] The model building module is used to integrate the workshop model based on the Modelica logistics general component model library according to the connection relationship of each device in the workshop scene to be simulated, and build a scene simulation model based on Unity3D;

[0115] The model communication connection module is used to establish a communication connection between the workshop model and the scenario simulation model based on the joint simulation communication interface of the workshop model and the scenario simulation model.

[0116] The workshop simulation device provided in the embodiment of the present application can execute the workshop simulation method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing the workshop simulation method.

[0117] Embodiment 5

[0118] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present application is shown in FIG. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530 and an output device 540; the number of the processor 510 in the electronic device can be one or more. Figure 5 A processor 510 is taken as an example; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0119] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the workshop simulation method in the embodiment of the present application (for example, the transportation instruction generation module 410, the transportation instruction transmission module 420, the transportation simulation result transmission module 430 and the target simulation result determination module 440). The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, realizing the above-mentioned workshop simulation method.

[0120] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] The input device 530 may be used to receive input character information and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include a display device such as a display screen.

[0122] Embodiment 6

[0123] Embodiment 6 of the present application also provides a storage medium containing computer executable instructions, which are used to execute a workshop simulation method when executed by a computer processor. The method includes: obtaining a target simulation task, and performing production simulation on the target simulation task through a workshop model based on Modelica integration to generate transportation instructions; transmitting the transportation instructions to a scene simulation model established based on Unity3D through a joint simulation communication interface to achieve joint simulation of the target simulation task; performing transportation simulation according to the transportation instructions based on the scene simulation model established based on Unity3D to obtain transportation simulation results, and transmitting the transportation simulation results to the workshop model through the joint simulation communication interface; the workshop model determines the target simulation result of the target simulation task based on the transportation simulation result.

[0124] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the workshop simulation method provided in any embodiment of the present application.

[0125] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0126] It is worth noting that in the embodiment of the above-mentioned workshop simulation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0127] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A workshop simulation method, characterized in that: include: Obtain a target simulation task, and perform production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transportation instruction; The transport instruction is transmitted to the scene simulation model established based on Unity3D through the joint simulation communication interface to realize the joint simulation of the target simulation task; The scene simulation model established based on Unity3D performs transportation simulation according to the transportation instruction to obtain the transportation simulation result, and transmits the transportation simulation result to the workshop model through the joint simulation communication interface; The workshop model determines a target simulation result of the target simulation task according to the transportation simulation result.

2. The method according to claim 1, characterized in that: The transport instruction is transmitted to the scene simulation model established based on Unity3D through the joint simulation communication interface, including: The joint simulation communication interface obtains the transportation instruction; The transport instruction is converted into target script data by a preset data conversion method; The target script data is transmitted to a scene simulation model established based on Unity3D.

3. The method according to claim 2, characterized in that The preset data conversion method includes: At least one of a data reading order conversion method and a data type conversion method.

4. The method according to claim 1, characterized in that: The method of performing production simulation on the target simulation task through the workshop model integrated based on Modelica and generating transportation instructions includes: The Modelica-integrated workshop model determines the target equipment according to the target simulation task; The target device performs production simulation according to a preset production principle and the target simulation task, generates a target product, and determines a transportation destination of the target product; A transportation instruction is generated according to the transportation destination.

5. The method according to claim 4, characterized in that The scene simulation model established based on Unity3D performs transportation simulation according to the transportation instruction to obtain the transportation simulation result, including: The scene simulation model established based on Unity3D obtains the transportation destination and current location according to the transportation instruction; Determining a target transportation route according to corresponding positions of the transportation destination and the current position in the scenario simulation model; A transportation simulation is performed according to the target transportation route to obtain a transportation simulation result.

6. The method according to any one of claims 1 to 5, characterized in that: Before obtaining the target simulation task, the method further includes: According to the connection relationship of each device in the workshop scene to be simulated, the workshop model is integrated based on the Modelica logistics general component model library, and the scene simulation model is established based on Unity3D; Based on the joint simulation communication interface of the workshop model and the scenario simulation model, a communication connection between the workshop model and the scenario simulation model is established.

7. A workshop simulation device, characterized in that: include: A transport instruction generation module is used to obtain a target simulation task, and perform production simulation on the target simulation task through a workshop model based on Modelica integration to generate a transport instruction; A transport instruction transmission module, used to transmit the transport instruction to the scene simulation model established based on Unity3D through a joint simulation communication interface, so as to realize joint simulation of the target simulation task; A transport simulation result transmission module, which is used for the scene simulation model established based on Unity3D to perform transport simulation according to the transport instruction, obtain the transport simulation result, and transmit the transport simulation result to the workshop model through the joint simulation communication interface; The target simulation result determination module is used for the workshop model to determine the target simulation result of the target simulation task according to the transportation simulation result.

8. The device according to claim 7, characterized in that The transport instruction transmission module comprises: A transport instruction acquisition unit, used for acquiring the transport instruction through the joint simulation communication interface; A target script data determination unit, used to convert the transport instruction into target script data by a preset data conversion method; The target script data transmission unit is used to transmit the target script data to the scene simulation model established based on Unity3D.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the workshop simulation method as described in any one of claims 1-6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the workshop simulation method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • General assembly workshop simulation model establishment method, computer readable storage medium and equipment

    CN116502439A

  • Dispatching system debugging method and device, debugging system and electronic equipment

    CN116880376A

  • Data simulation verification method and device, equipment and storage medium

    CN117834502A

  • Model construction method and device, equipment and storage medium

    CN118037145A

  • Method for designing production line based on digital twin

    US11067970B1