摘要 |
PURPOSE:To quickly execute an analyzing work for the cause of an abnormal operation by providing a self-diagnostic means which can print a state of a program which is being operated and a received data at the time of an interruption. CONSTITUTION:A printing device is constituted of a microprocessor provided with a printing circuit 1, a data receiving circuit 2 from an external device, an abnormal state display circuit 3, a RAM 4 for storing a received data, a RAM 5 for storing a program executing state, a printing means 6, etc. In this case, an interrupting means 10 for applying an interrupting signal to the microprocessor which is being operated, and a self-diagnostic means 11 which is started by said means are provided. In this state, when an interruption occurs in the course of an operation, a program which is being operated is discontinued and the self-diagnostic means 11 is started, and a diagnostic program is executed. In this regard, the self-diagnostic means 11 has a function for saving a program executing state, an initializing function of the printing device, and a function for printing the saved program executing state and the contents of a received data storage, and it is executed. |