Workpiece production task execution method, device, equipment and storage medium

CN122837384APending Publication Date: 2026-09-29GUANGZHOU MINO AUTOMOTIVE EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610965230.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-30
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

但传统优化JSP(Job Shop Scheduling Problem,作业车间调度问题)均采用“工序—机器”的双编码机制,最终仅能够输出加工设备上的加工任务

Benefits of technology

[0010]本发明实施例技术方案通过根据各待加工工件的工件标识、加工工序以及加工时间生成加工任务,并根据加工工序以及在不同加工工序上的加工时间生成至少一个具有顺序关系的加工批次,以及各加工批次下所包含的工序执行批次,并根据加工批次的顺序关系,依次生成各加工批次下的入库任务和出库任务,根据各工序执行批次下各加工工序,依次生成各工序执行批次下的搬运任务,结合加工任务、入库任务、搬运任务和出库任务生成并执行生产任务。上述技术方案实现了对柔性制造系统在生产任务执行过程中的搬运任务和加工任务的协同调度,按照批次逐个生成搬运任务,综合考虑了搬运作业以及作业设备可执行性,与加工设备紧密集合输出可供PLC执行的工步,打通了传统算法结果无法直接执行的鸿沟,实现了工件生产任务的自动生成和执行,提升了工件生产效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122837384A_ABST
    Figure CN122837384A_ABST
Patent Text Reader

Abstract

A workpiece production task execution method, device, equipment and storage medium are disclosed. The method comprises: generating a processing task according to a workpiece identifier, a processing procedure and a processing time of a workpiece to be processed; generating at least one processing batch and at least one procedure execution batch contained in each processing batch according to each processing procedure and processing time; generating, according to the sequence relationship of the processing batches, the storage-in task and the storage-out task of each processing batch in sequence, and generating, according to the processing procedure of each procedure execution batch, the workpiece carrying task of each procedure execution batch in sequence; and generating and executing the production task according to each processing task, storage-in task, carrying task and storage-out task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial automation technology, and in particular to a method, apparatus, equipment and storage medium for executing workpiece production tasks. Background Technology

[0002] A Flexible Manufacturing System (FMS) is a highly automated manufacturing system consisting of CNC machining equipment, material handling and storage devices, and a computer control system. It can efficiently process a variety of parts and offers advantages such as high processing flexibility, high equipment utilization, and fast response speed.

[0003] In the task production aspect of flexible manufacturing systems, existing technologies primarily rely on engineers manually writing the corresponding material handling and processing tasks for each process step based on process requirements. However, subsequent research has proven that the FMS scheduling problem is an NP-hard (Non-deterministic Polynomial-time hard) problem. Traditional optimization methods for the Job Shop Scheduling Problem (JSP) employ a dual-encoding mechanism of "process-machine," ultimately only outputting the processing tasks on the processing equipment. However, in actual automated production lines, the number of material handling tasks far exceeds the number of processing tasks.

[0004] Therefore, how to address the fact that traditional methods can only perform separate optimization of workpiece production tasks in FMS, and cannot achieve coordinated scheduling of handling and processing tasks, thus failing to achieve automatic generation and execution of workpiece production tasks in FMS, has become an urgent problem to be solved. Summary of the Invention

[0005] This invention provides a method, apparatus, equipment, and storage medium for executing workpiece production tasks, so as to realize the coordinated scheduling of handling and processing tasks in the workpiece production task execution process of a flexible manufacturing system, thereby realizing the automatic generation and execution of workpiece production tasks.

[0006] According to one aspect of the present invention, a method for executing a workpiece production task is provided, the method comprising: The production tasks of the flexible manufacturing system are obtained and analyzed to obtain the workpiece identifier, processing steps, and processing time of at least one workpiece to be processed. Based on the workpiece identification, processing steps, and processing time for each processing step, a processing task is generated. Based on each of the processing steps and processing time, at least one processing batch with a sequential relationship is generated, and at least one process execution batch is included under each of the processing batches; Based on the sequential relationship of the processing batches, the inbound and outbound tasks under each processing batch are generated sequentially, and the handling tasks under each process execution batch are generated sequentially according to each processing procedure. Based on the processing tasks, warehousing tasks, handling tasks, and outbound tasks, production tasks are generated and executed.

[0007] According to another aspect of the present invention, a workpiece production task execution apparatus is provided, the apparatus comprising: A task acquisition module is generated to acquire production tasks of the flexible manufacturing system and parse the production tasks to obtain at least one workpiece identifier, processing steps, and processing time for different processing steps of a workpiece to be processed. The processing task generation module is used to generate processing tasks based on the workpiece identifier, processing steps, and processing time at different processing steps. A batch generation module is used to generate at least one processing batch with a sequential relationship, and at least one process execution batch contained under each processing batch, based on each processing step and processing time. The task generation module is used to generate inbound and outbound tasks for each processing batch according to the order of the processing batches, and to generate handling tasks for each process execution batch according to each processing procedure. The production task execution module is used to generate and execute production tasks based on the aforementioned processing tasks, warehousing tasks, handling tasks, and outbound tasks.

[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the workpiece production task execution method according to any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute the workpiece production task execution method according to any embodiment of the present invention.

[0010] The technical solution of this invention generates processing tasks based on the workpiece identifier, processing steps, and processing time of each workpiece to be processed. It then generates at least one sequential processing batch based on the processing steps and the processing time at different processing steps, as well as the process execution batches contained within each processing batch. Based on the sequential relationship of the processing batches, it sequentially generates warehousing and outbound tasks for each processing batch. Based on each processing step within each process execution batch, it sequentially generates transport tasks for each process execution batch. Finally, it combines the processing tasks, warehousing tasks, transport tasks, and outbound tasks to generate and execute production tasks. This technical solution achieves coordinated scheduling of transport and processing tasks in the flexible manufacturing system during production task execution. It generates transport tasks batch by batch, comprehensively considering the transport operations and the executability of the equipment. It tightly integrates with the processing equipment to output work steps that can be executed by the PLC, bridging the gap where traditional algorithms cannot directly execute results. This achieves automatic generation and execution of workpiece production tasks, improving workpiece production efficiency.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a workpiece production task execution method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a milling production line provided in an embodiment of the present invention; Figure 3 This is a Gantt chart provided by an embodiment of the present invention to show the process sequence of workpiece processing; Figure 4 This invention provides a Gantt chart that displays the traversal and division of processing steps into batches. Figure 5 This invention provides a Gantt chart that displays the generation and insertion of workpiece warehousing tasks. Figure 6 This invention provides a Gantt chart illustrating the generation and insertion of workpiece loading tasks. Figure 7This is a Gantt chart provided in an embodiment of the present invention to illustrate the generation and insertion of workpiece handling tasks; Figure 8 This is a flowchart of a workpiece production task execution method provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a workpiece production task execution device provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of an electronic device that implements the workpiece production task execution method of the present invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Figure 1 This is a flowchart of a workpiece production task execution method provided in Embodiment 1 of the present invention. This embodiment is applicable to the coordinated scheduling of processing tasks and handling tasks in the task production process of a flexible manufacturing system, and the automatic generation and execution of processing tasks. This method can be executed by a workpiece production task execution device, which can be implemented in hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes: S110. Obtain the production task of the flexible manufacturing system, and analyze the production task to obtain the workpiece identifier, processing steps, and processing time of at least one workpiece to be processed.

[0017] S120. Generate processing tasks based on the identification of each workpiece, processing steps, and processing time at different processing steps.

[0018] S130. Based on each processing step and processing time, generate at least one processing batch with a sequential relationship, and at least one process execution batch contained in each processing batch.

[0019] S140. Based on the order of processing batches, generate inbound and outbound tasks for each processing batch in sequence, and generate handling tasks for each process execution batch in sequence according to each processing procedure.

[0020] S150. Generate and execute production tasks based on each processing task, warehousing task, handling task, and outbound task.

[0021] It should be noted that before automating the generation of production tasks for workpieces in a flexible manufacturing system, it is necessary to pre-model the production line equipment and generate work steps, work orders, and work order categories based on the modeling results. Existing linear modeling techniques are mainly divided into two categories: one is geometry-based modeling methods, which use CAD (Computer-Aided Design) or CAE (Computer-Aided Engineering) technology to perform three-dimensional geometric modeling of the equipment, focusing more on physical form and spatial layout, but lacking descriptions of equipment functions and operational capabilities, and cannot support scheduling algorithms; the other is feature-based modeling methods, which abstract the production line equipment into nodes with specific functions, such as processing nodes, buffer nodes, and transportation nodes. This method usually only models to the equipment level and does not refine to the specific task level that the equipment can execute, resulting in a gap between the scheduled results and the actual execution.

[0022] Regarding production task generation, existing technologies primarily rely on engineers manually writing the corresponding handling and processing tasks for each process based on technological requirements. When line equipment changes, processes are adjusted, or new products are introduced, the control program often needs to be rewritten, taking several weeks, which cannot meet the requirements of flexible manufacturing. Furthermore, before processing tasks are produced, it is necessary to pre-build the smallest task units, i.e., work orders and steps, that the line equipment, such as process equipment and handling equipment, can complete. Therefore, this embodiment provides a method for constructing a work order and step library, addressing the shortcomings of existing technologies while providing basic execution data for subsequent workpiece production tasks. In an optional embodiment, the specific construction method of the work order and step library can be as follows: Construct equipment codes for various types of equipment in the flexible manufacturing system and determine the equipment relationships between them; based on the equipment codes and relationships, generate at least one task execution step for performing handling and processing tasks; construct at least one work order for each task execution step; and generate work order categories for different processing procedures based on each work order, and construct a work order and work step library containing different work order categories.

[0023] Specifically, the various types of equipment in the flexible manufacturing system are standardized and defined, that is, equipment codes are generated for each type of equipment. For example, storage equipment can be represented by the code OW (Offline Warehouse), meaning that the equipment code for storage equipment is "OW". Storage equipment can specifically be an off-line automated warehouse used to store palletized materials. Multiple storage location types can be generated based on different storage location dimensions. For example, OW01 represents a storage equipment with a storage location size of 20*20*20cm, and OW02 represents a storage equipment with a storage location size of 30*30*30cm. Different coded storage locations can correspond to any number of actual storage location IDs (identifiers), such as "01", "02", etc.

[0024] For docking equipment, the code RP (Robot Pickup) can be used for representation; that is, the equipment code for docking equipment is "RP". Specifically, docking equipment can be a robot docking slide, used as a location for material exchange between transport equipment. The location can be classified according to material and direction, such as outbound / inbound and outbound / inbound. For example, the equipment code for docking equipment used for workpiece outbound / inbound can be "RP01", and the equipment code for docking equipment used for workpiece outbound / inbound can be "RP02".

[0025] For buffer-type devices, the encoding UB (Upstream Buffer) and / or DB (Downstream Buffer) can be used for representation. That is, the loading buffer position uses the device encoding "UB", and the unloading buffer position uses the device encoding "DB". The loading buffer position and the unloading buffer position exist in pairs and can be flexibly bound to multiple machine tools to adjust the problem of unbalanced processing time of different processes in the line.

[0026] For process equipment, a numerical code can be used, such as "15XX". Process equipment is an actuator that completes a certain process task. Sometimes there are multiple processing positions in the processing equipment, such as the internal working position of the equipment. Therefore, the processing position of the equipment can be defined as 15010, 15011, etc., but in general, there is only one processing position.

[0027] For material handling equipment, the same data coding format can be used, such as "16XX". Different types of material handling equipment use different numbers; for example, the equipment code for in-warehouse material handling equipment can be "1600", and the equipment code for online robots can be "1601". The coding method has no essential difference for the FMS system; the core is to complete the material handling task.

[0028] For loading equipment, the code OF (Offline Freight) can be used to represent it. This code is used for loading and positioning slides for warehousing raw parts and unloading finished products. In special cases, semi-finished products may also be present. Loading equipment can have multiple size types and combinations of codes. For example, a size of 20*20*20cm might correspond to the code "OF01," and a size of 30*30*30cm might correspond to the code "OF02," etc.

[0029] After coding the various devices in the flexible manufacturing system, the device relationships, or device connection relationships, between each device or device code are determined. For example, the warehouse robot 1601 is responsible for transporting materials from the loading position OF to a specific storage location in the automated warehouse OW; it is also responsible for transporting materials from the storage location to the inbound docking position RP01; and it is also responsible for transporting materials that need to be removed from the line and placed into the warehouse from the outbound docking position RP02. Therefore, the online robot 1601 is responsible for the material handling operations between any two points on the online line: RP01, RP02, RP03, UB, DB, 1501, 1502, and 1503. Based on this, the relationships between each device, such as material handling equipment, and other devices can be determined.

[0030] Since a process step is the smallest task unit that line equipment such as process equipment and handling equipment can complete, at least one task execution process step is generated to perform workpiece handling tasks and workpiece processing tasks based on the pre-built equipment codes of various types of equipment and the equipment association relationships between various types of equipment. This enables the granular adaptation from equipment execution to algorithm optimization.

[0031] Specifically, task execution steps can be differentiated based on different operation types, such as warehousing, warehousing, material loading and buffering, and machine tool loading. This facilitates the PLC (Programmable Logic Controller) in distinguishing specific operation types during subsequent execution. Using step numbers as a distinguishing factor, let's take the material handling equipment in a milling line provided by the equipment modeling layer as an example.

[0032] like Figure 2The diagram shows a model of a milling production line. The in-line robot 1600 can reach three types of positions: loading devices (OF), storage devices (OW), and docking devices (RP). The in-line robot 1601 can reach three machining positions: 15010, 15020, 15030, UB, DB, and RP. Based on the start and end positions of each task execution step, the step information is automatically generated. This step information can include step category, step number, work object, task start point, and task end point. It should be noted that when the task start point and task end point are the same, it is a machining position, and the work device is the corresponding process equipment. A step library is generated, including task execution steps for several process equipments and their corresponding step information; that is, the set of task operations that each process equipment can execute.

[0033] The start and end positions of the aforementioned task execution steps are related to the step category. For example, for the inbound step category, the start position can be the manual loading position, and the end position can be the storage location. Similarly, for the outbound line step category, the start position can be the storage location, and the end position can be the line exchange position.

[0034] Based on each task execution step, at least one step work order is constructed. It should be noted that, in general, there is a one-to-one correspondence between the step work order and the task execution step. Only when some lines are more complex and limited by the robot's travel range, such as when a handling task requires two robots to complete in relay, is the intermediate position defined as RP. For example, the machine tool loading work order "UB-(1600)-RP-(1601)-1501" requires two task execution steps, one completed by handling robot 1600 and the other by handling robot 1601. The step work order is the basic unit, and the task execution steps contained within it serve as the smallest executable unit for the equipment. The work order information corresponding to the generated step work order may include work order type, work order code, task start point, and task end point.

[0035] Based on the processes involved in the production of different products, and following fixed rules such as the execution order of the processes, work orders are combined into fixed work order categories by searching the work order steps. The rules for combining work orders into work order categories can be as follows: Taking machine tool loading in process 1 as an example, the endpoint of this work order category is the machine tool in that process, and the starting point may have multiple possibilities: 1. Loading UB01-1501 from the loading buffer position of this process; 2. Directly loading OW01-RP01-1501 from the library of this process; 3. If this process is not the first process, it may load 150x-1501 from the machine tool in the previous process; 4. If this process is not the first process, it may load DB-1501 from the unloading buffer position of the previous process. Once the endpoint and starting point are determined, corresponding work orders can be directly searched from the work order step library for combination, thus obtaining different work order combinations and constructing a work order step library containing different work order categories and work order steps under different work order categories.

[0036] When a single handling device cannot directly reach the target location (e.g., 1600 handles the warehouse and 1601 handles the line), the work order is automatically split into multiple steps. Multiple devices relay the work through the RP docking point, eliminating the need for manual planning of intermediate paths. The step code, such as 1046OW02RP03, implicitly contains the work object, start point, end point, and equipment information. After the algorithm outputs the step code, it can automatically parse it into a sequence of actions for the specific equipment, such as moving, grabbing, and placing.

[0037] The purpose of constructing the aforementioned work order and work step library is to establish a standardized modeling system for production line equipment. By defining equipment codes such as OW (storage devices), RP (interfacing devices), UB / DB (caching devices), 15XX (process devices), and 16XX (transportation devices), a unified modeling standard for equipment location and type is established. This enables semantic consistency for equipment from different manufacturers and of different types, and supports rapid configuration and modification of production line equipment. A three-layer decoupled hierarchical structure is constructed, establishing a three-layer structure of the smallest execution unit of equipment: work step, work order, and work order category. This bridges the gap between subsequent algorithm optimization and equipment execution, allowing the algorithm's output work step results to be directly converted into executable control instructions for the equipment, thus bridging the gap between algorithm and execution. Furthermore, for each process flow, such as loading, unloading, and caching, work order categories containing multiple execution paths are automatically generated, providing rich optimization options for subsequent scheduling algorithms.

[0038] In the automated production process of workpiece manufacturing tasks, the production task of the flexible manufacturing system can be a production requirement task for specific process equipment. The production task can include a workpiece identifier to identify the uniqueness of the workpiece category, as well as processing steps and processing times for different steps. It should be noted that different processing steps require different processing equipment. For example, a production line may have seven processing devices (1501-1507) and three transport devices (1600-1602). When the production task is executed on this line, processing devices 1501-1507 are used for processing, and transport devices 1600-1602 are used for transport operations during the processing.

[0039] In addition to the information mentioned above, the production task also includes workpiece quantity information, order information (such as order ID), workpiece code, priority, planned start time, and planned delivery time. For example, to process four workpieces (Test04-Test07), please refer to Table 1 for details.

[0040] Table 1 The production task may also include information such as batch production quantity, production status, operation label, and order insertion level, which will not be elaborated on in this embodiment. Different workpieces to be processed correspond to different process flows, different process flows correspond to different processing steps, and the processing equipment required for different processing steps may be the same or different, as well as the processing time may be the same or different. Based on the production task, the process flow ID, process code, process ID, equipment ID of the required processing equipment, and corresponding processing time can be determined when processing the workpiece. Continuing with the workpiece processing of the four products in the previous example, the relevant information of some processing process steps generated can be seen in Table 2.

[0041] Table 2 Table 2 above only uses a partial example of the processing flow for some workpieces. In addition, the information corresponding to each process step of each workpiece to be processed may also include process attributes, isolation time, process switching method, post-processing cache allowance, processing method, whether to skip cache positions, and machine tool clamping direction, etc. Based on the above process step information for each workpiece to be processed, the step codes or work order codes in the work order step library are traversed to search for the required work order category, work order code, and corresponding equipment ID of the processing equipment under different process flows. Continuing from the previous example, some information can be found in Table 3.

[0042] Table 3 Based on the workpiece identifier, processing steps, and processing time for each step, processing tasks are generated. These tasks can be generated using a traditional "step-machine" dual-coding mechanism, employing heuristic algorithms or models. Model inputs can include the workpiece identifier, processing steps, and the processing time required for each step on different processing equipment. It should be noted that each processing step can only be processed on one machine.

[0043] In one optional embodiment, a processing task is generated based on each workpiece identifier, processing procedure, and processing time at different processing procedures, including: generating a processing procedure sequence based on each workpiece identifier, processing procedure, and processing time at different processing procedures; obtaining the processing procedure of the workpiece to be processed and the corresponding procedure execution information from a pre-built work order procedure library based on the workpiece identifier; and generating a processing task based on the processing procedure sequence based on the processing procedure and its corresponding procedure execution information.

[0044] Specifically, the workpiece identifier, processing steps, and processing time required for each processing step on different processing equipment can be input into a pre-selected heuristic algorithm to obtain the processing step sequence output by the algorithm. The heuristic algorithm can arrange the processing steps on the corresponding equipment in a FIFO (First In, First Out) manner, that is, the processing step that is arranged first has priority on each equipment.

[0045] It should be noted that, in addition to the FIFO rule, the above-mentioned heuristic algorithm can also employ other heuristic algorithms, such as genetic algorithms. However, in actual production, genetic algorithms often require a long computation time to obtain convergence results, which contradicts the timely response requirements of the FMS line. Furthermore, on this type of line, limitations such as the number of fixtures and handling delays may prevent the maximum completion time from yielding significant benefits. The processing sequence can be the order in which each processing step of different workpieces is performed using the corresponding processing equipment at a given time point or time period. To more intuitively represent the processing sequence, this embodiment uses the above-mentioned four products (Test04-Test07), totaling 18 workpieces, as an example to generate the corresponding Gantt chart of the processing sequence, as shown below. Figure 3 As shown.

[0046] in, Figure 3 The horizontal axis represents processing time, and the vertical axis represents processing equipment. The first number in the color block represents the workpiece identifier, and the second number represents the processing step of the workpiece. For example, "4-1" in the color block represents the first processing step of workpiece number 4.

[0047] Based on the workpiece identifier, the pre-built work order and step library is used to retrieve the workpiece processing steps under the corresponding processing work order category within the processing procedure for the workpiece to be processed, along with the corresponding step execution information. The step execution information may include processing start time, processing end time, and processing duration. For example, for machine tool processing procedures involved in intermediate processes of the workpiece to be processed, the machine tool processing work order category corresponding to the machine tool processing procedure can be retrieved, along with the processing steps contained within that machine tool processing work order category and their corresponding step execution information. Based on each processing step and its corresponding step execution information, the processing task for the workpiece to be processed is generated according to the processing procedure sequence.

[0048] In the above technical solution, during the generation of processing tasks, the processing steps under the processing order category are sorted according to the processing sequence to generate an ordered processing task. A Gantt chart visually displays the processing equipment and processing time required for each workpiece at a given time point or time period for different processing steps. It should be noted that... Figure 3 The Gantt chart shown only reflects the processing tasks of the workpiece to be processed and does not include the handling tasks.

[0049] It should be noted that, due to the limited number of pallet fixtures on the actual production line, each workpiece requires one pallet fixture for processing, and different models of workpieces may require the same or different models of pallet fixtures. However, the number of different models of pallet fixtures is limited, and it is often necessary to produce workpieces in batches. Therefore, in this embodiment, the workpieces to be processed are first divided into large batches, and then the processing steps of each workpiece to be processed under the large batch are divided into small batches.

[0050] Specifically, at least one sequential processing batch is generated based on the processing steps of each workpiece and the processing time on the processing equipment required for each processing step, and each processing batch contains at least one processing step execution batch. Each processing batch includes at least one workpiece to be processed; each processing step execution batch includes at least one workpiece to be processed and its corresponding processing step. As a large batch, the processing batch has a fixed execution order, therefore it must be strictly executed according to this order. The processing step execution batch, as a smaller batch within the larger batch, can be executed sequentially according to time order or workpiece order, and does not need to strictly adhere to a specific execution order.

[0051] In an optional embodiment, the batch division process for processing batches and process execution batches involves generating at least one sequential processing batch and at least one process execution batch contained within each processing batch, based on each processing process and processing time. Determine the different pallet fixture models configured for the task execution scenario of the processing task; based on the number of pallet fixtures corresponding to each pallet fixture model and the required pallet fixture model for each workpiece to be processed, divide each workpiece to be processed into processing batches to generate at least one processing batch with a sequential relationship; for any processing batch, based on the processing steps and processing time corresponding to each workpiece to be processed in that processing batch, divide each workpiece to be processed in that processing batch into process execution batches to generate at least one process execution batch.

[0052] Taking the aforementioned 18 workpieces to be processed as an example, assuming that the actual production line corresponding to the current task execution scenario contains five different types of pallet fixtures, with a total of 12 pallet fixtures. Workpieces 7, 11, 12, 16, and 17 all require one of the five different types of pallet fixtures. Workpieces 1, 2, 3, 4, 5, 6, 8, 9, 10, 13, 14, and 15 can occupy 12 different types of pallet fixtures in the first batch of production. Since workpiece 18 requires the same type of pallet fixture as workpiece 7, and this type of pallet fixture has only one instance, workpiece 18 is assigned to the next batch separately. Based on this, the generated processing batches with sequential relationships are {{1, 2, 3, 4, 5, 6, 8, 9, 10, 13, 14, 15}, {7, 11, 12, 16, 17}, {18}}. In the subsequent handling task generation process, handling tasks for processing batches {1, 2, 3, 4, 5, 6, 8, 9, 10, 13, 14, 15}, {7, 11, 12, 16, 17} and {18} are generated sequentially.

[0053] For any given processing batch, based on the processing steps and processing times corresponding to each workpiece in that batch, the workpieces in that batch are divided into processing step execution batches, generating at least one process execution batch. The specific division criteria can be based on checking whether the processing step overlaps with other processing steps on the time axis. If so, the processing steps with overlapping times are grouped into a small batch, i.e., the process execution batch; if not, the processing steps without overlapping times are grouped into a separate small batch, and each small batch takes at most one processing step on each horizontal axis.

[0054] To further understand the batch division of processing steps, this embodiment uses the above-mentioned... Figure 3 Taking the workpiece-process color blocks in the Gantt chart as an example, iterate through all workpiece-process color blocks sequentially, see [link / reference]. Figure 4The diagram illustrates the traversal and division of processing operation batches. For example, starting from time point 0, blocks 1-1 and 4-1 enclosed by the black dotted line are processed by processing equipment 1501 for the first process of workpiece 4, and by processing equipment 1502 for the first process of workpiece 1, respectively, starting at the same time point. Therefore, blocks 1-1 and 4-1 can be assigned to the same processing operation batch. Assuming the batch number is 001, the processing operation batch 001 includes "4-1" and "1-1".

[0055] For example, blocks 1-2, 2-1, and 1-3, enclosed by the blue dotted line, are assigned to the same processing batch. Although this batch includes both the second and third processes for workpiece number 1, they belong to different time periods, and their order in the production process does not conflict. Similarly, the same rules and methods can be used to divide the processing batches corresponding to the processing steps under all workpiece processing batches, resulting in the processing batches for each step within each processing batch.

[0056] The above technical solution solves the production scheduling problem of limited pallet fixture quantity under actual physical constraints by dividing the workpieces into large batches and the processing steps of the workpieces into small batches. By producing workpieces exceeding the total number of pallet fixtures in batches, it ensures that the number of workpieces never exceeds the number of available pallet fixtures, avoiding production deadlocks or waiting crashes caused by insufficient pallet fixtures, thus enabling the continuous execution of the task scheduling process. The large batch division strategy allows for full utilization and reuse of pallet fixtures, reducing the waiting time of processing equipment caused by idle pallet fixtures, thereby improving the utilization rate of processing equipment and the turnover rate of pallet fixtures. Within each large batch, the processing steps processed simultaneously on different processing equipment are further divided into the same small batch according to the processing time cycle. The processing steps within the small batch can be transported or prepared in parallel within the same time period, thereby shortening the processing cycle of the entire batch and improving the execution efficiency of the workpiece production process.

[0057] The processing batches are traversed sequentially according to their order. Taking the first processing batch as an example, it should be noted that before scheduling begins, all workpieces to be processed are off-line. First, the workpieces in the first processing batch need to be arranged for warehousing. Specifically, the warehousing work order category can be determined based on the process flow of the workpieces to be processed, as shown in Table 3. The warehousing work order category name for the workpieces to be processed can be determined as "SP801". Based on the work order code corresponding to the warehousing work order category "SP801", the corresponding work step and its corresponding warehousing work step information, such as the executing equipment and execution time, are obtained. A warehousing task is then generated, including the warehousing work steps and their corresponding work step information for each workpiece in the first processing batch.

[0058] The inbound task should be the first among all executed tasks. To more intuitively demonstrate the generation and location of the inbound task, as well as its corresponding position or execution order with processing tasks, we can continue the previous example and display it visually in the form of a Gantt chart, as shown in the example above. Figure 5 The diagram shows the generation and insertion of Gantt charts for the warehousing tasks of each workpiece to be processed under the first processing batch.

[0059] After completing the warehousing task and inserting the task for the first processing batch, the handling tasks for each workpiece to be processed under the first processing batch are generated and inserted. Handling tasks include loading tasks, transport tasks, and unloading tasks. For example, if the processing batch includes "4-1" and "1-2", then "4-1" involves generating and inserting the loading task for the first process (the first operation) of workpiece number 4; while "1-2" involves generating and inserting the transport task for the second process (the intermediate operation) of workpiece number 1. It should be noted that the loading task for the first process of workpiece number 1 has already been generated and inserted before the transport task for the second process of workpiece number 1 is generated and inserted.

[0060] In an optional embodiment, based on each processing step, a handling task under each process execution batch is generated sequentially, including: for any processing step under any process execution batch, if the processing step is the first step, then the loading order category corresponding to the first step is determined, and a loading task is generated according to the loading order category; if the processing step is an intermediate step, then the handling order category corresponding to the intermediate step is determined, and a transportation task is generated according to the handling order category; if the processing step is the last step, then the unloading order category corresponding to the last step is determined, and an unloading task is generated according to the unloading order category.

[0061] For example, for any processing step of any workpiece under a batch of any process, the first process is the first process. In an optional embodiment, a loading task is generated according to the loading work order category, including: determining at least one loading execution strategy according to the work order code corresponding to the loading work order category; obtaining the first process status of the workpiece to be processed for the first process, and selecting a target loading execution strategy from each loading execution strategy according to the first process status; obtaining the loading execution steps and their corresponding execution information from a pre-built work order step library according to the work order code contained in the target loading execution strategy; and generating a loading task according to the loading execution steps and their corresponding execution information.

[0062] The following explanation uses the material loading task of the first process as an example. Taking the first process "4-1" of workpiece No. 4 as an example, the material loading order category corresponding to the first process OP10 is determined based on the machining process code TEST06 / 02 corresponding to workpiece No. 4. These categories are machine tool material loading order category SP806 and material loading buffer order category SP802. At least one material loading execution strategy is determined based on the order codes of machine tool material loading order category SP806 and material loading buffer order category SP802. The specific information regarding the material loading order category of the first process OP10 corresponding to machining process code TEST06 / 02 of workpiece No. 4 and the corresponding order codes is shown in Table 4.

[0063] Table 4 Based on the data shown in Table 4 above, the distinguishing criterion for the material loading execution strategy is: several consecutive work orders starting from 1 in the "Sequence" column constitute one strategy. The work order code (taking 1046OW02RP03 as an example) means: "10" represents the task object is a workpiece, "46" represents the work order code, "OW02" represents the starting position, and "RP03" represents the ending position. Therefore, since the order of the above numbers 251 and 252 is 1 and 2 respectively, and the next number 253 is 1, numbers 251 and 252 constitute a material loading execution strategy A. According to the encoding meaning of the work order codes corresponding to numbers 251 and 252, their corresponding material loading execution strategy is: if the workpiece is in the warehouse but the processing position is busy, then proceed to the buffer position UB to wait for loading.

[0064] The sequence of the above number 253 is 1, and the sequence of the next number 254 is also 1. Therefore, number 253 itself constitutes a material loading execution strategy B. According to the encoding meaning of the work order code corresponding to number 253, its corresponding material loading execution strategy is: the workpiece is in the buffer position, the processing position is idle, and the next workpiece to be processed in the processing position is this workpiece. Material loading is arranged from the buffer position UB to the processing position 15010.

[0065] The above numbers 254 and 255 are in the order of 1 and 2 respectively, while the next number 256 is in the order of 1. Therefore, 254 and 255 constitute a material loading execution strategy C. According to the coding meaning of the work order codes corresponding to numbers 254 and 255, the corresponding material loading execution strategy is as follows: if the workpiece is in the warehouse, the processing position is idle, and the next workpiece to be processed at the processing position is this workpiece, then material loading is arranged from the warehouse OW to the processing position 15010.

[0066] Based on the first workpiece process status during the time cycle of the first process, the target loading execution strategy is selected from the various loading execution strategies. Since workpiece number 4 has already been arranged to be stored, its current position is OW in the warehouse, and its corresponding first workpiece process status is waiting to be loaded at position OW in the warehouse. Therefore, the target loading execution strategy can be determined to be the aforementioned loading execution strategy C.

[0067] Based on the work order codes included in the above target material loading execution strategy, namely "10341OW02RP03" and "10441RP0315010", the material loading execution steps and their corresponding execution information are obtained from the work order step library, and the material loading task is constructed and inserted. Among them, since there are two material loading execution steps in "OW2-RP03" of work order code "10341OW02RP03", namely "OW02-(1600)-RP01+RP01-(1601)-15010", the material loading task corresponding to "4-1" contains a total of three material loading execution steps.

[0068] To more intuitively illustrate the generation and location of the loading task, as well as its corresponding position or execution order with the processing task and the aforementioned warehousing task, we can continue with the example shown in the previous Gantt chart for a more visual representation. See, for example... Figure 6 The diagram shows the generation and insertion positions of the three loading execution steps for "4-1". The loading execution step is inserted between the warehousing task and the processing task in "4-1".

[0069] In the process of generating loading tasks, the above technical solution generates several loading execution strategies based on work order codes and sequence characteristics. It also selects a target loading execution strategy that matches the current process status of the workpiece in the current time period, and generates the workpiece loading task based on the target loading execution strategy. This achieves automated generation of loading tasks and improves the accuracy of loading task generation.

[0070] After the initial material loading task is completed, processing begins. Once the processing task has been generated and inserted, the intermediate material loading and unloading transportation task is executed. Specifically, this can be done by generating a workpiece transportation task based on the transportation work order category corresponding to the intermediate process. In one optional embodiment, determining the transportation work order category corresponding to the intermediate process and generating a transportation task based on the transportation work order category includes: determining the unloading work order category corresponding to the initial process and the transportation work order category corresponding to the intermediate process as transportation work order categories; determining at least one transportation priority strategy based on the work order code corresponding to the transportation work order category; obtaining the second process status of the workpiece to be processed in the intermediate process, and selecting a target transportation execution strategy from each transportation priority strategy based on the second process status; obtaining the transportation execution steps and their corresponding execution information from a pre-built work order step library based on the work order code included in the target transportation execution strategy; and generating a transportation task based on the transportation execution steps and their corresponding execution information.

[0071] It should be noted that during the execution of material handling tasks, the material handling order categories include the material unloading order category for the first process and the transportation order categories corresponding to intermediate processes. Taking the first process "4-1" of workpiece No. 4 as an example, based on the processing technology code TEST06 / 02 corresponding to workpiece No. 4, the material unloading order category SP810 for the first process OP10 and the transportation order categories SP802 and SP806 for the intermediate processes are determined. Therefore, the material handling order categories include SP810 for OP10 and SP802 and SP806 for OP20. At least one material handling priority strategy is determined based on SP810, SP802, and SP806 under each material handling order category. For details regarding the material unloading order category for the first process OP10 and the transportation order category for the second process OP20 corresponding to the processing technology code TEST06 / 02 for workpiece No. 4, please refer to Table 5.

[0072] Table 5 Based on the data shown in Table 5 above, the distinguishing criterion for the handling priority strategy is the same as that for the material loading execution strategy. Specifically, several consecutive work orders starting from 1 in the "Sequence" column constitute one strategy. Combining Table 5 with this distinguishing criterion, four types of handling work orders can be identified.

[0073] Furthermore, the handling priority strategy is as follows: If the second process is in operation and both the loading and / or unloading buffer slots of the buffer-type equipment under the flexible manufacturing system are occupied, then a return-to-warehouse operation is performed; or, if the processing equipment of the next process corresponding to the intermediate process is in operation and the unloading buffer slot of the intermediate process is idle, then the equipment is moved to the unloading buffer slot for caching and waiting; or, if the processing equipment of the next process corresponding to the intermediate process is in operation and the loading buffer slot of the intermediate process is idle, then the equipment is moved to the loading buffer slot for caching and waiting; or, if the processing equipment of the next process corresponding to the intermediate process is idle and the workpiece to be processed by the processing equipment of the next process is a workpiece to be processed, then the equipment is moved to the processing slot of the processing equipment of the next process for waiting.

[0074] Under the SP810 work order category of the first process OP10 mentioned above, numbers 257 and 258 are in the order of 1 and 2, while the next number 259 is in the order of 1. Therefore, numbers 257 and 258 constitute a handling priority strategy A. According to the coding meaning of the work order codes corresponding to numbers 257 and 258, the handling priority strategy A is as follows: if the second process corresponding to this process is in operation, and the cache bits UB and / or DB of the cache-type equipment under the flexible manufacturing system are both occupied, then a return to the warehouse operation will be arranged.

[0075] Under the SP810 work order category of the first process OP10 mentioned above, the sequence of number 259 is 1, and the sequence of the next number 228 is also 1. Therefore, number 259 itself constitutes a material handling priority strategy B. According to the coding meaning of the work order code corresponding to number 259, the material handling priority strategy B is as follows: if the processing equipment of the next process corresponding to this process, that is, the intermediate process, is in operation, and the unloading position DB of this process is idle, then it can be moved to the unloading position DB for buffering and waiting.

[0076] Under the SP802 work order category of the intermediate process OP20 mentioned above, the sequence of number 228 is 1, and the sequence of the next number 229 is also 1. Therefore, number 228 itself constitutes a material handling priority strategy C. According to the coding meaning of the work order code corresponding to number 228, its corresponding material handling priority strategy C is as follows: if the next process processing equipment corresponding to the intermediate process is in operation, and the loading position UB of the next process is idle, it can be moved to the loading position UB for buffering and waiting.

[0077] Under the SP806 work order category of the intermediate process OP20 mentioned above, the sequence of number 232 is 1, and the sequence of the next number 233 is also 1. Therefore, number 232 itself constitutes a material handling priority strategy D. According to the coding meaning of the work order code corresponding to number 232, the material handling priority strategy D is as follows: if the processing equipment of the next process corresponding to the intermediate process is idle, and the next workpiece to be processed by the processing equipment of the next process is this workpiece, it can be directly moved from the processing position of the previous process to the processing position of the next process.

[0078] The execution priority of each of the above-mentioned handling priority strategies is determined, from highest to lowest priority: handling priority strategy D, handling priority strategy B, handling priority strategy C, and handling priority strategy A. Based on the status of the second process of workpiece No. 4 during the time cycle of the intermediate process, a target handling execution strategy is selected from the above four handling execution strategies. Specifically, since workpiece No. 4 has already been scheduled for loading and processing before the time cycle of the intermediate process, taking the current position of the workpiece 15010 as the starting point, according to the above-mentioned strategy priority selection rule, since the next process 1502 equipment is busy, but the buffer bit DB of this process is free, the above-mentioned handling priority strategy B is selected.

[0079] Based on the work order code "1053115010DB01" included in the target handling priority strategy B above, the handling execution step and its corresponding execution information are obtained from the work order step library, and a transportation task is constructed for task insertion. The same applies to other workpieces under the same processing batch, which will not be elaborated further in this embodiment.

[0080] To more intuitively illustrate the generation and location of transportation tasks, as well as their corresponding positions or execution order with processing tasks, the aforementioned warehousing tasks, and material loading tasks, we can continue with the example shown in the previous Gantt chart for a more visual representation. See, for example... Figure 7 The diagram shows the generation and insertion position of the workpiece handling step "4-1". The handling execution step is inserted after the machining task "4-1".

[0081] In the process of generating transportation tasks, the above technical solution generates several handling priority strategies based on work order codes and sequence characteristics. Based on the processing status of the workpiece in the current time period, and combined with the priority of the handling strategies, it selects a target handling execution strategy that matches its current process status from the handling priority strategies, and generates the transportation task based on the target handling execution strategy. This realizes the automated generation of transportation tasks and improves the accuracy of transportation task generation.

[0082] After completing the intermediate processes, the final processing step, also known as the finishing process or material unloading, is executed. Taking workpiece number 4 as an example, the "4-3" process is the final step in this process. Based on the workpiece's corresponding processing technology code TEST06 / 02, the corresponding material unloading order category SP810 for the third process OP30 is determined. For details regarding the material unloading order category of the third process OP20 corresponding to the processing technology code TEST06 / 02 for workpiece number 4, and the corresponding order code, please refer to Table 6.

[0083] Table 6 Based on the data shown in Table 6 above, the work order numbers for the blanking work order category SP810 corresponding to OP30 are 215 and 216, and their corresponding work order codes are "1054115060RP02" and "10361RP02OW02" respectively. Based on the blanking execution steps under the blanking work order category, a blanking task is generated. The blanking execution steps of the "4-3" blanking task are then inserted after the "4-3" processing task.

[0084] The process iterates through each workpiece in the first processing batch, generating and inserting corresponding handling tasks until the last workpiece and its corresponding processing step are reached. It then iterates through each batch of processing steps until the last batch is reached. After the last batch completes the generation and insertion of handling tasks, the first processing batch generates and inserts outbound tasks. This means that after the first large batch is processed, outbound tasks are arranged to be stored with the next batch of workpieces, enabling pallet reuse and continuous processing. The outbound work order category is SP811. The outbound operation is primarily handled by the warehouse robot 1600, which generates outbound tasks in the same way as storing inbound tasks and inserts outbound execution steps.

[0085] Based on the processing tasks, warehousing tasks, handling tasks, and outbound tasks of each workpiece to be processed, production tasks are generated and executed. Taking a specific scenario as an example, assume there are two workpiece processing batches, batch A and batch B. Batch A includes two work steps, batch a1 and batch a2, and batch B includes two work steps, batch b1 and batch b2. First, processing tasks for all workpieces are generated based on a heuristic algorithm. Second, warehousing tasks are generated for the workpieces included in the first batch A, and these warehousing tasks are inserted between the processing tasks. The handling tasks corresponding to batch a1 and batch a2 under the first batch A are generated, including loading, transporting, and unloading, etc., and the handling tasks for batch a1 and batch a2 are inserted based on the previously generated tasks. Finally, the outbound tasks for batch A are inserted. This process generates and inserts tasks for the first large batch of workpieces that have completed processing, warehousing, handling, and outbound tasks. The process of warehousing batch B, using the same task generation and insertion method as batch A, includes the workpiece handling of batches b1 and b2 under batch B, followed by the outbound processing of batch B, ultimately resulting in the production task. The production task is then executed based on the workpiece steps within it that have an execution order.

[0086] The technical solution of this invention generates workpiece processing tasks based on the workpiece identifier, processing steps, and processing time of each workpiece to be processed. It then generates at least one sequential processing batch based on the processing steps and processing times at different processing steps, along with the process execution batches contained within each processing batch. Based on the sequential relationship of the processing batches, it sequentially generates warehousing and outbound tasks for each processing batch. Based on the processing steps within each process execution batch, it sequentially generates transportation tasks for each process execution batch. Finally, it combines the processing tasks, warehousing tasks, transportation tasks, and outbound tasks to generate and execute production tasks. This technical solution achieves coordinated scheduling of transportation and processing tasks in the flexible manufacturing system during production task execution. It generates transportation tasks batch by batch, comprehensively considering the feasibility of transportation operations and equipment, and tightly integrates with the processing equipment to output work steps that can be executed by the PLC. This overcomes the gap where traditional algorithms cannot directly execute results, achieving automatic generation and execution of workpiece production tasks and improving workpiece production efficiency.

[0087] Figure 8 This is a flowchart illustrating a workpiece production task execution method according to an embodiment of the present invention. Based on the above embodiments, this embodiment provides a preferred example. Figure 8 As shown, the method includes the following steps: S81. Obtain the production task of the flexible manufacturing system, and parse the production task to obtain the workpiece identifier, processing steps, and processing time of at least one workpiece to be processed.

[0088] S82. Combining heuristic algorithms, the processing sequence is generated based on the workpiece identifier, processing steps, and processing time of the workpiece to be processed, and the processing task is generated based on the processing sequence.

[0089] S83. Based on the different pallet fixture models and corresponding quantities in the actual production line scenario, the processing batches are divided according to the pallet fixture model required by each workpiece to be processed, generating processing batches N. Each processing batch is further divided into processing steps batches, generating process execution batches M under each processing batch. It is assumed that the number of workpieces and their corresponding steps included under process execution batch M is P.

[0090] S84. Determine whether the current processing batch i is less than N. If yes, execute S85; otherwise, execute S815.

[0091] S85. Generate and insert the warehousing task for the currently executing processing batch i.

[0092] S86. Determine whether the batch j of the process executed under processing batch i is less than M. If yes, execute S87; otherwise, execute S814.

[0093] S87. Determine whether the number of processing operations k executed under batch j is less than P. If yes, execute S88; otherwise, execute S812.

[0094] S88. Perform the first task generation and insertion for processing step k.

[0095] S89. Perform intermediate task generation and insertion for processing step k.

[0096] S810, Perform task generation and insertion for the tail operation of processing operation k.

[0097] S811, k=k+1; S812, j = j + 1; S813. Generate and insert outbound tasks for the currently executing processing batch i.

[0098] S814, i = i + 1; S815. Generate and execute production tasks that include inbound tasks, transport tasks, and outbound tasks.

[0099] Traditional FMS scheduling only optimizes the sequencing of processing tasks. This technical solution, after obtaining the processing task sequence, dynamically selects the optimal handling path from pre-generated work order categories according to priority strategies for the material handling requirements of each process, such as loading, unloading, and returning to the warehouse. This achieves coordinated optimization of processing and logistics. The selection of handling strategies, such as direct loading, buffer waiting, and returning to the warehouse, is based on the current equipment status, buffer space occupancy, and subsequent process scheduling plans, rather than static presets, and can support real-time dynamic adjustments. Through a two-level batching mechanism of "large batch - small batch," the limited number of pallet fixtures is coupled with the process processing time window, maximizing pallet turnover rate while ensuring continuous production.

[0100] This technical solution decouples the NP-hard cooperative scheduling problem into two rapidly solvable subproblems: process sequencing and handling strategy selection. This meets the real-time response requirements of flexible manufacturing systems and avoids the long computation times of metaheuristic algorithms such as genetic algorithms. Furthermore, the final output is directly a machine-level process sequence, eliminating the need for manual secondary conversion and achieving seamless integration from algorithm optimization to PLC execution.

[0101] Existing technologies typically require manual pre-setting of handling plans for each process. This new approach bridges the gap between algorithm optimization and equipment task execution. Based on the operational characteristics of production line equipment and the accessibility of handling equipment, it automatically generates a work order and step library. Configuration is performed only once for different processes, automatically combining the task categories for each process step, facilitating the selection of handling strategies by the algorithm. This significantly improves the response speed of flexible manufacturing. Compared to traditional sorting algorithms, this algorithm considers the feasibility of handling operations and handling robots, and is tightly integrated with automated equipment to directly output equipment-level tasks that can be executed by the PLC, bridging the gap where traditional algorithm results cannot be directly executed. Furthermore, it significantly improves the accuracy of processing task execution.

[0102] Figure 9 This is a schematic diagram of a workpiece production task execution device provided in an embodiment of the present invention. The workpiece production task execution device provided in this embodiment of the present invention is applicable to the coordinated scheduling of processing tasks and handling tasks in the task production process of a flexible manufacturing system, and automatically generates and executes workpiece processing tasks. This workpiece production task execution device can be implemented in hardware and / or software, such as... Figure 9 As shown, the device includes: a task acquisition module 901, a processing task generation module 902, a batch generation module 903, a task generation module 904, and a production task execution module 905. Among them, The task acquisition module 901 is used to acquire the production tasks of the flexible manufacturing system and parse the production tasks to obtain the workpiece identifier, processing steps, and processing time of at least one workpiece to be processed. The processing task generation module 902 is used to generate processing tasks based on the workpiece identifiers, processing steps, and processing times at different processing steps. The batch generation module 903 is used to generate at least one processing batch with a sequential relationship and at least one process execution batch contained under each processing batch according to the processing time of each processing step. The task generation module 904 is used to generate inbound and outbound tasks for each processing batch according to the order of the processing batches, and to generate handling tasks for each process execution batch according to each processing procedure. The production task execution module 905 is used to generate and execute production tasks based on the processing tasks, warehousing tasks, handling tasks and outbound tasks.

[0103] The technical solution of this invention generates processing tasks based on the workpiece identifier, processing steps, and processing time of each workpiece to be processed. It then generates at least one sequential processing batch based on the processing steps and the processing time at different processing steps, as well as the process execution batches contained within each processing batch. Based on the sequential relationship of the processing batches, it sequentially generates warehousing and outbound tasks for each processing batch. Based on each processing step within each process execution batch, it sequentially generates handling tasks for each process execution batch. Finally, it combines the processing tasks, warehousing tasks, handling tasks, and outbound tasks to generate and execute production tasks. This technical solution achieves coordinated scheduling of handling and processing tasks in the FMS production process. It generates handling tasks batch by batch, comprehensively considering the handling operations and the executability of the equipment. It tightly integrates with the processing equipment to output work steps that can be executed by the PLC, bridging the gap where traditional algorithms cannot directly execute results. This achieves automatic generation and execution of workpiece production tasks, improving workpiece production efficiency.

[0104] Optionally, the workpiece handling task includes a loading task, a transportation task, and a unloading task; correspondingly, the task generation module 904 includes: The material loading task generation unit is used to execute any processing step under a batch for any process. If the processing step is the first step, the material loading work order category corresponding to the first step is determined, and a material loading task is generated according to the material loading work order category. The transportation task generation unit is used to determine the handling order category corresponding to the intermediate process if the processing process is an intermediate process, and generate a transportation task according to the handling order category. The material unloading task generation unit is used to determine the material unloading work order category corresponding to the final processing step if the processing step is the final processing step, and generate a material unloading task according to the material unloading work order category.

[0105] Optional, the material loading task generation unit is specifically used for: Based on the work order code corresponding to the aforementioned work order category, at least one work order execution strategy is determined; Obtain the first process state of the workpiece to be processed for the first process, and select a target loading execution strategy from each loading execution strategy based on the first process state; Based on the work order code contained in the target material loading execution strategy, the material loading execution steps and their corresponding execution information are obtained from the pre-built work order step library; A loading task is generated based on the loading execution steps and their corresponding execution information.

[0106] Optional, the transportation task generation unit is specifically used for: The material cutting work order category corresponding to the first process and the transportation work order category corresponding to the intermediate process are determined as the handling work order category. Based on the work order code corresponding to the aforementioned handling work order category, at least one handling priority strategy is determined; The second process status of the workpiece to be processed is obtained, and a target handling execution strategy is selected from each of the handling priority strategies based on the second process status. Based on the work order code contained in the target material handling execution strategy, the material handling execution steps and their corresponding execution information are obtained from the pre-built work order step library. A transportation task is generated based on the described handling steps and their corresponding execution information.

[0107] Optionally, the handling priority strategy is as follows: if the second process is in operation, and both the loading and / or unloading buffer slots of the buffer-type equipment in the flexible manufacturing system are occupied, then a return-to-warehouse operation is performed; or, If the processing equipment for the next process corresponding to the intermediate process is in operation, and the unloading buffer position of the intermediate process is idle, then the material is moved to the unloading buffer position for buffering and waiting; or, If the processing equipment for the next process corresponding to the intermediate process is in operation, and the loading buffer position of the intermediate process is idle, then the material is moved to the loading buffer position for buffering and waiting; or, If the processing equipment for the next process corresponding to the intermediate process is idle, and the workpiece to be processed by the processing equipment for the next process is a workpiece to be processed, then the equipment is moved to the processing position of the processing equipment for the next process and waits.

[0108] Optional, batch generation module 903, specifically used for: Determine the different pallet fixture models configured for the task execution scenario of the processing task; Based on the quantity of pallet clamps corresponding to each of the pallet clamp models, and based on the required pallet clamp models for each of the workpieces to be processed, the workpieces to be processed are divided into processing batches to generate at least one processing batch with a sequential relationship. For any processing batch, based on the processing steps and processing time corresponding to each workpiece to be processed in that processing batch, the workpiece to be processed in that processing batch is divided into process execution batches, generating at least one process execution batch.

[0109] Optionally, the processing task generation module 902 is specifically used for: Based on the workpiece identification, processing steps, and processing time at different processing steps, a processing sequence is generated; Based on the workpiece identifier, the processing steps of the workpiece to be processed and the corresponding execution information of the processing steps are obtained from the pre-built work order and process step library. Based on the processing steps and their corresponding execution information, a processing task is generated according to the processing sequence.

[0110] The workpiece production task execution device provided in the embodiments of the present invention can execute the workpiece production task execution method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0111] Figure 10 A schematic diagram of an electronic device 100 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0112] like Figure 10As shown, the electronic device 100 includes at least one processor 101 and a memory, such as a read-only memory (ROM) 102 and a random access memory (RAM) 103, communicatively connected to the at least one processor 101. The memory stores computer programs executable by the at least one processor. The processor 101 can perform various appropriate actions and processes based on the computer program stored in the ROM 102 or loaded into the RAM 103 from storage unit 108. The RAM 103 may also store various programs and data required for the operation of the electronic device 100. The processor 101, ROM 102, and RAM 103 are interconnected via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.

[0113] Multiple components in electronic device 100 are connected to I / O interface 105, including: input unit 106, such as keyboard, mouse, etc.; output unit 107, such as various types of displays, speakers, etc.; storage unit 108, such as disk, optical disk, etc.; and communication unit 109, such as network card, modem, wireless transceiver, etc. Communication unit 109 allows electronic device 100 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0114] Processor 101 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 101 performs the various methods and processes described above, such as the first crash event determination method for a stream processing task.

[0115] In some embodiments, the method for determining the first crash event of a stream processing task may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 108. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 100 via ROM 102 and / or communication unit 109. When the computer program is loaded into RAM 103 and executed by processor 101, one or more steps of the method for determining the first crash event of a stream processing task described above may be performed. Alternatively, in other embodiments, processor 101 may be configured to perform the method for determining the first crash event of a stream processing task by any other suitable means (e.g., by means of firmware).

[0116] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0117] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0118] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0120] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0121] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0122] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0123] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for executing a workpiece production task, characterized in that, include: The production tasks of the flexible manufacturing system are obtained and analyzed to obtain the workpiece identifier, processing steps, and processing time of at least one workpiece to be processed. Based on the workpiece identification, processing steps, and processing time for each processing step, a processing task is generated. Based on each of the processing steps and the processing time, at least one processing batch with a sequential relationship is generated, and at least one process execution batch is included under each of the processing batches; Based on the sequential relationship of the processing batches, the inbound and outbound tasks under each processing batch are generated sequentially, and the handling tasks under each process execution batch are generated sequentially according to each processing procedure. Based on the processing tasks, warehousing tasks, handling tasks, and outbound tasks, production tasks are generated and executed.

2. The method according to claim 1, characterized in that, The handling tasks include loading tasks, transportation tasks, and unloading tasks; correspondingly, handling tasks for each of the processing steps are generated sequentially according to the batches executed by each process, including: For any process, execute any processing step under a batch. If the processing step is the first step, determine the material loading order category corresponding to the first step and generate a material loading task according to the material loading order category. If the processing step is an intermediate step, then determine the type of handling work order corresponding to the intermediate step, and generate a transportation task based on the type of handling work order. If the processing step is the final step, then determine the material cutting order category corresponding to the final step, and generate a material cutting task based on the material cutting order category.

3. The method according to claim 2, characterized in that, The step of generating a loading task based on the loading work order category includes: Based on the work order code corresponding to the aforementioned work order category, at least one work order execution strategy is determined; Obtain the first process state of the workpiece to be processed for the first process, and select a target loading execution strategy from each loading execution strategy based on the first process state; Based on the work order code contained in the target material loading execution strategy, the material loading execution steps and their corresponding execution information are obtained from the pre-built work order step library; A loading task is generated based on the loading execution steps and their corresponding execution information.

4. The method according to claim 2, characterized in that, The step of determining the handling order category corresponding to the intermediate process and generating a transportation task based on the handling order category includes: The material cutting work order category corresponding to the first process and the transportation work order category corresponding to the intermediate process are determined as the handling work order category; Based on the work order code corresponding to the aforementioned handling work order category, at least one handling priority strategy is determined; The second process status of the workpiece to be processed is obtained, and a target handling execution strategy is selected from each of the handling priority strategies based on the second process status. Based on the work order code contained in the target material handling execution strategy, the material handling execution steps and their corresponding execution information are obtained from the pre-built work order step library; A transportation task is generated based on the described handling steps and their corresponding execution information.

5. The method according to claim 4, characterized in that, The handling priority strategy is as follows: If the second process is in operation, and both the loading and / or unloading buffer slots of the buffer-type equipment in the flexible manufacturing system are occupied, then a return-to-warehouse operation is performed; or, If the processing equipment for the next process corresponding to the intermediate process is in operation, and the unloading buffer position of the intermediate process is idle, then the material is moved to the unloading buffer position for buffering and waiting; or, If the processing equipment for the next process corresponding to the intermediate process is in operation, and the loading buffer position of the intermediate process is idle, then the process is executed to move the material to the loading buffer position for caching and waiting. or, If the processing equipment for the next process corresponding to the intermediate process is idle, and the workpiece to be processed by the processing equipment for the next process is a workpiece to be processed, then the equipment is moved to the processing position of the processing equipment for the next process and waits.

6. The method according to claim 1, characterized in that, The step of generating at least one processing batch with a sequential relationship based on each processing step and the processing time, and at least one process execution batch contained in each processing batch, includes: Determine the different pallet fixture models configured for the task execution scenario of the processing task; Based on the quantity of pallet clamps corresponding to each of the pallet clamp models, and based on the required pallet clamp models for each of the workpieces to be processed, the workpieces to be processed are divided into processing batches to generate at least one processing batch with a sequential relationship. For any processing batch, based on the processing steps and processing time corresponding to each workpiece to be processed in that processing batch, process execution batches are divided for each workpiece to be processed in that processing batch, generating at least one process execution batch.

7. The method according to claim 1, characterized in that, The step of generating a processing task based on the workpiece identifier, processing steps, and processing time at different processing steps includes: Based on the workpiece identification, processing steps, and processing time at different processing steps, a processing sequence is generated; Based on the workpiece identifier, the processing steps of the workpiece to be processed and the corresponding execution information of the processing steps are obtained from the pre-built work order and process step library. Based on the processing steps and their corresponding execution information, a processing task is generated according to the processing sequence.

8. A workpiece production task execution device, characterized in that, include: A task acquisition module is generated to acquire production tasks of the flexible manufacturing system and parse the production tasks to obtain at least one workpiece identifier, processing steps, and processing time for different processing steps of a workpiece to be processed. The processing task generation module is used to generate processing tasks based on the workpiece identifier, processing steps, and processing time at different processing steps. A batch generation module is used to generate at least one processing batch with a sequential relationship, and at least one process execution batch contained under each processing batch, based on each processing step and the processing time. The task generation module is used to generate inbound and outbound tasks for each processing batch according to the order of the processing batches, and to generate handling tasks for each process execution batch according to each processing procedure. The production task execution module is used to generate and execute production tasks based on the aforementioned processing tasks, warehousing tasks, handling tasks, and outbound tasks.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the workpiece production task execution method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the workpiece production task execution method according to any one of claims 1-7.