Production line control system, method, computer equipment and medium based on digital twin
Through the production line management and control system based on digital twins, multi-source heterogeneous data is collected and analyzed, and early warnings are performed based on the digital twin three-dimensional scene, which solves the problems of real-time monitoring delay and insufficient prediction of the traditional production line monitoring system, and achieves precise control of the production line. and efficient operation.
Patent Information
- Application Number
- CN202410691170.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-30
AI Technical Summary
Traditional production line monitoring systems rely on manual labor and traditional monitoring equipment, resulting in delays in real-time monitoring, inability to detect and solve production line problems in a timely manner, lack of visualization and intelligent functions, and difficulty in predicting new types of faults, reducing the reliability and efficiency of the production line.
A production line management and control system based on digital twins is adopted, including a data collection module, a quality inspection module, a production task module, a fault diagnosis module and an early warning module. It collects multi-source heterogeneous data through wireless communication connections, performs error detection and feedback control, and combines Digital twin 3D scenes provide early warning and realize real-time data analysis and system management.
It achieves precise control and timely correction of the production line, improves the efficiency of the production line, can identify key abnormalities in a timely manner, and improves the reliability and efficiency of the production line.
Smart Images

Figure CN118276535B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of production line operation management, and in particular to a production line control system, method, computer equipment and medium based on digital twins. Background Art
[0002] At present, most assembly production lines in the industrial field use traditional monitoring methods, that is, through monitoring equipment such as sensors, or manual monitoring methods, to collect the operating status and parameters of production equipment, and then conduct subsequent analysis and prediction. These methods require a lot of manpower and material resources, and are prone to errors. In addition, there is a lack of comprehensive analysis capabilities for the large amount of data collected. This leads to delays in real-time monitoring and the inability to discover and solve problems on the production line in a timely manner. Especially for high-speed production lines, the response speed of traditional monitoring systems is limited. In addition, since traditional systems are mainly based on historical data for analysis, new faults or emergencies are often unable to be predicted and identified in advance. This causes companies to rely more on post-analysis and recovery in fault handling, reducing the reliability and efficiency of the production line. In addition, traditional production line monitoring systems usually lack visualization and intelligent functions. Information display is often presented in the form of static dashboards or charts, making it difficult to intuitively understand the real-time status of the production line. At the same time, in large-scale production lines, the efficiency of manual analysis is limited, and key anomalies cannot be identified in a timely manner. Summary of the invention
[0003] Embodiments of the present invention provide a production line management and control system, method, computer device and storage medium based on digital twins to improve the efficiency of production line management and control.
[0004] In order to solve the above technical problems, the embodiment of the present application provides a production line control system based on digital twins, characterized in that the production line control system based on digital twins includes: a data acquisition module, a quality detection module, a production task module, a fault diagnosis module, an early warning module, and a system management module, and each module is connected by wireless communication, wherein:
[0005] The data acquisition module is used to collect multi-source heterogeneous data from different devices and communication interfaces;
[0006] The quality detection module is used to determine the rationality of the actual trajectory of the robot by performing error detection on the multi-source heterogeneous data, and to perform feedback control on the robot trajectory according to the determination result;
[0007] The production task module is used to calculate the current production information and display it in real time by receiving the system management module;
[0008] The fault diagnosis module diagnoses the multi-source heterogeneous data collected at each moment through the trained algorithm model, and sends the data with abnormal diagnosis results to the early warning module;
[0009] The early warning module combines the data diagnosed as abnormal with the digital twin three-dimensional scene to issue an early warning;
[0010] The system management module is used for system management and maintenance, including measurement point maintenance, authority management and interaction management between various modules.
[0011] Optionally, the early warning module includes a 3D scene free roaming component and a device health status management component.
[0012] In order to solve the above technical problems, the embodiment of the present application also provides a production line control method based on digital twins, including:
[0013] Collect real-time data of the production line, where the real-time data is multi-source heterogeneous data from different devices and communication interfaces;
[0014] Determine the actual running trajectory of the robot based on the real-time data, and determine the trajectory error based on the actual running trajectory and the expected trajectory;
[0015] Based on the trajectory error, the operating parameters of the robot are adjusted, and the robot is controlled according to the adjusted parameters.
[0016] Optionally, determining the actual running trajectory of the robot based on the real-time data, and determining the trajectory error based on the actual running trajectory and the expected trajectory includes:
[0017] Classifying the real-time data to obtain expected data and actual data, wherein the actual data is the parameters of the robot in the production line when it is running, and the expected data is the preset ideal parameters;
[0018] Calculate the numerical error between expected data and actual data;
[0019] Based on the expected data and the actual data, respectively, an expected curve and an actual curve are drawn, and a directional error between the expected curve and the actual curve is calculated;
[0020] Calculating an error coefficient based on the numerical error and the directional error;
[0021] The numerical error, the direction error and the error coefficient are used as the trajectory error.
[0022] Optionally, the calculating of the numerical error between the expected data and the actual data includes:
[0023] The numerical error is calculated using the following formula:E a :
[0024]
[0025] in, and Represent the function values of the expected curve and the actual curve at time t respectively.
[0026] Optionally, the calculating the direction error between the expected curve and the actual curve includes:
[0027] The direction error is calculated using the following formula: E c :
[0028]
[0029] in, and There are two curves in the moment ∆ The change in t, normalizing the vectors D and R to obtain , .
[0030] Optionally, the calculating the error coefficient based on the numerical error and the directional error includes:
[0031] The error coefficient is calculated using the following formula: E :
[0032]
[0033] in, E a represents the numerical error, E c represents the directional error, µ 1 and µ 2 is the weight coefficient, and µ 1 + µ 2 =1, 0.8 ≤ µ 1 ≤ 1.
[0034] Optionally, the method further comprises:
[0035] Conduct fault monitoring and diagnosis during the operation process, and issue timely warnings when faults occur.
[0036] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned production line control method based on digital twins when executing the computer program.
[0037] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned production line management and control method based on digital twins are implemented.
[0038] The production line control system, method, computer device and storage medium based on digital twin provided by the embodiment of the present invention collects real-time data of the production line, wherein the real-time data is multi-source heterogeneous data of different devices and communication interfaces; based on the real-time data, the actual running trajectory of the robot is determined, and based on the actual running trajectory and the expected trajectory, the trajectory error is determined; based on the trajectory error, the operating parameters of the robot are adjusted, and the robot is controlled according to the adjusted parameters. Accurate control and timely correction of the production line are achieved, which is conducive to improving the efficiency of the production line. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0040] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0041] Figure 2 This is an exemplary system architecture diagram of the production line control system based on digital twins of the present application;
[0042] Figure 3 It is a flowchart of an embodiment of the production line control method based on digital twin of the present application;
[0043] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] See also Figure 1 ,like Figure 1 A structural schematic diagram of a production line control system based on digital twins provided in an embodiment of the present invention, the production line control system based on digital twins includes: a data acquisition module 10, a quality detection module 20, a production task module 30, a fault diagnosis module 40, an early warning module 50, and a system management module 60, wherein the modules are connected by wireless communication, wherein:
[0048] The data acquisition module 10 is used to collect multi-source heterogeneous data from different devices and communication interfaces;
[0049] The quality detection module 20 is used to determine the rationality of the actual trajectory of the robot by performing error detection on multi-source heterogeneous data, and to perform feedback control on the robot trajectory according to the determination result;
[0050] The production task module 30 is used to calculate the current production information and display it in real time by receiving the system management module;
[0051] The fault diagnosis module 40 diagnoses the multi-source heterogeneous data collected at each moment through the trained algorithm model, and sends the data with abnormal diagnosis results to the early warning module;
[0052] The early warning module 50 combines the data diagnosed as abnormal with the digital twin three-dimensional scene to issue an early warning;
[0053] The system management module 60 is used for system management and maintenance, including measurement point maintenance, authority management and interaction management between various modules.
[0054] Optionally, the early warning module includes a 3D scene free roaming component and a device health status management component.
[0055] Specifically, in this embodiment, the production line (physical assembly line) includes transfer, checkpoint, transportation and other equipment, with different manufacturers, models, communication interfaces and protocols; the data generated during the assembly process is characterized by a large number and multiple heterogeneous sources. In order to achieve rapid, comprehensive and accurate collection and integration of assembly process data, this embodiment establishes a unified standardized data acquisition architecture and a comprehensive data integration management model. As a preferred method, this embodiment adopts an assembly process data acquisition architecture based on OPC UA (OLE for Process Control Unified Architecture), and the data collection architecture in this embodiment uses a client / server model. OPC UA supports cross-platform and cross-protocol communication, and data transmission is fast and stable. It is very suitable for collecting multi-source heterogeneous data, which is convenient for solving the problem of information interaction between various layers of assembly process data collection and visual monitoring system. The OPC UA server is placed at the assembly site, connected to the sensors, PLCs, controllers, and document libraries of the physical layer through the data bus, and truly obtains multi-source heterogeneous data and text files of the physical layer. The data and text files obtained by the OPC UA server are standardized and transmitted to the OPC UA client through the data bus. The virtual scenes and error detection models in the virtual layer act as clients, truly receiving standardized data and driving the generation of services, including mapping, three-dimensional monitoring and offline simulation of physical space. The information interaction between the physical devices in the device layer and the OPC UA server is simultaneous, and the real-time data from different devices needs to be classified and integrated to quickly and accurately collect data and improve the mapping efficiency of virtual scenes. The basic data generated by the entire device layer consists of static data (such as attribute parameters, design parameters and knowledge data) and dynamic data (such as status data, operation data and environmental data). The basic data is classified, collected and integrated into the twin model construction layer, and statistical data is obtained through a series of operations and data processing; these data include status monitoring data, production task production time data, error data and historical data. The collection of basic data and the derivation of statistical data together provide the necessary data support for the operation of the visual monitoring system.
[0056] Among them, the quality monitoring module monitors the product assembly quality by reducing the accumulation of the robot's end effector error. It mainly improves the assembly quality by detecting the robot's end effector trajectory error. The trajectory error is calculated by cotangent similarity. The specific formula is shown in formula (1).
[0057] (1)
[0058] Among them, A and B are the actual trajectory and the expected trajectory of the robot. For details, please refer to the description of the subsequent embodiments. To avoid repetition, no further details will be given here. , ∈ [0, 1], i is an integer between [1, n]. The numerical difference between the dimensions of the vectors in cot(A, B) can comprehensively evaluate the similarity between the vectors from the perspectives of direction and modulus, and has higher calculation accuracy. In order to better reflect the size and change trend of the end-effector trajectory error, the concept of error coefficient based on cotangent similarity is proposed to further realize the real-time feedback compensation of the end-effector trajectory error.
[0059] Furthermore, the present embodiment first collects various data generated by the robot through external sensors, which are called operation data. At the same time, various control data embedded in the robot control instructions or programs are extracted, which are called command data. The above two types of data are cleaned, converted, associated, integrated, mined and fused, and the processed data are transmitted to the database and the virtual model of the robot respectively. The virtual model of the robot is driven by data, and the behavior of the real mapping and simulation of the physical entity is realized. The simulation data generated by it is also transmitted to the database. Then, using the fused data in the database, the running state of the robot is truly detected through the error detection model to determine whether the actual trajectory error of the robot is reasonable. When the result is unreasonable, the feedback control of the robot is realized in the form of returning control instructions through the error compensation model. All results will be recorded and visualized, and finally enter the next detection cycle and repeat the above operation.
[0060] Among them, the early warning module is to unify the basic information of production factors such as robots, manufacturing equipment, AGV, etc. in the production line, effectively utilize the real-time data, analyze potential dangers and safety hazards, and effectively combine it with the digital twin three-dimensional scene. When the data of a certain device in the production line exceeds the warning value, the alarm function will be triggered. The alarm function can not only display the name, manufacturer and other information of the alarm device through the twin system, but also quickly display the location of the alarm device and the model of the alarm device itself, so that managers can grasp the full range of information of the alarm device.
[0061] Among them, the system management module is used for system management and maintenance. It includes measurement point maintenance, language version management, and permission management. The system assigns different user permissions to different users. Ordinary users can only query information, while advanced users have the authority to modify system information. The real-time operation data of the equipment comes from various measurement points. Advanced users can add or delete measurement points in a timely manner to achieve measurement point maintenance and ensure the consistency between the measurement points in the system and the actual production line measurement points. High-level users can set the threshold for equipment monitoring and synchronize the corresponding updates to the twin system.
[0062] The production module receives data from the MES system and displays the planned output, actual output, calculation completion rate and other information in real time, and displays the overall efficiency of the equipment in real time. The calculation method is as follows:
[0063]
[0064]
[0065] Among them, A is the actual operation time, B is the planned stop time, C is the load time, D is the downtime loss time, E is the operating time, F is the input quantity, G is the production volume, H is the yield rate, I is the theoretical cycle, J is the actual cycle, and K is the defective number.
[0066] Each module in the above-mentioned production line control system based on digital twin can be implemented in whole or in part through software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0067] See also Figure 2 ,like Figure 2 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0068] Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages, etc.
[0069] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0070] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0071] It should be noted that the production line control method based on digital twins provided in the embodiment of the present application is executed by a server.
[0072] It should be understood that Figure 2The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. The terminal devices 101, 102, 103 in the embodiment of the present application may specifically correspond to application systems in actual production.
[0073] See also Figure 3 , Figure 3 A production line control method based on digital twins provided by an embodiment of the present invention is shown. The method is applied in Figure 2 The server in is used as an example to illustrate the details as follows:
[0074] S201: Collect real-time data of the production line, where the real-time data is multi-source heterogeneous data from different devices and communication interfaces.
[0075] S202: Determine the actual running trajectory of the robot based on the real-time data, and determine the trajectory error based on the actual running trajectory and the expected trajectory.
[0076] In a specific optional implementation of this embodiment, in step S202, determining the actual running trajectory of the robot based on real-time data, and determining the trajectory error based on the actual running trajectory and the expected trajectory includes:
[0077] Classify the real-time data to obtain expected data and actual data, where the actual data refers to the parameters of the robot in the production line when it is running, and the expected data refers to the preset ideal parameters;
[0078] Calculate the numerical error between expected data and actual data;
[0079] Based on the expected data and the actual data, respectively, the expected curve and the actual curve are drawn, and the directional errors between the expected curve and the actual curve are calculated;
[0080] Based on the numerical error and the directional error, the error coefficient is calculated;
[0081] The numerical error, direction error and error coefficient are taken as trajectory error.
[0082] In a specific optional implementation of this embodiment, calculating the numerical error between the expected data and the actual data includes:
[0083] The numerical error is calculated using the following formula: E a :
[0084]
[0085] in, and Represent the function values of the expected curve and the actual curve at time t respectively.
[0086] In a specific optional implementation of this embodiment, calculating the direction error between the expected curve and the actual curve includes:
[0087] The direction error is calculated using the following formula: E c :
[0088]
[0089] in, and There are two curves in the moment ∆ The change in t, normalizing the vectors D and R to obtain , .
[0090] In a specific optional implementation of this embodiment, based on the numerical error and the directional error, calculating the error coefficient includes:
[0091] The error coefficient is calculated using the following formula: E :
[0092]
[0093] in, E a represents the numerical error, E c represents the direction error, µ 1 and µ 2 is the weight coefficient, and µ 1 + µ 2 = 1, 0.8 ≤ µ 1 ≤ 1.
[0094] It should be noted that the numerical error E a is the difference between the function value of the expected curve and the actual curve Δf and the function value of the expected curve at time t The ratio of reflects the magnitude of the trajectory error. Direction error E c It is the cotangent value of the angle between the tangent vector of the expected curve and the tangent vector of the actual curve at time t, which reflects the changing trend of the trajectory error.
[0095] S203: Based on the trajectory error, the operating parameters of the robot are adjusted, and the robot is controlled according to the adjusted parameters.
[0096] In another specific optional implementation of this embodiment, the production line control method based on digital twins also includes:
[0097] Conduct fault monitoring and diagnosis during the operation process, and issue timely warnings when faults occur.
[0098] In this embodiment, fault monitoring and diagnosis specifically include an offline training stage and an online diagnosis stage. In the offline training stage, significant fault parameters of a working condition are collected to obtain a data set Xs, and then a significant fault diagnosis model is established. The model is a deep neural network. The model is iteratively trained using the data set Xs to obtain a trained significant fault diagnosis model. On the production line, the trained significant fault diagnosis model is used to perform fault detection on the real-time collected data, and an early warning module is submitted when a fault is found.
[0099] In this embodiment, real-time data of the production line is collected, where the real-time data is multi-source heterogeneous data from different devices and communication interfaces; based on the real-time data, the actual running trajectory of the robot is determined, and based on the actual running trajectory and the expected trajectory, the trajectory error is determined; based on the trajectory error, the operating parameters of the robot are adjusted, and the robot is controlled according to the adjusted parameters. Accurate control and timely correction of the production line are achieved, which is conducive to improving the efficiency of the production line.
[0100] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0101] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0102] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components connected to the memory 41, the processor 42, and the network interface 43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0103] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0104] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the production line control based on digital twins, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0105] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code for production line control based on digital twins.
[0106] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0107] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor so that the at least one processor performs the steps of the production line control method based on digital twins as described above.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0109] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A production line control method based on digital twins. It is characterized in that The production line control method based on digital twins includes: Collect real-time data of the production line, where the real-time data is multi-source heterogeneous data from different devices and communication interfaces; Determine the actual running trajectory of the robot based on the real-time data, and determine the trajectory error based on the actual running trajectory and the expected trajectory; Based on the trajectory error, adjusting the operating parameters of the robot, and controlling the robot according to the adjusted parameters; Determining the actual operating trajectory of the robot based on the real-time data, and determining the trajectory error based on the actual operating trajectory and the expected trajectory includes: Classifying the real-time data to obtain expected data and actual data, wherein the actual data is the parameters of the robot in the production line when it is running, and the expected data is the preset ideal parameters; Calculate the numerical error between expected data and actual data; Based on the expected data and the actual data, respectively, an expected curve and an actual curve are drawn, and a directional error between the expected curve and the actual curve is calculated; Calculating an error coefficient based on the numerical error and the directional error; Taking the numerical error, the direction error and the error coefficient as the trajectory error; The calculating the direction error between the expected curve and the actual curve comprises: The direction error is calculated using the following formula: E c : in, and There are two curves in the moment The change in , normalizing the vectors D and R to obtain , ; The calculating the error coefficient based on the numerical error and the directional error comprises: The error coefficient is calculated using the following formula: E : in, E a represents the numerical error, E c represents the directional error, µ 1 and µ 2 is the weight coefficient, and µ 1 + µ 2 = 1, 0.8 ≤ µ 1 ≤ 1.
2. The production line control method based on digital twins according to claim 1, It is characterized in that The numerical error between the calculated expected data and the actual data includes: The numerical error is calculated using the following formula: E a : in, and Represent the function values of the expected curve and the actual curve at time t respectively.
3. The production line control method based on digital twins according to claim 1, It is characterized in that The method further comprises: Conduct fault monitoring and diagnosis during the operation process, and issue timely warnings when faults occur.
4. A production line control system using the production line control method based on digital twins according to any one of claims 1 to 3, It is characterized in that The production line control system includes: data acquisition module, quality inspection module, production task module, fault diagnosis module, early warning module, system management module, and each module is connected by wireless communication. The data acquisition module is used to collect multi-source heterogeneous data from different devices and communication interfaces in real time; The quality detection module is used to perform error detection on the multi-source heterogeneous data, judge the rationality of the actual trajectory of the robot according to the error result, and perform real-time feedback control on the robot trajectory according to the judgment result; The production task module is used to calculate the current production information and display it in real time by receiving the system management module; The fault diagnosis module diagnoses the multi-source heterogeneous data collected at each moment through the trained algorithm model, and sends the data with abnormal diagnosis results to the early warning module; The early warning module combines the data diagnosed as abnormal with the digital twin three-dimensional scene to issue an early warning; The system management module is used for system management and maintenance, including measurement point maintenance, authority management and interaction management between various modules.
5. The production line control system according to claim 4, It is characterized in that The early warning module includes a 3D scene free roaming component and a device health status management component.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the production line control method based on digital twins as described in any one of claims 1 to 3 is implemented.
7. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the production line control method based on digital twins as described in any one of claims 1 to 3 is implemented.
