Label printing method, manufacturing execution system, equipment and storage medium

Automated label printing using pre-configured templates and real-time data integration addresses inefficiencies and errors in manual methods, improving adaptability and reducing costs.

CN120315658APending Publication Date: 2025-07-15赛美特信息集团股份有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510365865.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

In the prior art, the customized development cycle of label printing is long and costly, and it is difficult to cope with changes in production processes and label requirements. Manual design and printing are inefficient and error-prone.

Method used

The tag template is generated through the tag production software, and fixed parameters are configured using preset assignment rules, and the template is bound to the application scenario. Dynamic parameters are obtained and the target template is automatically retrieved for printing. It supports template storage and management in the form of files and codes, and realizes tag ID binding and detailed information recording.

Benefits of technology

Improves flexibility and efficiency of label printing, ensures content accuracy and real-time, reduces human errors, and reduces costs and cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120315658A_ABST
    Figure CN120315658A_ABST
Patent Text Reader

Abstract

The invention provides a label printing method, a manufacturing execution system, equipment and a storage medium, and the manufacturing execution system generates a plurality of label templates through label making software and an instruction language; configuring a fixed parameter for each label template through a preset assignment rule, and binding each label template with the application scene to which the label template belongs; when label printing is carried out, dynamic parameters are obtained, and a target label template is called according to a current application scene; and a to-be-printed label is generated based on the dynamic parameters, the target label template and the fixed parameters of the target label template, and the to-be-printed label is sent to a printer for label printing. By adopting the method, the label printing cost is reduced, the label printing period is shortened, and the label printing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated manufacturing, and in particular, to a label printing method, a manufacturing execution system, a device, and a storage medium. Background Art

[0002] In modern manufacturing, label printing is a crucial link in the production process. Product labels can not only provide basic information about the product, such as name, specification, batch number, production date, etc., but also be used for product traceability, quality control, and logistics management. With the continuous development of manufacturing, the types of products are increasing, the production process is becoming more complex, and customers' requirements for labels are also becoming more diverse. Therefore, efficient, accurate, and flexible label printing management is of great significance for improving production efficiency, ensuring product quality, and meeting customer needs.

[0003] Currently, when manufacturing enterprises perform label printing, they usually conduct customized development of labels according to user requirements, then manually design label templates with the help of label-making software (such as BarTender, CodeSoft, etc.), and manually input label content during printing. However, it is found in the research that although the customized development of labels can meet specific production requirements, it has a long development cycle, high cost, and is difficult to cope with changes in the production process and label requirements. And the method of manually designing and printing labels requires a lot of manpower and time, and is prone to human errors, especially when the number of labels is large, the efficiency is extremely low. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a label printing method, a manufacturing execution system, a device, and a storage medium to reduce the cost and cycle during label printing and improve the efficiency of label printing.

[0005] In a first aspect, an embodiment of the present application provides a label printing method, which is applied to a manufacturing execution system. The method includes:

[0006] Generating a number of label templates through label-making software and instruction language;

[0007] Configuring fixed parameters for each label template according to a preset assignment rule and binding each label template to its corresponding application scenario;

[0008] When performing label printing, obtaining dynamic parameters and retrieving a target label template according to the current application scenario;

[0009] Generating a label to be printed based on the dynamic parameters, the target label template, and its fixed parameters, and sending the label to be printed to a printer for label printing.

[0010] Optionally, the method further includes:

[0011] Uploading the label template in the form of a file to a file server for storage backup;

[0012] Directly maintaining the label template in the form of code in the manufacturing execution system.

[0013] Optionally, the preset assignment rule includes at least one of the following methods:

[0014] SQL query assignment, sequence rule generation assignment, Lot associated field assignment, and time format assignment.

[0015] Optionally, the application scenario includes the following scenario dimensions:

[0016] Customer, product, process, process flow, and production step.

[0017] Optionally, after the to-be-printed label generated based on the dynamic parameter, the target label template, and its fixed parameters, the method further includes:

[0018] Configuring a label ID for each to-be-printed label, binding each to-be-printed label and its label ID, and storing them in a database;

[0019] In response to the target label ID input by the user, retrieving the target to-be-printed label corresponding to the target label ID from the database;

[0020] Sending the target to-be-printed label to the printer for label printing.

[0021] Optionally, after sending the to-be-printed label to the printer for label printing, the method further includes:

[0022] Recording the detailed information of each label printing, where the detailed information includes printing time, template name, parameter value, and step information;

[0023] Generating a label resume based on the detailed information of each label printing.

[0024] Optionally, after binding each label template with its corresponding application scenario, the method further includes:

[0025] Determining the classification scenario dimension for label grouping;

[0026] Grouping the label templates belonging to the same classification scenario dimension into one group to form several label template groups;

[0027] Binding each label template group with its corresponding classification scenario dimension and storing them;

[0028] In response to the user's selection of the target classification scenario dimension, each label template in the label template group corresponding to the target classification scenario dimension is displayed to the user.

[0029] In a second aspect, an embodiment of the present application provides a manufacturing execution system, and the system includes:

[0030] A label template generation module, configured to generate a plurality of label templates through label production software and instruction language;

[0031] An application scenario binding module, configured to configure fixed parameters for each label template according to a preset assignment rule, and bind each label template to its belonging application scenario;

[0032] A label template retrieval module, configured to obtain dynamic parameters when performing label printing, and retrieve a target label template according to the current application scenario;

[0033] A label printing module, configured to send the to-be-printed label generated based on the dynamic parameters, the target label template, and its fixed parameters to a printer for label printing.

[0034] Optionally, the label template is in the form of a file or code: The system further includes:

[0035] A label template backup module, configured to upload the label template in the form of a file to a file server for storage and backup;

[0036] A label template maintenance module, which directly maintains the label template in the form of code in the manufacturing execution system.

[0037] Optionally, the preset assignment rule includes at least one of the following methods:

[0038] SQL query assignment, sequence rule generation assignment, Lot associated field assignment, and time format assignment.

[0039] Optionally, the application scenario includes the following scenario dimensions:

[0040] Customer, product, process, process flow, and production step.

[0041] Optionally, the system further includes:

[0042] A label storage module, configured to configure a label ID for each to-be-printed label after generating the to-be-printed label based on the dynamic parameters, the target label template, and its fixed parameters, bind each to-be-printed label and its label ID, and store them in a database;

[0043] A label retrieval module, configured to retrieve a target label to be printed corresponding to the target label ID from the database in response to a target label ID input by a user;

[0044] A label reprinting module, configured to send the target label to be printed to the printer for label printing.

[0045] Optionally, the system further includes:

[0046] A detailed information recording module, configured to record detailed information of each label printing after sending the label to be printed to the printer for label printing, where the detailed information includes printing time, template name, parameter value, and process step information;

[0047] A label history generation module, configured to generate a label history based on the detailed information of each label printing.

[0048] Optionally, the system further includes a label module management module, and the label module management module is configured to:

[0049] After binding each label template with its corresponding application scenario, determine a classification scenario dimension for label grouping;

[0050] Group label templates belonging to the same classification scenario dimension into one group to form several label template groups;

[0051] After binding each label template group with its corresponding classification scenario dimension, store them;

[0052] In response to a user's selection of a target classification scenario dimension, display each label template in the label template group corresponding to the target classification scenario dimension to the user.

[0053] In a third aspect, an embodiment of the present application provides a computer device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the label printing method in any optional implementation manner in the first aspect are executed.

[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the label printing method in any optional implementation manner in the first aspect are executed.

[0055] The technical solutions provided by the present application include but are not limited to the following beneficial effects:

[0056] This application uses label-making software and instruction language to create a variety of label templates, which can flexibly adapt to the requirements of different application scenarios. Subsequently, through preset assignment rules, necessary fixed parameters are configured for each label template, and these parameters constitute the basic information of the label. At the same time, each label template is closely bound to its specific application scenario to ensure that when it is necessary to print labels, the most suitable template for the current requirements can be quickly and accurately found. During the actual printing process, the system can automatically obtain the required dynamic parameters, such as the current date, time, or specific serial number, etc. These dynamic parameters are combined with the fixed parameters in the label template to jointly form the complete label information. Subsequently, the system generates the labels to be printed based on this information and sends them to the printer for automated printing.

[0057] This process not only greatly improves the flexibility and efficiency of label production but also ensures the accuracy and timeliness of label content. By reducing human intervention, the error rate is lowered, making the entire label printing process smoother and more efficient. Furthermore, it reduces the cost and cycle time of label printing and improves the efficiency of label printing.

[0058] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following specific preferred embodiments are given and described in detail in conjunction with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0060] Figure 1 Shows the flowchart of a label printing method provided by Embodiment 1 of the present invention;

[0061] Figure 2 Shows the flowchart of a label reprinting method provided by Embodiment 1 of the present invention;

[0062] Figure 3 Shows the flowchart of a label resume generation method provided by Embodiment 1 of the present invention;

[0063] Figure 4 Shows the flowchart of a label template management method provided by Embodiment 1 of the present invention;

[0064] Figure 5 Shows the schematic diagram of a label printing process provided by Embodiment 1 of the present invention;

[0065] Figure 6 It shows a schematic structural diagram of a label printing system provided in the second embodiment of the present invention;

[0066] Figure 7 It shows a schematic structural diagram of a computer device provided in the third embodiment of the present invention. Detailed implementation manners

[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, rather than all, of the embodiments of the present invention. Usually, the components of the embodiments of the present invention described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0068] Embodiment 1

[0069] For the convenience of understanding the present application, the following will Figure 1 describe the first embodiment of the present application in detail with reference to the content described in the flowchart of a label printing method provided in the first embodiment of the present invention shown.

[0070] Refer to Figure 1 as shown, Figure 1 It shows a flowchart of a label printing method provided in the first embodiment of the present invention, where the method includes steps S101 to S104:

[0071] S101: Generate a number of label templates through label making software and instruction languages.

[0072] Specifically, before label printing, professional label making software and instruction languages are used to create different types of label templates. The label making software includes BarTender, Codesoft, and Zebra, and the label making instruction languages include ZPL instructions and Html codes. After the label templates are made using BarTender, Codesoft, and Zebra software, they will be saved in the form of files, while after the label templates are made using ZPL instructions and Html codes, they will be saved in the form of codes.

[0073] S102: Configure fixed parameters for each label template according to a preset assignment rule, and bind each label template to its corresponding application scenario.

[0074] Specifically, after generating the label templates, fixed parameters need to be configured for these templates. The preset assignment rules include methods such as SQL query assignment, sequence rule generation assignment, Lot associated field assignment, and time format assignment. Taking SQL query assignment as an example, specific data can be queried from the database as fixed parameters; sequence rule generation assignment can generate incrementing serial numbers as parameters according to certain rules. Through these rules, appropriate fixed parameters can be assigned to each label template.

[0075] At the same time, the label template needs to be bound to its corresponding application scenario. The application scenarios cover dimensions such as customers, products, processes, process flows, and production steps. For example, if a certain label template is designed specifically for a particular product of a certain customer, then this template is bound to that customer and the product, so as to ensure that the corresponding label template is used in the appropriate scenario.

[0076] S103: When performing label printing, obtain dynamic parameters and retrieve the target label template according to the current application scenario.

[0077] Specifically, when entering the label printing process, first, dynamic parameters need to be obtained. Dynamic parameters refer to the parameters that are determined only during printing, and they may come from real-time production data, system status, or user input, etc. Then, according to the current application scenario, the target label template is retrieved from the previously bound label templates. For example, during a specific production step of a certain product, the system will determine the application scenario based on the current product information, process step information, etc., and then find the corresponding label template.

[0078] S104: Based on the to-be-printed label generated from the dynamic parameters, the target label template, and its fixed parameters, send the to-be-printed label to the printer for label printing.

[0079] Specifically, after obtaining the dynamic parameters and retrieving the target label template, the dynamic parameters are combined with the fixed parameters of the target label template to generate the final to-be-printed label. This process is actually filling the dynamic data into the label template to form the complete label content. Finally, the generated to-be-printed label is sent to the specified printer, and the printer completes the label printing work.

[0080] Through this series of steps, it is possible to efficiently and accurately print out the labels that meet the requirements according to different application scenarios and dynamic data.

[0081] In an optional implementation, the label template is in the form of a file or code, and the method further includes:

[0082] Upload the label template in the form of a file to the file server for storage and backup.

[0083] Specifically, in the label templates generated by label-making software, some exist in the form of files, such as the specific format files generated by BarTender software. These files contain detailed design information such as the style, layout, font, and graphics of the labels. Uploading these label templates in the form of files to a file server for storage and backup has important significance in many aspects.

[0084] From the perspective of data security, file servers usually have perfect data storage and protection mechanisms, which can prevent the loss or damage of label template files caused by factors such as local device failures (such as hard disk damage, system crashes), and human errors (such as accidental deletion, accidental modification). By storing on the file server, it is equivalent to providing a reliable copy of the label template data, ensuring that it can be restored and used at any time when needed.

[0085] From the perspective of management and sharing, the file server can centrally manage all label template files, facilitating unified query, retrieval, and sharing by relevant personnel. Employees in different departments, such as the production department, quality control department, etc., can obtain the required label templates from the file server as long as they have the corresponding permissions, improving work efficiency and information circulation.

[0086] Maintain the label template in code form directly in the manufacturing execution system.

[0087] Specifically, the label template in code form is written using instruction languages (such as ZPL, HTML, etc.), and these templates precisely define the content and layout of the labels in the form of code. Maintaining the label template in code form directly in the manufacturing execution system (MES) has the advantages of flexibility and real-time performance.

[0088] The manufacturing execution system is the core management system of the entire production process, directly interacting with production equipment, production data, etc. Maintaining the label template in code form in MES can quickly modify and adjust the label template according to real-time production requirements and changes. For example, when the product specifications change and certain information needs to be added or modified on the label, developers can directly edit the label template in code form in the MES system without the need for complex file upload and update operations like dealing with file-form templates.

[0089] In addition, maintaining label templates in the form of codes in the MES system is conducive to integration with other production links. The MES system can dynamically call and modify label templates according to the real-time changes of production data. For example, when there are special requirements for the products of a certain production batch, the MES system can automatically adjust the label templates in the form of codes according to the preset rules to ensure that the printed labels accurately reflect the actual situation of the products. At the same time, this integration method also facilitates the management and traceability of the versions of label templates, ensuring that the label templates used in different production stages are correct and consistent.

[0090] In an optional implementation, the preset assignment rules include at least one of the following methods:

[0091] SQL query assignment, sequence rule generation assignment, Lot-related field assignment, and time format assignment.

[0092] Specifically, SQL query assignment is to query data from the database using SQL statements and use the query results as the parameter values of the label template. In the actual application scenarios of the manufacturing execution system, a large amount of production-related data is stored in the database, such as product information, customer information, order information, etc. By writing appropriate SQL query statements, the required parameters can be extracted from these data.

[0093] Sequence rule generation assignment is to generate a series of regular numerical values or strings according to the preset rules and use them as the parameter values of the label template. Such rules can be simple increasing or decreasing sequences, or sequences with specific formats. For example, in the production process, a unique serial number is assigned to each product label. An increasing sequence rule with a starting value of 1 and a step size of 1 can be set. When generating labels, the system will generate serial numbers 1, 2, 3... in sequence according to this rule and assign them to the serial number parameter in the label template.

[0094] Lot-related field assignment refers to the production batch. Lot-related field assignment is to assign the field information related to the production batch to the label template. In the production process, products of the same batch usually have some common attributes, such as production date, production shift, raw material batch, etc. By assigning these Lot-related field information to the label template, the batch information to which the product belongs can be clearly displayed on the label. For example, a certain batch of products uses raw materials of a specific batch, and its raw material batch number is "RAW-20250317". When generating the label for this batch of products, the raw material batch number, which is a Lot-related field, is assigned to the corresponding parameter position in the label template. In this way, the raw material batch information used by the product will be displayed on the printed label, which helps to trace and investigate in case of quality problems.

[0095] Time format assignment means assigning the current time or a specific time point to a label template according to a specified format. During the production process, time information is very important and can be used to record the production time, shelf life, shipping time, etc. of products. For example, to display the production date of a product on a label, the current time can be assigned to the production date parameter in the label template according to the format "yyyy-MM-dd". In Python, the following code can be used to achieve this:

[0096] These preset assignment rules can be used alone or in combination to meet the diverse requirements of different label templates for parameter assignment.

[0097] In an optional implementation, the application scenarios include the following scenario dimensions:

[0098] Customers, products, processes, process flows, and production steps.

[0099] Specifically, the customer scenario dimension mainly focuses on the association between the use of labels and specific customers. Different customers may have different requirements and preferences, and there will be differences in label content, format, design, etc. For example, some customers may require their company logo or specific contact information to be prominently displayed on the label; some customers have specific regulations on label size, color, font, etc. By binding the label template to the customer dimension, when producing products for a specific customer, the system can automatically retrieve the label template that meets the requirements of that customer for printing, thereby meeting the personalized needs of customers and enhancing customer satisfaction.

[0100] The product dimension distinguishes the application scenarios of label printing according to different products. Different products have different attributes and characteristics, and the label needs to accurately reflect this information. For example, the label of an electronic product may need to contain product model, specification parameters, production date, serial number, etc.; the label of a food product should contain ingredient list, shelf life, storage conditions, etc. After binding the label template to the product dimension, when producing different products, the system can automatically select the appropriate label template according to the product information to ensure that the content on the label is consistent with the actual situation of the product.

[0101] Process refers to the manufacturing processes and process stages in the product production process. Different processes may require different label information to assist production and management. For example, in the assembly process of a product, the label may need to contain assembly steps, parts list, etc. to guide workers to perform assembly operations correctly; in the inspection process of a product, the label may need to display inspection results, inspectors, etc. By associating the label template with the process dimension, the system can print labels that meet the requirements of each process stage for the product during different process stages, improving production efficiency and quality control levels.

[0102] The process flow refers to the detailed steps and sequence of the entire production process of a product from raw materials to finished products. Different process flows may correspond to different production requirements and management needs, so different label information is required. For example, for products using different production processes (such as casting, forging, machining, etc.), information such as process type and process parameters may need to be reflected on the label. Binding the label template to the process flow dimension can ensure that under different process flows, the printed labels can accurately reflect the production process and related information of the product, facilitating the monitoring and traceability of the production process.

[0103] A production step is a specific operation step in the process flow. Each production step may have its unique requirements and information that need to be recorded on the label. For example, during the production process of a complex product, a specific production step may require specific identification of the product or recording of the operation results. By binding the label template to the production step dimension, the system can print a label containing information related to that step, such as operation time, operator, operation results, etc., for the product after each production step is completed, which helps to achieve refined management and quality traceability of the production process.

[0104] By binding the label template to these scenario dimensions, the manufacturing execution system can automatically select the appropriate label template for printing according to the specific production situation, improving the accuracy and efficiency of label printing and meeting the production management needs in different scenarios.

[0105] In an alternative embodiment, refer to Figure 2 as shown Figure 2 shows a flowchart of a label reprinting method provided in Embodiment 1 of the present invention. After generating the labels to be printed based on the dynamic parameters, the target label template and its fixed parameters, the method further includes steps S201 to S203:

[0106] S201: Configure a label ID for each label to be printed, bind each label to be printed and its label ID, and store them in the database.

[0107] Specifically, after generating the labels to be printed based on the dynamic parameters, the target label template and its fixed parameters, in order to better manage and track these labels, the system will assign a unique label ID to each label to be printed to ensure that each label has a unique identifier in the system. Then the system will bind the label to be printed and the corresponding label ID, and then store this binding relationship in the database. As a centralized data storage and management system, the database can safely and reliably save this information. In this way, subsequent operations such as querying, modifying, and deleting labels can be conveniently performed according to the label ID, and at the same time, it is also convenient to statistically analyze the usage of labels.

[0108] For example, in a large-scale manufacturing enterprise, a large number of labels to be printed are generated every day. After configuring a label ID for each label and storing it in the database, the enterprise can clearly understand information such as the generation time, affiliated product, and usage status of each label, which helps improve the efficiency and accuracy of production management.

[0109] S202: In response to the target label ID input by the user, retrieve the target label to be printed corresponding to the target label ID from the database.

[0110] Specifically, when the user needs to print a specific label again, they only need to input the target label ID of the label. The system will respond to the label ID input by the user and search and match it in the database. The database will quickly locate the corresponding record based on the input label ID, and then retrieve the target label to be printed associated with that record from the database. This process utilizes the powerful query and retrieval functions of the database and can accurately find the required label information in a short period of time.

[0111] For example, during the production process, if the label of a certain product is damaged or lost, the operator can input the ID of the label, and the system can quickly retrieve the corresponding label from the database, avoiding the cumbersome process of regenerating the label and improving work efficiency.

[0112] S203: Send the target label to be printed to the printer for label printing.

[0113] Specifically, after successfully retrieving the target label to be printed from the database, the system will send the label to the designated printer. After receiving the label information, the printer will perform the printing operation according to the preset printing format and parameters, and finally print out the label.

[0114] This step completes the conversion from data to physical objects, converting the electronic label information stored in the database into an actual usable label made of paper or other materials. In this way, users can conveniently reprint the previously generated labels to ensure that the label requirements during the production process are met in a timely manner.

[0115] In summary, steps S201 - S203 provide a flexible and efficient way for label management and printing. Through the configuration of label IDs and the storage in the database, the traceability of labels and the convenient reprinting function are achieved, which helps improve the quality and efficiency of production management.

[0116] In an alternative implementation, as shown in Figure 3 shown, Figure 3The flowchart of a label history generation method provided by Embodiment 1 of the present invention is shown. After the label to be printed is sent to the printer for label printing, the method further includes steps S301 to S302:

[0117] S301: Record the detailed information of each label printing. The detailed information includes printing time, template name, parameter values, and process step information.

[0118] Specifically, after each label printing operation is completed, the system records the detailed information of this printing process.

[0119] Printing time: Record the specific time of label printing, accurate to year, month, day, hour, minute, and second. This helps to understand the production time nodes, analyze the production efficiency in different time periods, and at the same time, when problems occur, the relevant production batches and links can be quickly located according to the time information.

[0120] Template name: Specify which label template is used for printing. Different label templates correspond to different products, customers, or production scenarios. Recording the template name can help to confirm whether the printed labels meet the requirements, and when it is necessary to modify the label content, the corresponding template can be quickly found for adjustment.

[0121] Parameter values: The specific values of the dynamic and fixed parameters used in the label printing process. These parameters may include important information such as product specifications, batch numbers, production dates, etc. Recording the parameter values can ensure the accuracy of the information on the label, and when it is necessary to verify or modify the label information later, an accurate reference basis can be provided.

[0122] Process step information: Record the production process step at which the label printing is located. The production process usually consists of multiple process steps, and each process step has its specific requirements and tasks. Recording the process step information can help to understand the position of label printing in the entire production process, analyze the label printing situation under different process steps, and promptly discover and adjust possible problems.

[0123] S302: Generate a label history based on the detailed information of each label printing.

[0124] Specifically, after collecting the detailed information of each label printing, the system will integrate and organize this information to generate a label resume, which records the whole process of label generation to printing in an orderly and queryable manner. Through the label resume, it is convenient to trace and analyze the usage of labels. For example, if an error or doubt is found in the label information of a certain product during the product quality inspection, the printing time of the label, the used template, parameter values, and the process step where it is located can be quickly understood by querying the label resume, so as to find out the root cause of the problem. At the same time, the label resume can also be used for statistical analysis, such as analyzing the printing quantity of labels in different time periods, the usage frequency of different templates, etc., providing data support for production management, and helping enterprises optimize the production process, improve production efficiency and quality.

[0125] In summary, steps S301 and S302 construct a complete label printing information recording and tracing system, which helps enterprises achieve refined production management and quality control.

[0126] In an optional implementation, refer to Figure 4 as shown Figure 4 shows a flowchart of a label template management method provided in Embodiment 1 of the present invention. After binding each label template to its corresponding application scenario, the method further includes steps S401 to S404:

[0127] S401: Determine the classification scenario dimension for label grouping.

[0128] Specifically, when managing a large number of label templates, in order to improve management efficiency and facilitate users to search and use, it is necessary to group the label templates. First, the classification scenario dimensions need to be determined. These dimensions are based on the previously mentioned application scenarios, such as customers, products, processes, process flows, and production steps, etc. Enterprises can select appropriate dimensions as the classification basis according to their own business needs and management focuses.

[0129] For example, if an enterprise pays more attention to the label requirements of different customers, then "customer" can be selected as the classification scenario dimension; if the enterprise's production process is complex and the labels of different processes are quite different, then "process" may be a more suitable classification dimension. By clarifying the classification scenario dimensions, a clear standard is provided for subsequent label grouping.

[0130] S402: Group the label templates belonging to the same classification scenario dimension into one group to form several label template groups.

[0131] Specifically, after determining the classification scenario dimension, the system will screen and group the existing label templates according to this dimension. For example, if "customer" is selected as the classification dimension, the system will traverse all label templates and group the label templates belonging to the same customer into one group. In this way, multiple label template groups are formed, and the label templates within each group are related to the same classification scenario dimension.

[0132] Taking customer A as an example, all label templates designed for customer A will be grouped into one group, and this group represents all label templates related to customer A. Through this grouping method, a large number of label templates are effectively classified, making the management of label templates more orderly.

[0133] S403: After binding each label template group to its corresponding classification scenario dimension, store them.

[0134] Specifically, after completing the grouping of label templates, the system will bind each label template group to the corresponding classification scenario dimension. For example, bind the label template group corresponding to customer A to the classification scenario dimension of "customer A". Then, store this binding relationship in the database.

[0135] The database will record the classification scenario dimension to which each label template group belongs, as well as the specific label template information included in the group. Such a storage method is convenient for subsequent query and management, ensuring that the label template group related to a specific classification scenario dimension can be quickly and accurately found when needed.

[0136] S404: In response to the user's selection of the target classification scenario dimension, display each label template in the label template group corresponding to the target classification scenario dimension to the user.

[0137] Specifically, when the user needs to find label templates under a specific classification scenario dimension, the user will select the target classification scenario dimension in the system. For example, if the user wants to view all label templates related to customer B, the user will select the classification scenario dimension of "customer B".

[0138] After receiving the user's selection, the system will, according to the previously stored binding relationship, retrieve the label template group corresponding to the target classification scenario dimension from the database. Then, display all label template information in the label template group to the user. The user can intuitively see all label templates under this classification scenario dimension, which is convenient for selection and use.

[0139] Through steps S401 - S404, the effective grouping, storage, and display of label templates are realized, improving the management efficiency of label templates, facilitating the user to quickly find the required label templates, and meeting the production needs under different scenarios.

[0140] In order to better illustrate the label printing method provided by this application, see Figure 5 As shown, Figure 5 A schematic diagram of a label printing process provided by the first embodiment of the present invention is shown, wherein, after the process starts, label template maintenance and label template management are performed with the help of BarTender, Codesoft, Zebra, ZPL, and HTML tools. When performing label template management, label file upload and instruction maintenance operations are performed for the label template type; at the same time, label parameter management is carried out, and parameter management mainly includes configuring dynamic parameters. Configuring dynamic parameters can be achieved through SQL rules, sequence rules, Lot rules, and time rules, respectively, SQL values, sequence rules, Lot information values, and time values; then, in combination with label group management, label template dimension association is performed to establish associations between the label template and the five dimensions of product process route, step, and customer; then, the printing of the Lot production step is triggered, and the label reprinting function is supported; finally, a label history record is generated to mark the end of the process, forming a complete closed loop from template maintenance to printing records, ensuring the standardization and traceability of each link of label printing.

[0141] Embodiment 2

[0142] See also Figure 6 As shown, Figure 6 A schematic diagram of the structure of a label printing system provided by Embodiment 2 of the present invention is shown, wherein the system comprises:

[0143] The label template generation module 601 is used to generate a number of label templates through label making software and instruction language;

[0144] The application scenario binding module 602 is used to configure fixed parameters for each label template according to a preset assignment rule, and bind each label template to the application scenario to which it belongs;

[0145] The label template calling module 603 is used to obtain dynamic parameters and call the target label template according to the current application scenario when printing labels;

[0146] The label printing module 604 is used to generate the label to be printed based on the dynamic parameters, the target label template and its fixed parameters, and send the label to be printed to the printer for label printing.

[0147] In an optional embodiment, the label template is in a file form or a code form: the system further comprises:

[0148] The label template backup module is used to upload the label template in file form to the file server for storage and backup;

[0149] The label template maintenance module directly maintains the label template in the form of code in the manufacturing execution system.

[0150] In an optional implementation, the preset assignment rules include at least one of the following methods:

[0151] SQL query assignment, sequence rule generation assignment, Lot associated field assignment, and time format assignment.

[0152] In an optional implementation, the application scenarios include the following scenario dimensions:

[0153] Customers, products, processes, process flows, and production steps.

[0154] In an optional implementation, the system further includes:

[0155] The label storage module is used to configure a label ID for each label to be printed after generating the labels to be printed based on the dynamic parameters, the target label template, and its fixed parameters, and store the labels to be printed and their label IDs in the database after binding them;

[0156] The label retrieval module is used to retrieve the target label to be printed corresponding to the target label ID from the database in response to the target label ID input by the user;

[0157] The label reprinting module is used to send the target label to be printed to the printer for label printing.

[0158] In an optional implementation, the system further includes:

[0159] The detailed information recording module is used to record the detailed information of each label printing after sending the label to be printed to the printer for label printing, where the detailed information includes the printing time, template name, parameter values, and step information;

[0160] The label history generation module is used to generate a label history based on the detailed information of each label printing.

[0161] In an optional implementation, the system further includes a label module management module, and the label module management module is used for:

[0162] After binding each label template with its corresponding application scenario, determining the classification scenario dimensions for label grouping;

[0163] Dividing the label templates belonging to the same classification scenario dimension into one group to form several label template groups;

[0164] After binding each label template group with its corresponding classification scenario dimension, storing them;

[0165] In response to the user's selection of the target classification scenario dimension, each label template in the label template group corresponding to the target classification scenario dimension is displayed to the user.

[0166] Embodiment III

[0167] Based on the same inventive concept, refer to Figure 7 as shown Figure 7 Fig. shows a schematic structural diagram of a computer device provided in Embodiment III of the present invention. Among them, as Figure 7 shown, a computer device 700 provided in Embodiment III of the present application includes:

[0168] A processor 701, a memory 702, and a bus 703. The memory 702 stores machine-readable instructions executable by the processor 701. When the computer device 700 runs, the processor 701 communicates with the memory 702 through the bus 703. When the machine-readable instructions are run by the processor 701, the steps of the label printing method shown in Embodiment I above are executed.

[0169] Embodiment IV

[0170] Based on the same inventive concept, the present application embodiment also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the label printing method described in any one of the above embodiments are executed.

[0171] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0172] The computer program product for label printing provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, refer to the method embodiments, and will not be elaborated herein.

[0173] The label printing system provided by the embodiments of the present invention can be specific hardware on a device or software or firmware installed on the device, etc. For the system provided by the embodiments of the present invention, its implementation principle and the technical effects produced are the same as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the system embodiments, reference can be made to the corresponding content in the foregoing method embodiments. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the foregoing-described systems, devices, and units can all refer to the corresponding processes in the above method embodiments, and will not be elaborated herein.

[0174] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0175] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0176] In addition, each functional unit in the embodiments provided by the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0177] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks and other various media that can store program codes.

[0178] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0179] Finally, it should be noted that the above-described embodiments are only specific embodiments of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or make equivalent replacements for some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A label printing method, characterized in that, Applied to a manufacturing execution system, the method includes: Generating a number of label templates through label production software and instruction language; Configuring fixed parameters for each label template according to preset assignment rules, and binding each label template to its corresponding application scenario; When performing label printing, obtaining dynamic parameters and retrieving a target label template according to the current application scenario; Generating a label to be printed based on the dynamic parameters, the target label template and its fixed parameters, and sending the label to be printed to a printer for label printing.

2. The method according to claim 1, characterized in that, The label template is in the form of a file or code, and the method further includes: Uploading the label template in the form of a file to a file server for storage backup; Directly maintaining the label template in the form of code in the manufacturing execution system.

3. The method according to claim 1, characterized in that The preset assignment rules include at least one of the following methods: SQL query assignment, sequence rule generation assignment, Lot associated field assignment, and time format assignment.

4. The method according to claim 1, wherein The application scenarios include the following scenario dimensions: Customer, product, process, process flow, and production step.

5. The method according to claim 1, wherein After generating the label to be printed based on the dynamic parameters, the target label template and its fixed parameters, the method further includes: Configuring a label ID for each label to be printed, binding each label to be printed and its label ID, and storing them in a database; In response to a target label ID input by a user, retrieving the target label to be printed corresponding to the target label ID from the database; Sending the target label to be printed to the printer for label printing.

6. The method according to claim 1, wherein After sending the label to be printed to the printer for label printing, the method further includes: Recording the detailed information of each label printing, where the detailed information includes printing time, template name, parameter values, and step information; Generating a label resume based on the detailed information of each label printing.

7. The method according to claim 4, characterized in that After binding each label template to its corresponding application scenario, the method further includes: Determining a classification scenario dimension for label grouping; Dividing the label templates belonging to the same classification scenario dimension into a group to form a number of label template groups; Binding each label template group to its corresponding classification scenario dimension and storing them; In response to a user's selection of a target classification scenario dimension, displaying each label template in the label template group corresponding to the target classification scenario dimension to the user.

8. A manufacturing execution system, characterized in that, The system includes: A label template generation module for generating a number of label templates through label production software and instruction language; An application scenario binding module for configuring fixed parameters for each label template according to preset assignment rules and binding each label template to its corresponding application scenario; A label template retrieval module for obtaining dynamic parameters and retrieving a target label template according to the current application scenario when performing label printing; A label printing module for generating a label to be printed based on the dynamic parameters, the target label template and its fixed parameters, and sending the label to be printed to a printer for label printing.

9. A computer device, characterized in that, Including: A processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor. When the computer device runs, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the label printing method according to any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by the processor, the steps of the label printing method according to any one of claims 1 to 7 are performed.

Citation Information

Cited By

  • Online multi-terminal collaborative printing method and device based on MES system

    CN121411719A