Printer and program

By adjusting heating conditions for coded and standard image areas, the printer maintains consistent print quality for both types of information, addressing the issue of varying quality due to uniform transport speed.

JP2024122239APending Publication Date: 2024-09-09BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023029680
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-09

AI Technical Summary

Technical Problem

Existing printers face issues in maintaining consistent print quality for both coded and standard print information when they are printed side by side, as the transport speed is uniform, leading to varying quality in areas where they overlap and do not overlap.

Method used

The printer employs a control unit to adjust heating conditions for the print head, using different heating conditions for coded and standard image areas to ensure consistent print quality by varying the heating time and current intensity for each area.

Benefits of technology

This approach ensures that the print quality of standard and coded images remains consistent regardless of their overlap, meeting user expectations while optimizing power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a printer and a program for performing printing with printing quality desired by a user.SOLUTION: When printing the i-th line including both of an area A and an area B, a printer forms dots of code images under a heating condition T1 for blocks included in the area A . The printer forms dots of standard images under a heating condition T2 for blocks included in the area B. The area A is an area constituted by blocks in which dots of code images are formed. The area B is an area constituted by blocks in which dots of standard images are formed. Under the heating condition T1, a plurality of elements are selectively energized with an intermittent current I1 for a heating time t1. Under the heating condition T2, which is a heating condition different from the heating condition T1, the plurality of elements are selectively energized with an intermittent current I2 for a heating time t2.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a printer and a program. [Background technology]

[0002] Patent Document 1 discloses a printer that ensures the print quality of coded print information (such as barcodes and two-dimensional codes). On a continuous paper label, a first print area in which coded print information is printed and a second print area in which standard print information (such as characters, symbols, figures or pictures) are printed are arranged along the transport direction of the continuous paper. The printer ensures the print quality of the coded print information by setting the transport speed of the continuous paper when printing the first print area (first transport speed) to be slower than the transport speed when printing the second print area (standard transport speed). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2015-47826 A Summary of the Invention [Problem to be solved by the invention]

[0004] In some cases, the standard print information and the coded print information are arranged side by side in the width direction of the label, and part of the standard print information is arranged to extend upstream or downstream of the coded print information in the transport direction of the continuous paper. In this case, the printer sets the transport speed when printing the portion where the standard print information and the coded print information are arranged side by side to the first transport speed when printing the coded print information. Therefore, the print quality of the portion of the standard print information arranged side by side with the coded print information differs from the print quality of the portion of the standard print information that is not arranged side by side with the coded print information. In this case, the printer may not be able to print with the print quality desired by the user.

[0005] SUMMARY OF THE PRESENT EMBODIMENT An object of the present invention is to provide a printer and a program that prints with the print quality desired by a user. [Means for solving the problem]

[0006] A printer according to a first aspect of the present invention comprises a print head having heating elements, and a control unit that controls the heating elements to heat them and causes the print head to form dots for each line extending in a main scanning direction, and the control unit is characterized in that, when a first area composed of dots forming a code image indicating code information and a second area composed of dots forming a standard image different from the code image are arranged side by side in the main scanning direction in a target line to be printed, the control unit executes a first printing process to form the dots in the first area by heating the heating elements under first heating conditions, and a second printing process to form the dots in the second area by heating the heating elements under second heating conditions different from the first heating conditions.

[0007] The printer of the first embodiment, when printing a target line including a first region and a second region in which the first region and the second region are aligned in the main scanning direction, forms dots of a code image by heating under a first heating condition, and forms dots of a standard image by heating under a second heating condition. As a result, even when a part of the standard image is aligned with the code image in the main scanning direction, the print quality of the part of the standard image aligned with the code image is equivalent to the print quality of the part of the standard image that is not aligned with the code image. Thus, the printer can print the code image and the standard image with the print quality desired by the user.

[0008] A printer according to a second aspect of the present invention comprises a print head having heating elements, and a control unit that controls the heating elements to heat them and causes the print head to form dots for each line extending in a main scanning direction, and the control unit executes a fifth printing process in which, when a first region composed of dots forming a code image indicating code information and a second region composed of dots forming a standard image different from the code image are arranged side by side in the main scanning direction in a target line to be printed, the control unit executes a sixth printing process in which the dots in the first region and the second region are formed by heating the heating elements under third heating conditions, and the dots in the first region are formed by heating the heating elements under fourth heating conditions.

[0009] The printer of the second embodiment, when printing a target line including a first region and a second region where the first region and the second region are aligned in the main scanning direction, forms the dots that make up the standard image by heating under a third heating condition, and forms the dots that make up the code image by heating under the third heating condition and the fourth heating condition. As a result, even if a part of the standard image is aligned with the code image in the main scanning direction, the print quality of the part of the standard image that is aligned with the code image is equivalent to the print quality of the part of the standard image that is not aligned with the code image. Therefore, the printer can print the code image and the standard image with the print quality desired by the user.

[0010] The present invention is not limited to a printer, but may also be applicable to a program executed by a computer that controls a printer, a printing method, a printing system, etc. as appropriate. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a perspective view of a printer 1. [Diagram 2] 2 is a block diagram showing the electrical configuration of the printer 1. FIG. [Diagram 3] 2 is a diagram showing an image printed on a print medium P. FIG. [Figure 4] FIG. 13 is an explanatory diagram of print control when printing a line that includes only area A. [Diagram 5] 13 is an explanatory diagram of print control when printing a line including only area B. FIG. [Figure 6] 13 is an explanatory diagram of print control when printing a line including area A and area B. FIG. [Figure 7] FIG. 13 is an explanatory diagram for dividing an area A. [Figure 8] FIG. 13 is an explanatory diagram for dividing an area B. [Figure 9] FIG. 13 is an explanatory diagram of print control in the case where a line includes areas A and B and area A is divided. [Figure 10] 11 is a flowchart of a first main process. [Figure 11] 11 is a flowchart of the first main process following FIG. 10. [Figure 12] 13 is an explanatory diagram of print control when printing a line including only area B in the second embodiment. FIG. [Figure 13] 13 is an explanatory diagram of print control when printing a line including only area A in the second embodiment. FIG. [Figure 14] 13 is an explanatory diagram of print control when printing a line including area A and area B in the second embodiment. FIG. [Figure 15] FIG. 11 is an explanatory diagram of print control in the second embodiment when a line includes area A and area B and area A is divided. [Figure 16] 11 is a part of a flowchart of a second main process. [Figure 17] FIG. 13 is an explanatory diagram of print control when printing a line including only area A in the third embodiment. [Figure 18] 13 is a part of a flowchart of a third main process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] First Embodiment A first embodiment of the present invention will be described with reference to Figures 1 to 11. The drawings are used to explain technical features that the present invention can employ. In other words, the configurations and controls of the devices shown in the drawings are merely illustrative examples and are not intended to limit the scope of the present invention.

[0013] <Printer 1 Configuration> 1, the printer 1 is a thermal printer capable of printing images (objects such as characters, symbols, numbers, figures, and codes) on a print medium P. The print medium P is not limited to a specific medium, but may be, for example, a sheet or tape, and in this embodiment is a cut sheet of thermal recording medium.

[0014] Printer 1 has a case 2, an input unit 3, a communication unit 4, a transport unit 5, and a print head 6. Case 2 is rectangular and is longer in the left-right direction than in the front-rear and up-down directions. Case 2 houses transport unit 5 and print head 6. Case 2 detachably houses power source 10 (see FIG. 2). Power source 10 is a battery that supplies power to printer 1.

[0015] An insertion opening 21 is formed on the top surface of the case 2, and an ejection opening 22 is formed on the front surface of the case 2. The insertion opening 21 and the ejection opening 22 are each formed in a rectangular shape that is long in the left-right direction. The print medium P is inserted into the printer 1 through the insertion opening 21 and ejected from the printer 1 through the ejection opening 22.

[0016] The input unit 3 is provided at the left end of the top surface of the case 2. The communication unit 4 is provided on the right side surface of the case 2. The communication unit 4 is a USB (Universal Serial Bus) jack, and a connector of a USB cable (not shown) can be connected.

[0017] The transport unit 5 has a motor 51 and a roller 52 (see FIG. 2). The roller 52 is provided diagonally upward and forward inside the case 2, and is cylindrical about an axis extending in the left-right direction. The motor 51 is a stepping motor, and rotates the roller 52. The transport unit 5 transports the print medium P in a transport direction Y by the rotation of the roller 52. The transport direction Y is a direction perpendicular to the left-right direction, and in this embodiment, extends diagonally upward and backward and diagonally downward and forward. Hereinafter, in the transport direction Y, the diagonally upward and backward side is referred to as the upstream side, and the diagonally downward and forward side is referred to as the downstream side.

[0018] The print head 6 is provided below the roller 52. The print head 6 is a line head extending in the left-right direction, and has a plurality of elements 61 and a driver IC 62 (see FIG. 2). The plurality of elements 61 are arranged in a line in the left-right direction (hereinafter referred to as the main scanning direction X) at the bottom end of the print head 6. Each of the plurality of elements 61 is a heating element that generates heat by power supplied from a power source 10 (see FIG. 2). The plurality of elements 61 contact the printing medium P pressed downward by the roller 52. The driver IC 62 is configured to selectively pass electricity through the plurality of elements 61 to generate heat.

[0019] <Printer 1 Electrical Configuration> 2, the printer 1 has a CPU 7, a RAM 8, a storage unit 9, and a communication unit 4. The CPU 7 controls the printer 1. The CPU 7 is electrically connected to the RAM 8, the storage unit 9, the communication unit 4, the input unit 3, the motor 51, and the driver IC 62.

[0020] The RAM 8 stores temporary data such as a variable U described below. The storage unit 9 stores programs executed by the CPU 7 to control the printer 1, print data, and various setting information. The communication unit 4 is a controller for communicating with an external device 99 via a USB cable. The external device 99 is a known information processing device such as a PC, a tablet PC, or a smartphone.

[0021] <Printing operation of Printer 1> The printer 1 prints an image on the print medium P by forming dots line by line by energizing the print head 6. A line is a printing unit in which dots aligned in the main scanning direction X are formed by energizing a plurality of elements 61 aligned in the main scanning direction X for one printing cycle. One printing cycle is the time required for the printer 1 to form dots in one line.

[0022] The printer 1 generates print data based on image data received via the communication unit 4. The print data is image data configured of data in block units, which will be described later, and includes instructions to energize and stop energizing each of the multiple elements 61. The printer 1 generates raster data by dividing the print data in units of one line printed by the multiple elements 61. Note that in this embodiment, the printer 1 generates the print data and the raster data, but for example, the external device 99 may generate the print data, and the printer 1 may generate the raster data based on the print data received via the communication unit 4. The external device 99 may generate the print data and the raster data, and the printer 1 may receive the raster data via the communication unit 4.

[0023] The printer 1 selectively and intermittently energizes the multiple elements 61 based on the raster data while transporting the printing medium P downstream in the transport direction Y using the transport unit 5. In this embodiment, the transport speed of the printing medium P by the transport unit 5 is constant (e.g., 40 mm / s). Thermal energy is applied to portions of the printing medium P that come into contact with the multiple energized elements 61, forming dots. In this way, the printer 1 forms lines aligned in the main scanning direction X in accordance with the arrangement of the multiple elements 61.

[0024] The printer 1 repeatedly prints one line while transporting the print medium P with the transport unit 5, thereby forming multiple lines arranged on the print medium P in a direction (transport direction Y) perpendicular to the direction in which the pixels in one line of the image are arranged. The multiple lines form a shade on the print medium P depending on whether or not each dot is formed, forming an image. The above operation is called a printing operation.

[0025] <Image> 3, code images Q1, Q2, character string images R1, R2, and ruled lines L are printed on the print medium P of this embodiment. The code images Q1 and Q2 are images showing code information that is read by a scanner or the like. The code image Q1 is a QR code (registered trademark), and the code image Q2 is a barcode. Hereinafter, when there is no need to distinguish between the code images Q1 and Q2, which are images showing code information, they will be collectively referred to as code images.

[0026] The character string images R1 and R2 are images showing character strings, symbols, numbers, etc. The ruled lines L extend in the main scanning direction X. Hereinafter, when images that do not contain code information are not to be distinguished between the character string images R1 and R2 and the ruled lines L, they will be collectively referred to as standard images. In order for the code images to be able to read the code information, it is necessary to ensure that the print quality is sufficient compared to the standard images.

[0027] In the printing area of ​​the printing medium P, the code image Q1 is positioned to the left of the character string image R1 (hereinafter referred to as the X2 direction). A portion of the character string image R1 is positioned so as to protrude in the transport direction Y from the code image Q1. The code image Q2 is positioned to the right of the character string image R2 (hereinafter referred to as the X1 direction). A portion of the character string image R2 is positioned so as to protrude in the transport direction Y from the code image Q2. The ruled line L extends across the entire printing area of ​​the printing medium P in the main scanning direction X, and is positioned between the character string images R1 and R2 in the transport direction Y.

[0028] A plurality of blocks are arranged in the main scanning direction X on each line arranged in the transport direction Y. The unit length of a block in the main scanning direction X is the interval obtained by dividing the printing area of ​​the printing medium P by the distance between the plurality of elements 61. The unit length of a block in the transport direction Y is the interval obtained by dividing the printing area of ​​the printing medium P by the resolution. Dots of an image are formed within the blocks. Hereinafter, each block on the printing medium P will be referred to by the line number and the number of the element 61. For example, the block in which dots are formed by the d-th element 61 on the f+3-th line shown in FIG. 3 is called the (d, f+3) block.

[0029] <Printing control> 4, when the printer 1 prints a code image in one line, the printer 1 heats the multiple elements 61 under heating condition T1. Under heating condition T1, the multiple elements 61 are selectively energized with an intermittent current I1 for a heating time t1. In this embodiment, the heating time is the time during which the elements 61 are energized.

[0030] More specifically, when printing the gth line, the printer 1 causes the transport unit 5 to transport the printing medium P while passing an intermittent current I1 through the dth, d+2th, and d+5th elements 61 for a period from time 0 (the start time of printing the block) to time t1. As a result, dots of the code image Q2 are formed in the (d,g) block, the (d+2,g) block, and the (d+5,g) block on the gth line. In Figures 3, 4, and 6 to 8, the dots of the code image Q2 formed under heating condition T1 are indicated by solid black.

[0031] As shown in FIG. 5, when printing a standard image in one-line printing, the printer 1 heats a plurality of elements 61 under the heating condition T2. Under the heating condition T2, the element 61 is energized with a heating time t2 (<t1) and an intermittent current I2 (<I1).

[0032] More specifically, when printing the h-th line, while the printer 1 conveys the printing medium P by the conveying unit 5, the intermittent current I2 is applied to the (e + 1)-th, (e + 2)-th, and (e + 3)-th elements 61 from time 0 to time t2. As a result, dots of the standard image (character string image R2) are formed in the (e + 1, h) block, (e + 2, h) block, and (e + 3, h) block on the g-th line. In FIGS. 3, 5, 6, and 8, the dots of the character string image R2 formed under the heating condition T2 are indicated by the hatched areas slanting downward to the left.

[0033] The code image is printed with a heating time t1 longer than the heating time t2 of the standard image. Therefore, the size of the dots of the code image within the block is larger than the size of the dots of the standard image. Further, the code image is printed with an intermittent current I1 larger than the intermittent current I2 of the standard image. Therefore, the density of the dots of the code image is darker than the density of the dots of the standard image. Thus, as shown in FIG. 3, in the printed matter, the print quality of the code image is sufficiently ensured. Also, the standard image that does not require as high print quality as the code image is printed with power saving.

[0034] A part of the code image Q1 is arranged to overlap the character string image R1 in the conveyance direction Y. A part of the code image Q2 is arranged to overlap the character string image R2 in the conveyance direction Y. For example, as shown in FIG. 3, the f-th line to the f + 2-th line include only the dots of the character string image R2. The f + 3-th line to the f + 8-th line include both the dots of the code image Q2 and the dots of the character string image R2.

[0035] For example, when printing the fth line to the f+8th line, it is possible to form both the dots of the code image Q2 and the dots of the character string image R2 under heating condition T1. In this case, in the printed character string image R2, the print quality of the fth line to the f+2th line and the print quality of the f+3rd line to the f+8th line can be made uniform, but the print quality will differ from the other character string images R1 and ruled lines L on the printing medium P, which may cause the user to feel uncomfortable.

[0036] In the printer 1 of this embodiment, when one line of printing includes both dots of a code image and dots of a character string image, the dots of the code image are formed under heating condition T1, and the dots of the standard image are formed under heating condition T2. ​​As shown in Fig. 6, the i-th line to the (i+2)-th line include both dots of the code image Q2 and dots of the character string image R2.

[0037] When printing the i-th line, the printer 1 passes an intermittent current I1 through the d+5th and d+7th elements 61 from time 0 to time t1 while transporting the printing medium P by the transport unit 5. After that, the printer 1 passes an intermittent current I2 through the e+1th, e+2nd, and e+3rd elements 61 for time t2, from time t1 to time t1+t2.

[0038] As a result, on the i-th line, dots of the code image Q2 are formed in the (d+5,i) and (d+7,i) blocks, and dots of the character string image R2 are formed in the (e+1,i), (e+2,i) and (e+3,i) blocks. On the i-th line, the dots of the character string image R2 are formed shifted upstream in the transport direction Y within the blocks relative to the dots of the code image Q2.

[0039] Thus, in printing the ith line, the printer 1 forms dots of the code image under heating condition T1, and forms dots of the standard image under heating condition T2. ​​In each line, of the multiple blocks arranged in the main scanning direction X, the area constituted by the blocks in which the dots of the code image are formed is referred to as area A, and the area constituted by the blocks in which the dots of the standard image are formed is referred to as area B. In printing one line, the printer 1 forms dots of the code image in the blocks included in area A under heating condition T1, and forms dots of the standard image in the blocks included in area B under heating condition T2.

[0040] <Dividing the area> Printer 1 heats multiple elements 61 simultaneously with power supplied from power source 10 to print head 6. The number of dots formed simultaneously in one line by power supplied from power source 10 to print head 6 is called the number of ON dots. When the maximum power that can be supplied by power source 10 is supplied to print head 6 in printer 1, the number of ON dots is K (dots). In other words, printer 1 can form a maximum of K dots simultaneously when printing one line. Hereinafter, K will be referred to as the maximum number.

[0041] For example, in code image Q2, which is a barcode, multiple ruled lines extending in transport direction Y are arranged at short intervals in main scanning direction X. In such a case, the number of dots V included in area A may exceed the maximum number K when maximum power is supplied from power source 10. In the j-th line shown in FIG. 7, the number of dots V included in area A is K+J, where J is a natural number smaller than K.

[0042] If the number of dots V contained in area A exceeds the maximum number K, printer 1 divides area A into area A1 and area A2. Area A1 is made up of K blocks. That is, the number of dots contained in area A1 is the same as the maximum number K. Area A2 is placed on the X2 direction side of area A1. The number of dots contained in area A2 is J.

[0043] A case will be described where the j-th line shown in Fig. 7 is printed. On the j-th line, only dots of the code image Q2 are formed. On the j-th line, the end block of area A1 in the X1 direction is block (c,j), and the end block of area A1 in the X2 direction is block (d-2,j). On the j-th line, the end block of area A2 in the X1 direction is block (d,j), and the end block of area A2 in the X2 direction is block (d+7,j).

[0044] In printing the jth line, the printer 1 forms dots of the code image Q2 in the blocks included in region A1 under heating condition T1. Next, the printer 1 forms dots of the code image Q2 in the blocks included in region A2 under heating condition T1. In the jth line, the dots formed in the blocks in region A2 are shifted upstream in the transport direction Y within the blocks relative to the dots formed in the blocks in region A1.

[0045] Furthermore, the number of dots W contained in region B may exceed the maximum number K. As shown in Fig. 8, in the kth line including ruled line L (standard image), the number of dots W contained in region B is K+H, where H is a natural number smaller than K.

[0046] If the number of dots W contained in area B exceeds the maximum number K, printer 1 divides area B into area B1 and area B2. Area B1 is made up of K blocks. That is, the number of dots contained in area B1 is the same as the maximum number K. Area B2 is placed on the X2 direction side of area B1. The number of dots contained in area B2 is H.

[0047] On the kth line, the end block of region B1 in the X1 direction is block (p, k), and the end block of region A1 in the X2 direction is block (q-1, k). On the jth line, the end block of region A2 in the X1 direction is block (q, k), and the end block of region A2 in the X2 direction is block (r, k).

[0048] In printing the kth line, the printer 1 forms dots of the ruled line L (standard image) in the blocks included in region B1 under heating condition T2. ​​Next, the printer 1 forms dots of the ruled line L in the blocks included in region B2 under heating condition T2. ​​In the kth line, the dots formed in the blocks in region B2 are shifted upstream in the transport direction Y within the blocks relative to the dots formed in the blocks in region B1.

[0049] A case will be described where the mth line shown in Fig. 9 is printed. The mth line includes area A and area B, and the number of dots included in area A exceeds the maximum number K. In the mth line, area A includes dots of code image Q2, and area B includes dots of character string image R2. In the mth line, the number of dots included in area A is K+J. The number of dots included in area B is less than the maximum number K.

[0050] Because the number of dots included in area A exceeds the maximum number K, printer 1 divides area A into area A1 (number of dots K) and area A2 (number of dots J). In printing the mth line, printer 1 forms dots of code image Q2 in the blocks included in area A1 under heating condition T1. Printer 1 forms dots of code image Q2 in the blocks included in area A2 under heating condition T1. Then, printer 1 forms dots of character string image R2 in the blocks included in area B under heating condition T2.

[0051] In the printed mth line, the dots formed in the blocks of region A2 are shifted upstream in the transport direction Y within the blocks relative to the dots formed in the blocks of region A1. The dots formed in the blocks of region B are shifted upstream in the transport direction Y within the blocks relative to the dots formed in the blocks of region A2.

[0052] <First main process> 10 and 11 is processing for printing an image on a print medium P. The first main processing is read from the storage unit 9 to the RAM 8 when the printer 1 is turned on, and is started by the CPU .

[0053] When the first main process starts, the CPU 7 determines whether or not image data has been received from the external device 99 (S1). A user operates the external device 99 to output image data of an image to be printed by the printer 1 from the external device 99 to the printer 1. When the CPU 7 determines that image data has not been received from the external device 99 (S1: NO), the CPU 7 returns the process to S1.

[0054] When the CPU 7 determines that image data has been received from the external device 99 via the communication unit 4 (S1: YES), it performs image analysis based on the received image data (S2). In the process of S2, the CPU 7 analyzes whether or not a code image is included in the image. The CPU 7 generates print data based on the received image data (S3). The CPU 7 acquires print conditions from the storage unit 9 (S4). The print conditions include the transport speed of the print medium P, the resolution of the printed image, etc.

[0055] The CPU 7 generates raster data based on the print data generated in S3 (S5). In the process of S5, the CPU 7 generates raster data by dividing the print data in the transport direction Y based on the resolution of the printing conditions. The print data is divided into Umax pieces of raster data. The CPU 7 stores the Umax pieces of raster data in the RAM 8. The raster data includes instructions to energize the element 61 of the print head 6 (an instruction to energize the element 61 under heating condition T1, an instruction to energize the element 61 under heating condition T2, and an instruction to stop energizing the element 61).

[0056] The CPU 7 drives the motor 51 based on the transport speed of the printing conditions, and starts transporting the print medium P downstream in the transport direction Y (S6). The CPU 7 sets the value of a variable U to 1 (S7). The value of the variable U indicates that the next line to be printed (target line) is the Uth line.

[0057] The CPU 7 acquires U-th raster data from the RAM 8 (S11). The U-th raster data is raster data for printing the U-th line. The CPU 7 acquires environmental conditions from the RAM 8 (S12). The environmental conditions include the amount of heat generated by the motor 51, etc. The amount of heat generated by the motor 51 is calculated from the printing conditions (feed speed) acquired in S3 and the driving time of the motor 51, and is stored in the RAM 8. Note that the printer 1 may store the temperature of the motor 51 detected by a temperature detection unit (not shown) in the RAM 8 as the amount of heat generated by the motor 51.

[0058] The CPU 7 calculates heating times t1 and t2 when printing the Uth line (S13). In the process of S13, the heating times t1 and t2 are calculated based on the printing conditions acquired in S3 and the environmental conditions acquired in S13.

[0059] CPU 7 identifies areas A and B on the Uth line based on the raster data acquired in S11 (S14). In the process of S14, CPU 7 identifies areas A and B on the Uth line based on a current-on instruction for elements 61 included in the raster data. CPU 7 counts the number of dots V included in area A and the number of dots W included in area B on the Uth line (S15). In the process of S15, CPU 7 counts based on the current-on instruction for elements 61 included in the raster data and the ranges of areas A and B identified in S14. CPU 7 transitions to process S21 (see FIG. 11).

[0060] 11, the CPU 7 determines whether the number of dots V in the area A counted in S15 (see FIG. 10) is greater than 0 (S21). If the CPU 7 determines that the number of dots V in the area A is 0 (S21: NO), it determines that the area A is not included in the Uth line, and shifts the process to S31.

[0061] When the CPU 7 determines that the number of dots V in the area A is greater than 0 (S21: YES), it determines that the area A is included in the Uth line, and determines whether the number of dots V in the area A is equal to or smaller than the maximum number K (S22).

[0062] When the CPU 7 determines that the number of dots V in area A is equal to or less than the maximum number K (S22: YES), it determines that all dots in area A can be formed simultaneously in printing the Uth line. The CPU 7 forms dots of the code image in the blocks included in area A under heating condition T1 (S23), and transitions to processing at S31.

[0063] When the CPU 7 determines that the number of dots V in area A is greater than the maximum number K (S22: NO), it determines that it is not possible to form all dots in area A simultaneously in printing the Uth line. The CPU 7 divides area A into area A1 and area A2 (S24). In the process of S24, the CPU 7 divides area A so that the maximum number K of dots is formed in area A1 (see FIG. 7).

[0064] The CPU 7 forms dots of the code image in the blocks included in the area A1 under the heating condition T1 (S25). The CPU 7 forms dots of the code image in the blocks included in the area A2 under the heating condition T1 (S26), and moves the process to S31.

[0065] The CPU 7 determines whether the number of dots W in the area B counted in S15 is greater than 0 (S31). If the CPU 7 determines that the number of dots W in the area B is 0 (S31: NO), it determines that the area B is not included in the Uth line, and shifts the process to S41.

[0066] When the CPU 7 determines that the number of dots W in the area B is greater than 0 (S31: YES), it determines that the area B is included in the Uth line, and determines whether the number of dots W in the area B is equal to or smaller than the maximum number K (S32).

[0067] When the CPU 7 determines that the number of dots W in area B is equal to or less than the maximum number K (S32: YES), it determines that all dots in area B can be formed simultaneously in printing the Uth line. The CPU 7 forms dots of the standard image in the blocks included in area B under heating condition T2 (S33), and transitions to the process at S41.

[0068] When the CPU 7 determines that the number of dots W in area B is greater than the maximum number K (S32: NO), it determines that it is not possible to form all dots in area B simultaneously in printing the Uth line. The CPU 7 divides area B into area B1 and area B2 (S34). In the process of S34, the CPU 7 divides area B so that the maximum number K of dots is formed in area B1 (see FIG. 8).

[0069] The CPU 7 forms dots of the standard image on the blocks included in the region B1 under the heating condition T2 (S35). The CPU 7 forms dots of the standard image on the blocks included in the region B2 under the heating condition T2 (S36), and moves the process to S41.

[0070] The CPU 7 determines whether the value of the variable U is Umax (S41). When the CPU 7 determines that the value of the variable U is not Umax (S41: NO), it determines that there is an unprinted line on the printing medium P, and adds 1 to the value of the variable U (S42). The CPU 7 returns the process to S11 (see FIG. 10).

[0071] When the CPU 7 determines that the value of the variable U is Umax (S41: YES), it determines that all lines have been printed on the printing medium P, and stops the transportation of the printing medium P by the transport unit 5 that began in S5 (see FIG. 10) (S43). The CPU 7 returns the process to S1 (see FIG. 10).

[0072] <Actions and Effects of the First Embodiment> As described above, when printing the Uth line including both area A and area B, the CPU 7 of the printer 1 forms dots of a code image in blocks included in area A under heating condition T1 (S23). Next, the CPU 7 forms dots of a standard image in blocks included in area B under heating condition T2 (S33). Area A is an area in the Uth line made up of blocks in which dots of a code image are formed. Area B is an area in the Uth line made up of blocks in which dots of a standard image are formed. Under heating condition T1, the multiple elements 61 are selectively energized for heating time t1 with intermittent current I1. Under heating condition T2, which is a heating condition different from heating condition T1, the multiple elements 61 are selectively energized for heating time t2 with intermittent current I2.

[0073] As a result, even when a part of a standard image (e.g., character string image R2) is arranged next to a code image (e.g., code image Q2) in the main scanning direction X, the part of the standard image arranged next to the code image and the part of the standard image that is not arranged next to the code image are printed under the same heating condition T2. ​​Therefore, the print quality of the part of the standard image arranged next to the code image is equivalent to the print quality of the part of the standard image that is not arranged next to the code image. Therefore, the printer 1 can print the code image and the standard image with the print quality desired by the user.

[0074] The heating time t1 under heating condition T1 is longer than the heating time t2 under heating condition T2. ​​As a result, the size of the dots in the printed code image is larger than the size of the dots in the standard image, so that the printed code image is easily read by a scanner, etc. With simple control, the printer 1 can print the code image and the standard image at the print quality desired by the user while ensuring the print quality of the code image.

[0075] The CPU 7 determines whether the number of dots V in the area A is greater than 0 (S21). If the CPU 7 determines that the number of dots V in the area A is greater than 0, it determines that the area A is included in the Uth line. The CPU 7 determines whether the number of dots W in the area B is greater than 0 (S31). If the CPU 7 determines that the number of dots W in the area B is greater than 0, it determines that the area B is included in the Uth line. If the CPU 7 determines that both the area A and the area B are included in the Uth line (S21: YES, S31: YES), it prints the area A under the heating condition T1 (S23) and prints the area B under the heating condition T2 (S33). If the CPU 7 determines that only the area A is included in the Uth line (S21: YES, S31: NO), it prints the area A under the heating condition T1 (S23). If the Uth line includes only area B (S21: NO, S31: YES), the CPU 7 prints area B under heating condition T2 (S33). In this way, the printer 1 determines whether the Uth line includes areas A and B, and executes printing processing according to the determination result. Therefore, the printer 1 can print with print quality suitable for each of the code image and the standard image.

[0076] The printer 1 can simultaneously form a maximum number K of dots in one line printing. The CPU 7 judges whether or not the number V of dots in the area A is equal to or less than the maximum number K (S22). If the CPU 7 judges that the number V of dots in the area A is greater than the maximum number K, it judges that all dots in the area A cannot be formed simultaneously in the printing of the Uth line. The CPU 7 divides the area A into an area A1 and an area A2 (S24). In the process of S24, the CPU 7 divides the area A so that the maximum number K of dots is formed in the area A1. The CPU 7 forms dots of the code image in the blocks contained in each of the areas A1 and A2 under the heating condition T1 (S25, S26). The CPU 7 judges whether or not the number W of dots in the area B is equal to or less than the maximum number K (S32). If the CPU 7 judges that the number W of dots in the area B is greater than the maximum number K, it judges that all dots in the area B cannot be formed simultaneously in the printing of the Uth line. CPU 7 divides area B into area B1 and area B2 (S34). In the process of S34, CPU 7 divides area B so that the maximum number of dots K is formed in area B1. CPU 7 forms dots of the standard image in the blocks contained in area B1 and area B2 under heating condition T2 (S35, S36). Therefore, even if printer 1 cannot simultaneously form all dots in area A and area B, it can print the code image and standard image with the print quality desired by the user.

[0077] <Second embodiment> A second embodiment of the present invention will be described with reference to Figures 12 to 16. The second embodiment differs from the first embodiment in the print control of the printer 1. Hereinafter, the same reference numerals will be used to designate configurations common to the first embodiment, and descriptions thereof will be omitted or simplified.

[0078] <Print Control of the Second Embodiment> As shown in FIG. 12, when printing a standard image in one line printing, the printer 1 heats the multiple elements 61 under heating condition T3. Under heating condition T3, the elements 61 are energized with an intermittent current I3 for a heating time t3. The heating time t3 is the time required to form dots of the standard image when the elements 61 are heated with the intermittent current I3. When printing the h-th line, the printer 1 energizes the elements 61 with the intermittent current I3 from time 0 to time t3 while transporting the printing medium P by the transport unit 5. In FIGS. 12 to 15 and FIG. 17 in the third embodiment described later, the dots of the image (code image, standard image) formed with the intermittent current I3 are shown as hatched areas diagonally downward to the right.

[0079] 13, when printing a code image in one line of printing, the printer 1 heats the elements 61 under heating condition T3, and then heats the elements 61 under heating condition T4. Under heating condition T4, the elements 61 are selectively energized with an intermittent current I3 for a heating time t4. The heating time t4 is the difference between the heating time t3 and the heating time t5 (>t3) required to form dots of the code image with the intermittent current I3 (t4=t5-t3).

[0080] When printing the gth line, the printer 1 causes the transport unit 5 to transport the print medium P while passing an intermittent current I3 through the element 61 from time 0 to time t3 (heating condition T3) to form a portion of a dot of the code image Q2.

[0081] Next, the printer 1 energizes the element 61 with the intermittent current I3 for a time t4 from time t3 to time t3+t4 (=t5) (heating condition T4) to form the remaining dots of the code image Q2. As a result, in the blocks included in the region A, dots of the code image Q2 are formed by combining heating under heating condition T3 and heating under heating condition T4.

[0082] The length in the transport direction Y of the dots of the code image formed during heating time t3+t4 (see FIG. 12) is greater than the length in the transport direction Y of the dots of the standard image formed during heating time t3 (see FIG. 13).

[0083] 14, when the printer 1 prints a line (the i-th line) that includes both area A and area B, it simultaneously forms dots that are a portion of the code image and dots that are a standard image. In more detail, when printing the i-th line, the printer 1 heats the elements 61 under heating conditions T3 (intermittent current I3, heating time t3) from time 0 to form dots in area A and area B while transporting the printing medium P with the transport unit 5. Dots of the character string image R2 are formed in the blocks of area B, and some of the dots of the code image Q2 are formed in the blocks of area A.

[0084] Next, in order to form the remaining dots of the code image Q2, the printer 1 heats the elements 61 corresponding to the region A under the heating condition T4 (intermittent current I3, heating time t4) from time t4. The remaining dots of the code image Q2 are formed in the blocks of the region A.

[0085] <Division of Area in Second Embodiment> As in the first embodiment, the printer 1 of the second embodiment divides area A and area B when the number of dots formed in printing one line exceeds the maximum number K. The explanation of the division of area A when one line includes only area A, and the explanation of the division of area B when one line includes only area B are the same as in the first embodiment, and therefore will not be repeated.

[0086] A case will be described where the mth line shown in FIG. 15 is printed. The mth line includes areas A and B, and the total number of dots included in areas A and B exceeds the maximum number K. In the mth line, area A includes dots of code image Q2, and area B includes dots of character string image R2. In the mth line, the total number of dots included in areas A and B is K+G, where G is a natural number smaller than K. In this embodiment, for simplicity of explanation, it is assumed that the number of dots included in area A is greater than the maximum number K.

[0087] Because the total number of dots contained in area A and area B exceeds the maximum number K, printer 1 divides area A + area B into area A1 and area A2 + area B. Printer 1 divides area A1 so that the number of dots contained in area A1 becomes the maximum number K. After division, the total number of dots contained in area A2 + area B is G.

[0088] In printing the m-th line, the printer 1 forms some of the dots of the code image Q2 in the blocks included in area A1 under heating condition T3 (heating time t3) from time 0. The printer 1 simultaneously forms some of the dots of the code image Q2 and the dots of the character string image R2 in the blocks included in area A2+area B under heating condition T3 (heating time t3) from time t3.

[0089] Next, the printer 1 forms the remaining dots of the code image Q2 in the blocks of the area A1 under heating condition T4 (heating time t4) from time 2t3. The printer 1 forms the remaining dots of the code image Q2 in the blocks of the area A2 under heating condition T4 (heating time t4) from time 2t3+t4.

[0090] <Second main process> The second main process executed by the CPU 7 of the second embodiment will be described with reference to Fig. 16. The second main process has the same processes as S1 to S15 of the first main process shown in Fig. 10 and S41 to S43 shown in Fig. 11, and therefore the description of these processes will be omitted. Note that in S13, heating times t3 and t4 are calculated instead of heating times t1 and t2.

[0091] 16, the CPU 7 determines whether the total number V+W of the number of dots V in area A and the number of dots W in area B counted in S15 (see FIG. 10) is greater than 0 (S51). If the CPU 7 determines that the total number V+W of dots in area A and area B is 0 (S51: NO), it determines that no dots of the code image or standard image will be formed on the Uth line to be printed, and transitions to the process of S41.

[0092] If the CPU 7 determines that the total number of dots V+W in area A and area B is greater than 0 (S51: YES), it determines that at least one of area A and area B is included in the Uth line, and determines whether the total number of dots V+W in area A and area B is less than or equal to the maximum number K (S52).

[0093] When the CPU 7 determines that the total number V+W of dots in area A and area B is equal to or less than the maximum number K (S52: YES), it determines that all dots in area A and area B can be formed simultaneously in printing the Uth line. The CPU 7 heats area A and area B under heating condition T3 (heating time t3) to simultaneously form a portion of the dots of the code image included in the Uth line and the dots of the standard image (S53). The CPU 7 transitions the process to S61.

[0094] When the CPU 7 determines that the total number V+W of dots in area A and area B is greater than the maximum number K (S52: NO), it determines that it is not possible to form all of the dots in area A and area B simultaneously in printing the Uth line. The CPU 7 divides area A+area B into area A1 and area A2+area B (S54). In the processing of S54, the CPU 7 divides the area A1 so that the maximum number K of dots are formed in area A1 (see FIG. 15).

[0095] The CPU 7 heats the blocks included in the area A1 under heating condition T3 to form dots of a portion of the code image included in the area A1 (S55). The CPU 7 heats the blocks included in the area A2+area B under heating condition T3 to simultaneously form dots of the standard image and a portion of the dots of the code image included in the area A2 (S56). The CPU 7 transitions to process S61.

[0096] The CPU 7 determines whether the number of dots V in the area A is greater than 0 (S61). When the CPU 7 determines that the number of dots V in the area A is 0 (S61: NO), it determines that the Uth line includes the area B but does not include the area A, and shifts the process to S41.

[0097] When the CPU 7 determines that the number of dots V in the area A is greater than 0 (S61: YES), it determines that the area A is included in the Uth line, and determines whether the number of dots V in the area A is equal to or smaller than the maximum number K (S62).

[0098] When the CPU 7 determines that the number of dots V in the area A is equal to or less than the maximum number K (S62: YES), it determines that all dots in the area A can be formed simultaneously in printing the Uth line. The CPU 7 heats the area A specified in S14 (see FIG. 10) under heating condition T4 (heating time t4) to simultaneously form the remaining dots of the code image (S63). The CPU 7 transitions the process to S41.

[0099] When the CPU 7 determines that the number of dots V in area A is greater than the maximum number K (S62: NO), it determines that it is not possible to form all of the dots in area A simultaneously in printing the Uth line. The CPU 7 divides area A into area A1 and area A2 (S64). In the process of S64, the CPU 7 divides area A so that the maximum number K of dots is formed in area A1.

[0100] The CPU 7 heats the blocks included in the region A1 under heating condition T4 to form dots in the remaining portion of the code image included in the region A1 (S65). The CPU 7 heats the blocks included in the region A2 under heating condition T4 to simultaneously form dots in the remaining portion of the code image included in the region A2 (S66). The CPU 7 transitions the process to S41.

[0101] <Actions and Effects of the Second Embodiment> As described above, when printing the Uth line including both area A and area B, the CPU 7 of the printer 1 heats area A and area B under heating condition T3 (heating time t3) to simultaneously form a portion of the dots of the code image included in the Uth line and the dots of the standard image (S53). The CPU 7 determines that all of the dots in area A can be formed simultaneously in printing the Uth line. The CPU 7 heats area A under heating condition T4 (heating time t4) to simultaneously form the remaining portion of the dots of the code image (S63).

[0102] As a result, even when a part of the standard image is arranged next to the code image in the main scanning direction X, the part of the standard image arranged next to the code image and the part of the standard image that is not arranged next to the code image are printed under the same heating condition T3. Therefore, the print quality of the part of the standard image arranged next to the code image is equivalent to the print quality of the part of the standard image that is not arranged next to the code image. Therefore, the printer 1 can print the code image and the standard image with the print quality desired by the user.

[0103] The heating time t3 under heating condition T3 is the time required to form dots of the standard image when element 61 is heated by intermittent current I3. The heating time t4 under heating condition T4 is the difference between heating time t5 required to form dots of the code image by intermittent current I3 and heating time t3 (t4=t5-t3). With simple control, the printer 1 can print the code image and standard image at the print quality desired by the user while ensuring the print quality of the code image.

[0104] The CPU 7 identifies areas A and B in the Uth line based on the raster data (S14). The CPU 7 heats areas A and B under heating condition T3 to simultaneously form a portion of the dots of the code image included in the Uth line and the dots of the standard image (S53). The CPU 7 heats the identified area A under heating condition T4 to simultaneously form the remaining dots of the code image (S63). Regardless of whether the Uth line includes areas A and B, the printer 1 prints all dots in areas A and B of the Uth line under heating condition T3, and prints the identified area A under heating condition T4. Thus, the printer 1 can confirm the presence or absence of dots that form the code image in the Uth line through simple processing, and print with print quality appropriate for each of the code image and the standard image.

[0105] The printer 1 can simultaneously form a maximum number K of dots in printing one line. The CPU 7 judges whether the total number V+W of dots in the area A and the area B is equal to or less than the maximum number K (S52). If the CPU 7 judges that the total number V+W is greater than the maximum number K, it judges that all dots in the area A and the area B cannot be simultaneously formed in printing the Uth line. The CPU 7 divides the area A+the area B into an area A1 and an area A2+the area B (S54). In the process of S54, the CPU 7 divides the area A1 so that the maximum number K of dots is formed in the area A1. The CPU 7 prints the blocks contained in each of the area A1 and the area A2+the area B under the heating condition T3 (S56). The CPU 7 judges whether the number V of dots in the area A is equal to or less than the maximum number K (S62). If the CPU 7 judges that the number V of dots in the area A is greater than the maximum number K, it judges that all dots in the area A cannot be simultaneously formed in printing the Uth line. CPU 7 divides area A into area A1 and area A2 (S64). In the process of S64, CPU 7 divides area A so that a maximum number K of dots are formed in area A1. CPU 7 prints the blocks contained in area A1 and area A2 under heating condition T4 (S65, S66). Therefore, even if printer 1 cannot simultaneously form all dots in area A and area B, it is possible to print code images and standard images with the print quality desired by the user.

[0106] <Third embodiment> A third embodiment of the present invention will be described with reference to Figs. 17 and 18. The third embodiment differs from the first and second embodiments in the print control of the printer 1. More specifically, when printing the gth line (see Fig. 13) including only area A, in the second embodiment, dots in area A are formed by two heating conditions, T3 and T4, but in the third embodiment, dots in area A are formed by one heating condition. Hereinafter, the same reference numerals are used for configurations common to the first and second embodiments, and descriptions thereof will be omitted or simplified. Also, the division of area A and area B will be omitted for the sake of simplicity of description.

[0107] <Print Control of Third Embodiment> As shown in FIG. 17, the printer 1 heats the multiple elements 61 under heating condition T5 when printing a line including only region A. Under heating condition T5, the elements 61 are energized with intermittent current I3 for heating time t5 (=t3+t4). As described above in the second embodiment, the heating time t5 is the time required to form dots of the code image when the elements 61 are heated with intermittent current I3. When printing the gth line, the printer 1 energizes the elements 61 with intermittent current I3 from time 0 to time t5 while transporting the printing medium P by the transport unit 5, thereby forming dots of the code image for blocks included in region A. The print control in printing a line including only region B and printing a line including both region A and region B is the same as in the second embodiment, and therefore will not be described.

[0108] <Third main process> The third main process executed by the CPU 7 of the third embodiment will be described with reference to Fig. 18. The third main process has the same processes as S1 to S15 of the first main process shown in Fig. 10 and S41 to S43 shown in Fig. 11, and therefore description of these processes will be omitted. Note that in S13, heating times t3 and t4 are calculated instead of heating times t1 and t2.

[0109] 18, the CPU 7 determines whether the number of dots V in the area A is greater than 0 (S71). When the CPU 7 determines that the number of dots V in the area A is 0 (S71: NO), it determines that the area A is not included in the Uth line, and shifts the process to S76.

[0110] When the CPU 7 determines that the number of dots V in area A is greater than 0 (S71: YES), it determines that area A is included in the Uth line, and determines whether the number of dots W in area B is greater than 0 (S72). When the CPU 7 determines that the number of dots W in area B is greater than 0 (S72: YES), it determines that both area A and area B are included in the Uth line.

[0111] CPU 7 heats area A and area B under heating condition T3 (heating time t3) to simultaneously form a portion of the dots of the code image and the dots of the standard image included in the Uth line (S73). Next, CPU 7 heats area A under heating condition T4 (heating time t4) to simultaneously form the remaining portion of the dots of the code image (S74). CPU 7 transitions the process to S41.

[0112] When the CPU 7 determines that the number of dots W in the area B is 0 (S72: NO), it determines that the Uth line includes the area A but not the area B, and heats the area A under the heating condition T5 (heating time t5 (=t3+t4)) to form dots of the code image (S75). The CPU 7 shifts the process to S41.

[0113] The CPU 7 determines whether the number of dots W in the area B is greater than 0 (S76). When the CPU 7 determines that the number of dots W in the area B is 0 (S76: NO), it determines that the Uth line does not include both the area A and the area B, and shifts the process to S41.

[0114] When the CPU 7 determines that the number of dots W in the area B is greater than 0 (S76: YES), it determines that the Uth line does not include the area A but includes the area B. The CPU 7 heats the area B under the heating condition T3 (heating time t3) to form dots of the standard image (S77). The CPU 7 shifts the process to S41.

[0115] <Actions and Effects of the Third Embodiment> As described above, the CPU 7 of the printer 1 judges whether the dot count V of the area A is greater than 0 (S71). When the CPU 7 judges that the dot count V of the area A is greater than 0, it judges that the area A is included in the Uth line. The CPU 7 judges whether the dot count W of the area B is greater than 0 (S72, S76). When the CPU 7 judges that the dot count W of the area B is greater than 0, it judges that the area B is included in the Uth line. When the CPU 7 judges that both the area A and the area B are included in the Uth line, it prints the area A and the area B under the heating condition T3 (S73) and prints the area A under the heating condition T4 (S74). When the CPU 7 judges that only the area A is included in the Uth line, it prints the area A under the heating condition T5 (heating time t5) (S75). When the CPU 7 judges that only the area B is included in the Uth line, it prints the area B under the heating condition T4 (S33). In this way, the printer 1 determines whether the Uth line includes area A and area B, and executes printing processing according to the determination result. Therefore, the printer 1 can print with print quality suitable for each of the code image and the standard image. Furthermore, when the Uth line includes only area A, the printer 1 forms dots of the code image in one process (S75), thereby simplifying the process.

[0116] <Modification> The present invention can be modified in various ways from the above embodiment. The various modified examples described below can be combined with each other as long as no contradiction occurs. For example, instead of the CPU 7, a microcomputer, an ASIC (Application Specific Integrated Circuits), an FPGA (Field Programmable Gate Array), etc. may be used as a processor. The first main process, the second main process, and the third main process may be distributed and processed by a plurality of processors. For example, processes such as image analysis (S2), generation of print data (S3), generation of raster data (S5), and calculation of heating times t1 (t3) and t2 (t4) (S13) may be executed by a control device that controls an external device 99.

[0117] A non-transient storage medium such as the ROM 32 or the storage device 34 may be a storage medium capable of retaining information regardless of the period for which the information is stored. A non-transient storage medium may not include a temporary storage medium (e.g., a transmitted signal). The control programs for executing the first main process, the second main process, and the third main process may be downloaded (i.e., transmitted as a transmission signal) from a server connected to a network (not shown), and stored in the storage unit 9. In this case, the control programs may be stored in a non-transient storage medium such as an HDD provided in the server.

[0118] In the above embodiment, the printer 1 has the print head 6 print on the print medium P transported in the transport direction Y by the transport unit 5, but it may also print on the placed print medium P while moving the print head 6 in the transport direction Y, for example.

[0119] The power source 10 is not limited to a battery, but may be, for example, a commercial power source or a host device capable of supplying power via USB.

[0120] The code image may be any image that indicates code information and is not limited to the code images Q1 and Q2 in the above embodiment. The code image may be, for example, a two-dimensional code such as VeriCode or PDF417, or a composite symbol such as a GS1 composite symbol that combines a one-dimensional code (barcode) and a two-dimensional code.

[0121] In the first embodiment, the heating conditions T1 and T2 differ in the heating time and the intermittent current. In contrast, the heating conditions T1 and T2 may differ in either the heating time or the intermittent current.

[0122] In the second embodiment, the heating conditions T3 and T4 may have different intermittent currents. The heating conditions T3 and T4 may have the same heating times t3 and t4. In this case, for example, in printing one line, the areas A and B are printed under the heating condition T4 to form the dots of the standard image and half of the dots of the code image, and then the area A is printed under the heating condition T4 to form the remaining half of the dots of the code image.

[0123] In the first embodiment (second embodiment), the heating condition T1 (T3) and the heating condition T2 (T4) may have different chopping control methods (e.g., duty ratios). In this case, the element 61 applies pulsed power to form dots. The heating condition T1 (T3) and the heating condition T2 (T4) may have different heating times. In this case, for example, heating is performed three times with an intermittent current I1 and a heating time t1 under heating condition T1, and heating is performed two times with an intermittent current I1 and a heating time t1 under heating condition T2.

[0124] In the first embodiment (second embodiment), the heating time t1 (t3) and the heating time t2 (t4) are different in terms of the time for which the element 61 is energized. In contrast, the heating conditions T1 and T2 may be configured so that the time for which the element 61 is energized is the same, and the heating time t1 (t3) and the heating time t2 (t4) are changed by transporting the print medium P at different transport speeds. For example, the transport speed is 40 mm / s under heating condition T2, and 20 mm / s under heating condition T1. In this case, the heating time t1 (t3) is twice as long as the heating time t2 (t4).

[0125] In the second embodiment, the heating time t3 is not limited to the time required to form dots of a standard image when the element 61 is heated by the intermittent current I3. The heating time t5 is not limited to the time required to form dots of a code image when the element 61 is heated by the intermittent current I3. The heating time t4 does not have to be the difference between the heating time t5 and the heating time t3. The heating time t4 may be an average value obtained by statistically processing the heating time t5 and the heating time t3.

[0126] In the first and third embodiments, it may be determined whether area B is included in the U line by determining whether the number of dots V contained in area A is greater than 0, and then determining whether the number of dots W contained in area B is less than the number of dots V contained in area A.

[0127] In the second embodiment, it may be determined whether area A is included in the Uth line by determining whether the total number of dots V+W contained in area A and area B is greater than 0, and then determining whether the number of dots W contained in area B is less than the total number V+W.

[0128] In the first and second embodiments, the method of dividing the area A and the area B may be changed as appropriate. The area A (area B) may be divided into three or more areas. The number of dots included in the area A1 (area B1) does not have to be the maximum number K, as long as it does not exceed the maximum number K in the divided areas. In the second embodiment, the area A+area B is divided into the area A1 and the area A2+area B, but the area A+area B may be divided into the area A+B1 and the area A+area B2, or into the area A1+B1 and the area A2+area B2. When the area A is divided after the area A+area B is divided into the area A1 and the area A2+area B, the area A may be divided into the area A3 and the area A4.

[0129] In the first and third embodiments, the dots of the standard image may be formed in region B, and then the dots of the code image may be formed in region A. In the second embodiment, after a portion of the dots of the code may be formed in region A, the remaining portion of the dots of the code image may be formed in region A and the dots of the standard image may be formed in region B at the same time.

[0130] <Other> The element 61 is an example of the "heating element" of the present invention. The CPU 7 is an example of the "control unit" of the present invention. The U-th line is an example of the "target line" of the present invention. The area A is an example of the "first area" of the present invention. The area B is an example of the "second area" of the present invention. The heating condition T1 is an example of the "first heating condition" of the present invention. The process of S23 is an example of the "first printing process", "first printing step", and "third printing process" of the present invention. The heating condition T2 is an example of the "second heating condition" of the present invention. The process of S33 is an example of the "second printing process", "second printing step", and "fourth printing process" of the present invention. The processes of S21 and S71 are an example of the "first area determination process" of the present invention. The processes of S31, S72, and S76 are an example of the "second area determination process" of the present invention. The process of S22 is an example of the "first power determination process" of the present invention. The process of S24 is an example of the "first division process" of the present invention. The process of S32 is an example of a "second power determination process" of the present invention. The process of S34 is an example of a "second division process" of the present invention. Heating condition T3 is an example of the "third heating condition" of the present invention. The process of S53 is an example of the "fifth printing process" or "fifth printing step" of the present invention. Heating condition T4 is an example of the "fourth heating condition" of the present invention. The process of S63 is an example of the "sixth printing process" or "sixth printing step" of the present invention. Heating time t3 is an example of the "second time" of the present invention. Heating time t5 is an example of the "first time" of the present invention. Heating time t4 is an example of the "third time" of the present invention. The process of S75 is an example of the "seventh printing process" of the present invention. The process of S77 is an example of the "eighth printing process" of the present invention. The process of S14 is an example of the "area determination process" of the present invention. The process of S52 is an example of the "third power determination process" of the present invention. The process of S54 is an example of the "third division process" of the present invention. The process of S62 is an example of the "fourth power determination process" of the present invention. The process of S64 is an example of the "fourth division process" of the present invention. [Explanation of symbols]

[0131] 1. Printer 6 Print Head 7 CPU 10 Power supply 61 elements

Claims

1. a print head having a heating element; a control unit that controls the heating elements to heat the heating elements and causes the print head to form dots for each line extending in a main scanning direction; The control unit is In a target line to be printed, a first area formed of the dots forming a code image indicating code information and a second area formed of the dots forming a standard image different from the code image are arranged side by side in the main scanning direction, a first printing process for forming the dots in the first region by heating the heating elements under a first heating condition; and performing a second printing process to form the dots in the second region by heating the heating elements under second heating conditions different from the first heating conditions. A printer characterized by:

2. 2. The printer according to claim 1, wherein a heating time of the heating element under the first heating condition is longer than a heating time under the second heating condition.

3. The control unit is a first area determination process for determining whether the first area is included in the target line; a second area determination process for determining whether or not the second area is included in the target line; executing the first printing process and the second printing process when it is determined by the first area determination process that the first area is included in the target line and when it is determined by the second area determination process that the second area is included in the target line; a third printing process for forming the dots in the first area by heating under the first heating condition when the first area determination process determines that the first area is included in the target line and the second area determination process determines that the second area is not included in the target line; executing a fourth printing process for forming the dots in the second area by heating under the second heating condition when the first area determination process determines that the first area is not included in the target line and the second area determination process determines that the second area is included in the target line; 3. The printer according to claim 1 or 2, characterized in that

4. a power supply for supplying power to the print head; When the maximum power that can be supplied by the power source is supplied to the print head, the maximum number of dots is formed simultaneously; The control unit is a first power determination process for determining whether the number of dots in the first region is greater than the maximum number; a first division process for dividing the first region based on the maximum number when it is determined by the first power determination process that the number of dots in the first region is greater than the maximum number; a second power determination process for determining whether the number of dots in the second region is greater than the maximum number; a second division process for dividing the second region based on the maximum number when the second power determination process determines that the number of dots in the second region is greater than the maximum number; The control unit is In the first printing process, the dots in the first region are formed by heating each of the regions obtained by dividing the first region through the first division process under the first heating condition; In the second printing process, the dots in the second region are formed by heating each of the regions obtained by dividing the second region through the second dividing process under the second heating conditions.

2. The printer according to claim 1,

5. a print head having a heating element; a control unit that controls the heating elements to heat the heating elements and causes the print head to form dots for each line extending in a main scanning direction; The control unit is In a target line to be printed, a first area formed of the dots forming a code image indicating code information and a second area formed of the dots forming a standard image different from the code image are arranged side by side in the main scanning direction, a fifth printing process for forming the dots in the first region and the second region by heating the heating elements under a third heating condition; and performing a sixth printing process to form the dots in the first region by heating the heating elements under a fourth heating condition. A printer characterized by:

6. in the fifth printing process, a heating time of the heating elements under the third heating condition is a time for forming the dots of the standard image as a second time for forming the dots of the standard image, 6. The printer according to claim 5, wherein in the sixth printing process, the heating time under the fourth heating condition is a third time that is a difference between a first time and the second time for forming the dots of the code image.

7. The control unit is a first area determination process for determining whether the first area is included in the target line; a second area determination process for determining whether or not the second area is included in the target line; executing the fifth printing process and the sixth printing process when it is determined by the first area determination process that the first area is included in the target line and when it is determined by the second area determination process that the second area is included in the target line; a seventh printing process is executed to form the dots in the first area by heating the heating elements for a heating time of a first time for forming the dots of the code image, when the first area is determined to be included in the target line by the first area determination process and the second area is determined to be not included in the target line by the second area determination process; When the first area determination process determines that the first area is not included in the target line and the second area determination process determines that the second area is included in the target line, an eighth printing process is executed to form the dots in the second area by heating the printing medium for a heating time equal to a second time for forming the dots of the standard image.

7. The printer according to claim 5 or 6,

8. The control unit is executing an area specifying process for specifying the first area in the target line; The fifth printing process is executed for all dots of the target line to be printed. Executing the sixth printing process on the first area identified by the area identification process.

7. The printer according to claim 5 or 6,

9. a power supply for supplying power to the print head; When the maximum power that can be supplied by the power source is supplied to the print head, the maximum number of dots is formed simultaneously; The control unit is a third power determination process for determining whether the total number of dots in the first region and the second region is greater than the maximum number; a third division process for dividing the first region and the second region based on the maximum number when it is determined by the third power determination process that the total number of dots in the first region and the second region is greater than the maximum number; a fourth power determination process for determining whether the number of dots in the first region is greater than the maximum number; a fourth division process for dividing the first region based on the maximum number when the fourth power determination process determines that the number of dots in the first region is greater than the maximum number; The control unit is In the fifth printing process, the dots in the first region and the second region are formed by heating each of the regions obtained by dividing the first region and the second region under the third heating condition in the third division process; In the sixth printing process, the dots in the first area are formed by heating each of the areas obtained by dividing the first area in the fourth division process under the fourth heating condition.

6. The printer according to claim 5,

10. A program to be executed by a computer that controls a printer that includes a print head having heating elements, controls the heating elements to heat the print head, and forms dots for each line extending in a main scanning direction by the print head, When a target line to be printed includes a first region configured with the dots forming a code image indicating code information and a second region configured with the dots forming a standard image different from the code image, and the first region and the second region are arranged side by side in the main scanning direction, a first printing step of forming the dots in the first region by heating the heating elements under a first heating condition; a second printing step of forming the dots in the second region by heating the heating elements under second heating conditions different from the first heating conditions; A program for causing the computer to execute the above.

11. A program to be executed by a computer that controls a printer that includes a print head having heating elements, controls the heating elements to heat the print head, and forms dots for each line extending in a main scanning direction by the print head, When a target line to be printed includes a first region configured with the dots forming a code image indicating code information and a second region configured with the dots forming a standard image different from the code image, and the first region and the second region are arranged side by side in the main scanning direction, a fifth printing step of forming the dots in the first region and the second region by heating the heating elements under a third heating condition; a sixth printing step of forming the dots in the first region by heating the heating elements under a fourth heating condition; A program for causing the computer to execute the above.

Citation Information

Patent Citations

  • Printer and printing method thereof

    JP2015047826A