Method for solving batch disqualification of two-dimensional codes of workpieces

By adding an error correction system and a network server to the QR code printing system to identify and analyze the QR code, the problem of batch failure was solved, the pass rate of the QR code was improved and the cost of improvement was reduced, and the printing of multiple QR codes was realized. The system's real-time monitoring and data updates reduce damage to the workpiece surface during the cleaning process.

CN118569882APending Publication Date: 2024-08-30CHONGQING SHUNDUOLI LOCOMOTIVE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410699675.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing QR code printing system cannot identify and adjust in time, resulting in batch failures, resulting in reduced production efficiency.

Method used

Add a QR code error correction system and a network server to the existing QR code printing system, identify and analyze the QR code through the code scanning module, use analysis software to determine the eligibility of the QR code, and issue an alarm or alarm through the control module Adjust the printing process to avoid non-conformance situations.

Benefits of technology

It improves the pass rate of QR codes, reduces improvement costs, realizes real-time monitoring and data updating of multiple printing systems, reduces the installation requirements for production lines, and reduces the impact of QR code removal on the workpiece surface through the rework analysis module of damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569882A
    Figure CN118569882A
Patent Text Reader

Abstract

The invention relates to the field of batch disqualification of two-dimensional codes, and discloses a method for solving batch disqualification of two-dimensional codes of workpieces, which comprises the following steps: step 1, preparing a two-dimensional code printing system, a two-dimensional code error correction system and a processing system and establishing a network server, and step 2, printing the two-dimensional codes on the workpieces by a printing module; 3, a code scanning module recognizes the two-dimensional code on the workpiece to obtain decoded data and a scanned graph, the decoded data and the scanned graph are uploaded to a network server, analysis software conducts analysis according to the decoded data and the scanned graph, and 4, a control module obtains an output value of an analysis module, and if the output value is 0, the control module controls the analysis module to conduct analysis. If yes, the control module controls the machining system to machine the workpiece; and if the output value is greater than 0, the control module sends an alarm signal. Based on an existing two-dimensional code printing system, the qualified rate of two-dimensional codes is increased in batches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of batch unqualified two-dimensional codes, and in particular to a method for solving the problem of batch unqualified two-dimensional codes on workpieces. Background Art

[0002] Before assembling the workpiece, a QR code containing the workpiece information needs to be printed on the workpiece, so that the QR code contains the production information of each link, so that after leaving the factory, the workpiece can be quickly traced and the link where the problem occurred can be found, so as to adjust the process in time and improve production efficiency.

[0003] However, the human eye cannot directly identify whether the QR code is correct. Once there is a problem with the printing of the QR code, it is often impossible to adjust it in time, resulting in a large number of unqualified QR codes.

[0004] Therefore, a method for improving the pass rate of two-dimensional code based on the existing two-dimensional code printing system is needed. Summary of the invention

[0005] The present invention aims to provide a method for solving the problem of batch unqualified two-dimensional codes of workpieces, and based on the existing two-dimensional code printing system, the qualified rate of two-dimensional codes is improved in batches.

[0006] To achieve the above object, the present invention adopts the following technical solution: a method for solving the problem of batch failure of workpiece two-dimensional codes, comprising the following steps:

[0007] Step 1: Prepare a QR code printing system, a QR code error correction system and a processing system and build a network server. The QR code printing system includes a printing module, the QR code error correction system includes a scanning module and a control module, and the network server includes an MES database and analysis software.

[0008] Step 2: The printing module prints the QR code on the workpiece;

[0009] Step 3: The code scanning module identifies the QR code on the workpiece to obtain decoded data and scanned graphics, and uploads the decoded data and scanned graphics to the network server. The analysis software performs analysis based on the decoded data and scanned graphics. The analysis software includes several analysis modules, and the output value of the analysis software satisfies the following formula:

[0010]

[0011] a- output value of the analysis software;

[0012] ai- is the output value of the i-th analysis module. When the analysis result of the analysis module is qualified, ai=0, and when the analysis result is unqualified, ai=1;

[0013] n- is the total number of analysis modules;

[0014] The plurality of analysis modules include a repetition analysis module, which performs a global repetition comparison between the scanned image and the two-dimensional code data in the MES database; if the scanned image and the two-dimensional code data in the MES database are not repeated, the output result of the repetition analysis module is qualified, otherwise, the output result of the repetition analysis module is unqualified;

[0015] Step 4: The control module obtains the output value of the analysis module. If the output value is 0, the control module controls the processing system to process the workpiece; if the output value is greater than 0, the control module sends an alarm signal.

[0016] The beneficial effects of this program are:

[0017] 1. Since the existing QR code printing system directly generates QR codes randomly when printing, in this solution, a QR code error correction system is added and a network server is built to identify and analyze the QR code printed on the workpiece, so as to determine whether the QR code has duplicate codes, missing codes, and wrong codes. This allows the operator to adjust the system in time to avoid the situation where the QR codes are batch unqualified, thereby improving the pass rate of the QR codes in batches.

[0018] 2. Based on the existing two-dimensional code printing system, a two-dimensional code error correction system and a network server can be added without replacing the original two-dimensional code printing system, thus reducing the cost of improvement.

[0019] 3. The network server can be connected to multiple QR code printing systems and QR code error correction systems at the same time. The MES database is a real-time update database. It updates the database in time according to the uploaded data connected by multiple QR code printing systems and QR code error correction systems, so that the duplicate code analysis module can accurately determine whether there is a duplicate code phenomenon.

[0020] 4. Install the analysis software on the network server and install it one by one. There is no need to install the analysis software on each production line. Even if a new production line is added, there is no need to install the analysis software on a separate computer.

[0021] 5. When the output value of the analysis software is 0, it means that all analysis modules have passed the inspection, and the QR code can be processed by the processing system after passing the inspection; when the output value of the analysis software is greater than 0, it means that the QR code is unqualified, and the processing needs to be stopped and inspected.

[0022] Furthermore, the plurality of analysis modules include a missing code analysis module,

[0023] In step three, the missing code analysis module analyzes the decoded data. If the decoded data is blank, the analysis result is unqualified, otherwise, the analysis result is qualified.

[0024] Furthermore, the plurality of analysis modules include an error code analysis module,

[0025] In step 2, the two-dimensional code printing system also includes an input module, a graphic generation module and a data upload channel. The input module transmits the workpiece information to the graphic generation module, the graphic generation module generates a two-dimensional code graphic according to the workpiece information, and the printing module prints the two-dimensional code on the workpiece according to the two-dimensional code graphic; the data upload channel uploads the workpiece information to the network server.

[0026] In step 3, if the analysis result of the missing code analysis module is unqualified, the analysis result of the error code analysis module is unqualified; if the analysis result of the error code analysis module is qualified,

[0027] The error code analysis module compares the workpiece information and the decoded data. If the comparison results are the same, the analysis result of the error code analysis module is qualified. Otherwise, the analysis result of the error code analysis module is unqualified.

[0028] Furthermore, in step 2, the data upload channel uploads the QR code graphic to the network server.

[0029] In step 3, the analysis software also includes a rework analysis module. If the analysis result of the error code analysis module or the missing code analysis module is unqualified,

[0030] The rework analysis module divides the QR code graphic and the scanned graphic into several grid areas, compares each grid area one by one, marks all the different grid areas, extracts the parts that need to be printed in the different grid areas of the QR code graphic to form a secondary printing graphic, overlaps the secondary printing graphic with the scanned graphic to obtain a secondary printing QR code, identifies the secondary printing QR code to obtain secondary decoding data, and compares the secondary decoding data with the workpiece information.

[0031] In step four, if the comparison results are the same, the analysis software transmits the secondary printed graphics to the control module, and the control module controls the printing module to reprint on the workpiece according to the secondary printed graphics. Otherwise, the analysis software sends a signal to the control module, and the control module controls the processing system to clear the QR code on the workpiece and repeat steps one to three.

[0032] Furthermore, the processing system removes the QR code on the workpiece by surface polishing.

[0033] Furthermore, the QR code printing system, QR code error correction system and processing system are a set of local systems, and a network server can be connected to multiple local systems at the same time and update the MES database in real time.

[0034] Furthermore, it also includes step five: rating the pass rate of the QR code in each rating cycle.

[0035] This solution also has the following effects:

[0036] 1. Use the code scanning module to parse the QR code on the workpiece to obtain the decoded data to determine whether the decoding can be successful. If the code cannot be scanned successfully, the decoded data is blank, which means that there is a problem of missing code and the equipment needs to be adjusted in time.

[0037] 2. In the existing two-dimensional code printing system, a data upload channel is added to upload the data generated during the printing process to the network server for analysis by the analysis software.

[0038] 3. After successful decoding, the error code analysis module will compare the decoded data with the workpiece information entered during printing. If the information is incorrect, it means that there is an error code problem and the equipment needs to be adjusted in time.

[0039] 4. The purpose of the rework analysis module is to determine whether the wrong code or missing code on the workpiece needs to be cleared before reprinting the QR code; if it is determined that the wrong code or missing code can be directly compensated by covering the wrong code or missing code, the step of clearing the QR code can be reduced, thereby avoiding damage to the workpiece surface when clearing the QR code.

[0040] 5. The principle of the rework analysis module extracting the part that needs to be printed in the distinguishing grid area in the QR code graphic is as follows: Since the QR code is composed of black and white blocks, the printing module only needs to print the black part, that is, the rework analysis module only needs to extract the black part in the distinguishing grid area in the QR code graphic, and cover the black part on the scanned graphic to detect whether decoding can be performed and whether the obtained data is correct, so as to determine whether the step of clearing the QR code can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a system relationship diagram of Example 1;

[0042] Figure 2 is an analysis flow chart of the analysis software of Example 1;

[0043] Figure 3 This is an analysis flow chart of the rework analysis module of Example 2. DETAILED DESCRIPTION

[0044] The following is further described in detail through specific implementation methods:

[0045] Example 1

[0046] Example 1 is basically as Figure 1 , Figure 2 As shown: A method for solving the problem of batch failure of workpiece QR codes, comprising the following steps:

[0047] Step 1: Prepare the QR code printing system, QR code error correction system and processing system and build a network server. The QR code printing system, QR code error correction system and processing system are a set of local systems. A network server can connect to multiple local systems at the same time. The system relationship diagram is as follows: Figure 1 As shown;

[0048] The two-dimensional code printing system includes an input module, a graphic generation module, a printing module and a data upload channel;

[0049] The QR code error correction system includes a barcode scanner and an intelligent control box. The barcode scanner is equipped with a barcode scanning module, and the intelligent control box is equipped with a control module. The network server includes an MES database and analysis software. The MES database can update the QR code graphics used by all local systems in real time. The analysis flow chart of the analysis software is as follows: Figure 2 As shown;

[0050] Step 2: The operator inputs the workpiece information into the input module, the input module transmits the workpiece information to the graphic generation module, the graphic generation module generates a two-dimensional code graphic according to the workpiece information, and the printing module prints the two-dimensional code on the workpiece according to the two-dimensional code graphic; the data upload channel uploads the workpiece information and the two-dimensional code graphic to the network server;

[0051] Step 3: The barcode scanner is aimed at the QR code on the workpiece. The barcode scanner module identifies the QR code on the workpiece to obtain decoded data and scanned graphics, and uploads the decoded data and scanned graphics to the network server. The analysis software analyzes the decoded data and scanned graphics. The analysis software includes several analysis modules. The output value of the analysis software satisfies the following formula:

[0052]

[0053] a- output value of the analysis software;

[0054] ai- is the output value of the i-th analysis module. When the analysis result of the analysis module is qualified, ai=0, and when the analysis result is unqualified, ai=1;

[0055] n- is the total number of analysis modules;

[0056] Several analysis modules include duplicate code analysis module, missing code analysis module and error code analysis module.

[0057] The repetition analysis module performs a global repetition comparison between the scanned image and the two-dimensional code data in the MES database; if the scanned image and the two-dimensional code data in the MES database are not repeated, the output result of the repetition analysis module is qualified, otherwise, the output result of the repetition analysis module is unqualified;

[0058] The missing code analysis module analyzes the decoded data. If the decoded data is blank, the analysis result is unqualified. Otherwise, the analysis result is qualified.

[0059] If the analysis result of the missing code analysis module is unqualified, the analysis result of the error code analysis module is unqualified. If the analysis result of the error code analysis module is qualified, the error code analysis module will compare the workpiece information and the decoded data. If the comparison results are the same, the analysis result of the error code analysis module is qualified. Otherwise, the analysis result of the error code analysis module is unqualified.

[0060] Step 4. The control module obtains the output value of the analysis module. If the output value is 0, the control module controls the processing system to process the workpiece. If the output value is greater than 0, the control module sends an alarm signal, and the operator realizes that the QR code on the currently scanned workpiece is unqualified, so he stops the equipment and checks the reasons for the unqualified QR code. After eliminating the reasons for the unqualified code, the QR code on the currently scanned workpiece is cleared and the QR code is reprinted.

[0061] Example 2

[0062] Embodiment 2 is based on Embodiment 1: the processing system further includes a cleaning device, and the cleaning device can clean the QR code on the workpiece;

[0063] In step 3, the analysis software also includes a rework analysis module. The analysis flow chart of the rework analysis module is as follows: Figure 3 As shown; if the analysis result of the error code analysis module or the missing code analysis module is unqualified,

[0064] The rework analysis module divides the QR code graphic and the scanned graphic into several grid areas, compares each grid area one by one, marks all the different grid areas, extracts the parts that need to be printed in the different grid areas of the QR code graphic to form a secondary printing graphic, overlaps the secondary printing graphic with the scanned graphic to obtain a secondary printing QR code, identifies the secondary printing QR code to obtain secondary decoding data, and compares the secondary decoding data with the workpiece information.

[0065] In step four, if the comparison results are the same, the analysis software transmits the secondary printed graphics to the control module, and the control module controls the printing module to reprint on the workpiece according to the secondary printed graphics. Otherwise, the analysis software sends a signal to the control module, and the control module controls the cleaning device of the processing system to remove the QR code on the workpiece and repeat steps one to three. The cleaning device removes the QR code on the workpiece by surface polishing.

[0066] Example 3

[0067] Embodiment 3 is based on Embodiment 1: it also includes step 5, and also includes a rating system, setting a rating cycle, such as rating the pass rate of the two-dimensional code every month, then in each month, the two-dimensional code error correction system transmits the number of two-dimensional code printing times N and the number of two-dimensional code failures n to the rating system, and the rating system calculates the pass rate of the two-dimensional code. The calculation formula of the pass rate of the two-dimensional code is as follows:

[0068] P = n / N;

[0069] The pass rate of QR codes is rated in each rating cycle, and the pass rate rating levels are divided into four levels: A is the best (P ≥ 99.99%), B is second (99.99% ≥ P ≥ 99.9%), C is qualified (99.9% ≥ P ≥ 99%), and D is unqualified (99% ≥ P).

[0070] Example 4

[0071] Embodiment 4 is based on Embodiment 1: the processing system includes a special tool, a device start button, a processing device and an alarm light, the alarm light includes a red error light and a green start light, and the special tool is used to clamp the workpiece to ensure accurate position when printing and scanning the QR code;

[0072] In step 4, if the output value of the analysis module is 0, the control module controls the device start button to start, the green start light is on, and the processing equipment is driven to process the workpiece; if the output value of the analysis module is greater than 0, the control module controls the device start button to pause, and the red error light is on.

[0073] The above is only an embodiment of the present invention, and the common knowledge such as the known specific technical solutions and / or characteristics in the solution is not described in detail here. It should be pointed out that for those skilled in the art, without departing from the technical solution of the present invention, several modifications and improvements can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A method for solving the problem of batch failure of workpiece QR codes, characterized in that , including the following steps: Step 1: Prepare a QR code printing system, a QR code error correction system and a processing system and build a network server. The QR code printing system includes a printing module, the QR code error correction system includes a scanning module and a control module, and the network server includes an MES database and analysis software. Step 2: The printing module prints the QR code on the workpiece; Step 3: The code scanning module identifies the QR code on the workpiece to obtain decoded data and scanned graphics, and uploads the decoded data and scanned graphics to the network server. The analysis software performs analysis based on the decoded data and scanned graphics. The analysis software includes several analysis modules, and the output value of the analysis software satisfies the following formula: a- output value of the analysis software; ai- is the output value of the i-th analysis module. When the analysis result of the analysis module is qualified, ai=0, and when the analysis result is unqualified, ai=1; n- is the total number of analysis modules; The plurality of analysis modules include a repetition analysis module, which performs a global repetition comparison between the scanned image and the two-dimensional code data in the MES database; if the scanned image and the two-dimensional code data in the MES database are not repeated, the output result of the repetition analysis module is qualified, otherwise, the output result of the repetition analysis module is unqualified; Step 4: The control module obtains the output value of the analysis module. If the output value is 0, the control module controls the processing system to process the workpiece; if the output value is greater than 0, the control module sends an alarm signal.

2. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 1, characterized in that: Several analysis modules include a missing code analysis module, In step three, the missing code analysis module analyzes the decoded data. If the decoded data is blank, the analysis result is unqualified, otherwise, the analysis result is qualified.

3. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 2, characterized in that: Several analysis modules include an error code analysis module, In step 2, the two-dimensional code printing system also includes an input module, a graphic generation module and a data upload channel. The input module transmits the workpiece information to the graphic generation module, the graphic generation module generates a two-dimensional code graphic according to the workpiece information, and the printing module prints the two-dimensional code on the workpiece according to the two-dimensional code graphic; the data upload channel uploads the workpiece information to the network server. In step 3, if the analysis result of the missing code analysis module is unqualified, the analysis result of the error code analysis module is unqualified; if the analysis result of the error code analysis module is qualified, The error code analysis module compares the workpiece information and the decoded data. If the comparison results are the same, the analysis result of the error code analysis module is qualified. Otherwise, the analysis result of the error code analysis module is unqualified.

4. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 3, characterized in that: In step 2, the data upload channel uploads the QR code graphic to the network server; In step 3, the analysis software also includes a rework analysis module. If the analysis result of the error code analysis module or the missing code analysis module is unqualified, The rework analysis module divides the QR code graphic and the scanned graphic into several grid areas, compares each grid area one by one, marks all the different grid areas, extracts the parts that need to be printed in the different grid areas of the QR code graphic to form a secondary printing graphic, overlaps the secondary printing graphic with the scanned graphic to obtain a secondary printing QR code, identifies the secondary printing QR code to obtain secondary decoding data, and compares the secondary decoding data with the workpiece information. In step four, if the comparison results are the same, the analysis software transmits the secondary printed graphics to the control module, and the control module controls the printing module to reprint on the workpiece according to the secondary printed graphics. Otherwise, the analysis software sends a signal to the control module, and the control module controls the processing system to clear the QR code on the workpiece and repeat steps one to three.

5. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 4, characterized in that: The processing system removes the QR code from the workpiece by surface polishing.

6. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 3, characterized in that: The QR code printing system, QR code error correction system and processing system are a set of local systems. One network server can connect to multiple local systems at the same time and update the MES database in real time.

7. A method for solving the problem of batch failure of workpiece two-dimensional codes according to claim 3, characterized in that: It also includes step five: rating the pass rate of the QR code in each rating cycle.