摘要 |
PROBLEM TO BE SOLVED: To provide a printer that is controlled by a program and further facilitates analysis of an error cause, a contribution of the program to the error, and the like.SOLUTION: A printer 3 includes: a CPU for executing a control program 311 including plural program modules to be executed in a given order; a print head 43 for printing on a print medium; a transport motor 42 for transporting the print medium; and a drive part 41 for detecting a transport amount of the transport motor 42. When an error is detected, a program execution part 300 constituted by the CPU outputs, together, information identifying a program module executed by the CPU when the error has been detected, an error code indicating the detected error, and a transport amount detected by transport amount detection means. |