1. Field of the Invention
The present invention relates to a print device.
2. Related Art
There have been proposed various kinds of printers that print images on recording media based on data supplied from a host computer or the like. One type of such printers automatically executes an error recovery procedure when an error occurs during printing, and other type of printer executes an error recovery procedure in accordance with user's operation (instruction). A print error arises when it is not possible for the printer to perform a print operation according to the received print data, and a print operation is suspended when an error occurs. A print error occurs, for example, when a recording medium that meets the printing requirements specified by the print data is not accommodated in the printer. In this case, a user has to follow a predetermined error recovery procedure to resume the suspended print operation.
Print errors include those that need to be dissolved to resume the print operation and those that can be ignored to resume the print operation. Japanese Patent Application-Publication No. 2003-170643 has proposed a printer that ignores an error and automatically continues an ongoing print operation if the ongoing print operation can be continued by ignoring the error. There has also been provided a printer that enables a user to set whether to automatically ignore an error to continue a print operation or to suspend the print operation so that error recovery procedure can be executed in accordance with user's operation when an error which can be ignored occurs.
However, in conventional printers, the user can simply set automatic print continuation or recovery by user's operation as an error recovery method for all errors that the printer can neglect, although there may be errors for which the user wants an automatic print continuation and those for which the user wants a recovery by user's operation. In other words, when an automatic print continuation is set as an error recovery method, a print operation is always continued whenever a print error that the printer can ignore occurs, and hence the print operation is not suspended for allowing the user to follow an appropriate error recovery procedure. Thus, there has been a problem that a printing result differs from expected one.
On the other hand, however, requiring a user to set automatic print continuation or recovery by user's operation for each one of the errors and to set a recovery procedure for each error will place great burden on the user since there are a large number of errors.
In the view of foregoing, it is an object of the present invention to overcome the above problems, and also to provide a printer that enables a user to set an error recovery method for each of error categories and that is excellent in operationality.
In order to attain the above and other objects, the present invention provides a printer including a printing unit that performs a print operation to print images on a recording medium based on print data, a setting unit that sets one of error recovery methods for each of a plurality of error categories, the error recovery methods including an automatic print continuation and a recovery by user's operation, a memory that stores a correspondence data indicating the set error recovery method of each error category, an error detecting unit that detects an error during the print operation, an error category detecting unit that detects an error category of the detected error, a method detecting unit that detects an error recovery method corresponding to the detected error category with reference to the correspondence data stored in the memory, and an error recovery unit that executes an error recovery procedure according to the error recovery method detected by the method detecting unit.
There is also provided a storing medium storing a control program for controlling a printer. The control program includes the programs of performing a print operation to print images on a recording medium based on print data, setting one of error recovery methods for each or a plurality of error categories, the error recovery methods including an automatic print continuation and a recovery by user's operation, detecting an error during the print operation, detecting an error category of the detected error, detecting an error recovery method corresponding to the detected error category with reference to correspondence data stored in a memory, and executing an error recovery procedure according to the detected error recovery method.
In the drawings:
Next, a printer according to an embodiment of the present invention will be described with reference to the accompanying drawings.
As shown in
The print control program 12a is for a printing control procedure including an error recovery procedure to be described later. The error recovery method selection program 12b allows the user to select an error recovery method for each error category and updates the error recovery method definition file 12d according to the error recovery method selected by the user. The error recovery program 12c is for, depending on an error category of a detected error, automatically executing an error recovery procedure or controlling the display device 40 to display, on the operation guide message window 42, an error message and an operation guide message corresponding to the error category so as to prompt the user to input an instruction as to whether to continue printing or not.
With the above-described configuration, when print data in PDL format is transmitted from the host computer 2, the CPU 11 invokes the print control program 12a, prepares image data based on the received print data in PDL format, modulates the image data into a video signal, and sends the video signal to the print mechanism 20 for print errors that can occur in a print operation are classified into a plurality or error categories in accordance with the nature of the errors. In this embodiment, the errors are classified into four categories including “sheet size mismatch error”, “font selection error”, “device configuration mismatch error”, and “user data error” (see
In this embodiment, an error code is assigned to each error. Each error code has a bit format of “xxxxxxxxNNNNNNNN (1 word), of which xxxxxxxx is defined as classification code and NNNNNNNN is defined as detail code. The error category definition file 12d lists as many error codes as the number of all possible errors. In other words, the error category definition file 12d stores, in a map format, the classification codes in one-to-one correspondence with the detail codes as shown in
In this embodiment, a user sets an error recovery method for each error category in a following manner. Before starting a print operation or when a print operation is being suspended, the user invokes the error recovery method selection program 12b through operation on the input device 30. More specifically, as the user operates the input device 30 according to a predetermined procedure, the CPU 11 invokes the error recovery method selection program 12b and controls the display device 40 to display the automatic print continuation setting window 41 as shown in
Then, the user decides whether or not to set (select) an automatic print continuation for each error category on the automatic print continuation setting window 41. In this embodiment, the window 41 displays the four error categories of “sheet size mismatch error”, “font selection error”, “device configuration mismatch error”, and “user data error”, enabling the user to specify whether or not to execute the automatic print continuation for each error category using radio buttons.
In the example shown in
The user can also specify a maximum time for operation on the automatic print continuation setting window 41. The maximum time for operation is a maximum time period given to the user when the operation guide message window 42 is displayed as described later. The specified maximum time for operation is stored in a predetermined address of the error recovery method definition file 12d in the nonvolatile memory 12.
Next, a procedure executed in the printer controller 10 will be described. When the printer controller 10 is started, firstly the print control program 12a is invoked as a root task, and a procedure shown in
The data reception/PDL analysis task will be described with reference to the flowchart in
In S12, it is determined whether or not such an error has occurred. If it is determined in S12 that no error has occurred (S12: NO), then the procedure returns to S10 to repeat the loop. On the other hand, if it is determined in S12 that an error has occurred (S12: YES), then in S13 a variable Err is set to an error code corresponding to the error, and an error recovery procedure is executed in S14. Thereafter, the procedure returns to S10 to repeat the loop. Detailed description of the error recovery procedure will be described later.
The image rendering task will be described with reference to the flowchart in
The image printing task will be described with reference to the flowchart of
Here, in the image printing procedure in S31, a size check is performed before printing. That is, the size of recording sheets mounted in the print mechanism 20 is detected using a sensor 21 (
Next, the error recovery procedure will be described with reference to the flowcharts in
In the error recovery procedure, first in S51 of
If so (S54: YES), then a device configuration mismatch error recovery procedure is executed in S58, and then the procedure returns. On the other hand, if not (S54: NO), then it is determined in S55 whether or not the retrieved error category is “user data error” (i.e., whether or not the classification code is “0x40”). If so (S55: YES), then a user data error recovery procedure is executed in S59, and then the procedure ends. On the other hand, if not (S54: NO), then the procedure returns.
The sheet size mismatch error recovery procedure that is called and executed in S56 of
Thereafter, the procedure proceeds to S69, where it Is determined whether or not a wait time has elapsed. Here, the wait time is the maximum time that the user has input on the automatic print continuation setting window 41. If it is determined that the wait time has not elapsed (S69: NO), then it is determined in S71 whether or not an input operation is performed by the user on the operation guide message window 42. If no input operation is performed (S71: NO), then the procedure returns to S69.
Here, if infinity has been set for the maximum time for operation, the procedure keeps waiting for an input operation by the user, while the display device 40 keeps displaying the operation guide message window 42. On the other hand, if nil has been set for the maximum time for operation, a positive determination is immediately made in S69 (S69: YES), and the procedure proceeds to S70. It should be noted that if nil is set for the maximum time for operation, the procedure could alternatively proceed to S70 after erasing the operation guide message window 42 when a negative determination is made in S64 (S64: NO).
In S72, it is determined whether or not the input operation by the user is for changing the error recovery method. If so (S72: YES), then an error recovery method specification file update procedure is executed in S73. In this procedure, the error recovery method definition file 12d is updated based on the change made on the operation guide message window 42, and also the operation guide message window 42 is updated in accordance with the change. Then, the procedure returns to S69. On the other hand, if not (S72: NO), it is determined in S74 whether or not the OK button has been pressed by the user. If so (S74: YES), then the procedure proceeds to S80.
If it is determined in S74 that the OK button has not been pressed (S74: NO), this means that the CANCEL button has been pressed, and then the procedure proceeds to S76. In S76, an operation guide message “please set specified size of paper” is displayed on the display device 40, prompting the user to set recording sheets in the print mechanism 20. Then, in S77, it is determined whether or not a recording sheet is set in the print mechanism 20 based on a status of the sensor 21 (
In S78, the size of the recording sheet set in the print mechanism 20 is detected based on a detection signal from the sensor 21. In S79, it is determined whether or not the detected size of the recording sheet matches the specified size. If not (S79: NO), then the procedure returns to S64. If so (S79: YES), then the procedure proceeds to S80.
In S80, a message to request to continue the current print job is transmitted to the image printing task as a message for self task, and subsequently the procedure returns. If the image printing task receives in S30 (
If it is determined in S69 that the wait time has elapsed (S69: YES), this means that the user has not performed any input operation, and then the procedure proceeds to S70. In S70, a message to request to skip the current job is transmitted to the image printing task as a message for self task, and subsequently the procedure returns. If the image printing task receives in S30 (FIG. 10) the message for self task which has been transmitted in S70, then the current print job is suspended in S31, and waits for reception of a next message for self task (next print job). Here, the suspended print job is stored in the nonvolatile memory 12 as a print queue so that the print operation may be resumed by the user as desired.
Next, the font selection error recovery procedure that is called and executed in S57 of
If it is determined in S104 that the OK button has been pressed (S104: YES), or if a positive determination is made in S92 (S92: YES), then the procedure proceeds to S105, where an alternate font whose attributes are closest to those of the specified font is selected. At this time, if there is no font that resembles the specified font (for example, when there are only alphabetic fonts, and no Japanese fonts are available), character codes are replaced by symbols, such as blanks (JIS Code: 0x2222) or square symbols (JIS Code: 0x2223). Selection of an alternate font is performed in accordance with definition in the PDL specification. In S106, a message to request to continue the current job is transmitted to the data reception/PDL analysis task as a message for self task, and subsequently the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
If it is determined in S104 that the OK button has not been pressed (S104: NO), this means that the CANCEL button has been pressed, and the procedure proceeds to S107. In S107, a message to request to suspend the current job and to skip to next job is transmitted to the data reception/PDL analysis task as a message for self task, and then the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
Next, the device configuration mismatch error recovery procedure that is called and executed in S58 of
First in S201, an error recovery method corresponding to the “device configuration mismatch error” is retrieved based on the classification code by referring to the error recovery method definition file 12d (
If it is determined in S214 that the OK button has been pressed (S214: YES), or if a positive determination is made in S202 (S202: YES), then the procedure proceeds to S215. In S215, specified printing requirement that cannot be met is changed to a printing requirement that can be met. In this example, duplex printing requirement is changed to simplex printing requirement. Then, in S216, a message to request to continue the current job is transmitted to the data reception/PDL analysis task as a message for self task, and subsequently the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
If it is determined in S214 that the OK button has not been pressed (S214: NO), this means that the CANCEL button has been pressed, and then the procedure proceeds to S217. In S217, a message to request to suspend the current job and to skip to next job is transmitted to the data reception/PDL analysis task as a message for self task, and subsequently the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
The user data error recovery procedure that is called and executed in S59 of
If it is determined in S234 that the OK button has been pressed (S234: YES), or if a positive determination is made in S222 (S222: YES), then the procedure proceeds to S235. In S235, data that have caused the error is made invalid, and then in S236, a message to request to continue the current print job is transmitted with an invalidating command to the data reception/PDL analysis task as a message for self task, and subsequently the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
If it is determined in S234 that the OK button has not been pressed (S234: NO), this means that the CANCEL button has been pressed, and the procedure proceeds to S237. In S237, a message requesting suspension of the current print job is transmitted to the data reception/PDL analysis task as a message for self task, and subsequently the procedure returns. Here, if the data reception/PDL analysis task receives in S10 (
As described above, according to the present invention, a user can set whether to execute an automatic print continuation for when a print error occurs for each of a plurality of error categories. Therefore, a print device that can prevent unexpected printing results and that is excellent in operationality is provided.
In the above-described embodiment, when an error occurs in a printer and if automatic print continuation has been set for a corresponding error category, then the printer automatically executes an error recovery procedure to ignore the error. If, on the other hand, an automatic print continuation has not been set for the corresponding error category, an error message is displayed, prompting a user to input an instruction. At this time, if the user instructs printing continuation, an error recovery procedure is executed to continue print operation. However, if the user instructs suspension of print operation or if the user does not input any instruction, then the print job is suspended, and the procedure proceeds to a procedure for a next print job. Thus, the printer can automatically print a large volume of data without being attended by the user when an automatic print continuation is set, whereas the user can intervention to execute an appropriate error recovery procedure when a corresponding error recovery method is set to a recovery by user's operation. Since the user can set either an automatic print continuation or a recovery by user's operation for each error category, any error can be dealt with appropriately depending on its nature. This also enables a large amount of consecutive printing without causing printing results differing from expected ones, since an error recovery procedure is executed in a manner desired by a user.
Because the error recovery method definition file 12d is stored in the nonvolatile memory 12, the error recovery method definition file 12d is not lost even if the main power of the printer 1 is turned OFF.
Because the errors that may occur in the printer 1 are classified into error categories in accordance with the nature of each error, and because the user can set an error recovery method for each error category, the user does not need to set an error recovery method for each one of the errors, reducing burden on the user.
While some exemplary embodiments of this invention have been described in detail, those skilled in the art will recognize that there are many possible modifications and variations which may be made in these exemplary embodiments while yet retaining many of the novel features and advantages of the invention.
For example, when print job is suspended because of data readout error due to non-existence of a form overlay file or the like, a guide message could be displayed on a display device for guiding a user to register the form overlay data.
The print control program 12a, the error recovery method selection program 12b, and the error recovery program 12c could be stored in a computer readable non-volatile storing medium, such as hard disk or ROM. The CPU can invoke these programs and execute corresponding procedures. Alternatively, the programs could be loaded into the RAM from the storing medium.
Number | Date | Country | Kind |
---|---|---|---|
P2002-354847 | Dec 2002 | JP | national |
P2003-405519 | Dec 2003 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5620264 | Kagita | Apr 1997 | A |
5625757 | Kageyama et al. | Apr 1997 | A |
5799206 | Kitagawa et al. | Aug 1998 | A |
5835765 | Matsumoto | Nov 1998 | A |
6144457 | Higuchi | Nov 2000 | A |
6327051 | Moro et al. | Dec 2001 | B1 |
6504619 | Kageyama et al. | Jan 2003 | B1 |
6604017 | Richardson et al. | Aug 2003 | B1 |
6724494 | Danknick | Apr 2004 | B1 |
6971732 | Seshimo et al. | Dec 2005 | B1 |
6985257 | Kidani et al. | Jan 2006 | B2 |
7085904 | Mizuno et al. | Aug 2006 | B2 |
7398422 | Amano et al. | Jul 2008 | B2 |
7543165 | Inoue | Jun 2009 | B2 |
7656548 | Hagiwara | Feb 2010 | B2 |
20020039116 | Hashimoto | Apr 2002 | A1 |
20030025928 | Nagasawa et al. | Feb 2003 | A1 |
Number | Date | Country |
---|---|---|
2003-170643 | Jun 2003 | JP |
JP 63-059622 | Mar 1988 | WO |
JP 6030146 | Feb 1994 | WO |
JP 2002-311759 | Oct 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20040165209 A1 | Aug 2004 | US |