A printer

Abstract: A printer comprising a carriage (5) making reciprocating movement and a printing head (7) mounted thereon, the movement of the carriage (5) comprising an outward section from a home position to the other position, a homeward section from the other position to the home position, and two reverse sections to change the direction of the movement, a printing being made on a printing paper (61) by defining the outward and homeward sections as a printing area, in which, when printing includes a mark printing to print a mark (63) on an edge of the printing paper (61), the mark printing is carried out by using one of the reverse sections.

Description: The present invention relates to a dot-impact type of printer, more particularly, for printing marks on the edge of printing paper, which prevents fracture of a wire of a printing head and can print the desired marks on the edge of printing paper without requiring a large-sizing of printer. Fig. 10 shows an example of printed matter on which markings are printed on the edge of printing paper. The printed matter in Fig. 10 is recognized as "instant lottery ticket." There is a paper 101 in a predetermined shape and size, on which predetermined numbers, etc. have been printed in advance in predetermined rows. Marks 103 are printed at predetermined positions, including those on the left edge of the paper 101. When a person buys the instant lottery ticket as shown in Fig. 10, he may select arbitrary number among the numbers printed in a predetermined row, then marks the selected number by drawing any checking line or painting it out, etc. The thus number-marked paper 101 is inserted in a data reader (OCR). The OCR detects the marks 103 printed on the left edge of the paper 101, so that the number in each row marked by the buyer may be detected. Fig. 11 shows another type of printed matter like above. This kind of paper is printed by a certain type of machine when drawing a lottery. For example, when a person buys the lottery by selecting arbitrary number, etc., a receipt 105 as shown in Fig. 11 is issued. The receipt 105 has marks 109 at the predetermined positions including those on the left edge of the receipt 105. These marks 109 specify the information selected by the buyer. The information is then confirmed by inserting the receipt 105 in the OCR, so that the result (win or lose) in the lottery may be discriminated. However, the prior arts as above described have the following problems. Firstly, when marks 103 or 109 are to be printed on the left edge of the paper 101 or the receipt 105, it is necessary to start moving the head from the further side of the left edge of the paper. Namely, the printing should be carried out by moving a printing head toward the right side, starting from the further side of the left edge of the paper 101 or the receipt 105. In such an operation, a wire of the printing head may be caught on the left edge of the paper 101 or the receipt 105, which result in fracture of the wire. Secondly, there is a problem of large-sizing of printer. When the printing is to be carried out on the edge of the paper 101 or the receipt 105, it is necessary to extend the printing area in the lateral direction to allow the further starting position as above. Thus the width of the printer shall be enlarged, which results in the large-sizing of printer. For detailed explanation, as for a carriage of the printing head which ordinarily makes reciprocating movement, there are reverse areas at both ends of the printing area, in which the carriage changes its moving direction (from the movement toward the left side, to that toward the left side, and vice versa), and such reverse areas are not included in the printing area. Namely, the printing is carried out only in the area excluding the reverse areas. Accordingly, if the edges of the paper 101 or the receipt 105 should be included in the printing area, the printing area shall naturally be enlarged, thus the width of the printer is enlarged, which results in the large-sizing of printer. US-A-5255987 discloses a printer comprising a carriage making reciprocating movement and a printing head mounted thereon, the movement of said carriage comprising an outward section to move from a home position to another position, a homeward section to move from the another position to said home position, and two reverse sections respectively provided between said outward section and said homeward section to respectively change the direction of the movement, printing being carried out on a printing paper by said printing head by defining said outward section and said homeward section as a printing area. US-A-5155499 discloses an image edge printing controller which modifies print data so that nozzles of a print head not over the image area do not print. The object of the present invention is to provide a printer and a printing method which can print on edges of a printing paper, by preventing fracture of a wire of a printing head. In accordance with a first aspect of the present invention, a printer for printing data sent from a host device on a paper, comprises a carriage and a carriage driving mechanism for causing the carriage to make a reciprocating movement within a moving range including a printing section and a pair of reverse sections where the direction of movement of said carriage is changed; and a printing head mounted on said carriage, characterized in that the printer further comprises means for determining whether the printed data sent from the host device includes data indicative of the printing of a mark in at least one of the reverse sections; and means for controlling said printing head to print the mark in at least one of the reverse sections in response to said determining means. In accordance with a second aspect of the present invention, a printing method in a printer that prints data sent from a host device on a paper, the printer including a carriage and a carriage driving mechanism for causing the carriage to make a reciprocating movement within a moving range including a printing section and a pair of reverse sections where the direction of movement of said carriage is changed, and a printing head mounted on said carriage; said method being characterized by the steps of: determining whether the printing data sent from the host device includes data indicative of the printing of a mark in at least one of the reverse sections; and controlling said printing head to print the mark in at least one of the reverse sections in response to said determining means. Preferably, the printer may include a judging means to decide whether contents of printing are only ordinary printings or include the mark printing, and a control means, under decision by the judging means that printing includes the mark printing, which controls, when the mark is printed on the edge of the printing paper on the home position side, to carry out printing in the homeward section and to carry out the mark printing in the reverse section which changes the movement from the homeward section to the outward section, and which controls, when the mark is printed on the edge of the printing paper on the other position side, to carry out printing in the outward section and to carry out the mark printing in the reverse section which changes the movement from the outward section to the homeward section. Preferably, the printer may include a timing signal generating means to specify a position of the carriage. With this structure, the printer and method according to the present invention carries out the mark printing in the reverse areas positioned at both ends of the printing area, thus the desired mark printing can be made, without extension of printing area which might cause the large-sizing of printer. In addition, when the judging means decides whether contents of printing are only ordinary printings or include the mark printing, and the control means controls, under decision by the judging means that printing includes the mark printing, when the mark is printed on the left edge of the printing paper, to carry out printing in the homeward direction and to carry out the mark printing in the reverse area where the moving direction changes from the homeward to the outward, and when the mark is printed on the right edge of the printing paper, to carry out printing in the outward direction and to carry out the mark printing in the reverse area where the moving direction changes from the outward to the homeward. Thus the mark printing is carried out when the printing head moves in the direction from the inside to the outside of the printing paper, and it is possible to prevent damage to a wire of the printing head caught by the marginal edge of the printing paper. According to the printer of the present invention, firstly, since the mark printing is carried out by using the reverse areas, it is not necessary to extend the printing area, and the large-sizing of printer is not required. Secondly, since the printing on the edge of the printing paper is sure to be carried out starting from the inside of the printing paper, it is possible to prevent the damage to the wire of the printing head caught by the marginal edge of the printing paper. Therefore, the desired printing can be carried out by preventing the damage to the wire of the printing head without requiring the large-sizing of printer. The invention will be described below in detail with reference to the accompanying drawings, in which: Figure 1 is a perspective view showing a mechanical structure of a printer according to an embodiment of the present invention; Figure 2 is a segmentary perspective view showing only a carriage driving mechanism in the mechanical structure of the printer according to the embodiment of the present invention; Figure 3 is a block diagram showing a structure of the printer according to the embodiment of the present invention; Figure 4 is a view showing a locus in a cycle of reciprocating movement of a printing head moving in a cam groove of a cylindrical cam shaft according to the embodiment of the present invention; Figure 5 is a timing chart explaining timings of ordinary printing and mark printing according to the embodiment of the present invention; Figure 6 is a view showing printing timings with determined numbers according to the embodiment of the present invention; Figure 7 is a view showing printing timings with determined numbers according to the embodiment of the present invention; Figure 8 is a view explaining mark printings on a receipt according to the embodiment of the present invention; Figure 9 is a flowchart showing a printing operation according to the embodiment of the present invention; Figure 10 is a view showing an example of printed matter on which marks are printed; and Figure 11 is a view showing an example of printed matter on which marks are printed. An embodiment of the present invention will now be described with reference to Figures 1 through 9. The mechanical structure of a printer according to the present invention is shown in Fig. 1. Firstly, there is a frame 1 having a bottom wall 1a and a pair of side walls 1b and 1c. A guide shaft 3 is provided between the pair of side walls 1b and 1c, and a carriage 5 is mounted on the guide shaft 3 to make lateral movement along the guide shaft 3 to the right and left. A printing head 7 is mounted on the carriage 5. There is a cylindrical cam shaft 9 parallel to the guide shaft 3 in the space between the pair of side walls 1b and 1c. The space between the pair of side walls 1b and 1c also has a carriage motor 11, and the carriage motor 11 drives the cylindrical cam shaft 9 to rotate via a gear train 13 comprising a plurality of gears. Thus the carriage 5 moves to the right and left interlocked with the rotation of the cylindrical cam shaft 9. Accordingly, a carriage driving mechanism A comprises the carriage motor 11, the gear train 13, the cylindrical cam shaft 9, etc. There is a platen 15 provided facing to the printing head 7, and there is also a shaft 17. A printing mechanism B comprises the printing head 7, the platen 15, etc. There is a paper feeding roller 19 fixed on the shaft 17, and there is another paper feeding roller 21 opposite with the paper feeding roller 19. A paper feeding motor 23 is provided to drive the shaft 17 to rotate via a gear train 25 comprising a plurality of gears. Thus the paper feeding roller 19 rotates, and an unillustrated paper is fed between the printing head 7 and the platen 15. Accordingly, a paper feeding mechanism C comprises the paper feeding motor 23, the paper feeding rollers 19 and 21, etc. To explain the structure of the carriage driving mechanism A which drives the carriage 5, a segmentary view only of the structure thereof is illustrated in Fig. 2. There is the cylindrical cam shaft 9 as above discussed, on which a cam groove 9a is formed. There is also an unillustrated cam follower provided on the carriage 5 to be in movable engagement with the cam groove 9a. A timing disk 27 is provided in the rear of the carriage motor 11, and the timing disk 27 has a plurality of slits 29 formed along the circumference thereof at regular intervals. A photo interrupter 31 is provided opposite with the timing disk 27. A timing signal generating means comprises the timing disk 27 and the photo interrupter 31. There is another photo interrupter 33 to detect the position of the carriage 5. The photo interrupter 33 outputs a carriage position signal (home position signal) when an unillustrated plate protruding from the carriage 5 passes. Fig. 3 shows a block diagram of the structure of the printer according to the embodiment of the present invention. As above described, the printer has a mechanical section comprising the carriage driving mechanism A, the printing mechanism B and the paper feeding mechanism C. In addition, the printer has a control means 41. The control means 41 is provided with a carriage motor driver 43, a printing head driver 45, and a paper feeding motor driver 47. The control means 41 also has an ordinary data printing control means 49, a mark printing control means 51, an I/F 53 which receives the printing data transmitted from a host computer, and a received data judging means 55 which decides whether or not the received data include the mark printing. With regard to the reciprocating motion of the carriage 5, as above described, the carriage 5 makes reciprocating movement by engagement with the cam groove 9a of the cylindrical cam shaft 9. Fig. 4 shows a locus of such a reciprocating movement of the carriage 5 by engagement with the cam groove 9a, in which a Y-axis represents an amount of movement of the printing head 7, and an X-axis represents a time (number of timing signals) to show a variation thereof. As clearly seen from Fig. 4, in the printing area, the number of timing signals (time) is in proportion to the amount of movement of the printing head 7. To the contrary, in the reverse areas (the areas to change the moving direction of the carriage 5 from the outward to the homeward and vice versa), the number of timing signals (time) is out of proportion to the amount of movement of the printing head 7. According to the embodiment of the present invention, the so-called "mark printing" is carried out in such non-proportional reverse areas. In these areas, since the printing timing is out of proportion to the amount of movement, there may be an occurrence of double-dotted printing. However, there is no problem even if the double-dotted printing occurs, as the printing only relates to the mark printing. It is even favorable because the printing density of the mark may be higher. Fig. 5 shows a timing chart of printing, in which ON/OFF of the carriage motor 11, the home position signal, the timing signal, the timing of the mark printings, and the timing of the ordinary printings, are respectively indicated. In this connection, the timing signal will be discussed with reference to Figs. 6 and 7. Fig. 6 explains the printing timing of the printer. For further reference, numbering of the timing signal (Tn) is determined as shown in Fig. 7. Firstly, a trailing edge of the home position signal from the photo interrupter 33, which detects the position of the carriage 5, is detected. Then the first trailing edge of the timing signal after the above detection of the home position signal, from the timing signal generating means comprising the timing disk 27 and the photo interrupter 33, is determined as T-i. Similarly, the sequential trailing edges of the timing signals are determined as T 0 , T 1 , T 2 , and so forth. In such a numbering, the position of the carriage 5 is specified. Accordingly, the printing signals are transmitted to the printing head driver 45 at the predetermined timing as shown in Fig. 6, thus the printing is carried out by the printing mechanism B. With reference to the above description, Fig. 5 shows the reciprocating movement of the carriage 5 with the determined numbering (T n ) of the timing signal, in which T 1 - T 402 represent an outward printing period (for example, the movement toward the right) of the carriage 5, T 403 - T 500 represent a reverse period in which the carriage 5 changes the moving direction from the outward to the homeward (for example, from the movement toward the right to that toward the left), T 501 - T 902 represent a homeward printing period (for example, the movement toward the left) of the carriage 5, and T 903 - T 1000 represent a reverse period in which the carriage 5 changes the moving direction from the homeward to the outward (for example, from the movement toward the left to that toward the right). The ordinary printing is carried out in the periods between T 1 - T 402 (the outward printing period) and T 501 - T 902 (the homeward printing period). In addition, the printing including the mark printing is carried out, in the periods starting from the mid of the reverse period to change the direction from the outward to the homeward (namely at T 452 ) until reaching the mid of the reverse period to change the direction from the homeward to the outward (namely at T 950 ). According to the embodiment of the present invention, there may be a case that marks 63 should be printed on a receipt 61 as illustrated in Fig. 8, in which several marks 63 are positioned on the left edge of the receipt 61. Accordingly, the mark printing is carried out at the timing when the carriage 5 moves in the homeward direction (in Fig. 8, the movement of the carriage 5 toward the left), then the mark is printed while the carriage is in the reverse area. The printing operation according to the present invention will be described with reference to a flowchart of Fig. 9. Firstly, data is received (step S1), and control proceeds to step S2 to decide whether or not the received data are the mark data. When the received data are the mark data, control proceeds to step S3 to set the printing area. The printing area defined by the period is between T 452 - T 950 as above described (see Fig. 5). Then control proceeds to step S4 to execute the printing development, and the printing is carried out at step S5, then the printing operation ends. To the contrary, if the decision is not for the mark data at step S2, control proceed to step S6. In this case, the printing shall be the ordinary printing, thus the printing area is defined by the outward printing period (T 1 - T 402 ) and the homeward printing period (T 501 - T 902 ). Then control proceeds to step S7 to execute the printing development, and the printing is carried out at step S8, then the printing operation ends. The present invention has the following merits. Firstly, it is possible to avoid the damage to the wire of the printing head 7. The wire may be caught on the marginal edge of the printing paper (in this case, the left edge of the receipt 61) when the marks 63 are printed on the left edge of the receipt 61. However, according to the present invention, it is possible to avoid such a damage because the mark printing is carried out at the timing of movement of the carriage 5 in the homeward direction (namely, the timing of movement toward the left in Fig. 7). Secondly, it is possible to carry out the desired printing without extending the printing area of the printer. This is because the mark printing is carried out by using the reverse areas, which are not ordinarily used for printing. As above described, according to the embodiment of the present invention, the printer can carry out the desired mark printing, by avoiding the damage to the wire of the printing head 7, and without requiring the large-sizing of the printer. Although the embodiment refers to the case of the mark printing on the left edge of the printing paper, it is of course possible to carry out the mark printing on the right edge of the printing paper. In this case, the mark printing is carried out at the timing of outward movement of the carriage and also in the reverse area to change the moving direction from the outward to the homeward (from the movement toward the left to that toward the right). In addition, as for the printed marks, it is sufficient to use any dot pattern as long as the problem due to double-dotted printing will not occur. Depending on the purposes, it is even possible to use any ordinary letter pattern as the mark.

Claims: A printer for printing data sent from a host device on a paper, comprising: a carriage (5) and a carriage driving mechanism (A) for causing the carriage to make a reciprocating movement within a moving range including a printing section and a pair of reverse sections where the direction of movement of said carriage is changed; and a printing head (7) mounted on said carriage (5), characterized in that the printer further comprises means (55) for determining whether the printed data sent from the host device includes data indicative of the printing of a mark (63,103,109) in at least one of the reverse sections; and means (49,51) for controlling said printing head (7) to print the mark (63,103,109) in at least one of the reverse sections in response to said determining means. The printer as claimed in claim 1, further comprising means (49,51) for determining in which reverse section the mark (63,103,109) is to be printed; wherein said controlling means controls the mark (63,103,109) printing to be done in the determined reverse section when said carriage (5) enters the determined reverse section. The printer as claimed in claim 1 or 2, further comprising a timing signal generating means (27,29,31) for generating a timing signal to specify a position of said carriage (5). A printing method in a printer that prints data sent from a host device on a paper, the printer including a carriage (5) and a carriage driving mechanism (A) for causing the carriage to make a reciprocating movement within a moving range including a printing section and a pair of reverse sections where the direction of movement of said carriage is changed, and a printing head (7) mounted on said carriage; said method being characterized by the steps of: determining (52) whether the printing data sent from the host device includes data indicative of the printing of a mark (63,103,109) in at least one of the reverse sections; and controlling (53-55) said printing head to print the mark (63,103,109) in at least one of the reverse sections in response to said determining means. The printing method as claimed in claim 4, wherein when it is determined that the printing data includes the mark (63,103,109) print, the method further comprises determining in which one of the reverse sections the printing is executed; and executing the mark (63,103,109) printing within the determined reverse section when the carriage enters the determined reverse section under the control.

Inventors: SUZUKI KANJI, SUZUKI, KANJI
Applicants: STAR MFG CO, STAR MICRONICS CO., LTD.
Application year: 1997
Main classification: B41J11
IPC codes: B41J2, B41J19, B41J25, B41J11