摘要 |
<p>PURPOSE:To appropriately execute an abnormality processing such as a service interruption processing, etc., in a printer controller having a general interface of Centronics. CONSTITUTION:Whether the processor is in the course of printing or not is checked by a motor signal, and in the case of being in the course of printing, a BUSY flag for showing a fact to be in the course of printing is turned off, and from a reprinting timer provided in a RAM and a state of the RAM for storing printing data, whether a data transfer can be executed or not is checked. When the data transfer can be executed, the data transfer is executed, and an in-transfer flag is turned on until the data transfer of a one-line portion is completed, and also, the reprinting timer T is set to 60. When the data transfer is completed, a printing processing time by a printer is measured by the reprinting time T, the in-transfer flag is turned off and a BUSY flag is turned on until the reprinting timer T becomes '0', and also, printing data is stored in a reprinting buffer, and when the reprinting timer T becomes '0', it is decided that printing is completed, and the BUSY flag is turned off and the processing returns to an initial state.</p> |