Printing device and printing control method
The printing device uses transmissive and reflective optical sensors to dynamically select the best sensor for label detection, addressing label detection errors and loss by adapting to different print media types, ensuring efficient and accurate printing.
Patent Information
- Application Number
- JP2021012855
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-01-29
AI Technical Summary
Existing printing technologies face issues with label detection errors when the method and print medium type mismatch, leading to label loss during positioning processing.
A printing device and method that uses both transmissive and reflective optical sensors to detect label positions, dynamically selecting the most suitable sensor based on the print medium type, and adjusting the conveyance to minimize label loss.
Ensures accurate label detection and minimizes label loss by automatically selecting the appropriate sensor for different print media types, enhancing printing efficiency.
Smart Images

Figure 0007559583000001 
Figure 0007559583000002 
Figure 0007559583000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing apparatus and a printing control method. [Background technology]
[0002] When printing on label paper that has multiple labels spaced apart on a long backing paper, a printer uses a sensor to detect the labels as the label paper is transported and positions the detected labels at the printing position by the print head. This type of positioning process is also called a head alignment process. There are two methods for detecting labels for positioning process: a method that uses a transmissive optical sensor to detect the boundary where the backing paper area between the labels changes to the label area (hereinafter referred to as the gap detection method), and a method that uses a reflective optical sensor to detect marks that are pre-printed on the backing paper corresponding to the leading edge position of each label (hereinafter referred to as the mark detection method).
[0003] Related technology has been disclosed in which a printer determines whether the type of roll paper is die-cut label paper or marked label paper (plain paper) based on the transmitted light reception level and reflected light reception level of a combined transmissive and reflective sensor (see Patent Document 1). According to Patent Document 1, if the paper type is die-cut label paper or marked label paper, in other words if there is a backing paper portion above the sensor that cannot be printed on, the label portion immediately upstream of the backing paper portion is transported below the printing position of the print head to determine the printing start position for self-printing. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2007-15373 A Summary of the Invention [Problem to be solved by the invention]
[0005] A user can set in advance whether to use the gap detection method or the mark detection method for label detection. For each detection method, there are print media suitable for label detection and print media that are not. Therefore, if the detection method setting does not match the type of print medium used, the label cannot be detected for the positioning process, resulting in a label detection error. In addition to setting an appropriate detection method, there is also a need for ingenuity to minimize the occurrence of labels being transported downstream in the transport direction without being printed during the positioning process, i.e., the loss of labels. [Means for solving the problem]
[0006] a control unit that performs a sensor determination process to determine whether the sensor to be used for detecting the label position is the sensor of the transmissive optical sensor or the reflective optical sensor, and a control unit that performs a sensor determination process to determine whether the sensor of the transmissive optical sensor or the reflective optical sensor is the sensor to be used for detecting the label position for a positioning process, which is a positioning process of transporting the print medium to position the label to a print position by the print head in the transport direction ... be printed by the print head in the transport direction, and a control unit that performs a sensor determination process to determine whether the sensor of the transmissive optical sensor or the reflective optical sensor is the sensor to be used In the sensor determination process, the control unit causes the transport unit to transport the printing medium while having each of the transmissive optical sensor and the reflective optical sensor detect the label position, designates the sensor that first succeeds in detecting the label position as a first sensor and the other sensor as a second sensor, and causes the transport unit to execute a first transport to transport the printing medium so that the first label position, which is the label position detected by the first sensor, reaches the printing position. If the first transport ends without the second sensor detecting the label position during the first transport period, the control unit determines the first sensor as the sensor to be used for detecting the label position for the positioning process. If the second sensor succeeds in detecting the label position during the first transport period, the control unit determines the sensor that detected the first label position or the second label position, which is the label position detected by the second sensor and is closer to the printing position, as the sensor to be used for detecting the label position for the positioning process.
[0007] A print control method for printing on multiple types of print media including label paper on which multiple labels are arranged at intervals on a long backing paper and on which a mark indicating the position of the label is formed for each of the labels includes a transport step of transporting the print medium in a transport direction, and a positioning step of transporting the print medium to position the label in a printing position by a print head arranged at a predetermined position in the transport direction, the positioning step being a sensor used to detect the label position, the sensor being arranged at a position upstream of the print head in the transport direction and capable of detecting, as the label position, a boundary where the area of the backing paper on which the label is not arranged switches to the area of the label, or a reflective optical sensor capable of detecting the mark as the label position, the positioning step of controlling the transport based on the label position of each of the labels detected by the sensor determined in the sensor determination step, to perform the positioning for each of the labels, and a printing step of printing on the print medium by the print head. In the sensor determination process, while transporting the printing medium, the transmissive optical sensor and the reflective optical sensor are each caused to detect the label position, the sensor that first succeeds in detecting the label position is designated as a first sensor, and the other sensor is designated as a second sensor, and a first transport is performed to transport the printing medium so that the first label position, which is the label position detected by the first sensor, reaches the printing position, and if the first transport ends without the second sensor detecting the label position during the first transport period, the first sensor is determined to be the sensor to be used for detecting the label position for the positioning process, and if the second sensor succeeds in detecting the label position during the first transport period, the sensor that detected the first label position or the second label position, which is the label position detected by the second sensor and is closer to the printing position, is determined to be the sensor to be used for detecting the label position for the positioning process. [Brief description of the drawings]
[0008] [Figure 1]FIG. 1 is a block diagram showing a simplified device configuration. [Diagram 2] FIG. 4 is a diagram showing the front and back sides of a label paper. [Diagram 3] 4 is a flowchart showing a print control process. [Figure 4] 11A and 11B are diagrams showing how label paper moves downstream in the transport direction over time. [Diagram 5] 11 is a flowchart showing an example of processing after determining "Yes" in step S120. [Figure 6] 13 is a flowchart showing another example of the process after determining "Yes" in step S120. [Figure 7] FIG. 11 is a diagram for explaining a control process regarding a change of a main sensor. [Figure 8] 8 is a diagram for explaining an example of control processing related to a change of a main sensor, which is different from that in FIG. 7; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that each drawing is merely an example for explaining the present embodiment. Since each drawing is an example, the proportions and shapes may not be accurate, the drawings may not match each other, and some parts may be omitted.
[0010] 1.Device configuration: FIG. 1 shows a simplified configuration of a printing device 10 according to this embodiment. The printing device 10 includes a control unit 11, a display unit 13, an operation reception unit 14, a communication IF 15, a printing unit 16, a storage unit 22, etc. The printing unit 16 includes a transport unit 17, a carriage 18, a print head 19, a transmissive optical sensor 20, a reflective optical sensor 21, etc. IF is an abbreviation for interface. The control unit 11 includes one or more ICs having a CPU 11a as a processor, a ROM 11b, a RAM 11c, etc., and other non-volatile memories, etc.
[0011] In the control unit 11, a processor, i.e., a CPU 11a, executes arithmetic processing according to one or more programs 12 stored in a ROM 11b or other memory, using a RAM 11c or the like as a work area, thereby controlling the printing device 10. Note that the processor is not limited to a single CPU, and may be configured to perform processing using multiple CPUs or a hardware circuit such as an ASIC, or may be configured to perform processing in cooperation with a CPU and a hardware circuit.
[0012] The display unit 13 is a means for displaying visual information, and is configured, for example, by a liquid crystal display, an organic EL display, or the like. The display unit 13 may be configured to include a display and a drive circuit for driving the display. The operation reception unit 14 is a means for receiving operations by a user, and is realized, for example, by a physical button, a touch panel, a mouse, a keyboard, or the like. Of course, the touch panel may be realized as one function of the display unit 13.
[0013] The display unit 13 and the operation reception unit 14 may be part of the configuration of the printing device 10, or may be peripheral devices external to the printing device 10. The communication IF 15 is a collective term for one or more IFs for connecting the printing device 10 to the outside via wired or wireless communication in compliance with a predetermined communication protocol including a known communication standard. The storage unit 22 is, for example, a hard disk drive, a solid state drive, or other memory or storage device. The RAM 11c may be considered as part of the storage unit 22. The storage unit 22 may also be considered as included in the control unit 11.
[0014] The printing unit 16 is, for example, a mechanism for printing by an inkjet method. The transport unit 17 is a means for transporting the print medium in a predetermined transport direction, and includes, for example, a roller and a motor for rotating the roller. The upstream and downstream in the transport direction are also simply referred to as upstream and downstream. The print head 19 has a plurality of nozzles (not shown). The print head 19 prints an image on the print medium by ejecting or not ejecting ink dots from each nozzle based on print data for printing an image with ink generated by the control unit 11. The print head 19 can eject ink of each color, such as cyan (C) ink, magenta (M) ink, yellow (Y) ink, and black (K) ink. Of course, the print head 19 may also eject ink or liquid of colors other than CMYK.
[0015] The carriage 18 is a mechanism that receives power from a carriage motor (not shown) and can move back and forth along a predetermined main scanning direction. The main scanning direction intersects with the transport direction. "Intersecting" here can be understood as being perpendicular or nearly perpendicular. The carriage 18 carries a print head 19. In other words, the print head 19 moves back and forth along the main scanning direction together with the carriage 18.
[0016] The operation of the print head 19 ejecting ink as the carriage 18 moves along the main scanning direction is called a main scan, or a pass. The printing unit 16 prints on the print medium by combining a pass with a fixed amount of transport in the transport direction of the print medium by the transport unit 17.
[0017] The transmissive optical sensor 20 includes a light-emitting unit and a light-receiving unit that face each other across the transport path through which the print medium transported by the transport unit 17 passes, and that receives light from the light-emitting unit to detect the amount of light transmitted through the print medium. The transmissive optical sensor 20 is a sensor for performing a gap detection method. The reflective optical sensor 21 includes a light-emitting unit and a light-receiving unit that are disposed on the transport path and that receives reflected light emitted by the light-emitting unit to detect the amount of light reflected by the print medium. The reflective optical sensor 21 is a sensor for performing a mark detection method. Both the transmissive optical sensor 20 and the reflective optical sensor 21 are disposed upstream of the print head 19.
[0018] The configuration of printing device 10 shown in FIG. 1 may be realized by a single printer, or may be realized by a plurality of devices connected to each other so as to be able to communicate with each other. That is, the printing device 10 may actually be a printing system 10. The printing system 10 includes, for example, a print control device that functions as the control unit 11, and a printer that corresponds to the printing unit 16. The printing device 10 or printing system 10 described above realizes the print control method of the present embodiment.
[0019] 2 shows both the front side 30a and the back side 30b of label paper 30, which is a type of print medium. The label paper 30 has a long backing paper 31 and a plurality of labels 32 attached to the backing paper 31 with an adhesive. Printing is performed on the labels 32. The back side 30b is the side of the backing paper 31 on which the labels 32 are not attached. The labels 32 are arranged at regular or approximately regular intervals along the longitudinal direction of the backing paper 31. In FIG. 2, the longitudinal direction of the backing paper 31 is aligned with the transport direction D1.
[0020] The area of the surface 30a other than the labels 32 is called the mount area 33. The gaps 34 between the labels 32 are part of the mount area 33. In the mount area 33, a layer of the same material as the labels 32 (hereinafter, the excess material) may remain attached to the mount 31 together with the labels 32, or may have been peeled off beforehand. In other words, there are types of label paper 30 where the excess material has been removed and types where the excess material remains. If the excess material has been removed, the mount 31 itself will be exposed in the mount area 33.
[0021] In the example of FIG. 2, a mark 35 indicating the position of the leading edge of each label 32 on the front surface 30a is formed in advance on the back surface 30b of the label paper 30. With respect to the print medium, label 32, etc., the leading edge means the end facing downstream. The mark 35 is a color different from that of the backing paper 31, for example, black. The shape of the mark 35 is not particularly limited as long as it is a shape suitable for detection. Note that some types of label paper 30 do not have such a mark 35.
[0022] Thus, there are various types of label paper 30 that the printer 10 can use, such as types with and without excess material, and types with and without marks 35. Also, even though it is called label paper, the material is not limited to paper and may be, for example, a film material medium. The printer 10 can also print on types of print media other than label paper, such as plain paper.
[0023] In label paper 30 without excess material, the amount of light transmitted differs between the gap 34 and the area of the label 32 due to the difference in thickness. Therefore, when label paper 30 without excess material is being transported, the transmissive optical sensor 20 can detect the boundary where the gap 34 switches to the area of the label 32, i.e., the leading edge of the label 32, as the label position based on the change in the amount of transmitted light received by the light receiving unit. When label paper 30 with a mark 35 formed on the back surface 30b is being transported, the reflective optical sensor 21 can detect the boundary where the color of the backing paper 31 switches to the color of the mark 35, i.e., the leading edge of the label 32, as the label position based on the change in the amount of reflected light received by the light receiving unit. Note that the mark 35 may be formed in a position on the back surface 30b corresponding to the gap 34, and the reflective optical sensor 21 may detect the boundary where the color of the mark 35 switches to the color of the backing paper 31 as the leading edge of the label 32. Signals indicating the detection results by the transmissive optical sensor 20 and the reflective optical sensor 21 are sent to the control unit 11.
[0024] 2. Printing control process: 3 is a flowchart showing the print control process executed by the control unit 11 in accordance with the program 12. The control unit 11 starts this flowchart when the print medium is set in the printing device 10. The user stores the rolled print medium in a storage position for print medium (not shown) in the printing device 10 and inserts the leading edge of the print medium to some extent into the transport path, thereby completing the setting of the print medium in the printing device 10. When the control unit 11 recognizes the completion of such setting through input from the user or sensing by a predetermined sensor, it recognizes that the print medium has been set in the printing device 10.
[0025] In step S100, the control unit 11 controls the transport unit 17 to start transporting the print medium in the transport direction D1. That is, the "transport process" is started. In addition, with the start of transport in step S100 as a trigger, the control unit 11 causes each of the transmissive optical sensor 20 and the reflective optical sensor 21 to start detecting the label position. As described below, steps S100 to S170 correspond to a "sensor determination process" that determines the sensor to be used to detect the label position for the "positioning process", which is the transport of the print medium to position the label at a "printing position" by the print head 19 in the transport direction D1.
[0026] In step S110, the control unit 11 determines whether or not either the transmissive optical sensor 20 or the reflective optical sensor 21 has succeeded in detecting the label position. If neither the transmissive optical sensor 20 nor the reflective optical sensor 21 has succeeded in detecting the label position, the control unit 11 determines "No" and proceeds to step S120. On the other hand, if either the transmissive optical sensor 20 or the reflective optical sensor 21 has succeeded in detecting the label position, the control unit 11 determines "Yes" and proceeds to step S130.
[0027] In step S120, the control unit 11 determines whether the transport distance of the print medium after the start of transport in step S100 has reached a predetermined distance, and if the predetermined distance has not been reached, returns to step S110 from the determination of "No." The "predetermined distance" here is a transport distance sufficient for the label position to be detected by either the transmissive optical sensor 20 or the reflective optical sensor 21 from the print medium set in the printing device 10, and is determined in advance.
[0028] If the control unit 11 continues to determine "No" in step S110 and the transport distance of the print medium after the start of transport in step S100 reaches a predetermined distance, it determines "Yes" in step S120. If the print medium is, for example, label paper with excess material and no mark 35, or general plain paper, it determines "Yes" in step S120. The process when it determines "Yes" in step S120 will be described later.
[0029] When the control unit 11 judges "Yes" in step S110, it recognizes one of the transmissive optical sensor 20 and the reflective optical sensor 21 that has succeeded in detecting the label position at this point as the "first sensor" and the other sensor as the "second sensor." The first sensor is the "sensor that has succeeded in detecting the label position earlier" between the transmissive optical sensor 20 and the reflective optical sensor 21.
[0030] In step S130, control unit 11 causes conveying unit 17 to start a "first conveyance" to convey the print medium so that the "first label position," which is the label position detected by the first sensor at the timing of step S110, reaches the printing position. Note that because conveyance of the print medium has been started in step S100, the first conveyance starts halfway through the conveyance started in step S100. There is no need for conveying unit 17 to stop the conveyance between the conveyance started in step S100 and the first conveyance.
[0031] In step S140, the control unit 11 determines whether or not the second sensor has succeeded in detecting the label position. If the second sensor has not succeeded in detecting the label position, the control unit 11 judges "No" and proceeds to step S150. On the other hand, if the second sensor has succeeded in detecting the label position, the control unit 11 judges "Yes" and proceeds to step S160. "Yes" in step S140 corresponds to the case where the second sensor has succeeded in detecting the label position during the first conveyance period. The label position detected by the second sensor at the timing of step S140 is referred to as the "second label position."
[0032] In step S150, the control unit 11 determines whether the first conveyance has ended, and if the first conveyance has not ended, the control unit 11 returns to step S140 from the determination of "No". When the first label position reaches the print position while the determination of "No" in step S140 continues, the control unit 11 determines that the first conveyance has ended, that is, "Yes" in step S150. From "Yes" in step S150, the process proceeds to step S170. "Yes" in step S150 corresponds to the case where the second sensor cannot detect the label position during the first conveyance period and the first conveyance has ended.
[0033] In step S160, the control unit 11 determines, of the first and second sensors, the sensor that detects the first or second label position, which is closer to the printing position, as the “sensor to be used to detect the label position for positioning processing.” Hereinafter, the sensor to be used to detect the label position for positioning processing is referred to as the “main sensor,” and the sensor that is not the main sensor, of the first and second sensors, is referred to as the “sub-sensor.” On the other hand, in step S170, the control unit 11 determines the first sensor to be the main sensor.
[0034] 3, the control unit 11, having determined the main sensor in either step S160 or step S170, executes positioning processing for each label by controlling the conveying unit 17 based on the label position of each label detected by the main sensor, and executes printing on the positioned label by controlling the carriage 18 and print head 19. Step S180 includes a "printing process."
[0035] Next, the flowchart of FIG. 3 will be described in detail with reference to FIG. 4. FIG. 4 shows how one label paper 30 transported in the transport direction D1 moves downstream as time progresses. That is, the label paper 30 is shown at each timing such as time T1, T2, T3, T4, etc. Note that FIG. 4 shows the front surface 30a of the label paper 30, and it is assumed that the label paper 30 has no excess material and has a mark 35 for each label 32. In FIG. 4, each mark 35 formed on the back surface 30b is shown by a dashed line. Also, in FIG. 4, the numbers in parentheses within the area of the label 32 indicate which label 32 it is, counting from the leading edge of the label paper 30.
[0036] Reference symbol P0 indicates the gap detection position P0, which is the position of the transmissive optical sensor 20 in the transport direction D1. Reference symbol P1 indicates the mark detection position P1, which is the position of the reflective optical sensor 21 in the transport direction D1. Reference symbol P2 indicates the printing position P2 of the print head 19 in the transport direction D1. For reference, in Figure 4, the print head 19 and the carriage 18 on which the print head 19 is mounted are simply indicated by a two-dot chain line, and furthermore the main scanning direction D2 that intersects with the transport direction D1 is indicated by an arrow indicated by reference symbol D2.
[0037] 4, the transmissive optical sensor 20 is disposed upstream of the reflective optical sensor 21. However, depending on the product, the printing device 10 may have a configuration in which the reflective optical sensor 21 is disposed upstream of the transmissive optical sensor 20. In any case, the positions P0, P1, and P2 in the printing device 10 and the distance between these positions P0, P1, and P2 are known information to the control unit 11.
[0038] The label paper 30 at time T1 is in a state immediately after it has been loaded into the printer 10 by the user, that is, it is the print medium at the point in time when transport in step S100 begins. In the example of Figure 4, when the label paper 30 is loaded into the printer 10, the leading edge of the label paper 30 is downstream of the gap detection position P0.
[0039] After transport of the label paper 30 begins at time T1, the leading edge of the third label 32 reaches gap detection position P0 at time T2. At this time, the transmissive optical sensor 20 detects the leading edge of the third label 32. That is, according to the example in Figure 4, at time T2 the leading edge of the third label 32 is detected as the first label position ("Yes" in step S110), and as a result, the transmissive optical sensor 20 that detected the first label position becomes the first sensor, and the other reflective optical sensor 21 becomes the second sensor.
[0040] According to the example of FIG. 4, the first conveyance is started at time T2 (step S130). The conveyance from time T2 until the leading edge of the third label 32 reaches the printing position P2 is the first conveyance. The control unit 11 may execute the first conveyance by making the conveyance unit 17 convey the distance equivalent to the distance from the gap detection position P0 to the printing position P2. After the first conveyance is started, the leading edge of the first label 32 reaches the mark detection position P1 at time T3. At this time, the reflective optical sensor 21 as the second sensor detects the leading edge of the first label 32 according to the mark 35 of the first label 32. That is, according to the example of FIG. 4, the leading edge of the first label 32 is detected as the second label position at time T3 ("Yes" in step S140), and the control unit 11 proceeds to step S160.
[0041] Each of the transmissive optical sensor 20 and the reflective optical sensor 21 can detect the change from a state where there is no print medium to a state where there is print medium, that is, the leading edge of the print medium. However, the degree of change in the amount of light received by the light receiving section of each sensor differs between the leading edge of the print medium and the leading edge of the label 32. Therefore, each sensor can detect the leading edge of the print medium and the leading edge of the label 32 separately.
[0042] The leading edge of the first label 32, which is the second label position, is closer to the printing position P2 than the leading edge of the third label 32, which is the first label position. Therefore, in step S160, the control unit 11 determines that the reflective optical sensor 21, which is the second sensor that detected the second label position, is the main sensor. At the same time, the transmissive optical sensor 20, which is the first sensor, becomes the sub-sensor.
[0043] In this way, in step S180 after the reflective optical sensor 21 is determined to be the main sensor, the control unit 11 performs positioning processing based on the label position detected by the reflective optical sensor 21. In other words, the control unit 11 causes the conveying unit 17 to convey the label paper 30 so that the label position detected by the reflective optical sensor 21 reaches the printing position P2. The process of conveying the print medium so that the second label position reaches the printing position P2 may be called the "second conveyance". In the example of FIG. 4, the leading edge of the first label 32 is detected as the second label position at time T3, and when the reflective optical sensor 21 that detected the second label position is determined to be the main sensor, the first conveyance that started at time T2 ends midway and the conveyance switches to the second conveyance. Of course, the conveyance unit 17 does not need to stop the conveyance between the first conveyance and the second conveyance.
[0044] According to the example of FIG. 4, the second transport starts at time T3, and ends at time T4 when the leading edge of the first label 32 reaches the printing position P2. The control unit 11 executes the second transport by making the transport unit 17 transport the distance equivalent to the distance from the mark detection position P1 to the printing position P2. Such a second transport can be said to be the first positioning process based on the label position detected by the main sensor after the print medium is set in the printing device 10. The control unit 11 executes printing by the print head 19 on the label 32 whose leading edge is positioned at the printing position P2. After this, the control unit 11 controls the transport unit 17 to repeatedly execute the positioning process for each label 32 so that the leading edge of the second label 32, the leading edge of the third label 32, the leading edge of the fourth label 32, etc. detected by the main sensor reach the printing position P2.
[0045] The bottom of Figure 4 shows the label paper 30 at time T5, assuming a scene where the first positioning process after setting the print medium has been completed with the transmissive optical sensor 20 set as the main sensor. If the transmissive optical sensor 20 is set as the main sensor, the leading edge of the third label 32 is detected by the transmissive optical sensor 20 at time T2, and then positioning process is performed so that the leading edge of this third label 32 reaches the printing position P2. As a result, the first and second labels 32 are transported downstream of the print head 19 without being printed, resulting in the loss of the labels 32.
[0046] In contrast, in this embodiment, after the print medium is set, if the transmissive optical sensor 20 and the reflective optical sensor 21 each detect a label position, the controller 11 determines which of the first and second label positions is closest to print position P2 as the main sensor. As a result, as can be seen from the explanations of Figures 3 and 4, it is possible to start printing on the label paper 30 at time T4 rather than time T5, thereby reducing loss of labels 32.
[0047] 4, there is a possibility that the reflective optical sensor 21 detects the leading edge of the label 32 before the transmissive optical sensor 20 after the start of conveyance in step S100. If the reflective optical sensor 21 detects the leading edge of the label 32 before the transmissive optical sensor 20, the reflective optical sensor 21 becomes the first sensor and the transmissive optical sensor 20 becomes the second sensor. In this case, the label position (first label position) detected by the reflective optical sensor 21 is closer to the printing position P2 than the label position (second label position) detected by the transmissive optical sensor 20 thereafter. Therefore, the reflective optical sensor 21 ends up becoming the main sensor, and the effect of suppressing loss of the label 32 is obtained.
[0048] 4, the mark detection position P1 may be disposed upstream of the gap detection position P0. In this case, depending on the distance between the mark detection position P1 and the gap detection position P0, the reflective optical sensor 21 or the transmissive optical sensor 20 may become the first sensor, but in step S160, the transmissive optical sensor 20, which is relatively downstream, is determined to be the main sensor, and therefore, the effect of suppressing loss of the label 32 can be obtained as described above.
[0049] If the label paper 30 shown in FIG. 4 is of a type that does not have a mark 35, after the start of conveyance in step S100, the transmissive optical sensor 20 detects the leading edge of any one of the labels 32 as the first label position, and then the first conveyance ends without the leading edge of the label 32 being detected by the reflective optical sensor 21 as the second sensor. In this case, in step S170, the transmissive optical sensor 20 as the first sensor is determined to be the main sensor. Also, if the label paper 30 shown in FIG. 4 is of a type that has a surplus material, after the start of conveyance in step S100, the reflective optical sensor 21 detects the leading edge of any one of the labels 32 as the first label position according to the mark 35, and then the first conveyance ends without the leading edge of the label 32 being detected by the transmissive optical sensor 20 as the second sensor. In this case, in step S170, the reflective optical sensor 21 as the first sensor is determined to be the main sensor.
[0050] If the main sensor is determined in step S170, the first transport will ultimately be the first positioning process based on the label position detected by the main sensor after the print medium is set in the printer 10. As described above, according to this embodiment, a sensor suitable for detecting the label position from the label paper 30 set in the printer 10 is determined as the main sensor according to the label paper 30 set in the printer 10. Determining the main sensor is synonymous with setting the label detection method.
[0051] 3. What to do if the label position cannot be detected: If the determination in step S120 is "Yes," that is, if neither the transmissive optical sensor 20 nor the reflective optical sensor 21 can detect the label position even after the print medium has been transported a predetermined distance since the start of transport in step S100, then the process will be described with reference to Fig. 5 or Fig. 6. Fig. 5 and Fig. 6 each show, in the form of a flowchart, the process after the determination in step S120 is "Yes." The control unit 11 may execute either of the flowcharts in Figs. 5 and 6.
[0052] First, FIG. 5 will be described. In step S190, the control unit 11 controls the transport unit 17 to transport the print medium in the reverse direction of the transport direction D1, that is, from downstream to upstream, a predetermined distance. Transport in the reverse direction of the transport direction D1 is called backfeed. Here, the predetermined distance determined in step S120 is called the first predetermined distance, and the predetermined distance backfeed in step S190 is called the second predetermined distance. It may be understood that the first predetermined distance is greater than the second predetermined distance. The second predetermined distance is the distance required for the leading edge of the print medium to reach a position facing the print head 19. The leading edge position of the print medium is stored in the storage unit 22, and the value is updated every time the print medium is transported. The leading edge position of the print medium may be detected using the transmission type optical sensor 20 or the reflection type optical sensor 21, or another sensor capable of detecting the leading edge of the print medium may be provided. As a result of the backfeed in step S190, the print medium stops at a position where its leading edge position faces the print head 19.
[0053] In step S200, the control unit 11 determines the position of the print medium facing the print head 19 (the leading edge of the print medium) at the time when the backfeed in step S190 is completed as the "print start position" of the print medium. In this case, the print start position is determined and the sensor determination process ends. Both the transmissive optical sensor 20 and the reflective optical sensor 21 can detect the presence or absence of the print medium. Therefore, the position where the print medium changes from a state where there is no print medium to a state where there is print medium can be recognized as the leading edge of the print medium.
[0054] In the subsequent step S210, control unit 11 controls transport by transport unit 17 based on the print start position, and controls carriage 18 and print head 19 to print on the print medium. That is, control unit 11 only needs to control transport by transport unit 17, carriage 18, and print head 19 thereafter to print from the leading edge of the print medium to an upstream area of the print medium based on the print data.
[0055] 6 will now be described. In step S230, the control unit 11 controls the transport unit 17 to start backfeeding the print medium. After backfeeding starts, the control unit 11 determines whether or not either the transmissive optical sensor 20 or the reflective optical sensor 21 has detected the leading edge of the print medium (step S240).
[0056] When either the transmissive optical sensor 20 or the reflective optical sensor 21 detects the leading edge of the print medium, the control unit 11 determines "Yes" in step S240, and stops the backfeed by the transport unit 17 in step S250.
[0057] In step S260, the control unit 11 determines the leading edge of the print medium detected in step S240 as the "print start position" of the print medium. In this case, the print start position is determined and the sensor determination process ends.
[0058] In step S270, control unit 11 controls transport unit 17 to perform positioning processing based on the print start position. That is, if the leading edge of the print medium is detected by transmissive optical sensor 20 in step S240, control unit 11 in step S270 only needs to cause transport unit 17 to transport the print medium a distance equivalent to the distance from gap detection position P0 to print position P2. On the other hand, if the leading edge of the print medium is detected by reflective optical sensor 21 in step S240, control unit 11 in step S270 only needs to cause transport unit 17 to transport the print medium a distance equivalent to the distance from mark detection position P1 to print position P2.
[0059] In the subsequent step S280, control unit 11 controls transport by transport unit 17 based on the print start position, and controls carriage 18 and print head 19 to print on the print medium. That is, control unit 11 only needs to control transport by transport unit 17, carriage 18, and print head 19 thereafter to print based on the print data from the leading edge of the print medium, which is the print start position at the time the positioning process in step S270 is completed, to the upstream area.
[0060] 4. Control process for changing main sensors: Even after the control unit 11 automatically determines in step S160 that either the first sensor or the second sensor is the main sensor and the other is the sub-sensor, the user can change the sensor used to detect the label position for the positioning process from the main sensor to the sub-sensor at any timing. Such an instruction to change is called a main sensor change instruction. The user can input a main sensor change instruction to the control unit 11 by operating the operation reception unit 14. Note that the change of the sensor used to detect the label position for the positioning process is reflected only when the leading edge of the label 32 is located at the printing position P2, and is not reflected while the print medium is being transported.
[0061] In consideration of the possibility of receiving a main sensor change instruction from the user, the control unit 11 stores in the storage unit 22, while updating each of the "first position management information" which is information on the relative position between the main sensor and each label position detected by the main sensor for each label 32 in the transport direction D1, and the "second position management information" which is information on the relative position between the sub-sensor and each label position detected by the sub-sensor for each label 32 in the transport direction D1, in accordance with the transport of the print medium. Then, in the positioning process after determining the main sensor, the control unit 11 controls the transport unit 17 based on the first position management information so that the most downstream label position among the label positions upstream of the printing position P2 reaches the printing position P2. Also, in the positioning process after receiving a main sensor change instruction, the control unit 11 controls the transport unit 17 based on the second position management information so that the most downstream label position among the label positions upstream of the printing position P2 reaches the printing position P2.
[0062] Such a control process for changing the main sensor will be described with reference to FIG. Figure 7 shows the label paper 30 being conveyed in the conveying direction D1 from a side perspective. As explained in Figure 2, the label paper 30 has a backing paper 31 and multiple labels 32 with gaps 34 between them in the conveying direction D1. The label paper 30 shown in Figure 7 has no excess material in the gaps 34 and has marks 35 for each label 32 on the backing paper 31, so that the leading edge of each label 32 can be detected by both the transmissive optical sensor 20 and the reflective optical sensor 21.
[0063] In the example of FIG. 7, the gap detection position P0 is located upstream of the mark detection position P1, as in FIG. 2. The transmission optical sensor 20 detects the leading edge of the label 32 when the leading edge passes the gap detection position P0. Therefore, the control unit 11 stores in the memory unit 22 how far downstream the leading edge of each label 32 detected by the transmission optical sensor 20 is currently located from the gap detection position P0 while updating the information as the conveyance of the label paper 30 progresses, and the relative positions stored in this manner are the position management information PIG. According to FIG. 7, the position management information PIG stores the relative positions "155", "115", "75", and "35" for each of the four labels 32 that are currently downstream of the gap detection position P0 and for which printing by the print head 19 has not yet started. The unit of the relative position may be millimeters or another unit. According to FIG. 7, the relative position "155" in the position management information PIG is the distance from the gap detection position P0 to the printing position P2.
[0064] Similarly, the reflective optical sensor 21 detects the leading edge of the label 32 when it passes the mark detection position P1. Therefore, the control unit 11 stores in the memory unit 22 how far downstream the leading edge of each label 32 detected by the reflective optical sensor 21 is currently located from the mark detection position P1 while updating the information as the transport of the label paper 30 progresses, and this stored relative position is the position management information PIM. According to FIG. 7, the position management information PIM stores the relative positions "130", "90", "50", and "10" for each of the four labels 32 that are currently downstream of the gap detection position P1 and for which printing by the print head 19 has not yet started. According to FIG. 7, the relative position "130" in the position management information PIM is the distance from the mark detection position P1 to the printing position P2.
[0065] In the description of FIG. 7, it is assumed that the reflective optical sensor 21 is the main sensor and the transmissive optical sensor 20 is the sub-sensor. Therefore, the position management information PIM is the first position management information, and the position management information PIG is the second position management information. The control unit 11 performs positioning processing based on the position management information PIM as the first position management information. That is, the control unit 11 refers to the position management information PIM to identify the most downstream relative position of the relative positions of each label 32 located upstream of the printing position P2, and controls the conveying unit 17 so that the relative position of this label 32 reaches the printing position P2. Note that the most downstream label 32 among the labels 32 whose relative positions can be identified by referring to the position management information and are upstream of the printing position P2 is called the "label to be positioned."
[0066] According to Fig. 7, the label 32 at the relative position "130" indicated by the position management information PIM is positioned at the printing position P2, and is the label to be positioned up until now. Therefore, after the scene shown in Fig. 7, the control unit 11 starts printing on the label 32 for which positioning has been completed. Then, when printing is completed, the label 32 next to the label 32 for which printing has been completed, that is, the label 32 at the relative position "90" indicated by the position management information PIM, is set as the next label to be positioned, and the conveying unit 17 is caused to convey the label paper 30 so that the next label to be positioned reaches the printing position P2.
[0067] Here, in the scene shown in Fig. 7, it is assumed that the control unit 11 has received a main sensor change instruction. After receiving the main sensor change instruction, the control unit 11 performs positioning processing based on the second position management information, i.e., the position management information PIG. According to Fig. 7, the label 32 at the relative position "155" indicated by the position management information PIG is positioned at the printing position P2, and corresponds to the label to be positioned up until now. Therefore, the control unit 11 starts printing on this label 32 for which positioning has been completed. Then, it causes the conveying unit 17 to convey the label paper 30 so that the label 32 next to the label 32 for which printing has been completed, i.e., the label 32 at the relative position "115" indicated by the position management information PIG (the next label to be positioned), reaches the printing position P2.
[0068] 7, the label 32 of the relative position "90" indicated by the position management information PIM and the label 32 of the relative position "115" indicated by the position management information PIG are the same label 32. Therefore, even if the control unit 11 switches the position management information to be referenced for the positioning process from the position management information PIM to the position management information PIG or vice versa, triggered by a main sensor change instruction, the control unit 11 can perform the positioning process by using the same label 32 as the positioning target label.
[0069] The control process for changing the main sensor will be further described with reference to Figure 8. Figure 8 can be viewed in the same way as Figure 7. Comparing Figure 8 with Figure 7, the mark detection position P1 is further downstream. Therefore, the distance between the gap detection position P0 and the mark detection position P1 is longer than the sum of the distance between one label 32 and one gap 34 on the label paper 30. In the configuration of Figure 8, after the label paper 30 is set in the printing device 10 and transportation begins, the label 32 whose leading edge is first detected by the reflective optical sensor 21 is different from the label 32 whose leading edge is first detected by the transmissive optical sensor 20.
[0070] 8, the position management information PIG stores the relative positions "155," "115," "75," and "35," as in Fig. 7, for each of the four labels 32 that are currently downstream of the gap detection position P0 and for which printing by the print head 19 has not yet started. The position management information PIM stores the relative positions "100," "60," and "20," for each of the three labels 32 that are currently downstream of the gap detection position P1 and for which printing by the print head 19 has not yet started. The relative position "100" in the position management information PIM in Fig. 8 is the distance from the mark detection position P1 to the printing position P2.
[0071] In the explanation of FIG. 8, it is assumed that the reflective optical sensor 21 is the main sensor and the transmissive optical sensor 20 is the sub-sensor. Therefore, the position management information PIM is the first position management information, and the position management information PIG is the second position management information. According to FIG. 8, the label 32 at the relative position "100" indicated by the position management information PIM is positioned at the printing position P2, and is the label to be positioned up until now. Therefore, after the scene shown in FIG. 8, the control unit 11 starts printing on the label 32 for which positioning has been completed. Then, the label 32 next to the label 32 for which printing has been completed, that is, the label 32 at the relative position "60" indicated by the position management information PIM, is set as the next label to be positioned, and the conveying unit 17 is caused to convey the label paper 30 so that the next label to be positioned reaches the printing position P2.
[0072] Here, in the scene shown in Fig. 8, it is assumed that the control unit 11 has received a main sensor change instruction. After receiving the main sensor change instruction, the control unit 11 performs positioning processing based on the second position management information, i.e., the position management information PIG. According to Fig. 8, the label 32 at the relative position "155" indicated by the position management information PIG is positioned at the printing position P2, and corresponds to the label to be positioned up until now. Therefore, the control unit 11 starts printing on this label 32 for which positioning has been completed. Then, it causes the conveying unit 17 to convey the label paper 30 so that the label 32 next to the label 32 for which printing has been completed, i.e., the label 32 at the relative position "115" indicated by the position management information PIG (the next label to be positioned), reaches the printing position P2. However, when the label 32 first detected by the reflective optical sensor 21 is positioned at the printing position P2, if the change in the main sensor is reflected, when the position management information referenced for the positioning process in the scene of Fig. 8 is switched from the position management information PIM to the position management information PIG, the label 32 at the relative position "155" indicated by the position management information PIG does not exist, and the label 32 at the relative position "115" becomes the label to be positioned. This is because the label 32 whose leading edge is first detected by the reflective optical sensor 21 and the label 32 whose leading edge is first detected by the transmissive optical sensor 20 are shifted by one label, so when the label 32 first detected by the reflective optical sensor 21 is positioned at the printing position P2, the label 32 does not exist at the relative position "155" indicated by the position management information PIG. Therefore, the control unit 11 causes the conveying unit 17 to convey the label paper 30 so that the label 32 at the relative position "115" indicated by the position management information PIG reaches the printing position P2. This kind of processing can be said to be an exception to Fig. 8.
[0073] 5. Summary: Thus, according to this embodiment, the printing device 10 is capable of printing on multiple types of printing media, including label paper 30 on which multiple labels 32 are arranged at intervals on a long backing paper 31 and on which marks 35 indicating the position of the labels 32 are formed on each label 32. The printing device 10 comprises a transport unit 17 that transports the print medium along the transport direction D1, a print head 19 that prints on the print medium at a predetermined position in the transport direction D1, a transmissive optical sensor 20 that is disposed upstream of the print head 19 in the transport direction D1 and that is capable of detecting, as the label position, the boundary where the area of the backing paper 31 on which the label 32 of the label paper 30 changes from the area to the area of the label 32, and a reflective optical sensor 21 that is capable of detecting the mark 35 as the label position, and a control unit 11 that performs a sensor determination process to determine whether the transmissive optical sensor 20 or the reflective optical sensor 21 is the sensor (main sensor) to be used for detecting the label position for the positioning process, which is the transport of the print medium to position the label 32 at the printing position P2 by the print head 19 in the transport direction D1, and controls the transport unit 17 based on the label position of each label 32 detected by the sensor determined by the sensor determination process to perform the positioning process for each label 32. In the sensor determination process, the control unit 11 causes the transport unit 17 to transport the printing medium while having the transmissive optical sensor 20 and the reflective optical sensor 21 each detect the label position, designating the sensor that first succeeds in detecting the label position as the first sensor and the other sensor as the second sensor, and causes the transport unit 17 to perform a first transport to transport the printing medium so that the first label position, which is the label position detected by the first sensor, reaches the printing position P2. If the first transport ends without the second sensor detecting the label position during the first transport period, the control unit 11 determines the first sensor as the sensor to be used for detecting the label position for the positioning process. If the second sensor succeeds in detecting the label position during the first transport period, the control unit 11 determines the sensor that detected the first label position or the second label position, which is the label position detected by the second sensor and is closer to the printing position P2, as the sensor to be used for detecting the label position for the positioning process.
[0074] According to the above-mentioned configuration, depending on the label paper 30 used for printing, either the transmissive optical sensor 20 or the reflective optical sensor 21, whichever is more suitable for detecting the label position from the label paper 30, is automatically determined as the main sensor. This eliminates the conventional problem of being unable to detect the label for positioning processing when the label detection method or the settings of the sensor used for detection do not match the type of print medium being used. Furthermore, according to the above-mentioned configuration, since the main sensor is determined depending on the relationship between the first label position and the second label position and the printing position P2, it is possible to reduce as much as possible the unnecessary transport of the label 32 during the positioning processing, in other words, to suppress loss of the label 32.
[0075] Furthermore, according to this embodiment, when the second sensor succeeds in detecting the label position during the first transport period and one of the first and second sensors that has been determined to be used to detect the label position for the positioning process is designated as the main sensor and the other sensor as the sub-sensor, the control unit 11 stores first position management information, which is information on the relative position between the main sensor and each label position detected by the main sensor for each label 32 in the transport direction D1, while updating it in accordance with the transport of the print medium, and stores second position management information, which is information on the relative position between the sub-sensor and each label position detected by the sub-sensor for each label 32 in the transport direction D1, while updating it in accordance with the transport of the print medium. Then, in the positioning process, the control unit 11 controls the transport unit 17 based on the first position management information so that the most downstream label position among the label positions upstream of the printing position P2 in the transport direction reaches the printing position P2. When the control unit 11 receives an instruction to change the sensor used to detect the label position for the positioning process from the main sensor to the sub-sensor, in the positioning process, based on the second position management information, the control unit 11 controls the transport unit 17 so that the most downstream label position among the label positions upstream of the printing position P2 in the transport direction reaches the printing position P2.
[0076] According to the above configuration, the control unit 11 stores the first position management information and the second position management information, and when a main sensor change instruction is received, the control unit 11 can switch the positioning process based on the first position management information to the positioning process based on the second position management information to eliminate waste of processing. The effect will be specifically described. Conventionally, when a change in the label detection method is instructed by a user, the detection of the label position is performed again by the sensor used for the changed label detection method. For example, when a change from the mark detection method to the gap detection method is instructed in the state shown in FIG. 7, conventionally, the leading edge of the label 32 located upstream of the gap detection position P0 is detected by the transmission type optical sensor 20 according to the conveyance, and the initial positioning process is performed again based on this detection. Therefore, when a change from the mark detection method to the gap detection method is instructed, all the labels 32 downstream of the gap detection position P0 are conveyed without being printed, and many labels 32 are lost. In contrast, in this embodiment, regardless of whether the first position management information or the second position management information is referred to, the same labels 32 can be positioned except for some exceptions, and the loss can be suppressed.
[0077] Furthermore, according to this embodiment, in the sensor determination process, if neither the transmissive optical sensor 20 nor the reflective optical sensor 21 can detect the label position even after the transport unit 17 has transported the print medium a predetermined distance, the control unit 11 causes the transport unit 17 to transport the print medium a second predetermined distance in the opposite direction to the transport direction D1, and determines the position of the print medium facing the print head 19 at the end of the transport in the opposite direction as the print start position, and ends the sensor determination process. Then, in the subsequent printing, the control unit 11 controls the transport by the transport unit 17 based on the print start position. The second predetermined distance is the distance required for the leading edge of the print medium to reach the position facing the print head 19. Alternatively, in the sensor determination process, if neither the transmissive optical sensor 20 nor the reflective optical sensor 21 can detect the label position even after the control unit 11 has caused the transport unit 17 to transport the print medium a predetermined distance, the control unit 11 causes the transport unit 17 to transport the print medium in the opposite direction to the transport direction D1, and when either the transmissive optical sensor 20 or the reflective optical sensor 21 detects the leading edge of the print medium, the control unit 11 determines this leading edge as the print start position of the print medium and ends the sensor determination process.The control unit 11 may then cause the transport unit 17 to transport the print medium until the print start position reaches print position P2, and control the transport by the transport unit 17 based on the print start position in subsequent printing. According to these configurations, even when a print medium is used whose label position cannot be detected by either the transmissive optical sensor 20 or the reflective optical sensor 21, transport and printing can be performed without causing a label detection error.
[0078] This embodiment discloses a printing device and a printing system. Furthermore, this embodiment discloses methods executed by these devices and systems, and a program 12 that causes a processor to execute these methods. The print control method for printing on multiple types of print media including label paper 30 on which multiple labels 32 are arranged at intervals on a long backing paper 31 and on which marks 35 indicating the position of the labels 32 are formed on each label 32 includes a transport step of transporting the print medium along a transport direction D1, a sensor determination step of determining whether a sensor to be used to detect the label position is one of a transmissive optical sensor 20 and a reflective optical sensor 21 for a positioning step in which the print medium is transported and the label 32 is positioned at a printing position P2 by a print head 19 arranged at a predetermined position in the transport direction D1, a positioning step of controlling transport based on the label position of each label 32 detected by the sensor determined in the sensor determination step to perform positioning for each label, and a printing step of printing on the print medium by the print head 19. Then, in the sensor determination process, while the printing medium is transported, the transmissive optical sensor 20 and the reflective optical sensor 21 are each caused to detect the label position, and the sensor that first succeeds in detecting the label position is designated as the first sensor, and the other sensor is designated as the second sensor. A first transport is performed to transport the printing medium so that the first label position, which is the label position detected by the first sensor, reaches the printing position P2, and if the first transport ends without the second sensor detecting the label position during the first transport period, the first sensor is determined to be the sensor to be used to detect the label position for the positioning process, and if the second sensor succeeds in detecting the label position during the first transport period, the sensor that detected the first or second sensor, whichever is closer to the printing position P2, is determined to be the sensor to be used to detect the label position for the positioning process.
[0079] The printing device 10 does not have to be a so-called serial type inkjet printer in which the print head 19 is mounted on a carriage 18 that moves in the main scanning direction D2 as described above. It is also possible to use a so-called line-type inkjet printer that ejects ink using a print head 19 that has a nozzle row for each ink color that extends in a main scanning direction D2 that intersects with the transport direction D1 and has a length that can cover the width of the print medium. A line-type inkjet printer does not require the carriage 18. Furthermore, the printing method employed by the print head 19 is not limited to the inkjet method, but may be, for example, an electrophotographic method or a thermal method. [Explanation of symbols]
[0080] 10...printing device (printing system), 11...control unit, 11a...CPU, 11b...ROM, 11c...RAM, 12...program, 16...printing unit, 17...transport unit, 18...carriage, 19...print head, 20...transmissive optical sensor, 21...reflective optical sensor, 22...storage unit, 30...label paper, 30a...front surface, 30b...back surface, 31...backing paper, 32...label, 34...gap, 35...mark, P0...gap detection position, P1...mark detection position, P2...printing position, PIG, PIM...position management information
Claims
1. A printing device capable of printing on a plurality of types of printing media including label paper on which a plurality of labels are arranged at intervals on a long backing sheet and a mark indicating the position of each of the labels is formed, a transport unit that transports the print medium along a transport direction; a print head that prints on the print medium at a predetermined position in the transport direction; a transmission type optical sensor that is disposed at a position upstream of the print head in the transport direction and that is capable of detecting, as a label position, a boundary where an area of the label paper where the label paper is not labelled changes over from an area of the backing paper where the label paper is labelled, and a reflection type optical sensor that is capable of detecting the mark as the label position; a control unit that performs a sensor determination process to determine whether a sensor to be used for detecting a label position for a positioning process, which is transport of the print medium to position the label at a print position by the print head in the transport direction, is the transmissive optical sensor or the reflective optical sensor, and controls the transport unit based on the label position of each label detected by the sensor determined by the sensor determination process to execute the positioning process for each label, In the sensor determination process, the control unit while the transport section transports the print medium, the transmissive optical sensor and the reflective optical sensor are caused to detect the label position, and the sensor that first succeeds in detecting the label position is designated as a first sensor, and the other sensor is designated as a second sensor; causing the conveying unit to execute a first conveyance of the print medium so that a first label position, which is a label position detected by the first sensor, reaches the print position; When the first conveyance is completed without the second sensor detecting the label position during the first conveyance period, the first sensor is determined to be a sensor to be used for detecting the label position for the positioning process; a printing device characterized in that, if the second sensor succeeds in detecting the label position during the first transport period, the sensor between the first sensor and the second sensor that detects the first label position or the second label position detected by the second sensor, which is closer to the printing position, is determined to be the sensor to be used to detect the label position for the positioning process.
2. when the second sensor succeeds in detecting the label position during the first transport period, and one of the first sensor and the second sensor that has been determined to be used to detect the label position for the positioning process is designated as a main sensor, and the other sensor is designated as a sub-sensor, updating and storing first position management information, which is information on the relative position between the main sensor and each label position detected for each label by the main sensor in the transport direction, in accordance with the transport of the print medium; and updating and storing second position management information, which is information on the relative position between the sub-sensor and each label position detected for each label by the sub-sensor in the transport direction, in accordance with the transport of the print medium; In the positioning process, the transport unit is controlled based on the first position management information so that the most downstream label position among the label positions upstream of the printing position in the transport direction reaches the printing position; 2. The printing device according to claim 1, wherein, when the control unit receives an instruction to change the sensor used to detect the label position for the positioning process from the main sensor to the sub-sensor, in the positioning process, based on the second position management information, the control unit controls the transport unit so that the most downstream label position among the label positions upstream of the printing position in the transport direction reaches the printing position.
3. The control unit is In the sensor determination process, if neither the transmissive optical sensor nor the reflective optical sensor can detect the label position even after the transport section has transported the print medium a predetermined distance, the transport section transports the print medium a second predetermined distance in a direction opposite to the transport direction, and when the transport in the opposite direction is completed, the position of the print medium facing the print head is determined to be a print start position, and the sensor determination process is terminated. In the subsequent printing, the conveyance by the conveyance unit is controlled based on the print start position; 3. The printing device according to claim 1, wherein the second predetermined distance is a distance necessary for the leading edge of the printing medium to reach a position facing the print head.
4. The control unit is In the sensor determination process, if neither the transmissive optical sensor nor the reflective optical sensor can detect the label position even after the transport section has transported the print medium a predetermined distance, the transport section transports the print medium in the direction opposite to the transport direction, and when either the transmissive optical sensor or the reflective optical sensor detects the leading edge of the print medium, the leading edge is determined to be the print start position of the print medium, and the sensor determination process is terminated.
3. A printing device as described in claim 1 or claim 2, characterized in that the transport section transports the print medium until the print start position reaches the printing position, and in subsequent printing, transport by the transport section is controlled based on the print start position.
5. A print control method for printing on a plurality of types of print media, including label paper on which a plurality of labels are arranged at intervals on a long backing sheet and marks indicating the positions of the labels are formed on each of the labels, comprising: a conveying step of conveying the print medium along a conveying direction; a sensor determination process for determining the sensor to be used for detecting the label position for the positioning process, which is transportation of the print medium to position the label at a print position by a print head disposed at a predetermined position in the transport direction, to be either a transmissive optical sensor that is disposed at a position upstream of the print head in the transport direction and that can detect, as the label position, the boundary where the area of the backing paper on which the label is not placed switches to the area of the label, or a reflective optical sensor that can detect the mark as the label position; a positioning step of controlling the conveyance based on the label position of each of the labels detected by the sensor determined in the sensor determination step, thereby performing the positioning of each of the labels; a printing step of printing on the print medium by the print head, In the sensor determination step, While conveying the print medium, the transmissive optical sensor and the reflective optical sensor are caused to detect the label position, and the sensor which first succeeds in detecting the label position is designated as a first sensor, and the other sensor is designated as a second sensor; performing a first transport of the print medium so that a first label position, which is a label position detected by the first sensor, reaches the print position; When the first conveyance is completed without the second sensor detecting the label position during the first conveyance, the first sensor is determined to be a sensor to be used for detecting the label position for the positioning step; a second label position detection unit that detects a position closer to the printing position between the first label position and a second label position detected by the second sensor, and that is a label position detected by the second sensor, is determined to be the sensor to be used to detect the label position for the positioning process if the second sensor succeeds in detecting the label position during the first transport period.
Citation Information
Patent Citations
Sheet carrying device
JP1995061698A
JP2007‐15373A
Image formation apparatus
JP2015142975A
Image formation apparatus
JP2018001487A
Label printer and program
JP2018001703A
