The present application is based on and claims priority to Japanese Patent Application No. 2018-201488, filed on Oct. 26, 2018, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
An aspect of this disclosure relates to a printer.
2. Description of the Related Art
Printers are used, for example, for registers and mobile receipt issuing devices. In a printer using a rolled recording medium, the recording medium can be placed in a holder by opening a cover (See, for example, Japanese Laid-Open Patent Publication No. 2017-13945 and Japanese Laid-Open Patent Publication No. 2000-302299).
There are rolled recording media with various widths. If one printer can print information on recording media with various widths, the versatility of the printer is improved.
Accordingly, there is a demand for a printer that supports recording media with different widths.
According to an aspect of this disclosure, there is provided a printer that includes a printer body including an installation area where a recording medium is installed, a print head that prints information on the recording medium, a controller, a movable guide that guides the side of the recording medium in the installation area, and a first switch that detects a position of the movable guide attached to the installation area. The controller performs a print control process corresponding to the width of the recording medium based on information obtained by the first switch.
Embodiments of the present invention are described below. The same reference number is assigned to the same component, and repeated descriptions of the component are omitted.
Cases where paper rolls with different widths are used in a printer are described. A printer that can house a 4-inch-wide paper roll (4-inch paper) in a holder can also house, in the holder, a 3-inch-wide paper roll (3-inch paper) or 2-inch-wide paper roll (2-inch paper) whose width is narrower than 4 inches. Accordingly, it is possible to print information on 3-inch paper or 2-inch paper with a printer supporting 4-inch paper.
However, if a paper roll with a narrower width is placed in a holder supporting 4-inch paper, the paper roll moves in the holder. Therefore, a positioning part for positioning the paper roll with the narrower width is necessary.
Also, because a printer supporting 4-inch paper is designed to print information on the 4-inch paper, if information is printed on 3-inch paper or 2-inch paper without change, the printed information may overflow the 3-inch/2-inch paper. Thus, even if the paper roll is positioned by the positioning part, desired information may not be printed on the 3-inch/2-inch paper. Therefore, to print information on 2-inch paper, the printer needs to recognize that the paper roll set in the printer has a width of 2 inches.
If a printer can detect the width of 3-inch paper or 2-inch paper placed in a holder supporting 4-inch paper, the printer can perform a printing operation corresponding to the detected width, and the overflow of printed information can be prevented.
In view of the above considerations, a printer according to an embodiment of the present invention can detect the width of a recording medium placed in a holder and drive a print head according to the detected width. This enables the printer to print information on recording media with different widths.
The printer 1 includes a body 20 and a cover 30 that is rotatably connected to the body 20. A platen roller 40 is attached to the inside of the cover 30, and a print head 50 is attached to the inside of the body 20. A holder 60 in the body 20 is opened by opening the cover 30 so that a recording medium 100 can be placed in the holder 60. The recording medium 100 illustrated in
The leading end of the recording medium 100 set in the printer 1 is sandwiched between the platen roller 40 and the print head 50, and the recording medium 100 is fed by the rotation of the platen roller 40 and ejected in the direction of an arrow in
As illustrated in
The printer 1 further includes movable guides 80 for guiding the sides of the recording medium 100 in the holder 60. Positions of the guides 80 in the holder 60 can be changed. Two guides 80 are provided to guide the corresponding sides of the recording medium 100, and are positioned symmetrically in the width direction of the recording medium 100 in the holder 60. Switches SW1 and SW2 for detecting the positions of the guides 80 are provided in the holder 60, and a switch SW3 for detecting the recording medium is provided on the guide 80. The switches SW1 and SW2 may be referred to as first switches, and the switch SW3 may be referred to as a second switch. In the present embodiment, the switches SW1, SW2, and SW3 are mechanical switches. However, the switches SW1, SW2, and SW3 may be implemented by optical switches.
A wall 81, which determines the position of the recording medium in the width direction, is provided on the outer side of each guide 80. A first holder 82 is formed on the inner side of the wall 81, and a second holder 83 is formed on the inner side of the first holder 82. A step 84 is formed between the first holder 82 and the second holder 83 such that the second holder 83 becomes deeper than the first holder 82. The guide 80 can be moved in the holder 60 in three steps in the width direction.
The first holder 82 and the second holder 83 have an arc shape corresponding to the paper roll. The switch SW3 is provided in a position corresponding to the first holder 82. The switch SW3 detects a recording medium in the first holder 82, but does not detect a recording medium in the second holder 83.
Table 1 indicates the relationship between the widths of recording media and the ON and OFF of the switches SW1, SW2, and SW3. In Table 1, ON (1) indicates “detected” and OFF (0) indicates “not detected”.
Information obtained by the switches SW1, SW2, and SW3 is transmitted to the board 70, and the board 70 determines the width of the recording medium in the holder 60 and performs a control process corresponding to the determined width.
When determining that the recording medium has the width L1, the board 70 controls the print head 50 to suit 4-inch paper. When determining that the recording medium has the width L5, the board 70 controls the print head 50 to suit 2-inch paper. In this process, as necessary, a printing area to be printed by the print head 50 is limited by changing, for example, a print width. Also, three or more holders may be provided. In this case, the number of second switches may be determined by a formula “the number of holders−1”.
A process performed by the printer 1 is described. The printer 1 determines the width of a recording medium in the holder 60 based on the ON and OFF of the switches SW1, SW2, and SW3, and performs a control process corresponding to the detected width of the recording medium.
A process performed by the printer 1 is described with reference to
At 5102, the printer 1 determines whether the guide 80 is detected by the switch SW1. When the guide 80 is detected by the switch SW1 (YES at S102), the process proceeds to S110. When the guide 80 is not detected by the switch SW1 (NO at S102), the process proceeds to S104.
At S104, the printer 1 determines whether the guide 80 is detected by the switch SW2. When the guide 80 is detected by the switch SW2 (YES at S104), the process proceeds to S108. When the guide 80 is not detected by the switch SW2 (NO at S104), the process proceeds to S106.
At S106, the printer 1 determines whether the recording medium is detected by the switch SW3. When the recording medium is detected by the switch SW3 (YES at S106), the process proceeds to S122 where the printer 1 determines that the recording medium has the width L1 and performs a control process corresponding to the recording medium with the width L1. When the recording medium is not detected by the switch SW3 (NO at S106), the process proceeds to S124 where the printer 1 determines that the recording medium has the width L2 and performs a control process corresponding to the recording medium with the width L2.
At S108, the printer 1 determines whether the recording medium is detected by the switch SW3. When the recording medium is detected by the switch SW3 (YES at S108), the process proceeds to S130 where the printer 1 determines that the recording medium has the width L5 and performs a control process corresponding to the recording medium with the width L5. When the recording medium is not detected by the switch SW3 (NO at S108), the process proceeds to to S132 where the printer 1 determines that the recording medium has the width L6 and performs a control process corresponding to the recording medium with the width L6.
At S110, the printer 1 determines whether the recording medium is detected by the switch SW3. When the recording medium is detected by the switch SW3 (YES at S110), the process proceeds to S126 where the printer 1 determines that the recording medium has the width L3 and performs a control process corresponding to the recording medium with the width L3. When the recording medium is not detected by the switch SW3 (NO at S110), the process proceeds to S128 where the printer 1 determines that the recording medium has the width L4 and performs a control process corresponding to the recording medium with the width L4.
When a narrow recording medium is used and a platen roller and a head directly contact each other, the motor may become out of sync due to high friction between the platen roller and the head and insufficient torque of the motor and as a result, printing quality may be reduced. Detecting the width of a recording medium makes it possible to perform printing at a paper feed speed that is optimum for the width of the recording medium and thereby improve the printing quality. Also, with the configuration where a printer detects the width of a recording medium and controls printing, it is not necessary for a host to transmit blank data for an area where the recording medium is not present and to change the paper setting.
An embodiment of the present invention is described above. However, the present invention is not limited to the above-described embodiment.
Number | Date | Country | Kind |
---|---|---|---|
2018-201488 | Oct 2018 | JP | national |