Task circulation method and device and storage medium
Through a task circulation method, select the target task that the central control system can perform and send the required task fields, solve the problem of development costs required for synchronization required by the MES system and multiple central control system interfaces, and realize low -cost integration and tasks circulation.
Patent Information
- Application Number
- CN202411381264.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the MES system needs to be synchronized with multiple central control systems, resulting in each central control system needing to develop different interfaces, consuming a lot of development costs.
Through a task transfer method, obtain the task to be executed, receive the task query instructions of the central control system, select the target task that the central control system can execute, and send the required task fields to Target task.
Different interface development between different central control systems and MES systems have eliminated, and the difficulty of integration between the MES system and the central control system has been greatly reduced, and development costs are reduced.
Smart Images

Figure CN119338172A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of manufacturing and production, and in particular to a task flow method, device and storage medium. Background Art
[0002] At present, the MES system (Manufacturing Execution System) is widely used in the manufacturing production field to track the production progress information of work orders. In the existing technology, the MES system needs to synchronize interfaces with the central control system, logistics system, etc. Interface synchronization refers to the process of data exchange and information sharing between different information systems through defined interfaces. Therefore, the MES needs to synchronize interfaces with the central control system to ensure that the work order information can be transmitted and shared in real time between these systems. An MES system will synchronize interfaces with multiple central control systems. When each central control system synchronizes interfaces with the MES, since the field information in the work orders required by different central control systems in the MES is not exactly the same, different interfaces need to be developed for different central control systems. However, with more and more central control systems, if each central control system needs to synchronize interfaces with the MES system, a lot of development costs will be consumed. Summary of the invention
[0003] The present application provides a task flow method, device and storage medium, which can eliminate the problem of different interface development between different central control systems and MES systems, greatly reduce the difficulty of integration between MES systems and central control systems, and reduce development costs.
[0004] In a first aspect, the present application provides a task flow method, comprising:
[0005] Obtain at least one task to be executed; each of the at least one task to be executed includes N task fields; receive a task query instruction sent by any central control system among multiple central control systems; the task query instruction carries M task fields required by any central control system; M is less than or equal to N; select a target task that can be executed by any central control system from the at least one task to be executed; send the M task fields required by any central control system in the target task to any central control system, so that any central control system executes the target task based on the M task fields. This can eliminate the problem of different interface development between different central control systems and MES systems, greatly reduce the difficulty of integrating the MES system with the central control system, and reduce development costs.
[0006] In one or more possible embodiments, the N task fields include a process number, and the task query instruction includes identification information of any central control system;
[0007] The selecting, from the at least one task to be executed, a target task that can be executed by any one of the central control systems comprises:
[0008] According to the correspondence between the preset process number and the identification information of the central control system, at least one candidate task including the process number corresponding to the identification information of any central control is screened out from the at least one task to be executed;
[0009] The target task is selected from the at least one candidate task. The target task that can be executed by the central control system can be determined based on the process number contained in the N task fields, the identification information of any central control system contained in the task query instruction, and the correspondence between the preset process number and the identification information of the central control system.
[0010] In one or more possible embodiments, the N task fields include a process number, and the M task fields include a target process number;
[0011] The selecting, from the at least one task to be executed, a target task executable by any one of the central control systems comprises:
[0012] According to the process number in the N task fields of each to-be-performed task, at least one candidate task including the target process number is screened out from the at least one to-be-performed task;
[0013] The target task is selected from the at least one candidate task. The target task executable by any central control system can be screened out according to the target process number corresponding to any central control system and the process number contained in the N task fields.
[0014] In one or more possible embodiments, the N task fields further include status information;
[0015] The selecting the target task from the at least one candidate task comprises:
[0016] From the at least one candidate task, select a candidate task with status information of "waiting" as the target task;
[0017] After sending the M task fields required by any central control system in the target task to any central control system, the method further includes:
[0018] Receive the state change instruction sent by any of the central control systems, and modify the state information of the target task to be in execution. According to the state information, it is possible to avoid the problem that multiple central control systems select the same target task for execution, resulting in the task not being able to flow normally.
[0019] In one or more possible embodiments, the N task fields also include priority information;
[0020] The selecting the target task from the at least one candidate task comprises:
[0021] sorting the at least one candidate task according to the priority information of the at least one candidate task;
[0022] The candidate task with the highest priority is used as the target task. According to the priorities of the candidate tasks, the candidate task with the highest priority can be selected as the target task for execution, so as to solve the problem of priority processing of work orders in the production process.
[0023] In one or more possible embodiments, the N task fields further include a task category; the task category of the at least one candidate task is the same as the task category in the M field information carried in the task query instruction. According to the task category, the tasks to be executed can be classified in a coarse-grained manner, thereby improving the efficiency of selecting candidate tasks.
[0024] In one or more possible embodiments, the N task fields further include a vehicle number;
[0025] The sending the M task fields required by any central control system in the target task to any central control system includes:
[0026] According to the vehicle number included in the target task, the vehicle number required by any one of the central control systems is sent to any one of the central control systems;
[0027] Receive the carrier number update instruction sent by any of the central control systems, and update the new carrier number carried in the carrier number update instruction to the corresponding task to be executed. This can solve the problem of inconsistency between the semi-finished product and the location information in production practice. At the same time, according to the carrier number of the semi-finished product placed on the carrier, the next task to be executed for the semi-finished product can be checked, which can greatly reduce the problems of inefficiency, error-proneness, and delay caused by manual input of wrong information or failure to confirm the location of the semi-finished product in production.
[0028] In one or more possible embodiments, the method further includes:
[0029] When a process number update instruction is received, the process number of the task to be executed indicated by the process number update instruction is updated to obtain a new task to be executed.
[0030] In one or more possible embodiments, the method further includes:
[0031] When a task deletion instruction is received, the to-be-executed task indicated by the task deletion instruction is deleted.
[0032] In a second aspect, the present application provides a task flow method, comprising:
[0033] Sending a task query instruction to the task flow system so that the task flow system determines the target task according to the task query instruction; wherein the task query instruction carries M task fields required by any central control system;
[0034] The M task fields included in the target task sent by the task flow system are received, and the target task is executed based on the M task fields.
[0035] In one or more possible embodiments, the M task fields include a vehicle number;
[0036] The executing the target task based on the M task fields includes:
[0037] Acquire the product to be processed according to the carrier number contained in the target task, and execute the target task;
[0038] Send a carrier number update instruction to the task flow system so that the task flow system updates the corresponding carrier number of the task to be executed.
[0039] In one or more possible embodiments, it further includes:
[0040] A status update instruction is sent to the task flow system, so that the task flow system changes the status information of the target task from waiting to executing.
[0041] In a third aspect, the present application provides a task flow method, including:
[0042] Generate at least one to-be-performed task according to at least one work order; wherein each to-be-performed task in the at least one to-be-performed task includes N task fields;
[0043] Sending the at least one task to be executed to a task flow system.
[0044] In one or more possible embodiments, it further includes:
[0045] Receive a target task completion instruction sent by any central control system, and determine to send a process number update instruction or a task deletion instruction to the task flow system according to the process number carried in the target task completion instruction.
[0046] In a fourth aspect, the present application provides a task transfer device, comprising: a to-be-executed task acquisition module, configured to acquire at least one to-be-executed task; each of the at least one to-be-executed task comprises N task fields;
[0047] A task query instruction receiving module, used to receive a task query instruction sent by any central control system among multiple central control systems; the task query instruction carries M task fields required by any central control system; the M is less than or equal to the N;
[0048] A target task selection module, used to select a target task that can be executed by any central control system from the at least one task to be executed;
[0049] The task field sending module is used to send the M task fields required by any central control system in the target task to any central control system, so that any central control system executes the target task based on the M task fields.
[0050] In one or more possible embodiments, the N task fields include a process number, and the task query instruction includes identification information of any central control system;
[0051] The target task selection module is specifically used to filter out at least one candidate task including a process number corresponding to the identification information of any central control system from the at least one task to be executed according to the correspondence between the preset process number and the identification information of the central control system;
[0052] The target task is selected from the at least one candidate task.
[0053] In one or more possible embodiments, the N task fields include a process number, and the M task fields include a target process number;
[0054] The target task selection module is specifically used to filter out at least one candidate task containing the target process number from the at least one task to be executed according to the process number in the N task fields of each task to be executed;
[0055] The target task is selected from the at least one candidate task.
[0056] In one or more possible embodiments, the N task fields further include status information;
[0057] The target task selection module is specifically used to select, from the at least one candidate task, a candidate task whose status information is "waiting" as the target task;
[0058] It also includes: a state change instruction receiving module, which is used to receive a state change instruction sent by any of the central control systems, and modify the state information in the target task to be in execution.
[0059] In one or more possible embodiments, the N task fields also include priority information;
[0060] The target task selection module is specifically used to sort the at least one candidate task according to the priority information of the at least one candidate task;
[0061] The candidate task with the highest priority is used as the target task.
[0062] In one or more possible embodiments, the N task fields further include a task category; the task category of the at least one candidate task is the same as the task category in the M field information carried in the task query instruction
[0063] In one or more possible embodiments, the N task fields further include a vehicle number;
[0064] The task field sending module is specifically used to send the vehicle number required by any one of the central control systems to any one of the central control systems according to the vehicle number included in the target task;
[0065] Receive a vehicle number update instruction sent by any of the central control systems, and update the new vehicle number carried in the vehicle number update instruction to the corresponding task to be executed.
[0066] In one or more possible embodiments, it further includes: a process number update instruction receiving module, which is used to update the process number of the task to be executed indicated by the process number update instruction when receiving the process number update instruction, so as to obtain a new task to be executed.
[0067] In one or more possible embodiments, the method further includes: a task deletion instruction receiving module, which is used to delete the to-be-executed task indicated by the task deletion instruction when receiving the task deletion instruction.
[0068] In a fifth aspect, the present application provides a task transfer device, which is applied to any central control system, including:
[0069] A task query instruction sending module is used to send a task query instruction to the task flow system, so that the task flow system determines the target task according to the task query instruction; wherein the task query instruction carries M task fields required by any central control system;
[0070] The task field receiving module is used to receive the M task fields contained in the target task sent by the task flow system, and execute the target task based on the M task fields.
[0071] In one or more possible embodiments, the M task fields include a vehicle number;
[0072] The task field receiving module is specifically used to obtain the product to be processed according to the carrier number contained in the target task and execute the target task; send a carrier number update instruction to the task flow system so that the task flow system updates the corresponding carrier number of the task to be executed.
[0073] In one or more possible embodiments, the method further includes: a status update instruction sending module, configured to send a status update instruction to the task flow system, so that the task flow system changes the status information of the target task from waiting to executing.
[0074] In a sixth aspect, the present application provides a task flow device, applied to an MES system, comprising: a to-be-executed task generation module, configured to generate at least one to-be-executed task according to at least one work order; wherein each of the at least one to-be-executed task comprises N task fields;
[0075] The to-be-executed task sending module is used to send the at least one to-be-executed task to the task flow system.
[0076] In one or more possible embodiments, it also includes: a target task completion instruction receiving module 703, which is used to receive a target task completion instruction sent by any central control system, and determine to send a process number update instruction or a task deletion instruction to the task flow system based on the process number carried in the target task completion instruction.
[0077] In a seventh aspect, the present application provides a task flow device, the device comprising:
[0078] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method as described in any one of the first aspect, the second aspect, and the third aspect.
[0079] In an eighth aspect, the present application provides a storage medium storing a computer program, wherein the computer program is used to enable a computer to execute the method as described in any one of the first aspect, the second aspect and the third aspect.
[0080] The present application provides a task flow method, device and storage medium, which can eliminate the problem of different interface development between different central control systems and MES systems, greatly reduce the difficulty of integration between MES systems and central control systems, and reduce development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0082] Figure 1 A task flow chart applied to a task flow system according to an embodiment;
[0083] Figure 2 A task flow chart applied to a central control system according to an embodiment;
[0084] Figure 3 A task flow chart applied to an MES system according to an embodiment is provided;
[0085] Figure 4 An interactive task flow chart provided according to an embodiment;
[0086] Figure 5 A schematic diagram of a device applied to a task flow system according to an embodiment;
[0087] Figure 6 A schematic diagram of a task device applied to a central control system according to an embodiment;
[0088] Figure 7 A schematic diagram of a device applied to an MES system according to an embodiment;
[0089] Figure 8 A schematic diagram of an electronic device provided according to an embodiment;
[0090] Fig. 9 A schematic diagram of a storage medium provided according to an embodiment. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0092] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0093] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0094] The following is an introduction to the professional terms involved in this application:
[0095] MES (Manufacturing Execution System) is an information system specifically used for real-time monitoring, management and optimization of manufacturing production processes. The MES system plays an important role in the manufacturing industry. It connects the company's high-level management system and the underlying production equipment control system, playing a connecting role.
[0096] Central Control System (CCS) usually refers to a system used to centrally manage and control the production process. The CCS plays a core role in the manufacturing industry. It can integrate data from different devices and systems and provide a unified operation interface to help operators and managers monitor and control the production process in real time.
[0097] LES (Logistics Execution System) is an information system specifically used to manage and optimize logistics operations. It is mainly responsible for coordinating and controlling various activities in the logistics process, including warehouse management, transportation management, order fulfillment, etc. The LES system is usually used in large manufacturing companies and third-party logistics companies to improve logistics efficiency, reduce costs and increase customer satisfaction.
[0098] At present, the MES system (Manufacturing Execution System) is widely used in the manufacturing production field to track the production progress information of work orders. In the existing technology, the MES system needs to synchronize interfaces with the central control system, logistics system, etc. Interface synchronization refers to the process of exchanging data and sharing information through defined interfaces between different information systems. Therefore, the MES needs to synchronize interfaces with the central control system to ensure that the work order information can be transmitted and shared between these systems in real time. An MES system will synchronize interfaces with multiple central control systems. When each central control system synchronizes interfaces with the MES, since the field information in the work order required by different central control systems in the MES is not exactly the same, different systems need to be developed for different central control systems. However, as more and more central control systems are added, if each central control system needs to synchronize its interface with the MES system, a lot of development costs will be consumed; for example, the central control system needs to obtain tasks from the MES system. The field information in the task is determined by the MES system based on the work order. The field information required by the first central control system includes the process number and the task number. Therefore, for the interaction between the first central control system and the MES system, interface synchronization is required, that is, customizing the interface for interaction between the two systems. Only then can the MES system send data to the first central control system for data transmission. Therefore, each central control system needs to synchronize its interface with the MES system to ensure the flow of data.
[0099] Based on the above problems, the present application provides a task flow method, device and storage medium, which can eliminate the problem of needing to develop different interfaces between different central control systems and MES systems, greatly reduce the difficulty of integrating MES systems with central control systems, and reduce development costs.
[0100] Example 1
[0101] This application provides a task flow method, such as Figure 1 As shown, it is applied to the task flow system, including:
[0102] Step 101, obtaining at least one task to be executed; each of the at least one task to be executed includes N task fields;
[0103] In one or more possible embodiments, the at least one task to be executed is generated by the MES system according to the corresponding work order. The task flow system needs to obtain at least one task to be executed from the MES system. One work order can only generate one task to be executed. One task to be executed includes N task fields, and the above-mentioned task fields are also generated based on the information contained in the work order. The work order is an important document used to record and manage work tasks in factory production, and contains all relevant information required to complete the production task.
[0104] For example, a general work order will contain the following information: work order number: each work order has a unique number to distinguish different work orders; creation date: the date and time the work order was created; expected completion date; the current status of the work order, such as "new", "in progress", "paused", "completed", etc.; priority: the priority of the work order, which is used to determine the execution order of tasks; product information: the specific product name, model, specifications, etc. to be produced; production quantity: the quantity to be produced; the process flow or operating steps to be followed during the production process; the process parameters to be controlled during the production process, such as temperature, pressure, time, etc.; the production equipment to be used, etc.
[0105] Step 102, receiving a task query instruction sent by any central control system among the multiple central control systems; the task query instruction carries M task fields required by any of the central control systems; the M is less than or equal to the N;
[0106] Step 103, selecting a target task that can be executed by any of the above central control systems from the above at least one task to be executed;
[0107] In one or more possible embodiments, the task flow system interacts with multiple central control systems, and any central control system can send a task query instruction to the task flow system. The central control system will send a task query instruction only when it is in an idle state. That is to say, the central control system will send a task query instruction to the task flow system to obtain a new target task only after completing a target task. During the process of the central control system executing the target task, it will not send a task query instruction to the task flow system; the task flow system selects the target task that can be executed by any of the above central control systems from the above at least one task to be executed based on the M task fields required by the corresponding central control system carried in the task query instruction.
[0108] Step 104: sending the M task fields required by any of the above central control systems in the above target task to any of the above central control systems, so that any of the above central control systems executes the above target task based on the M task fields.
[0109] In one or more possible embodiments, after the task flow system determines the target task that any central control system can execute, it sends the M task fields required by any of the above central control systems to any of the above central control systems based on the N task fields contained in the above target task. Then, any of the above central control systems can execute the above target task based on the above M task fields, that is, process the product.
[0110] According to a task flow method provided in the present application, the problem of needing to develop different interfaces between different central control systems and MES systems can be eliminated, thereby greatly reducing the difficulty of integrating the MES system with the central control system and reducing development costs.
[0111] In one or more possible embodiments, the N task fields contain process numbers, and the task query instructions contain identification information of any one of the central control systems; the target task that can be executed by any one of the central control systems is selected from the at least one task to be executed, including: based on the correspondence between a preset process number and the identification information of the central control system, at least one candidate task containing a process number corresponding to the identification information of any one of the central control systems is screened out from the at least one task to be executed; and the target task is selected from the at least one candidate task. For example, each of the N task fields in the task to be executed contains a process number, for example, the process number of the first task to be executed is 2, the process number of the second task to be executed is 1, and the process number of the third task to be executed is 2, and the task query instruction contains the identification information A of any one of the above-mentioned central control systems; and the correspondence between the preset process number and the identification information of the central control system is that process number 1 corresponds to identification information A, and process number 2 corresponds to identification information B. Therefore, based on the correspondence between the identification information A of any one of the above-mentioned central control systems contained in the task query instruction and the identification information A corresponding to process number 1 and identification information B corresponding to process number 2, the second task to be executed can be determined as a candidate task. If multiple candidate tasks are selected, the above-mentioned target task can also be selected from the multiple candidate tasks according to other conditions.
[0112] In one or more possible embodiments, the N task fields contain process numbers, and the M task fields contain target process numbers; the above-mentioned selecting the target task that can be executed by any of the above-mentioned central control systems from the above-mentioned at least one task to be executed includes: according to the process numbers in the N task fields of each task to be executed, at least one candidate task containing the target process number is screened out from the above-mentioned at least one task to be executed; and the above-mentioned target task is selected from the above-mentioned at least one candidate task. For example, the N task fields in each task to be executed contain process numbers, for example, the process number of the first task to be executed is 2, the process number of the second task to be executed is 1, and the process number of the third task to be executed is 2, and the task query instruction contains the target process number 2 of any of the above-mentioned central control systems; thus, at least one task to be executed can be directly screened according to the target process number 2 contained in the task query instruction, and the first task to be executed and the third task to be executed can be determined as candidate tasks, and then one task to be executed can be selected from the first task to be executed and the third task to be executed as the target task.
[0113] In one or more possible embodiments, the N task fields further include status information; the selecting the target task from the at least one candidate task includes: selecting a candidate task whose status information is "waiting" from the at least one candidate task as the target task;
[0114] After sending the M task fields required by any of the above central control systems in the above target task to any of the above central control systems, the method further includes: receiving a status change instruction sent by any of the above central control systems, and modifying the status information in the above target task to being executed.
[0115] After at least one candidate task is determined according to the process number, the status of the candidate task can be determined according to the status information in the candidate task. If the status information of the candidate task is waiting, it means that the candidate task can be selected as the target task and then executed by the central control system. If the status information of the candidate task is executing, it means that the candidate task has been selected by other central control systems, and the central control system that sends the task selection instruction cannot select the candidate task with the status information of executing.
[0116] After it is determined that the M task fields required by any of the above-mentioned central control systems in the above-mentioned target task are sent to any of the above-mentioned central control systems, any of the above-mentioned central control systems will execute the above-mentioned target task based on the above-mentioned M task fields. When it is determined that any of the above-mentioned central control systems executes the above-mentioned target task, any of the above-mentioned central control systems will send a status change instruction to the task flow system, and then the task flow system will change the status information of the target task from waiting to executing according to the above-mentioned status change instruction; this can avoid the situation where multiple central control systems repeatedly select a task to be executed, causing problems in task flow.
[0117] In one or more possible embodiments, the N task fields also include priority information; the above-mentioned selecting the above-mentioned target task from the above-mentioned at least one candidate task includes: sorting the above-mentioned at least one candidate task according to the priority information of the above-mentioned at least one candidate task; and taking the candidate task with the highest priority as the above-mentioned target task. For example, after at least one candidate task is determined according to the process number, the candidate tasks can be sorted according to their priorities, and then the candidate task with the highest priority can be taken as the above-mentioned target task; or, the generation time of the candidate task can be used as the corresponding priority, and the earlier the generation time of the candidate task, the higher the corresponding priority, and then the candidate task with the earliest generation time can be taken as the target task.
[0118] For example, in the prior art, if a new urgent task A appears, the workers can only be notified to complete the online tasks and not start other tasks for the time being, and wait for the issuance of work order A. Each central control system, that is, the production line, will give priority to executing the task of work order A, but this will lead to uncertainty in information transmission and time waste caused by production line pauses; however, the central control tasks in this application will execute the corresponding tasks to be executed sequentially according to the priority in the task field. Therefore, if a new urgent task A appears, the priority of urgent task A will be set to the highest, and no notification is required. The central control system will automatically execute urgent task A. The central control system does not need to pause, and there is no need to communicate information between personnel to meet the urgent insertion task.
[0119] In one or more possible embodiments, the N task fields also include a task category; the task category of the at least one candidate task is the same as the task category in the M field information carried in the task query instruction. The task category is generally used to determine whether the task to be executed is a production task or a quality inspection task. Before determining the candidate task according to the process number in the task field, a coarse-grained classification can be performed, and then at least one candidate task is determined according to the process number; in the existing method, at some important production nodes, quality personnel need to intervene for quality inspection. At this time, the central control system and the quality system need to work together to determine the production flow, such as: if the quality inspection is qualified, the work order flows directly to the next process; if the quality inspection is unqualified, the work order needs to flow to a special production line for problem repair, and then flow back to the next process after the problem is repaired. Here, the production line central control can transfer the control of the work order task to the quality system by changing the task category, thereby realizing cross-system collaboration; the task category in this application is used to identify whether the task to be executed is a production task or a quality inspection task, so that both the central control system and the quality system can receive different tasks according to the task category, and can participate in the logic of workshop production at the same time, each performing its duties without intrusion.
[0120] In one or more possible embodiments, the N task fields mentioned above also include a carrier number; the M task fields required by any of the above central control systems in the above target task are sent to any of the above central control systems, including: sending the carrier number required by any of the above central control systems to any of the above central control systems according to the carrier number included in the above target task; receiving a carrier number update instruction sent by any of the above central control systems, and updating the new carrier number carried in the carrier number update instruction to the corresponding task to be executed. The change in the carrier number represents the change in the storage location of the semi-finished physical object of the work order. The carrier number, as a binding medium between information and physical objects, can be used to locate the physical object of the carrier through the carrier number, and can also be used to reversely query the task through the carrier number. For example: the central control system can call the LES system to transport the physical object of the specified carrier number through the information of the task to be executed, thereby executing the production task; or, when there are multiple physical objects around, scan the QR code on the carrier to obtain the corresponding carrier number to determine the corresponding task information, thereby executing the production task.
[0121] In the prior art, in the entire production process corresponding to the work order, the binding relationship between the physical object and the work order, and the storage location of the physical object all need to be manually confirmed. That is to say, the MES system can only track the information flow, but cannot track the entity. Therefore, it is often the case that the worker holds the physical object but does not know which node in the corresponding production process it corresponds to, or that the physical object cannot be found when a task at a certain node is to be performed. Ultimately, the production process depends entirely on the workers' personal experience and self-discipline. This can be achieved through human management in simple production processes, but for complex production processes, it is easier to make mistakes in the production process, resulting in limited production processes. The carrier number in this application can solve the problem of inconsistency between the physical semi-finished product and the location information in production practice. At the same time, the next task to be performed for the physical semi-finished product can be checked based on the carrier number of the physical semi-finished product placed on the carrier, which can greatly reduce the problems of inefficiency, error-proneness, and delay caused by manual input of erroneous information or inability to confirm the location of the physical semi-finished product in production.
[0122] In one or more possible embodiments, the method further includes:
[0123] When a process number update instruction is received, the process number of the pending task indicated by the process number update instruction is updated to obtain a new pending task. The process number update instruction will carry the work order number and / or product number to determine the only pending task to be updated to avoid update errors. When the MES system receives a process report from any central control system, it will execute the corresponding work order's own business logic, judge and obtain the downstream process information based on the process flow information, and then send the process number update instruction to the task flow system. The change of the process number in the task flow system represents the change of the process node to be executed by the work order, that is, a new pending task is obtained and is waiting to be selected and executed.
[0124] When a task deletion instruction is received, the pending tasks indicated by the above task deletion instruction are deleted. When the MES system receives a process report from any central control system, it will execute the corresponding work order's own business logic, and judge that the work order has been completed based on the process flow information. If there are no downstream processes, the current product offline is a finished product and is directly transferred to the finished product warehouse. A task deletion instruction is sent to remove the corresponding pending tasks from the task flow system, and the task is completed; corresponding to the actual execution life cycle of a work order production, its addition and removal represent the issuance and end of the work order respectively.
[0125] According to the above-mentioned task flow method, data statistics can also be performed on the tasks to be executed, and the various indicator data of the central control system, that is, the production line, can be obtained based on the statistical data, such as bottleneck production lines, idle production lines, overall production saturation, average production line beat, etc.; the overall production saturation can be determined using the following formula, saturation = number of production lines with tasks / total number of production lines; the average production line beat can be determined based on: average beat = (sum of all historical reporting times - sum of all historical start times) / number of historical reporting times, and other indicator data are not described in detail.
[0126] Example 2
[0127] The present application also provides a task flow method, which is applied to any central control system, such as Figure 2 As shown, including:
[0128] Step 201, sending a task query instruction to the task flow system, so that the task flow system determines the target task according to the task query instruction; wherein the task query instruction carries M task fields required by any of the central control systems;
[0129] Step 202: Receive the M task fields contained in the target task sent by the task transfer system, and execute the target task based on the M task fields.
[0130] In one or more possible embodiments, the task flow system interacts with multiple central control systems, and any central control system can send a task query instruction to the task flow system. The central control system will send a task query instruction only when it is in an idle state. That is to say, the central control system will send a task query instruction to the task flow system to obtain a new target task only after completing a target task. During the process of the central control system executing the target task, it will not send a task query instruction to the task flow system; then, the M task fields contained in the target task sent by the task flow system are obtained according to the task query instruction, and the target task is executed based on the M task fields.
[0131] In one or more possible embodiments, the above-mentioned M task fields include a carrier number; the above-mentioned execution of the above-mentioned target task based on the above-mentioned M task fields includes: obtaining the product to be processed according to the carrier number contained in the above-mentioned target task, and executing the above-mentioned target task; sending a carrier number update instruction to the above-mentioned task circulation system, so that the above-mentioned task circulation system updates the corresponding carrier number of the task to be executed. The central control system calls the LES system to transport the physical object with the specified carrier number according to the carrier number in the target task, so as to execute the production task; it can also scan the QR code on the carrier to obtain the corresponding carrier number to determine the corresponding task information when there are multiple physical objects around, so as to execute the production task; it is worth noting that if the above-mentioned target task is the first task to be executed corresponding to any work order, the above-mentioned carrier number should be empty. At this time, the central control system can directly process according to the raw materials; if the carrier number is not empty, the semi-finished product in the corresponding carrier is obtained and processed. When the central control system starts processing, it can send an instruction to clear the carrier number to clear the carrier number in the corresponding target task, so that the corresponding carrier can go to other places in the project processed by the central control system to work; when the central control system completes the execution of the target task, it can load the processed physical object into the carrier, and send the carrier number corresponding to the carrier to the above-mentioned task flow system through the carrier number update instruction, so that the above-mentioned task flow system can update the corresponding carrier number of the task to be executed.
[0132] In one or more possible embodiments, a status update instruction is sent to the task flow system so that the task flow system changes the status information of the target task from waiting to executing. When it is determined that any central control system executes the target task, any central control system will send a status change instruction to the task flow system, and then the task flow system will change the status information of the target task from waiting to executing according to the status change instruction; this can avoid the situation where multiple central control systems repeatedly select a task to be executed, causing problems in task flow.
[0133] Example 3
[0134] This application also provides a task flow method, which is applied to the MES system, such as Figure 3 As shown, including:
[0135] Step 301, generating at least one to-be-performed task according to at least one work order; wherein each of the at least one to-be-performed task includes N task fields;
[0136] Step 302: Send the at least one task to be executed to the task flow system.
[0137] In one or more possible embodiments, a work order can only generate one pending task, and a pending task includes N task fields, which are also generated based on the information contained in the work order. A general work order will include the following information: work order number: each work order has a unique number to distinguish different work orders; creation date: the date and time when the work order was created; expected completion date; current status of the work order, such as "new", "in progress", "paused", "completed", etc.; priority: the priority of the work order, which is used to determine the execution order of the tasks; product information: the specific product name, model, specification, etc. to be produced; production quantity: the quantity to be produced; the process flow or operating steps to be followed during the production process; the process parameters to be controlled during the production process, such as temperature, pressure, time, etc.; the production equipment to be used, etc. For example, the task fields included in the pending task can be: work order number, process number, product number, carrier number, status information, etc., which can be specifically set according to the actual situation and will not be described in detail here.
[0138] In one or more possible embodiments, it also includes: receiving a target task completion instruction sent by any central control system, and determining to send a process number update instruction or a task deletion instruction to the task flow system according to the process number carried in the target task completion instruction. When the MES system receives a process report from any central control system, that is, after receiving a target task completion instruction sent by any central control system, it will execute the corresponding work order's own business logic according to the process number carried in the target task completion instruction, and will judge and obtain the downstream process information according to the process flow information, or, if the work order has been completed and there is no downstream process, then send the corresponding process number update instruction or task deletion instruction to the task flow system.
[0139] like Figure 4 The figure shows the interaction flow chart between the task flow system, any central control system and the MES system for a work order, including:
[0140] Step 401, the MES system generates a task to be executed according to the work order and sends it to the task flow system;
[0141] Step 402, any central control system sends a task query instruction to the task flow system;
[0142] Step 403, the task flow system sends M task fields required for the target task to any central control system;
[0143] Step 404, any central control system executes the target task based on the M task fields required by the target task;
[0144] Step 405: After any central control system completes the target task, it sends a vehicle number update instruction to the task transfer system;
[0145] Step 406, the task flow system receives the vehicle number update instruction sent by any of the above central control systems, and updates the new vehicle number carried in the above vehicle number update instruction to the corresponding task to be executed;
[0146] Step 407, any central control system sends a target task completion instruction to the MES system;
[0147] Step 408: The MES system determines whether to send a process number update instruction or a task deletion instruction to the task flow system according to the process number carried in the target task completion instruction.
[0148] Example 4
[0149] The present application provides a task flow device, which is applied to a task flow system, such as Figure 5 As shown, including:
[0150] The to-be-executed task acquisition module 501 is used to acquire at least one to-be-executed task; each of the at least one to-be-executed task includes N task fields;
[0151] The task query instruction receiving module 502 is used to receive a task query instruction sent by any central control system among the multiple central control systems; the task query instruction carries M task fields required by any central control system; the M is less than or equal to the N;
[0152] A target task selection module 503 is used to select a target task that can be executed by any of the above central control systems from the above at least one task to be executed;
[0153] The task field sending module 504 is used to send the M task fields required by any of the above central control systems in the above target task to any of the above central control systems, so that any of the above central control systems performs the above target task based on the above M task fields.
[0154] In one or more possible embodiments, the N task fields include a process number, and the task query instruction includes identification information of any of the central control systems;
[0155] The target task selection module 503 is specifically used to filter out at least one candidate task including a process number corresponding to the identification information of any of the central control systems from the at least one task to be executed according to the correspondence between the preset process number and the identification information of the central control system;
[0156] The target task is selected from the at least one candidate task.
[0157] In one or more possible embodiments, the N task fields contain process numbers, and the M task fields contain target process numbers;
[0158] The target task selection module 503 is specifically used to select at least one candidate task containing the target process number from the at least one task to be executed according to the process number in the N task fields of each task to be executed;
[0159] The target task is selected from the at least one candidate task.
[0160] In one or more possible embodiments, the N task fields further include status information;
[0161] The target task selection module 503 is specifically configured to select, from the at least one candidate task, a candidate task with status information of "waiting" as the target task;
[0162] It also includes: a state change instruction receiving module 505, which is used to receive a state change instruction sent by any of the above central control systems, and modify the state information of the above target task to being executed.
[0163] In one or more possible embodiments, the N task fields also include priority information;
[0164] The target task selection module 503 is specifically used to sort the at least one candidate task according to the priority information of the at least one candidate task;
[0165] The candidate task with the highest priority is taken as the above target task.
[0166] In one or more possible embodiments, the N task fields further include a task category; the task category of the at least one candidate task is the same as the task category in the M field information carried in the task query instruction.
[0167] In one or more possible embodiments, the N task fields further include a vehicle number;
[0168] The task field sending module 504 is specifically used to send the vehicle number required by any of the above central control systems to any of the above central control systems according to the vehicle number included in the above target task;
[0169] Receive a vehicle number update instruction sent by any of the above-mentioned central control systems, and update the new vehicle number carried in the above-mentioned vehicle number update instruction to the corresponding task to be executed.
[0170] In one or more possible embodiments, it further includes: a process number update instruction receiving module 506, which is used to update the process number of the task to be executed indicated by the process number update instruction when receiving the process number update instruction, so as to obtain a new task to be executed.
[0171] In one or more possible embodiments, the method further includes: a task deletion instruction receiving module 507, which is used to delete the to-be-executed task indicated by the task deletion instruction when receiving the task deletion instruction.
[0172] Example 5
[0173] This application provides a task flow device, such as Figure 6 As shown, it is applied to any central control system, including:
[0174] The task query instruction sending module 601 is used to send a task query instruction to the task flow system, so that the task flow system determines the target task according to the task query instruction; wherein the task query instruction carries M task fields required by any of the above central control systems;
[0175] The task field receiving module 602 is used to receive the M task fields contained in the target task sent by the task transfer system, and execute the target task based on the M task fields.
[0176] In one or more possible embodiments, the M task fields include a vehicle number;
[0177] The task field receiving module 602 is specifically used to obtain the product to be processed according to the carrier number contained in the above-mentioned target task, and execute the above-mentioned target task; send a carrier number update instruction to the above-mentioned task flow system, so that the above-mentioned task flow system updates the corresponding carrier number of the task to be executed.
[0178] In one or more possible embodiments, it further includes: a status update instruction sending module 603, which is used to send a status update instruction to the above-mentioned task flow system, so that the above-mentioned task flow system changes the status information of the above-mentioned target task from waiting to executing.
[0179] Example 6
[0180] The present application also provides a task flow device, such as Figure 7 As shown, it is applied to the MES system, including:
[0181] The to-be-executed task generating module 701 is used to generate at least one to-be-executed task according to at least one work order; wherein each of the at least one to-be-executed task includes N task fields;
[0182] The to-be-executed task sending module 702 is used to send the at least one to-be-executed task to the task flow system.
[0183] In one or more possible embodiments, it also includes: a target task completion instruction receiving module 703, which is used to receive a target task completion instruction sent by any central control system, and determine to send a process number update instruction or a task deletion instruction to the above-mentioned task flow system based on the process number carried in the above-mentioned target task completion instruction.
[0184] Example 7
[0185] The present application also provides a task flow device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned task flow method.
[0186] like Figure 8 As shown, the device includes a processor 801, a memory 802, a communication interface 803 and a bus 804. The processor 801, the memory 802 and the communication interface 803 are connected to each other via the bus 804.
[0187] The processor 801 is used to read and execute instructions in the memory 802, so that at least one processor can execute the task flow method provided by the above embodiment.
[0188] The memory 802 is used to store various instructions and programs of the task flow method provided in the above embodiment.
[0189] The bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0190] The processor 801 may be a central processing unit (CPU), a network processor (NP), a graphic processing unit (GPU), or any combination of CPU, NP, and GPU. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0191] Example 8
[0192] The present application also provides a storage medium, such as Fig. 9 As shown, the storage medium stores a computer program, and the computer program is used to enable a computer to execute any one of the methods in the above embodiments.
[0193] The memory may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 901 and / or a cache memory 902 , and may further include a read-only memory (ROM) 903 .
[0194] The memory may also include a program / utility 905 having a set (at least one) of program modules 904, such program modules 904 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0195] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0196] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0197] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0198] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0199] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A task transfer method, characterized in that: include: Get at least one task to be executed; Each of the at least one to-be-performed task includes N task fields; Receiving a task query instruction sent by any central control system among the multiple central control systems; the task query instruction carries M task fields required by any central control system; the M is less than or equal to the N; Selecting a target task that can be executed by any central control system from the at least one task to be executed; The M task fields required by any central control system in the target task are sent to any central control system, so that any central control system executes the target task based on the M task fields.
2. The method according to claim 1, characterized in that: The N task fields include process numbers, and the task query instruction includes identification information of any central control system; The selecting, from the at least one task to be executed, a target task executable by any one of the central control systems comprises: According to the correspondence between the preset process number and the identification information of the central control system, at least one candidate task including the process number corresponding to the identification information of any central control is screened out from the at least one task to be executed; The target task is selected from the at least one candidate task.
3. The method according to claim 1, characterized in that The N task fields contain process numbers, and the M task fields contain target process numbers; The selecting, from the at least one task to be executed, a target task executable by any one of the central control systems comprises: According to the process number in the N task fields of each to-be-performed task, at least one candidate task including the target process number is screened out from the at least one to-be-performed task; The target task is selected from the at least one candidate task.
4. The method according to claim 2 or 3, characterized in that: The N task fields also include status information; The selecting the target task from the at least one candidate task comprises: From the at least one candidate task, select a candidate task with status information of "waiting" as the target task; After sending the M task fields required by any central control system in the target task to any central control system, the method further includes: Receive a status change instruction sent by any of the central control systems, and modify the status information in the target task to be in execution.
5. The method according to claim 2 or 3, characterized in that: The N task fields also include priority information; The selecting the target task from the at least one candidate task comprises: sorting the at least one candidate task according to the priority information of the at least one candidate task; The candidate task with the highest priority is used as the target task.
6. The method according to claim 2 or 3, characterized in that: The N task fields also include a task category; the task category of the at least one candidate task is the same as the task category in the M field information carried in the task query instruction.
7. The method according to claim 2 or 3, characterized in that: The N task fields also include a vehicle number; The sending the M task fields required by any central control system in the target task to any central control system includes: According to the vehicle number included in the target task, the vehicle number required by any one of the central control systems is sent to any one of the central control systems; Receive a vehicle number update instruction sent by any of the central control systems, and update the new vehicle number carried in the vehicle number update instruction to the corresponding task to be executed.
8. The method according to claim 2 or 3, characterized in that: The method further comprises: When a process number update instruction is received, the process number of the task to be executed indicated by the process number update instruction is updated to obtain a new task to be executed; When a task deletion instruction is received, the to-be-executed task indicated by the task deletion instruction is deleted.
9. A task transfer method, characterized in that: include: Sending a task query instruction to the task flow system so that the task flow system determines the target task according to the task query instruction; wherein the task query instruction carries M task fields required by any central control system; The M task fields included in the target task sent by the task flow system are received, and the target task is executed based on the M task fields.
10. A task transfer method, characterized in that: include: Generate at least one to-be-performed task according to at least one work order; wherein each to-be-performed task in the at least one to-be-performed task includes N task fields; Send the at least one task to be executed to a task flow system.
11. A task flow device, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute any one of the methods of claims 1-8 or 9 or 10.
12. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to make a computer execute any one of the methods according to claims 1-8 or 9 or 10.
Citation Information
Patent Citations
Task scheduling method, device and system
CN113760480A
Data query method and device, server, system and storage medium
CN113946723A
Auxiliary operation method and device for work order system, electronic equipment and storage medium
CN114186972A
Control method for production system, processor, computer equipment and medium
CN116224927A
Task control method and device, equipment and storage medium
CN117518966A