The present application claims priority from Japanese Patent Application No. 2017-186501, which was filed on Sep. 27, 2017, the disclosure of which is incorporated herein by reference in its entirety.
The present disclosure relates to a medium recording a printing processing program.
For example, a thermal label printer printing labels by heat treatment is restricted in instantaneous maximum power consumption due to circumstances such as being driven by batteries. Therefore, in a thermal label printer, a restriction may be applied on the number of black-colored dots per line (the number of black dots in a raster direction). To alleviate such a restriction, for example, a printing processing program of a thermal label printer reducing a printing speed is already known. Specifically, according to this printing processing program, a process is executed for reducing a label feeding speed relative to a thermal head for a line with a large proportion of black-colored dots (also referred to as black proportion) and increasing the label feeding speed for a line with a small black proportion.
However, this results in a reduction in overall label printing speed. Furthermore, a print may become uneven due to occurrence of streaky noise (also referred to as banding) parallel to a main scanning direction (direction orthogonal to the raster direction. also referred to as a transport direction) associated with the change in the feeding speed, so that an aesthetic appearance of a label print result may be deteriorated.
An object of the present disclosure is to provide a medium capable of preventing deterioration in aesthetic appearance of a printing result without lowering a printing speed even in a line with a large black proportion.
In order to achieve the above-described object, according to the aspect of the present application, there is provided a non-transitory computer-readable medium storing a printing processing program for executing steps on a computing device, the computing device included in an operating terminal for operating a printer comprising a thermal line head that includes a plurality of heat generation elements and is configured to form dots on respective print lines divided by print resolution on a fed print-receiving medium, and an energizing device configured to selectively control drive of the plurality of heat generation elements according to print data, the steps comprising a dot pattern generation step for generating a binarized dot pattern including on-dots to be printed and off dots not to be printed corresponding to the print data, a line specification step for determining whether or not an on-dot ratio represented by the number of on-dots/(the number of on-dots+the number of off-dots), or the number of on-dots, is equal to or greater than a threshold value for each print line in the binarized dot pattern generated in the dot pattern generation step, and for specifying at least one print lines equal to or greater than the threshold value, a labeling step for separately identifying a plurality of dot groups such that the on-dots adjacent to each other form one dot group in the binarized dot pattern generated in the dot pattern generation step, a dot group specification step for specifying at least one first dot groups including the at least one print lines specified in the line specification step among the plurality of groups identified in the labeling step, and a density reduction process step for executing a predetermined density reduction process of making a density at the time of print formation of the on-dots included in the first dot groups specified in the dot group specification step lower than a density at the time of print formation of the on-dots included in at least one second dot groups other than the first dot groups.
The present embodiment will now be described in detail with reference to the accompanying drawings. In this description and the drawings, constituent elements having substantially the same functions are denoted by the same reference numerals in principle. Redundant descriptions of these constituent elements will be omitted as appropriate.
First, a general configuration of a printing system executing a printing processing program according to an embodiment of the present disclosure will be described with reference to
As shown in
The printer 1 has a thermal line head 32 (see
The operation terminal X1 is a terminal for operating the printer 1 and causes a general-purpose or dedicated computer to execute a printing processing program to implement procedures according to an embodiment of the present disclosure. Consequently, the operation terminal X1 transmits print data to the printer 1 and causes the printer 1 to print the print data. For this purpose, the operation terminal X1 has a computing device X2.
The computing device X2 may have a CPU (Central Processing Unit), a recording medium such as an HDD (Hard Disk Drive), a ROM (Read Only Memory), and a RAM (Random Access Memory), a communication device connected to a network such as a LAN (Local Area Network) and the Internet, an input device such as a mouse and a keyboard, a drive for reading and writing on a magnetic disk such as flexible disk, various optical discs such as CD (Compact Disc), MO (Magneto Optical) disc, and DVD (Digital Versatile Disc), a removable recording medium such as a semiconductor memory, etc., and an output device such as a display device such as a monitor and an audio output device such as a speaker and a headphone. The computing device X2 executes a program recorded in the recording medium/the removable recording medium, or a program acquired through the network, to perform a series of procedures according to an embodiment of the present disclosure. In this case, the recording medium may be provided with, for example, a text memory area for storing print data including a text document (kuten codes) etc. produced by a user using various applications such as a word processor, a print buffer area for storing print dot patterns of multiple characters, symbols, etc., a parameter storage area for storing various pieces of computing data, etc.
The computing device X2 executes as a series of procedures a voltage acquisition procedure and a first threshold value setting procedure and/or a model acquisition procedure and a second threshold value setting procedure, a labeling procedure, a dot group specification procedure, and a density reduction processing procedure, with the printing processing program according to the embodiment of the present disclosure. To facilitate understanding of the embodiment of the present disclosure, an example of the printer 1 included in the printing system will first be described in detail, and these procedures will be described in detail later.
A thermal printing type print label producing device (also referred to as a “thermal label printer”) will be described as an example of the printer 1. It is noted that the printer 1 to be described is merely an example of a printer operated by executing the printing processing program according to the embodiment of the present disclosure, and the present disclosure is not limited thereto.
As shown in
The roll sheet 3A includes an elongated sheet etc. having multiple pages in a length direction and is wound around the roll sheet holder 3. Particularly in this example, the roll sheet 3A is a so-called die-cut tape that has multiple label mounts S each preliminarily separated into a predetermined size, including a self-coloring thermal layer 3c, and continuously arranged away from each other in the length direction on one surface of a separation sheet 3a (see
The opening/closing cover 5 is pivotally supported by the housing 2 via the hinge parts 60 and is allowed to pivot so that an opening portion OP is opened and closed above the roll sheet holder storage part 4.
A front cover 6 on the front side of the opening/closing cover 5 is provided with a sheet discharging exit 6A discharging the roll sheet 3A subjected to a printing process (print process) (hereinafter also simply referred to as “printed”). On a front surface portion on the upper side of the sheet discharging exit 6A, a total of four buttons are substantially horizontally arranged as a power button 7A, a cut button 7B pressed down for driving the cutter unit 80 (see
A rear surface portion of the housing 2 is provided with an inlet 10 for connecting a power cord 9 (see
A bottom surface portion of the roll sheet holder storage part 4 is provided with multiple sheet determination sensors (not shown) including, for example, push-type microswitches for determining the type, material, roll sheet width, etc. of the roll sheet 3A. These sheet determination sensors are composed of known mechanical switches including plungers and microswitches, and the on/off signals thereof are used for detecting the type, material, roll sheet width, etc. of the roll sheet 3A mounted on the roll sheet holder 3.
As shown in
A cutter unit 80 is disposed downstream of the platen roller 35 and the thermal line head 32 in the transport direction of the roll sheet 3A (on the left side in
On the other hand, the lower side of the roll sheet holder storage part 4 is provided with a control board (including a power source board etc.) 40, a battery storage part (not shown) storing a battery BT described later, etc. The control board 40 is disposed with a control circuit 210 (see
A control system of the printer 1 will be described with reference to
In
The control circuit 210 is a so-called microcomputer, including a CPU, a ROM, a RAM, etc., and executes a signal process according to a program (application) stored in the ROM in advance while using a temporary storage function of the RAM. The control circuit 210 is connected to the display part 8, the operation part 7, and the communication circuit 211B. The control circuit 210 is connected to an appropriate communication line via the communication circuit 211B and thereby can exchange information with the operation terminal X1, a route server, another terminal, a general-purpose computer, an information server, etc. connected to this communication line.
The RAM is provided with, for example, the text memory area, the print buffer area, the parameter storage area, etc. The text memory area stores print data transmitted from the operation terminal X1. The print buffer area stores print dot patterns of multiple characters, symbols, etc. as dot pattern data (print data), and the thermal line head 23 performs a dot print (printing process) in accordance with the dot pattern data stored in the printing buffer. The parameter storage area stores various pieces of computing data.
The control circuit 210 is connected to the power source circuit 211A. The power source circuit 211A is connected to the AC adapter 207 connected to the external power source device and executes power-on/off processes of the printing device 1. Additionally, the control circuit 210 is provided with an A/D input circuit 219 connected to the battery BT (e.g., a lithium ion rechargeable battery) stored in the battery storage part for measuring (detecting) an output voltage value of the battery BT. As a result, the platen roller driving circuit 209, the print-head driving circuit 205, and the cutting drive circuit 206 can be supplied with electricity selectively from the external power source via the AC adapter 207 or from the battery BT.
In this example, in the case that connection to the external power source is made through the power cord 9 and the AC adapter 207 while the battery BT is stored in the battery storage part, the power supply from the external power source is automatically selected by a known method, and in the case that the connection to the external power source is canceled (e.g., the power cord 9 and the AC adapter 207 are unplugged), the power supply from the battery BT is automatically performed by a known method.
On the other hand, as shown in
In this example, multiple marks M corresponding to the respective label mounts S are formed on a surface (on the side opposite to the thermal layer 3c) of the separation sheet 3a. These marks M are detected by an optical sensor 110, and this detection result is used for positioning at the time of feeding of the label mounts S. In this embodiment, the platen roller motor 208 may perform printing onto multiple pages of the label mounts S without stopping (non-stop printing) under the control of a CPU of the control circuit 210 via the platen roller driving circuit 209 during the printing. Instead of the marks M, edges at the half-cut lines HC constituting end surfaces of the label mounts S may be detected. The roll sheet 3A having the print R formed thereon as described above is cut by the cutter unit 80 through operation of the cut button 7B as described above, and a print label is generated.
The energization control of the thermal line head 32 by the print-head driving circuit 205 will be described in detail. The thermal line head 32 includes the multiple heat generation elements (not shown) arranged in a direction orthogonal to the transport direction. The multiple heat generation elements form dots corresponding to the print data on the print lines of the roll sheet 3A and thereby form the print R.
Specifically, the CPU of the control circuit 210 generates the print data for forming dots with the heat generation elements from, for example, character string information acquired through an operation of an operator (user) via the operation part 7. In other words, the CPU generates print data (image data including data based on dots) to be printed on the basis of an input character string and the dot pattern stored in a CG-ROM (not shown) in the ROM and divides the print data into lines printed by the heat generation elements arrayed on the thermal line head 32. For example, in the case that the print resolution is set to 360 dpi, line print data divided into 360 lines per inch is generated. In the embodiment of the present disclosure, the printing processing program is executed by the operation terminal X1, and the print data is generated. Therefore, the control circuit 210 acquires the print data via the communication circuit 211B and generates the line print data.
The print-head driving circuit 205 supplies a drive signal to the thermal line head 32 on the basis of the line print data from the CPU and controls a drive form of the thermal line head 32. Therefore, the print-head driving circuit 205 writes the line print data in a data register associated with each of the heat generation elements and then controls the time and cycle of energization of each of the heat generation elements based on a strobe signal, thereby performing on/off-control of the heat generating form of the heat generation elements for each line of the line head 32. In the following description, “on-dot” refers to the energized state of the heat generation element, and “off-dot” refers to the non-energized state of the heat generation element.
Description will then be made of how dots are formed on each print line of the roll sheet 3A by energizing the thermal line head 32. The print line is a line having a row of dots formed in the width direction of the roll sheet 3A by energizing a row of the heat generation elements in one printing cycle and exists at each interval acquired by dividing a unit length in the transport direction of the roll sheet 3A by the resolution. The one printing cycle is a time required for forming a row of dots in the width direction of the roll sheet 3A (hereinafter also referred to as “raster direction”). The length of one print cycle varies depending on the resolution and the feeding speed of the tape 103 etc. For example, one printing cycle during printing at 360 dpi and 40 mm/s is the time (e.g., about 1.8 ms) required for passing between print lines (e.g., about 0.07 mm) of 360 dpi at 40 mm/s.
Therefore, when one row of dots is formed in the width direction of the roll sheet 3A, the line print data for one print line generated by the CPU is transferred to the thermal line head 32, and the corresponding heat generation elements are energized based on the transferred line print data for one print line. The line print data for one print line is print data for forming one row of dots in the width direction of the roll sheet 3A by energizing one row of heat generation elements in one printing cycle. Therefore, the heat generation elements energized based on the line print data for one print line generates heat to a color developing temperature required for developing color of the thermal layer 3c. As a result, a portion of the thermal layer 3c brought into contact with the thermal line head 32 develops color due to heating of the heat generation elements, so that dots corresponding to one print line are formed on the roll sheet 3A. While the roll sheet 3A is fed at a predetermined feeding speed defined in advance, the heating and coloring process is repeatedly executed by one print line at a time. A large number of heat generation elements arranged in the thermal line head 32 are selectively and intermittently energized each time based on the print data for each print line transferred from the CPU 111. Consequently, the roll sheet 3A has a user's desired dot image (text characters etc.) formed as the print R in accordance with the user's operation through the operation part 7 described above.
As described above, as the feeding of the roll sheet 3A causes the print lines of the roll sheet 3A to sequentially pass through the position of the heat generation elements, an energization form of the heat generation elements is sequentially switched for each piece of the line print data. As a result, the thermal line head 32 can perform printing at a printing cycle (in other words, printing speed) matched to the feeding speed of the roll sheet 3A.
When the print of the dot pattern data is completed, the feeding of the roll sheet 3A is stopped and the cutting motor 80C is driven via the cutting driving circuit 206 to cause the cutter unit 80 to cut the roll sheet 3A, so that a print label is generated.
In the printer 1 of this embodiment, dots are formed on the print lines by the heat generation elements of the thermal line head 32 to print a desired image. Print parameters (e.g., printing speed, and energization time of the heat generation elements) used at the time of dot formation are calculated by the CPU of the control circuit 210.
As described above, the printer 1 can operate in both the energization state using the battery BT stored in the battery storage part (a first energization state) and the energization state using the external power source via the AC adapter 207 (a second energization state). The print parameters may have significantly different values between the first energization state using the battery BT and the second energization state using the external power source.
Description will be made of an example of variation behavior of power consumption in the case that the print R of text characters “III” having a relatively small print coverage is formed to produce the print label L with reference to
As shown in
During the first alphabet “I” (section (b)-(c) in
As shown in
In the case that the feeding speed is reduced as described above in the quality priority mode, only the printing time becomes longer, while the printing quality is ensured. On the other hand, in the speed priority mode, the length of the printing time can be suppressed to a certain extent; however, due to repetition of a reduction in print speed in a print line having a high proportion of on-dots and an increase in print speed after such a print line as described above, “banding” may occur as unevenness of density in the transport direction as shown in
Therefore, in the printing processing program according to the embodiment of the present disclosure, printing is thinned only in the solid black area associated with a heavy electric load to eliminate the need to reduce the printing speed, so that the printing can be performed at uniform speed over the entire print R. Therefore, such unevenness of density (unevenness of print) can be suppressed to maintain the printing speed while maintaining the aesthetic appearance of the print result. A main part of this embodiment for this purpose is a printing processing program causing the computing device X2 included in the operating terminal X1 to execute various procedures for generating print data in the basic configuration described above. The details will hereinafter be described in order.
A printing process of the printing processing program according to an embodiment of the present disclosure will be described with reference to
As shown in
In the dot pattern generation procedure S10, a binarized dot pattern including on-dots to be printed and off-dots not to be printed corresponding to print data is generated by the computing device X2 of the operation terminal X1.
In the battery voltage acquisition procedure S20, the computing device X2 acquires an actual voltage value of the battery BT mounted on the printer 1. Subsequently, the threshold value setting procedure S30 (corresponding to the first threshold value setting procedure) is executed. In the threshold value setting procedure S30, the computing device X2 variably sets a threshold value according to the actual voltage value acquired in the voltage acquisition procedure S20. Various forms are conceivable for a method of setting the threshold value and, for example, the threshold value can be set relatively high when the actual voltage value is relatively high (in the case that the remaining charge amount of the battery BT is sufficient), and the threshold value can be set relatively low when the actual voltage value is relatively low (in the case that the remaining charge amount of the battery BT is small). The process then goes to the line specification procedure S40.
In the line specification procedure S40, the computing device X2 determines whether or not an on-dot ratio represented by the number of on-dots/(the number of on-dots+the number of off-dots), or the number of on-dots, is equal to or greater than the threshold value set in the threshold value setting procedure S30 for each print line in the binarized dot pattern generated in the dot pattern generation procedure S10, and specifies a print line equal to or greater than the threshold value. This threshold value represents an allowable value of the number of on-dots or a ratio thereof (collectively referred to as a “black ratio”) in the print line), is therefore also referred to as a black ratio allowable value, and is set to, for example, 70% according to an actual voltage value in this example. The process of the line specification procedure S40 will be described in more detail with reference to
In the labeling procedure S50, the computing device X2 separately identifies multiple dot groups such that the on-dots adjacent to each other form one dot group in the binarized dot pattern generated in the dot pattern generation procedure S10.
In the dot group specification procedure S60, the computing device X2 specifies a first dot group including the print line specified in the line specification procedure S40 out of the multiple dot groups (also referred to as isolated dot groups) identified in the labeling procedure S50. A dot group other than the first dot group is referred to as a second dot group. In the example of
In the density reduction processing procedure S70, the computing device X2 executes a predetermined density reduction process of making the density at the time of print formation of the on-dots included in the first dot group (the dot group shown in gray in
Various methods are used for the predetermined density reduction processing procedure S70. In this embodiment, for example, a masking process of thinning on-dots at a predetermined thinning rate is executed as the density reduction processing procedure S70.
By executing this density reduction processing procedure S70, the print data of
After the execution of the density reduction processing procedure S70, the print data subjected to the series of processes is transmitted to the printer 1, and the normal printing process is executed by the printer 1. In this case, the instantaneous maximum power consumption can be reduced in the printer 1 since the print lines having a high black ratio are subjected to the density reduction process, and therefore, it is not necessary to reduce the feeding speed for suppression of the instantaneous maximum power consumption, so that the feeding and printing can be performed at a normal speed.
The printing processing program according to the embodiment of the present disclosure has been described. As described above, in the embodiment, a print based on print data is performed on the fed roll sheet 3A by the thermal line head 32 arranged in the orthogonal direction orthogonal to the transport direction. Specifically, the heat generation elements are not energized by the print-head driving circuit 205 at off-dots, while the heat generation elements are energized by the print-head driving circuit 205 at on-dots, in the dot pattern corresponding to the print data, so that dots are formed for each print line of the roll sheet 3A. As a result, a printed matter (a print label in this example) is completed (alternatively, the printed matter may be an uncut print tape).
In the embodiment of the present disclosure, when the printing processing program is executed by the computing device X2, the dot pattern generation procedure S10, the line specification procedure S40, the labeling procedure S50, the dot group specification procedure S60, and the density reduction processing procedure S70 are executed.
Specifically, when the binarized dot pattern corresponding to the print data is generated in the dot pattern generation procedure S10, the on-dot ratio (or the number of on-dots) is calculated for each print line in the binarized dot pattern, and a specific print line having the on-dot ratio (or the number of on-dots) equal to or greater than the predetermined threshold value (a print line having a large print load for the printer and requiring a reduction in print speed if left as it is, as described above) is specified in the line specification procedure S40.
On the other hand, in the labeling procedure S50, a process (labeling) is performed to separately identify on-dots adjacent to each other as one dot group in the binarized dot pattern. Out of the identified dot groups, dot groups (the first dot groups) including the specific print lines are specified in the dot group specification procedure S60. As a result, the first dot groups at least partially including the print lines having a large print load specified as described above are specified.
The predetermined density reduction process is then performed in the subsequent density reduction processing procedure S70 to perform control such that the density at the time of print formation of the specified first dot groups becomes lower than the second dot groups other than the first dot groups.
Particularly in this embodiment, the computing device X2 executes the voltage acquisition procedure S20 for acquiring an actual voltage value of the battery BT mounted on the printer 1, and the first threshold value setting procedure S30 for variably setting the threshold value according to the actual voltage value acquired in the voltage acquisition procedure S20.
Particularly in this embodiment, as described above with reference to
Particularly in this embodiment, the computing device X2 executes a masking process of thinning on-dots at a predetermined thinning rate as the density reduction process in the density reduction processing procedure S70.
The embodiment of the present disclosure has been described in detail with reference to the accompanying drawings. However, it is needless to say the scope of the technical ideas of the present disclosure is not limited to the embodiment described above. Obviously, those having ordinary knowledge in the technical field of the present disclosure can conceive various changes, modifications, combinations, etc. made within the scope of the technical ideas of the present disclosure described in the claims. Therefore, techniques after these changes, modifications, combinations, etc. naturally fall within the scope of the technical ideas of the present disclosure.
For example, in the series of procedures executed by the computing device X2 according to the printing processing program in the embodiment, the density reduction process is executed in the density reduction processing procedure S70 only for the first dot groups specified in the dot group specification procedure S60. However, for example, the density reduction process can also be executed for the second dot group surrounded by any of the first dot groups in the density reduction processing procedure S70.
Specifically, for example, in the case of the binarized dot pattern shown in
For example, in the description of the embodiment, the battery voltage acquisition procedure S20 and the threshold value setting procedure S30 are executed in the series of procedures executed by the computing device X2 according to the printing processing program. However, the threshold value may be uniformly set as a fixed value. In this case, the battery voltage acquisition procedure S20 and the threshold value setting procedure S30 may not be executed. In another modification example, as shown in
In this case, in the model acquisition procedure S120, the computing device X2 acquires model information of the printer 1. In the threshold value setting procedure S130 (corresponding to the second threshold value setting procedure), the computing device X2 variably sets the threshold value according to the model information acquired in the model acquisition procedure S120.
It is noted that terms “vertical”, “parallel”, “plane”, etc. in the above description are not used in the exact meanings thereof. Specifically, these terms “vertical”, “parallel”, “plane”, etc. allow tolerances and errors in design and manufacturing and have meanings of “substantially vertical”, “substantially parallel”, and “substantially plane”, etc.
It is noted that terms “same”, “equal”, “different”, etc. in relation to a dimension and a size of the appearance in the above description are not used in the exact meaning thereof. Specifically, these terms “same”, “equal”, and “different” allow tolerances and errors in design and manufacturing and have meanings of “substantially the same”, “substantially equal”, and “substantially different”.
However, when a value used as a predefined determination criterion or a delimiting value is described such as a threshold value and a reference value, the terms “same”, “equal”, “different”, etc. used for such a description are different from the above definition and have the exact meanings.
The arrows shown in the figures such as
The flowcharts shown in
The techniques of the embodiment and modification examples may appropriately be utilized in combination other than those described above.
Although not exemplarily illustrated one by one, the present disclosure is implemented with various modifications applied without departing from the spirit thereof.
Number | Date | Country | Kind |
---|---|---|---|
2017-186501 | Sep 2017 | JP | national |