This application claims priority under 35 U.S.C. § 119 to Japanese Patent Application No. 2015-159838 filed on Aug. 13, 2015, and No. 2015-159845 filed on Aug. 13, 2015, the entire disclosure of which is expressly incorporated by reference herein.
The present disclosure relates to a printing device and a control method of a printing device.
Printing devices (recording paper width detection devices) that hold roll paper, have a paper guide (divider) that determines the position of recording paper having different widths, and detects the width of the roll paper by a sensor that detects the location of the paper guide, are known from the literature. See, for example, Publication of utility model application JP-U-04-077471.
By detecting the paper width based on the output value of the sensor at a specific timing, the printing device can suppress power consumption and detect the paper width efficiently. The printing device records a setting indicating the detected paper width in a configuration file, and executes the printing process based on the paper width setting. Due to the time lag between the timing when the paper width is detected based on the sensor output, and the timing when the paper guide is set, the paper width indicated by the setting and the paper width of the roll paper actually installed in the printing device may not match. Because the printing device runs the printing process based on this setting, printer mechanisms and printing results may be adversely affected due to the mismatching values if the printing process is executed when the paper width indicated by the stored setting and the paper width of the roll paper actually installed in the printing device do not match.
Printing devices such as this typically connect to an external device and print based on control commands received from the external device. A printing device thus connected to an external device may also detect the paper width based on sensor output and send information indicating the detected paper width to the external device at a specific timing. Based on this information, the external device then manages the paper width, and generates and sends control commands appropriate to the paper width to control printing by the printing device. However, the paper width indicated by the stored setting and the paper width managed by the external device may not match due to the time lag between the timing at which the information indicating the detected paper width is sent to the external device, and the timing when the paper guide is set. If the external device generates control commands, and the printing device executes the printing process, when these values do not match, printer mechanisms and printing results may again be adversely affected due to the mismatching values.
At least one embodiment of the present invention suppresses adverse effects resulting from a mismatch between the paper width indicated by the stored setting and the width of the roll paper actually stored in the printing device.
A printing device according to at least one embodiment of the invention is able to store roll paper, and has a print unit (print mechanism) configured to print on roll paper; a storage compartment configured to hold the roll paper; a paper guide that limits the position of the roll paper in the storage compartment; a paper guide sensor configured to detect the installation position of the paper guide; a memory unit (memory) configured to store a setting indicating the paper width of the roll paper; and a control unit (controller) configured to cause the print unit to print based on the setting stored by the memory unit, and when the installation position of the paper guide detected by the paper guide sensor when triggered by a specific event is the installation position corresponding to roll paper of a first paper width that is not the paper width indicated by the setting, change the setting to the value indicating the first paper width.
In a printing device according to another aspect of at least one embodiment of the invention, the control unit does not change the setting regardless of the value of the setting when the paper guide is not installed.
Thus comprised, problems resulting from a mismatch between the value of the paper width indicated by the setting and the value of the paper width of the roll paper installed in the printing device can be suppressed.
In at least one embodiment of the invention, the specific event is at least one of a reset command and startup when the power turns on.
Compared with a configuration in which the state of the paper guide is continuously monitored, this aspect of the invention enables efficiently detecting the state of the paper guide while suppressing power consumption.
The printing device of at least one embodiment of the invention can further preferably communicate with an external device; has an opening to the storage compartment through which the roll paper can be loaded; a cover that opens and closes the opening to the storage compartment; a cover sensor configured to detect the cover; and a communication unit (communicator) configured to communicate with the external device. The control unit changes the setting to a value indicating the first paper width, and controls the communication unit to report the updated setting to the external device, when the installation position of the paper guide detected by the paper guide sensor when triggered by the cover sensor detecting movement of the cover from the open position to the closed position is the installation position corresponding to roll paper of the first paper width that is not the paper width indicated by the setting.
A printing device thus comprised can suppress problems resulting from the value of the paper width indicated by the setting and the value of the paper width managed by the external device not matching, and the value of the paper width indicated by the setting and the value of the paper width of the roll paper actually stored in the printing device not matching.
In a printing device according to another aspect of at least one embodiment of the invention, when the installation position of the paper guide is the installation position corresponding to roll paper of a first paper width that is not the paper width indicated by the setting, the control unit changes the setting to a value indicating the first paper width, executes a reset, and then reports the new setting to the external device.
Thus comprised, the setting can be efficiently reported to the external device using a process that reports the updated setting to the external device in the initialization process executed after resetting.
In a printing device according to another aspect of at least one embodiment of the invention, the control unit reports a reset to the external device, and reports the value of the setting stored by the memory unit to the external device in response to a query from the external device.
Thus comprised, the printing device can reliably report the setting when an external device recognizing the reset requests the setting.
In a printing device according to another aspect of at least one embodiment of the invention, the paper width indicated by the setting is greater than the first paper width.
Thus comprised, problems resulting from the value of the paper width indicated by the setting and the value of the paper width of the roll paper installed in the printing device not matching do not occur.
In a printing device according to another aspect of at least one embodiment of the invention, the control unit enables changing the setting stored by the memory unit, and sends the setting changed to the value indicating the first paper width to the external device, depending on an instruction of a control command sent by the external device or the setting of a software switch or a hardware switch.
Thus comprised, the user can intentionally change the setting. The external device can also know the first paper width that is detected and set.
In a printing device according to another aspect of at least one embodiment of the invention, the paper guide sensor detects the installation position of the paper guide when the paper guide is engaged with an engaging part of the storage compartment; and when the paper guide is disposed in the storage compartment but not engaged with the engaging part, and the cover moves from the open position to the closed position, the cover is pushed and the paper guide engages the engaging part.
Thus comprised, moving the cover to the closed position engages the paper guide with the storage compartment, and if the value of the paper width of the roll paper actually installed differs from the value of the setting when the cover is closed, eliminates the mismatch is eliminated.
A printing device according to another aspect of at least one embodiment of the invention preferably also has a conveyance unit (conveyer) that holds and conveys the roll paper between a thermal head and a platen roller; the control unit increasing the torque of a motor that drive the platen roller as the paper width indicated by the setting decreases.
Thus comprised, problems caused by increasing the torque of the motor that drives the platen roller as the paper width indicated by the setting decreases due to a mismatch between the value of the paper width indicated by the setting and the value of the paper width of the roll paper installed in the printing device can be suppressed.
Further preferably, when causing the print unit to print a string, the printing device changes the number of character columns on one line according to the paper width indicated by the setting.
Thus comprised, problems resulting from changing the number of character columns per line appropriately to the paper width indicated by the paper width setting due to a mismatch between the value of the paper width indicated by the setting and the value of the paper width of the roll paper stored in the printing device can be suppressed.
Another aspect of at least one embodiment of the invention is a control method of a printing device able to store roll paper and having a print unit configured to print on roll paper, a storage compartment configured to hold the roll paper, a paper guide that limits the position of the roll paper in the storage compartment, a paper guide sensor configured to detect the installation position of the paper guide, and a memory unit configured to store a setting indicating the paper width of the roll paper; the control method changes the setting to a value indicating a first paper width that is not the paper width indicated by the setting when the installation position of the paper guide detected by the paper guide sensor when triggered by a specific event is the installation position corresponding to roll paper of the first paper width.
Thus comprised, problems resulting from a mismatch between the value of the paper width indicated by the setting and the value of the paper width of the roll paper installed in the printing device can be suppressed.
The control method of a printing device that can communicate with an external device, has an opening to the storage compartment through which the roll paper can be loaded, a cover that opens and closes the opening to the storage compartment, and a cover sensor that detects the cover in another aspect of at least one embodiment of the invention changes the setting to a value indicating the first paper width, and reports the updated setting to the external device, when the installation position of the paper guide detected by the paper guide sensor when triggered by the cover sensor detecting movement of the cover from the open position to the closed position is the installation position corresponding to roll paper of the first paper width that is not the paper width indicated by the setting.
This aspect of the invention can suppress problems resulting from the value of the paper width indicated by the setting and the value of the paper width managed by the external device not matching, and the value of the paper width indicated by the setting and the value of the paper width of the roll paper actually stored in the printing device not matching.
Other objects and attainments together with a fuller understanding of the invention will become apparent and appreciated by referring to the following description and claims taken in conjunction with the accompanying drawings.
A preferred embodiment of the present invention is described below with reference to the accompanying figures.
The printing device 1 stores roll paper R (
As shown in
A power switch 12 for turning the printing device 1 power on/off is disposed to the front 10a of the cabinet 10.
A paper exit 11 from which roll paper R stored in the paper compartment 20 (
A panel 13 is disposed behind the paper exit 11 on the right side of the top 10b of the cabinet 10. A pushbutton automatic feed switch 14 for commanding the conveying of the roll paper R is disposed on the panel 13. The roll paper R is automatically conveyed in the conveyance direction H1 (
A lever 16 for opening the cover 18 is disposed in front of the panel 13. Depressing the lever 16 when the cover 18 is closed allows the cover 18 to move from closed to the open position.
The cover 18 is a member that opens and closes the opening 22 (
As shown in
As shown in
The platen roller 23 is a roller that conveys the roll paper R. The platen roller 23 turns in a specific direction with the roll paper R held between the platen roller 23 and the thermal head 24, and conveys the roll paper R in the conveyance direction H1 as it turns. Conveyance of the roll paper R by the platen roller 23 and thermal head 24 is described further below.
The thermal head 24 can be a thermal printhead disposed with multiple heat elements arrayed perpendicularly to the conveyance direction H1 of the roll paper R, and prints images on the roll paper R by the heat elements forming dots on the roll paper R, which is thermal paper.
As shown in
A control board populated with a CPU, memory, and other control circuits, a power supply unit, and other mechanisms and parts are disposed at the front inside the cabinet 10.
The printing device 1 in this embodiment is compatible with roll paper R with a width of 58 mm (first paper width) (referred to below as 58 mm roll paper R), and roll paper R with a width of 80 mm (second paper width) (referred to below as 80 mm roll paper R), and is configured to print on roll paper R of these two widths. Both 58 mm roll paper R and 80 mm roll paper R can be stored as the roll paper R in the paper compartment 20 of the printing device 1.
When 80 mm roll paper R is stored in the paper compartment 20, the paper guide 25 (described below) is removed from the paper compartment 20. When the paper guide 25 is removed and 80 mm roll paper R is stored in the paper compartment 20, the widthwise (left-right) position of the 80 mm roll paper R in the paper compartment 20 is determined by the left side wall 20r on the left side of the paper compartment 20, and the right side wall 20l on the right side. As a result, the roll paper R is prevented from shifting left and right while printing images on the roll paper R, and a resulting drop in print quality is prevented.
When 58 mm roll paper R is loaded in the paper compartment 20, the paper guide 25 is installed on the right side T1 inside the paper compartment 20.
When the paper guide 25 is installed and 58 mm roll paper R is stored in the paper compartment 20, the widthwise position of the 58 mm roll paper R in the paper compartment 20 is determined by the leftside wall 20r and the side 25a of the paper guide 25 that is opposite the leftside wall 20r when the paper guide 25 is installed in the paper compartment 20. As a result, the roll paper R is prevented from shifting left and right while printing images on the roll paper R, and a resulting drop in print quality is prevented.
The paper guide 25 is positioned on the right side T1 of the paper compartment 20 by engaging an engaging part disposed in the paper compartment 20.
More specifically, as shown in
A through-hole (not shown in the figure) through which the protrusion 26 can pass is disposed in the paper compartment 20 at a position corresponding to the location of the protrusion 26 when the paper guide 25 is set to the right side T1, an engaging channel (not shown in the figure) is disposed at a position corresponding to the location of the engaging claw 27 when the paper guide 25 is set to the right side T1. This through-hole and the engaging channel function as engaging parts in this example.
When the paper guide 25 is installed in the paper compartment 20, the protrusion 26 is first inserted to the through-hole in the paper compartment 20, and movement of the paper guide 25 left and right is thereby restricted. Next, with the protrusion 26 inserted to the through-hole in the paper compartment 20, the body of the paper guide 25 is rotated and pushed down pivoting on the protrusion 26. As the body of the paper guide 25 moves down, the claw part 27a of the engaging claw 27 contacts the edge of the engaging channel, causing the engaging claw 27 to elastically deform in the direction of arrow Y1 as the body of the paper guide 25 continues moving down, and the claw part 27a and the engaging channel engage elastically. By the claw part 27a engaging the engaging channel, the paper guide 25 is engaged with the engaging parts by the protrusion 26 and the engaging claw 27, vertical, longitudinal, and transverse movement of the paper guide 25 is restricted, and the paper guide 25 is positioned to the right side T1.
When the cover 18 is open, the paper guide 25 is disposed in the paper compartment 20 with the protrusion 26 inserted to the through-hole and the engaging claw 27 not engaged with the engaging channel (not engaged with the engaging part). This is the same position as when the user has intentionally disengaged the engaging claw 27 from the engaging channel, or the engaging claw 27 has been accidentally disengaged with the engaging channel as a result of impact to the printing device 1, such as the printing device 1 being dropped or another object striking the printing device 1.
When the paper guide 25 is thus disposed in the printing device 1 according to this embodiment and the cover 18 is moved from the open position to the closed position, the cover 18 and paper guide 25 contact as the cover 18 pivots, and the cover 18 pushes the paper guide 25 down and engages the engaging claw 27 with the engaging channel. In other words, even if the paper guide 25 is not fully engaged in position as described above, the paper guide 25 automatically engages the engaging part as a result of moving the cover 18 from the open position to the closed position.
Note that in the description below, the roll portion of the roll paper R installed in the paper compartment 20 is referred to as the paper roll, and the portion pulled and conveyed from the paper roll is the conveyed roll paper.
The conveyed roll paper is delivered and conveyed in the conveyance direction H1 from the paper roll stored in the paper compartment 20 of the printing device 1. As shown in
As shown in
As shown in
The control unit 40 comprises a CPU, ROM, RAM, and other peripheral circuits, and controls the printing device 1 by the CPU reading and running a control program, for example.
The print unit 41 has the thermal head 24 described above, a drive circuit that drives the thermal head 24, and other mechanisms related to printing on the roll paper R, and prints images on the roll paper R as controlled by the control unit 40.
The conveyance unit 42 includes the platen roller 23, a conveyance motor that drives the platen roller 23 rotationally, a motor driver that drives the conveyance motor, and other mechanisms related to conveying the roll paper R, and conveys the roll paper R as controlled by the control unit 40.
The memory unit 43 includes EEPROM or other nonvolatile memory, and stores data. The memory unit 43 stores a configuration file 431. The configuration file 431 is described further below.
The communication unit 44 includes a communication module appropriate to a specific communication protocol such as USB or RS-232C, and mechanisms related to communicating with an external device (host computer 2), and communicates according to a specific communication protocol as controlled by the control unit 40. Note that communication with the external device may be by wire or wireless.
The input unit 45 is connected to operating switches including the power switch 12 and automatic feed switch 14 described above, detects operation of the switches, and outputs to the control unit 40. Based on input from the input unit 45, the control unit 40 executes a process appropriate to the operation of the operating switch.
The paper guide sensor 46 is a mechanical sensor that outputs different detection values according to the installation status of the paper guide 25 in the paper compartment 20. Note that installation of the paper guide 25 to the paper compartment 20 means the paper guide 25 is engaged with the engaging part of the paper compartment 20.
Describing the paper guide sensor 46 more specifically, the paper guide sensor 46 has a protrusion that is urged up inside the engaging channel that is engaged by the engaging claw 27 of the paper guide 25 described above. When the engaging claw 27 of the paper guide 25 is engaged with the engaging channel of the paper compartment 20, this protrusion is pushed down by the engaging claw 27; the protrusion activates a mechanical switch to the electrical “on” position, and a signal indicating that the paper guide 25 is installed is output as the detection value from the paper guide sensor 46 to the control unit 40. When the engaging claw 27 of the paper guide 25 is not engaged in the engaging channel of the paper compartment 20, the protrusion is released from being depressed, and a signal indicating that the paper guide 25 is not installed is output as the detection value from the paper guide sensor 46 to the control unit 40. If multiple different widths of paper may be used, an engaging channel may be formed at the appropriate position for each different paper width, and multiple paper guide sensors 46 may be provided to detect the engaging claw 27 of the paper guide 25 installed to the engaging channel corresponding to the width of the paper.
Based on the detection value input from the paper guide sensor 46, the control unit 40 detects if the paper guide 25 is installed to the paper compartment 20.
The cover sensor 47 is a sensor that detects a different value according to whether the cover 18 is open or closed. The cover sensor 47 outputs a signal indicating that the cover 18 is open as the detection value to the control unit 40 if the cover 18 is open, and outputs a signal indicating that the cover 18 is closed as the detection value to the control unit 40 if the cover 18 is closed.
Based on the detection value input from the cover sensor 47, the control unit 40 detects whether the cover 18 is open or closed.
The cutter unit 48 has a movable knife (not shown), a cutter motor that drives the movable knife of the cutter unit 48, a motor driver that drives the cutter motor, and other mechanisms related to cutting the roll paper R, and cuts the roll paper R as controlled by the control unit 40.
The host computer 2 is a computer that sends control commands to the printing device 1 and controls the printing device 1. When the printing device 1 is used for printing receipts at a checkout counter, for example, the host computer 2 generates and sends to the printing device 1 control commands that instruct the printing of a receipt printed with information related to the transaction based on the transaction made at the checkout counter, causing the printing device 1 to print a receipt.
As shown in
The host control unit 50 comprises a CPU, ROM, RAM, and other peripheral circuits, and controls the host computer 2 by having the CPU read and running a control program, for example.
The host input unit 51 detects operation of operating switches disposed to the host computer 2 and input devices such as a keyboard connected to the host computer 2, and outputs to the control unit 40. The control unit 40 executes processes appropriate to the user operation based on input from the host input unit 51.
The host display unit 52 includes a display means such as an LCD panel or other display panel, and displays images on the display means as controlled by the host control unit 50.
The host memory unit 53 has nonvolatile memory and stores data.
The host communication unit 54 communicates with the printing device 1 according to a specific communication protocol as controlled by the host control unit 50.
The basic operation of the printing device 1 when printing images on the roll paper R is described next.
As shown in
Next, the host control unit 50 controls the host communication unit 54 to output the generated control commands to the printing device 1 (step SA2).
As shown in
Next, the control unit 40 references the configuration file 431 stored by the memory unit 43 (step SB2).
The configuration file 431 is a file that stores settings related to printing (such as a setting related to the print speed, or a setting related to the print density), a setting related to communication, and other settings related to the printing device 1. The control unit 40 executes processes based on the settings recorded in the configuration file 431.
In this embodiment, a value (referred to below as the paper width setting) indicating the width of the roll paper R is recorded in the configuration file 431 as a setting related to printing.
Based on the control command received in step SB1, the control unit 40 controls the print unit 41 to print an image on the roll paper R based on the setting recorded in the configuration file 431.
More specifically, the control unit 40 controls the print unit 41 to execute the following process based on the paper width setting recorded in the configuration file 431.
More specifically, if the paper width setting is a value indicating 58 mm, the control unit 40 sets the torque of the conveyance motor that drives the platen roller 23 higher when conveying the roll paper R than when the paper width is 80 mm. The reason for this is described next. When the width of the roll paper R is 58 mm, the area between the platen roller 23 and thermal head 24 where the roll paper R passes is smaller than when the paper width if 80 mm, and the area of direct contact between the platen roller 23 and thermal head 24 is greater. As a result, the friction on the platen roller 23 is greater when driving the platen roller 23 when the width of the roll paper R is 58 mm than when 80 mm.
As a result, the control unit 40 of the printing device 1 according to this embodiment sets the torque of the conveyance motor that drives the platen roller 23 to convey roll paper R when the paper width setting is 58 mm higher than when the paper width setting is 80 mm. Problems such as described below can therefore happen when the paper width setting indicates a paper width of 80 mm but the width of the roll paper R actually installed in the printing device 1 is 58 mm. Specifically, the torque required to convey the roll paper R at a specific speed cannot be achieved and print quality may drop. The load on the conveyance motor may also increase and the conveyance motor may lose synchronism. The conveyance motor may also lose speed and the print speed may decrease.
When printing text strings, the control unit 40 also changes where a new line and carriage return are inserted in the string based on the paper width indicated by the paper width setting. This is described further below.
A font table is previously stored in the memory unit 43. A font table is a table storing sets of font data (bitmap data, scalable font data, for example) for each character.
To print a string, the control unit 40 references the font table and retrieves the font data for each character in the string. The control command sent by the host computer 2 expresses the string to be printed by the character code of each character in the string, and based on information relationally storing the character codes and font data, the control unit 40 acquires the font data for each character in the string.
Next, the control unit 40 renders the font data for the string to be printed on one line in a buffer. When rendering the font data in the buffer, the control unit 40 adjusts the number of font data that can be rendered in the buffer based on the paper width setting recorded in the configuration file 431. For simplicity and brevity, if 10 characters (columns) can be printed on 58 mm roll paper R, then 15 characters (columns) can be printed on 80 mm roll paper R. In this example, when the paper width setting in the configuration file 431 indicates 58 mm, the control unit 40 sets 10 as the number of font data (characters) that can be rendered on one line in the buffer, and when the paper width setting indicates 80 mm, the control unit 40 sets 15 as the number of font data (characters) that can be rendered on one line in the buffer. If the string is 20 characters long and the paper width setting indicates 58 mm, the control unit 40 renders font data for ten characters in the buffer, prints those ten characters on one line based on the font data rendered in the buffer, then renders font data for the remaining ten characters in the buffer, and prints those ten characters on one line based on the font data rendered in the buffer.
As a result of this process, a new line and line feed are inserted at an appropriate position in the string based on the paper width, and information being lost by printing the string without a return is prevented. In other words, when the print unit 41 is controlled to print a string, the number of character columns printed on one line changes according to the paper width indicated by the paper width setting.
As described above, the control unit 40 of the printing device 1 according to this embodiment changes where a carriage return is inserted in a string based on the paper width indicated by the paper width setting when printing text strings. The following problems can therefore occur if the actual paper width of the roll paper R installed in the printing device 1 and the value of the paper width indicated by the paper width setting in the configuration file 431 do not match.
More specifically, if the paper width indicated by the paper width setting is 80 mm, and the paper width of the roll paper R actually installed in the printing device 1 is 58 mm, text will be printed outside the paper width, required carriage returns will not be inserted where needed, and information may therefore be lost. If the paper width indicated by the paper width setting is 58 mm, and the paper width of the roll paper R actually installed in the printing device 1 is 80 mm, line feeds will be inserted leaving excess white space, unnecessary returns will be inserted, and print quality may drop.
The default paper width setting recorded in the configuration file 431 is 80 mm. The paper width setting is therefore a value indicating 80 mm unless the paper width setting is changed based on the value detected by the paper guide sensor 46, the paper width setting is changed based on an instruction in a control command, or the paper width setting is changed based on an instruction asserted by operating a switch, as described below.
As described above, the printing device 1 in this example can store 58 mm roll paper or 80 mm roll paper as the roll paper R.
The user of the printing device 1 is previously informed by the supplier (such as the company that manufactures and sells the printing device 1) that provides the printing device 1 that the print quality of the printing device 1 is not assured under the following circumstances. Specifically, this happens when the printing device 1 is used as a device for printing on 58 mm roll paper, and the printing device 1 is then used as a device for printing on 80 mm roll paper. The reason for this is described below.
Specifically, when the printing device 1 is used for printing on 58 mm roll paper, the platen roller 23 and thermal head 24 deteriorate according to usage over time. The platen roller 23 is a roller that is long enough in the direction transversely to the conveyance direction H1 to convey 80 mm roll paper. Therefore, when conveying 58 mm roll paper, part of the platen roller 23 contacts the 58 mm roll paper and part of the platen roller 23 does not contact the roll paper, and these parts wear (age) differently over time. The thermal head 24 is a printhead having an array of heat elements long enough in the direction transversely to the conveyance direction H1 to form dots across 80 mm roll paper. When forming dots on 58 mm roll paper, there are parts of the platen roller 23 that are used and parts that are not used, and these parts wear (age) differently over time.
Based on the foregoing, when the printing device 1 is used as a printer for printing on 58 mm roll paper, and the printing device 1 is then used as a printer for printing on 80 mm roll paper, due to aging differences in different parts of the platen roller 23 and thermal head 24, conveyance of the roll paper R may become skewed, formation of dots on the roll paper R may not be consistent, and print quality may drop.
As a result, the user is previously informed that print quality is not assured when the printing device 1 is used as a device for printing on 80 mm roll paper after using the printing device 1 as a device for printing on 58 mm roll paper.
It is therefore anticipated that the user will continue using the printer as a device for printing on 58 mm roll paper after using the printing device 1 to print on 58 mm roll paper.
As described above, the paper guide 25 is installed in the paper compartment 20 when 58 mm roll paper is loaded in the printing device 1. The paper guide 25 is also installed by engaging it with the engaging part of the paper compartment 20 instead of fastening it with screws, welding, adhesion, or other means that makes removal from the paper compartment 20 difficult. As a result, the parts count is reduced, the production cost is reduced, and installing the paper guide 25 is simple. On the other hand, because the paper guide 25 is not fastened with screws, welding, adhesion, or other means that makes removal from the paper compartment 20 difficult, the engaging claw 27 may be accidentally disengaged with the engaging channel when the printing device 1 is dropped, when the printing device 1 is struck with another object, or when the printing device 1 is subject to some other type of physical shock.
The printing device 1 according to this embodiment executes a process for handling such incidents. The operation of the printing device 1 is described in conjunction with what can happen when such events occur.
Note that the flow chart in
As shown in
When the boot-up or reset process starts, the control unit 40 detects the status of the paper guide 25 (whether or not the paper guide 25 is installed) based on the detection value input from the paper guide sensor 46 (step SC2).
This embodiment of the invention thus detects the status of the paper guide 25 when triggered by the power turning on and the control unit 40 of the printing device 1 starting, or a reset (reboot) command asserted by a reset switch or reset signal when the power is already on. As a result, power consumption is reduced and detection is more efficient than when the status of the paper guide 25 is constantly monitored based on output from the paper guide sensor 46.
Next, the control unit 40 determines whether or not the paper guide 25 was installed based on the result from step SC2 (step SC3).
If the paper guide 25 was installed (step SC3: YES) and the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, the control unit 40 changes the paper width setting to 58 mm; if the paper width setting is a value indicating 58 mm, the control unit 40 does not change the paper width setting and paper width setting remains the value indicating 58 mm (step SC4). Next, the control unit 40 goes to step SC6.
As a result of step SC4, if the paper guide 25 is installed in the paper compartment 20, that is, if 58 mm roll paper is loaded in the paper compartment 20 and the printing device 1 is used as a device for printing on 58 mm roll paper, the paper width of the roll paper R actually stored in the printing device 1 and the value of the paper width setting recorded in the configuration file 431 are not different, and the specific problems described above will not occur due to a mismatch between these values.
However, if the paper guide 25 is not installed (step SC3: NO), the control unit 40 does not change the paper width setting regardless of the value of the paper width setting recorded in the configuration file 431 (step SC5). This state is therefore maintained when the paper width setting is a value indicating 58 mm. The control unit 40 then goes to step SC6.
The reason for the process of step SC5 is described below.
Specifically, the default paper width setting is 80 mm. Therefore, the paper width setting being a value indicating 58 mm means that the process of step SC4 executed previously and the paper width setting was changed based on output from the paper guide sensor 46, or the paper width setting was changed based on an instruction from a control command or operation of a switch as described below. Because print quality is not assured when the printing device 1 is used to print on 58 mm roll paper and is then changed to print on 80 mm roll paper as described above, if the printing device 1 is used as a printer for printing on 58 mm roll paper, it continues being used as a printer for printing on 58 mm roll paper.
Based on the foregoing, if the paper guide 25 is not installed and the paper width setting indicates a paper width of 58 mm, the engaging claw 27 may have been accidentally disengaged from the engaging channel because the printing device 1 was dropped, the printing device 1 was struck with another object, or the printing device 1 was subject to some other type of physical shock, and the printing device 1 then started or reset with the cover 18 open.
In this event, because the printing device 1 is used as a device for printing to 58 mm roll paper, the paper guide 25 is installed to the paper compartment 20 by the user, or the paper guide 25 is installed to the paper compartment 20 in conjunction with the cover 18 moving from the open to the closed position, before the printing process starts.
For this reason, the control unit 40 does not change the paper width setting in step SC5 regardless of the value of the paper width setting recorded in the configuration file 431 even if the paper guide 25 is not installed. In other words, if the paper guide 25 is not installed, the control unit 40 does not change the paper width setting even if the paper width setting is a value indicating 58 mm. As a result, differences between the paper width of the roll paper R actually installed in the printing device 1 and the value of the paper width setting recorded in the configuration file 431 can be suppressed, and the specific problems described above resulting from these values not matching can be suppressed.
In step SC6, the control unit 40 controls the communication unit 44 to send data reporting starting or resetting to the host computer 2.
As shown in
Next, based on the data received in step SD1, the host control unit 50 knows that the printing device 1 started or reset, and controls the host communication unit 54 to send to the printing device 1 data requesting a response indicating the paper width setting (the setting after being changed) recorded in the configuration file 431 of the printing device 1 (step SD2).
As shown in
Next, the control unit 40 references the configuration file 431 and acquires the paper width setting based on the data received in step SC7, and controls the communication unit 44 to send data including the acquired paper width setting to the host computer 2 (step SC8).
As shown in
As a result of the foregoing process, the value of the paper width setting recorded in the configuration file 431 of the printing device 1 and the value of the paper width setting stored in the specific storage area of the host computer 2 match.
Thereafter when generating control commands, the host control unit 50 generates control commands appropriate to the paper width indicated by the paper width setting stored in the specific storage area. For example, if image data is contained in the control command sent to the printing device 1, the host control unit 50 may process the image data appropriately to the paper width as required.
The process executed by the printing device 1 when the power turns on is described next.
As shown in
If movement of the cover 18 from the open position to the closed position was detected (step SE1: YES), the control unit 40 detects the status of the paper guide 25 based on the detection value input from the paper guide sensor 46 (step SE2).
Next, the control unit 40 determines whether the paper guide 25 was installed based on the result of step SE2 (step SE3).
If the paper guide 25 was not installed (step SE3: NO), the control unit 40 returns to step SE1. If the cover 18 is closed and the paper guide 25 is not installed, engagement of the paper guide 25 was not accidentally released. In this case this is because the paper guide 25 is automatically engaged with the engaging part in conjunction with the cover 18 moving from the open position to the closed position as described above. Therefore, if the cover 18 is closed and the paper guide 25 is not installed, the user has not intentionally installed the paper guide 25, and the user knows that the paper guide 25 is not installed. That the printing device 1 has been continuously used as a device for printing on 80 mm roll paper, and the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, is therefore assumed if the paper guide 25 was not installed when the cover 18 closed.
As a result, control goes to step SE1 without resetting if the paper guide 25 is determined in step SE3 to not be installed.
If the paper guide 25 is determined in step SE3 to be installed (step SE3: YES), the control unit 40 references the configuration file 431 to determine whether the paper width setting recorded in the configuration file 431 is a value indicating 80 mm (step SE4).
If the paper width setting recorded in the configuration file 431 is not a value indicating 80 mm (step SE4: NO), in other words, if paper width setting recorded in the configuration file 431 is a value indicating 58 mm, the control unit 40 returns to step SE1. This is because the value of the paper width of the roll paper R actually installed in the paper compartment 20, and the value of the paper width setting recorded in the configuration file 431, match.
However, if the paper width setting recorded in the configuration file 431 is not a value indicating 80 mm (step SE4: YES), the control unit 40 initiates a reset command (step SE5). If a reset is initiated in step SE5, the initialization process shown in
As described, if the control unit 40 determines based on the detection value from the paper guide sensor 46 that the paper guide 25 is installed, and the value of the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, the control unit 40 executes a reset, rewrites the paper width setting in the initialization process invoked by the reset, and reports the paper width setting to the host computer 2.
If the paper guide 25 is installed and the value of the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, to resolve the mismatch between the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the paper width setting, the paper width setting must be rewritten and the paper width setting reported to the host computer 2. However, if the paper guide 25 is not installed when the cover 18 closes, or if the paper guide 25 is installed and the value of the paper width setting indicates 58 mm, the value of the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the value of the paper width setting match, and there is no need to rewrite the paper width setting and report the paper width setting to the host computer 2.
Furthermore, because the control unit 40 executes a reset when the paper guide 25 is determined based on the detection value of the paper guide sensor 46 to be installed and the value of the paper width setting recorded in the configuration file 431 is determined to be a value indicating 80 mm, unnecessary resets can be prevented, downtime in which the printing device 1 cannot be used because a reset is in progress can be suppressed, and user convenience and satisfaction can be improved.
The paper width setting recorded in the configuration file 431 can be changed by the user, as described below.
For example, the user may change the value of the paper width setting recorded in the configuration file 431 by an instruction initiated by operating a memory switch (software switch). The software switch may be input to a specific user interface provided by a terminal on which a software tool for printing device 1 maintenance is installed. Further alternatively, the paper width setting could be set by pressing a paper feed switch using a specific combination of long and short pushes.
The user may also change the value of the paper width setting recorded in the configuration file 431 by operating (setting) a dedicated DIP switch (hardware switch) on a control board.
Yet further, the user may change the value of the paper width setting recorded in the configuration file 431 by sending a specific control command to the printing device 1 from an external device connected to the printing device 1. The external device may be the host computer 2, or a device other than the host computer 2 such as a terminal on which a software tool for printing device 1 maintenance is installed.
The user can thus intentionally change the value of the paper width setting recorded in the configuration file 431. As a result, when the printing device 1 has been used as a device for printing on 58 mm roll paper, and the printing device 1 is then repurposed as a printer for printing to 80 mm roll paper, the user can change the value of the paper width setting recorded in the configuration file 431 so there is not a mismatch between the value of the paper width of the roll paper R actually stored in the printing device 1 and the value of the paper width setting recorded in the configuration file 431.
As described above, the printing device 1 according to this embodiment has a print unit 41 for printing on roll paper R; a paper compartment 20 that stores roll paper R; and a paper guide 25 that is installed or not depending on the paper width of the roll paper R stored in the paper compartment 20, and restricts the position of the roll paper R in the paper compartment 20.
The printing device 1 also has a paper guide sensor 46 that outputs a different detection value depending on the status of the paper guide 25; a memory unit 43 that stores a paper width setting (configuration setting) indicating the paper width of the roll paper R; and a control unit 40 that causes the print unit 41 to print based on the paper width setting stored by the memory unit 43. The control unit 40 detects the state of the paper guide 25 based on the detection value of the paper guide sensor 46 when triggered by a start or reset (restart) operation. When the paper guide 25 is installed in the paper compartment 20 (a state corresponding to roll paper R of a first paper width), and the paper width setting is a value indicating 80 mm (second paper width) (a value indicating a paper width other than the first paper width), the control unit 40 changes the paper width setting to a value indicating 58 mm. If the paper guide 25 is not installed in the paper compartment 20 (a state corresponding to roll paper R of a paper width other than the first paper width), the control unit 40 does not change the setting regardless of the value of the paper width setting.
If the paper width setting is once changed to 58 mm and the printing device 1 then starts or resets (restarts), the paper width setting is not changed even if the status of the paper guide 25 is detected based on the detection value of the paper guide sensor 46, and the paper guide 25 is either not installed in the paper compartment 20 or is installed appropriately to another paper width (a state corresponding to roll paper R of a paper width other than the specific paper width).
This configuration prevents a mismatch between the value of the paper width of the roll paper R actually stored in the printing device 1 and the value of the paper width setting when the paper guide 25 is installed. In addition, if the paper guide 25 is accidentally released from engagement with the engaging part, the paper width setting being changed to a value indicating 80 mm before printing starts even though the paper guide 25 is installed, and a mismatch occurring between the value of the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the paper width setting, can be prevented. As a result, problems resulting from a mismatch between the value of the paper width indicated by the paper width setting, and the value of the paper width of the roll paper R stored in the printing device 1, can be suppressed.
The paper width setting stored by the memory unit 43 in this embodiment of the invention can also be changed by an instruction of a control command sent by an external device, or an instruction issued by operating a software switch or hardware switch.
Thus comprised, when the host computer 2 is used as a device for printing to 58 mm roll paper, and for some reason the printing device 1 is then used as a device for printing to 80 mm roll paper, the user can change the paper width setting recorded in the configuration file 431 and prevent a mismatch between the value of the paper width of the roll paper R actually stored in the printing device 1 and the value of the paper width setting recorded in the configuration file 431.
As described above, the printing device 1 according to this embodiment has a cover sensor 47 for detecting a detection value that differs according to whether the cover 18 is open or closed, and a communication unit 44 that communicates with a host computer 2 (external device). When movement of the cover 18 from the open position to the closed position is detected based on the detection value of the cover sensor 47, the control unit 40 detects the status of the paper guide 25 based on the detection value from the paper guide sensor 46. As a result, when the paper guide 25 is installed (a state corresponding to roll paper R of a first paper width) and the paper width setting is a value indicating 80 mm (a value indicating a paper width different from the first paper width), the control unit 40 runs a process changing the paper width setting to a value indicating 58 mm, and a process reporting the new paper width setting to the host computer 2.
Thus comprised, a mismatch between the value of the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the paper width setting when the paper guide 25 is installed can be prevented. Furthermore, because the new paper width setting is reported to the host computer 2, a mismatch between the value of the paper width setting and the value of the paper width setting managed by the host computer 2 can be prevented. In other words, problems resulting from a mismatch between the value of the paper width indicated by the paper width setting, and the value of the paper width managed by the host computer 2, and a mismatch between the value of the paper width indicated by the paper width setting and the value of the paper width of the roll paper R actually stored in the printing device 1, can be suppressed.
When the paper guide 25 is installed and the paper width setting is a value indicating 80 mm in this embodiment of the invention, the control unit 40 executes a reset, and in the initialization process accompanying the reset executes a process of changing the paper width setting to a value indicating 58 mm, and a process of reporting the new paper width setting to the host computer 2.
Thus comprised, the paper width setting can be efficiently reported to the host computer 2 by using the process of reporting the paper width setting to the host computer 2 in the initialization process accompanying the reset.
The preferred embodiment of the invention described above can be varied in many ways without departing from the scope of the accompanying claims as described below.
As shown in
If the cover 18 closed from the open position (step SF1: YES), the control unit 40 detects the state of the paper guide 25 (whether or not the paper guide 25 is installed) based on the detection value input from the paper guide sensor 46 (step SF2).
Next, the control unit 40 determines whether or not the paper guide 25 is installed based on the detection result from step SF2 (step SF3).
If the paper guide 25 is not installed (step SF3: NO), the control unit 40 returns to step SF1. If the cover 18 is closed and the paper guide 25 is determined to be not installed, engagement of the paper guide 25 has not been accidentally released. This is because, as described above, the paper guide 25 is automatically engaged with the engaging part in conjunction with the cover 18 moving from the open position to the closed position. Therefore, if the cover 18 is closed and the paper guide 25 is not detected as being installed, the user did not intentionally install the paper guide 25 and the user knows that the paper guide 25 is not installed. Therefore, if the paper guide 25 is not installed and the cover 18 is closed, it may be assumed that the printing device 1 is continuously used as a device for printing 80 mm roll paper and the paper width setting recorded in the configuration file 431 is a value indicating 80 mm.
As a result, when the paper guide 25 is determined in step SF3 to not be installed, a reset is not executed and control goes to step SF1.
When the paper guide 25 is determined in step SF3 to be installed (step SF3: YES), the control unit 40 references the configuration file 431 to determine if the paper width setting recorded in the configuration file 431 is a value indicating 80 mm (step SF4).
If the paper width setting recorded in the configuration file 431 is not a value indicating 80 mm (step SF4: NO), in other words, if paper width setting recorded in the configuration file 431 is a value indicating 58 mm, the control unit 40 returns to step SF1. This is because the value of the paper width of the roll paper R actually installed in the paper compartment 20, and the value of the paper width setting recorded in the configuration file 431, match.
However, if the paper width setting recorded in the configuration file 431 is a value indicating 80 mm (step SF4: YES), the control unit 40 changes the value of the paper width setting recorded in the configuration file 431 to a value indicating 58 mm (step SF5). As a result of step SF5, when the paper guide 25 is installed in the paper compartment 20, that is, when 58 mm roll paper is installed in the paper compartment 20 and the printing device 1 is used as a device for printing on 58 mm roll paper, the value of the paper width of the roll paper R actually stored in the printing device 1 and the value of the paper width setting recorded in the configuration file 431 will not differ, and the specific problems resulting from a mismatch between these values will not occur.
Next, the control unit 40 executes a software reset of the printing device 1 (step SF6). As will be understood below, when a reset is executed in step SF6, the updated (new) paper width setting is reported to the host computer 2 in the initialization process accompanying the reset. As a result, the value of the paper width setting recorded in the configuration file 431 of the printing device 1, and the value of the paper width setting recorded in the specific storage area of the host computer 2 (the paper width setting of the printing device 1 managed by the host computer 2), will match.
When the paper guide 25 is determined to be installed based on the detection value from the paper guide sensor 46, and the value of the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, the control unit 40 in this example rewrites the paper width setting, then executes a reset, and reports the paper width setting to the host computer 2.
When the paper guide 25 is installed and the value of the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, the value of the paper width setting must be rewritten, a reset executed, and the new paper width setting reported to the host computer 2 in order to resolve a mismatch between the value of the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the paper width setting. Because the value of the paper width of the roll paper R actually stored in the paper compartment 20 and the value of the paper width setting match when the cover 18 is closed and the paper guide 25 is not installed, and when the paper guide 25 is installed and the value of the paper width setting is a value indicating 58 mm, there is no need to rewrite the paper width setting, reset, and report the paper width setting to the host computer 2 in conjunction with the reset.
Furthermore, because the control unit 40 executes a reset when the paper guide 25 is determined to be installed based on the detection value of the paper guide sensor 46, and the value of the paper width setting recorded in the configuration file 431 is a value indicating 80 mm, unnecessary resets can be prevented, downtime in which the printing device 1 cannot be used because a reset is in progress can be suppressed, and user convenience and satisfaction can be improved.
Note that the flow chart in
As shown in
Next, the control unit 40 controls the communication unit 44 to send data reporting that a reset was executed to the host computer 2 (step SG2). The process of step SG2 may be initiated by sending a reset signal over a cable, for example.
As shown in
Next, the host control unit 50 knows that the printing device 1 executed a reset based on the data received in step SH1, and controls the host communication unit 54 to send to the printing device 1 data requesting the paper width setting recorded in the configuration file 431 of the printing device 1 (the new (updated) setting) in response (step SH2).
As shown in
Next, the control unit 40 references the configuration file 431 and acquires the paper width setting based on the data received in step SG3, and controls the communication unit 44 to send data including the acquired paper width setting to the host computer 2 (step SG4).
As shown in
As a result of this process, the value of the paper width setting recorded in the configuration file 431 in the printing device 1, and the value of the paper width setting stored in a specific storage area of host computer 2, match.
Thereafter when generating control commands, the host control unit 50 generates control commands appropriate to the paper width indicated by the paper width setting stored in the specific storage area. For example, if image data is contained in the control command sent to the printing device 1, the host control unit 50 may process the image data appropriately to the paper width as required.
As described above, the paper width setting recorded in the configuration file 431 can be changed by the user as described below. For example, the user may intentionally change the value of the paper width setting recorded in the configuration file 431 by an instruction asserted by operating a memory switch (software switch), by operating (setting) a DIP switch (hardware switch), or by sending a specific control command to the printing device 1 from an external device.
The printing device 1 according to the foregoing embodiment and examples has a thermal head 24, and a conveyance unit 42 that holds and conveys the roll paper R with the platen roller 23. The control unit 40 increases the torque of the motor that drives the platen roller 23 as the paper width indicated by the paper width setting decreases.
Thus comprised, problems resulting from increasing the torque of the motor that drives the platen roller 23 as the paper width indicated by the paper width setting decreases due to a mismatch between the value of the paper width indicated by the paper width setting and the value of the paper width of the roll paper R actually stored in the printing device 1 can be suppressed.
In the foregoing embodiment and examples, the control unit 40 changes where new lines are inserted according to the paper width indicated by the paper width setting when controlling the print unit 41 to print text strings.
Thus comprised, problems resulting from changing the number of character columns per line appropriately to the paper width indicated by the paper width setting due to a mismatch between the value of the paper width indicated by the paper width setting and the value of the paper width of the roll paper R stored in the printing device 1 can be suppressed.
In the foregoing embodiment and examples, the control unit 40 reports that a reset was executed to the host computer 2 during the initialization process, and reports the paper width setting to the host computer 2 in response to a query from the host computer 2 in response to the reset report.
Thus comprised, the printing device 1 can reliably report the paper width setting to the host computer 2.
In the foregoing embodiment and examples, the detection value output by the paper guide sensor 46 changes when the paper guide 25 is engaged with the engaging part of the paper compartment 20. If the paper guide 25 is installed in the paper compartment 20 without engaging the engaging part, and the cover 18 then moves from the open position to the closed position, the paper guide 25 automatically engages the engaging part in conjunction with movement of the cover 18.
Thus comprised, the paper guide 25 can be engaged with the paper compartment 20 by moving the cover 18 to the closed position, and if there is a mismatch between the value of the paper width of the roll paper R that is actually stored and the value of the paper width setting when the cover 18 is closed, closing the cover 18 resolves the mismatch.
The invention is described above with reference to a preferred embodiment thereof, but the invention is not limited thereto and can be modified and adapted in many ways without departing from the scope of the accompanying claims.
For example, different widths of roll paper R are positioned in the foregoing embodiment and examples by installing or not installing the paper guide 25. However, a configuration in which the position of the paper guide 25 can be changed to position roll paper R of different widths is also conceivable.
After two widths of roll paper R, 58 mm and 80 mm, can be used in the printing device 1 described in the foregoing embodiment and examples, the paper widths that can be used in the printing device 1 are not limited to two, and the paper widths are not limited to 58 mm and 80 mm.
The function blocks described above with reference to the figures can be embodied as desired by the cooperation of hardware and software. Hardware not described herein also can be used.
The invention being thus described, it will be apparent that it may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be apparent to one skilled in the art are intended to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2015-159838 | Aug 2015 | JP | national |
2015-159845 | Aug 2015 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
20060269348 | Nagata | Nov 2006 | A1 |
20100026738 | Saikawa | Feb 2010 | A1 |
20100111546 | Kubo | May 2010 | A1 |
20100238225 | Igarashi | Sep 2010 | A1 |
20120267468 | Shiode | Oct 2012 | A1 |
20130170848 | Hirota | Jul 2013 | A1 |
20130183075 | Kim | Jul 2013 | A1 |
20140209655 | Haque | Jul 2014 | A1 |
20150346664 | Tanaka | Dec 2015 | A1 |
Number | Date | Country |
---|---|---|
04-156061 | May 1992 | JP |
04-077471 | Jul 1992 | JP |
2003-226440 | Aug 2003 | JP |
2004-133259 | Apr 2004 | JP |
2006-189624 | Jul 2006 | JP |
2009-286102 | Dec 2009 | JP |
2013-216395 | Oct 2013 | JP |
2015-114882 | Jun 2015 | JP |
Number | Date | Country | |
---|---|---|---|
20170043597 A1 | Feb 2017 | US |