This application claims priority from Japanese Patent Application No. 2019-179125 filed Sep. 30, 2019. The entire content of the priority application is incorporated herein by reference.
This disclosure relates to an image forming apparatus configured to print a code image and a storage medium storing a program.
A disclosed technique is that, regarding a serial-type inkjet printer that ejects ink droplets while moving the recording head in the main scanning direction, in a case where there is a defective nozzle, a nozzle that ejects ink droplets of the same color as the defective nozzle is used to eject ink droplets that are supposed to be ejected from the defective nozzle. In this technique, a line along the main scanning direction is formed by scanning a plurality of times, and the dots adjacent to a print dot of the defective nozzle are set as substitute dot candidates, and one of non-print dots of the substitute dot candidates is used as a print dot.
According to one aspect, this specification discloses an image forming apparatus. The image forming apparatus includes a head, a conveyor, a carriage, a memory, and a controller. The head has a plurality of ejection ports configured to eject liquid. The conveyor is configured to convey a recording medium in a conveyance direction. The head is mounted on the carriage. The carriage is configured to reciprocate in a main scanning direction perpendicular to the conveyance direction. The memory is configured to store identification information of a defective ejection port among the plurality of ejection ports and to store image data for an image to be recorded on a recording medium. The controller is configured to: determine an original conveyance distance based on image data stored in the memory; determine, based on the image data, whether a particular code image is to be recorded on the recording medium, the particular code image being formed with a plurality of printed regions and a plurality of non-printed regions, the particular code image including a first region and a second region, the first region being a region prohibited from being formed with the defective ejection port, the second region being a region other than the first region; in response to determining that the particular code image is to be recorded on the recording medium, determine, based on the image data and on the identification information of the defective ejection port, whether the first region is to be formed with liquid ejected from the defective ejection port assuming that the recording medium is conveyed by the original conveyance distance in conveyance processing; in response to determining that the first region is to be formed with liquid ejected from the defective ejection port, determine a shortened conveyance distance shorter than the original conveyance distance, the shortened conveyance distance being determined such that the defective ejection port is located at a position corresponding to the second region with respect to the conveyance direction; perform shortened conveyance processing of controlling the conveyor to convey the recording medium in the conveyance direction by the shortened conveyance distance; and after performing the shortened conveyance processing, control the carriage to cause the head to move in the main scanning direction and control the head to record the image on the recording medium.
According to another aspect, this specification also discloses an image forming apparatus. The image forming apparatus includes a head, a conveyor, a carriage, a memory, and a controller. The head has a plurality of ejection ports configured to eject liquid. The conveyor is configured to convey a recording medium in a conveyance direction. The head is mounted on the carriage. The carriage is configured to reciprocate in a main scanning direction perpendicular to the conveyance direction. The memory is configured to store identification information of a defective ejection port among the plurality of ejection ports and to store image data for an image to be recorded on a recording medium. The controller is configured to: determine a conveyance distance based on image data stored in the memory; determine, based on the image data, whether a particular code image is to be recorded on the recording medium, the particular code image being formed with a plurality of printed regions and a plurality of non-printed regions, the particular code image including a first region and a second region, the first region being a region prohibited from being formed with the defective ejection port, the second region being a region other than the first region; in response to determining that the particular code image is to be recorded on the recording medium, determine, based on the image data and on the identification information of the defective ejection port, whether the first region is to be formed with liquid ejected from the defective ejection port assuming that the recording medium is conveyed by the original conveyance distance in conveyance processing; in response to determining that the first region is to be formed with liquid ejected from the defective ejection port, change a position of the particular code image in the conveyance direction in the image data stored in the memory, the position of the particular code image in the image data being changed such that the defective ejection port is located at a position corresponding to the second region with respect to the conveyance direction; perform conveyance processing of controlling the conveyor to convey the recording medium in the conveyance direction by the determined conveyance distance; and after performing the conveyance processing, control the carriage to cause the head to move in the main scanning direction and control the head to record the image on the recording medium.
According to still another aspect, this specification also discloses a non-transitory computer-readable storage medium storing a set of program instructions for a computer of an electronic device that controls an image forming apparatus. The set of program instructions, when executed by the computer, causing the electronic device to: determine a conveyance distance of a recording medium based on image data stored in a memory of the image forming apparatus, the image forming apparatus including a head having a plurality of ejection ports configured to eject liquid, a conveyor configured to convey a recording medium in a conveyance direction, a carriage on which the head is mounted and configured to reciprocate in a main scanning direction perpendicular to the conveyance direction, the image forming apparatus being configured to perform conveyance processing of controlling the conveyor to convey a recording medium in the conveyance direction and scanning processing of controlling the carriage to cause the head to move in the main scanning direction and controlling the head to record an image on the recording medium, the memory storing identification information of a defective ejection port among the plurality of ejection ports; determine whether a particular code image is to be recorded on the recording medium, the particular code image being formed with a plurality of printed regions and a plurality of non-printed regions, the particular code image including a first region and a second region, the first region being a region prohibited from being formed with the defective ejection port, the second region being a region other than the first region; in response to determining that the particular code image is to be recorded on the recording medium, determine, based on the image data and on the identification information of the defective ejection port, whether the first region is to be formed with liquid ejected from the defective ejection port assuming that the conveyance processing is performed with the original conveyance distance; and in response to determining that the first region is to be formed with liquid ejected from the defective ejection port, perform either one of: shortening the conveyance distance in at least one of one or a plurality of times of the conveyance processing that is performed before the scanning processing in which the first region is formed, the conveyance distance being shortened such that the defective ejection port is located at a position corresponding to the second region with respect to the conveyance direction when the scanning processing is performed after shortening the conveyance distance; and changing a position of the particular code image in the conveyance direction in the image data such that the defective ejection port is located at a position corresponding to the second region with respect to the conveyance direction when the scanning processing is performed after changing the position of the particular code image in the image data.
Embodiments in accordance with this disclosure will be described in detail with reference to the following figures wherein:
In a serial type inkjet printer, in a case where a one-dimensional code image formed of a bar (printed region) and a space between two adjacent bars (non-printed region) is printed in a direction in which the longitudinal direction of each bar is the same as the main scanning direction, if the position of the defective nozzle that causes ejection failure (no ink is ejected) and ejection direction displacement in the conveyance direction (the direction perpendicular to the main scanning direction) corresponds to within the width of a bar, ink is not ejected from the defective nozzle or ink ejected from the defective nozzle does not land at a desired position, and a part of the bar becomes blank, or an unnecessary black streak is formed. In such a case, there is a possibility that the data displayed on the code image cannot be read or the data different from the original data may be read.
Further, both one-dimensional and two-dimensional code images includes one or more data areas for displaying the data to be read and one or more functional areas excluding the one or more data areas (areas for displaying information for assisting data reading of a data area, such as a check digit in the case of a one-dimensional code image, and an alignment pattern and a timing pattern in the case of a two-dimensional code image). In this case, if a white streak (white portion) or a black streak occur in cells in the functional area, a reading error is likely to occur.
In a case where the above-described technique is applied to the printing of the code image, as described above, one of the non-print dots adjacent to the print dot of the defective nozzle is used as the print dot, and thus the shape of the bar may not be exactly the same as the case where there is no defective nozzle. Hence, a reading error may occur when reading the code image. Further, since the line along the main scanning direction is formed by scanning a plurality of times, the recording speed may decrease.
In view of the foregoing, an example of an object of this disclosure is to provide an image forming apparatus and a storage medium storing a program capable of recording a code image at high speed even in a case where a recording head has a defective ejection port and also suppressing the occurrence of a reading error.
A printer as an image forming apparatus of embodiments of this disclosure will be described while referring to the accompanying drawings.
First, a printer 10 according to a first embodiment will be described. As shown in
The paper feed tray 4 is configured to support and accommodate a plurality of sheets of paper 9 in a stacked state. The paper feed tray 4 is configured to be inserted into and removed from the housing 11 in the front-rear direction. The paper feed tray 4 has a support surface 4a that supports the paper 9. An inclined plate 4b is provided at the rear end of the paper feed tray 4.
The paper discharge tray 5 accommodates the paper 9 on which an image is recorded by a recording head 62 of the scanning mechanism 6 described later. The paper discharge tray 5 is arranged above the front side of the paper feed tray 4, and is configured to move as the paper feed tray 4 is inserted into and removed from the housing 11.
The scanning mechanism 6 includes a carriage 61 and the recording head 62. As shown in
The recording head 62 is mounted on the carriage 61 and reciprocates in the main scanning direction together with the carriage 61. As shown in
The conveyance mechanism 7 conveys the paper 9 inside the printer 10, and includes a paper feed roller 70, a pair of conveyance rollers 71, a pair of discharge rollers 72, a platen 73, and a guide member 74. The paper feed roller 70 is disposed above the paper feed tray 4, and is rotated by being applied with a driving force from a paper feed motor 32 (see
The platen 73 is arranged below the scanning mechanism 6 so as to face the nozzle surface 66 of the scanning mechanism 6. The guide member 74 defines a conveyance path 14 for sending the paper 9 sent out from the paper feed tray 4 by the paper feed roller 70 to a region facing the nozzle surface 66 of the recording head 62. The guide member 74 extends from a position near the rear end of the paper feed tray 4 to a position near the pair of conveyance rollers 71.
The paper 9 fed rearward from the paper feed tray 4 by the paper feed roller 70 is directed obliquely upward by the inclined plate 4b provided at the rear end of the paper feed tray 4, passes through the conveyance path 14 defined by the guide member 74, and reaches a position where the paper 9 is nipped by the pair of conveyance rollers 71. The paper 9 nipped by the pair of conveyance rollers 71 is conveyed to a region facing the nozzle surface 66 of the recording head 62 by the rotation of the pair of conveyance rollers 71. In a state where the paper 9 conveyed by the pair of conveyance rollers 71 is supported by the platen 73, ink is ejected from nozzles 67 provided on the nozzle surface 66 of the recording head 62 that moves in the scanning direction so that an image is recorded on the paper 9. The paper 9 on which the image is recorded is conveyed forward by the pair of discharge rollers 72 and is discharged onto the paper discharge tray 5.
The controller 8 controls the entire printer 10, and as shown in
The controller 8 includes a CPU (Central Processing Unit) 81, a ROM (Read Only Memory) 82, a RAM (Random Access Memory) 83, an ASIC (Applicant Specific Integrated Circuit) 84, and so on. The ROM 82 stores programs executed by the CPU 81 and the ASIC 84, various fixed data, and so on. At least part of the ROM 82 is an electrically erasable and rewritable EEPROM (Electrically Erasable Programmable Read-Only Memory). The EEPROM includes a nozzle information storage portion 82a that stores the identification information of the defective nozzle 68 among the plurality of nozzles 67. The RAM 83 includes an image data storage portion 83a that stores image data relating to the image recorded on the paper 9. The identification information of the defective nozzle 68 stored in the nozzle information storage portion 82a is updated at appropriate timing. The identification information of the defective nozzle 68 may be obtained by the following method. For example, it may be determined whether the target nozzle fails to eject ink based on a signal outputted from a determination circuit, by driving the recording head such that ink is ejected from a target nozzle toward a detection electrode in a state where the carriage is located at the maintenance position. Further, by determining whether color mixing has occurred based on a test pattern that is recorded by ejecting ink from the recording head, a nozzle that causes a deviation in the ejection direction may be detected.
The PC 20 has a CPU, a ROM, a RAM, and an HDD (Hard Disk Drive), which are not shown. An OS (Operation System) and a printer driver are installed in the HDD. The CPU controls the operation of the printer 10 by executing the printer driver. The printer driver may be also installed in the ROM of the mobile terminal.
When image data is inputted from the USB memory connected to the USB interface 41 or the PC 20, the controller 8 causes the CPU 81 and the ASIC 84 to execute scanning processing and conveyance processing, based on the program stored in the ROM 82 and on the defective nozzle information and image data temporarily stored in the EEPROM and the RAM 83. As a result, the image relating to the image data is printed on the paper 9. In the scanning processing, the controller 8 controls the driving of the carriage motor 31 and the recording head 62 such that the recording head 62 is moved in the main scanning direction by the scanning mechanism 6 and that ink is ejected from the nozzles 67, thereby recording an image on the paper 9. In the conveyance processing, the controller 8 controls the driving of the conveyance motor 33 such that the paper 9 is conveyed in the conveyance direction by the conveyance mechanism 7. In the printer 10 according to the present embodiment, the image relating to the inputted image data is recorded on the paper 9 by repeatedly performing the scanning processing and the conveyance processing.
Next, image data which is the target of the present embodiment will be described. As shown in
Each printed region 100a and each non-printed region 100b in the one-dimensional code image 100 have one of a plurality of widths (the size in the arrangement direction) specified according to a standard. The width of each printed region 100a and each non-printed region 100b in the one-dimensional code image 100 differs depending on information to be displayed by the one-dimensional code image 100. In the present embodiment, the one-dimensional code image 100 is a bar code. As shown in
Next, the operation of the printer 10 according to the first embodiment when recording the image 50 on paper 9 will be described with reference to the flowchart of
The controller 8 performs determination processing (S1) of determining a conveyance distance W1 by which the paper 9 is to be conveyed (see
In response to determining that the image 50 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is not the same as the conveyance direction (S2: NO), the controller 8 performs normal conveyance processing (S3) of conveying the paper 9 in the conveyance direction by the conveyance distance W1 determined in the determination processing (S1). In response to determining that the image 50 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is the same as the conveyance direction (S2: YES), the controller 8 performs second determination processing (S4) of determining whether, in a case where the conveyance processing is performed by the conveyance distance W1 determined in the determination processing (S1), one of the printed regions 100a in the functional area 112 is formed with ink ejected from the defective nozzle 68. In the second determination processing (S4), the controller 8 performs determination based on the identification information on the defective nozzle 68 stored in the nozzle information storage portion 82a and on the image data stored in the image data storage portion 83a.
In response to determining that, in a case where the conveyance processing is performed by the conveyance distance W1, none of the printed regions 100a in the functional area 112 is formed with ink ejected from the defective nozzle 68 (S4: NO), the controller 8 performs the normal conveyance processing (S3). In response to determining that, in a case where the conveyance processing is performed by the conveyance distance W1, one of the printed regions 100a in the functional area 112 is formed with ink ejected from the defective nozzle 68 (S4: YES), the controller 8 performs shortening processing (S5) of determining that conveyance processing before a scanning processing described later is to be performed with a distance W2 (see
The shortening processing (S5) will be described below in detail. Here, referring to
That is, the controller 8 performs the shortening processing (S5) such that the defective nozzle 68 originally supposed to be used for ejecting ink for forming the printed region 100a in the functional area 112 is located at a position corresponding to the data area 111 with respect to the conveyance direction, at the time of performing the scanning processing after the shortening processing (S5).
In the shortening processing (S5), the controller 8 shortens the conveyance distance determined in the determination processing (S1) within a range of minimizing the increase in the number of the times of conveyance processing for recording the image 50 including the one-dimensional code image 100 on the paper 9, the increase being caused by execution of the shortening processing.
More specifically, the controller 8 shortens, by starting from the conveyance distance W1 shown in
In
Next, the controller 8 executes shortened conveyance processing (S6) of conveying the paper 9 in the conveyance direction by the conveyance distance W2 which has been shortened in the shortening processing (S5). After executing the normal conveyance processing (S3) or the shortened conveyance processing (S6), the controller 8 performs scanning processing (S7) of recording the image 50 on the paper 9 by ejecting ink from the nozzles 67 of the recording head 62 while moving the recording head 62 in the main scanning direction by the scanning mechanism 6.
Next, the controller 8 determines whether formation of the image 50 relating to image data stored in the image data storage portion 83a of the RAM 83 is completed (S8). In response to determining that formation of the image 50 is not completed (S8: NO), the controller 8 returns the processing to S4. In response to determining that formation of the image 50 is completed (S8: YES), the controller 8 performs discharge processing (S9) of discharging the paper 9 to the paper discharge tray 5 by the pair of discharge rollers 72. As a result, the operation of printing the image 50 on the paper 9 by the printer 10 according to the first embodiment is finished.
In the first embodiment, if the printed region 100a in the functional area 112 is to be formed with ink ejected from the defective nozzle 68, the shortening processing is performed such that the defective nozzle 68 is located at a position corresponding to the data area 111, the non-printed region 100b in the functional area 112, or outside the one-dimensional code image 100 with respect to the conveyance direction when the scanning processing is performed. Thus, the deterioration of image quality deterioration in the functional area 112 can be prevented in preference to the data area 111. This increases the degree of freedom in the shortening processing to be performed for forming lines along the main scanning direction through one scanning processing without performing a plurality of times of scanning processing. As the number of times of conveyance processing is minimized, the reduction in recording speed can be suppressed. This allows the one-dimensional code image 100 to be recorded at high speed while suppressing the occurrence of a reading error.
Next, a second embodiment of this disclosure will be described with reference to
The operation of the printer 10 according to the second embodiment when recording the image 51 on paper 9 will be described below with reference to the flowchart of
In response to determining that the image 51 is to be recorded on the paper 9 such that the arrangement direction of each of the one-dimensional code images 101 and 102 is not the same as the conveyance direction (S22: NO), the controller 8 performs normal conveyance processing (S23) of conveying the paper 9 in the conveyance direction by the conveyance distance W3 determined in the determination processing (S21). In response to determining that the image 51 is to be recorded on the paper 9 such that the arrangement direction of each of the one-dimensional code images 101 and 102 is the same as the conveyance direction (S22: YES), the controller 8 performs second determination processing (S24) of determining whether, if the conveyance processing is performed with the conveyance distance W3 determined in the determination processing (S21), at least one of a printed region 101a in the one-dimensional code image 101 and a printed region 102a in the one-dimensional code image 102 is formed with ink ejected from the defective nozzle 68.
In response to determining that, if the conveyance processing is performed with the conveyance distance W3, none of the printed region 101a in the one-dimensional code image 101 and the printed region 102a in the one-dimensional code image 102 is formed with ink ejected from the defective nozzle 68 (S24: NO), the controller 8 performs the normal conveyance processing (S23). In response to determining that, if the conveyance processing is performed with the conveyance distance W3, at least one of the printed region 101a in the one-dimensional code image 101 and the printed region 102a in the one-dimensional code image 102 is formed with ink ejected from the defective nozzle 68 (S24: YES), the controller 8 performs third determination processing (S25) of determining whether, by performing the conveyance processing with an arbitrary conveyance distance W4 (see
In response to determining that, by performing the conveyance processing with the conveyance distance W4, the defective nozzle 68 can be located at a position corresponding to the non-printed region 101b in the one-dimensional code image 101 or outside the one-dimensional code image 101, and the position also corresponding to the non-printed region 102b in the one-dimensional code image 102 or outside the one-dimensional code image 102 with respect to the conveyance direction (S25: YES), the controller 8 performs shortening processing (S26) of determining that the conveyance distance W4 (see
The conveyance distance W4 in the shortening processing (S26) will be described below in detail. Here, in the example of
Next, the controller 8 performs shortened conveyance processing (S27) of conveying the paper 9 in the conveyance direction by the conveyance distance W4 which is shortened in the shortening processing (S26). After performing the normal conveyance processing (S23) or the shortened conveyance processing (S27), the controller 8 performs scanning processing (S28) of recording the image 51 on the paper 9 by ejecting ink from the nozzles 67 of the recording head 62 while moving the recording head 62 in the main scanning direction by the scanning mechanism 6.
In response to determining that, by performing the conveyance processing with the conveyance distance W4, the defective nozzle 68 cannot be located at a position corresponding to the non-printed region 101b in the one-dimensional code image 101 or outside the one-dimensional code image 101, and the position also corresponding to the non-printed region 102b in the one-dimensional code image 102 or outside the one-dimensional code image 102 with respect to the conveyance direction (S25: NO), the controller 8 performs shortening processing (S29) of determining that a conveyance distance W5 shorter than the conveyance distance W3 is to be used for first shortened conveyance processing which is performed before first scanning processing described later, and determining that a conveyance distance W6 shorter than the conveyance distance W3 is to be used for second shortened conveyance processing which is performed before second scanning processing described later.
The controller 8 performs the shortening processing (S29) such that the defective nozzle 68 is located at a position corresponding to the non-printed region 101b in the one-dimensional code image 101 with respect to the conveyance direction when one scanning processing (first scanning processing described later) is performed after the shortening processing (S29). Also, the controller 8 performs the shortening processing (S29) such that the defective nozzle 68 is located at a position corresponding to the non-printed region 102b in the one-dimensional code image 102 with respect to the conveyance direction when another scanning processing (second scanning processing described later) is performed after the subsequent conveyance processing.
After the shortening processing (S29), the controller 8 performs first shortened conveyance processing (S30) of conveying the paper 9 in the conveyance direction by the conveyance distance W5. Then, the controller 8 performs first scanning processing (S31) of recording the image 51 on the paper 9 by ejecting ink from the nozzles 67 of the recording head 62 while moving the recording head 62 in the main scanning direction by the scanning mechanism 6. After the first scanning processing (S31), the controller 8 performs second shortened conveyance processing (S32) of conveying the paper 9 in the conveyance direction by the conveyance distance W6, and performs second scanning processing (S33) of recording the image 51 on the paper 9.
The following describes the first shortened conveyance processing (S30), the first scanning processing (S31), the second shortened conveyance processing (S32), and the second scanning processing (S33) that are performed after the shortening processing (S29) described above. Here, by referring to the example of
After executing the scanning processing (S28) or the second scanning processing (S33), the controller 8 determines whether formation of the image 51 relating to the image data stored in the image data storage portion 83a of the RAM 83 is completed (S34). In response to determining that formation of the image 51 is not completed (S34: NO), the controller 8 returns the processing to S24. In response to determining that formation of the image 51 is completed (S34: YES), the controller 8 performs discharge processing (S35) of discharging the paper 9 to the paper discharge tray 5 by using the pair of discharge rollers 72. In this way, the operation of printing the image 51 on the paper 9 by the printer 10 according to the second embodiment is finished.
According to the second embodiment, even in a case where the two one-dimensional code images 101 and 102 are arranged side by side, the defective nozzle 68 is located at a position corresponding to the non-printed region 101b and the non-printed region 102b with respect to the conveyance direction, thereby preventing deterioration of image quality in the one-dimensional code images 101 and 102. Further, in a case where the defective nozzle 68 cannot be located at a position corresponding to the non-printed region 101b and the non-printed region 102b with respect to the conveyance direction, scanning processing is first performed in a state where the defective nozzle 68 is located at a position corresponding to the non-printed region 101b with respect to the conveyance direction, and then scanning processing is performed again in a state where the defective nozzle 68 is located at a position corresponding to the non-printed region 102b with respect to the conveyance direction. Thus, deterioration of image quality in the one-dimensional code images 101 and 102 can be prevented.
Next, a third embodiment of this disclosure will be described with reference to
The two-dimensional code image 200 shown in
In the first determination processing of the first embodiment, the controller 8 determines whether the image 50 including the one-dimensional code image 100 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is the same as the conveyance direction (S2 in
In the present embodiment, the controller 8 performs shortening processing such that, if the defective nozzle 68 is to form the functional area such as the finder pattern 202, the defective nozzle 68 is located at a position not corresponding to the functional area with respect to the conveyance direction when scanning processing is performed after that shortening processing.
In the present embodiment, if the printed region in the functional area (for example, the printed region of the finder pattern 202) is to be formed with ink ejected from the defective nozzle 68, the shortening processing is performed such that the defective nozzle 68 is located at a position corresponding to the data area or outside the two-dimensional code image 200 with respect to the conveyance direction when the scanning processing is performed. Thus, the deterioration of image quality deterioration in the functional area can be prevented in preference to the data area. This increases the degree of freedom in the shortening processing to be performed for forming lines along the main scanning direction through one scanning processing without performing a plurality of times of scanning processing. This allows the two-dimensional code image 200 to be recorded at high speed while suppressing the occurrence of a reading error.
A fourth embodiment will be described. In the first or third embodiment, the shortening processing is performed such that the defective nozzle 68 is located at a position corresponding to the data area (either the printed region or the non-printed region), the non-printed region in the functional area, or outside the code image with respect to the conveyance direction, thereby preventing deterioration of image quality in the one-dimensional code image 100 or the two-dimensional code image 200. In the second embodiment, in a case where the two one-dimensional code images 101 and 102 are arranged side by side, the defective nozzle 68 is sequentially located at a position corresponding to the non-printed region 101b and the non-printed region 102b with respect to the conveyance direction, thereby preventing deterioration of image quality in the one-dimensional code images 101 and 102. In each of the first to third embodiments, deterioration of image quality in the code images is prevented by performing the shortening processing of shortening the conveyance distance in the conveyance processing. In the fourth embodiment, if it is determined that a printed region in the code image is to be formed with ink ejected from the defective nozzle 68, the controller 8 performs position changing processing of changing the position in the conveyance direction of the code image in image data stored in the image data storage portion 83a, instead of performing the shortening processing. The operation of a printer 10 according to the fourth embodiment will be described below by referring to the flowchart in
First, the controller 8 performs determination processing (S51) of determining the distance by which the paper 9 is to be conveyed in conveyance processing performed later based on the image data stored in the image data storage portion 83a. Next, the controller 8 performs first determination processing (S52) of determining whether the image 50 including the one-dimensional code image 100 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is the same as the conveyance direction.
In response to determining that the image 50 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is the same as the conveyance direction (S52: YES), the controller 8 performs second determination processing (S53) of determining whether, if conveyance processing is performed with the conveyance distance determined in the determination processing (S51), one of the printed regions 100a is to be formed with ink ejected from the defective nozzle 68.
In response to determining that, if conveyance processing is performed with the conveyance distance determined in the determination processing (S51), one of the printed regions 100a is to be formed with ink ejected from the defective nozzle 68 (S53: YES), the controller 8 performs position changing processing (S54) of changing the position in the conveyance direction of the one-dimensional code image 100 in the image data stored in the image data storage portion 83a. The position changing processing is performed such that the defective nozzle 68 originally supposed to eject ink for forming the printed region 100a is located at a position corresponding to the non-printed region 100b of the one-dimensional code image 100 or outside the one-dimensional code image 100 with respect to the conveyance direction when scanning processing is performed after the position changing processing. More specifically, the controller 8 repeats shifting the position of the one-dimensional code image 100 in the image data in the conveyance direction by a particular number of dots (for example, one dot). Then, when the defective nozzle 68 is located at a position corresponding to the non-printed region 100b of the one-dimensional code image 100 or outside the one-dimensional code image 100 with respect to the conveyance direction, the controller 8 determines that the image data at that time is the image data to be recorded on the paper 9.
In a case where the length of the one-dimensional code image 100 in the conveyance direction is greater than the length of the image formation range in the conveyance direction in one scanning processing, a plurality of times of conveyance processing and scanning processing need to be performed. In this case, the controller 8 performs the position changing processing such that the defective nozzle 68 is located at a position corresponding to the non-printed region 100b of the one-dimensional code image 100 or outside the one-dimensional code image 100 with respect to the conveyance direction when the plurality of times of scanning processing is performed after the position changing processing.
In response to determining that the image 50 is to be recorded on the paper 9 such that the arrangement direction of the one-dimensional code image 100 is not the same as the conveyance direction (S52: NO), or in response to determining that, if conveyance processing is performed with the conveyance distance determined in the determination processing (S51), none of the printed regions 100a is to be formed with ink ejected from the defective nozzle 68 (S53: NO), the controller 8 performs conveyance processing (S55) of conveying the paper 9 in the conveyance direction by the conveyance distance determined in the determination processing (S51). The controller 8 also performs the conveyance processing (S55) of conveying the paper 9 in the conveyance direction by the conveyance distance determined in the determination processing (S51) after executing the position changing processing (S54).
Next, the controller 8 performs scanning processing (S56) of recording the image 50 on the paper 9 by ejecting ink from the nozzles 67 of the recording head 62 while moving the recording head 62 in the main scanning direction by using the scanning mechanism 6. After executing the scanning processing (S56), the controller 8 determines whether formation of the image 50 relating to the image data stored in the image data storage portion 83a is completed (S57). In response to determining that formation of the image 50 is not completed (S57: NO), the controller 8 returns the processing to S55. In response to determining that formation of the image 50 is completed (S57: YES), the controller 8 performs discharge processing (S58) of discharging the paper 9 to the paper discharge tray 5 by using the pair of discharge rollers 72. In this way, the operation of printing the image 50 on the paper 9 by the printer 10 according to the fourth embodiment is finished.
According to the fourth embodiment, even in a case where there is a defective nozzle 68 which causes ejection failure (no ejection) or deviation of ejection direction, the position of the code image in image data is changed such that the printed region in the code image is not formed with ink ejected from the defective nozzle 68. This prevents the occurrence of a white streak or a black streak, thereby preventing deterioration of image quality in the one-dimensional code image 100.
While the disclosure has been described in detail with reference to the above aspects thereof, it would be apparent to those skilled in the art that various changes and modifications may be made therein without departing from the scope of the claims.
In the above-described embodiments, the conveyance processing is performed once before executing the scanning processing of forming the printed regions in the code image. In the shortening processing, a conveyance distance in one conveyance processing is shortened. Alternatively, a plurality of times of conveyance processing may be performed before executing the scanning processing of forming the printed regions 100a in the code image. In this case, in the shortening processing, the controller 8 may shorten a conveyance distance in one of the plurality of times of conveyance processing or may shorten conveyance distances in two or more of the plurality of times of conveyance processing.
In the first embodiment, the controller 8 performs the second determination processing (S4) of determining whether, if the conveyance processing is performed by using the conveyance distance W1, any one of the printed regions 100a in the functional area 112 is formed with ink ejected from the defective nozzle 68. Alternatively, the controller 8 may perform the second determination processing of determining whether, if the conveyance processing is performed by using the conveyance distance W1, any one of the printed regions 100a in the one-dimensional code image 100 (that is, not limited to the functional area 112) is formed with ink ejected from the defective nozzle 68. In response to determining that, if the conveyance processing is performed by using the conveyance distance W1, any one of the printed regions 100a in the one-dimensional code image 100 is formed with ink ejected from the defective nozzle 68, the controller 8 performs the shortening processing of changing the conveyance distance from the conveyance distance W1 to the conveyance distance W2 shorter than W1 such that the defective nozzle 68 originally supposed to eject ink for forming the printed region 100a is located at a position corresponding to any one of the non-printed regions 100b in the one-dimensional code image 100 or outside the one-dimensional code image 100. With this operation, deterioration of image quality in the one-dimensional code image 100 is prevented more reliably. On the other hand, comparing with the first embodiment in which it is determined whether it will be formed with ink ejected from the defective nozzle 68 for only the printed region 100a in the functional area 112, there is a higher probability that the shortening processing and the shortened conveyance processing are performed. Thus, the recording speed of forming the entire image 50 including the one-dimensional code image 100 is likely to be reduced. Accordingly, depending on which one of the image quality of the one-dimensional code image 100 and the recording speed of the entire image 50 is given a higher priority, it is preferable to determine whether the printed region 100a in the entire one-dimensional code image 100 or the printed region 100a only in the functional area 112 is formed with ink ejected from the defective nozzle 68.
While the above-described embodiments have been described on the assumption that there is one defective nozzle 68, there may be a plurality of defective nozzles 68. In this case, the controller 8 performs the second determination processing of determining whether, if the conveyance processing is performed by using the conveyance distance determined in the determination processing, any printed region is formed with ink ejected from the plurality of defective nozzles 68.
In the second embodiment, the controller 8 may perform the third determination processing (S25) of determining whether, if the conveyance processing is performed by using the arbitrary conveyance distance W4 (see
In the fourth embodiment, the controller 8 may perform the second determination processing (S53) of determining whether, if the conveyance processing is performed by using the conveyance distance determined in the determination processing, one of the printed regions 100a in the functional area 112 is to be formed with ink ejected from the defective nozzle 68. In response to determining that, if the conveyance processing is performed by using the determined conveyance distance, one of the printed regions 100a in the functional area 112 is to be formed with ink ejected from the defective nozzle 68 (S53: YES), the controller 8 performs the position changing processing (S54) of changing the position in the conveyance direction of the one-dimensional code image 100 in the image data. The controller 8 performs the position changing processing such that the defective nozzle 68 is located at a position corresponding to the data area 111, the non-printed region 100b in the functional area 112, or outside the one-dimensional code image 100 with respect to the conveyance direction when the scanning processing is performed after the position changing processing.
In the second embodiment, the target image data may be image data for an image including three or more one-dimensional code images that are located partially at the same position with respect to the conveyance direction and arranged side by side in the main scanning direction. In this case, the controller 8 performs the third determination processing (S25) of determining whether, if the conveyance processing is performed by using the arbitrary conveyance distance W4 (see
In the third embodiment, the target image data may be image data for an image including two or more two-dimensional code images that are located partially at the same position with respect to the conveyance direction and arranged side by side in the main scanning direction. In this case, the printer 10 performs operations similar to those described in the second embodiment. In the first determination processing, however, the controller 8 determines whether the two or more two-dimensional code images located partially at the same position with respect to the conveyance direction are to be recorded on the paper 9.
In the first embodiment, the controller 8 performs the shortening processing of shortening the conveyance distance determined in the determination processing within a range of minimizing the increase in the number of times of conveyance processing for recording the image 50 including the one-dimensional code image 100 on the paper 9, the increase in the number of times of conveyance processing being caused by execution of the shortening processing. Alternatively, the controller 8 may shorten the conveyance distance determined in the determination processing beyond the range of minimizing the increase in the number of times of conveyance processing. That is, it is not necessarily required to minimize the increase in the number of times of conveyance processing in the shortening processing. From the viewpoint of suppressing deterioration in recording speed, however, it is preferable that the conveyance distance determined in the determination processing be shortened within the range of minimizing the increase in the number of times of conveyance processing. Further, in the second to fourth embodiments, the controller 8 may shorten the conveyance distance determined in the determination processing beyond the range of minimizing the increase in the number of times of conveyance processing.
In the above-described first to fourth embodiments, the controller 8 provided in the printer 10 executes the determination processing, the first and second determination processing, the shortening processing, the shortened conveyance processing, the scanning processing, the position changing processing, and so on. The present disclosure is not limited to this. For example, the printer driver installed in the HDD of the PC 20 connected to the printer 10 or in the ROM of the mobile terminal may cause the PC 20 or the mobile terminal to execute some or all of these processing.
Number | Date | Country | Kind |
---|---|---|---|
JP2019-179125 | Sep 2019 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
8272707 | Kashimoto | Sep 2012 | B2 |
20150375503 | Sato et al. | Dec 2015 | A1 |
20180065359 | Yamaguchi et al. | Mar 2018 | A1 |
Number | Date | Country |
---|---|---|
2016-007824 | Jan 2016 | JP |
2018-041221 | Mar 2018 | JP |
WO 2008102591 | Aug 2008 | WO |
Number | Date | Country | |
---|---|---|---|
20210094278 A1 | Apr 2021 | US |