Control method and system for civil explosive manufacturing plant based on Lora system

By adopting the Lora protocol and digital twin model in unmanned factories, the problems of data security and fault handling efficiency in production control are solved, and higher production safety and efficiency are achieved.

CN120143762APending Publication Date: 2025-06-13GUANGDONG HONGDA SHAOHUA IND EXPLOSIVES CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510273636.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

Production control of unmanned factories relies on large amounts of data transmission and storage, and is vulnerable to hacker attacks or network failures, resulting in critical data leakage or tampering, which in turn causes production interruptions or errors and reduces production efficiency.

Method used

The Lora protocol is used to establish a communication network with factory equipment, and the real-time status of the equipment is obtained and visualized through a digital twin model, the faulty equipment is determined and the backup production control information is determined based on the model, so as to realize automated production processing.

Benefits of technology

It improves the security of data transmission, reduces the risk of production interruption caused by network attacks or failures, improves fault handling efficiency, and improves overall work and production control efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120143762A_ABST
    Figure CN120143762A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and system for a civil explosive manufacturing plant based on a Lora standard, and the method comprises the steps: building a communication network with processing equipment of the civil explosive manufacturing plant according to a Lora protocol, building a digital twinborn model of the processing equipment, and obtaining the real-time data of the processing equipment from the digital twinborn model through the communication network, and when it is determined that the processing equipment has a fault according to the real-time data, carrying out production processing on the equipment based on the digital twin model. According to the invention, communication with each device of a factory is carried out through the Lora protocol, the data transmission security can be improved, the data security can be ensured, and the probability of key data leakage caused by network attacks or network faults can be reduced, so that production interruption caused by data errors can be avoided, and the production risk can be reduced; and fault monitoring is carried out in combination with the digital twin model, so that the fault processing efficiency can be improved, the overall work and production control efficiency is improved, and the production risk caused by the fault is further reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Due to the certain production safety risks in the production of civil explosives, it has now been transformed into unmanned factory production. Among them, an unmanned factory, also known as an automated factory or a fully automated factory, refers to a factory where all production activities are controlled by a computer, and there are robots on the production front line without the need for workers. Various automatically replaceable processing tools are installed in the unmanned factory. From processing parts to assembly and even the final finished product inspection, it can be automatically completed without humans.

[0003] Since the work in a civil explosive production factory is achieved by robots controlled by a computer, numerically controlled machine tools, material mixers, material processing and dispensing equipment, unmanned transport carts, and automated warehouses, etc., in order to control the coordinated work of each device, one of the commonly used production control methods is: arranging each processing device according to the production process steps of the product, thereby forming multiple production lines, controlling the devices on each production line to process according to the quantity of production raw materials, and controlling the unmanned transport cart to transport to complete the production process.

[0004] However, the currently commonly used production control method has the following technical problems: Since the production control of an unmanned factory relies on a large amount of data transmission and storage, once it is attacked by hackers or suffers from a network failure, it may lead to the leakage or tampering of key data, resulting in production interruption or errors, and thus reducing production efficiency. And when a failure or interruption occurs, several technicians often need to check each device one by one, with low processing efficiency, further reducing production efficiency.

[0005] During the production process of gunpowder, the electromagnetic field strength and the residence time of the radiation field have a crucial impact on the safety of equipment and materials. The Lora communication technology, with its low power consumption and low-frequency communication method, can effectively avoid the adverse effects of overly strong electromagnetic fields on sensitive devices (such as digital electronic detonators). Through the test of the electromagnetic emission spectrum of Lora communication equipment, the results show that the main spectrum distribution of Lora equipment is concentrated in the range of 1 GHz to 6 GHz, and the peak of the spectrum appears at 1060.9 MHz. By measuring the radiation emission of small mobile base stations at 11 positions, the distribution of the radiation emission in space is obtained. The measurement results show that at the test boundary of the device under test, the Lora device is in the far-field region, and the maximum value of its electric field strength is 65.46 V / m. From this, this electric field strength value can be used as the electric field input reference value in the safety assessment of industrial digital electronic detonators and related agents.

[0006] To evaluate the safety impact of the electromagnetic radiation generated by Lora communication devices on different agents (such as nitric acid, sodium nitrate, emulsion explosive, etc.), an 8-hour radiation exposure test with an electric field intensity of 130.92 V / m in the frequency range of 1 - 6 GHz was carried out. None of the tested agents showed dangerous phenomena such as combustion or explosion under this electric field intensity. The test results indicate that the electromagnetic radiation generated by Lora communication devices poses no significant risk to the safety of the above-mentioned agents. Therefore, based on this experimental data, it can be concluded that the electromagnetic radiation generated by Lora communication devices will not pose a safety hazard to the above-mentioned agents.

[0007] When testing the induction current of industrial digital electronic detonators, first, the electromagnetic radiation field generated by Lora communication devices was measured and compared with the actual radiation value. By measuring the actual radiation value of 16.5 dB of the radiation field, the induction current of the transducer element of the digital electronic detonator was measured using a frequency-sweeping method (frequency range: 1 GHz - 6 GHz, electric field intensity of 436.4 V / m). The test data shows that the induction current of the digital electronic detonator did not exceed its safety threshold of 200 mA. Based on the low-power operating characteristics of Lora devices, it can be ensured that when transmitting signals in an electromagnetic field environment, excessive current will not be caused, thus preventing equipment damage. Therefore, Lora communication devices can maintain effective communication while avoiding damage to sensitive devices and eliminating potential safety risks. Summary of the Invention

[0008] The present invention proposes a control method and system for a civil explosive production plant based on the Lora standard, and the method can solve one or more of the above technical problems.

[0009] The first aspect of the embodiment of the present invention provides a control method for a civil explosive production plant based on the Lora standard, and the method includes:

[0010] After determining the device information of the civil explosive production plant, establish a communication network with the processing device corresponding to the device information according to the Lora protocol;

[0011] After establishing a digital twin model according to the device information, use the communication network to obtain the detection data of each processing device, and visually display the digital twin model according to the detection data for the user to view the real-time status of the processing device;

[0012] After obtaining the real-time data of each processing device from the digital twin model, determine whether there is a fault in the processing device according to the value of the real-time data;

[0013] If it is determined that there is a fault in the processing equipment, after shutting down the faulty processing equipment, determine the backup production control information based on the digital twin model, and control the corresponding equipment for production processing according to the backup production control information.

[0014] In a possible implementation manner of the first aspect, the determining the backup production control information based on the digital twin model includes:

[0015] Determine the equipment type of the faulty processing equipment, and based on the equipment type, count the equipment quantity value from the digital twin model. The equipment quantity value is the quantity of equipment in an idle state and corresponding to the equipment type;

[0016] After determining the processing equipment in an idle state as backup equipment from the digital twin model based on the size of the equipment quantity value, determine the information of the backup equipment to obtain the backup production control information.

[0017] In a possible implementation manner of the first aspect, after determining the processing equipment in an idle state as backup equipment from the digital twin model based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes:

[0018] If the equipment quantity value is greater than zero and the equipment quantity value is greater than the quantity value of the faulty processing equipment, randomly select several pieces of equipment in an idle state as backup equipment according to the quantity value of the faulty processing equipment;

[0019] After determining the position coordinates of each backup equipment, add the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and obtain the processing parameters of the faulty processing equipment to obtain the backup production control information.

[0020] In a possible implementation manner of the first aspect, after determining the processing equipment in an idle state as backup equipment from the digital twin model based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes:

[0021] If the equipment quantity value is greater than zero and the equipment quantity value is less than the quantity value of the faulty processing equipment, randomly select one piece of equipment in an idle state as backup equipment;

[0022] After adding the position coordinates to the coordinate information of the production line where the faulty processing equipment is located respectively and obtaining the processing parameters of the faulty processing equipment, adjust the parameters of the non-faulty processing equipment on the production line to obtain the backup production control information.

[0023] In a possible implementation of the first aspect, after determining the processing equipment in the idle state as the backup equipment from the digital twin model based on the magnitude of the equipment quantity value, determining the information of the backup equipment to obtain backup production control information includes:

[0024] If the equipment quantity value is equal to zero, the processing equipment adjacent to the production line and corresponding to the equipment type is used as the backup equipment;

[0025] Adding the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and adjusting the parameters of the non-faulty processing equipment on the production line to obtain the backup production control information.

[0026] In a possible implementation of the first aspect, determining whether there is a fault in the processing equipment according to the value of the real-time data includes:

[0027] Determining the production number of the processing equipment corresponding to the real-time data, where the production number is the sequence number of the processing equipment on the production line;

[0028] Extracting several data values from the real-time data based on the production number, and respectively determining whether each data value is within the corresponding preset numerical range;

[0029] Counting the number of data values within the corresponding preset numerical range. If the number value does not meet the preset threshold, it is determined that there is a fault in the processing equipment.

[0030] In a possible implementation of the first aspect, after the step of determining that there is a fault in the processing equipment, the method further includes:

[0031] Invoking the panoramic camera of the civil explosive production plant to collect the processing image of the faulty processing equipment;

[0032] Visualizing and displaying the processing image for technicians to refer to.

[0033] A second aspect of the embodiments of the present invention provides a control system for a civil explosive production plant based on the Lora standard. The system includes:

[0034] A communication module, configured to establish a communication network with the processing equipment corresponding to the equipment information according to the Lora protocol after determining the equipment information of the civil explosive production plant;

[0035] A model establishment module, configured to establish a digital twin model according to the equipment information, obtain the detection data of each processing equipment by using the communication network, and visually display the digital twin model according to the detection data for the user to view the real-time status of the processing equipment;

[0036] An acquisition module, configured to obtain real-time data of each processing device from the digital twin model, and determine whether a fault exists in the processing device according to the value of the real-time data;

[0037] A control module, configured to, if it is determined that a fault exists in a processing device, after shutting down the faulty processing device, determine backup production control information based on the digital twin model, and control corresponding devices to perform production processing according to the backup production control information.

[0038] In a possible implementation manner of the second aspect, the determining the backup production control information based on the digital twin model includes:

[0039] Determine the device type of the faulty processing device, and count the device quantity value from the digital twin model based on the device type, where the device quantity value is the quantity of devices in an idle state and corresponding to the device type;

[0040] After determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, determine the information of the backup devices to obtain the backup production control information.

[0041] In a possible implementation manner of the second aspect, after determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, the determining the information of the backup devices to obtain the backup production control information includes:

[0042] If the device quantity value is greater than zero and the device quantity value is greater than the quantity value of the faulty processing devices, randomly select several devices in an idle state as backup devices according to the quantity value of the faulty processing devices;

[0043] After determining the position coordinates of each backup device, add the position coordinates to the coordinate information of the production line where the faulty processing device is located and obtain the processing parameters of the faulty processing device to obtain the backup production control information.

[0044] In a possible implementation manner of the second aspect, after determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, the determining the information of the backup devices to obtain the backup production control information includes:

[0045] If the device quantity value is greater than zero and the device quantity value is less than the quantity value of the faulty processing devices, randomly select one device in an idle state as a backup device;

[0046] After adding the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and obtaining the processing parameters of the faulty processing equipment, adjust the parameters of the non-faulty processing equipment on the production line to obtain backup production control information.

[0047] In a possible implementation manner of the second aspect, after determining the processing equipment in the idle state as the backup equipment from the digital twin model based on the magnitude of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes:

[0048] If the equipment quantity value is equal to zero, use the processing equipment on the adjacent production line and corresponding to the equipment type as the backup equipment;

[0049] Add the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and adjust the parameters of the non-faulty processing equipment on the production line to obtain the backup production control information.

[0050] In a possible implementation manner of the second aspect, the determining whether there is a fault in the processing equipment according to the value of the real-time data includes:

[0051] Determine the production number of the processing equipment corresponding to the real-time data, where the production number is the sequence number of the processing equipment on the production line;

[0052] Extract several data values from the real-time data based on the production number, and respectively determine whether each data value is within the corresponding preset value range;

[0053] Count the quantity value of the data values within the corresponding preset value range. If the quantity value does not meet the preset threshold, determine that there is a fault in the processing equipment.

[0054] In a possible implementation manner of the second aspect, the system further includes:

[0055] An image acquisition module, configured to, after the step of determining that there is a fault in the processing equipment, call the panoramic camera of the civil explosive production plant to acquire the processing image of the faulty processing equipment;

[0056] A display module, configured to visually display the processing image for reference by technicians.

[0057] Compared with the prior art, a control method and system for a civil explosive production plant based on the Lora standard provided by an embodiment of the present invention have the following beneficial effects: By communicating with various devices in the plant through the Lora protocol, the present invention can improve the security of data transmission, ensure data security, thereby reducing the probability of critical data leakage or tampering caused by network attacks or network failures, and further avoiding production interruptions caused by data errors and reducing production risks; On the other hand, the present invention can combine a digital twin model for fault monitoring, immediately find the fault source, and determine the backup production control information that can continue production according to the real-time status of the digital twin model after determining the fault, and control the corresponding devices for production processing according to the backup production control information, without the need for technicians to check one by one, which can improve the efficiency of fault handling, thereby improving the overall work and production control efficiency, and further reducing production risks caused by faults. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 FIG. is a schematic flowchart of a control method for a civil explosive production plant based on the Lora standard provided by an embodiment of the present invention;

[0059] Figure 2 FIG. is a schematic diagram of the connection between a management platform and different devices provided by an embodiment of the present invention;

[0060] Figure 3 FIG. is a schematic structural diagram of a control system for a civil explosive production plant based on the Lora standard provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0061] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0062] A civil explosive production plant, also known as an automated factory or a fully automated factory, refers to a factory where all production activities are controlled by a computer, and there are robots on the production front line without the need for workers. Various automatically replaceable processing tools are installed in the unmanned factory. From processing parts to assembly and even the final product inspection, all can be automatically completed without the presence of people.

[0063] Since the work in a civilian explosive production plant is carried out by computer-controlled robots, numerically controlled machine tools, material processing and dispensing equipment, unmanned transport vehicles, and automated warehouses, in order to control the coordinated operation of each device, one common production control method is as follows: Arrange each device according to the production process steps of the product, thereby forming multiple production lines, control the devices on each production line for processing according to the quantity of production raw materials, and control the unmanned transport vehicle for transportation to complete the production process.

[0064] However, the currently common production control methods have the following technical problems: Since the production control of a factory without workers requires relying on a large amount of data transmission and storage, once attacked by hackers or suffering from network failures, it may lead to the leakage or tampering of key data, resulting in production interruptions or errors, and further reducing production efficiency. And when a failure or interruption occurs, several technicians often need to check each device one by one, with low processing efficiency, further reducing production efficiency.

[0065] To solve the above problems, the following will introduce and illustrate in detail a control method and system for a civilian explosive production plant based on the Lora standard provided by the embodiments of the present application through specific embodiments.

[0066] Refer to Figure 1 , which shows a schematic flowchart of a control method for a civilian explosive production plant based on the Lora standard provided by an embodiment of the present invention.

[0067] In one embodiment, the method is applicable to a management platform, and the management platform can be a management platform for technicians in a civilian explosive production plant, and this management platform can be installed on devices such as the intelligent terminals or computers of technicians.

[0068] Since there are various risks in the production process of gunpowder, in order to reduce the manufacturing risks, existing gunpowder manufacturing factories have been converted into civilian explosive production plants. For example, civilian explosives such as fireworks have generally been transformed to be produced in civilian explosive production plants.

[0069] Among them, the civilian explosive production plant to which the present invention is applied can be a civilian explosive production plant with a modular layout. Specifically, each production line is divided into independent functional units, each independent functional unit can contain multiple modules, and each module can correspond to a production and processing device (for example, a numerically controlled lathe or material processing and dispensing equipment). The transportation of products in each module can be responsible by a transport vehicle or a robotic arm.

[0070] Suppose there are four units, namely A, B, C, and D, corresponding to four production lines. Each unit contains 10 modules, so there are 10 processing devices. For example, the 10 processing devices on production line A are a1, a2... a10 respectively. After the processing device a1 completes its process, the robotic arm can extract the product, transfer it from the processing device a1 to the processing device a2, and then the processing device a2 performs the processing of the next process.

[0071] Since each device is modularly arranged, the production lines can be arranged according to the actual plant location and area. For example, the first, second, and third processing devices of each production line are set in plant 1, the fourth, fifth, sixth, seventh, and eighth processing devices of each production line are set in plant 2, and the ninth and tenth processing devices of each production line are set in plant 3. Or one production line can be set in each plant, and then the position of each processing device can be set according to the area of the plant.

[0072] During the production process, the management platform can be directly communicatively connected to each processing device, enabling technicians to directly control each processing device for processing through their intelligent terminals, eliminating the need for technicians to operate offline in person, which can improve management efficiency and facilitate technicians' management.

[0073] Among them, as an example, the control method for a civil explosive production plant based on the Lora standard may include:

[0074] S11. After determining the device information of the civil explosive production plant, establish a communication network with the processing device corresponding to the device information according to the Lora protocol.

[0075] In an embodiment, the management platform can obtain the device information of each processing device in the civil explosive production plant, including a series of information such as the structure, location, model, type, communication node, and processing operation steps of the device. Then, the management platform can establish a communication network with the processing device corresponding to the device information according to the Lora protocol, so as to obtain the status data, processing parameters, etc. of each processing device in real time through the communication network.

[0076] Refer to Figure 2 , which shows a schematic diagram of the connection between the management platform and different devices provided by an embodiment of the present invention.

[0077] In order to further monitor the status of each processing device, different measuring instruments and sensors can be set on each processing device, and at the same time, the management platform can also be communicatively connected to each measuring instrument and sensor according to the Lora protocol. Subsequently, the management platform can determine whether the device is abnormal according to the detection data of different measuring instruments and sensors.

[0078] The LoRa wireless communication technology is a LPWAN (Low-Power Wide-Area Network) communication technology. The LoRa technology is based on spread-spectrum technology and is widely used in ultra-long-distance wireless transmission scenarios. Its greatest features are high sensitivity, long transmission distance, low operating power consumption, and a large number of network nodes.

[0079] The LoRa network mainly consists of terminals (with built-in LoRa modules), gateways (or base stations), network services, and application services. Application data can be transmitted bidirectionally.

[0080] In the LoRaWAN communication network architecture, it is a typical star topology. In this network architecture, the LoRa gateway is a transparent transmission relay connecting terminal devices and the backend central service.

[0081] Processing equipment and sensors on the processing equipment can be LoRa terminal nodes. These nodes are first connected to the LoRa gateway through LoRa wireless communication, and then connected to the network service or Ethernet through the 3G network. The gateway and the network server communicate through the TCP / IP protocol.

[0082] Connecting to each processing equipment and sensor through the LoRa protocol has the following advantages:

[0083] First, improve the data transmission rate: By optimizing the data encoding and transmission protocol, the data transmission rate is increased to meet the requirements of real-time and high-frequency data updates in civil explosive production plants. This will help to monitor the equipment status in real time and improve production efficiency.

[0084] Second, enhance network capacity and robustness: By adopting advanced network topologies and data scheduling strategies, reduce packet collisions and improve the overall network carrying capacity. Implement a load balancing algorithm to ensure stable communication between devices in an environment with a high density of connected processing equipment.

[0085] Third, strengthen the security mechanism: Stronger encryption algorithms and authentication mechanisms can be introduced to ensure the security of data transmission during communication and protect sensitive information from being illegally obtained. Through a hierarchical security strategy, enhance the resistance of the control method and system for civil explosive production plants based on the LoRa standard against potential attacks.

[0086] Fourth, improve the anti-interference ability: Signal enhancement technologies for complex environments can be developed to ensure the stability and reliability of communication signals. This includes using multi-band transmission, signal redundancy, and other technologies to reduce the impact of environmental interference.

[0087] Fifth, simplify equipment management: Develop an intelligent management platform based on cloud computing and artificial intelligence to achieve centralized monitoring and management of equipment, reduce labor costs, improve the efficiency of fault detection and handling, and ensure the high efficiency and safety of factory production.

[0088] S12. After establishing a digital twin model based on the equipment information, use the communication network to obtain the detection data of each processing equipment, and visually display the digital twin model according to the detection data for the user to view the real-time status of the processing equipment.

[0089] In order to enable the technicians of the management platform to more intuitively view the real-time status of each device, the structural parameters of each processing device can be obtained from the device information, including parameters such as its size and color, and then a three-dimensional geometric model of each processing device can be established according to the structural parameters. Among them, 3D modeling and simulation can use CAD, BIM or industrial modeling software (such as Siemens NX, Dassault 3DEXPERIENCE) to create a 3D model of a civil explosive production plant. Through the 3D model, the equipment layout, production line structure and logistics path can be accurately restored. When establishing the model, physical property mapping can be performed. Specifically, physical characteristics (such as mechanical motion parameters, thermodynamic characteristics) can be assigned to the equipment in the model, so as to ensure the consistency between the virtual model and the physical entity.

[0090] Then, the above-mentioned various three-dimensional geometric models can be used to develop a dynamic digital twin model in a conventional manner and installed on the management platform. When installing, multi-dimensional model fusion can be performed on each three-dimensional geometric model. For example, a mathematical model can be constructed based on the working principle of the equipment (such as the motor torque formula, heat conduction equation). Historical data can be analyzed through machine learning (such as LSTM, random forest) to supplement the deficiencies of the mechanism model (such as predicting the degradation trend of the equipment). At the same time, in order to improve the simulation degree, the management personnel can set the interaction logic of the equipment in the digital twin model (for example, robot obstacle avoidance rules, AGV scheduling strategies, etc.). In addition, in order to further monitor the workshop, a digital twin model in the workshop can be constructed according to the actual structure of the workshop and each device in the workshop, which can not only monitor the workshop but also monitor the equipment.

[0091] Due to the previously established communication network, real-time data synchronization can be carried out through the communication network. Specifically, the detection data transmitted by each device or component can be preprocessed (such as filtering, noise reduction) through the gateway to reduce the transmission delay. Among them, the detection data can be the real-time data of the processing equipment during processing, or the data collected by measuring tables and sensors.

[0092] After the cleaning is completed, the detected data after cleaning can be synchronized to the management platform, so that the management platform can update the status of the virtual digital twin model (such as the real-time position of the device and the production progress). At the same time, the management platform can visually display the status of the digital twin model, so that technicians can determine the real-time status of the device in real time.

[0093] In addition, after the digital twin model is built, it can be debugged and verified. Specifically, the production process of new products (such as welding parameter adjustment) can be tested in a virtual environment to avoid physical trial and error.

[0094] At the same time, the reinforcement learning algorithm can be used to simulate different production scheduling schemes in the digital twin and select the optimal solution (such as minimizing the changeover time).

[0095] Energy consumption optimization can also be carried out: the production rhythm can be dynamically adjusted in combination with the electricity price fluctuation and the device load to reduce the energy consumption cost.

[0096] In another alternative embodiment, different devices can be set in different factories. To facilitate the management of the devices in different factories, a digital twin model can be set for each factory, and then a distributed digital twin network can be built: the digital twin models of multiple factories can share data to achieve global resource scheduling (such as order allocation and production capacity balance).

[0097] By setting up the digital twin model, control perception can be carried out, and the digital twin model can be used for virtual environment verification, which can reduce the risk of production interruption. And through virtual control using the digital twin model, multi-objective optimization can also be achieved, thus improving production efficiency and reducing production costs.

[0098] S13. After obtaining the real-time data of each processing device from the digital twin model, determine whether the processing device has a fault according to the value of the real-time data.

[0099] When the digital twin model is built and visually displayed for technicians to monitor, the real-time data of each processing device and sensor can be obtained, and then the value of the real-time data is compared with the preset value. According to the comparison result of the values, it is determined whether the processing device has a fault or an abnormality.

[0100] For example, the value of the processing vibration times detected by the vibration sensor of the CNC lathe can be obtained. If the vibration times value is greater than the vibration threshold, it can be determined that the processing device may be abnormal or have a fault. Subsequently, the remaining life of the machine tool bearing of the CNC lathe can also be predicted according to the vibration times value. And when the predicted remaining life is lower than the preset life, a pre-designed plan for the procurement and repair of spare parts can be sent to the technicians 1-2 weeks in advance.

[0101] For another example, the number of times the materials are stirred detected by the sensors of the processing and dispensing equipment can be obtained. If the value of the number of times the materials are stirred is greater than the stirring threshold, it can be determined that the processing equipment may be abnormal or faulty. Subsequently, the remaining life of the rotating shaft of the processing and dispensing equipment can also be predicted based on the number of times the materials are stirred. And when the predicted remaining life is lower than the preset life, a preliminary design plan for the procurement and repair of spare parts can be sent to the technicians 1-2 weeks in advance.

[0102] The digital twin model is used to obtain real-time data. Subsequently, the quality of the product can also be retrospectively analyzed based on the real-time data. For example, when defects in a certain batch of products are detected, the real-time data of the production process, including temperature parameters, pressure fluctuations, etc., are retrieved through the digital twin model, so that technicians can locate the source of the problem based on the real-time data.

[0103] In one of the embodiments, each production line may have multiple processing devices. The processing processes and steps of each processing device may be the same or different, so the data items of the real-time data that need to be collected by each processing device are different. In order to perform fault judgment on the data of different data items of different processing devices to improve the accuracy of fault detection, wherein, by way of example, determining whether a processing device has a fault according to the value of the real-time data may include the following sub-steps:

[0104] S131. Determine the production number of the processing device corresponding to the real-time data, where the production number is the sequence number of the processing device on the production line.

[0105] S132. Extract several data values from the real-time data based on the production number, and respectively determine whether each data value is within the corresponding preset value range.

[0106] S133. Count the number of data values within the corresponding preset value range. If the number value does not meet the preset threshold, it is determined that the processing device has a fault.

[0107] In one operation mode, the production number of the processing device corresponding to each real-time data can be obtained, where the production number is the sequence number of the processing device on the production line. For example, for processing device a3 on production line A, its production number is 3; for processing device b6 on production line B, its production number is 6.

[0108] When obtaining real-time data, the measurement values of each sensor or measuring instrument of each processing device and the parameters of each processing process of the processing device can be obtained to obtain real-time data.

[0109] After determining the production number, the number of process steps of the processing equipment can be found from the database of the management platform according to the production number. Then, according to the number of process steps, the values of the data items corresponding to each process step are extracted from the real-time data to obtain a number of data values.

[0110] Next, it can be determined whether each data value is within the preset value range of its corresponding process step, and the number of data values not within the preset value range of their corresponding process steps is counted to obtain the counted quantity value. Finally, it can be determined whether the quantity value is greater than the preset quantity threshold. If the quantity value is greater than the preset quantity threshold, it means that there are multiple abnormal data values for the processing equipment, and it can be determined that the processing equipment has a fault.

[0111] In an optional embodiment, the data values of different process steps may fluctuate. Although their values are within the preset value range, multiple fluctuations may cause poor product quality. To address this situation, for example, determining whether the processing equipment has a fault based on the value of the real-time data may include the following sub-steps:

[0112] Determine the production number of the processing equipment corresponding to the real-time data, where the production number is the sequence number of the processing equipment on the production line.

[0113] Based on the production number, several data values are extracted from the real-time data, and the difference between each data value and the corresponding preset value is judged respectively.

[0114] Calculate the ratio of each data value to the corresponding difference. If the ratio does not meet the preset threshold, it is determined that the processing equipment has a fault.

[0115] Specifically, it can also refer to the above analysis. Based on the production number, several data values are extracted from the real-time data. Then, the difference between each data value and its corresponding preset value can be obtained. Then, the ratio of each data value to the corresponding difference is calculated. If the ratio does not meet the preset threshold, it can be determined that the processing equipment has a fault.

[0116] For example, the obtained data value is the rotational speed value of the machine tool head of the processing equipment. Then, the difference between the rotational speed value and the preset value corresponding to the rotational speed can be calculated, and then the ratio of the rotational speed value to the difference can be calculated. If the ratio is less than the preset threshold, it means that the difference is large, the rotational speed deviation is large, and the deviation of the product processed by this numerical control machine tool is also large. This processing equipment may be abnormal or faulty.

[0117] For example, the obtained data value is the rotational speed value of the stirring shaft of the material processing and blending equipment. Then, the difference between the rotational speed value and the preset value corresponding to the rotational speed can be calculated, and then the ratio of the rotational speed value to the difference can be calculated. If the ratio is less than the preset threshold, it indicates that the difference is large and the rotational speed deviation is large, and the product materials of the material processing and blending equipment are not fully stirred and fused with each other, and there may be abnormalities or malfunctions in this processing equipment.

[0118] In another alternative embodiment, the data values of different process steps may be correlated. Although their values may not be within the preset value range, multiple values change simultaneously, which may be a normal situation. To address this situation, as an example, the determining whether there is a malfunction in the processing equipment according to the value of the real-time data may include the following sub-steps:

[0119] Determine the production number of the processing equipment corresponding to the real-time data, where the production number is the sequence number of the processing equipment on the production line.

[0120] Extract several data values from the real-time data based on the production number, and determine whether each data value is the same as the corresponding preset value.

[0121] Count the number of data values that are not the same as the corresponding preset values, and obtain the time node of each data value according to the number. The time node is the time node when the data value changes.

[0122] If the time nodes of each data value are all within the preset time range, it is determined that there is no malfunction in the processing equipment. On the contrary, if the time node of any one data value is not within the preset time range, it is determined that there is a malfunction in the processing equipment.

[0123] Specifically, it is also possible to refer to the above analysis description, extract several data values from the real-time data based on the production number. Then, it can be determined whether each data value is the same as the corresponding preset value. If there are differences, count the number of different values, and then obtain the time node of each data item that is different from the corresponding preset value. This time node is the time node when the data value changes. If the time nodes of each data value are all within the preset time range, it is determined that there is no malfunction in the processing equipment. On the contrary, if the time node of any one data value is not within the preset time range, it is determined that there is a malfunction in the processing equipment.

[0124] For example, the obtained data values are the rotational speed, voltage, and power values of the processing equipment. If all three values change and their time nodes are all within the preset time range, it is determined that there is no malfunction in the processing equipment. On the contrary, it can be determined that there may be abnormalities or malfunctions in this processing equipment.

[0125] In one of the embodiments, whether there is a fault in the processing equipment is determined based on the real-time data of the processing equipment. To facilitate technicians to further confirm whether the processing equipment is faulty and the type of the fault for subsequent maintenance, as an example, after the step of determining that the processing equipment has a fault, the method may further include the following sub-steps:

[0126] S21. Invoke the panoramic camera of the civil explosive production plant to collect the processing image of the faulty processing equipment.

[0127] S22. Visually display the processing image for technicians to refer to.

[0128] In one operation mode, panoramic cameras can be set in the civil explosive production plant. Specifically, 360-degree panoramic cameras can be deployed on the top of the plant building and the side of the processing equipment in the civil explosive production plant to cover the global field of view and also cover the scheduling area of the plant warehouse.

[0129] After determining that the processing equipment has a fault, the image captured by the panoramic camera on the side of the processing equipment can be invoked to obtain the processing image.

[0130] The management platform can visually display the processing image for technicians to determine whether there are problems during the processing production or whether the processing equipment has a fault, and what the type and cause of the fault are.

[0131] In addition, an infrared camera can also be superimposed to synchronously monitor abnormal equipment temperature (such as overheating of the motor).

[0132] S14. If it is determined that the processing equipment has a fault, after shutting down the faulty processing equipment, determine the backup production control information based on the digital twin model, and control the corresponding equipment to perform production processing according to the backup production control information.

[0133] When it is determined that the processing equipment has a fault and it is necessary to immediately shut down the faulty processing equipment, the management platform can specifically turn off the power supply of the processing equipment. During the production process of the production line, the processing technology involves multiple steps, and each processing equipment is responsible for one processing technology.

[0134] When a processing device fails, the semi-finished products completed by the processing devices in the previous processing industry will be detained and unable to proceed to the next processing step, resulting in interrupted processing. If the failure lasts for a long time, the quantity of semi-finished products will further increase, especially the semi-finished products of materials. If they accumulate for a long time, the materials are prone to deterioration, which will in turn affect the quality of the products. In order to continue production, in this embodiment, based on the status of the processing devices displayed by the digital twin model, the backup production control information can be re-determined, and the devices can be controlled to process according to the backup control information. Subsequently, a backup production line can be formed and production can be carried out on this backup production line.

[0135] In an operation mode, the information of the processing devices of the current backup production line can be obtained, and the backup production control information can be obtained.

[0136] By determining the backup production control information that can perform backup production control, the processing devices can be controlled to continue processing according to the backup production control information, so that the detention of semi-finished products that cannot be processed can be avoided, the processing progress can also be avoided from being affected, and the situation of interrupted processing can be avoided.

[0137] In an embodiment, if multiple processing devices on the same production line fail, a backup production control information can be determined to control multiple processing devices to continue production according to the backup production control information. If one processing device on each production line fails, multiple backup production control information can be determined.

[0138] In an embodiment, there may be multiple processing devices in a factory building, but an enterprise may need to start all or part of them due to the order quantity. Therefore, during the production process, some processing devices may not be started for production, and some processing devices may be in an idle state.

[0139] The number of idle processing devices can be counted, and the idle processing devices can be used to construct a backup production line to improve the utilization rate of resources. Among them, as an example, step S14 may include the following sub-steps:

[0140] S141. Determine the device type of the failed processing device, and based on the device type, count the device quantity value from the digital twin model. The device quantity value is the quantity of devices that are in an idle state and correspond to the device type.

[0141] S142. After determining the processing devices in the idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, determine the information of the backup devices to obtain the backup production control information.

[0142] In an operation mode, the equipment type of a malfunctioning processing equipment can be determined, and then the equipment quantity value can be statistically obtained from the digital twin model according to the equipment type. The equipment quantity value is the quantity of equipment that is in an idle state and corresponds to the equipment type.

[0143] Specifically, the quantity of processing equipment of the same type can be statistically obtained from the digital twin model according to the equipment type, and then the working state of each processing equipment can be determined. Then, the quantity of processing equipment in an idle state is statistically obtained, and the equipment quantity value can be obtained.

[0144] Next, several processing equipment in an idle state can be selected as backup equipment according to the quantity of the equipment quantity value, and then the information of each backup equipment is obtained, and the backup production control information can be obtained. After obtaining the backup production control information, the management platform performs processing according to the backup production control equipment, so as to continue the processing of the product.

[0145] In an alternative embodiment, there may be multiple processing equipment in an idle state, that is, there are multiple backup equipment. The malfunctioning processing equipment can be replaced with the backup equipment, so as to construct a new production line and perform processing control on the new production line. Among them, as an example, after determining the processing equipment in an idle state as the backup equipment from the digital twin model based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information may include the following sub-steps:

[0146] S31. If the equipment quantity value is greater than zero and the equipment quantity value is greater than the quantity value of the malfunctioning processing equipment, then randomly select several equipment in an idle state as the backup equipment according to the quantity value of the malfunctioning processing equipment.

[0147] S32. After determining the position coordinates of each backup equipment, add the position coordinates to the coordinate information of the production line where the malfunctioning processing equipment is located and obtain the processing parameters of the malfunctioning processing equipment, so as to obtain the backup production control information.

[0148] In an operation mode, if the equipment quantity value is greater than zero, it indicates that there is processing equipment in an idle state; on this basis, if the quantity of processing equipment in an idle state is greater than the quantity of malfunctioning processing equipment, it indicates that there are multiple processing equipment in an idle state that can replace the malfunctioning processing equipment, and several processing equipment in an idle state can be randomly selected as the backup equipment according to the quantity value of the malfunctioning processing equipment.

[0149] According to the previous analysis, each device has a modular layout. Different processing devices may be set at different locations and in different workshops. After each processing device finishes processing, it is transported by a transport cart to the device of the next process. In order to enable the transport cart to move between different devices to ensure that the production process steps are smooth and uninterrupted, when constructing the production line, the position coordinates of each device are obtained, and then the position coordinates are arranged in the order of the process steps, and then the transport cart is controlled to transport the workpiece according to the position coordinates in this order. The position coordinates of the backup device can be obtained, and then the position coordinates are added to the coordinate information of the production line where the faulty processing device is located, and the position coordinates of the backup device are used to replace the position coordinates of the faulty processing device in the coordinate information. At the same time, the processing parameters of the faulty processing device can be obtained. Finally, the adjusted coordinate information and parameters can be obtained to get the backup production control information.

[0150] Subsequently, the transport cart can be controlled according to the new coordinate information to transport the product, and at the same time, the backup device can be controlled to perform processing according to the processing parameters to ensure that processing can continue, so as to avoid processing interruption and ensure that the product can continue to be produced.

[0151] In an optional embodiment, there may be multiple processing devices in the idle state, but the number of backup devices is less than the number of faulty devices. In order to allocate the processing devices in the idle state as reasonably as possible, among them, as an example, after determining the processing device in the idle state as the backup device from the digital twin model based on the size of the device quantity value, determining the information of the backup device to obtain the backup production control information may include the following sub-steps:

[0152] S41. If the device quantity value is greater than zero and the device quantity value is less than the quantity value of the faulty processing device, any one of the processing devices in the idle state is randomly selected as the backup device.

[0153] S42. After adding the position coordinates to the coordinate information of the production line where the faulty processing device is located and obtaining the processing parameters of the faulty processing device, adjust the parameters of the non-faulty processing devices on the production line to obtain the backup production control information.

[0154] In an operation mode, if the device quantity value is greater than zero, it means that there are processing devices in the idle state; on this basis, if the number of processing devices in the idle state is less than the number of faulty processing devices, it means that the processing devices in the idle state cannot completely replace the faulty processing devices, and any one of the processing devices in the idle state can be randomly selected as the backup device.

[0155] Next, after determining the position coordinates of the backup equipment, the position coordinates can be added to the coordinate information of each production line where the processing equipment with a fault is located, so that the position coordinates of the backup equipment can replace the position coordinates of the faulty processing equipment in each coordinate information, and at the same time, the processing parameters of the faulty processing equipment can be obtained. Among them, the coordinate information can include the position coordinates of each processing equipment in the production line.

[0156] Since multiple production lines may need to share a backup equipment for processing after adjustment, in order to reasonably arrange the processing time, the parameters of the non-faulty processing equipment on each production line can be adjusted. Finally, the adjusted coordinate information and parameters can be obtained to get the backup production control information.

[0157] Subsequently, the transport trolley can be controlled to transport products according to the new coordinate information, the backup equipment can be controlled to perform processing according to the processing parameters, and at the same time, the non-faulty processing equipment on the production line can be controlled to perform processing according to the adjusted parameters, ensuring that the processing can continue, thus avoiding processing interruption and ensuring that the products can continue to be produced.

[0158] Suppose there are 4 production lines A, B, C, and D in total, and the second processing equipment on both production lines A and B has a fault, that is, a2 and b2. At this time, there is only one processing equipment in the idle state, then this idle processing equipment can be used as the backup equipment, and at the same time, let this backup equipment serve production lines A and B respectively. Since only one processing equipment serves two production lines at the same time, the processing parameters of the remaining normal equipment on production lines A and B can be adjusted respectively, so as to avoid conflicts in the processing time of the products on the two production lines at the backup equipment.

[0159] In an actual operation method, the parameters of each processing equipment can be adjusted by the technical personnel according to actual needs.

[0160] In addition, there are 4 production lines A, B, C, and D in total, and the second processing equipment on both production lines A and B has a fault, that is, a2 and b2. At this time, there are two processing equipment in the idle state, and two idle processing equipment can also be used as the backup equipment at the same time, and at the same time, let this backup equipment serve production lines A and B respectively.

[0161] Subsequently, in order to further improve the processing efficiency, the technical personnel can also adjust the number of backup equipment according to actual needs. For example, if there are equipment faults on 5 production lines and 3 idle processing equipment, 3 backup equipment can also serve 5 production lines respectively.

[0162] In an alternative embodiment, there may be no processing equipment in an idle state. To avoid processing interruption, for example, after determining the processing equipment in an idle state as a backup equipment from the digital twin model based on the magnitude of the equipment quantity value, determining the information of the backup equipment to obtain backup production control information may include the following sub-steps:

[0163] S51. If the equipment quantity value is equal to zero, use the processing equipment on the adjacent production line and corresponding to the equipment type as the backup equipment.

[0164] S52. Add the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and adjust the parameters of the non-faulty processing equipment on the production line to obtain the backup production control information.

[0165] In an embodiment, if the equipment quantity value is equal to zero, it indicates that there is no processing equipment in an idle state. To avoid interruption of production on the production line of the current faulty processing equipment, the processing equipment on the adjacent production line and of the same equipment type can be used as the backup equipment.

[0166] In an operation mode, the adjacent production line can be a production line in the same workshop. Suppose the equipment on production line C and production line D is in the same workshop. If the C5 processing equipment on production line C fails, the D5 processing equipment can be used as the backup equipment for production line C.

[0167] Similarly, after determining the position coordinates of the backup equipment, the position coordinates can be added to the coordinate information of the production line where the faulty processing equipment is located, so that the position coordinates of the backup equipment can replace the position coordinates of the faulty processing equipment in the coordinate information. Since there is no newly added idle processing equipment, and after adjustment, multiple adjacent production lines need to share a backup equipment for processing. To reasonably arrange the processing time, the parameters of the non-faulty processing equipment on the production line where the faulty processing equipment is located and the parameters of the non-faulty processing equipment on the adjacent production line can be directly adjusted. Finally, the adjusted coordinate information and parameters can be obtained to get the backup production control information.

[0168] Subsequently, the transport trolley can be controlled to transport products according to the new coordinate information, the backup equipment can be controlled to perform processing according to the processing parameters, and the non-faulty processing equipment on the production line can be controlled to perform processing according to the adjusted parameters, ensuring that processing can continue, thus avoiding processing interruption and ensuring that products can continue to be produced.

[0169] Suppose there are 4 production lines, namely A, B, C, and D. The second processing device on production line C fails, that is, c2. The d2 on the adjacent production line D is normal. Since the two production lines are in the same workshop, d2 can be used as a backup device, and d2 can serve both production lines C and D at the same time. Since only one processing device serves two production lines simultaneously, the processing parameters of the remaining normal devices on production lines C and D can be adjusted respectively to avoid conflicts in the processing time of the products of the two production lines on the backup device.

[0170] In an actual operation method, the parameter adjustment of each processing device can also be handled by technicians according to actual needs.

[0171] In this embodiment, the embodiment of the present invention provides a control method for a civil explosive production plant based on the Lora standard. The beneficial effects are as follows: After determining the equipment information of the civil explosive production plant, the present invention can establish a communication network with the processing equipment corresponding to the equipment information according to the Lora protocol; after establishing a digital twin model according to the equipment information, the real-time data of each processing device is obtained from the digital twin model through the communication network. When it is determined that a processing device has a fault according to the value of the real-time data, after shutting down the faulty processing device, the backup production control information is determined based on the digital twin model, and the corresponding backup device is controlled to perform production processing according to the backup production control information. By communicating with each device in the factory through the Lora protocol, the present invention can improve the security of data transmission, ensure data security, thereby reducing the probability of key data leakage or tampering caused by network attacks or network failures, and further avoiding production interruptions caused by data errors and reducing production risks; on the other hand, the present invention can combine the digital twin model for fault monitoring, immediately find the fault source, and determine the backup production control information that can continue production according to the real-time status of the digital twin model after determining the fault, and control the corresponding device to perform production processing according to the backup production control information, without the need for technicians to check one by one, which can improve the processing efficiency of faults, thereby improving the overall work and production control efficiency, and further reducing the production risks caused by faults.

[0172] The embodiment of the present invention also provides a control system for a civil explosive production plant based on the Lora standard. See Figure 3 which shows a schematic structural diagram of a control system for a civil explosive production plant based on the Lora standard provided by an embodiment of the present invention.

[0173] Among them, by way of example, the system may include:

[0174] A communication module 301, configured to establish a communication network with the processing equipment corresponding to the equipment information according to the Lora protocol after determining the equipment information of the civil explosive production plant;

[0175] A model building module 302 is configured to build a digital twin model according to the device information, and then use a communication network to obtain the detection data of each processing device, and visually display the digital twin model according to the detection data for the user to view the real-time status of the processing device;

[0176] An acquisition module 303 is configured to obtain the real-time data of each processing device from the digital twin model, and determine whether there is a fault in the processing device according to the value of the real-time data;

[0177] A control module 304 is configured to, if it is determined that there is a fault in the processing device, after shutting down the faulty processing device, determine backup production control information based on the digital twin model, and control the corresponding device to perform production processing according to the backup production control information.

[0178] Optionally, the determining the backup production control information based on the digital twin model includes:

[0179] Determine the device type of the faulty processing device, and statistically obtain the device quantity value from the digital twin model based on the device type, where the device quantity value is the quantity of devices that are in an idle state and correspond to the device type;

[0180] After determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, determine the information of the backup devices to obtain the backup production control information.

[0181] Optionally, after determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, determining the information of the backup devices to obtain the backup production control information includes:

[0182] If the device quantity value is greater than zero and the device quantity value is greater than the quantity value of the faulty processing devices, randomly select several devices in an idle state as backup devices according to the quantity value of the faulty processing devices;

[0183] After determining the position coordinates of each backup device, add the position coordinates to the coordinate information of the production line where the faulty processing device is located and obtain the processing parameters of the faulty processing device to obtain the backup production control information.

[0184] Optionally, after determining the processing devices in an idle state as backup devices from the digital twin model based on the magnitude of the device quantity value, determining the information of the backup devices to obtain the backup production control information includes:

[0185] If the value of the number of devices is greater than zero and less than the number of faulty processing devices, any idle device is randomly selected as a backup device;

[0186] After adding the position coordinates to the coordinate information of the production line where the faulty processing device is located and obtaining the processing parameters of the faulty processing device, the parameters of the non-faulty processing devices on the production line are adjusted to obtain backup production control information.

[0187] Optionally, after determining the idle processing device as a backup device from the digital twin model based on the size of the value of the number of devices, determining the information of the backup device to obtain backup production control information includes:

[0188] If the value of the number of devices is equal to zero, the processing device corresponding to the adjacent production line and of the same device type is used as a backup device;

[0189] Adding the position coordinates to the coordinate information of the production line where the faulty processing device is located and adjusting the parameters of the non-faulty processing devices on the production line to obtain backup production control information.

[0190] Optionally, determining whether a processing device has a fault according to the value of the real-time data includes:

[0191] Determining the production number of the processing device corresponding to the real-time data, where the production number is the sequence number of the processing device on the production line;

[0192] Based on the production number, several data values are extracted from the real-time data, and each data value is respectively judged whether it is within the corresponding preset value range;

[0193] Counting the number of data values within the corresponding preset value range, if the number value does not meet the preset threshold, it is determined that the processing device has a fault.

[0194] Optionally, the control system of the civil explosive production plant based on the Lora system further includes:

[0195] An image acquisition module, which is used to call the panoramic camera of the civil explosive production plant to acquire the processing image of the faulty processing device after the step of determining that the processing device has a fault;

[0196] A display module, which is used to visually display the processing image for technicians to refer to.

[0197] Those skilled in the art can clearly understand that for the convenience of description and simplicity, the specific working process of the above-described system can refer to the corresponding process in the foregoing method embodiment and will not be elaborated here.

[0198] Further, an embodiment of the present application also provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the control method for a civil explosive production plant based on the Lora standard as described in the above embodiment.

[0199] Further, an embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to cause a computer to execute the control method for a civil explosive production plant based on the Lora standard as described in the above embodiment.

[0200] In the description of the embodiments of the present invention, it should be noted that the orientation or positional relationship indicated by terms such as "upper" and "lower" is based on the orientation or positional relationship shown in the drawings. This is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of the present invention. When an element such as a layer, region, or substrate is referred to as "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installation", "connection", and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0201] Those skilled in the art should understand that an embodiment of the present application can also provide a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0202] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (control systems for civil explosive production plants based on the Lora standard), devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices generate means for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in one block or multiple blocks.

[0203] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in one block or multiple blocks.

[0204] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in one block or multiple blocks.

[0205] The above is only the preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the technical principles of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.

[0206] The present invention provides a control system for a civil explosive production plant based on the Lora standard. The core of this system uses an STM32H723 microcontroller as the main control unit, which is connected to the Lora module through its RS485 interface to achieve efficient wireless data transmission. The overall architecture of the control system for a civil explosive production plant based on the Lora standard consists of an STM32H723 microcontroller, a Lora module, an antenna, a power supply, and a series of peripheral devices (such as motors, sensors, etc.). Among them, the Lora module is responsible for the wireless transceiver task of data, while the STM32H723 microcontroller undertakes the work of data processing, encapsulation, and parsing.

[0207] In terms of communication protocol design, the present invention draws on the advanced concepts of computer networks and adopts a dynamic frame structure to flexibly adapt to the transmission requirements of different data volumes. The frame structure is carefully designed and includes a frame header (fixed value 0x2323, identifying the start of the frame), a type identifier (distinguishing data frame types), a command word (indicating the type of request instruction or return information), a status code (reflecting the current state of the robot), a data field (carrying detailed information of the robot, such as motor status, battery level, angular velocity, position, etc., with fields and lengths dynamically adjusted as needed), a checksum (single-byte sum check to ensure data integrity), and a frame tail (fixed value 0x2424, identifying the end of the frame). In addition, keyword fields such as robot type and ID, and data type are innovatively introduced into the data field to comprehensively and accurately describe the robot state.

[0208] The development process of the present invention is rigorous and efficient, covering three key links: hardware connection and initialization, data encapsulation and transmission, and data reception and parsing. Through careful hardware connection and parameter configuration, the coordinated operation of each component of the control system for civil explosive production plants based on the Lora standard is ensured; the data encapsulation and transmission mechanism guarantees the efficient wireless transmission of data; while the data reception and parsing link realizes the accurate verification and effective extraction of received data, providing a solid guarantee for the stable operation of the control system for civil explosive production plants based on the Lora standard.

[0209] In terms of performance optimization and reliability guarantee, the present invention makes full use of advanced technologies such as Lora modulation technology, multi-level relay networking, checksum mechanism, and dynamic frame structure. The Lora modulation technology realizes long-distance and low-power wireless communication; multi-level relay networking expands the communication distance and range; the checksum mechanism ensures high accuracy of data transmission; and the dynamic frame structure greatly improves communication efficiency. The comprehensive application of these technologies enables the present invention to demonstrate excellent performance and broad application prospects in many fields such as production control of civil explosive production plants, industrial automation, environmental monitoring, and the Internet of Things.

Claims

1. A control method for a Lora-based civilian explosives production plant, characterized in that: The method comprises: After determining the equipment information of the civilian explosive production plant, a communication network is established with the processing equipment corresponding to the equipment information according to the Lora protocol; After the digital twin model is established according to the equipment information, the detection data of each processing equipment is obtained by using the communication network, and the digital twin model is visualized according to the detection data so that the user can view the real-time status of the processing equipment; After acquiring the real-time data of each processing equipment from the digital twin model, determining whether the processing equipment has a fault according to the value of the real-time data; If it is determined that a processing equipment fault exists, after shutting down the faulty processing equipment, backup production control information is determined based on the digital twin model, and the corresponding equipment is controlled to perform production processing according to the backup production control information.

2. The control method for a Lora-based civilian explosives production plant according to claim 1, characterized in that: The determining of backup production control information based on the digital twin model includes: Determine the device type of the faulty processing device, and count the device quantity value from the digital twin model based on the device type, where the device quantity value is the number of devices that are in an idle state and correspond to the device type; After determining from the digital twin model that the processing equipment in an idle state is a backup equipment based on the size of the equipment quantity value, the information of the backup equipment is determined to obtain the backup production control information.

3. The control method for a Lora-based civilian explosives production plant according to claim 2 is characterized in that: After determining from the digital twin model that the processing equipment in an idle state is a backup equipment based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes: If the device quantity value is greater than zero and the device quantity value is greater than the quantity value of the failed processing equipment, then a number of idle devices are randomly selected as backup devices according to the quantity value of the failed processing equipment; After determining the position coordinates of each backup device, the position coordinates are added to the coordinate information of the production line where the faulty processing device is located, and the processing parameters of the faulty processing device are obtained to obtain the backup production control information.

4. The control method for a Lora-based civilian explosives production plant according to claim 2 is characterized in that: After determining from the digital twin model that the processing equipment in an idle state is a backup equipment based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes: If the equipment quantity value is greater than zero and the equipment quantity value is less than the quantity value of the failed processing equipment, then select any idle equipment as a backup equipment; After adding the position coordinates to the coordinate information of the production line where the faulty processing equipment is located and obtaining the processing parameters of the faulty processing equipment, the parameters of the non-faulty processing equipment of the production line are adjusted to obtain backup production control information.

5. The control method based on the Lora standard civilian explosive production plant according to claim 1 is characterized in that: After determining from the digital twin model that the processing equipment in an idle state is a backup equipment based on the size of the equipment quantity value, determining the information of the backup equipment to obtain the backup production control information includes: If the equipment quantity value is equal to zero, the processing equipment corresponding to the equipment type in the adjacent production line is used as the backup equipment; The position coordinates are added to the coordinate information of the production line where the faulty processing equipment is located and the parameters of the non-faulty processing equipment of the production line are adjusted to obtain backup production control information.

6. The control method for a Lora-based civilian explosives production plant according to claim 1, characterized in that: Determining whether there is a fault in the processing equipment according to the value of the real-time data includes: Determine the production number of the processing equipment corresponding to the real-time data, wherein the production number is the sequence number of the processing equipment in the production line; Extracting a plurality of data values ​​from the real-time data based on the production number, and determining whether each data value is within a corresponding preset value range; The statistical data value is a quantity value within the corresponding preset value range. If the quantity value does not meet the preset threshold, it is determined that the processing equipment has a fault.

7. The control method based on the Lora standard civilian explosive production plant according to any one of claims 1 to 6 is characterized in that: After the step of determining that the processing equipment has a fault, the method further includes: Use the panoramic camera of the civilian explosives production plant to collect processing images of the faulty processing equipment; The processed images are displayed visually for reference by technicians.

8. A control system based on the Lora standard civilian explosives production plant, characterized in that: The system comprises: A communication module, for establishing a communication network with processing equipment corresponding to the equipment information according to the Lora protocol after determining the equipment information of the civilian explosive production plant; A model building module is used to build a digital twin model according to the equipment information, obtain the detection data of each processing equipment by using a communication network, and visualize the digital twin model according to the detection data so that the user can view the real-time status of the processing equipment; An acquisition module, used to acquire the real-time data of each processing equipment from the digital twin model, and determine whether the processing equipment has a fault according to the value of the real-time data; The control module is used to determine backup production control information based on the digital twin model after shutting down the faulty processing equipment if it is determined that the processing equipment is faulty, and control the corresponding equipment to perform production processing according to the backup production control information.

9. The control method and system for the Lora-based civilian explosive production plant according to claim 8, characterized in that: The determining of backup production control information based on the digital twin model includes: Determine the device type of the faulty processing device, and count the device quantity value from the digital twin model based on the device type, where the device quantity value is the number of devices that are in an idle state and correspond to the device type; After determining from the digital twin model that the processing equipment in an idle state is a backup equipment based on the size of the equipment quantity value, the information of the backup equipment is determined to obtain the backup production control information.

10. The control system of the Lora-based civilian explosives production plant according to claim 8, characterized in that: Determining whether there is a fault in the processing equipment according to the value of the real-time data includes: Determine the production number of the processing equipment corresponding to the real-time data, wherein the production number is the sequence number of the processing equipment in the production line; Extracting a plurality of data values ​​from the real-time data based on the production number, and determining whether each data value is within a corresponding preset value range; The statistical data value is a quantity value within the corresponding preset value range. If the quantity value does not meet the preset threshold, it is determined that the processing equipment has a fault.

Citation Information

Patent Citations

  • Intelligent production system and method based on edge calculation and digital twinning

    CN111857065A

  • Digital twin factory control system for multi-dimensional visual management

    CN116107280A

  • Production line monitoring system and monitoring method based on digital twinning technology

    CN116203898A

  • Digital twinning system of production line

    CN116243671A

  • Method, server, device and medium for adjusting processing scheme in case of equipment failure

    CN118259632A