Printing device
Patent Information
- Application Number
- JP2024059394
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-03-31
AI Technical Summary
【0009】 本発明によれば、印刷速度の低下を抑制しつつ、印刷結果の不良を検出することができる。
Smart Images

Figure 0007643615000001 
Figure 0007643615000002 
Figure 0007643615000003
Abstract
Description
[Technical field]
[0001] The present invention relates to printing devices such as label printers. [Background technology]
[0002] 2. Description of the Related Art Conventionally, as one type of printing device, a label printer is known which uses roll paper made of long printing paper wound into a roll and prints images onto labels (printing areas) arranged in a line along the length of the printing paper.
[0003] Some label printers have a reading device provided after the print head that prints an image on the printing paper, and the image printed on the printing paper is read by the reading device, and the quality of the print result is judged from the read image data (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-7111 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, it is difficult to determine whether the print results of every label are good or bad while maintaining the printing speed of the label printer.
[0006] An object of the present invention is to provide a printing device that is capable of detecting defects in print results while suppressing a decrease in printing speed. [Means for solving the problem]
[0007] In order to achieve the above-mentioned objective, the printing device of the present invention comprises a transport unit that transports a medium in a transport direction, a printing unit that prints an image in a printing area on the medium transported by the transport unit, a reading unit that reads the image printed in the printing area by the printing unit, and a control unit, and the control unit executes a target determination process that, when an image is printed in multiple printing areas, determines a printing area out of the multiple printing areas as a judgment target, and a quality determination process that determines the quality of the print result from image data read by the reading unit for the printing area to be judged determined in the target determination process.
[0008] As described above, when an image is printed in multiple print areas, some of the multiple print areas are determined as the judgment target, and the quality of the print result of each of the print areas determined as the judgment target is judged. This makes it possible to reduce the time required to judge (inspect) the quality of the print result, compared to a configuration in which the quality of the print result of each print area is judged for all of the multiple print areas in which an image is formed. Therefore, it is possible to detect defects in the print result while suppressing a decrease in printing speed. Effect of the Invention
[0009] According to the present invention, it is possible to detect defects in the print results while suppressing a decrease in print speed. [Brief description of the drawings]
[0010] [Figure 1] 1 is a cross-sectional view diagrammatically illustrating a configuration of a label printer according to an embodiment of the present invention. [Diagram 2] The electrical configuration of the label printer is shown below. [Diagram 3] 13 is a flowchart showing a flow of an inspection process. [Figure 4] FIG. 2 is a diagram illustrating labels to be inspected and labels to be skipped in the inspection process. [Diagram 5] 13 is a flowchart showing the flow of a skip number calculation process. [Figure 6] FIG. 13 is a diagram showing the relationship between the transport time and the inspection time of various labels. [Figure 7] FIG. 11 is a diagram for explaining an error process. [Figure 8] 13 is a flowchart showing the flow of a second inspection process. [Figure 9] 13 is a flowchart showing the flow of a third inspection process. [Figure 10] 13 is a flowchart showing the flow of a fourth inspection process. [Figure 11] 13 is a flowchart showing the flow of a second skip value calculation process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0012] <Label printer> A label printer 1 (an example of a printing device) is a device that prints images on long label paper P (an example of a medium) as shown in Fig. 1. The printed label paper P is discharged from a discharge opening 12 formed on the side of a housing 11 that forms the outer shell of the label printer 1.
[0013] For the purposes of the following explanation, the front, back, left and right of the label printer 1 are defined based on the state in which the label printer 1 is viewed from the front side, with the side surface on which the discharge outlet 12 is formed being regarded as the front. Additionally, the top and bottom are defined with the label printer 1 installed on a horizontal surface. The cross-sectional view shown in Figure 1 is a cross-section taken along a cutting line extending in the front-to-rear direction of the label printer 1, viewed from the right side.
[0014] The label paper P may be die-cut paper with labels affixed in a line in the length direction on a long backing paper, or it may be non-fixed length paper (continuous paper) on which a base image that sets print areas at regular intervals has already been printed on the printing surface of a long piece of plain paper, or it may be non-fixed length paper made of plain paper or thermal paper on which no base image has been printed. In die-cut paper, the printing surface opposite the adhesive surface of each label is the printing area. In non-fixed length paper on which no base image has been printed, the printing area is not determined in advance, and is determined from the data of the image to be printed on the non-fixed length paper. In other words, the printing area in non-fixed length paper on which no base image has been printed is the area on which the image data for each page included in the print data is printed.
[0015] The outlet 12 is a rectangular opening extending in the left-right direction, and connects the inside and outside of the housing 11 with each other.
[0016] A roll holder 13 is provided inside the housing 11 to hold the label paper P in the form of a roll R. When in the form of a roll R, the label paper P is wound around a roll core with the printed surface facing outward. The roll holder 13 is substantially cylindrical, and the roll R is held by the roll core fitting externally into the roll holder 13.
[0017] Additionally, inside the housing 11, a direction-changing roller 14 is provided above and behind the roll holder 13. A transport path 15 along which the label paper P is transported is provided in front of the direction-changing roller 14. The transport path 15 extends forward from a position above the direction-changing roller 14, and its front end is connected to the discharge opening 12. The label paper P is pulled out from the roll R toward the rear side of the direction-changing roller 14, and is redirected forward by being made to run along the circumferential surface of the direction-changing roller 14, and is passed through the transport path 15 toward the discharge opening 12.
[0018] On the conveying path 15, conveying rollers 16 and 17 (an example of a conveying section) are provided to convey the label paper P. One of the conveying rollers 16 is disposed in front of the direction changing roller 14 with a gap therebetween. The other conveying roller 17 is disposed behind the discharge outlet 12 with a gap therebetween with respect to the conveying roller 16. With the label paper P passing between the conveying rollers 16 and 17, the power generated by the forward rotation drive of the motor M (see FIG. 2) is transmitted to the conveying rollers 16 and 17, which rotate the conveying rollers 16 and 17 to convey the label paper P in the sending direction along the conveying path 15 toward the discharge outlet 12. The power generated by the reverse drive of the motor M is transmitted to the roll holder 13, which rotates the roll core of the roll R in the opposite direction to the direction in which the label paper P is conveyed in the sending direction, thereby conveying the label paper P in the rewinding direction opposite to the sending direction. When the label paper P is conveyed in the rewinding direction, the conveying rollers 16 and 17 are in a free rotating state.
[0019] Between the transport rollers 16 and 17, a print head 21 (an example of a printing section) and a CIS (Contact Image Sensor) unit 22 (an example of a reading section) are arranged in this order in the sending direction.
[0020] The print head 21 is disposed facing the transport path 15 from above. When the label paper P is an indefinite length paper made of die-cut paper or plain paper, the print head 21 prints an image on the printing surface of the label paper P transported along the transport path 15, for example, by an inkjet recording method. When label paper P is an indefinite length paper made of thermal paper, print head 21 uses a thermal method to print an image on the printing surface of label paper P. The position vertically opposite print head 21 is the printable position where printing by print head 21 is possible, and print head 21 prints an image on the portion of the printing surface of label paper P that is located at the printable position.
[0021] In the following description, the area on which an image is printed by the print head 21 will be collectively referred to as a "label", including the "label" of die-cut paper and the "printing area" of non-fixed length paper.
[0022] The CIS unit 22 is disposed downstream of the print head 21 in the feed direction, facing the transport path 15 from above. The CIS unit 22 reads, for example, the printed surface of the label paper P transported along the transport path 15. Specifically, although not shown, the CIS unit 22 has a built-in light source, rod lens array, and linear image sensor, and a line of light is irradiated from the light source onto the printed surface of the label paper P, and the light reflected from the printed surface enters the linear image sensor through the rod lens array. This allows one line of the document to be read in the main scanning direction at the reading position of the CIS unit 22. The linear image sensor is configured with multiple imaging elements (image sensors) arranged in a row in the main scanning direction, and image data read by each imaging element becomes image data (pixel value) of one pixel.
[0023] A platen 23 is provided between the transport rollers 16 and 17. The platen 23 is disposed to face the print head 21 and CIS unit 22 from below, with the transport path 15 in between. The surface of the platen 23 that faces the print head 21 and CIS unit 22, i.e., the upper surface, is formed as a flat surface and supports the label paper P from below. The upper surface of the platen 23 is black. The width of the reading line of the CIS unit 22 in the main scanning direction is set to be larger than the width of the label paper P in the main scanning direction.
[0024] <Electrical configuration> As shown in FIG. 2, the label printer 1 includes a central processing unit (CPU) 31, a read only memory (ROM) 32, and a random access memory (RAM) 33.
[0025] The CPU 31 (an example of a control unit) controls the print head 21 and the CIS unit 22 by executing programs for various processes, and also controls the motor M (an example of a transport unit) that drives the transport rollers 16, 17.
[0026] The ROM 32 is a rewritable non-volatile memory such as a flash memory, etc. The ROM 32 stores programs executed by the CPU 41, various data, and the like.
[0027] The RAM 33 is a volatile memory such as a DRAM (Dynamic Random Access Memory), and is used as a work area when the CPU 31 executes a program. The RAM 33 also constitutes a step number counter. The step number counter increments the number of steps (+1) each time the motor M is driven by one step. The CPU 31 can control the position of the label paper P by controlling the driving of the motor M based on the number of steps counted by the step number counter.
[0028] The label printer 1 includes a communication interface 34 for communicating with an external terminal such as a PC (Personal Computer). The communication interface 34 may be configured for wired communication with the external terminal via a USB (Universal Serial Bus) cable or a LAN (Local Area Network) cable, or may be configured for wireless communication via radio waves, etc.
[0029] <Printing process> When a print job is executed by the label printer 1 to print an image such as a shipping label on label paper P, a printer control command is generated for each page, for example, in an external terminal communicatively connected to the label printer 1. The printer control command is a command that controls the label printer 1 to print an image, and is print data written in a page description language that includes information such as the position and type of characters and the position of graphics in the image to be printed. If the print job is to print an image spanning multiple pages on label paper P, a printer control command for each of the multiple pages is generated. When the printer control command is generated in the external terminal, following a command to execute the print job, the printer control commands for all pages are sent to the label printer 1, starting with the printer control command for the first page, in sequence, by a function of the printer driver installed in the external terminal.
[0030] When the CPU 31 receives a printer control command from an external terminal via the communications interface 34, it executes the printing process. In the printing process, the CPU 31 drives the motor M in the forward direction. Driving the motor M in the forward direction rotates the transport rollers 16, 17 and transports the label paper P in the sending direction. The CPU 31 controls the print head 21 when the leading label approaches the printing position of the print head 21, causing the print head 21 to print the image of the first page on the leading label on the printing surface of the label paper P. As with the first page, the CPU 31 controls the print head 21 when each label approaches the printing position of the print head 21, causing the print head 21 to print an image on each label for the second and subsequent pages.
[0031] <Inspection process> In the label printer 1, the CPU 31 executes, in parallel with the printing process, an inspection process for inspecting whether or not the image printed on the label (hereinafter referred to as the "printed image") meets a certain level of quality.
[0032] In this inspection process, all of the labels on which images are printed are not inspected, but rather, only those labels that have been identified as inspection targets are inspected. For example, the CPU 31 inspects the labels every predetermined skip number N pages. Therefore, as shown in Fig. 3, the CPU 31 executes a skip number calculation process (S1) to calculate the skip number N at the start of the inspection process. The skip number calculation process is an example of a target determination process. Details of the skip number calculation process will be described later.
[0033] After calculating the skip number N in the skip number calculation process, the CPU 31 resets to 0 the count value V of the skip label number counter that counts the number of labels whose inspection has been skipped (S2).
[0034] Meanwhile, the CPU 31 causes the CIS unit 22 to read the print image of each label, starting from the label on the first page (first sheet). The print image data of the labels read by the CIS unit 22 is temporarily stored in the RAM 33. Since the storage capacity of the RAM 33 is limited, the print image data is stored in a predetermined area of the RAM 33 using a First In First Out (FIFO) method.
[0035] First, the CPU 31 obtains data of the print image of the first page of the label from the data of the print image of the label read by the CIS unit 22 (S3), and inspects the label of the first page (S4). Specifically, it is determined from the data read by the CIS unit 22 (read data) whether the print image of the label (print result) is an "inspection OK" image that meets a certain level of quality, or an "inspection NG" image that does not meet the certain level of quality. For example, if the image printed on the label includes a barcode symbol, the CPU 31 checks from the read data whether the optical characteristics of the barcode symbol (reflectance, reflection density, PCS (Print Contrast Signal) value, etc.) meet the JIS standard (Japanese Industrial Standard). If the optical characteristics of the barcode symbol meet the JIS standard, the CPU 31 determines the inspection result of the label on which the image including the barcode symbol is printed as "inspection OK", and if the optical characteristics of the barcode symbol do not meet the JIS standard, the CPU 31 determines the inspection result of the label on which the image including the barcode symbol is printed as "inspection NG". This step of inspecting the label is an example of a judgment process.
[0036] If the label inspection result is "inspection OK" (S5: YES), the CPU 31 acquires data of the print image of the label on the next page (S6). Then, the CPU 31 increments (adds 1 to) the count value V of the skip label number counter (S7). After the increment, the CPU 31 determines whether the count value V of the skip label number counter is smaller than the value "N+1" obtained by adding 1 to the skip number N calculated in the skip calculation process (S8).
[0037] If the count value V is smaller than the value "N+1" (S8: YES), the CPU 31 does not inspect the label and acquires the print image data of the label of the next page (S6). Then, as in the case of the previous page, the CPU 31 increments the count value V of the skip label number counter (S7) and determines whether the count value V after the increment is smaller than the skip number N plus 1, "N+1" (S8).
[0038] Then, the data of the print image is acquired, and the count value V of the skip label number counter is incremented. When the count value V after the increment matches the skip number N plus 1, "N+1" (S8: NO), the label on which the print image is printed is inspected using the data of the print image last acquired before the increment (S9).
[0039] As a result, as shown in FIG. 4, after the label on the first page is inspected, the number of labels from the first page equal to the skip number N is skipped, and the label on the "1+N"th page is inspected.
[0040] After inspecting the label on the "1+N"th page, CPU 31 resets count value V of the skip label number counter to 0 (S10). Then, if the inspection result of the label on the "1+N"th page is "inspection OK" (S11: YES), CPU 31 determines whether all labels to be inspected have been inspected (S12). The labels to be inspected are the labels for every skip count N, starting from the label on the first page, for all pages of labels printed on label paper P in the printing process.
[0041] If the inspection of the label to be inspected is not complete (S12: NO), CPU 31 acquires the print image data of the label of the next page (S6). CPU 31 also increments count value V of the skip label number counter (S7), judges whether the count value V after the increment is smaller than the skip number N plus 1, "N+1" (S8), and if the count value V is smaller than the value "N+1", acquires the print image data of the next label, and repeats this process. Then, if the count value V after the increment matches the value "N+1", which is the skip number N plus 1 (S8: YES), the label on which the print image is printed is inspected from the image data last acquired before the increment (S9).
[0042] Therefore, as shown in FIG. 4, the labels on which images are printed on label paper P are inspected starting from the first page and going up to the "1+m*N" page (m: 0 or a natural number), and the printed images on those labels are inspected.
[0043] When inspection of the labels on which images are printed in the printing process is completed for every skip number N, and all the inspection results are “inspection OK”, the CPU 31 determines that the inspection process is complete (S12: YES), and ends the inspection process.
[0044] During the inspection process, if the CPU 31 determines that the label inspection result is "inspection NG" (S5, S11: NO), it performs error processing (S13) and ends the inspection process.
[0045] <Skip number calculation process> The flow of the skip value calculation process executed in step S1 of FIG. 3 is as shown in FIG.
[0046] In the skip number calculation process, the CPU 31 controls the motor M to start transporting the label paper P in the feed direction. Then, while the label paper P is transported at a constant transport speed, the CPU 31 controls the print head 21 to print one page's worth of image on the label on the label paper P being transported (S101).
[0047] After that, CPU 31 causes CIS unit 22 to read the image printed on the label (S102). Then, CPU 31 starts inspecting the label (S103). With the start of inspection, CPU 31 starts measuring the time (inspection time) T required to inspect the label (S104). When the label inspection is completed (S105: YES), measurement of inspection time T is stopped (S106).
[0048] After the inspection is completed, the CPU 31 obtains the label length, which is the length of one label in the transport direction, from, for example, the data of the print image read by the CIS unit 22 (S107). The CPU 31 then divides the label length by the transport speed (known) of the label paper P to calculate the transport time Tm per label, that is, the time Tm required for the label to be transported the distance of the label length (S108). The CPU 31 then divides the inspection time T by the transport time Tm and rounds up the decimal points of the divided value to calculate the skip number N (S109).
[0049] In addition, if the CPU 31 is able to detect that the edge of the label has passed a predetermined position (for example, the printing position of the print head 21), it may measure the time required from when the leading edge of the label (the end on the downstream side in the feed direction) reaches the predetermined position until the trailing edge of the label (the end on the upstream side in the feed direction) leaves the predetermined position, and acquire the measured time as the transport time Tm.
[0050] In addition, although it has been described that an image of one page is printed on a label, images of multiple pages may be printed on individual labels, the inspection time T of each label may be measured, and the average time may be used to calculate the number of skips N.
[0051] Label lengths and images printed on the labels are diverse, and as shown in FIG. 6, the relationship between the transport time Tm required for the label to be transported the distance of the label length and the inspection time T required to inspect the label varies depending on the label. For example, the label shown in FIG. 6(a) includes three two-dimensional codes in the printed image, and the amount of information contained in the printed image is large, but the label length is large, so the inspection time T is shorter than the transport time Tm. Also, the label shown in FIG. 6(b) has an inspection time T that is almost the same as the transport time Tm due to the balance between the amount of information contained in the printed image and the label length. On the other hand, the label shown in FIG. 6(c) has only one barcode in the printed image, and the amount of information contained in the printed image is small, but the label length is small, so the inspection time T is longer than the transport time Tm. If the inspection time T is longer than the transport time Tm, not only the inspection of all the labels but also the inspection of an appropriate number of labels may not be completed in time for the transport, depending on the relationship between the inspection time and the number of labels.
[0052] Therefore, the transport time Tm and inspection time T are obtained by actual measurement, and the skip number N in the inspection process is determined so that the label inspection is completed in time for transport, i.e., so that the time from the start of inspection of the previous label to the start of inspection of the next label is longer than the label transport time Tm.
[0053] <Error handling> In error processing that is performed when the label inspection result is determined to be "inspection NG," the CPU 31 stops the printing process and inspects the labels sandwiched between the label whose inspection result was determined to be "inspection NG" and the last label whose inspection result was determined to be "inspection OK," that is, the labels whose inspection was skipped. Error processing is an example of processing when a defect occurs.
[0054] For example, as shown in FIG. 7(a), if the skip count N=3 and the inspection result of the label on the 7th page is “NG”, the labels on the 5th and 6th pages between the label on the 7th page and the label on the 4th page, which lastly had an “OK” inspection result, are inspected, and the labels on the 5th and 6th pages are inspected.
[0055] In the inspection process, as described above, the print image data read by the CIS unit 22 is temporarily stored in a predetermined area of the RAM 33 by the FIFO method.
[0056] In the example shown in FIG. 7(a), if data of the print images of the labels on the fifth and sixth pages are stored in RAM 33, the labels to be inspected during error processing are inspected using that data.
[0057] Depending on the relationship between the skip number N and the size of the specified area in RAM 33, it may be the case that print image data for all labels subject to inspection in error processing is not stored in RAM 33. In this case, as shown in Figure 7(b), label paper P is rewound to a position where the print image of the label subject to inspection in error processing can be read by CIS unit 22. Then, the print image of the label to be inspected during the error processing is read by the CIS unit 22, and the label to be inspected is inspected using the read data.
[0058] Furthermore, in error handling, as shown in FIG. 7(c), the CPU 31 inspects all labels, from the label for which the inspection result is determined to be "NG", to labels on which images have been printed that are upstream in the feed direction of the label paper P.
[0059] For labels that are determined to be "NG", a VOID image may be printed on top of the "NG" image to let the user know that the label is unusable. To print the VOID image, the label paper P needs to be rewound after the error has been processed.
[0060] <Action and effect> According to this configuration, when an image is printed on a plurality of labels, in the inspection process for inspecting whether the printed image meets a certain level of quality, a portion of the plurality of labels, i.e., labels every predetermined number (skip number N) from the first page label upstream in the sending direction, are determined as the inspection targets, and each of the labels determined as the inspection targets is inspected (determined whether the print result is good or bad). This makes it possible to reduce the time required to inspect the labels compared to a configuration in which each label is inspected for all of the plurality of labels. Therefore, it is possible to detect defective print results while suppressing a decrease in the printing speed of the image on the labels (label transport speed).
[0061] Furthermore, the transport time Tm required for a label to be transported the distance of the label length and the inspection time T required to inspect the label are obtained by actual measurement, and the skip number N in the inspection process is determined so that the label inspection can be completed in time for transport, i.e., so that the time from the start of inspection of the previous label to the start of inspection of the next label is longer than the label transport time Tm. This makes it possible to appropriately set the skip number N, and to detect defects in the print results of the labels without reducing the printing speed.
[0062] If the inspection process determines that the label's inspection result is "inspection NG," error processing is performed. In error processing, the printing process is stopped, and the label sandwiched between the label whose inspection result was "inspection NG" and the last label whose inspection result was "inspection OK" is inspected. Since the label that is the inspection target has not been inspected in the inspection process, by inspecting it in error processing, it is possible to correctly determine whether the label is usable or not.
[0063] Furthermore, error processing inspects all labels that have images printed on them and are upstream in the feed direction of the label paper P from the label that was judged to be "NG" in the inspection processing. When a label with an "NG" inspection result appears, there is a possibility that images printed after that do not meet a certain level of quality, so by inspecting those labels, it is possible to prevent failure to detect defective print results.
[0064] <Other examples of inspection processing> Instead of the inspection process shown in Fig. 3, an inspection process shown in Fig. 8 may be performed. In the inspection process shown in Fig. 8, of the labels on which images are printed by the print head 21, a predetermined number N1 of labels upstream from the first page label at the most downstream in the sending direction, and a predetermined number N2 of labels downstream from the last page label at the most upstream in the sending direction are inspected.
[0065] 8, the CPU 31 resets the count value W of an inspection label number counter, which counts the number of inspected labels, to 0 (S21). Next, the CPU 31 causes the CIS unit 22 to read the print image of each label, starting from the label on the first page (first sheet).
[0066] Then, CPU 31 acquires data of the print image of the label on the first page from the data of the print image of the label read by CIS unit 22 (S22), then increments count value W of the inspection label number counter (S23), and inspects the first page of label on which the print image is printed, based on the acquired print image data (S24).
[0067] If the label inspection result is "inspection OK" (S25: YES), the CPU 31 determines whether the count value W of the inspection label number counter is smaller than a predetermined number N1 (S26). If the count value W is smaller than the predetermined number N1 (S26: YES), the CPU 31 acquires the print image data of the next page of label (S22). Then, the CPU 31 increments the count value W of the inspection label number counter (S23) and inspects the label on which the print image is printed based on the acquired print image data.
[0068] In this way, each label is inspected in order starting from the label on the first page, and when the count value W of the inspected label number counter matches the predetermined number N1 (S26: YES), the CPU 31 determines whether the printed image of the label on the last page on which an image was printed in the printing process has been read by the CIS unit 22 and reading of the printed image by the CIS unit 22 has been completed (S27).
[0069] When reading of the print image of the last page label is completed (S27: YES), CPU 31 acquires print image data of the labels from the last page label to the label of the page N2 back as inspection targets. CPU 31 then inspects each label from the last page label to the label of the page N2 back from the last page label based on the acquired print image data (S28).
[0070] If the inspection results for all of the labels from the label on the final page back to the label a predetermined number N2 are "inspected OK" (S29: YES), the CPU 31 ends the inspection process.
[0071] During the inspection process, if the CPU 31 judges the label inspection result to be "inspection NG" (S25, S29: NO), it performs error processing (S30) and ends the inspection process. The error processing is as described above.
[0072] <Modification of Inspection Process> There are cases where the storage capacity of the RAM 33 is small, and it is not possible to store the print image data of each label from the label of the final page to the label of the page that is the predetermined number N2 before in the RAM 33. In such cases, part of the inspection process shown in Fig. 8 may be replaced with the process shown in Fig. 9.
[0073] In the process shown in FIG. 9, a predetermined number N1 of labels are inspected starting from the first page label, and when the count value W of the inspection label number counter matches the predetermined number N1 (S26: YES), the CPU 31 determines whether or not a printing completion notification has been received from the external terminal (S41).
[0074] There is a time lag from when the printing end notification is received, when the printing operation by the print head 21 stops, until the label of the final page reaches the reading position by the CIS unit 22. Therefore, when the CPU 31 determines that the printing end notification has been received (S41: YES), it inspects the labels to be inspected from the pages from which the printed images can be read by the CIS unit 22 thereafter through the final page, and inspects the labels to be inspected from the data of the printed images read by the CIS unit 22 (S42).
[0075] If the inspection results for all of the labels are "inspection OK" (S43: YES), the CPU 31 ends the inspection process. On the other hand, if there is a label whose inspection result is "inspection NG" (S43: NO), the CPU 31 performs error processing (S30) and ends the inspection process. The error processing is as described above.
[0076] <Other Modifications of Inspection Process> By replacing part of the inspection process shown in Fig. 8 with the process shown in Fig. 9, it is possible to inspect several pages downstream in the sending direction from the final page, even if the storage capacity of RAM 33 is small. However, there are cases where it is not possible to inspect each label from the label of the final page to the label of the page that is the predetermined number N2 before. Therefore, if it is desired to inspect each label from the label of the final page to the label of the page that is the predetermined number N2 before, even if the storage capacity of RAM 33 is small, it is also possible to replace part of the inspection process shown in Fig. 8 with the process shown in Fig. 10.
[0077] In the process shown in FIG. 10, a predetermined number N1 of labels are inspected starting from the first page label, and when the count value W of the inspection label number counter matches the predetermined number N1 (S26: YES), the CPU 31 determines whether the printing operation by the print head 21 has ended (S51).
[0078] When the printing operation by the print head 21 is completed (S51: YES), the CPU 31 stops the reading of the printed image by the CIS unit 22 (S52). The CPU 31 then drives the motor M in the reverse direction to rewind the label paper P to a position where the printed image of the label on the page a predetermined number N2 before the final page can be read by the CIS unit 22 (S53). The CPU 31 then drives the motor M in the forward direction to resume the reading of the image by the CIS unit 22 (S54).
[0079] The CPU 31 inspects each label based on the print image data read by the CIS unit 22 (S55). If the inspection results for all of the labels are "inspection OK" (S56: YES), the CPU 31 ends the inspection process. On the other hand, if there is a label whose inspection result is "inspection NG" (S56: NO), the CPU 31 performs error processing (S30) and ends the inspection process. The error processing is as described above.
[0080] <Another example of skip number calculation process> Instead of the skip value calculation process shown in FIG. 5, a skip value calculation process shown in FIG. 11 may be executed.
[0081] In the skip number calculation process shown in Fig. 5, the transport time Tm required for a label to be transported a distance of the label length and the inspection time T required to inspect the label are obtained by actual measurement. In contrast, in the skip calculation process shown in Fig. 11, the transport time Tm and the inspection time T are predicted rather than actually measured.
[0082] 11, CPU 31 analyzes the printer control command received by label printer 1 from an external terminal to obtain the type, number, and size of barcodes included in the image to be printed on the label (S111). CPU 31 then predicts inspection time T from the obtained type, number, and size of barcodes (S112).
[0083] The type of barcode contained in an image affects the processing load on the CPU 31 when inspecting a label on which the image is printed. Also, the more barcodes contained in an image, the longer it takes to inspect a label on which the image is printed. Furthermore, the larger the size of the barcode contained in an image, the longer it takes to inspect a label on which the image is printed. Therefore, by obtaining the time required to inspect an image through experiments in advance using the type, number, and size of barcodes contained in an image as parameters, it is possible to predict the inspection time T from the type, number, and size of barcodes contained in the image printed on a label.
[0084] CPU 31 also obtains the label length, which is the length of the label in the transport direction, from the image data obtained by analyzing the printer control command (S113). CPU 31 then divides the label length by the transport speed (known) of label paper P to calculate transport time Tm per label, that is, the time Tm required for the label to be transported the distance of the label length (S114). CPU 31 then divides inspection time T by transport time Tm and rounds up the decimal point of the divided value to calculate the skip number N (S115).
[0085] <Modification> Although the embodiment of the present invention has been described above, the present invention can be embodied in other forms.
[0086] 8, a predetermined number N2 of labels are inspected downstream from the last page label at the most upstream position in the sending direction, but the number of pages of print images that can be stored in that free space may be taken into consideration within the storage capacity of RAM 33, and the predetermined number N2 may be determined as the number of pages of print images that can be stored in that free space. This eliminates the need to rewind the label paper P and read the predetermined number N2 of labels again.
[0087] 7, the labels between the label whose inspection result was determined to be "Inspection NG" and the last label whose inspection result was determined to be "Inspection OK" are inspected, but a configuration may be adopted in which all labels with images printed on them after the last label whose inspection result was determined to be "Inspection OK" are judged to be "Inspection NG" without inspection. This can reduce the time required for error processing.
[0088] In the above embodiment, a description has been given of a case in which the CPU 31 executes each process in the label printer 1. However, the label printer 1 may be provided with multiple CPUs, and the multiple CPUs may cooperate to execute each process.
[0089] In the above embodiment, the quality of the barcode symbol printed on the label is judged to meet a certain level of quality. However, the print quality of a printed image other than a barcode symbol, such as a character string or an image, may be inspected. The inspection method may be a comparison of the print data and the read print image data.
[0090] In the above-described embodiment, the skip number N was determined by predicting or calculating it. However, for example, the skip number N may be input or set by the user of the label printer 1, or may be set in advance according to the transport speed of the label paper P.
[0091] The reading unit does not have to be the CIS unit 22, and may be configured to read images using a reading device such as a CCD (Charge Coupled Device).
[0092] In addition, various design modifications can be made to the above-described configuration within the scope of the claims. [Explanation of symbols]
[0093] 1: Label printer 16, 17: Transport roller 21: Print head 22:CIS Unit 31: CPU 33:RAM M: Motor
Claims
1. a transport unit that transports the medium in a transport direction; a printing unit that prints an image in a printing area on the medium transported by the transport unit; A communication interface; A control unit, The control unit is a target determination process for determining a part of the printing areas as targets for determination based on information related to the barcode, a transport speed of the medium, and a length of the printing areas in the transport direction when the printing unit is controlled to print an image including a barcode in the printing areas based on image data including an image related to a barcode input via the communication interface; and a quality determination process for determining whether a print result is quality based on image data obtained by reading the print area of the determination target determined in the target determination process with a reading unit.
2. 2. The printing device according to claim 1, In the target determination process, the control unit determines, as targets for determination, printing areas that are a predetermined number of times apart from a specific printing area on the upstream side in the transport direction from the specific printing area, out of the multiple printing areas in which an image is printed.
3. 3. The printing device according to claim 2, In the target determination process, the control unit measures the time required from the start of reading the image printed in the printing area to determining whether the print result is good or bad for each of the multiple printing areas in which images are printed, from the printing area that is most downstream in the transport direction to the upstream side of the transport direction, and compares the measured time with the time required to print the image in the printing area to determine the specified number.
4. The printing device according to any one of claims 1 to 3, A printing device, wherein the information about the barcodes includes a type of the barcode, a number of the barcodes, and a size of the barcodes.
5. a transport unit that transports the medium in a transport direction; a printing unit that prints an image in a printing area on the medium transported by the transport unit; A communication interface; A storage unit; A control unit, The control unit is a target determination process for determining a part of the printing areas as targets for determination when the printing unit is controlled to print images in the printing areas based on image data including an image related to a barcode inputted via the communication interface, the target determination process determining the number of the printing areas to be determined based on the free space of the storage unit; and a quality determination process for determining whether a print result is quality based on image data obtained by reading the print area of the determination target determined in the target determination process with a reading unit.
6. a transport unit that transports the medium in a transport direction; a printing unit that prints an image in a printing area on the medium transported by the transport unit; A communication interface; A control unit, The control unit is a receiving process for sequentially receiving image data relating to an image to be printed in the printing area for a plurality of the printing areas via the communication interface; a printing process for causing the printing unit to print the image data received in the receiving process in the order of reception; moreover, a target determination process for determining, when the printing unit is controlled to print images in the multiple printing areas based on the multiple image data received by the receiving process, a part of the multiple printing areas as a determination target, the printing area to be read by the reading unit from the point in time when the last data is received in the receiving process; and a quality determination process for determining whether a print result is quality based on image data obtained by reading the print area of the determination target determined in the target determination process with the reading unit.
7. The printing device according to any one of claims 1 to 6, The control unit determines, in the target determination process, as targets for determination, at least the most upstream printing area and the most downstream printing area in the transport direction, among the multiple printing areas in which an image is printed.
8. 8. The printing device according to claim 7, In the target determination process, the control unit of the printing device determines, as targets for judgment, one or more printing areas downstream in the transport direction from the most upstream printing area in the transport direction, and one or more printing areas upstream in the transport direction from the most downstream printing area in the transport direction, out of the multiple printing areas in which an image is printed.
9. 9. The printing device according to claim 8, The control unit is a rewinding process in which the transport unit transports the medium in a direction opposite to the transport direction after the images are printed in the plurality of print areas; a re-transport process for transporting the medium in the transport direction by the transport unit after the rewinding process; A printing device in which, in the quality determination process, for one or more printing areas from the most downstream printing area in the transport direction to the upstream side in the transport direction, the quality of the print results of a predetermined number of the printing areas is determined from image data of the predetermined number of the printing areas that is read by the reading unit while the medium is transported in the transport direction by the re-transport process.
10. The printing device according to any one of claims 1 to 9, When the control unit determines that the print result of the printing area is defective in the quality determination process, the control unit stops printing by the printing unit and executes a quality determination process to determine the quality of the print result from image data read by the reading unit for the printing area sandwiched between the printing area for which the print result was determined to be defective and the printing area for which the print result was last determined to be good.
11. 11. The printing device according to claim 10, In the defective processing, the control unit determines whether the printing results of all printing areas upstream in the transport direction from the printing area where the printing results are determined to be defective are good or bad from the data read by the reading unit.
12. 12. A printing device according to claim 10 or 11, A storage unit that stores the image data read by the reading unit, The control unit, in the defect processing, When image data of the print area to be subjected to the quality judgment is stored in the storage unit, the quality of the print result is judged from the image data stored in the storage unit; When the image data of the printing area to be judged as being good or bad is not stored in the memory unit, the printing device causes the transport unit to transport the medium in the opposite direction to the transport direction, then causes the transport unit to transport the medium in the transport direction, has the image printed in the printing area read by the reading unit, and judges the quality of the print result from the data read by the reading unit.
13. The printing device according to any one of claims 1 to 9, A printing device in which, when the control unit determines that the printing result of the printing area is defective in the quality determination process, the control unit stops printing by the printing unit and determines that the printing results of at least all of the printing areas from the last printing area whose print result was determined to be good to the printing area whose print result was determined to be defective are defective.
14. The printing device according to any one of claims 1 to 13, A printing device, wherein the image read by the reading unit is a barcode.
Citation Information
Patent Citations
Method and device for inspecting code-printed face
JP1991237570A
Bar code printer
JP2011173278A
Validation device
JP2012176523A
Label printing device and program
JP2017007111A