A method for customizing inkjet code content matching different inkjet code templates
By customizing coding templates and rules, the problems of low efficiency in coding template switching and human error in lithium battery production have been solved. This has enabled efficient coding and automated updates for multiple product types, improving the coding efficiency and accuracy of the production line.
Patent Information
- Application Number
- CN202210891390.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-07-27
AI Technical Summary
In the lithium battery production process, when multiple production lines produce different models of products simultaneously, the efficiency of inkjet printing template switching is low, and manual modification is prone to errors. Existing technologies have not been able to effectively solve the problem of automated matching of inkjet printing information.
By establishing a method for customizing inkjet content through logical modeling and defining inkjet templates and rules separately, and by utilizing various combinations of inkjet template attributes and inkjet rules, a variety of custom filling and rapid updates of inkjet rules can be achieved.
It improves the coding efficiency of various types of products on the production line, avoids errors in manually recording serial numbers, enables rapid switching and automatic updating of coding templates, and enhances production efficiency and the accuracy of coding content recognition.
Smart Images

Figure CN115828973B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a code printing method, IPC classification number: B41J3 / 01, especially to a code printing content self-defining method capable of matching different code printing templates. BACKGROUND
[0002] Code printing is performed on a lithium battery to realize model identification of the lithium battery, which is a necessary process in the production and processing of the lithium battery. However, in the code printing process, there are usually different code printing information for different models, and different code printing templates corresponding to different code printing information. When multiple production lines are simultaneously produced and processed, the manual modification of the code printing template cannot quickly adapt to the simultaneous production of multiple products due to the large number of code printing templates, thereby resulting in low code printing template switching efficiency and easy errors in manual record of the serial number.
[0003] Patent CN201610736876 provides an automatic code printing system for defective products in lithium battery production. The system is improved based on the structure of the lithium battery detection device to simultaneously detect defective lithium batteries and print codes on the defective lithium battery products, thereby realizing automatic monitoring of the quality of the lithium battery. However, the improvement in the patent is a structural improvement, and does not involve information self-defining improvement control of the code printing template.
[0004] Patent CN201510012014 provides a code printing method. The code printing method establishes a hardware control system for code printing to feedback control the uniformity of code printing during the code printing process, thereby better improving the uniformity of code printing. However, the patent is directed to hardware control improvement of a single code printing device, and does not involve automatic matching of code printing information in a process code printing process.
[0005] Therefore, in view of the existing problems in the code printing process of the lithium battery, the present application provides a code printing content self-defining method capable of matching different code printing templates. SUMMARY
[0006] In view of the above problems, the present application provides a code printing content self-defining method capable of matching different code printing templates. The code printing information is logically modeled, and the code printing template and the code printing rule are respectively defined based on the logical modeling. The code printing template is shown in Figure 3 .
[0007] Specifically, the code printing template and the code printing rule are controlled in multiple combinations. A plurality of code printing rules can be self-defined and filled for a code printing template, thereby realizing quick improvement and update of a plurality of code printing templates.
[0008] Preferably, the code printing template specifically comprises code printing template attributes and code printing template information, wherein Figure 5 The figure shows the code printing template information in software.
[0009] Specifically, the code printing template is used for unified code printing of unified types of products, the code printing template attributes are used for recording attribute information of specifications of code printing products, and the code printing rules are used for adjusting code printing control information in the code printing process.
[0010] Preferably, the code printing template information specifically comprises code printing content, code printing conditions, and code printing parameters; wherein the code printing content is obtained from the code printing rules.
[0011] Preferably, the code printing content, the code printing conditions, and the code printing parameters are self-defined to modify the code printing template of different types of products in real time.
[0012] Preferably, the self-defined code printing content, the code printing conditions, and the code printing parameters are operated by code printing content analysis and matching of code printing template algorithms.
[0013] Preferably, the code printing content analysis specifically comprises the following steps:
[0014] S1, first input the code printing template self-defined content, and determine whether the input self-defined content is empty; if not empty, return the result and end the code printing content analysis process;
[0015] S2, when the input self-defined content is not empty, input a placeholder with a certain format on this basis, and determine whether the placeholder is empty; when the input placeholder is not empty, start searching for the starting placeholder; when the input placeholder is empty, output the result as the original character before modification, and return the result and end the code printing content analysis process;
[0016] S3, after the starting placeholder is found, start searching for the ending placeholder corresponding to the starting placeholder, so as to obtain the specific code printing content between the starting placeholder and the ending placeholder; if the starting placeholder is not found, directly return the result and end the code printing content analysis process; at the same time, if the ending placeholder is not found, return to the starting position of S3 program to re-search for the placeholder; if the ending placeholder is not found after a specified number of cycles, a prompt is popped up.
[0017] S4, determine whether the code printing content conforms to the code printing rules; if yes, generate analysis data by re-analyzing the starting number and the length value in the code printing content; if not, return the program to S2 to re-search; if the code printing rules are still not met after a specified number of cycles, a prompt is popped up.
[0018] Preferably, the matching and matching code template algorithm reads the placeholder in the code content, reads the character content at the specified position, fills the read character content into the code template, generates the final code instruction and performs code spraying.
[0019] Preferably, the code template is a table structure based on a database, as shown in Figure 4
[0020] Preferably, the code content analysis and matching code template algorithm are calculated separately from the code template and the code content.
[0021] Specifically, when setting the code template, the code template parameters can be modified in real time.
[0022] Preferably, the code template attribute is marked by marking the code template information to link with the code rule.
[0023] Compared with the prior art, the present application has the following advantages:
[0024] (1) In the lithium battery code spraying process, the establishment and adjustment of the code template are an important part of the entire code spraying process. The present application establishes a custom quick code template editing and code rule editing and matching, separately defines the code template and the code rule, and is better applied to the quick switching of different types of code templates on the production line, thereby improving the efficiency of simultaneous code spraying of multiple types of products in the assembly line.
[0025] (2) Based on (1), the present application establishes a code content analysis and matching code template algorithm, wherein the code content analysis identifies and extracts the custom code content, code conditions and code parameters by setting a specified placeholder, thereby quickly realizing information extraction and information updating of the code template without manual recording of the progress control of the serial number.
[0026] (3) Based on (2), the matching code template algorithm in the present application automatically extracts and analyzes the code content, and automatically matches the code content with the code template, thereby automatically updating the code template when the product model changes and using it for production, avoiding the error-prone problem caused by manual recording of the serial number.
[0027] (4) Based on (1), the custom process and analysis process of the code content in the present application are in a distributed working mode with the code template. When the code template performs code spraying operation, the code content can be updated in real time, and after the update is completed, the code template is automatically replaced and used, thereby avoiding affecting the overall production process of product code spraying and improving the efficiency of code spraying.
[0028] (5) Based on (1), the recognition and extraction method of the self-defined content of the inkjet code template in the application establishes a method based on double placeholder recognition. Through multiple loop judgments on the input inkjet code content, the position of the inkjet code content to be extracted is further determined, so as to improve the accuracy and real-time performance of inkjet code content recognition and improve the overall response efficiency of the system. BRIEF DESCRIPTION OF DRAWINGS
[0029] Figure 1 The inkjet code content analysis and matching inkjet code template algorithm flowchart is shown in the figure.
[0030] Figure 2 The inkjet code content analysis and matching inkjet code template algorithm program module diagram is shown in the figure.
[0031] Figure 3 The inkjet code template schematic diagram is shown in the figure.
[0032] Figure 4 The table structure of the database of the inkjet code template is shown in the figure.
[0033] Figure 5 The inkjet code template information in the software is shown in the figure.
[0034] Figure 6 The structure of the material information defined in the database is shown in the figure. DETAILED DESCRIPTION
[0035] Example 1:
[0036] The inkjet code content self-defined method of the application can match different inkjet code templates, as shown in the figure. Figure 3 The inkjet code information is logically modeled, and the inkjet code template and the inkjet code rule are defined respectively based on the logical modeling.
[0037] The inkjet code template specifically includes inkjet code template attributes and inkjet code template information.
[0038] The inkjet code template attributes include but are not limited to template name, material information, simulation information, model, length, creation time, and inkjet code machine model. The inkjet code template attributes are transmitted to the inkjet device to output the inkjet code of the relevant product type. Figure 6
[0039] The self-defined inkjet code content, inkjet code condition, and inkjet code parameter are shown in the figure. Figure 1 Figure 2 The inkjet code content is analyzed and matched with the inkjet code template algorithm.
[0040] The specific process of the inkjet code content analysis is as follows:
[0041] S1, first input the code template custom content, and determine whether the input custom content is empty; if not empty, then return the result and end the code content analysis process;
[0042] S2, when the input custom content is not empty, on this basis, input the placeholder with a certain format, and determine whether the placeholder is empty, when the input placeholder is not empty, start to find the starting placeholder; when the input placeholder is empty, output the original character before modification, and return the result and end the code content analysis process;
[0043] S3, wherein the starting placeholder is "}", after finding the starting placeholder, start to find the ending placeholder corresponding to the starting placeholder, the ending placeholder is "{", so as to obtain the specific code content between the starting placeholder and the ending placeholder; if the starting placeholder is not found, directly return the result and end the code content analysis process; at the same time, if the ending placeholder is not found, return to the S3 program starting position and re-perform the placeholder search, if the ending placeholder is not found after a specified number of cycles, a prompt is popped up;
[0044] S4, determine whether the code content conforms to the code rule, if it conforms to the code rule, generate analysis data by analyzing the starting number and length value in the code content again; if it does not conform to the code rule, the program returns to S2 for re-search, if it still does not conform to the code rule after a specified number of cycles, a prompt is popped up.
[0045] The code template information specifically includes code content, code condition and code parameter; wherein the code content is taken from the limitation of the code rule.
[0046] The code content is composed according to different types of product modules, and the code parameters are defined according to different types of product modules, the main code parameters include module type, module number, layout number, vertical point number, X coordinate, Y coordinate, module format and code content, wherein the code content is transmitted to the control device to control the code rule under the product type of the related product, because the code period and the code length are different under different types of products, the code is controlled by adjusting the code parameters in the code content.
[0047] The code template is a table structure based on a database.
[0048] First, the read character content is classified and intercepted, and after classification and interception, the character content is automatically matched with the code template attribute by setting the code template attribute, so as to complete the matching of the code template.
[0049] To sum up, the self-defined method for matching the content of different code spraying templates can be used in actual production process, when multiple products are produced and processed simultaneously in the code spraying process, each type needs a corresponding code spraying style, that is, the code spraying template, by establishing the analysis and matching algorithm of the code spraying content and the code spraying template, in the subsequent production and processing process, the operator can randomly increase the corresponding code spraying style, the operator only needs to modify the code spraying template in the background, and all the code spraying rules of the production line can be modified synchronously, so that the error is avoided, and the labor cost is reduced.
Claims
1. A method for customizing the content of inkjet printing that can match different inkjet printing templates, characterized in that, Specifically, the code printing information is logically modeled, and the code printing template and code printing rules are defined respectively based on the logical modeling. The code printing template specifically includes code printing template attributes and code printing template information. The code printing content analysis process is as follows: S1, first input the code printing template self-defined content, and determine whether the input self-defined content is empty; if not empty, return the result and end the code printing content analysis process; S2, when the input self-defined content is not empty, input a placeholder with a certain format on this basis, and determine whether the placeholder is empty; when the input placeholder is not empty, start searching for the starting placeholder; when the input placeholder is empty, output the result as the original character before modification, return the result and end the code printing content analysis process; S3, the starting placeholder is "}", after finding the starting placeholder, start searching for the ending placeholder corresponding to the starting placeholder, the ending placeholder is "{", so as to obtain the specific code printing content between the starting placeholder and the ending placeholder; if the starting placeholder is not found, directly return the result and end the code printing content analysis process; at the same time, if the ending placeholder is not found, return to the S3 program starting position and re-search for the placeholder; if the ending placeholder is not found after a specified number of cycles, a prompt is popped up; S4, determine whether the code printing content conforms to the code printing rules; if it conforms to the code printing rules, analyze the starting number and length value in the code printing content again to generate analysis data; If it does not conform to the code printing rules, the program returns to S2 for re-searching; if it still does not conform to the code printing rules after a specified number of cycles, a prompt is popped up.
2. The method of claim 1, wherein the method is capable of matching the content of the different templates of the inkjet code. The code printing content is obtained from the limitation of the code printing rules. 3. The method of claim 2, wherein the method further comprises: receiving a user input of a new template; and updating the template database with the new template. The code printing content, code printing conditions and code printing parameters are self-defined to modify the code printing template of different models in real time.
4. The method of claim 1, wherein the method is capable of matching the content of the different templates of the inkjet code. The matching code printing template algorithm reads the placeholder in the code printing content, reads the character content at the specified position, fills the read character content into the code printing template, generates the final code printing instruction and performs code printing.
5. The method of claim 4, wherein the method further comprises: The code printing template is a table structure based on a database.
6. The method of claim 1, wherein the method is capable of matching the content of the different templates of the inkjet code. The code printing content analysis and matching code printing template algorithm calculates the code printing template and the code printing content separately.
7. The method of claim 1, wherein the method is capable of matching the content of the different templates of the inkjet code. The code printing template attributes are marked by the code printing template information to link with the code printing rules.
Citation Information
Patent Citations
Ink-jet printing method
CN104589825A
An automatic coding system for defective products used in lithium battery production
CN106142840B
Automatic code spraying and printing defect detection system and method
CN112557412A