Patent ID: 8267401

Claim:
The recording apparatus for performing recording on a medium, comprising: a transporting unit which transports the medium; a recording unit which performs the recording on the transported medium; a control unit which controls the transporting unit and the recording unit; and a detection unit which detects presence or absence of the medium at a predetermined position of the upstream side in the transport direction from a recording position of the recording unit, wherein the control unit includes a measuring unit which performs a measuring process for measuring a transporting amount of the medium in a first distance from a position where an end of the medium passes through the predetermined position to a position where the medium reaches a recording limit position where the recording of the recording unit can be performed, wherein if the detection unit detects the medium absence, a performance of the measuring process of the measuring unit is temporarily suspended, wherein if the detection unit detects the medium presence during or after transporting the medium from the time the medium absence is detected before the medium is transported for a regulated distance which is set to a value equal to or greater than a diameter of a hole provided to the medium and smaller than the first distance, a canceling process of canceling the performance of the measuring process that has been suspended is performed, and wherein if the medium is transported for the regulated distance without detection of the medium presence by the detection unit, the measuring process that has been suspended is allowed to be performed based on a value where the transporting amount of the medium during suspending of the measuring process is reflected, and wherein if the canceling process is performed, during or after transporting the medium, the control unit repeats the transporting of the medium for the regulated distance and the canceling process each time the detection unit detects the medium absence until the medium is transported for the regulated distance without detection of the medium presence by the detection unit during the transporting of the medium.