PAPER LENGTH DETECTION IN A PRINTER

Abstract: In a printing apparatus using cut sheets as the recording medium, means are provided for determining the maximum pos­ sible page length which can be used for printing, for dis­ playing the result of the measurement and for storing a va­ lue corresponding to the measurement.

Description: This invention relates to a printing apparatus and, in particular, to a printing apparatus provided with a cut sheet feeder controlled by signals from a paper sensor, i.e. a sensor for detecting whether there is paper or not. Such a printing apparatus is disclosed in DE-A-3 211 843. When characters are printed on a cut sheet by such conventional printing apparatus, it is impossible to use all of the sheet from the upper end to the lower end of the cut sheet. In order to ensure a sufficient fixation of the cut sheet and a high printing quality, the area of the cut sheet used for printing is restricted to what will be designated here as the usable area or the maximum page length which excludes several lines from the top or the bottom of the cut sheet where the printing quality would be inferior to that of the other lines. If a cut sheet feeder is used, prior to printing, it has to be confirmed whether the printing position is within the usable area. If the printing position is below the lower end of the usable area, the cut sheet is ejected and a new cut sheet is introduced. The lower end of the usable area of a cut sheet is determined by signals from the paper sensor. When characters are printed on a cut sheet under the control of application software in a personal computer, such as a word processing software, the user should input the page length, i.e. the number of printing lines per sheet depending on the size of the cut sheet used. The paper feeding is controlled based on such inputted value. In case of the above application software, if the page length controlled by this software exceeds the maximum page length, i.e. the length of the usable area of the cut sheets, problems occur. In this case, a first cut sheet will be ejected due to a signal from the paper sensor when the lower end of the usable area is reached. The following page will be ejected as soon as the total number of printed lines on both sheets corresponds to the page length as controlled by the application software. In some cases, when the page length controlled by the application software is shorter than the usable area of the cut sheets the problem may occur that the printing of a second page is started in the lower portion of the cut sheet on which a first page has just been printed. Therefore the page length controlled by the application software should correspond to the usable area. The page length can be preliminarily set in a printing apparatus, however, the default page length set when the power is switched on is generally maintained. This value is a bit longer than the actual length of the cut sheet. Therefore, the page length is in fact controlled by the signal from the paper sensor. In this case the actual page length i.e. the page length from the first printing line to the position where the sheet is ejected due to a signal from the paper sensor, includes a tolerance value. The tolerance value is due to the follwing reasons: (1) an inaccuracy of the paper feeding mechanism; (2) an inaccuracy of the paper sensor; (3) variations in the size of the cut sheets themselves. It is an object of the present invention to overcome the above stated problems of conventional printing apparatus by making the page length as controlled by application software to correspond to the page length as controlled by the printing apparatus. This object is achieved with a printing apparatus as claimed. In a printing apparatus according to the present invention, the maximum page length, i.e. the usable area of a cut sheet is measured using the paper feeding device and the signals from the paper sensor. The variation or tolerance value referred to above is subtracted from the measured page length of the cut sheet resulting in the maximum page length with respect to all cut sheets of one kind. This obtained value is stored in a storage device so that it can be used to set a power-on default page length of the printing apparatus. Furthermore, this page length is displayed to a user so that he can input this value under the control of his application software. One way of carrying out the invention is described in detail below with reference to the drawings which illustrate only one specific embodiment and in which: Fig. 1 is a block diagram of a printing apparatus according to one embodiment of the present invention, Fig. 2 is a diagrammatic lateral view to explain the paper feeding operation, Fig. 3 is a flow chart showing the operation according to the present invention, and Fig. 4 is a diagram for explaining the usable area of a cut sheet. Reference is first made to Fig. 1 showing a block diagram of the printing apparatus according to one embodiment of the present invention. To system bus 1 are connected a control circuit 2 including a microprocessor unit for controlling the whole apparatus, a paper feeding driving portion 3 comprising a paper feeding motor and a driving circuit for the paper feeding motor, a printing head driving portion 4 comprising a printing head and a driving circuit for the printing head, a carriage motor driving portion 5 comprising a carriage motor and a driving circuit for the carriage motor, a control panel portion 6 including switches which the user can easily control, a paper sensor 7, a storage device 8 comprising a switch group determining the power-on default condition, and an external interface portion 9 for exchanging data with a host computer. Fig. 2 is a diagrammatic lateral view illustrating the paper transport in the printing apparatus. A cut sheet B is introduced from a cut sheet feeder A, past paper sensor C, and the printing is conducted by printing head D. The cut sheet feeder is driven by the paper feeding driving portion 3 mentioned before. In the following the operation of this embodiment of the present invention will be explained with reference to the flow chart of Fig. 3. The printing apparatus is brought into a state of measurement by pushing a corresponding switch of the control panel 6 after the power has been switched on. If the signal from the paper sensor C indicates that a cut sheet is present (300), this cut sheet will be ejected (301). Then a new cut sheet is introduced from cut sheet feeder A (302). The introduction of the cut sheet B (Fig. 2) is completed when its upper end after having been sensed by paper sensor C has been further advanced by a predetermined distance depending on the distance between the location of the paper sensor C and that of the printing head D. At this moment the upper end of cut sheet B is in a position facing printing head D. Now printing is conducted to mark the uppermost end of the usable area of the cut sheet (303). Subsequently, ejection of the cut sheet is started (304). While the cut sheet is ejected, the paper sensor C detects the lower end of the cut sheet (305). Then the amount of feeding of the cut sheet from the start of the ejection until paper sensor C detects the lower end of the cut sheet is computed (306). Because of the distance between the location of paper sensor C and that of printing head D (Fig. 2) it is possible to continue printing for a while after paper sensor C has detected the lower end of the cut sheet. Thus, after detection of the lower end of the cut sheet, the cut sheet is further advanced by a predetermined distance until the lowermost end of the usable area of the cut sheet is in a position facing printing head D. At this moment the ejection of the cut sheet is interrupted (307). The page length is computed as will be explained later and the computed value is printed on the cut sheet (308). The printed information preferably includes: I. The present line number on the basis of a line spacing of 1/6 inch; II. ON/OFF information for storing the thus obtained page length of the cut sheet to be set in the switch group of the storage device 8. The purpose of information I is to reflect the measurement result upon the application software. If the length of paper passing the printing head D from the start of the paper ejection to the lower cut sheet end detection by paper sensor C is X and the remaining length of the usable area after the lower cut sheet end detection is Y (Y corresponds to the length between the printing head D and the paper sensor C), a provisional page length is represented as the sum of X and Y, i.e. X + Y. This sum is divided by the line spacing of 1/6 inch and the quotient and the remainder are obtained. If the remainder is greater than an assumed maximum tolerance value of the page length of the cut sheet, one line is added to the quotient. This value is printed as the maximum possible line number of the cut sheet. The actual maximum page length is obtained as the product of this value and the line spacing of 1/6 inch. The switch group included in storage device 8 must be manually set by the user. The purpose of printed information of II is to instruct the user how to set the switches of the switch group such that the power-on default page length corresponds to the result of the above measurement. If, instead of a manually operable switch group, the printing apparatus includes a non-volatile memory to store power-on default values, the result of the measurement will be directly written into such memory, there being no necessity to print the above information II. The following is based on the assumption that a switch group, not a non-volatile memory is used. Generally, the sizes of frequently used cut sheets are A4, B5 and letter size. These sizes correspond to a maximum number of printing lines (based on a line spacing of 1/6 inch) as follows: B5 ... 57 lines letter ... 61 lines A4 ... 65 lines If a number of 56 lines is regarded as a standard, the above line numbers may be represented by an addition to this standard as follows: B5 ... + 1 (binary number: 0001) letter ... + 5 (binary number: 0101) A4 ... + 9 (binary number: 1001) To cover the range of additional line numbers from 1 to 9, four switches, each representing one digit of a binary number, are necessary. The printed information II instructs the user which of the four switches has to be brought in ON condition and which in OFF condition. In the case of an A4 sized cut sheet, the printed information II is for instance as follows: [SW4: ON SW3: OFF SW2: OFF SW1: ON] With four switches in the switch group included in the storage device, the possible region of line numbers is from 57 to 71 lines. If paper of a size allowing more than 71 lines of 1/6 inch spacing is used, the binary number 0000 is set in the switch group. In this case, the power-on default page length will be a value sufficiently large such that the actual page length will be determined by a signal from the paper sensor unless a lower value is set under the control of the application software. After the above mentioned information has been printed, the cut sheet is finally ejected by a signal from control circuit 2 to paper feeding driving portion 3 (310 in Fig. 3). When the user has set a binary number according to the printed information of II into the switch group of storage device 8 or when, in case of a non-volatile memory, the page length has been written into the memory, the stored page length will be automatically set each time the power is switched on and a paper will be ejected each time this set page length is reached. Therefore, a printing region having a constant length can always be obtained. If the user inputs the line number according to printed information I under the control of his application software, the page length controlled by the application software will coincide with the page length controlled by the printing apparatus. Referring to Fig. 4, the manner in which the line number is computed will be explained next. In Fig. 4 the region of X + Y designates the basic usable area of the cut sheet B. The line spacing of lines L₁ and L₂ is assumed to be 1/6 inch. It is further assumed that M is the remainder of a division (X + Y)/(1/6). Although the basic usable area is shown to be X + Y in this example, characters can still be printed on a further line as long as M is not equal to zero, namely as long as the upper end of the additional line is still included in the usable area. Therefore, even if M is less than 1/6 inch one further line can be printed after line L₂. In this case, however, tolerances due to meassurement errors must be taken into consideration. Therefore, if the value of M exceeds the tolerance value, M is considered as not being an error. Then an additional line can be printed after line L₂, the additional line partly extending into the area designated by Z in Fig. 4.

Claims: A printing apparatus comprising: a paper sensor (C) for detecting whether or not a sheet of recording paper (B) is present, a storage device (8) for storing information determining the initial condition of the printing apparatus each time the power is switched on, a means for measuring the length of a used cut sheet of recording paper and for storing a value corresponding to a maximum page length usable for printing of the cut sheet determined on the basis of the measurement result, and a means for displaying said value. A printing apparatus according to claim 1, having a cut sheet feeder (A) for introducing cut sheets of recording paper. A printing apparatus according to claim 1 or 2, wherein said value is printed onto the recording paper. A printing apparatus according to any of claims 1 to 3, wherein said storage device (8) includes a switch group and wherein further information for setting the switches of the switch group based on the measurement result is displayed.

Inventors: KATO, TAKASHI C/O SEIKO EPSON CORPORATION
Applicants: SEIKO EPSON CORPORATION
Application year: 1988
Main classification: B41J29
IPC codes: B41J29