Priority is claimed under 35 U.S.C. §119 from Japanese patent application no. JP 2010-241854 filed on Oct. 28, 2010, which is hereby incorporated by reference in their entirety.
The present invention relates to a printer that prints on recording paper (continuous paper), and relates more particularly to a program and a recording paper positioning method for a printer that positions the recording paper based on positioning marks provided at a constant interval along the length of the recording paper.
Printers that repeatedly print to specific intervals on continuous recording paper and cut the paper by means of a paper cutter to issue receipts, coupons, and similar output are known from the literature. Some printers of this type print index marks, also called black marks or positioning marks herein, that are used for positioning the paper at specific intervals along the length of the recording paper, and position the recording paper to the printing start position and cutting position, for example, based on these index marks. Holes or notches that can be detected by a mechanical or optical sensor may also be used instead of black marks as the index marks. The gaps between labels may also be detected as the index marks on label paper, a type of continuous paper having labels affixed at a specific interval to a web liner. A printer that prints to continuous paper having such index marks is taught in Japanese Unexamined Patent Appl. Pub. JP-A-2008-238484, for example.
Printers that print on continuous recording paper having index marks do not know where the index marks on the recording paper are located (that is, do not know where the paper is positioned) when the power turns on or the paper is replaced, and therefore must first detect an index mark on the recording paper and then position the recording paper to an initial position. As a result, printers according to the related art convey the recording paper to detect an index mark, position the recording paper to the cutting position of the paper cutter based on the detected index mark, cut off the leading end of the paper, and position the recording paper to the initial position.
When the power is off, the cover to the recording paper storage compartment of the printer may be opened and the recording paper pulled out by the user for some reason, resulting in the leading end of the recording paper being pulled significantly forward from the paper exit and the cutting position of the paper cutter. When this happens and the cover is then closed and the power turned on, the recording paper is fed further forward in order to position the recording paper to the initial position. As a result, the length of the leader extending passed the cutting position may be greater than the length of one receipt or coupon, increasing the amount of recording paper wasted in the positioning operation. If the amount the recording paper is conveyed for this positioning operation is great, more time is required for the initial positioning operation, and the recording paper cannot be quickly positioned.
A recording paper positioning method for a printer and a printer that positions recording paper using this method of the invention enable positioning recording paper to the correct position without wasting recording paper when the power turns on, for example.
A first aspect of the invention is a method of positioning recording paper in a printer, including steps of: detecting positioning marks formed at a constant interval along the length of the recording paper by a detector disposed to the recording paper conveyance path at a position upstream from a printing position; positioning the recording paper to a printing start position for printing on the recording paper based on detection of the positioning mark by the detector; and when a power-off command is input, starting conveying the recording paper forward; stopping conveyance of the recording paper when the positioning mark is first detected by the detector after starting the forward conveyance operation; and then performing a power-off process.
When a power-off command is input from a host computer, for example, a printer according to the invention executes a recording paper positioning operation to position the recording paper so that the first positioning mark at the leading end of the recording paper is positioned where it can be detected by the detector, and then turns off. Therefore, if the next time the power turns on the position of the recording paper has not changed, the recording paper will already be positioned where the positioning mark can be detected by the detector. As a result, a positioning operation to convey the recording paper to detect the positioning mark and position the recording paper based thereon is not necessary, and recording paper is not wasted.
A positioning mark should normally be detectable once the recording paper has been conveyed at least the distance between positioning marks. Therefore, if the recording paper is conveyed forward and a positioning mark is not detected after the paper is conveyed the distance between positioning marks, conveying the recording paper is stopped and an error can be returned.
A method of positioning recording paper in a printer according to another aspect of the invention also has steps of determining if the positioning mark was detected by the detector when the printer power turns on; determining that the recording paper is positioned if the positioning mark is detected; and if the positioning mark is not detected, determining that the recording paper is in an offset position, and positioning the recording paper by starting conveying the recording paper in reverse and then stopping conveying the recording paper when the first positioning mark is detected by the detector after conveyance starts.
Because the recording paper is positioned when the power turns off, this aspect of the invention can know that the position of the previously positioned recording paper has shifted if the positioning mark is not detected by the detector when the power turns on. When the cover to the recording paper compartment is opened and the recording paper is pulled out while the power is off, or when the recording paper is accidentally pulled out from the paper exit while the power is off, the recording paper will normally be shifted so that the positioning mark on the recording paper is moved downstream in the conveyance direction from the detector position. As a result, the first positioning mark at the leading end of the recording paper can be detected in the shortest time by conveying the recording paper in reverse, and the recording paper can be positioned based thereon. The recording paper positioning operation can therefore be completed in a short time when the power turns on, and recording paper is not wasted by cutting off the leading end of the paper when positioning the paper.
A positioning mark should normally be detectable once the recording paper has been conveyed at least the distance between positioning marks. Therefore, if the recording paper is conveyed in reverse and a positioning mark is not detected after the paper is conveyed the distance between positioning marks, conveying the recording paper is stopped and an error can be returned.
The recording paper positioning operation can be executed as follows when printing. That is, whether or not a positioning mark was detected by the detector is determined when a print command is input. If the positioning mark is detected, the recording paper is positioned to the printing start position by conveying the recording paper a predetermined distance in reverse. If the positioning mark is not detected, it is determined that an error occurred.
The recording paper can be positioned for cutting after printing as follows. That is, the recording paper is conveyed further forward after printing ends, conveying the recording paper stops when the positioning mark is detected by the detector, and the recording paper is then positioned to a paper cutting position located downstream from the printing position by conveying the recording paper a predetermined amount in reverse.
Another aspect of the invention is a printer including: a printhead; a conveyance mechanism that conveys recording paper through a conveyance path passed a printing position of the printhead; a detector disposed to the recording paper conveyance path at a position upstream from a printing position for detecting positioning marks formed at a constant interval along the length of the recording paper; and a control unit that controls positioning the recording paper conveyed through the conveyance path based on detection of the positioning mark by the detector, positions the recording paper to a printing start position for printing on the recording paper based on detection of the positioning mark by the detector, and when a power-off command is input, starts conveying the recording paper forward by the conveyance mechanism, stops conveying the recording paper when the positioning mark is first detected by the detector after starting the forward conveyance operation, and then performs a power-off process.
Another aspect of the invention is a computer-readable recording medium storing a program executed by a control unit that controls a printer, the program causing the control unit to execute steps of: detecting positioning marks formed at a constant interval along the length of the recording paper by a detector disposed to the recording paper conveyance path at a position upstream from a printing position; positioning the recording paper to a printing start position for printing on the recording paper based on detection of the positioning mark by the detector; and when a power-off command is input, starting conveying the recording paper forward; stopping conveyance of the recording paper when the positioning mark is first detected by the detector after starting the forward conveyance operation; and then performing a power-off process.
When a power-off command is input to a printer according to the invention, the printer executes a recording paper positioning operation to position the recording paper so that the first positioning mark at the leading end of the recording paper is positioned where it can be detected by the detector, and then turns off. Therefore, if the next time the power turns on the position of the recording paper has not changed, the recording paper will already be positioned where the positioning mark can be detected by the detector. As a result, a positioning operation to convey the recording paper to detect the positioning mark and position the recording paper based thereon is not necessary, and recording paper is not wasted.
Because the recording paper is positioned when the power turns off, this aspect of the invention can know that the position of the previously positioned recording paper has shifted if the positioning mark is not detected by the detector when the power turns on. Because shifting of the recording paper position generally results in the positioning mark on the recording paper moving downstream in the conveyance direction from the detector position, the first positioning mark at the leading end of the recording paper can be detected in the shortest time by conveying the recording paper in reverse, and the recording paper can be positioned based thereon. The recording paper positioning operation can therefore be completed in a short time when the power turns on, and recording paper is not wasted by cutting off the leading end of the paper when positioning the paper.
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 a printer according to the present invention is described below with reference to the accompanying figures.
Referring to
The platen roller 9 is rotationally driven by a paper feed motor 13, the recording paper 3 is conveyed to and discharged from the paper exit 7 by rotation of the platen roller 9 while being pressed against the printing surface of the thermal head 11, and the paper feed conveyance mechanism is rendered by the platen roller 9 and paper feed motor 13. Specific content is printed on the face of the recording paper 3 by driving the thermal head 11 synchronized to conveyance of the recording paper 3.
A control unit 14 composed of a CPU, ROM, and RAM controls driving the printer 1. The control unit 14 executes a control program stored in ROM, controls driving other printer parts, and conveys, positions, and prints on the recording paper 3 according to commands input from a host computer 17 connected through a communication unit 15 and communication line 16. In the recording paper 3 conveyance and positioning operation, the control unit 14 controls conveyance of the recording paper 3 by the platen roller 9 that is driven by the paper feed motor 13 through a motor driver 18. In the recording paper 3 printing operation, the control unit 14 controls recording paper 3 conveyance and driving the thermal head 11 through a head driver 19, and performs the process of printing print data supplied from the host computer 17 on the recording paper 3. The control unit 14 also controls driving the cutter motor 21 through a motor driver 20 to cut the recording paper 3 by means of the cutter 12.
A detector 22 for detecting black marks BM (positioning marks or index marks) disposed on the recording paper 3 as index marks is also disposed on the upstream side of the printing position 11a of the thermal head 11.
As shown in
When printing ends, the leading end 3a of the recording paper 3 protrudes slightly forward from the paper exit 7 as indicated by (end of printing) in
After printing ends, the recording paper 3 is conveyed forward and conveyance of the recording paper 3 stops when the second black mark BM2 is detected by the detector 22 as indicated by (forward, detect black mark, stop) in
Note that “forward” as used herein refers to conveyance of the recording paper 3 forward from the upstream side to the downstream side of the conveyance path. The recording paper 3 is conveyed in “reverse” when conveyed in the opposite direction.
The recording paper 3 is then conveyed a predetermined distance in the reverse direction so that the end-of-printing position 3b of the recording paper 3 is positioned to the cutting position 12a. The (reverse, stop) position shown in
Positioning Recording Paper when the Power Turns Off
When a power-off command for turning the printer 1 power off is received from the host computer 17, the printer 1 executes the recording paper 3 positioning operation shown in the flow chart in
As described with reference to these figures, when a power-off command is received, the recording paper 3 starts conveying the recording paper 3 forward (
As a result, printer 1 power turns off after positioning the black mark BM2 at the leading end of the recording paper 3 to the detection position 22a of the detector 22.
When the recording paper 3 is conveyed normally, a black mark BM should be detected before the forward conveyance distance of the recording paper 3 equals the interval L1 between black marks BM. Because a no-paper error, detector error, or other problem is determined to have occurred if a black mark BM is not detected when the recording paper 3 has been conveyed interval L1, control goes from step ST2 in
Positioning the Recording Paper when Power Turns on
The recording paper 3 is held as positioned while the power is off unless the recording paper 3 is pulled out manually. This means that when the power turns on, the recording paper 3 is positioned as shown in the (power-off command, forward, detect black mark, stop) line in
If the operator opens the cover (not shown in the figure) of the storage compartment 5 and pulls out the recording paper 3, or pulls the recording paper 3 out from the paper exit 7, while the power is off, the recording paper 3 will be moved from where it was positioned when the power turned off.
The printer 1 therefore detects if the position of the recording paper 3 has shifted, and repositions the recording paper 3 if a shift is detected when the power turns on as indicated by (position shifted to while off) and (power on, reverse, detect black mark, stop) in
More specifically, after the initialization process is executed when the printer power turns on (
However, if the recording paper 3 was pulled out and the black mark BM2 is not detected as indicated by (position shifted while off) in
As described above, whether or not the position of the recording paper 3 has shifted is detected when the printer power turns on, and if the position has shifted, the recording paper 3 is conveyed in reverse until the detector 22 detects the black mark BM2 at the leading end of the recording paper 3. Positioning the recording paper 3 when the power turns on can therefore be completed in a short time, and recording paper is not wasted by cutting off the leading end of the recording paper 3.
Note that if a black mark BM2 is not detected even after reversing the recording paper 3 a distance equal to the interval L1 between the black marks BM when the power turns on, control goes from step ST14 to step ST16 (stop backfeed) in
Positioning Recording Paper at the Start of Printing
Positioning the recording paper at the start of printing is described next with reference to (print command, reverse, index) and (forward, start printing) in
When a print command is input from the host computer 17, the printer 1 first checks if the black mark BM2 was detected by the detector 22 (
If a black mark BM2 is not detected by the detector 22, an error is displayed without starting printing (
The recording paper 3 may be label paper with labels affixed to a liner. In this case the black marks are printed on the liner at a known interval, and these black marks can be detected by the detector 22 for positioning. Alternatively, the detector 22 can detect the liner between adjacent labels instead of detecting black marks for positioning. When such label paper is used, a label peeling mechanism that peels the labels from the liner can be used instead of a cutter 12.
The processes executed by the printer according to the foregoing embodiment of the invention can also be embodied as a program. This program can also be provided stored on a recording medium such as a hard disk drive, optical disc, magneto-optical disc, or flash memory.
The invention being thus described, it will be obvious 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 obvious to one skilled in the art are intended to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2010-241854 | Oct 2010 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5873507 | Suzuki | Feb 1999 | A |
20040061768 | Nishimura | Apr 2004 | A1 |
20100074635 | Sakurai | Mar 2010 | A1 |
20110242179 | Mori | Oct 2011 | A1 |
20110298860 | Yoshida | Dec 2011 | A1 |
20120019580 | Tokushima | Jan 2012 | A1 |
Number | Date | Country |
---|---|---|
05-042730 | Feb 1993 | JP |
09-300749 | Nov 1997 | JP |
2008-238484 | Oct 2008 | JP |
Number | Date | Country | |
---|---|---|---|
20120105567 A1 | May 2012 | US |