Production line control method and device and storage medium

By introducing an automated repair mechanism into the production line, obtaining fault information and sending repair instructions, the problem of production line being shut down due to equipment failure is solved, and the production efficiency and automation level are improved.

CN120065923APending Publication Date: 2025-05-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311622920.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The upstream and downstream equipment in the production line cannot establish effective communication, which causes the entire production line to be stopped when the equipment fails, waiting for technical workers to investigate, affecting the factory's production efficiency.

Method used

Provide a production line control method, by obtaining the production equipment failure information sent by the management equipment, sending repair instructions to the management equipment, instructing the management equipment to repair the production equipment, and realizing automatic repair.

Benefits of technology

It reduces the time for the production line to resume normal operation, improves the production efficiency of the production line, and reduces the need for manual maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065923A_ABST
    Figure CN120065923A_ABST
Patent Text Reader

Abstract

The invention relates to a production line control method and device and a storage medium. The production line control method comprises the following steps: acquiring production equipment fault information sent by management equipment; and based on the obtained fault information, a repair instruction is sent to the management equipment, and the repair instruction is used for instructing the management equipment to repair the production equipment. According to the production line control method, faults of the production equipment of the production line can be repaired through the management equipment, the repair time is shortened, and the production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of production lines, and in particular, to a production line control method, apparatus, and storage medium. Background Art

[0002] Industrial production is one of the pillars of China's economic development. Among them, the production efficiency of production lines in factory production is closely related to the economic benefits of factories.

[0003] In related technologies, the upstream equipment and downstream equipment of a production line are only connected through materials and cannot establish effective communication. In addition, when a certain equipment in the production line fails, the entire production line needs to stop running, and the production line can only resume production after technical workers troubleshoot the fault. The above problems affect the production efficiency of factories. Summary of the Invention

[0004] To overcome the problems existing in related technologies, the present disclosure provides a production line control method, apparatus, and storage medium.

[0005] According to the first aspect of the embodiments of the present disclosure, a production line control method is provided, which is applied to a production line master control device and includes: obtaining production equipment fault information sent by a management device; and based on the obtained fault information, sending a repair instruction to the management device, where the repair instruction is used to instruct the management device to repair the production equipment.

[0006] In an implementation manner, when the production equipment is a first line control device, the management device is a line control resident device; when the production equipment is a single equipment control device, the management device is a second line control device, and the line control resident device is used to control the first line control device; where the second line control device is used to control a production line including multiple single equipments, and the single equipment control device is used to control a single equipment in the production line; after obtaining the production equipment fault information sent by the management device, the method further includes: in response to obtaining first fault information sent by the line control resident device, displaying the first fault information on the display interface of the production line master control device, where the first fault information indicates that the first line control device has an offline fault; or in response to obtaining second fault information sent by the second line control device, displaying the second fault information on the display interface of the production line master control device, where the second fault information indicates that the single equipment control device has an offline fault or no response fault; where the first line control device is a faulty line control device, and the second line control device is a normal line control device.

[0007] In one embodiment, sending a repair instruction to the management device based on the obtained fault information includes: if the fault information is the first fault information, sending a first repair instruction to the in-line control resident device, where the first repair instruction is used to instruct the in-line control resident device to update the system operation version of the first in-line control device to a historical version; or if the fault information is the third fault information, sending a second repair instruction to the second in-line control device, where the third fault information indicates that the single-equipment control device has a non-response fault, and the second repair instruction is used to instruct the second in-line control device to send a third repair instruction to the single-equipment resident device, and the single-equipment resident device is used to control the single-equipment control device, and the third repair instruction is used to instruct the single-equipment resident device to update the system operation version of the single-equipment control device to a historical version; or if the fault information is the fourth fault information, sending a second repair instruction to the second in-line control device, where the fourth fault information indicates that the single-equipment control device has an offline fault; the third fault information and the fourth fault information are subsets of the second fault information.

[0008] According to a second aspect of the embodiments of the present disclosure, a production line control method is provided, which is applied to a management device and includes: in response to determining that there is a faulty production device, generating production device fault information and sending the production device fault information to the production line master control device; obtaining a repair instruction sent by the production line master control device based on the production device fault information, and repairing the production device based on the repair instruction.

[0009] In one embodiment, the management device is an in-line control resident device, and the faulty production device is a first in-line control device; wherein, the in-line control resident device is used to control the first in-line control device; the determining that there is a faulty production device, generating production device fault information, and sending the production device fault information to the production line master control device includes: in response to the in-line control resident device being in a startup state, periodically obtaining an operation status instruction sent by the first in-line control device; in response to not obtaining the operation status instruction sent by the first in-line control device within a first period of time, determining that the first in-line control device has an offline fault, generating first fault information, and sending the first fault information to the production line master control device, where the first fault information indicates that the first in-line control device has an offline fault.

[0010] In one embodiment, the method further includes: if the in-line control resident device is in a non-startup state and receives a first instruction sent by a second in-line control device, starting the in-line control resident device, where the first instruction is used to instruct the in-line control resident device to start running.

[0011] In one embodiment, repairing the production equipment based on the repair instruction includes: obtaining a first repair instruction sent by the main control equipment of the production line, where the first repair instruction is used to instruct the line control resident equipment to update the system operation version of the first line control equipment to a historical version; based on the first repair instruction, updating the system operation version of the first line control equipment to the historical version; and sending a second instruction to the first line control equipment, where the second instruction is used to instruct the first line control equipment to perform a restart based on the historical system operation version.

[0012] In one embodiment, the management equipment is a second line control equipment, and the faulty equipment is a single equipment control equipment: wherein, the second line control equipment is used to control a production line including multiple single equipments, and the single equipment control equipment is used to control a single equipment in the production line; determining that there is a faulty production equipment, generating production equipment fault information, and sending the production equipment fault information to the main control equipment of the production line includes: regularly obtaining an operation status instruction sent by the single equipment control equipment; in response to obtaining the operation status instruction sent by the single equipment control equipment within a second time, sending a third instruction to the single equipment control equipment and obtaining a fourth instruction sent by the single equipment control equipment, but not obtaining the fourth instruction within a third time, determining that the single equipment control equipment has a non-response fault, generating third fault information, and sending the third fault information to the main control equipment of the production line; wherein, the third instruction is used to instruct the single equipment control equipment to perform a production operation, the fourth instruction represents that the single equipment control equipment is in a normal production state, and the third fault information represents that the single equipment control equipment has a non-response fault; or in response to not obtaining the operation status instruction sent by the single equipment control equipment within a second time, determining that the single equipment control equipment has an offline fault, generating fourth fault information, and sending the fourth fault information to the main control equipment of the production line, where the fourth fault information represents that the single equipment control equipment has an offline fault.

[0013] In one embodiment, repairing the production equipment based on the repair instruction includes: obtaining a second repair instruction sent by the main control equipment of the production line, where the second repair instruction is used to instruct the second line control equipment to send a third repair instruction to the single equipment resident equipment; based on the second repair instruction, sending the third repair instruction to the single equipment resident equipment, where the third repair instruction is used to instruct the single equipment resident equipment to send a fifth instruction to the production equipment to update the system operation version of the single equipment control equipment to a historical version.

[0014] According to a third aspect of the embodiments of the present disclosure, a production line control method is provided, which is applied to production equipment and includes: determining that the production equipment has a fault; in response to a repair instruction received by a management device, performing a repair operation, where the repair instruction is sent by a production line master control device to the management device based on production equipment fault information, and the production equipment fault information is generated by the management device based on the production equipment with the fault.

[0015] In one implementation, the management device is a line control resident device, and the production equipment is a first line control device; wherein, the line control resident device is used to control the first line control device; the step of responding to the repair instruction received by the management device and performing a repair operation includes: obtaining a second instruction sent by the line control resident device, where the second instruction is used to instruct the first line control device to perform a restart based on the system historical operation version; based on the second instruction, performing a restart based on the system historical operation version.

[0016] In one implementation, the management device is a second line control device, and the production equipment is a single equipment control device; wherein, the second line control device is used to control a production line including multiple single equipments, and the single equipment control device is used to control a single equipment in the production line; the step of responding to the repair instruction received by the management device and performing a repair operation includes: obtaining a fifth instruction sent by a single equipment resident device, where the fifth instruction is used to instruct the single equipment control device to perform a restart based on the system historical operation version, and the fifth instruction is sent by the single equipment resident device in response to obtaining a third repair instruction sent by the second line control device, and the third repair instruction is used to instruct the single equipment resident device to update the system operation version of the single equipment control device to the historical version; based on the fifth instruction, performing a restart based on the system historical operation version.

[0017] In one implementation, the method further includes: in response to the successful restart of the production equipment, performing at least one of the following operations: a reset operation and a material clearing operation.

[0018] According to a fourth aspect of the embodiments of the present disclosure, a production line control device is provided, which is applied to a production line master control device and includes: a receiving unit, configured to obtain production equipment fault information sent by a management device; a processing unit, configured to send a repair instruction to the management device based on the obtained fault information, where the repair instruction is used to instruct the management device to repair the production equipment.

[0019] In one embodiment, the receiving unit responds to obtaining the first fault information sent by the wired control permanent device in the following manner, and displays the first fault information on the display interface of the production line master control device. The first fault information indicates that the first wired control device has an offline fault; or responds to obtaining the second fault information sent by the second wired control device, and displays the second fault information on the display interface of the production line master control device. The second fault information indicates that the single-equipment control device has an offline fault or no response fault; wherein, the first wired control device is a faulty wired control device, and the second wired control device is a normal wired control device.

[0020] In one embodiment, the processing unit uses the following method. If the fault information is the first fault information, it sends a first repair instruction to the wired control permanent device. The first repair instruction is used to instruct the wired control permanent device to update the system operation version of the first wired control device to the historical version; or if the fault information is the third fault information, it sends a second repair instruction to the second wired control device. The third fault information indicates that the single-equipment control device has no response fault. The second repair instruction is used to instruct the second wired control device to send a third repair instruction to the single-equipment permanent device. The single-equipment permanent device is used to control the single-equipment control device. The third repair instruction is used to instruct the single-equipment permanent device to update the system operation version of the single-equipment control device to the historical version; or if the fault information is the fourth fault information, it sends a second repair instruction to the second wired control device. The fourth fault information indicates that the single-equipment control device has an offline fault; the third fault information and the fourth fault information are subsets of the second fault information.

[0021] According to the fifth aspect of the embodiments of the present disclosure, a production line control device is provided, which is applied to a management device and includes: a sending unit, configured to generate production equipment fault information in response to determining that there is a faulty production equipment, and send the production equipment fault information to the production line master control device; a processing unit, configured to obtain a repair instruction sent by the production line master control device based on the production equipment fault information, and repair the production equipment based on the repair instruction.

[0022] In one embodiment, the sending unit uses the following method. In response to the wired control permanent device being in the startup state, it regularly obtains the operation status instruction sent by the first wired control device; in response to not obtaining the operation status instruction sent by the first wired control device within the first time period, it determines that the first wired control device has an offline fault, generates the first fault information, and sends the first fault information to the production line master control device. The first fault information indicates that the first wired control device has an offline fault.

[0023] In one embodiment, if the wired control resident device is in an unstarted state and a first instruction sent by a second wired control device is received, the sending unit starts the wired control resident device, and the first instruction is used to instruct the wired control resident device to start running in the following manner.

[0024] In one embodiment, the processing unit obtains a first repair instruction sent by the production line master control device in the following manner. The first repair instruction is used to instruct the wired control resident device to update the system operation version of the first wired control device to a historical version. Based on the first repair instruction, the system operation version of the first wired control device is updated to the historical version. A second instruction is sent to the first wired control device, and the second instruction is used to instruct the first wired control device to perform a restart based on the system historical operation version.

[0025] In one embodiment, the sending unit obtains the operation status instruction sent by the single equipment control device at regular intervals in the following manner. In response to obtaining the operation status instruction sent by the single equipment control device within a second time period, a third instruction is sent to the single equipment control device and a fourth instruction sent by the single equipment control device is obtained. However, if the fourth instruction is not obtained within a third time period, it is determined that the single equipment control device has a non-response fault, a third fault message is generated, and the third fault message is sent to the production line master control device. Wherein, the third instruction is used to instruct the single equipment control device to perform a production operation, the fourth instruction represents that the single equipment control device is in a normal production state, and the third fault message represents that the single equipment control device has a non-response fault. Or in response to not obtaining the operation status instruction sent by the single equipment control device within the second time period, it is determined that the single equipment control device has an offline fault, a fourth fault message is generated, and the fourth fault message is sent to the production line master control device, and the fourth fault message represents that the single equipment control device has an offline fault.

[0026] In one embodiment, the processing unit obtains a second repair instruction sent by the production line master control device in the following manner. The second repair instruction is used to instruct the second wired control device to send a third repair instruction to the single equipment resident device. Based on the second repair instruction, the third repair instruction is sent to the single equipment resident device, and the third repair instruction is used to instruct the single equipment resident device to send a fifth instruction to the production equipment to update the system operation version of the single equipment control device to a historical version.

[0027] According to a sixth aspect of the embodiments of the present disclosure, a production line control device is provided, which is applied to production equipment and includes: a detection unit for determining that a failure exists in the production equipment; an execution unit for responding to a repair instruction received by a management device and performing a repair operation, where the repair instruction is sent by a production line master control device to the management device based on production equipment failure information, and the production equipment failure information is generated by the management device based on the production equipment with a failure.

[0028] In one implementation, the execution unit obtains the second instruction sent by the line control resident device in the following manner. The second instruction is used to instruct the first line control device to perform a restart based on the system historical operation version; based on the second instruction, perform a restart based on the system historical operation version.

[0029] In one implementation, the execution unit obtains the fifth instruction sent by the single equipment resident device in the following manner. The fifth instruction is used to instruct the single equipment control device to perform a restart based on the system historical operation version. The fifth instruction is sent by the single equipment resident device in response to obtaining the third repair instruction sent by the second line control device. The third repair instruction is used to instruct the single equipment resident device to update the system operation version of the single equipment control device to the historical version; based on the fifth instruction, perform a restart based on the system historical operation version.

[0030] In one implementation, the execution unit adopts at least one of the following methods including: a reset operation and a material clearing operation.

[0031] According to a seventh aspect of the embodiments of the present disclosure, a production line control device is provided, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the production line control method described in the first aspect or any one of the implementation manners of the first aspect.

[0032] According to an eighth aspect of the embodiments of the present disclosure, a production line control device is provided, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the production line control method described in the second aspect or any one of the implementation manners of the second aspect.

[0033] According to a ninth aspect of the embodiments of the present disclosure, a production line control device is provided, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the production line control method described in the third aspect or any one of the implementation manners of the third aspect.

[0034] According to a tenth aspect of the embodiments of the present disclosure, there is provided a storage medium storing instructions, which, when executed by a processor of a terminal, enable the terminal to execute the production line control method described in the first aspect or any one of the implementation manners of the first aspect.

[0035] According to an eleventh aspect of the embodiments of the present disclosure, there is provided a storage medium storing instructions, which, when executed by a processor of a terminal, enable the terminal to execute the production line control method described in the second aspect or any one of the implementation manners of the second aspect.

[0036] According to a twelfth aspect of the embodiments of the present disclosure, there is provided a storage medium storing instructions, which, when executed by a processor of a terminal, enable the terminal to execute the production line control method described in the third aspect or any one of the implementation manners of the third aspect.

[0037] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: When an abnormal fault occurs in the production equipment on the production line, the management device can obtain the fault information of the production equipment and send it to the production line master control device. The production line master control device sends a repair instruction to the management device, and after receiving the repair instruction, the management device repairs the faulty production equipment, eliminating the need for manual repair and improving the production efficiency of the production line.

[0038] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0040] Figure 1 is a flowchart of a production line control method shown according to an exemplary embodiment.

[0041] Figure 2 is a flowchart of a method for obtaining fault information of production equipment sent by a management device shown according to an exemplary embodiment.

[0042] Figure 3 is a flowchart of a method for sending a repair instruction to a management device based on fault information shown according to an exemplary embodiment.

[0043] Figure 4 is a flowchart of a production line control method shown according to another exemplary embodiment.

[0044] Figure 5It is a flowchart of a method for sending production equipment failure information to the production line master control device according to an exemplary embodiment.

[0045] Figure 6 It is a flowchart of a method for detecting the startup status of a line control resident device according to an exemplary embodiment.

[0046] Figure 7 It is a flowchart of a method for repairing production equipment based on a repair instruction according to an exemplary embodiment.

[0047] Figure 8 It is a flowchart of a method for sending production equipment failure information to the production line master control device according to another exemplary embodiment.

[0048] Figure 9 It is a flowchart of a method for repairing production equipment based on a repair instruction according to another exemplary embodiment.

[0049] Figure 10 It is a flowchart of a production line control method according to another exemplary embodiment.

[0050] Figure 11 It is a flowchart of a method for performing a repair operation in response to a repair instruction received by a response management device according to an exemplary embodiment.

[0051] Figure 12 It is a flowchart of a method for performing a repair operation in response to a repair instruction received by a response management device according to another exemplary embodiment.

[0052] Figure 13 It is a flowchart of a method for subsequent operations after restarting a production equipment according to an exemplary embodiment.

[0053] Figure 14 It is a schematic diagram of a line control offline processing strategy according to an exemplary embodiment.

[0054] Figure 15 It is a schematic diagram of a single equipment non-response strategy according to an exemplary embodiment.

[0055] Figure 16 It is a schematic diagram of a single equipment offline processing strategy according to an exemplary embodiment.

[0056] Figure 17 A schematic diagram of a strategy for pulling up a single equipment control device by a single equipment resident device according to an exemplary embodiment.

[0057] Figure 18 A schematic diagram of process isolation of a single equipment software platform according to an exemplary embodiment.

[0058] Figure 19 Schematic diagram showing data interaction between a server program and a client program with the same name according to an exemplary embodiment.

[0059] Figure 20 Schematic diagram showing a single-equipment / line-control offline overall processing strategy according to an exemplary embodiment.

[0060] Figure 21 Block diagram of a control device for discrete manufacturing according to an exemplary embodiment.

[0061] Figure 22 Block diagram of a control device for discrete manufacturing according to an exemplary embodiment.

[0062] Figure 23 Block diagram of a control device for discrete manufacturing according to an exemplary embodiment.

[0063] Figure 24 Block diagram of a device for production line control according to an exemplary embodiment. Detailed implementation mode

[0064] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0065] The production line control method provided by the embodiments of the present disclosure is applied to the scenario where the production line equipment software platform self-repairs to improve production efficiency, reduce equipment maintenance costs, and achieve less-manpower production.

[0066] During the production operation of the factory, the key point of focus is whether the production efficiency is high. In the context of industrial production, there is a concept called Unit Per Hour (UPH), which is generally used to statistically analyze the production efficiency of production lines in manufacturing and processing industries. Thus, it can be seen that industrial production attaches great importance to the production efficiency of production lines.

[0067] In the related art, various problems will occur during the production process of the production line, resulting in the inability to improve production efficiency. For example, due to the outdated technology of the production line, its reliability and stability cannot be guaranteed. When a failure occurs in the equipment upstream of the production line, the production operations downstream of the production line and even the operations of the entire production line will stop, waiting for the factory technicians to troubleshoot the problem. During the troubleshooting period, the entire production line cannot carry out production operations. Because the related technology cannot guarantee the reliability and stability of a single piece of equipment, a large amount of R & D, testing and maintenance manpower is required, which greatly affects the production efficiency.

[0068] It can be understood that the embodiment of the present disclosure only uses the failure of the production line equipment to affect the production efficiency for illustrative purposes, but the disadvantages of the related technology are not limited to this. It can also be that code needs to be developed and accessed for each piece of equipment on the production line. For example, the underlying layer of the production line equipment does not have digital configuration and acquisition interfaces, and cannot be connected to the cloud digital system or digital intelligence service.

[0069] In view of this, a production line control method provided by the present disclosure can, when an abnormal failure occurs in the production equipment on the production line, enable the management device to obtain the fault information of the production equipment and send it to the main control device of the production line. The main control device of the production line sends a repair instruction to the management device, and after receiving the repair instruction, the management device repairs the faulty production equipment, thereby reducing the time for the production line to resume normal operation and improving the production efficiency of the production line.

[0070] Figure 1 is a flowchart of a production line control method shown according to an exemplary embodiment, as Figure 1 shown, including the following steps.

[0071] In step S11, obtain the fault information of the production equipment sent by the management device.

[0072] In step S12, based on the obtained fault information, send a repair instruction to the management device.

[0073] Wherein, the repair instruction is used to instruct the management device to repair the production equipment.

[0074] In the embodiment of the present disclosure, after a failure occurs in the production equipment, the management device can detect which production equipment has failed and send the corresponding fault information to the main control device of the production line. After obtaining the fault information sent by the management device, the main control device of the production line sends a repair instruction to the management device, and the management device repairs the faulty production equipment based on the repair instruction. It can be understood that the main control device of the production line is located at the head position of each production line and includes a central control large screen, which displays the information of the entire production line.

[0075] In related technical embodiments, there are many ways to improve the production efficiency of a production line. For example, optimizing the integrated scheduling of production line tasks, rearranging the order delivery dates, and controlling the material ratio of the production line can all improve the production efficiency of the production line. However, the technical solutions of related technologies focus on the upper layer of the production line, that is, improving and adjusting the entire production line as a whole. The present disclosure focuses on the lower layer of the production line, that is, repairing each faulty equipment on the production line and the software programs inside the faulty equipment, reducing the time required for manual repair, and improving the production efficiency.

[0076] The present disclosure mentions that a management device can send production equipment fault information to the main control device of the production line. The following is an explanation of a method for obtaining the production equipment fault information sent by the management device.

[0077] Figure 2 It is a flowchart of a method for obtaining production equipment fault information sent by a management device shown according to an exemplary embodiment. As Figure 2 shown, it includes the following steps.

[0078] In step S21, obtain the production equipment fault information sent by the management device.

[0079] In step S22A, in response to obtaining the first fault information sent by the in-line resident device, display the first fault information on the display interface of the main control device of the production line.

[0080] Among them, the first fault information characterizes that the first in-line device has an offline fault.

[0081] In step S22B, in response to obtaining the second fault information sent by the second in-line device, display the second fault information on the display interface of the main control device of the production line.

[0082] Among them, the second fault information characterizes that the single-equipment control device has an offline fault or no response fault; the first in-line device is a faulty in-line device, and the second in-line device is a normal in-line device.

[0083] In the embodiments of the present disclosure, the production equipment includes a single-equipment control device and a line control device, and the management equipment includes a line control resident device and a line control device. In the present disclosure, for the convenience of description, the line control device may also be referred to as line control. Among them, a single equipment is an equipment responsible for a process production task, and a line control device is an equipment responsible for the scheduling of a production line. On the software platform inside the single equipment, there is a single-equipment control device. Among them, the single-equipment control device is a device inside the single equipment that controls the actions of the single equipment, and is used to control the actions of the single equipment to achieve production actions. The line control resident device is a device for repairing the line control device, and is used to update the software version of the line control to a historical version. When the single-equipment control device fails, the line control can obtain the fault information of the single-equipment control device and send it to the main control device of the production line. When the line control fails, this line control is also called a faulty line control device, and the line control resident device can obtain the fault information of the line control and send it to the main control device of the production line. Similarly, a line control device that is operating normally without a fault is called a normal line control device.

[0084] It can be understood that as parts of the production line, both the line control and the single equipment may fail. The present disclosure uses a normal line control to detect an abnormal single equipment and repair it, or a normal single equipment and a line control resident device to detect an abnormal line control and repair it, so that the production line can achieve intelligent abnormal detection, reduce the expenditure of human and material resources, and shorten the repair time. It can be understood that when a certain line control on the production line fails, the remaining normal line controls cannot control and repair the faulty line control.

[0085] It should be noted that the failures of the line control or the single-equipment control device mentioned in the present disclosure are all software-level failures, such as software crashes and other phenomena. Hardware-level failures, such as damage to single-equipment components, are not included. When the line control or the single-equipment control device has a hardware-level failure, technicians still need to go to the site for hardware repair.

[0086] The following is an explanation of a method for sending a repair instruction to the management equipment based on fault information.

[0087] Figure 3 is a flowchart of a method for sending a repair instruction to the management equipment based on fault information shown in an exemplary embodiment, as Figure 3 shown, and includes the following steps.

[0088] In step S31, the fault information category is detected.

[0089] In step S32A, if the fault information is the first fault information, a first repair instruction is sent to the line control resident device.

[0090] Among them, the first repair instruction is used to instruct the line control resident device to update the system operation version of the first line control device to a historical version.

[0091] In step S32B, if the fault information is the third fault information, send a second repair instruction to the second by-wire device.

[0092] Among them, the third fault information characterizes that the single-equipment control device has a non-response fault, the second repair instruction is used to instruct the second by-wire device to send a third repair instruction to the single-equipment resident device, the single-equipment resident device is used to control the single-equipment control device, and the third repair instruction is used to instruct the single-equipment resident device to update the system operation version of the single-equipment control device to the historical version.

[0093] In step S32C, if the fault information is the fourth fault information, send a second repair instruction to the second by-wire device.

[0094] Among them, the fourth fault information characterizes that the single-equipment control device has an offline fault; the third fault information and the fourth fault information are subsets of the second fault information.

[0095] In the embodiment of the present disclosure, the main production line control device sends a repair instruction for the corresponding fault information to the management device based on various fault information sent by the management device to repair the production equipment.

[0096] In the embodiment of the present disclosure, there may be more than one type of fault that the single-equipment control device may have, including offline faults and non-response faults.

[0097] In the embodiment of the present disclosure, on the software platform inside the single equipment, there is a single-equipment resident device. The single-equipment resident device is a device inside the single equipment for repairing the single-equipment control, and is used to update the software version of the single-equipment control device to the historical version.

[0098] In the embodiment of the present disclosure, the difference between the single-equipment offline fault and the single-equipment non-response fault is that when the single-equipment offline fault occurs, the by-wire does not receive the heartbeat signal sent by the single-equipment control device on time; when the single-equipment non-response fault occurs, the by-wire can receive the heartbeat signal sent by the single-equipment control device, but cannot receive the instruction indicating the successful execution of the production operation by the single-equipment control device.

[0099] Next, another production line control method will be explained.

[0100] Figure 4 is a flowchart of a production line control method shown according to another exemplary embodiment, as Figure 4 shown, and includes the following steps.

[0101] In step S41, in response to determining that there is a faulty production equipment, generate production equipment fault information and send the production equipment fault information to the main production line control device.

[0102] In an embodiment of the present disclosure, after determining that a production device has failed, the management device sends the generated fault information to the production line master device.

[0103] In step S42, obtain the repair instruction sent by the production line master device based on the production device fault information, and repair the production device based on the repair instruction.

[0104] In an embodiment of the present disclosure, after the management device obtains the repair instruction sent by the production line master device, it performs a repair operation on the production device.

[0105] In an embodiment of the present disclosure, repairing the production device through the management device avoids the process of manual repair, saves repair time, and improves production efficiency.

[0106] An explanation of a method for sending production device fault information to the production line master device will be given below.

[0107] Figure 5 is a flowchart of a method for sending production device fault information to the production line master device shown according to an exemplary embodiment, as Figure 5 shown, and includes the following steps.

[0108] In step S51, in response to the line control resident device being in the startup state, regularly obtain the operation status instruction sent by the first line control device.

[0109] In an embodiment of the present disclosure, the line control resident device regularly receives the heartbeat signal sent by the line control device and marks the line control as being in the normal online state.

[0110] In step S52, in response to not obtaining the operation status instruction sent by the first line control device within the first time, determine that the first line control device has an offline fault, generate the first fault information, and send the first fault information to the production line master device.

[0111] Among them, the first fault information characterizes that the first line control device has an offline fault.

[0112] In an embodiment of the present disclosure, when the line control resident device does not receive the heartbeat signal of the line control device within a fixed time, it marks that the line control has an offline fault and sends the line control offline fault information to the production line master device.

[0113] An explanation of a method for detecting the startup state of the line control resident device will be given below.

[0114] Figure 6 is a flowchart of a method for detecting the startup state of the line control resident device shown according to an exemplary embodiment, as Figure 6 shown, and includes the following steps.

[0115] In step S61, obtain the status of the line control resident device.

[0116] In step S62, if the wired control resident device is in an unstarted state and a first instruction sent by a second wired control device is received, start the wired control resident device.

[0117] Wherein, the first instruction is used to instruct the wired control resident device to start running.

[0118] In the embodiment of the present disclosure, the start of the wired control resident device is controlled by the wired control device. After detecting that the wired control resident device is not started, the wired control device sends a start instruction to start the wired control resident device.

[0119] Next, a method for repairing a production device based on a repair instruction will be explained.

[0120] Figure 7 is a flowchart of a method for repairing a production device based on a repair instruction shown according to an exemplary embodiment. As Figure 7 shown, it includes the following steps.

[0121] In step S71, obtain a first repair instruction sent by the production line master control device.

[0122] Wherein, the first repair instruction is used to instruct the wired control resident device to update the system running version of the first wired control device to a historical version.

[0123] In step S72, based on the first repair instruction, update the system running version of the first wired control device to a historical version.

[0124] In step S73, send a second instruction to the first wired control device.

[0125] Wherein, the second instruction is used to instruct the first wired control device to perform a restart based on the system historical running version.

[0126] In the embodiment of the present disclosure, after the wired control resident device obtains the repair instruction sent by the production line master control device, it updates the software running version of the wired control device to a historical version, and sends an instruction to the wired control device to restart the wired control device.

[0127] It can be understood that software products are constantly updated and optimized, and new versions are launched. Among them, in the context of factory production, the historical version of a software product is called a stable version. In an actual production environment, the production party usually prefers to use the stable version of the software product because the stable version has been tested in the production environment for a certain period of time, avoiding major production accidents due to code crashes. The new version, although having excellent performance when it is newly launched, has not been tested in the production environment for a certain period of time and is not suitable for large-scale use in the production environment.

[0128] Next, a method for sending production device failure information to the production line master control device will be explained.

[0129] Figure 8 is a flowchart of a method for sending production equipment fault information to the main control device of a production line shown according to another exemplary embodiment, as Figure 8 shown, including the following steps:

[0130] In step S81, the operation status instruction sent by the single equipment control device is obtained regularly.

[0131] In the embodiment of the present disclosure, the line control regularly obtains the heartbeat signal of the single equipment control device and marks the single equipment control device as being in a normal online state.

[0132] In step S82A, in response to obtaining the operation status instruction sent by the single equipment control device within the second time, a third instruction is sent to the single equipment control device and the fourth instruction sent by the single equipment control device is obtained. However, since the fourth instruction is not obtained within the third time, it is determined that the single equipment control device has a non-response fault, a third fault information is generated, and the third fault information is sent to the main control device of the production line.

[0133] Among them, the third instruction is used to instruct the single equipment control device to perform a production operation, the fourth instruction represents that the single equipment control device is in a normal production state, and the third fault information represents that the single equipment control device has a non-response fault.

[0134] In the embodiment of the present disclosure, after the line control regularly obtains the heartbeat signal of the single equipment control device, an instruction is sent to the single equipment control device to make the single equipment control device perform a production operation. However, the line control does not receive the instruction indicating successful production sent by the single equipment control device within a fixed time, marks that the single equipment control device has a non-response fault, and sends the non-response fault information of the single equipment control device to the main control device of the production line.

[0135] In step S82B, in response to not obtaining the operation status instruction sent by the single equipment control device within the second time, it is determined that the single equipment control device has an offline fault, a fourth fault information is generated, and the fourth fault information is sent to the main control device of the production line.

[0136] Among them, the fourth fault information represents that the single equipment control device has an offline fault.

[0137] In the embodiment of the present disclosure, the line control does not receive the heartbeat signal sent by the single equipment control device within a fixed time, marks that the single equipment control device has an offline fault, and sends the offline fault information of the single equipment control device to the main control device of the production line.

[0138] Next, a method for repairing a production equipment based on a repair instruction will be explained.

[0139] Figure 9It is a flowchart of a method for repairing a production device based on a repair instruction shown according to another exemplary embodiment. As Figure 9 shown, it includes the following steps.

[0140] In step S91, a second repair instruction sent by the production line master control device is obtained.

[0141] Among them, the second repair instruction is used to instruct the second line control device to send a third repair instruction to the single-equipment resident device.

[0142] In step S92, based on the second repair instruction, a third repair instruction is sent to the single-equipment resident device.

[0143] Among them, the third repair instruction is used to instruct the single-equipment resident device to send a fifth instruction to the production device to update the system operation version of the single-equipment control device to a historical version.

[0144] In the embodiments of the present disclosure, after the line control obtains the repair instruction sent by the production line master control device, it sends a repair instruction to the single-equipment resident device, instructing the single-equipment resident device to update the software operation version of the single-equipment control device to a historical version.

[0145] Next, another production line control method will be explained.

[0146] Figure 10 It is a flowchart of a production line control method shown according to another exemplary embodiment. As Figure 10 shown, it includes the following steps.

[0147] In step S101, it is determined that the production device has a fault.

[0148] In step S102, in response to the repair instruction received by the management device, a repair operation is performed.

[0149] Among them, the repair instruction is sent by the production line master control device to the management device based on the production device fault information, and the production device fault information is generated by the management device based on the faulty production device.

[0150] In the embodiments of the present disclosure, after it is determined that the production device has a fault, the production device is restarted according to the instruction of the management device and runs in the historical version.

[0151] Next, a method for performing a repair operation in response to a repair instruction received by the management device will be explained.

[0152] Figure 11 It is a flowchart of a method for performing a repair operation in response to a repair instruction received by the management device shown according to an exemplary embodiment. As Figure 11 shown, it includes the following steps.

[0153] In step S111, obtain a second instruction sent by the by-wire permanent device.

[0154] Wherein, the second instruction is used to instruct the first by-wire device to perform a restart based on the system historical operation version.

[0155] In step S112, based on the second instruction, perform a restart based on the system historical operation version.

[0156] In the embodiments of the present disclosure, after receiving an instruction sent by the by-wire permanent device, the by-wire performs a restart operation and runs in the historical version.

[0157] Next, a method for performing a repair operation in response to a repair instruction received by a response management device will be explained.

[0158] Figure 12 is a flowchart of a method for performing a repair operation in response to a repair instruction received by a response management device shown according to another exemplary embodiment, as Figure 12 shown, and includes the following steps.

[0159] In step S121, obtain a fifth instruction sent by the single-equipment permanent device.

[0160] Wherein, the fifth instruction is used to instruct the single-equipment control device to perform a restart based on the system historical operation version, and the fifth instruction is sent by the single-equipment permanent device in response to obtaining a third repair instruction sent by the second by-wire device, and the third repair instruction is used to instruct the single-equipment permanent device to update the system operation version of the single-equipment control device to the historical version.

[0161] In step S122, based on the fifth instruction, perform a restart based on the system historical operation version.

[0162] In the embodiments of the present disclosure, after receiving an instruction sent by the single-equipment permanent device, the single-equipment control device performs a restart operation and runs in the historical version.

[0163] Next, a method for subsequent operations after restarting a production device will be explained.

[0164] Figure 13 is a flowchart of a method for subsequent operations after restarting a production device shown according to an exemplary embodiment, as Figure 13 shown, and includes the following steps.

[0165] In step S131, obtain the restart status of the production device.

[0166] In step S132, in response to the successful restart of the production device, perform a reset operation and a material clearing operation.

[0167] In the embodiments of the present disclosure, after the production equipment is restarted, a series of operations need to be performed, such as reset operation and material clearing operation.

[0168] The following explains a wired control offline processing strategy.

[0169] Figure 14 It is a schematic diagram of a wired control offline processing strategy shown according to an exemplary embodiment. Figure 14 In it, after the wired control runs for the first time, it detects whether there is a wired control resident device process. If not, it starts up the wired control resident device and establishes a communication link with the single equipment control device. The wired control marks the single equipment control device as the online state, and the single equipment control device sends a heartbeat command to the wired control regularly. The wired control resident device marks the wired control as the online state, and the wired control sends a heartbeat command to the wired control resident device regularly. The wired control resident device records the timestamp of the heartbeat command and checks through a timer whether the timestamp of the wired control is received within a specified time. If not, it marks the wired control as offline once. When the cumulative offline times of the wired control exceed N times, the wired control resident device marks the wired control as the offline state. During the offline period of the wired control, the single equipment control device enters the single equipment production mode and breaks away from the wired control. If the single equipment control device was previously in the running state, the single equipment enters the offline production mode and stores the data locally. If the single equipment control device was previously in the stopped state, the single equipment maintains the current state and continues to connect to the wired control scheduling command. Subsequently, the wired control resident device updates the wired control running software version to the historical version and instructs the wired control to restart. After the wired control restarts, the single equipment control device establishes a communication link with the wired control, and the wired control marks the single equipment control device as the online state. The single equipment control device sends a command to report the current equipment state to the wired control, the wired control updates the states of each equipment at the wired control end, and the single equipment control device sends a heartbeat command to the wired control regularly again.

[0170] In the embodiments of the present disclosure, a series of operations need to be performed on the communication protocol for establishing communication between the wired control resident device and the wired control, such as customization, packet encapsulation, packet decapsulation, encryption, and heartbeat detection, etc.

[0171] In the embodiments of the present disclosure, after the single equipment fails to establish communication with the wired control, it can enter the single equipment production mode and continue to execute the production action to ensure that the materials on the single equipment operation table can be normally processed. When the single equipment re - establishes a connection with the wired control, the single equipment can send a command to report the current equipment state to the wired control, and the wired control performs task scheduling according to the current equipment state to improve production efficiency.

[0172] The following explains a single equipment non - response strategy.

[0173] Figure 15 It is a schematic diagram of a single equipment non - response strategy shown according to an exemplary embodiment. Figure 15In this case, the line control establishes a communication link with the single-equipment resident device. After the single-equipment resident device wakes up and starts working, it activates the single-equipment control device. Subsequently, the single-equipment control device establishes a communication connection with the line control, and the line control marks the single-equipment control device as being in an online state. The single-equipment control device periodically sends heartbeat commands to the line control, and the line control checks the timestamps of the single equipment received on time within a specified period through a timer. Subsequently, the line control sends a command to the single-equipment control device to execute a production operation, but the single-equipment control device does not send a command indicating successful execution of the production operation to the line control. Subsequently, the line control sends a command to the single-equipment resident device to reactivate the single-equipment control device. The single-equipment resident device activates the single-equipment control device in the historical stable version, and the single-equipment control device restarts. After restarting, the single-equipment control device re-establishes communication with the line control and periodically sends heartbeat commands to the line control. The line control marks the single-equipment control device as being in an online state and sends an initialization command to the single-equipment control device. The single-equipment control device receives the initialization command, performs initialization operations such as homing / resetting, and sends a command indicating successful execution of the initialization operation to the line control. After detecting that the single-equipment control device has completed the initialization action, the line control sends a material clearing command to the single-equipment control device. The single-equipment control device receives the material clearing command, executes the material clearing mode, and sends a command indicating successful execution of the material clearing mode to the line control. After detecting that the single-equipment control device has completed the material clearing action, the line control marks the single equipment as being in a state where the material clearing mode has been successfully executed and sends a running mode command to the single-equipment control device. The single-equipment control device receives the running mode command, executes the normal production mode, and sends a command indicating that it is in the normal mode of operation to the line control. After detecting that the single-equipment control device is executing the normal production mode, the line control marks the single equipment as being in an operating state.

[0174] In the embodiments of the present disclosure, a series of operations need to be performed on the communication protocol for establishing communication between the single-equipment control device, the single-equipment resident device, and the line control, such as customization, packet encapsulation, packet decapsulation, encryption, and heartbeat detection.

[0175] In the embodiments of the present disclosure, the single-equipment resident device, the single-equipment control device, and the line control are linked through network communication. Among them, the underlying solution can be developed using frameworks such as the Internet Communications Engine (ICE) and Tars.

[0176] In the embodiments of the present disclosure, the reason for the line control to send an initialization command to the single-equipment control device is that the single-equipment control device may malfunction when performing a certain action. After the single-equipment fault is repaired, the single equipment cannot operate on the production line materials according to the original action posture and needs to return to its original position to operate on the materials.

[0177] In the embodiments of the present disclosure, the reason for the line control to send a material cleaning mode instruction to the single equipment control device is as follows: The single equipment control device may malfunction when performing a certain action, and at this time, the single equipment is still grasping materials. After the repair of the single equipment failure is completed, it is necessary to clean the materials grasped during the single equipment failure to ensure that the single equipment can grasp materials normally in the next operation.

[0178] The following explains a single equipment offline processing strategy.

[0179] Figure 16 It is a schematic diagram of a single equipment offline processing strategy shown according to an exemplary embodiment. Figure 16 In this, the line control establishes a communication link with the single equipment resident device. After the single equipment resident device wakes up and works, it pulls up the single equipment control device. Subsequently, the single equipment control device establishes a communication connection with the line control, and the line control marks the single equipment control device as the online state. The single equipment control device periodically sends a heartbeat instruction to the line control. The line control records the timestamp of the heartbeat instruction and checks through a timer whether the timestamp of the single equipment is received within a specified time. If not, it marks the single equipment as offline once. When the cumulative offline times of the single equipment control device exceed N times, the line control marks the single equipment as the offline state. Subsequently, the line control sends an instruction to the single equipment resident device to make the single equipment resident device pull up the single equipment control device again. The single equipment resident device pulls up the single equipment control device of the historical stable version, and the single equipment control device restarts. After restarting, the single equipment control device re - establishes communication with the line control and periodically sends a heartbeat instruction to the line control. The line control marks the single equipment control device as the online state and sends an initialization instruction to the single equipment control device. The single equipment control device receives the initialization instruction, performs initialization operations such as homing / resetting, and sends an instruction indicating successful execution of the initialization operation to the line control. After detecting that the single equipment control device has completed the initialization action, the line control sends a material cleaning instruction to the single equipment control device. The single equipment control device receives the material cleaning instruction, executes the material cleaning mode, and sends an instruction indicating successful execution of the material cleaning mode to the line control. After detecting that the single equipment control device has completed the material cleaning action, the line control marks the single equipment as the state where the material cleaning mode has been executed and sends an operation mode instruction to the single equipment control device. The single equipment control device receives the operation mode instruction, executes the normal production mode, and sends an instruction indicating that it is in the normal mode operation to the line control. After detecting that the single equipment control device is executing the normal production mode, the line control marks the single equipment as the running state.

[0180] In the embodiments of the present disclosure, a series of operations need to be performed on the communication protocol for establishing communication between the single equipment control device, the single equipment resident device, and the line control, such as customization, packet encapsulation, packet decapsulation, encryption, and heartbeat detection, etc.

[0181] In the embodiments of the present disclosure, the single-equipment resident device, the single-equipment control device, and the wire control are linked through network communication. Among them, frameworks such as the Internet Communications Engine (ICE) and Tars can be used to complete the development at the bottom layer of the solution.

[0182] In the embodiments of the present disclosure, the reason for the wire control to send an initialization instruction to the single-equipment control device is that the single-equipment control device may malfunction when performing a certain action. After the repair of the single-equipment failure, the single equipment cannot operate on the production line materials according to the original action posture, and needs to return to the original position to operate on the materials.

[0183] In the embodiments of the present disclosure, the reason for the wire control to send a material cleaning mode instruction to the single-equipment control device is that the single-equipment control device may malfunction when performing a certain action, and at this time the single equipment is still grasping materials. After the repair of the single-equipment failure, it is necessary to clean the materials grasped by the single equipment during the failure to ensure that the single equipment can normally grasp materials in the next operation.

[0184] Next, a method for the single-equipment resident device to pull up the single-equipment control device will be described.

[0185] Figure 17 A schematic diagram of a strategy for a single-equipment resident device to pull up a single-equipment control device shown according to an exemplary embodiment. Figure 17 In it, after the single-equipment resident device triggers the software restart mechanism, the single-equipment resident device needs to verify whether the process of the single-equipment control device is completely aborted, such as whether the single-equipment control device driver stops, etc. If the process is completely aborted, the single-equipment resident device restarts the single-equipment control device. If the process is not completely aborted, the background kills the process and then restarts the single-equipment control device. After the single-equipment control device is restarted, it is necessary to determine whether to enter the material cleaning mode, and the judgment basis is whether there is material detected by the sensors of the single-equipment control device and the production line. If there is no material on the production line or the single-equipment control device platform, the single-equipment control device performs an initialization operation to start the production operation. If an abnormality occurs during the execution of the production operation, an alarm needs to be issued for human intervention. If there is material on the production line or the single-equipment control device platform, the single-equipment control device enters the material cleaning mode. After the material cleaning mode is completed and there is no material, the single-equipment control device performs an initialization operation to start the production operation. If an abnormality occurs during the execution of the production operation, an alarm needs to be issued for human intervention; if there is still material after the material cleaning mode is completed, an alarm needs to be issued for human intervention.

[0186] It can be understood that the single equipment needs to have a complete system software inside to run. The software platform includes various processes to provide services. Next, a method for isolating the processes of the single-equipment software platform will be explained.

[0187] Figure 18 Schematic diagram of process isolation of a single-equipment software platform shown according to an exemplary embodiment. Figure 18 In it, the single equipment includes an automated software low-code platform. Inside the automated software low-code platform, there are a state machine (dll) and a process configuration module. Inside the process configuration module, there are multiple service programs, including a vision calibration client program, a vision positioning client program, a vision detection client program, a whole machine test client program, a main board test client program, a third-party component client state machine, and a motion control state machine. Among them, the multiple service programs inside the process configuration module use the Portable Common Object Model (PCOM) to interact with the state machine. During the operation of the automated software low-code platform of the single equipment, in the server inside the factory, there is also a set of microservices running. The microservices include a vision calibration server program, a vision positioning server program, a vision detection server program, a whole machine test server program, a main board test server program, and a third-party component server program. Each server program in the microservices and each client program with the same name in the process configuration module use a communication protocol such as Remote Procedure Call (RPC) for data interaction to generate a service process. Different service processes do not interfere with each other. For example, the vision positioning service process does not affect the data interaction of the vision detection service process.

[0188] In the related technology embodiments, each work station requires multiple operation processes for automated work. For traditional industrial software, these steps require several electrical / software developers who are familiar with the entire operation process / hardware wiring / Input / Output (IO) layout, etc. of the equipment, and then write software programs to complete the control of modules such as hardware robotic arms, axes, IO, motors, cameras, light sources, etc. Finally, they are verified / tested / produced on the machine. It can be understood that in the related technology, the operation logics of each equipment are different, so more developers are needed. The present disclosure uses an automated software platform tool, and only a small number of people, such as one person with preliminary experience and an understanding of the equipment operation logic, are required to complete the development. By adding the corresponding hardware models and modules in the platform, configuring the relevant hardware parameters, and at the same time editing the operation processes of each work station of the equipment, the verification / testing / production work can be completed quickly and efficiently. And after completing the process configuration of this equipment, it can be quickly / stably reused in other equipment, enabling the equipment of the entire line and factory to be quickly produced and replicated.

[0189] It can be understood that the single-equipment software platform is composed of a complex environment combination such as control + vision + testing + third-party components. In all stages such as development, debugging, production, and operation and maintenance, there are many unstable factors (interface exceptions, running crashes, freezes, line adjustments, etc.), resulting in various failures.

[0190] In the embodiments of the present disclosure, the microservices architecture is deployed on the server. When the server encounters an exception, a standby server and the automated software low-code platform in the single equipment can be enabled. Regardless of how the components operate, the platform itself will not experience an abnormal crash.

[0191] In the embodiments of the present disclosure, the automated software low-code platform enables the components to have independent memory spaces, and the entire platform will not be unable to run smoothly due to an exception in one component. Without changing the PCom access method, third-party components can achieve the fastest inter-process isolation. Inter-process isolation provides favorable conditions for further sinking of the subsequent platform operation layer and further floating of the editing layer.

[0192] The following explains a method for data interaction between a server program and a client program with the same name.

[0193] Figure 19 A schematic diagram showing data interaction between a server program and a client program with the same name according to an exemplary embodiment is as follows. Figure 19 As shown, the server program sends data to the client program, and the client program receives the data sent by the server program; the client program sends data to the server program, and the client program receives the data sent by the server program.

[0194] In the embodiments of the present disclosure, the server program and the client program receive and send data to each other, and more than one communication protocol can be used to transfer data to ensure stable reception and transmission of data.

[0195] The following describes an overall processing strategy for single-equipment control device or wire control failures.

[0196] Figure 20 A schematic diagram showing an overall processing strategy for single-equipment / wire control offline according to an exemplary embodiment is as follows. Figure 20As shown in the figure, the production line includes multiple pieces of equipment: single equipment 1, single equipment 2, and single equipment 3. Inside the single equipment, there are in-line control resident devices, in-line control, single equipment resident devices, and single equipment control devices. Among them, the single equipment control device has multiple stable versions, and the in-line control has multiple stable versions. The in-line control performs heartbeat detection on the single equipment control device. When the single equipment software platform accidentally drops the line abnormally, the in-line control end discovers that the single equipment times out and drops the line, and re-pulls the software platform for the single equipment resident device. When the single equipment software platform frequently drops the line abnormally, that is, when the software platform is repeatedly pulled up more than the set threshold within a short period of time, for example, 10 times, a warning is triggered, an emergency plan is started, and the historical stable version 2 is pulled. When a small number of equipment finds that the in-line control drops the line accidentally, for example, the single equipment finds that the in-line control connection times out and drops the line, the in-line control is re-pulled through the in-line control resident device, or only a single device has a short circuit, that is: the in-line control port connected to this equipment has an abnormality, and other ports are operating normally, then the in-line control program needs to be restarted. When a small number of equipment finds that the in-line control drops the line frequently, for example, the single equipment finds that the in-line control times out and drops the line, the standby stable version of the in-line control is pulled through the in-line control resident device, or the in-line control version code is abnormal (the in-line control crashes multiple times within a short period of time), then the standby stable version of the in-line control is pulled through the in-line control resident device.

[0197] Based on the same concept, the embodiment of the present disclosure also provides a production line control device.

[0198] It can be understood that, in order to implement the above functions, the production line control device provided by the embodiment of the present disclosure includes the corresponding hardware structure and / or software module for executing each function. Combining the units and algorithm steps of the various examples disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0199] Figure 21 It is a block diagram of a control device for discrete manufacturing shown according to an exemplary embodiment. Referring to Figure 21 , the control device 100 for discrete manufacturing includes a receiving unit 101 and a processing unit 102.

[0200] The receiving unit 101 is used to obtain the production equipment failure information sent by the management device.

[0201] The processing unit 102 is used to send a repair instruction to the management device based on the obtained failure information, and the repair instruction is used to instruct the management device to repair the production equipment.

[0202] In an embodiment of the present disclosure, the receiving unit 101 is configured to, in response to obtaining first fault information sent by a wire-controlled permanent device, display the first fault information on the display interface of the production line master control device, where the first fault information indicates that the wire-controlled device has an offline fault; or in response to obtaining second fault information sent by the wire-controlled device, display the second fault information on the display interface of the production line master control device, where the second fault information indicates that the single-equipment control device has an offline fault or an unresponsive fault.

[0203] In an embodiment of the present disclosure, the processing unit 102 is configured to, if the fault information is the first fault information, send a first repair instruction to the wire-controlled permanent device, where the first repair instruction is used to instruct the wire-controlled permanent device to update the system operation version of the wire-controlled device to a historical version; or if the fault information is the third fault information, send a second repair instruction to the wire-controlled device, where the third fault information indicates that the single-equipment control device has an unresponsive fault, and the second repair instruction is used to instruct the wire-controlled device to send a third repair instruction to the single-equipment permanent device, where the single-equipment permanent device is used to control the single-equipment control device, and the third repair instruction is used to instruct the single-equipment permanent device to update the system operation version of the single-equipment control device to a historical version; or if the fault information is the fourth fault information, send a second repair instruction to the wire-controlled device, where the fourth fault information indicates that the single-equipment control device has an offline fault; the third fault information and the fourth fault information are subsets of the second fault information.

[0204] Figure 22 is a block diagram of a control device for discrete manufacturing shown according to an exemplary embodiment. Refer to Figure 22 , the control device 300 for discrete manufacturing includes a sending unit 301 and a processing unit 302.

[0205] The sending unit 301 is configured to, in response to determining that there is a production device with a fault, generate production device fault information and send the production device fault information to the production line master control device.

[0206] The processing unit 302 is configured to obtain a repair instruction sent by the production line master control device based on the production device fault information and repair the production device based on the repair instruction.

[0207] In an embodiment of the present disclosure, the sending unit 301 is configured to, in response to the wire-controlled permanent device being in a startup state, periodically obtain an operation status instruction sent by the wire-controlled device; in response to not obtaining the operation status instruction sent by the wire-controlled device within a first period of time, determine that the wire-controlled device has an offline fault, generate first fault information, and send the first fault information to the production line master control device, where the first fault information indicates that the wire-controlled device has an offline fault.

[0208] In an embodiment of the present disclosure, the sending unit 301 is configured to start the wired control resident device if the wired control resident device is in an unstarted state and a first instruction sent by the wired control device is received, where the first instruction is used to instruct the wired control resident device to start running.

[0209] In an embodiment of the present disclosure, the processing unit 302 is configured to obtain a first repair instruction sent by the production line master control device, where the first repair instruction is used to instruct the wired control resident device to update the system running version of the wired control device to a historical version; based on the first repair instruction, update the system running version of the wired control device to the historical version; and send a second instruction to the wired control device, where the second instruction is used to instruct the wired control device to perform a restart based on the system historical running version.

[0210] In an embodiment of the present disclosure, the sending unit 301 is configured to periodically obtain an operation status instruction sent by a single equipment control device; in response to obtaining the operation status instruction sent by the single equipment control device within a second time period, send a third instruction to the single equipment control device and obtain a fourth instruction sent by the single equipment control device, but if the fourth instruction is not obtained within a third time period, determine that the single equipment control device has a non-response fault, generate a third fault message, and send the third fault message to the production line master control device; where the third instruction is used to instruct the single equipment control device to perform a production operation, the fourth instruction represents that the single equipment control device is in a normal production state, and the third fault message represents that the single equipment control device has a non-response fault; or in response to not obtaining the operation status instruction sent by the single equipment control device within the second time period, determine that the single equipment control device has an offline fault, generate a fourth fault message, and send the fourth fault message to the production line master control device, where the fourth fault message represents that the single equipment control device has an offline fault.

[0211] In an embodiment of the present disclosure, the processing unit 302 is configured to obtain a second repair instruction sent by the production line master control device, where the second repair instruction is used to instruct the wired control device to send a third repair instruction to the single equipment resident device; based on the second repair instruction, send the third repair instruction to the single equipment resident device, where the third repair instruction is used to instruct the single equipment resident device to send a fifth instruction to the production equipment to update the system running version of the single equipment control device to a historical version.

[0212] Figure 23 is a block diagram of a control device for discrete manufacturing shown according to an exemplary embodiment. Refer to Figure 23 , the control device 400 for discrete manufacturing includes a detection unit 401 and an execution unit 402.

[0213] The detection unit 401 is used to determine that a production device has a fault.

[0214] An execution unit 402, configured to perform a repair operation in response to a repair instruction received by a management device, where the repair instruction is sent by a production line master device to the management device based on production equipment fault information, and the production equipment fault information is generated by the management device based on a faulty production equipment.

[0215] In an embodiment of the present disclosure, the execution unit 402 is configured to obtain a second instruction sent by a line control resident device, where the second instruction is used to instruct a line control device to perform a restart based on a system historical operation version; and based on the second instruction, perform a restart based on the system historical operation version.

[0216] In an embodiment of the present disclosure, the execution unit 402 is configured to obtain a fifth instruction sent by a single equipment resident device, where the fifth instruction is used to instruct a single equipment control device to perform a restart based on a system historical operation version, and the fifth instruction is sent by the single equipment resident device in response to obtaining a third repair instruction sent by the line control device, and the third repair instruction is used to instruct the single equipment resident device to update the system operation version of the single equipment control device to a historical version; and based on the sixth instruction, perform a restart based on the system historical operation version.

[0217] In an embodiment of the present disclosure, the execution unit 402 is configured to adopt at least one of the following methods: a reset operation and a material clearing operation.

[0218] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0219] Figure 24 It is a block diagram of a device 200 for production line control shown according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0220] Referring to Figure 24 , the device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216.

[0221] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.

[0222] The memory 204 is configured to store various types of data to support the operation of the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disks, or optical disks.

[0223] The power component 206 provides power to various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0224] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input instructions from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0225] The audio component 210 is configured to output and / or input audio instructions. For example, the audio component 210 includes a microphone (MIC), which is configured to receive external audio instructions when the device 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio instructions can be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio instructions.

[0226] The I / O interface 212 provides an interface between the processing component 202 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.

[0227] The sensor component 214 includes one or more sensors for providing an assessment of the status of the device 200 in various aspects. For example, the sensor component 214 can detect the on / off state of the device 200, the relative positioning of components, such as the display and keypad of the device 200. The sensor component 214 can also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and the temperature change of the device 200. The sensor component 214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 214 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 214 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0228] The communication component 216 is configured to facilitate communication between the device 200 and other devices in a wired or wireless manner. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives broadcast instructions or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0229] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0230] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 204 including instructions, and the above instructions can be executed by the processor 220 of the apparatus 200 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0231] It can be understood that "a plurality of" in the present disclosure means two or more, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The singular forms of "a", "the", and "said" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0232] It can be further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and do not represent a specific order or importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0233] It can be further understood that unless otherwise specified, "connection" includes direct connection between two components without other components therebetween, and also includes indirect connection between two components with other elements therebetween.

[0234] It can be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring all the operations shown to obtain the desired result. In a specific environment, multitasking and parallel processing may be advantageous.

[0235] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed herein.

[0236] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A production line control method, characterized in that, applied to the main control device of the production line, including: Obtain the production equipment failure information sent by the management device; Based on the obtained failure information, send a repair instruction to the management device, and the repair instruction is used to instruct the management device to repair the production equipment.

2. The method according to claim 1, characterized in that, when the production equipment is the first line control device, the management device is the line control resident device; when the production equipment is a single equipment control device, the management device is the second line control device, and the line control resident device is used to control the first line control device; wherein, the second line control device is used to control a production line including multiple single equipments, and the single equipment control device is used to control a single equipment in the production line; after obtaining the production equipment failure information sent by the management device, the method further includes: in response to obtaining the first failure information sent by the line control resident device, display the first failure information on the display interface of the production line main control device, and the first failure information characterizes that the first line control device has an offline failure; or in response to obtaining the second failure information sent by the second line control device, display the second failure information on the display interface of the production line main control device, and the second failure information characterizes that the single equipment control device has an offline failure or no response failure; wherein, the first line control device is a faulty line control device, and the second line control device is a normal line control device.

3. The method according to claim 1 or 2, characterized in that, the step of sending a repair instruction to the management device based on the obtained failure information includes: if the failure information is the first failure information, send a first repair instruction to the line control resident device, and the first repair instruction is used to instruct the line control resident device to update the system operation version of the first line control device to the historical version; or if the failure information is the third failure information, send a second repair instruction to the second line control device, the third failure information characterizes that the single equipment control device has no response failure, and the second repair instruction is used to instruct the second line control device to send a third repair instruction to the single equipment resident device, and the single equipment resident device is used to control the single equipment control device, and the third repair instruction is used to instruct the single equipment resident device to update the system operation version of the single equipment control device to the historical version; or if the failure information is the fourth failure information, send a second repair instruction to the second line control device, and the fourth failure information characterizes that the single equipment control device has an offline failure; the third failure information and the fourth failure information are subsets of the second failure information.

4. A production line control method, characterized in that, applied to the management device, including: in response to determining that there is a faulty production equipment, generate production equipment failure information and send the production equipment failure information to the production line main control device; obtain the repair instruction sent by the production line main control device based on the production equipment failure information, and repair the production equipment based on the repair instruction.

5. The method according to claim 4, wherein, the management device is a wired control resident device, and the production device with a fault is the first wired control device; wherein, the wired control resident device is used to control the first wired control device; the determination of the existence of a faulty production device, generating production device fault information, and sending the production device fault information to the production line master control device includes: in response to the wired control resident device being in a startup state, periodically obtaining the operation status instruction sent by the first wired control device; in response to not obtaining the operation status instruction sent by the first wired control device within a first period of time, determining that the first wired control device has an offline fault, generating first fault information, and sending the first fault information to the production line master control device, where the first fault information characterizes that the first wired control device has an offline fault.

6. The method according to claim 5, wherein, the method further includes: if the wired control resident device is in an unstarted state and receives a first instruction sent by a second wired control device, starting the wired control resident device, where the first instruction is used to instruct the wired control resident device to start running.

7. The method according to claim 4, wherein, repairing the production device based on the repair instruction includes: obtaining a first repair instruction sent by the production line master control device, where the first repair instruction is used to instruct the wired control resident device to update the system operation version of the first wired control device to a historical version; based on the first repair instruction, updating the system operation version of the first wired control device to a historical version; sending a second instruction to the first wired control device, where the second instruction is used to instruct the first wired control device to perform a restart based on the system historical operation version.

8. The method according to claim 4, wherein, the management device is a second wired control device, and the faulty device is a single equipment control device: wherein, the second wired control device is used to control a production line including multiple single equipments, and the single equipment control device is used to control a single equipment in the production line; the determination of the existence of a faulty production device, generating production device fault information, and sending the production device fault information to the production line master control device includes: periodically obtaining the operation status instruction sent by the single equipment control device; in response to obtaining the operation status instruction sent by the single equipment control device within a second period of time, sending a third instruction to the single equipment control device and obtaining a fourth instruction sent by the single equipment control device, but not obtaining the fourth instruction within a third period of time, determining that the single equipment control device has a non-response fault, generating third fault information, and sending the third fault information to the production line master control device; wherein, the third instruction is used to instruct the single equipment control device to perform a production operation, the fourth instruction characterizes that the single equipment control device is in a normal production state, and the third fault information characterizes that the single equipment control device has a non-response fault; or In response to the failure to obtain the operation status instruction sent by the single equipment control device within the second time period, it is determined that the single equipment control device has an offline fault, a fourth fault message is generated, and the fourth fault message is sent to the production line master control device, where the fourth fault message indicates that the single equipment control device has an offline fault.

9. The method according to claim 4, wherein, repairing the production equipment based on the repair instruction includes: obtaining a second repair instruction sent by the production line master control device, where the second repair instruction is used to instruct the second line control device to send a third repair instruction to the single equipment resident device; based on the second repair instruction, sending a third repair instruction to the single equipment resident device, where the third repair instruction is used to instruct the single equipment resident device to send a fifth instruction to the production equipment to update the system operation version of the single equipment control device to a historical version.

10. A production line control method, wherein, applied to a production equipment, includes: determining that the production equipment has a fault; responding to a repair instruction received by a management device and performing a repair operation, where the repair instruction is sent by the production line master control device to the management device based on production equipment fault information, and the production equipment fault information is generated by the management device based on the faulty production equipment.

11. The method according to claim 10, wherein, the management device is a line control resident device, and the production equipment is a first line control device; wherein, the line control resident device is used to control the first line control device; responding to a repair instruction received by the management device and performing a repair operation includes: obtaining a second instruction sent by the line control resident device, where the second instruction is used to instruct the first line control device to perform a restart based on the system historical operation version; based on the second instruction, performing a restart based on the system historical operation version.

12. The method according to claim 10, wherein, the management device is a second line control device, and the production equipment is a single equipment control device; wherein, the second line control device is used to control a production line including multiple single equipments, and the single equipment control device is used to control a single equipment in the production line; responding to a repair instruction received by the management device and performing a repair operation includes: obtaining a fifth instruction sent by the single equipment resident device, where the fifth instruction is used to instruct the single equipment control device to perform a restart based on the system historical operation version, and the fifth instruction is sent by the single equipment resident device in response to obtaining a third repair instruction sent by the second line control device, and the third repair instruction is used to instruct the single equipment resident device to update the system operation version of the single equipment control device to a historical version; based on the fifth instruction, performing a restart based on the system historical operation version.

13. The method according to claim 12, wherein, the method further includes: in response to the successful restart of the production equipment, performing at least one of the following operations: a reset operation and a material clearing operation.

14. A production line control device, wherein, applied to a production line master control device, includes: A receiving unit, configured to obtain production equipment fault information sent by a management device; A processing unit, configured to send a repair instruction to the management device based on the obtained fault information, where the repair instruction is used to instruct the management device to repair the production equipment.

15. A production line control device, characterized in that it is applied to a management device and includes: A sending unit, configured to generate production equipment fault information in response to determining that there is a faulty production equipment, and send the production equipment fault information to a production line master control device; A processing unit, configured to obtain a repair instruction sent by the production line master control device based on the production equipment fault information, and repair the production equipment based on the repair instruction.

16. A production line control device, characterized in that it is applied to production equipment and includes: A detection unit, configured to determine that the production equipment has a fault; An execution unit, configured to perform a repair operation in response to a repair instruction received by the management device, where the repair instruction is sent by the production line master control device to the management device based on production equipment fault information, and the production equipment fault information is generated by the management device based on the faulty production equipment.

17. A production line control device, characterized in that it includes: A processor; A memory for storing processor-executable instructions; wherein, the processor is configured to: execute the production line control method according to any one of claims 1-3 or 4-9 or 10-13.

18. A storage medium, characterized in that instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the production line control method according to any one of claims 1-3 or 4-9 or 10-13.