Patent ID: 7748817

Claim:
A liquid ejection apparatus including a liquid ejection head having a nozzle, a cleaning mechanism that performs cleaning of the nozzle by drawing a liquid from inside the nozzle, and a controller that controls operation of the liquid ejection apparatus, wherein the controller includes: a timer device that tracks time; a first memory section that stores an end time at which a previous cycle of the cleaning has ended as end time information; a second memory section that stores a tracked time tracked by the timer device as tracked time information; a power supply that is charged when a power is supplied to the liquid ejection apparatus and supplies the charged power to the timer device when power supply to the liquid ejection apparatus is stopped; a determining section that determines whether time tracking by the timer device is stopped; and a tracked time correcting section, wherein, if determination of the determining section is positive when the power supply to the liquid ejection apparatus is resumed after having been stopped, the tracked time correcting section reads out the tracked time information from the second memory section and causes the timer device to start the time tracking from the time indicated by the tracked time information that was stored when power supply to the liquid ejection apparatus was stopped; wherein, if the controller determines that the difference between the tracked time tracked by the timer device and the end time indicated by the end time information stored in the first memory section is longer than or equal to a predetermined period, the controller operates the cleaning mechanism to carry out the cleaning.