METHOD OF PRINTING A BARCODE USING A LINE PRINTHEAD, AND A PRINTING
First Claim
1. A method of printing a barcode using a line print head to print a barcode having bars of specific widths arranged in a specific pattern in a direction perpendicular to a recording medium transportation direction, comprising:
- a normal/faulty data calculation step that acquires normal/faulty data representing the normal or faulty state of each printing element in the line direction of the printing element array disposed to the line print head;
a determination step that compares the normal/faulty data with the barcode print data, and determines if a faulty printing element is included in the printing element array of the line print head in the barcode printing range in the line direction;
a shiftable range calculation step that calculates a shift range to which the barcode can be shifted in the line direction and printed when a faulty printing element is contained in the printing element array;
a shift destination calculation step that performs a shift operation to find a normal printing range where the barcode can be printed correctly in the line direction of the line print head by alternately executingan operation that aligns the center of the print data in the line direction with the center of the shift range in the line direction, sequentially shifts the print data one printing element to one side in the line direction, and compares the normal/faulty data and the line print data, andan operation that sequentially shifts the print data one printing element to the other side in the line direction, and compares the normal/faulty data and the line print data; and
a printing process step that executes a printing process to print the barcode using the printing elements contained in the normal printing range when a normal printing range is found in the shift range.
1 Assignment
0 Petitions
Accused Products
Abstract
A barcode printing method can easily and quickly find the location of a group of consecutive printing elements that can print a barcode correctly when the line print head has faulty printing elements. The printing device 1 determines the shift range L5 for the barcode 8 printing position (B11), aligns the center of the barcode 8 print data D2 with the center of the shift range L5, from this position alternately shifts the print data D2 one printing element at a time left and right in the line direction A, and finds a group of consecutive printing elements that can print the barcode 8 correctly (B12). A normal printing range can thus be found in a short time with the smallest shift compared with searching from the end of the shift range, and the overall efficiency of a barcode printing operation that executes repeatedly can be improved.
-
Citations
8 Claims
-
1. A method of printing a barcode using a line print head to print a barcode having bars of specific widths arranged in a specific pattern in a direction perpendicular to a recording medium transportation direction, comprising:
-
a normal/faulty data calculation step that acquires normal/faulty data representing the normal or faulty state of each printing element in the line direction of the printing element array disposed to the line print head; a determination step that compares the normal/faulty data with the barcode print data, and determines if a faulty printing element is included in the printing element array of the line print head in the barcode printing range in the line direction; a shiftable range calculation step that calculates a shift range to which the barcode can be shifted in the line direction and printed when a faulty printing element is contained in the printing element array; a shift destination calculation step that performs a shift operation to find a normal printing range where the barcode can be printed correctly in the line direction of the line print head by alternately executing an operation that aligns the center of the print data in the line direction with the center of the shift range in the line direction, sequentially shifts the print data one printing element to one side in the line direction, and compares the normal/faulty data and the line print data, and an operation that sequentially shifts the print data one printing element to the other side in the line direction, and compares the normal/faulty data and the line print data; and a printing process step that executes a printing process to print the barcode using the printing elements contained in the normal printing range when a normal printing range is found in the shift range. - View Dependent Claims (2, 3, 4)
-
-
5. A printing device comprising:
-
a line print head having a plurality of printing elements in a row; a transportation mechanism that conveys a recording medium relative to the line print head in a transportation direction that is perpendicular to the line direction in which the printing elements are arrayed; and a control circuit that controls driving the line print head and the transportation mechanism, and executes a printing operation to print on the recording medium a barcode composed of a pattern of printed areas and unprinted areas arrayed in a direction perpendicular to the transportation direction, the control circuit including a normal/faulty data calculation unit that acquires normal/faulty data representing the normal or faulty state of each printing element in the line direction of the printing element array disposed to the line print head; a determination unit that compares the normal/faulty data with the barcode print data, and determines if a faulty printing element is included in the printing element array of the line print head in the barcode printing range in the line direction; a shiftable range calculation unit that calculates a shift range to which the barcode can be shifted in the line direction and printed when a faulty printing element is contained in the printing element array; a shift destination calculation unit that performs a shift operation to find a normal printing range where the barcode can be printed correctly in the line direction of the line print head by alternately executing an operation that aligns the center of the print data in the line direction with the center of the shift range in the line direction, sequentially shifts the print data one printing element to one side in the line direction, and compares the normal/faulty data and the line print data, and an operation that sequentially shifts the print data one printing element to the other side in the line direction, and compares the normal/faulty data and the line print data; and a printing process unit that executes a printing process to print the barcode using the printing elements contained in the normal printing range when a normal printing range is found in the shift range. - View Dependent Claims (6, 7, 8)
-
Specification