Patent ID: 7119914

Claim:
A printer for executing image recording on a recording medium, said printer comprising: a housing having a space for executing image recording on the recording medium; a discharge port configured and positioned to discharge the recording medium from said housing; a cover member capable of being displaced between (i) a position obstructing said discharge port and conveyance of the recording medium and (ii) a position in which the recording medium can be discharged from said discharge port without being obstructed by said cover member; a detection device disposed at a position at which said detection device can detect whether said cover member is at the position to obstruct conveyance of the recording medium, wherein said cover member comprises a discharge tray configured and positioned to receive the recording medium discharged from said discharge port; a main-body cover member configured and positioned to openably/closably cover the space for executing image recording; and a main-body-cover detection device configured and positioned to detect a state of opening/closing of said main-body cover member; wherein, when said cover member and said main-body cover member are detected to be at positions inadequate for execution of recording on the recording medium, execution by said printer of image recording on the recording medium is not performed, wherein a unit comprising said detection device and said main-body-cover detection device comprises: an optical sensor having a photosensing portion, a first blocking plate configured and positioned to block a first prescribed area of said photosensing portion when said discharge tray is closed; and a second blocking plate configured and positioned to block a second prescribed area which is different from the first prescribed area of said photosensing portion when said main-body cover member is closed, and wherein execution by said printer of recording on the recording medium is not performed or is interrupted according to the output of said optical sensor when the photosensing portion is blocked by the first blocking plate.