Program debugging method and system, computer equipment, storage medium and program product

By introducing data request and feedback interfaces into the manufacturing execution system, data transmission and verification between the upper computer and the manufacturing execution system is realized, the challenge of offline debugging of MES in the prior art is solved, and an efficient and systematic debugging process is realized, which improves debugging efficiency and production quality.

CN119576748AInactive Publication Date: 2025-03-07CONTEMPORARY AMPEREX TECHNOLOGY CO LTD +1

Patent Information

Application Number
CN202510141227.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-08
Publication Date
2025-03-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology lacks an efficient and systematic offline debugging solution that can fully simulate the actual production environment, and it is difficult to effectively solve the debugging challenges of MES in the precision manufacturing process of battery production.

Method used

By introducing data request and feedback interfaces into the manufacturing execution system, data transmission and verification between the host computer and the manufacturing execution system are realized. The specific steps include receiving a verification request from the upper computer, verifying the production data based on the process logic, and executing the process logic to generate the execution result after passing, and finally feedback the result to the upper computer.

Benefits of technology

It realizes simulation and verification of process logic in an offline environment, can quickly discover and correct potential problems, improve debugging flexibility and efficiency, and avoid production interruptions and quality problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576748A_ABST
    Figure CN119576748A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a program debugging method and system, computer equipment, a storage medium and a program product, and belongs to the technical field of production and manufacturing. The method comprises the following steps: receiving a verification request generated by an upper computer by calling a data request interface matched with a current process, wherein the verification request comprises production data and request parameters; performing data verification on the production data based on the process logic of the current process; under the condition that the data verification is passed, executing process logic based on the request parameter to obtain a process execution result corresponding to the current process; and updating the request parameter based on the process execution result, and feeding back the process execution result to an upper computer through a data feedback interface so as to debug a production program corresponding to the current process. According to the embodiment of the invention, the production data and the service logic are verified in an offline environment, potential problems can be quickly found and corrected on the premise of not interfering actual production, and the debugging flexibility and the debugging efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of production and manufacturing technology, and more specifically, to a program debugging method, system, computer equipment, storage medium and program product. Background Art

[0002] MES (Manufacturing Execution System) is a comprehensive information system used to manage and control the production process. It is located between the enterprise's resource planning system and the workshop control system, and is responsible for coordinating production scheduling, resource management and workshop operations.

[0003] Offline debugging refers to the process of debugging, testing and verifying the system through simulation or virtual methods before it is put into operation in the actual production environment. The goal of offline debugging is to identify and solve potential problems in advance, optimize system design and configuration, and avoid unnecessary failures or inefficiencies in the actual production process. In the precision manufacturing process of battery production, due to the strict requirements of MES for production process management, its high degree of integration and real-time characteristics often make traditional offline debugging methods face challenges.

[0004] In the relevant technologies, there is still a lack of an efficient and systematic MES offline debugging solution that can fully simulate the actual production environment. Summary of the invention

[0005] The present invention provides a program debugging method, system, computer equipment and storage medium to improve the flexibility, accuracy and efficiency of off-line debugging.

[0006] In a first aspect, an embodiment of the present invention provides a program debugging method, which is applied to a manufacturing execution system, wherein the manufacturing execution system is used to execute a production task and is provided with a data request interface and a data feedback interface matching each process in the production task; the method comprises: Receiving a verification request generated by a host computer by calling a data request interface matching the current process, wherein the verification request includes production data and request parameters corresponding to the current process; Performing data verification on the production data based on the process logic of the current process; If the data verification passes, the process logic is executed based on the request parameters to obtain a process execution result corresponding to the current process; The request parameter is updated based on the process execution result, and the process execution result is fed back to the host computer through the data feedback interface so as to debug the production program corresponding to the current process.

[0007] In the above technical scheme, by receiving the verification request generated by the host computer calling the data request interface matching the current process, and performing a series of verification operations, the execution result is fed back to the host computer through the data feedback interface, thereby simulating the real factory manufacturing execution system interface, the data sent by the host computer can be fully and accurately verified to ensure that the format, content and operation logic of the data meet the requirements of the factory manufacturing execution system, which not only avoids production interruptions or quality problems caused by data transmission errors in the actual production environment, but also improves the accuracy and efficiency of data transmission. Specifically, the manufacturing execution system first verifies the production data based on the process logic of the current process, and can check whether the data meets the specific production requirements, so that the data meets the requirements of the interface document; then, if the data verification passes, the process logic is executed based on the request parameters to obtain the process execution result corresponding to the current process, thereby returning the process execution result to the host computer, and through the simulation and verification of data transmission, the production program can be more comprehensively verified and optimized, and the process logic can be simulated and verified in an offline environment, which can quickly discover and correct potential problems without interfering with actual production, greatly improving the flexibility and efficiency of debugging.

[0008] In some embodiments, the performing data verification on the production data based on the process logic of the process includes: Determine multiple data verification conditions that match the current process; Verifying the production data based on the multiple data verification conditions, and determining that the data verification passes if the production data satisfies all the data verification conditions; In the case that the production data does not satisfy any data verification condition, an error message is generated and returned to the host computer; the error message includes at least an error code and an error description.

[0009] In the above embodiment, by performing multi-angle and comprehensive verification of production data based on multiple data verification conditions set for the current process, the probability of production errors and quality problems caused by data inconsistencies can be reduced, and the stability of the production line and the consistency of the data can be effectively improved.

[0010] In some embodiments, each process corresponds to a production device and a workstation; executing the process logic based on the request parameters to obtain a process execution result corresponding to the current process includes: Based on the request parameters, respectively determine the equipment execution logic corresponding to the production equipment and the station transfer logic corresponding to the workstation machine in the current process; Instructing the workstation in the current process to execute the corresponding station-passing logic and obtain the station-passing execution result; Instructing the production equipment in the current process to execute corresponding equipment execution logic to obtain equipment execution results; Based on the station-by-station execution result and the equipment execution result, a process execution result corresponding to the current process is obtained.

[0011] In the above embodiment, by respectively determining the equipment execution logic and the station transfer logic, the specific operations of the production equipment and the workstation machine in the current process are clarified, the correctness of the logic of each process in the production task can be fully verified, and the generated process execution results can be used to monitor the production progress in real time, while providing detailed data support for production traceability and quality management.

[0012] In a second aspect, an embodiment of the present invention provides a program debugging method, which is applied to a host computer, wherein the host computer communicates with a manufacturing execution system through a data request interface and a data feedback interface, wherein the manufacturing execution system is used to execute a production task, and each process in the production task has a matching relationship with the data request interface and the data feedback interface; the method comprises: Calling a data request interface that matches the current process to obtain production data and request parameters, and generating a verification request based on the production data and request parameters; Sending the verification request to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to perform production program verification based on the verification request and generate a process execution result corresponding to the current process; the production program verification at least includes data verification and execution of process logic of the current process; receiving the process execution result returned by the manufacturing execution system through the data feedback request; Based on the process execution result, the production program corresponding to the current process is debugged.

[0013] In the above technical solution, by calling the data request interface matching the current process to obtain the production data and request parameters, and generating a verification request based on the production data and request parameters, the production data and production logic can be verified through the offline manufacturing execution system; the verification request is sent to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to verify the production program based on the verification request, and generate a process execution result corresponding to the current process. By simulating the real factory manufacturing execution system interface, the data sent by the host computer can be fully and accurately verified to ensure that the format, content and operation logic of the data meet the requirements of the factory manufacturing execution system, which not only avoids production interruptions or quality problems caused by data transmission errors in the actual production environment, but also improves the accuracy and efficiency of data transmission; further, the process execution result returned by the manufacturing execution system through the data feedback request is received, and the production program corresponding to the current process is debugged based on the process execution result, so that the production program can be more comprehensively verified and optimized, and the process logic can be simulated and verified in an offline environment. Potential problems can be quickly discovered and corrected without interfering with actual production, which greatly improves the flexibility and efficiency of debugging.

[0014] In a third aspect, the present invention provides a program debugging system, comprising a manufacturing execution system and a host computer, wherein the manufacturing execution system is used to execute and implement the program debugging method as described in the first aspect, and the host computer is used to execute and implement the program debugging method as described in the second aspect.

[0015] In a fourth aspect, an embodiment of the present invention provides a program debugging device, which is applied to a manufacturing execution system, wherein the manufacturing execution system is used to execute a production task and is provided with a data request interface and a data feedback interface matching each process in the production task; the device comprises: A first receiving module is used to receive a verification request generated by a host computer by calling a data request interface matching the current process, wherein the verification request includes production data and request parameters corresponding to the current process; A verification module, used for performing data verification on the production data based on the process logic of the current process; The verification module is further configured to execute the process logic based on the request parameters to obtain a process execution result corresponding to the current process if the data verification passes; A feedback module is used to update the request parameter based on the process execution result, and feed back the process execution result to the host computer through the data feedback interface so as to debug the production program corresponding to the current process.

[0016] In a fifth aspect, an embodiment of the present invention provides a program debugging device, which is applied to a host computer, wherein the host computer communicates with a manufacturing execution system through a data request interface and a data feedback interface, wherein the manufacturing execution system is used to execute a production task, and each process in the production task has a matching relationship with the data request interface and the data feedback interface; the device comprises: A request module, used to call a data request interface matching the current process to obtain production data and request parameters, and generate a verification request based on the production data and request parameters; a sending module, configured to send the verification request to the manufacturing execution system through the data request interface, so as to instruct the manufacturing execution system to perform a production program verification based on the verification request and generate a process execution result corresponding to the current process; the production program verification at least includes data verification and execution of the process logic of the current process; A second receiving module, configured to receive the process execution result returned by the manufacturing execution system through the data feedback request; The debugging module is used to debug the production program corresponding to the current process based on the process execution result.

[0017] In a sixth aspect, the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the program debugging method as described in the first or second aspect above is implemented.

[0018] In a seventh aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the program debugging method as described in the first aspect or the second aspect above.

[0019] In an eighth aspect, the present invention provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the program debugging method as described in the first or second aspect above.

[0020] In a ninth aspect, the present invention provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the program debugging method as described in the first aspect or the second aspect above is implemented.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A schematic diagram of an application scenario of a program debugging method provided by some embodiments of the present invention; Figure 2 A flowchart of a program debugging method provided by some embodiments of the present invention; Figure 3 A schematic diagram of the overall flow of the offline debugging method provided by some embodiments of the present invention; Figure 4 A schematic diagram of the flow of the inbound logic provided by some embodiments of the present invention; Figure 5 A flowchart of outbound logic provided for some embodiments of the present invention; Figure 6 A schematic diagram of a front-end interface provided by some embodiments of the present invention; Figure 7 Schematic diagram of the front-end interface provided for other embodiments of the present invention; Figure 8 A flowchart of a program debugging method provided by other embodiments of the present invention; Fig. 9 A schematic diagram of the structure of a program debugging device provided in some embodiments of the present invention; Fig.10 A schematic diagram of the structure of a program debugging device provided in some other embodiments of the present invention; Fig.11 A schematic diagram of the structure of a computer device provided for some embodiments of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by technicians in the technical field of the present invention; the terms used in the specification of the present invention in the application are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order or a primary and secondary relationship.

[0026] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in the present invention may be combined with other embodiments.

[0027] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "attached" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0028] The term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.

[0029] The term "plurality" used in the present invention refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple sheets" refers to more than two sheets (including two sheets).

[0030] In manufacturing execution systems, the management and control of production processes usually involve complex data interactions and operational logic verification. Traditional debugging methods often need to be carried out in the actual production environment, which may not only cause production interruptions, but also increase the cost and risk of the debugging process. In order to avoid these problems, offline debugging methods have emerged, which can verify and debug production data and production process logic without interfering with actual production.

[0031] In view of this, an embodiment of the present invention provides a program debugging method, which can simulate and verify the data transmission process between the host computer and the manufacturing execution system by simulating the actual production environment, and verify the production data and production process flow. It can simulate and verify data transmission without interfering with actual production, which greatly reduces the debugging cost, shortens the project cycle, and improves the debugging efficiency.

[0032] The program debugging method provided in the embodiment of the present invention is applicable to a program debugging system. At the logical architecture level, the debugging system adopts a layered architecture design, which mainly includes a front-end interface layer, a business logic layer, and a data storage layer. The front-end interface layer is responsible for displaying production data and transmission data in real time, and providing an interactive interface for developers or technicians; the business logic layer is responsible for processing data transmission requests between the host computer and the manufacturing execution system, including data format screening, content verification, and error feedback; the data storage layer is responsible for storing simulated production data and transmission data, and providing support for subsequent data analysis and optimization.

[0033] In terms of specific implementation, the debugging system includes a host computer and a manufacturing execution system. The manufacturing execution system is used to execute production tasks and is provided with a data request interface and a data feedback interface that match each process in the production task.

[0034] The production task refers to a set of specific processes defined in the manufacturing process to achieve the product production goal. Production tasks can be, for example, automobile parts production tasks, battery production tasks, etc.

[0035] The host computer is responsible for obtaining the production data and request parameters that match each process in the production task, and generating verification requests based on these data. The manufacturing execution system receives these verification requests and performs data verification on the production data based on the process logic of the current process. If the data verification passes, the process logic is executed based on the request parameters to obtain the process execution result corresponding to the current process, and then the request parameters are updated based on the process execution result, and the process execution result is fed back to the host computer through the data feedback interface for debugging the production program corresponding to the current process.

[0036] For example, during the battery production process, the host computer will call the data request interface configured by the manufacturing execution system to obtain specific production data (such as production work orders, equipment status, etc.) and current request parameters (such as current production progress, equipment operating status, etc.) from the manufacturing execution system, generate a verification request and send it to the manufacturing execution system.

[0037] After receiving the request, the manufacturing execution system first verifies the production data, such as checking whether the product model in the production work order matches the equipment model and whether it meets the production requirements. If the data verification passes, the manufacturing execution system simulates the process logic of each process in the production task according to the current request parameters. For example, the manufacturing execution system may simulate the change of the status of the production line station in the battery assembly business and generate the execution result. Finally, the manufacturing execution system feeds back the execution result (such as the current status of the product, the parameters set for the production equipment, etc.) to the host computer. Based on these results, the host computer can debug the manufacturing execution system.

[0038] Therefore, the offline debugging system of the manufacturing execution system provided by the embodiment of the present invention verifies and debugs the production process logic without interfering with production by simulating the real production process, thereby effectively avoiding production interruptions and risks; through data verification and simulation of production process logic execution, the debugging system can quickly detect potential errors and perform effective verification without actual production operations, thereby greatly improving debugging efficiency, improving the accuracy of production process logic, and greatly reducing debugging costs and shortening project cycles.

[0039] The program debugging method and system provided by the embodiments of the present invention can be applied to precision manufacturing fields such as battery production and semiconductor manufacturing, and can also be widely used in other manufacturing industries, such as the production and manufacturing fields of automobiles, home appliances, electronic products, medical devices, etc., and have broad market prospects and application value.

[0040] The program debugging method and the like provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0041] The program debugging method provided by the embodiment of the present invention can be applied in Figure 1 In the application environment shown. Among them, the manufacturing execution system 10 is connected to the host computer 20 for communication, and the host computer 20 is connected to the PLC (i.e., production equipment) 30 for communication. In the actual production environment, the host computer can be a host computer at each station on the production line. In the offline debugging environment, the host computer may not be a device at a real station, but may also be a host computer or a host computer system to simulate the production environment. Data is transmitted between the manufacturing execution system 10 and the host computer 20 through a data request interface and a data feedback interface.

[0042] Data transmission verification is one of the core functions of offline debugging of the manufacturing execution system. In order to ensure the accuracy of data transmission, a set of data verification process is designed in the embodiment of the present invention, including two stages: basic data verification and function verification. The overall debugging process is as follows: Figure 2As shown. In summary, the host computer communicates with the production equipment (PLC) and collects relevant data of the production equipment, such as equipment parameters. At the same time, the production equipment performs corresponding production operations based on the relevant data input by the host computer, such as performing gluing operations according to the amount of glue transmitted by the host computer, etc. The amount of glue can be obtained from the manufacturing execution system by calling the data request interface of the host computer. The host computer can send request data (including production data and request parameters, etc.) to the manufacturing execution system through the data request interface to request verification. The manufacturing execution system first performs a preliminary verification to verify the basic attributes of the data, such as whether the required data is correct, whether the data format is correct, etc., and then performs a process logic verification based on the process logic corresponding to each interface, and finally feedbacks the request result to the host computer through the data feedback interface. In this way, the overall debugging process is realized.

[0043] Exemplarily, both the data request interface and the data feedback interface are interfaces based on the WebService technology framework, namely, the MES-WebService interface, to achieve efficient data transmission. The WebService technology framework is a technology framework for interconnection between different applications or systems, mainly based on standard Internet protocols (such as HTTP, SOAP, REST, etc.) for communication. The WebService technology framework allows applications on different platforms, languages, and operating systems to exchange and interact with data through standardized interfaces.

[0044] The program debugging method provided by the embodiment of the present invention is executed by a manufacturing execution system, which can be a functional module or functional entity in the manufacturing execution system that can implement the program debugging method. The program debugging method provided by the embodiment of the present invention is described below by taking the manufacturing execution system as an example of the execution subject.

[0045] like Figure 3 As shown, the program debugging method includes: steps 310 to 340.

[0046] Step 310: Receive a verification request generated by the host computer by calling a data request interface matching the current process, wherein the verification request includes production data and request parameters corresponding to the current process.

[0047] Among them, the current process refers to the specific operation that the manufacturing execution system is processing at a certain moment in the execution of the production task, such as gluing on the battery production line, low-voltage assembly and other production operations or tasks. The data request interface that matches the current process means that the data and interface requested when the host computer sends a data request should be consistent with the logic of the specific process being executed. For example, if the current business is quality inspection, the host computer may request a quality inspection data interface to obtain information such as quality parameters and test results. The interface parameters and corresponding data formats of different interfaces may be different.

[0048] Taking the battery production process as an example, in the process of obtaining the module code, the host computer obtains the production data and request parameters corresponding to the current product (such as the battery module) by calling the module code acquisition interface of the manufacturing execution system. Among them, the module code is a code used to uniquely identify each battery module, which is used to trace the quality information in the production process, including the battery cell batch, parameter records in the module assembly process, etc., usually a QR code or a barcode. The module code can be associated with one or more of the battery production date, production line number, module serial number, battery cell batch number, and specification parameters. The request parameters include, for example, one or more of the production line progress status (such as currently in the queue, in the process of processing) and equipment parameters. The host computer packages these data into a verification request and sends it to the manufacturing execution system. The manufacturing execution system receives the verification request from the host computer, which carries the production data and request parameters related to the current process.

[0049] For example, the host computer sends the data to the manufacturing execution system through a standard communication protocol. The manufacturing execution system receives the data through a data request interface and prepares for the subsequent verification process.

[0050] Step 320: Verify the production data based on the process logic of the current process.

[0051] The manufacturing execution system performs data verification on the received production data according to the process logic of the current process. The content of data verification may include checking the format, integrity and compliance of the production data with the data logic.

[0052] Data verification includes two levels of inspection. On the one hand, the basic attributes of the data are checked, including but not limited to data format, required items, etc. The data format includes data type, field length, encoding rules, etc. For example, the manufacturing execution system checks whether the product number in the production work order conforms to the specified format, whether the production quantity is a positive integer, etc.

[0053] On the other hand, the logical rationality of the production data is verified to ensure that the production data conforms to the actual production environment. For example, the manufacturing execution system verifies whether the number of products produced in a production order exceeds the preset quantity threshold to determine whether the number of products exceeds the maximum production capacity of the production line, etc. If the logic of the production data is unreasonable, the manufacturing execution system will generate an error message and feedback it to the host computer.

[0054] Therefore, through the data verification process, it is possible to check whether all data meets the predetermined production requirements and preset rules. If the data does not meet the requirements, the manufacturing execution system will terminate further processing and return an error message; if the data meets the requirements, it will enter the subsequent verification.

[0055] The error information includes, but is not limited to, error codes and error descriptions. An error code is a numeric or alphanumeric identifier that refers to a specific error type or problem. Each error code corresponds to a specific error condition. For example, in a manufacturing execution system, "E001" indicates a data format error, "E004" identifies a process logic error, and so on. Error codes are often used as the basis for logging to help developers or technicians quickly locate problems and take action.

[0056] The error description is a detailed description of the error, usually a text message corresponding to the error code. It explains the cause, impact, and possible solutions of the error. Through the error code and description, developers or technicians can quickly identify the problem, which can help them better understand and solve the problem, thereby improving the stability and reliability of the manufacturing execution system.

[0057] Step 330: When the data verification passes, the process logic is executed based on the request parameters to obtain the process execution result corresponding to the current process.

[0058] When the data verification is passed, the manufacturing execution system executes the process logic of the current process based on the request parameters and obtains the process execution result corresponding to the current process. The process of executing the process logic of the current process may involve changes in the process status in the workstation and changes in the equipment parameters of the production equipment, etc., so that it can be verified offline whether the process logic described by the pre-set production program in the host computer can run accurately and efficiently under specific production environments and conditions.

[0059] In the process of executing process logic based on request parameters, the manufacturing execution system simulates different scenarios in the actual production process according to the request parameters. For example, it first determines that resources such as equipment, workstations, materials, etc. are available and have no conflicts, and then performs corresponding production link operations on the product, such as product assembly, testing, packaging, etc., and obtains the process execution results corresponding to the current process.

[0060] Step 340: Update the request parameters based on the process execution result, and feed back the process execution result to the host computer through the data feedback interface so as to debug the production program corresponding to the current process.

[0061] The manufacturing execution system updates the request parameters according to the process execution results to synchronously update the execution status of the process in the production task and the equipment parameters of the production equipment. In addition, the manufacturing execution system feeds back the process execution results to the host computer through the data feedback interface for debugging the production program corresponding to the current process. Among them, the production program corresponding to the current process includes at least the production program of the production equipment (i.e., the PLC program) and the control program of the host computer (i.e., the host computer program). The production equipment can realize the operation control of the production equipment by running the production program, such as starting / stopping the machine, sensor signal processing, executing the process logic, etc. The host computer can collect real-time data of the production equipment or transmit and analyze the data through the control program.

[0062] Among them, the process execution result is used to indicate the execution status of the current process, including but not limited to the completion status of the current process, the execution status of the production equipment in the current process, and the material status. The manufacturing execution system can update the equipment status, process status, material inventory, etc. according to the process execution status to make them consistent with the actual production environment, thereby simulating the real factory environment. If any problems are found during the process execution, the manufacturing execution can record the error information and return it to the host computer through the data feedback interface for further analysis and processing.

[0063] Exemplarily, the debugging process includes, but is not limited to, one or more of program writing debugging, communication connection debugging, and hardware connection debugging.

[0064] The program debugging method provided by the embodiment of the present invention receives the verification request generated by the host computer calling the data request interface matching the current process, and after performing a series of verification operations, the execution result is fed back to the host computer through the data feedback interface, thereby simulating the real factory manufacturing execution system interface, and can comprehensively and accurately verify the data sent by the host computer, ensuring that the format, content and operation logic of the data meet the requirements of the factory manufacturing execution system, not only avoiding production interruptions or quality problems caused by data transmission errors in the actual production environment, but also improving the accuracy and efficiency of data transmission. Specifically, the manufacturing execution system first performs data verification on the production data based on the process logic of the current process, and can check whether the data meets the specific production requirements, so that the data meets the requirements of the interface document; then, if the data verification passes, the process logic is executed based on the request parameters to obtain the process execution result corresponding to the current process, thereby returning the process execution result to the host computer, and through the simulation and verification of data transmission, the production program in the host computer and PCL can be more comprehensively verified and optimized, and the process logic can be simulated and verified in an offline environment, and potential problems can be quickly discovered and corrected without interfering with actual production, greatly improving the flexibility and efficiency of debugging.

[0065] In some embodiments, in order to realize data transmission between the host computer and the manufacturing execution system, the embodiments of the present invention use the WebService technology framework to provide a set of standard URL interfaces to ensure the intuitiveness and ease of use of data requests and responses. Specifically, the embodiments of the present invention use the WebService technology framework based on the HTTP protocol to realize data transmission and verification between the host computer and the manufacturing execution system by defining a standard URL interface (Web interface).

[0066] The URL interface includes a data request interface and a data feedback interface. To ensure the standardization and consistency of data exchange, the URL interface request and response parameters will have clear design documents. The host computer will build the request content according to the interface document requirements, and the manufacturing execution system will verify the request content and return the result.

[0067] The interface document will clearly list the required request parameters and response parameters, so that the host computer can construct data requests according to the document specifications. For example, the data request interface contains request parameters and corresponding data formats, including data types, field names, field types, and required items. The host computer constructs an HTTP request (i.e., a verification request) according to the requirements of the interface document and sends the data to be verified to the manufacturing execution system. The data feedback interface contains response parameters and corresponding data formats, including verification results, error codes, and error descriptions. After the manufacturing execution system verifies the received data, it constructs an HTTP response (including verification results and execution results) based on the verification results and feeds the verification results back to the host computer.

[0068] Therefore, through the unified interface design, function expansion and system maintenance can be easily carried out. If new verification rules need to be added or the data transmission logic needs to be modified, only corresponding adjustments need to be made in the interface document without affecting the operation of other modules. In addition, through the standardized URL interface, the data transmission between the host computer and the manufacturing execution system becomes simpler and more standardized, avoiding problems such as data transmission failure caused by inconsistent data formats.

[0069] As the complexity of the manufacturing production process continues to increase, the accuracy and consistency of production data have become key factors in ensuring production efficiency and quality. To this end, in some embodiments, the process logic based on the current process verifies the production data, including: determining multiple data verification conditions that match the current process; verifying the production data based on the multiple data verification conditions, and determining that the data verification passes if the production data meets all the data verification conditions; generating an error message if the production data does not meet any of the data verification conditions, and returning the error message to the host computer; the error message includes at least an error code and an error description.

[0070] The data verification condition is used to verify whether the data complies with the specifications. The correctness of production data must not only comply with the data format specifications, but also comply with certain logical rules, such as the production quantity of each production batch must not exceed the maximum batch limit, etc.

[0071] Therefore, the manufacturing execution system can automatically set a set of data verification conditions according to the production work order and the production plan. Alternatively, the manufacturing execution system obtains multiple pre-set data verification conditions that match the current process, and performs data verification on the production data based on the multiple data verification conditions. For example, the manufacturing execution system checks the format of the data, such as whether the work order number is numbered according to the preset rules, whether the date format meets the specifications, or whether the value is within the value range.

[0072] When the production data meets all the data verification conditions, the manufacturing execution system determines that the data verification of the production data has passed and can proceed to the next step. If the production data does not meet any of the data verification conditions, the manufacturing execution system generates detailed error information and returns the error information to the host computer through the data feedback interface.

[0073] In the above embodiment, by performing multi-angle and comprehensive verification of production data based on multiple data verification conditions set based on the current process logic, the probability of production errors and quality problems caused by data inconsistencies can be reduced, and the stability of the production line and the consistency of the data can be effectively improved.

[0074] In some embodiments, data verification includes data format verification and data logic verification. Data format verification and data logic verification may be respectively provided with one or more data verification conditions. Accordingly, the verification of the production data based on the multiple data verification conditions includes: performing format verification on the production data based on the data format condition, the format verification is at least used to verify whether the structure, data type and required items of the production data meet the preset data format rules; performing logic verification on the production data based on the data logic condition, the logic verification is at least used to verify whether the data range and data relationship of the production data meet the preset data logic rules.

[0075] Data format verification is to check the basic attributes of data to determine whether the data meets the preset data format rules. The preset data format rules, for example, specify one or more of the data encoding rules, data types (such as whether it is int type, number type, etc.), data length (such as whether it is a preset x digits), and required items. Exemplarily, the manufacturing execution system can verify the encoding rules of data, such as the site resource number and equipment number of the work order, by means of regular expressions, etc., to verify whether it is encoded according to the preset rules.

[0076] Data logic verification verifies the logical rationality of production data to determine whether the production data conforms to the actual production environment. For example, the manufacturing execution system verifies whether the number of products produced in a production work order exceeds the preset quantity threshold to determine whether the number of products exceeds the maximum production capacity of the production line; or whether the date of the work order is compliant (for example, it cannot be a future date), etc. For example, if the production time of the production work order does not match the production plan, the manufacturing execution system will prompt a time conflict. For another example, the manufacturing execution system verifies that the production quantity must be within a reasonable range and cannot exceed the maximum production capacity of the equipment or the storage capacity of the warehouse. For another example, the manufacturing execution system verifies whether the relationship between production data is consistent. For example, the raw material information of the work order should match the data in the raw material list to determine the accuracy of the material type and quantity, etc. Exemplarily, the data format rules can be pre-defined through the interface document. Data logic rules can be determined by production and manufacturing specifications.

[0077] In the above embodiment, a multiple verification method combining data format verification and data logic verification is used to perform systematic verification from data structure, data type to data logic, which can effectively screen invalid data. Only valid data that passes all verifications will be further processed, avoiding the transmission and processing of a large amount of invalid data and improving the transmission efficiency of production data. In addition, the verification process of production data can be completed in an offline environment, reducing interference with the production process. By timely discovering and correcting data problems, the time and cost of production debugging can also be reduced, shortening the project cycle.

[0078] In some embodiments, during the format verification and / or the function verification process, when abnormal data is verified, the manufacturing execution system generates an error message and returns the error message to the host computer.

[0079] For example, during the format verification process, when the manufacturing execution system verifies that the data does not comply with the data format rules, such as when some mandatory items are missing, the manufacturing execution system generates an error message and feeds it back to the host computer. The error message may include an error code (e.g., "E001" means "missing mandatory items") and an error description (e.g., "the production quantity field is empty").

[0080] For example, during the logic verification process, when the manufacturing execution system verifies that the data does not conform to the production logic, an error message is generated and fed back to the host computer. For example, the error code may be "E002" which means "the production quantity exceeds the maximum production capacity", and the error description may be "the production quantity is 5000, but the maximum production capacity is 3000".

[0081] Therefore, by verifying and feeding back error information during the verification process, non-compliant production data can be discovered in a timely manner, helping developers or technicians to quickly locate the root cause of the problem, reducing the time and cost of debugging and troubleshooting, and effectively avoiding production interruptions or erroneous results caused by data problems, thereby improving the robustness of the manufacturing execution system.

[0082] In actual production, each process usually involves multiple devices and workstations, each of which performs specific task logic, such as production equipment performing specific processing operations and workstations performing station management. In this case, dynamically coordinating the equipment execution logic and station-passing logic through request parameters can effectively ensure the accuracy and consistency of process execution, while improving the automation level and debugging efficiency of the production process.

[0083] Therefore, in some embodiments, the process logic is executed based on the request parameters to obtain a process execution result corresponding to the current process, including: based on the request parameters, respectively determining the equipment execution logic corresponding to the production equipment and the station-passing logic corresponding to the workstation in the current process; instructing the workstation in the current process to execute the corresponding station-passing logic to obtain a station-passing execution result; instructing the production equipment in the current process to execute the corresponding equipment execution logic to obtain an equipment execution result; based on the station-passing execution result and the equipment execution result, obtaining the process execution result corresponding to the current process.

[0084] In the manufacturing execution system, each process corresponds to one or more production equipment and one or more workstations. For example, in the gluing process, the product is transported to the gluing station, which is equipped with one or more workstations, each of which processes a part of the gluing process. The production equipment is the specific equipment on the workstation that performs the production task, such as a robotic arm, a gluing head, a sensor, etc.

[0085] Furthermore, the manufacturing execution system determines the equipment execution logic and station-passing logic based on the request parameters. Equipment execution is used to define the specific operation steps of the production equipment, such as gluing, assembling screws, tightening screws, etc. Station-passing logic is used to define the station-passing behavior of the workstation machine in the process, including controlling the product entering the station, entering the next station or exiting the station.

[0086] The manufacturing execution system instructs the workstation to perform operations (such as entering, continuing or ending) according to the station-by-station logic and obtains the station-by-station execution results. In addition, the manufacturing execution system instructs the production equipment to execute the determined equipment execution logic (such as temperature setting, glue coating path control, etc.) and obtains the equipment execution results. Thus, the manufacturing execution system combines the station-by-station execution results and the equipment execution results to obtain the process execution results of the current process.

[0087] In the above embodiment, by respectively determining the equipment execution logic and the station transfer logic, the specific operations of the production equipment and the workstation machine in the current process are clarified, the correctness of the logic of each process in the production task can be fully verified, and the generated process execution results can be used to monitor the production progress in real time, while providing detailed data support for production traceability and quality management.

[0088] In the manufacturing execution system, station passing is a key link that involves the orderly progress of the production line. For example, when a product enters a process or workstation, it means that the process officially begins; when the product completes the current process, it can prepare to enter the next process or workstation. In some complex processes, there may be other intermediate states, such as "continue", which means that part of the operation of the current process has been completed, but the workstation machine or production equipment has subsequent operations. Station passing control can effectively ensure that production is carried out in accordance with the predetermined process sequence without missing or skipping processes.

[0089] To this end, in some embodiments, the station-passing logic includes the station-entry logic, the station-passing execution result includes the station-entry execution result, and the corresponding station-passing logic is executed by the workstation machine in the current process to obtain the station-passing execution result, including: according to the request parameters, determining the target station-entry logic to be executed by the workstation machine corresponding to the current process among the preset multiple station-entry logics; instructing the workstation machine corresponding to the current process to execute the target station-entry logic to obtain the station-entry execution result.

[0090] Among them, the target entry logic refers to the transit logic of the product to be executed in the current process. For example, in the gluing process, the overall process logic of the gluing process includes: "start"-"glue"-"end"; then the entry logic of the workstation machine is start, and the exit logic is end, indicating the start or completion of the gluing process. For another example, in the low-voltage assembly link, the overall process logic of the low-voltage assembly link includes: "start"-"assemble screws"-"continue"-"tighten screws"-"end"; then the entry logic of the workstation machine is one of start or continue, and the exit logic is one of continue or end. Continue means that there are subsequent operations after the current process.

[0091] In order to ensure the smooth operation of the production line, the correct selection and execution of the entry logic is crucial. In the traditional manufacturing execution system debugging process, the actual production environment is often relied on to verify the correctness of the entry logic, but this method will increase the downtime of the production line and may cause production interruptions.

[0092] In an embodiment of the present invention, the target entry logic to be executed by the workstation machine corresponding to the current process is determined from among the preset multiple entry logics according to the request parameters, for example, one of "start", "continue" and "end". The request parameters are used to determine the specific target entry logic from among the multiple entry logics. The request parameters include process parameters and equipment parameters. The workstation parameters are used to indicate the process execution status of the current process, for example, whether it is in queue or being processed. The workstation parameters can be represented by identifiers.

[0093] In some embodiments, the request parameters may also include a workstation identification to identify the production workstation to which the current process belongs, such as a gluing station, an assembly station, a testing station, etc., or the request parameters may also include product identification information to identify the product information that currently needs to be processed, such as a product number, model or batch number, etc.

[0094] Thus, the manufacturing execution system instructs the workstation corresponding to the current process to execute the target entry logic based on the target entry logic to obtain the entry execution result. Exemplarily, the manufacturing execution system determines that the current product is located at the gluing station according to the station number, and the request parameter indicates that the current product is in the queue, then the manufacturing execution system determines that the target entry logic to be executed by the workstation in the current process is "start".

[0095] by Figure 4 For example, Figure 4 The process logic of obtaining the module code is shown. The manufacturing execution system generates and stores production data, and stores it through the data storage layer at the logical level. The host computer calls through the module number interface (data request interface matching the current process) and sends a verification request, which includes the production data to be verified and the request parameters. Among them, the production data includes but is not limited to one or more of work order data, blueprint information, work station information, process route and interface information. After receiving the verification request sent by the host computer, the manufacturing execution system first stores the data through the data storage layer, and then verifies the production data through the process logic layer, such as whether the required items are correct, whether the work order is correct, whether the work station is correct, etc. One or more. If any of the conditions is not met, the manufacturing execution system feedbacks an error message. If the data verification passes, the manufacturing execution system will perform a process logic verification, that is, determine the target entry logic based on the request parameters. For example, if the request parameter A represents Mode1, the entry logic 1 is executed; if the request parameter A represents Mode2, the entry logic 2 is executed; if the request parameter A represents Mode3, the entry logic 3 is executed. The manufacturing execution system simulates and executes the target entry logic through the business logic layer. Finally, the data storage layer updates the request parameters and feeds back the success information to the host computer.

[0096] In the above embodiment, by verifying the entry logic to control the execution of the production link, the production process, resource allocation and scheduling of production tasks can be effectively controlled, the transparency and traceability of the production process are improved, and it is ensured that each process can be executed in a predetermined order and is easy to track and review later; and by simulating the execution of the entry logic in an offline environment, potential problems can be discovered in advance, reducing debugging costs.

[0097] Correspondingly, the transit logic includes the outbound logic, and the transit execution result includes the outbound execution result; then in some embodiments, the instructing the workstation in the current process to execute the corresponding transit logic to obtain the transit execution result also includes: according to the request parameters, determining the target outbound logic to be executed by the workstation corresponding to the current process from the preset multiple outbound logics; performing compliance verification on the target outbound logic; the compliance verification is used to verify whether the current process is completed; if the compliance verification passes, instructing the workstation corresponding to the current process to execute the target outbound logic to obtain the outbound execution result.

[0098] Among them, compliance verification is used to verify whether the current transit logic complies with the prescribed business process and production specifications. Compliance verification can determine whether the process logic of the current process has been executed, and then determine whether the current process complies with the specifications for executing the outbound operation. For example, in the low-voltage assembly production link, the low-voltage assembly station requires that the "end" operation must be performed after the "tightening" operation is completed. If the logic is not met, such as the product has completed the screw installation operation, but has not yet performed the tightening operation, the outbound operation cannot be performed.

[0099] The request parameters can also be used to determine a specific target outbound logic among multiple outbound logics. That is, the manufacturing execution system determines the process execution status of the current process based on the process parameters included in the request parameters, such as whether it is in queue or being processed, and then determines the target outbound logic based on the request parameters, and performs compliance verification on the target outbound logic. If the compliance verification passes, the manufacturing execution system instructs the workstation corresponding to the current process to execute the target outbound logic based on the target outbound logic to obtain the outbound execution result.

[0100] by Figure 5 For example, Figure 5The outbound process logic for verifying and storing the equipment parameters (such as the amount of glue applied) of the glue coating equipment after the glue coating production link is shown. The manufacturing execution system generates production data and stores it through the data storage layer for the host computer to call through the outbound interface (the data request interface matching the current process), and sends a verification request, which includes the production data to be verified and the request parameters. Among them, the production data includes but is not limited to one or more of work order data, blueprint information, work station information, process route and interface information. After receiving the verification request sent by the host computer, the manufacturing execution system first stores the data through the data storage layer, and performs data verification on the production data through the process logic layer, such as whether the required items are correct, whether the data is valid, whether the value of the data is within the threshold range, whether the value matches the data type, etc. If any of the conditions is not met, the manufacturing execution system will feedback an error message. If the data verification passes, the manufacturing execution system will perform compliance verification through the business logic layer to determine whether the transit logic is compliant. If the compliance check passes, the manufacturing execution system performs functional verification through the business logic layer, that is, determines the target outbound logic based on the request parameters. For example, if the request parameter A represents Mode 1, outbound logic 1 is executed; if the request parameter A represents Mode 2, outbound logic 2 is executed; if the request parameter A represents Mode 3, outbound logic 3 is executed; if the request parameter A represents Mode 4, outbound logic 4 is executed. After that, the manufacturing execution system simulates the execution of the target outbound logic through the business logic layer to update the request parameters. In addition, the manufacturing execution system stores the updated request parameters and feeds back the execution results to the host computer.

[0101] In the above embodiment, by verifying the compliance of the transit logic, subsequent problems caused by abnormal flow or operational errors can be effectively avoided. In addition, dynamically matching the target outbound logic and executing the transit logic according to the request parameters not only improves the accuracy of offline debugging, but also provides flexible support for the diversified needs in actual production.

[0102] Therefore, by verifying the entry logic and exit logic to control the execution of the production process, it is possible to effectively control the production process, resource allocation and scheduling of production tasks, improve the transparency and traceability of the production process, ensure that each process can be executed in the predetermined order, and facilitate subsequent tracking and review; and, by executing the transit logic in an offline environment, potential problems can be discovered in advance, reducing debugging costs.

[0103] As mentioned above, the process parameters are used to indicate the process execution status of the current process, while the equipment parameters in the request parameters include the production parameters of the production equipment corresponding to the current process, which are operation variables related to specific production equipment. Their update and recording can provide detailed data support for subsequent process optimization and exception handling. For example, the equipment parameters include the amount of glue applied by the glue application equipment, the number of screw turns or applied force set by the tightening equipment, etc.

[0104] To this end, in some embodiments, updating the request parameters based on the execution results includes: updating the process parameters based on the transit execution results to update the process execution status of the current process; the updated process parameters are used for production program verification of the next process; based on the equipment execution results, the production parameters corresponding to the current process are updated, and the updated equipment parameters and update time are recorded for each time for tracing the production links.

[0105] After the process logic is executed, the manufacturing execution system updates the request parameters. On the one hand, the manufacturing execution system dynamically updates the process parameters according to the execution results to synchronize the production progress in real time. For example, after the product enters the workstation, it updates "waiting in line" to "entered the station"; or after the product completes the process execution and leaves the station, it updates "processing" to "complete processing", and so on. On the other hand, the manufacturing execution system updates the equipment parameters according to the execution results, such as recording the latest equipment operation status or key variables in the production process, so as to achieve continuous execution of multi-step logic and provide data support for traceability requirements in the production process. For example, after each equipment parameter update, the manufacturing execution system can record the equipment parameters and their corresponding timestamps in the database to form a complete historical log. These records can be used for subsequent traceability and analysis of abnormal conditions or operation history in the production process.

[0106] In the above embodiment, by dynamically updating the process parameters, the execution of each process logic can adjust the operation status according to the actual situation of the current process, thereby enhancing the logical consistency and accuracy of the process logic execution; and by updating the equipment parameters and managing the timestamp, a complete operation history is formed, which supports the rapid location and responsibility tracing of abnormal situations in the production process, thereby improving the maintainability of the system and the production quality control capabilities.

[0107] In order to simulate the real production environment and to be able to quickly verify and debug the manufacturing execution system in all aspects in an offline debugging environment, the manufacturing execution system in the embodiment of the present invention can simulate the generation of production data for verification and testing. One way is that the manufacturing execution system generates production data including product information, product quantity and production time by combining a rule-based production algorithm with a preset production plan. This data generation method can accurately simulate actual production conditions, provide highly reliable and accurate data input for offline debugging, and ensure that the verification and debugging requirements of the system in various business scenarios are met.

[0108] To this end, in some embodiments, the above method also includes: determining the product type, product quantity and production time to be produced according to a preset production plan; using a rule-based production algorithm to generate at least a product information record that conforms to the product type, a product quantity record that is consistent with the product quantity, and a production time record that is consistent with the production time; combining the product information record, the product quantity record and the production time record to obtain production data.

[0109] Specifically, the manufacturing execution system uses a rule-based generation algorithm to generate data according to the specific requirements and business logic in the production plan. For example, the manufacturing execution system reads information such as product type, production quantity, and production time in the production plan, and generates corresponding product numbers, specifications, and other detailed information based on the product type; generates corresponding product quantity records based on the production quantity; and generates corresponding production time records in timestamp or date format based on the production time, etc. The manufacturing execution system combines the above information into a complete product data record, obtains production data, and stores it in a database. The database can be a relational database or a non-relational database, etc.

[0110] For example, assume that the production plan includes: the product type is lithium battery model A123, the product quantity is 300 pieces, and the production time is 08:00-18:00 on January 1, 2025. Then the manufacturing execution system generates the number (A123:001~A123:300), specification model (123 type), material (ternary lithium) of each lithium battery, and generates a record entry for the quantity of 300 pieces. At the same time, the manufacturing execution system generates records corresponding to the time range to mark the production period.

[0111] In the above embodiment, the data generated based on the production plan and rule algorithm comprehensively covers key elements such as product information, quantity and time, and can truly simulate the data characteristics in actual production. In addition, the production data generated by preset rules can quickly provide input for debugging. There is no need to collect data from the real production environment, and a large amount of data can be quickly generated, which greatly improves the debugging efficiency.

[0112] Another way is that the manufacturing execution system simulates the data generation under different production conditions (defective products, material verification conditions, product quantity) based on the generation algorithm of the random algorithm to test the robustness and flexibility of the system. To this end, in some embodiments, the above method also includes: determining the data type and value range of the production data to be generated; based on the data type and the value range, generating production data that conforms to the specified probability distribution according to a preset probability distribution function.

[0113] Specifically, the manufacturing execution system first determines the type of production data to be generated and the corresponding value range. For example, the data type is product defect rate, material verification success rate, and production quantity. The value range includes, for example: product defect rate: 0%-10%, material verification success rate: 90%-100%, and production quantity: 100-1000 pieces. Then the manufacturing execution system selects a suitable probability distribution function, such as normal distribution, Poisson distribution, etc., according to the data type and range, to generate random numbers that conform to the specified probability distribution. For example, product NG rate: normal distribution, mean 5%, standard deviation 2%; material verification success rate: Poisson distribution, mean 95%; production quantity: uniform distribution, ranging from 100 to 1000. As a result, the manufacturing execution system generates random data that conforms to the specified distribution, for example, the random generation results of product defect rate: 3.8%, 5.2%, 7.1%; the random generation results of material verification success rate: 93%, 97%, 96%; the random generation results of production quantity: 120 pieces, 850 pieces, 600 pieces. Furthermore, the manufacturing execution system combines various types of randomly generated production data according to a predetermined format to form a complete production data record to obtain production data.

[0114] In the above embodiment, the production data generated by the random algorithm covers a variety of production conditions, can test the performance of the manufacturing execution system in abnormal scenarios, and provide support for the robustness verification of the system; and, by generating data through the random algorithm, there is no need to rely on the preset production plan, and supports a variety of unstructured data generation requirements, providing flexibility for offline debugging of different process logics and scenarios. The random data generated by the probability distribution function can accurately simulate the data characteristics in the real production environment, such as volatility and distribution characteristics, thereby providing a sense of reality for system verification. This not only improves the flexibility of debugging, but also makes the debugging process more comprehensive, can cover more business scenarios and data types, and facilitates data analysis and optimization. By saving the data generated by the simulation, rich data resources can be provided for subsequent data analysis and optimization work.

[0115] In order to display production data and transmission data in real time, the manufacturing execution system in the embodiment of the present invention also provides a front-end interface, and displays the debugging process of the manufacturing execution system through the front-end interface. To this end, in some embodiments, the above method also includes: generating a front-end page corresponding to the production task and displaying it. Figure 6 As shown, the front-end page includes at least a data display sub-page, a data query sub-interface and a production report sub-page.

[0116] The data display subpage displays at least the production data corresponding to the multiple products included in the production task and the process execution status corresponding to the multiple products in a graphical manner.

[0117] Graphical display methods include but are not limited to one or more of a bar chart, a line chart, a pie chart, a bar chart, a list, etc. For example, the manufacturing execution system displays the work order number, resource number, PN (Part Number), SFC number (Shop Floor Control Number), workstation number and corresponding process execution status corresponding to each product in a separate item-by-item manner through a data display subpage, such as completed, queued, or being processed. The process execution status can be updated in real time based on the process execution result.

[0118] In some embodiments, the data display sub-page may also use different colors or graphic symbols to distinguish the execution status of the process.

[0119] The data query sub-interface is used to display the equipment parameters corresponding to the query information based on the query information input. For example, in a battery production task, the manufacturing execution system can query the equipment and parameters in the production process corresponding to the battery cell or module, such as voltage, temperature, etc., through the data query sub-interface based on the battery cell barcode or module number input by the user, and display the equipment parameters.

[0120] Exemplarily, the data query sub-interface provides an input box and filtering conditions, such as workstation number, product number, time range, etc. After the user enters the query conditions, the manufacturing execution system retrieves the corresponding equipment parameters in the database and displays the query results in a graphical manner.

[0121] The production report subpage is used to generate a production report corresponding to the production task based on the process execution result, and to display the production report in a graphical manner. For example, the production report subpage intuitively displays the execution status of the production task, including product quantity statistics, process completion rate, abnormal records, etc., by combining visual charts and text summaries.

[0122] For example, Figure 7As shown in the figure, the front-end interface establishes a real-time communication connection with the manufacturing execution system. The manufacturing execution system will display the relevant information of the requested data in real time, which makes it easier for technicians to quickly locate the problem and take corresponding solutions. In addition, in order to more intuitively display production data and transmission data, the front-end interface also provides data visualization functions, which display key information such as the progress, status and history of data transmission to technicians in various forms such as charts, lists and log information. This not only helps technicians quickly understand the overall situation of data transmission, but also provides a basis for data analysis and optimization.

[0123] Therefore, the data display sub-page is dynamically updated based on the real-time process execution results, which can quickly reflect the status of each product in the production process, helping users to grasp the production progress and make decisions in a timely manner; the data query sub-interface provides flexible query conditions, supporting users to quickly locate and obtain specific equipment parameters, greatly reducing the time for information retrieval; through the production report sub-page, detailed production task reports are generated, including statistical analysis and exception records, supporting users to conduct a comprehensive analysis of the production process and provide data support for subsequent improvements.

[0124] The embodiment of the present invention also provides a program debugging method, which is applied to a host computer. The host computer communicates with a manufacturing execution system through a data request interface and a data feedback interface. The manufacturing execution system is used to execute a production task. Each process in the production task has a matching relationship with the data request interface and the data feedback interface. Figure 8 As shown, the method includes steps 810 to 840: Step 810: Call a data request interface that matches the current process to obtain production data and request parameters, and generate a verification request based on the production data and request parameters.

[0125] Among them, the current process refers to the specific operation that the manufacturing execution system is processing at a certain moment in the execution of the production task, such as gluing on the battery production line, low-voltage assembly and other production operations or tasks. The data request interface that matches the current process means that the data and interface requested when the host computer sends a data request should be consistent with the logic of the specific process being executed. For example, if the current business is quality inspection, the host computer may request a quality inspection data interface to obtain information such as quality parameters and test results. The interface parameters and corresponding data formats of different interfaces may be different.

[0126] The host computer obtains the production data and request parameters matching the current process by calling the data request interface matching the current process in the manufacturing execution system, and encapsulates the production data and request parameters into a verification request.

[0127] For example, the host computer sends the data to the manufacturing execution system through a standard communication protocol. The manufacturing execution system receives the data through a data request interface and prepares for the subsequent verification process.

[0128] Step 820: Send the verification request to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to perform production program verification based on the verification request and generate a process execution result corresponding to the current process.

[0129] The manufacturing execution system receives a verification request from the host computer and performs a production program verification based on the verification request. The production program verification includes data verification and execution of the process logic of the current process. The specific verification process can refer to the above embodiment and will not be repeated here.

[0130] Step 830: Receive the process execution result returned by the manufacturing execution system through the data feedback request.

[0131] The manufacturing execution system feeds back the process execution results to the host computer through the data feedback interface. The process execution results are used to indicate the execution status of the current process, including but not limited to the completion status of the current process, the execution status of the production equipment in the current process, and the material status. The manufacturing execution system can update the equipment status, process status, material inventory, etc. according to the process execution status to make them consistent with the actual production environment, thereby simulating the real factory environment. If any problems are found during the process execution, the manufacturing execution can record the error information and return it to the host computer through the data feedback interface for further analysis and processing.

[0132] In some embodiments, in order to realize data transmission between the host computer and the manufacturing execution system, the WebService technology framework is used in the embodiments of the present invention to provide a set of standard URL interfaces to ensure the intuitiveness and ease of use of data requests and responses. Specifically, the embodiments of the present invention adopt the WebService technology framework based on the HTTP protocol to realize data transmission and verification between the host computer and the manufacturing execution system by defining a standard URL interface (Web interface). The URL interface includes a data request interface and a data feedback interface. To ensure the standardization and consistency of data exchange, the request and response parameters of the URL interface will have clear design documents. The host computer constructs the request content according to the interface document requirements, and the manufacturing execution system verifies and returns the results based on the request content.

[0133] Step 840: Based on the process execution result, debug the production program corresponding to the current process.

[0134] The host computer can debug the production program based on the results of the process execution. The production program at least includes the production program of the production equipment and the control program of the host computer. The production equipment can realize the operation control of the production equipment by running the production program, such as starting / stopping the machine, processing sensor signals, executing process logic, etc. The host computer can collect real-time data of the production equipment through the control program.

[0135] Exemplarily, the debugging process includes, but is not limited to, one or more of program writing debugging, communication connection debugging, and hardware connection debugging.

[0136] The program debugging method provided by the embodiment of the present invention obtains production data and request parameters by calling a data request interface matching the current process, and generates a verification request based on the production data and request parameters, so that the production data and production logic can be verified through an offline manufacturing execution system; the verification request is sent to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to verify the production program based on the verification request, and generate a process execution result corresponding to the current process. By simulating a real factory manufacturing execution system interface, the data sent by the host computer can be fully and accurately verified to ensure that the format, content and operation logic of the data meet the requirements of the factory manufacturing execution system, which not only avoids production interruptions or quality problems caused by data transmission errors in the actual production environment, but also improves the accuracy and efficiency of data transmission; further, the process execution result returned by the manufacturing execution system through the data feedback request is received, and the production program corresponding to the current process is debugged based on the process execution result, so that the production program can be more comprehensively verified and optimized, and the process logic can be simulated and verified in an offline environment, and potential problems can be quickly discovered and corrected without interfering with actual production, which greatly improves the flexibility and efficiency of debugging.

[0137] The program debugging method provided in the embodiment of the present invention can be executed by a program debugging device. In the embodiment of the present invention, the program debugging device provided in the embodiment of the present invention is described by taking the program debugging method executed by the program debugging device as an example.

[0138] The embodiment of the present invention also provides a program debugging device, which is applied to a manufacturing execution system. Fig. 9 As shown, the program debugging device includes a first receiving module 901, a checking module 902 and a feedback module 903. Among them: The first receiving module 901 is used to receive a verification request generated by a host computer by calling a data request interface matching the current process, wherein the verification request includes production data and request parameters corresponding to the current process.

[0139] The verification module 902 is used to perform data verification on the production data based on the process logic of the current process.

[0140] The verification module 902 is further configured to execute the process logic based on the request parameters to obtain a process execution result corresponding to the current process when the data verification passes.

[0141] The feedback module 903 is used to update the request parameter based on the process execution result, and feed back the process execution result to the host computer through the data feedback interface, so as to debug the production program corresponding to the current process.

[0142] The embodiment of the present invention Fig. 9 The program debugging device shown can realize Figure 3 The various processes implemented by the method embodiment have the same technical effects and will not be described again here to avoid repetition.

[0143] In some embodiments, the verification module is also used to determine multiple data verification conditions that match the current process; verify the production data based on the multiple data verification conditions, and determine that the data verification has passed if the production data meets all the data verification conditions; generate an error message if the production data does not meet any data verification condition, and return the error message to the host computer; the error message includes at least an error code and an error description.

[0144] In some embodiments, the data verification conditions include data format conditions and data logic conditions. The verification module is also used to perform format verification on the production data based on the data format conditions, and the format verification is at least used to verify whether the structure, data type and required items of the production data meet the preset data format rules; based on the data logic conditions, the production data is logically verified, and the logic verification is at least used to verify whether the data range and data relationship of the production data meet the preset data logic rules.

[0145] In some embodiments, the feedback module is further used to generate error information when abnormal data is checked during the format check and / or the logic check, and return the error information to the host computer.

[0146] In some embodiments, each process corresponds to a production device and a workstation; the verification module is also used to determine the equipment execution logic corresponding to the production equipment and the station pass logic corresponding to the workstation in the current process based on the request parameters; instruct the workstation in the current process to execute the corresponding station pass logic to obtain a station pass execution result; instruct the production equipment in the current process to execute the corresponding equipment execution logic to obtain an equipment execution result; based on the station pass execution result and the equipment execution result, obtain the process execution result corresponding to the current process.

[0147] In some embodiments, the station-passing logic includes the station-entry logic, and the station-passing execution result includes the station-entry execution result; the verification module is also used to determine the target station-entry logic to be executed by the workstation corresponding to the current process from the preset multiple station-entry logics according to the request parameters; instruct the workstation corresponding to the current process to execute the target station-entry logic to obtain the station-entry execution result In some embodiments, the transit logic includes an outbound logic, and the transit execution result includes an outbound execution result; the verification module is also used to determine, according to the request parameters, the target outbound logic to be executed by the workstation corresponding to the current process from the preset multiple outbound logics; perform compliance verification on the target outbound logic; the compliance verification is used to verify whether the current process is completed; if the compliance verification passes, instruct the workstation corresponding to the current process to execute the target outbound logic to obtain the outbound execution result.

[0148] In some embodiments, the request parameters include process parameters and equipment parameters, the process parameters are used to indicate the process execution status of the current process; the equipment parameters include production parameters of the production equipment corresponding to the current process; the above-mentioned device also includes an update module, which is used to update the process parameters based on the transit execution results to update the process execution status of the current process; the updated process parameters are used to verify the production procedure of the next process; the production parameters corresponding to the current process are updated based on the equipment execution results, and the equipment parameters and update time of each update are recorded for tracing the production links.

[0149] In some embodiments, the above-mentioned device also includes a generation module, which is used to determine the product type, product quantity and production time to be produced according to a preset production plan; use a rule-based production algorithm to generate at least a product information record that conforms to the product type, a product quantity record consistent with the product quantity, and a production time record consistent with the production time; combine the product information record, the product quantity record and the production time record to obtain production data.

[0150] In some embodiments, the generation module is further used to determine the data type and numerical range of the production data to be generated; based on the data type and the numerical range, the production data conforming to the specified probability distribution is generated according to a preset probability distribution function.

[0151] In some embodiments, the manufacturing execution system feeds back at least one of the execution result and the error information to the host computer through a data feedback interface; the data request interface and the data feedback interface are preset standard website interfaces.

[0152] In some embodiments, the above-mentioned device also includes a display module, which is used to generate and display a front-end page corresponding to the production task; the front-end page includes at least a data display sub-page, a data query sub-interface and a production report sub-page; wherein, the data display sub-page displays at least the production data corresponding to the multiple products included in the production task and the process execution status corresponding to the multiple products in a graphical display manner; the process execution status is updated in real time based on the process execution result; the data query sub-interface is used to display the equipment parameters corresponding to the query information based on the input query information; the production report sub-page is used to generate a production report corresponding to the production task based on the process execution result, and display the production report in a graphical display manner.

[0153] The embodiment of the present invention also provides a program debugging device, which is applied to a host computer. Fig.10 As shown, the program debugging device includes a request module 1001, a sending module 1002, a second receiving module 1003 and a debugging module 1004. Among them: The request module 1001 is used to call the data request interface matching the current process to obtain production data and request parameters, and generate a verification request based on the production data and request parameters.

[0154] The sending module 1002 is used to send the verification request to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to perform production program verification based on the verification request and generate a process execution result corresponding to the current process; the production program verification at least includes data verification and execution of the process logic of the current process.

[0155] The second receiving module 1003 is used to receive the process execution result returned by the manufacturing execution system through the data feedback request.

[0156] The debugging module 1004 is used to debug the production program corresponding to the current process based on the process execution result.

[0157] The embodiment of the present invention is Fig.10The program debugging device shown can realize Figure 8 The various processes implemented by the method embodiment have the same technical effects and will not be described again here to avoid repetition.

[0158] The program debugging device in the embodiment of the present invention may be a computer device, or a component in the computer device, such as an integrated circuit or a chip. The computer device may be a terminal device or a server. The computer device is a device in a manufacturing execution system, or the computer device is equipped with a manufacturing execution system.

[0159] Exemplarily, the computer device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted computer device, a mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present invention do not specifically limit this.

[0160] The program debugging device in the embodiment of the present invention may be a device having an operating system. The operating system may be a Microsoft (Windows) operating system, an Android (Android) operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.

[0161] In some embodiments, Fig.11 As shown, an embodiment of the present invention further provides a computer device 1100, including a processor 1101, a memory 1102, and a computer program stored in the memory 1102 and executable on the processor 1101. When the program is executed by the processor 1101, each process of the above-mentioned method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0162] It should be noted that the computer device in the embodiment of the present invention includes the mobile computer device and the non-mobile computer device mentioned above.

[0163] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned program debugging method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0164] The processor is the processor in the computer device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0165] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the above-mentioned program debugging method when executed by a processor.

[0166] The processor is the processor in the computer device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0167] An embodiment of the present invention further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned program debugging method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] It should be understood that the chip mentioned in the embodiment of the present invention may also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0169] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0171] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0172] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0173] If not otherwise specified, all embodiments and optional embodiments of the present invention can be combined with each other to form a new technical solution.

[0174] Unless otherwise specified, all technical features and optional technical features of the present invention can be combined with each other to form a new technical solution.

[0175] If not otherwise specified, all steps of the present invention may be performed sequentially or randomly, preferably sequentially. For example, the method includes steps (a) and (b), which means that the method may include steps (a) and (b) performed sequentially, or may include steps (b) and (a) performed sequentially. For example, mentioning that the method may also include step (c) means that step (c) may be added to the method in any order, for example, the method may include steps (a), (b) and (c), or may include steps (a), (c) and (b), or may include steps (c), (a) and (b), etc.

[0176] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A program debugging method, characterized in that: Applied to a manufacturing execution system, the manufacturing execution system is used to execute a production task and is provided with a data request interface and a data feedback interface matching each process in the production task; the method comprises: Receiving a verification request generated by a host computer by calling a data request interface matching the current process, wherein the verification request includes production data and request parameters corresponding to the current process; Performing data verification on the production data based on the process logic of the current process; If the data verification passes, the process logic is executed based on the request parameters to obtain a process execution result corresponding to the current process; The request parameter is updated based on the process execution result, and the process execution result is fed back to the host computer through the data feedback interface so as to debug the production program corresponding to the current process.

2. The program debugging method according to claim 1, characterized in that: The performing data verification on the production data based on the process logic of the process includes: Determine multiple data verification conditions that match the current process; Verifying the production data based on the multiple data verification conditions, and determining that the data verification passes if the production data satisfies all the data verification conditions; In the case that the production data does not satisfy any data verification condition, an error message is generated and returned to the host computer; the error message includes at least an error code and an error description.

3. The program debugging method according to claim 2, characterized in that: The data verification conditions include a data format condition and a data logic condition, and the verifying the production data based on the multiple data verification conditions includes: Performing format verification on the production data based on the data format condition, wherein the format verification is at least used to verify whether the structure, data type and required items of the production data meet preset data format rules; The production data is logically checked based on the data logic condition, and the logical check is at least used to check whether the data range and data relationship of the production data meet the preset data logic rules.

4. The program debugging method according to claim 3, characterized in that: The method further comprises: During the format check and / or the logic check, when abnormal data is checked, error information is generated and returned to the host computer.

5. The program debugging method according to claim 1, characterized in that: Each process corresponds to a production device and a workstation; the process logic is executed based on the request parameters to obtain a process execution result corresponding to the current process, including: Based on the request parameters, respectively determine the equipment execution logic corresponding to the production equipment and the station transfer logic corresponding to the workstation machine in the current process; Instructing the workstation in the current process to execute the corresponding station-passing logic and obtain the station-passing execution result; Instructing the production equipment in the current process to execute corresponding equipment execution logic to obtain equipment execution results; Based on the station execution result and the equipment execution result, a process execution result corresponding to the current process is obtained.

6. The program debugging method according to claim 5, characterized in that: The station-passing logic includes the station-entry logic, and the station-passing execution result includes the station-entry execution result; the station-passing execution result is obtained by executing the corresponding station-passing logic through the workstation in the current process, including: According to the request parameters, determine the target entry logic to be executed by the workstation corresponding to the current process from among the preset multiple entry logics; Instruct the workstation corresponding to the current process to execute the target entry logic to obtain the entry execution result.

7. The program debugging method according to claim 5, characterized in that: The station-passing logic includes the station-exiting logic, and the station-passing execution result includes the station-exiting execution result; the instructing the workstation in the current process to execute the corresponding station-passing logic to obtain the station-passing execution result also includes: According to the request parameters, determine the target outbound logic to be executed by the workstation corresponding to the current process from among the preset multiple outbound logics; Performing compliance verification on the target outbound logic; the compliance verification is used to verify whether the current process is completed; When the compliance verification is passed, the workstation corresponding to the current process is instructed to execute the target outbound logic to obtain an outbound execution result.

8. The program debugging method according to any one of claims 5 to 7, characterized in that: The request parameters include process parameters and equipment parameters, wherein the process parameters are used to indicate the process execution status of the current process; the equipment parameters include production parameters of the production equipment corresponding to the current process; The updating of the request parameter based on the process execution result includes: The process parameters are updated based on the execution result of the transit station to update the process execution status of the current process; the updated process parameters are used for production program verification of the next process; The production parameters corresponding to the current process are updated based on the equipment execution results, and the equipment parameters and update time of each update are recorded for tracing the production links.

9. The program debugging method according to claim 1, characterized in that: The method further comprises: Determine the product type, quantity and production time to be produced according to the preset production plan; Using a rule-based production algorithm, at least generate a product information record that conforms to the product type, a product quantity record that conforms to the product quantity, and a production time record that conforms to the production time; The product information record, the product quantity record and the production time record are combined to obtain production data.

10. The program debugging method according to claim 1, characterized in that: The method further comprises: Determine the data type and value range of the production data to be generated; Based on the data type and the numerical range, production data conforming to the specified probability distribution is generated according to a preset probability distribution function.

11. The program debugging method according to claim 1, characterized in that: The data request interface and the data feedback interface are preset standard website interfaces.

12. The program debugging method according to claim 1, characterized in that: The method further comprises: Generate a front-end page corresponding to the production task and display it; the front-end page at least includes a data display sub-page, a data query sub-interface and a production report sub-page; The data display subpage displays at least the production data corresponding to the multiple products included in the production task and the process execution status corresponding to the multiple products in a graphical display manner; the process execution status is updated in real time based on the process execution result; The data query sub-interface is used to display device parameters corresponding to the query information based on the query information input; The production report subpage is used to generate a production report corresponding to the production task based on the process execution result, and to display the production report in a graphical manner.

13. A program debugging method, characterized in that: Applied to a host computer, the host computer communicates with a manufacturing execution system through a data request interface and a data feedback interface, the manufacturing execution system is used to execute a production task, and each process in the production task has a matching relationship with the data request interface and the data feedback interface; the method comprises: Calling a data request interface that matches the current process to obtain production data and request parameters, and generating a verification request based on the production data and request parameters; Sending the verification request to the manufacturing execution system through the data request interface to instruct the manufacturing execution system to perform production program verification based on the verification request and generate a process execution result corresponding to the current process; the production program verification at least includes data verification and execution of process logic of the current process; receiving the process execution result returned by the manufacturing execution system through the data feedback request; Based on the process execution result, the production program corresponding to the current process is debugged.

14. A program debugging system, characterized in that: The invention comprises a manufacturing execution system and a host computer, wherein the manufacturing execution system is used to execute and implement the program debugging method according to any one of claims 1 to 12, and the host computer is used to execute and implement the program debugging method according to claim 13.

15. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the program debugging method according to any one of claims 1 to 13 is implemented.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the program debugging method according to any one of claims 1 to 13 is implemented.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the program debugging method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Equipment data verification method and device, equipment and storage medium

    CN116501727A

  • Battery outbound method and battery outbound system

    CN117725389A

  • Quality analysis and prediction method for product during production of automatic assembly and detection production line

    WO2022237105A1

Cited By

  • Product test data storage and management system based on MES system

    CN120179655A