Printer

By using sensors in the printer to detect the width of the web and automatically set it, the problem of wrong roll width setting in the prior art is solved, the performance and quality of the printer are improved, and the contact failure is avoided.

CN118927832APending Publication Date: 2024-11-12TOSHIBA TEC KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410307100.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-12
Filing Date
2024-03-18
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Existing printers are prone to input errors when setting the web width, resulting in problems such as lower printing quality and low web residual, and users need to operate manually, making errors prone.

Method used

A printer is designed, equipped with a guide member and a detection part in the box of the roll paper. The position of the guide is detected by multiple sensors. The processor automatically determines the width of the roll paper and moves the guide member through the support shaft to Automatically set width.

Benefits of technology

It realizes automatic and accurate setting of the width of the web, reduces human errors, improves the performance and printing quality of the printer, and avoids poor contact failures caused by repeated use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118927832A_ABST
    Figure CN118927832A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a printer which forms an image on a roll paper and provides a technology capable of correctly setting a paper width. The printer (1) is provided with: a case (10) for accommodating roll paper; a pair of guides (40) which are provided inside the case (10), are each configured so as to be movable in the width direction of the roll paper, and are separated from each other in the width direction so as to hold the roll paper therebetween; sensors (121-124) that detect the position of each of the pair of guides (40); and a processor that determines the width of the roll paper on the basis of the detection results of the sensors (121-124).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority from Japanese patent application filed on May 12, 2023, with application number JP2023-079633, and cites the contents of the above application, the disclosure of which is hereby incorporated by reference in its entirety. Technical Field

[0002] An embodiment of the present invention relates to a printer. Background Art

[0003] Conventionally, in printers that form images on roll paper such as ordinary paper or thermal paper, the movement of the roll paper in the width direction is restricted by a paper guide. Therefore, when the roll paper is set in the printer, the user manually moves the paper guide after placing the roll paper in the printer. After the movement, the user manually sets the width of the set roll paper in the printer.

[0004] Such manual paper width setting by the user may result in input errors, etc. If the paper width is set incorrectly, the printer may not be able to perform its original performance, the reduction in print quality may not be detected, and the remaining amount of roll paper may be low. Summary of the invention

[0005] In view of the above problems, an object of the present invention is to provide a printer capable of accurately setting the paper width.

[0006] To solve the above-mentioned problem, in one embodiment, a printer for forming an image on roll paper comprises: a box for accommodating the roll paper; a pair of guides, which are arranged in the box and are respectively configured to be able to move along the width direction of the roll paper, and the pair of guides are separated from each other in the width direction to hold the roll paper therebetween; a detection unit, which detects the respective positions of the pair of guides; and a processor, which determines the width of the roll paper based on the detection result of the detection unit.

[0007] According to the above printer, the width of the roll paper can be automatically determined by moving the pair of guides.

[0008] In the above-mentioned printer, the detection unit has a plurality of sensors, and when any one of the pair of guides approaches, the detection unit detects the approaching guide, and the plurality of sensors are arranged separately from each other in the width direction. The processor obtains detection signals from the sensor that detects one of the pair of guides and the sensor that detects the other guide as detection results, respectively, to determine the width of the roll paper.

[0009] According to the above printer, the width of the roll paper can be determined using a plurality of sensors.

[0010] In the above printer, the processor has correspondence information in which the plurality of sensor combinations correspond to the width of the roll paper to be set, and determines the width of the roll paper based on the correspondence information and the detection result.

[0011] According to the above-mentioned printer, the width of the roll paper can be determined based on the combination of sensors.

[0012] In the above-mentioned printer, the processor further determines whether the roll paper is configured close to one of the one side and the other side in the width direction based on the corresponding information and the detection result, and sets the image formation range corresponding to the side close to the above-mentioned roll paper when it is determined that the roll paper is configured close to one of the one side and the other side in the width direction.

[0013] According to the above-described printer, the image forming range can be set by placing the roll paper in either the left or right direction.

[0014] The above printer further includes a support shaft that is provided in the housing, extends in the width direction, and pivotally supports each of the pair of guides so as to be movable and rotatable.

[0015] According to the above-described printer, the guide member can be moved and rotated by the support shaft.

[0016] In the above printer, the sensor is a non-contact sensor.

[0017] According to the above-mentioned printer, it is possible to prevent poor contact failure caused by repeated use.

[0018] In the above printer, the processor determines the width of the roll paper and stores information on the width of the roll paper in the storage device.

[0019] According to the above-described printer, the width of the roll paper can be stored in the storage device.

[0020] In the above-mentioned printer, the processor determines at a prescribed period whether detection signals from a sensor that detects one guide of the pair of guides and a sensor that detects the other guide are obtained as detection results, respectively. If it is determined that detection signals are not obtained from the two sensors as detection results, the information on the width of the roll paper stored in the storage device is deleted.

[0021] According to the above-described printer, the information on the roll paper width can be deleted by the operation of the guide.

[0022] In the above printer, the sensor includes a first sensor and a second sensor for detecting one guide of the pair of guides, and a third sensor and a fourth sensor for detecting the other guide.

[0023] According to the above printer, the widths of a plurality of roll papers having different widths can be set using four sensors.

[0024] In the above-mentioned printer, the distance between the first sensor and the fourth sensor is the distance for maintaining a roll paper of a first width using a pair of guides, the distance between the second sensor and the third sensor is the distance for maintaining a roll paper of a second width using a pair of guides, and the distance between the first sensor and the third sensor and the distance between the second sensor and the fourth sensor are the distances for maintaining a roll paper of a third width using a pair of guides.

[0025] According to the above-mentioned printer, three widths of the roll paper can be set. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a schematic perspective view showing a printer according to the embodiment.

[0027] Figure 2 1 is a perspective view showing the printer of the embodiment with the cover opened.

[0028] Figure 3 It is a top view showing the printer of the embodiment.

[0029] Figure 4 It is a diagram for explaining the paper guide in a holding state according to the embodiment.

[0030] Figure 5 It is a diagram for explaining the paper guide in a moving state according to the embodiment.

[0031] Figure 6 It is a diagram for explaining the movement and fixed position of a pair of paper guides in the embodiment.

[0032] Figure 7 This is a perspective view showing the printer of the embodiment in a state where a pair of paper guides are narrowed.

[0033] Figure 8 This is a plan view showing a printer according to an embodiment in which a roll paper is set in a state where a pair of paper guides are narrowed.

[0034] Fig. 9 yes Figure 8 AA line cross-section diagram.

[0035] Fig.10 It is a block diagram showing the configuration of a control system of the printer of the embodiment.

[0036] Fig.11 This is a flowchart showing the operation of the paper setting process according to the embodiment.

[0037] Description of Reference Numerals

[0038] 1 printer; 10 housing; 40 a pair of paper guides (guides); 81 MPU (processor); 120 to 124 sensors (detection unit); 140 support shaft; R roll paper. DETAILED DESCRIPTION

[0039] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In each of the drawings, the same components are denoted by the same reference numerals.

[0040] (Printer Structure)

[0041] The structure of the printer of this embodiment is described. Figure 1 It is a perspective view showing the printer of this embodiment. Figure 2 This is a perspective view showing the printer of this embodiment with the cover opened. Figure 3 FIG. 1 is a top view of the printer of this embodiment. Figure 3 In the figure, the cover 20 is omitted for illustration.

[0042] Figure 1 to Figure 3 The printer 1 of the present embodiment shown is a thermal printer that uses continuous paper such as direct coloring paper such as thermal paper to print by direct thermal recording printing. The printer 1 is, for example, a receipt printer. The printer 1 includes a housing 10 that accommodates a roll of continuous paper R wound into a roll shape, and a cover 20 that can be opened and closed relative to the housing 10. An outlet 30 for discharging the continuous paper is formed on the upper surface of the housing 10 and the cover 20. It should be noted that the printer 1 is a receipt printer. Figure 1 The obliquely lower left side of the printer 1 in the figure is referred to as the front of the printer 1 , and the opposite side is referred to as the rear, which will be described later.

[0043] The housing 10 is formed into a substantially box-shaped storage space for storing the roll paper R. The front side of the housing 10 protrudes upward compared to the rear side, and this portion forms a part of the upper surface of the printer 1. A pair of plate-shaped paper guides 40 are provided in the storage space of the housing 10. Figure 2 , only one of the pair of paper guides 40 is shown. The pair of paper guides 40 holds the roll paper R therebetween. The pair of paper guides 40 will be described in detail later.

[0044] The cover 20 is formed to cover the rear upper surface of the box 10. The cover 20 is provided at one end thereof with a pair of support shafts (not shown) rotatably supported in the box 10. The cover 20 is rotated about the pair of support shafts to open and close the storage space of the box 10.

[0045] The discharge port 30 is formed in the range of the upper surface of the housing 10 and the front of the cover 20. Specifically, it is formed by a cutout portion formed on the rear side of the upper surface of the housing 10 and a cutout portion formed on the front side of the upper surface of the cover 20. The discharge port 30 is formed as a concave portion by being recessed downward. Below the discharge port 30, the pressure roller 50 is rotatably mounted on the cover 20.

[0046] The pressing roller 50 is used to press the continuous paper against the print head 60 (see Fig.10 ) is rotatably supported on a shaft at a position opposite to the print head 60. The pressure roller 50 is driven by a pressure plate motor 51 (see Fig.10 ) is driven and rotated to transport the continuous paper unwound from the roll paper R so as to be discharged from the discharge port 30.

[0047] The print head 60 is disposed below the discharge port 30 and has a plurality of heating elements adjacent to each other in the width direction of the continuous paper. The print head 60 generates heat according to the pulse waves input from the plurality of heating elements, thereby forming an image on the continuous paper. The continuous paper formed with an image by the print head 60 and discharged from the discharge port 30 is cut off by a cutting unit 70 (see FIG. 1 ) disposed downstream of the pressure roller 50 and the print head 60 in the conveying direction of the continuous paper. Fig.10 ) cut off.

[0048] The cutting unit 70 has a fixed blade and a movable blade, and the movable blade is moved forward and backward toward the fixed blade by a driving device such as a motor or solenoid (not shown). The continuous paper between the fixed blade and the movable blade is cut by the moving blade forward and backward toward the fixed blade. Through this cutting, the user can obtain the cut continuous paper from the discharge port 30.

[0049] Hereinafter, the pair of paper guides 40 will be described in detail. Figure 4 It is a schematic side view showing the paper guide in the holding state according to the present embodiment. Figure 5 It is a schematic side view showing the paper guide in the moving state according to the present embodiment. Figure 6 It is a diagram for explaining the movement and fixed position of a pair of paper guides in this embodiment. Figure 7 This is a perspective view showing the printer of the embodiment in a state where a pair of paper guides are narrowed. Figure 8 This is a top view showing the printer of this embodiment in which a roll paper is set in a state where a pair of paper guides are narrowed. Fig. 9 yes Figure 8AA line cross-section diagram. It should be noted that Figure 4 , Figure 5 In the figure, the left side represents the front side of the printer 1. Figure 6 4 is a top view schematically showing a pair of paper guides 40. Figure 8 In the figure, the cover 20 is omitted in the description.

[0050] like Figure 3 As shown, the pair of paper guides 40 approach or abut against the end surface of the roll paper R in the width direction (left-right direction) when the roll paper R is set in the storage space. By approaching or abutting, the pair of paper guides 40 hold the roll paper R between them, thereby limiting the movement in the left-right direction. The pair of paper guides 40 are respectively configured as plate-like members having the same shape and the same function extending in the front-to-back direction in the storage space of the box body 10. The pair of paper guides 40 extend in the front-to-back direction, thereby not only the roll paper R but also the continuous paper unwound from the roll paper R can be held between them.

[0051] like Figure 4 As shown, the paper guide 40 has the following shape: the front side is tapered in a manner that bends inwardly in a roughly claw-like manner, and the rear side expands in the up-down direction to correspond to the shape of the storage space of the box body 10, especially the bottom wall. In other words, the paper guide 40 is formed to be able to evenly abut the bottom surface of the storage space of the box body 10. It should be noted that in order to avoid the damper for continuous paper provided in the box body 10, the front end portion of the paper guide 40 is formed roughly in a claw shape. In other words, a pair of paper guides 40 can limit the movement of continuous paper in the left-right direction near the damper by reaching near the damper. As shown Figure 4 As shown, the pair of paper guides 40 are in a state of being in contact with the bottom surface of the storage space, respectively, and are in a holding state of holding the roll paper R therebetween.

[0052] A protruding piece 402 protruding rearward is formed at the lower rear portion of the paper guide 40. Figure 4 In the holding state shown, the sensor 120 is inserted into the detection space of the sensor 120 provided in the receiving space of the box body 10. The sensor 120 will be described in detail later.

[0053] The rear upper portion of the paper guide 40 protrudes upward, and an insertion hole 401 is formed at the front end thereof. Figure 3 The support shaft 140 provided in the receiving space of the housing 10 in the left-right direction is inserted into the insertion hole 401. By inserting the support shaft 140 into the insertion hole 401, the paper guide 40 is rotatably supported relative to the support shaft 140. Figure 5As shown, the paper guide 40 can rotate upward about the support shaft 140. The paper guide 40 can be easily rotated by, for example, a user holding the front end portion thereof and lifting it upward.

[0054] The paper guide 40 rotates upward, and thereby the protruding piece 402 escapes from the detection space of the sensor 120. In this upward rotation, the paper guide 40 is in a moving state in a state where the protruding piece 402 escapes from the sensor 120. The pair of paper guides 40 in the moving state can move relative to each other in the left-right direction along the support shaft 140 while contacting and separating with each other.

[0055] The sensor 120 is a non-contact sensor having a light-emitting portion and a light-receiving portion separated in the left-right direction and formed in a C-shaped plan view. The space between the light-emitting portion and the light-receiving portion becomes the above-mentioned detection space. When the protruding piece 402 is inserted between the light-emitting portion and the light-receiving portion, the sensor 120 sends a detection signal as a detection result to the MPU (MicroProcessing Unit) 81 (see Fig.10 As such a non-contact sensor, a photo interrupter, a reflector type photoelectric sensor, etc. can be cited. It should be noted that a contact type sensor such as a contact displacement sensor can also be used. However, considering the possibility of failure due to repeated contact, it is preferred to use a non-contact sensor.

[0056] In the present embodiment, four sensors 120 are provided in a manner that they are aligned in the left-right direction and spaced apart from each other. Figure 6 Reference numerals 121 to 124 shown in the figure indicate sensors 120 at different positions. When the positions of the sensors are distinguished, they are referred to as sensors 121 to 124, and when they are not distinguished, they are referred to as sensor 120, as will be described later. Figure 6 As shown, in this embodiment, one of the pair of paper guides 40 can be moved and positioned at any one of the sensor 121 (first sensor) and the sensor 122 (second sensor). In addition, the other of the pair of paper guides 40 can be moved and positioned at any one of the sensor 123 (third sensor) and the sensor 124 (fourth sensor). That is, the sensor 120 includes the sensor 121 and the sensor 122 for detecting one of the pair of guides, and the sensor 123 and the sensor 124 for detecting the other guide.

[0057] like Figure 6As shown, on the bottom surface of the storage space on the front side of the sensor 122, a pair of card slots 101, 102 are arranged in a manner arranged in the front-to-back direction. The card slot 101 is located behind the card slot 102 (on the sensor 120 side) and is formed longer in the front-to-back direction. The pair of card slots 101, 102 are also correspondingly arranged in front of each of the sensors 121, 123, and 124. Therefore, a total of 4 pairs of card slots 101, 102 are formed on the bottom surface of the storage space. In the holding state where the protruding piece 402 is inserted into the sensor 120 located directly behind, a part of the paper guide 40 is separately inserted into the pair of card slots 101, 102. As a result, a pair of card slots 101, 102 and one paper guide 40 are respectively engaged. Through this engagement, the movement of the paper guide 40 in at least the left and right directions is restricted, and the holding state can be well maintained. In the present embodiment, the protruding piece 402 is formed in Figure 4 and Figure 5 The protrusion 403 at the bottom of the guide member 40 is engaged with the slot 101 , and the protrusion 404 is engaged with the slot 102 .

[0058] The separation distance between the sensors 121 to 124 corresponds to the different types of roll paper R with different widths used in the printer 1. That is, when the protruding piece 402 is inserted into any two of the sensors 121 to 124 to be in a holding state, the pair of paper guides 40 can hold the roll paper R corresponding to the separation distance between the two sensors.

[0059] For example, the separation distance between the sensor 121 and the sensor 124 is set to a distance that allows the roll paper R of 80 mm width (first width) to be held between the pair of paper guides 40. The separation distance between the sensor 122 and the sensor 123 is set to a distance that allows the roll paper R of 40 mm width (second width) to be held between the pair of paper guides 40. The separation distance between the sensor 121 and the sensor 123 and the separation distance between the sensor 122 and the sensor 124 are respectively set to a distance that allows the roll paper R of 58 mm width (third width) to be held between the pair of paper guides 40. That is, the distance between the first sensor and the fourth sensor is a distance that allows the pair of guides to hold the roll paper of the first width, the distance between the second sensor and the third sensor is a distance that allows the pair of guides to hold the roll paper of the second width, and the distance between the first sensor and the third sensor and the distance between the second sensor and the fourth sensor are distances that allow the pair of guides to hold the roll paper of the third width. With such settings, in the printer 1 of this embodiment, the four sensors 121 to 124 can hold the roll paper R of three different widths by the pair of paper guides 40 .

[0060] Figure 7 to Figure 9 As an example, a pair of paper guides 40 are shown in a holding state where they are positioned at the sensors 122 and 124. Figure 2 and Figure 3 1 and 2 represent a state where a pair of paper guides 40 are positioned at the sensor 121 and the sensor 124. Figure 8 and Fig. 9 The roll paper R shown has a width of 58 mm. Figure 2 and Figure 3 The roll paper R shown has a width of 80 mm. Figure 2 , Figure 3 , Figure 8 It can be seen that both the roll paper R with a width of 58 mm and the roll paper R with a width of 80 mm are reliably held by the pair of paper guides 40. Figure 7 In the illustration, the paper guide 40 positioned at the sensor 124 is omitted.

[0061] In addition, if Fig. 9 As shown, the pair of paper guides 40 are formed in a shape that the substantially central portion in the front-rear direction thereof is recessed downward. By forming in this way, the pair of paper guides 40 can hold the roll paper R in a manner that covers both end surfaces below the roll paper R. Therefore, the user can hold both end surfaces above the roll paper R and can easily place the roll paper R in the storage space of the box 10.

[0062] (Structure and operation of control system)

[0063] The configuration and operation of the control system of the printer of this embodiment will be described. Fig.10 This is a block diagram showing the structure of a control system of the printer of this embodiment.

[0064] like Fig.10 As shown, the printer 1 includes a RAM (Random Access Memory) 82 , a ROM (Read Only Memory) 83 , and a communication I / F (InterFace) 84 in addition to the MPU 81 , the platen motor 51 , the print head 60 , the cutting unit 70 , and the four sensors 120 (sensors 121 to 124 ).

[0065] The communication I / F 84 communicates with the upper device of the printer 1. The MPU 81 cooperates with the RAM 82 to control the platen motor 51, the print head 60, and the cutting unit 70. Through this control, the MPU 81 forms an image received from the upper device via the communication I / F 84 on the continuous paper, and cuts the continuous paper after conveying a predetermined amount of continuous paper.

[0066] In addition, MPU81 obtains detection signals from any two of the four sensors 120, and performs paper width setting processing for automatically setting the width of the roll paper R based on the obtained detection signals. It should be noted that MPU81 can determine from which sensor the detection signal is obtained. The detection signal may also include information inherently representing the sensor. ROM83 stores programs and data for processing by MPU81. In particular, in this embodiment, a paper width determination table is stored. The details of the paper width determination table are described later.

[0067] (How to set up roll paper R)

[0068] When setting the roll paper R in the above-mentioned printer 1, the user first opens the cover 20 and moves the pair of paper guides 40 in the housing 10 to match the width of the roll paper R to be set. Specifically, one of the pair of paper guides 40 is moved from the holding state to the moving state. After the transfer, the user positions one paper guide 40 on any one of the four sensors 121 to 124 and rotates it downward so as to insert the protrusion 402 into the any one sensor. The user further rotates one of the paper guides 40 downward, inserts the protrusions 402 and 403 into the pair of slots 101 and 102 located in front of the sensor, and engages them.

[0069] By this engagement, one of the paper guides 40 is in the holding state. Then, if necessary, the user also moves the other paper guide 40 from the holding state to the moving state, and positions it at any one of the four sensors 121 to 124 to be in the holding state. When the pair of paper guides 40 are respectively in the holding state, the printer 1 of this embodiment automatically determines the width of the roll paper R through the paper width setting process. After the pair of paper guides 40 are respectively in the holding state, the user sets the roll paper R between the pair of paper guides 40.

[0070] (Paper width setting process)

[0071] The paper width setting process is described. Fig.11 1 is a flowchart showing the paper width setting process of this embodiment. It should be noted that after the power is turned on, the paper width setting process is executed at a predetermined period. Fig.11 Processing shown.

[0072] like Fig.11As shown, the MPU 81 first determines whether detection signals are obtained from two of the four sensors 121 to 124 as a detection result at a predetermined cycle (S101). In other words, it is determined whether detection signals from the sensor that detects one guide of a pair of guides and the sensor that detects the other guide are respectively obtained as detection results. Based on this determination, it can be determined whether the pair of paper guides 40 is in a holding state where they are located in any one of the four sensors 121 to 124. When it is determined that detection signals are obtained from two sensors as a detection result (S101, Yes), the MPU 81 determines whether the information on the width of the roll paper R of the printer 1 has been initialized (S102).

[0073] When initialization is completed (S102, Yes), the MPU 81 reads the paper width determination table from the ROM 83 (S103). After reading, the MPU 81 determines the width of the roll paper R based on the paper width determination table, and sets the width of the roll paper R used in the printer 1 (S104). Specifically, the MPU 81 stores the information of the width of the roll paper R in a storage device such as the RAM 82, and sets the printing range of the print head 60 according to the width. After setting, the paper width setting process of this cycle ends.

[0074] The paper width determination table is information obtained by matching the combination of the detection signals of the four sensors 121 to 124 with the width of the roll paper. For example, the width of the roll paper R of 80 mm corresponds to the combination of the sensor 121 and the sensor 124. Similarly, the width of the roll paper R of 40 mm corresponds to the combination of the sensor 122 and the sensor 123. In addition, the width of the roll paper R of 58 mm corresponds to the combination of the sensor 121 and the sensor 123 and the combination of the sensor 122 and the sensor 124. Therefore, by referring to the paper width determination table, the MPU 81 can determine the width of the roll paper R based on the obtained detection results.

[0075] It should be noted that in the combination of sensor 121 and sensor 123, the roll paper R is arranged in the storage space near the left side of the printer 1. Similarly, in the combination of sensor 122 and sensor 124, the roll paper R is arranged in the storage space near the right side of the printer 1. Therefore, it is preferred that in the paper width determination table, corresponding to the combination of sensors, there is also information indicating which side is close to in the left-right direction of the storage space. By associating this information with the combination of sensors, MPU81 can change the image formation range (printing range) by limiting the heating element of the print head 60 to control only one of the left and right directions. By changing the image formation range, the consumption of the print head 60 can be dispersed.

[0076] It should be noted that, in the process of step S101, when it is determined that the detection signals are not obtained from the two sensors as the detection result (S101, No), the MPU 81 initializes the information of the set width of the roll paper (S105). In other words, the information of the width of the roll paper stored in the storage device is deleted. When the detection signals are not obtained from the two sensors as the detection result, at least one of the pair of paper guides 40 is in a moving state. Therefore, the possibility that the width of the roll paper R is changed is very high. Therefore, the information of the set width of the roll paper is initialized to prepare for the setting of the width of the roll paper R after the next cycle.

[0077] If the initialization is not completed in step S102 (S102, No), the paper width setting process of this cycle ends. This is because the two detection signals acquired in the cycle before this cycle have not changed, that is, the width of the roll paper R has not changed.

[0078] According to the present embodiment described above, the width of the roll paper R can be automatically set by simply moving the pair of paper guides 40 and positioning them at the sensor 120. Therefore, it is possible to perform a correct setting compared to the case where a person manually sets the width of the roll paper R. In addition, when a person manually sets the width of the roll paper R, it takes a considerable amount of time, but according to the present embodiment, the setting can be completed in a very short time. Furthermore, since the pair of paper guides 40 are configured to be movable relative to each other, it is possible to cope with roll paper R of various widths. In addition, depending on the width, the roll paper R can be selectively held close to a certain direction in the left and right directions.

[0079] It should be noted that, in the above-described embodiment, four sensors 120 are provided, but the present invention is not limited thereto. At least two widths of roll paper R may be provided, and three or more sensors 120 may be provided. RAM 82 is used as a storage device, but information on the width of the roll paper may also be stored in a storage device external to the printer.

[0080] In addition, in the above-mentioned paper width setting process, it is described that when any one of the pair of paper guides 40 is in the moving state, the information on the width of the roll paper R is initialized. However, it is also possible to determine whether the output sources of the two detection signals obtained are the same as the output sources of the detection signals obtained in the previous cycle without initialization. In this case, if they are the same, the paper width setting process in the current cycle ends, and if they are different, the process is transferred to step S103, and the information on the width of the roll paper R is updated in step S104.

[0081] In addition, in this embodiment, the printer 1 is described as printing by direct thermal recording printing, but printing can also be performed by other methods. In addition, the roll paper R does not need to be thermal paper. The roll paper R can be continuous paper with multiple labels continuously pasted at intervals, etc., and can also have a backing paper.

[0082] The above describes the embodiments of the present invention, but the above embodiments are for illustration only and are not intended to limit the scope of the invention. The above new embodiments can be implemented in various other ways, and various omissions, substitutions, changes, and combinations can be made without departing from the gist of the invention. The above embodiments and their variations are included in the scope and gist of the invention, and are also included in the schemes recorded in the claims and their equivalents.

Claims

1. A printer for forming an image on a roll of paper, characterized in that: The printer has: A box for accommodating the roll paper; a pair of guides disposed in the box body and configured to be movable in the width direction of the roll paper, and the pair of guides are separated from each other in the width direction to hold the roll paper therebetween; a detection unit that detects a position of each of the pair of guide members; and A processor determines the width of the roll paper according to the detection result of the detection unit.

2. The printer according to claim 1, characterized in that: The detection unit includes a plurality of sensors, and when any one of the pair of guides approaches, detects the approaching guide. The plurality of sensors are arranged to be separated from each other in the width direction, The processor obtains detection signals from a sensor that detects one guide and a sensor that detects the other guide of the pair of guides as detection results, and determines the width of the roll paper.

3. The printer according to claim 2, characterized in that: The processor has correspondence information in which the plurality of sensor combinations correspond to the width of the roll paper to be set, and determines the width of the roll paper based on the correspondence information and the detection result.

4. The printer according to claim 2, characterized in that: Based on the corresponding information and the detection result, the processor further determines whether the roll paper is configured close to one side of the one side and the other side in the width direction, and sets the image formation range corresponding to the side close to the above-mentioned roll paper when it is determined that the roll paper is configured close to one side of the one side and the other side in the width direction.

5. The printer according to claim 1, characterized in that: A support shaft is further provided in the housing, extends in the width direction, and axially supports each of the pair of guides in a movable and rotatable manner.

6. The printer according to claim 2, characterized in that: The sensor is a contactless sensor.

7. The printer according to claim 3, characterized in that: The processor determines the width of the roll paper and stores information of the width of the roll paper in a storage device.

8. The printer according to claim 7, characterized in that: The processor determines at a specified period whether detection signals from a sensor that detects one of the pair of guides and a sensor that detects the other guide are obtained as detection results, and if it is determined that detection signals are not obtained from the two sensors as detection results, the processor deletes the information on the width of the roll paper stored in the storage device.

9. The printer according to claim 8, characterized in that: The sensor includes a first sensor and a second sensor for detecting one guide of a pair of guides, and a third sensor and a fourth sensor for detecting the other guide.

10. The printer according to claim 9, characterized in that: The distance between the first sensor and the fourth sensor is the distance for a roll paper of a first width maintained by a pair of guides, the distance between the second sensor and the third sensor is the distance for a roll paper of a second width maintained by a pair of guides, and the distance between the first sensor and the third sensor and the distance between the second sensor and the fourth sensor are the distance for a roll paper of a third width maintained by a pair of guides.