摘要 |
A printer includes a motor, a position calculation unit, a speed calculation unit, a position control unit, a speed control unit, and a switching unit. The motor generates a driving force by which a transported object is transported. The position calculation unit calculates a current position of the transported object through driving the motor. The speed calculation unit calculates a current speed of the transported object through driving the motor. The position control unit controls the motor using at least PI control on the basis of the current position calculated by the position calculation unit and a target position. The speed control unit controls the motor using at least PI control on the basis of the current speed calculated by the speed calculation unit and a target speed. The switching unit switches from control of the motor using the speed control unit to control of the motor using the position control unit at a position that is a predetermined distance before a target stop position to which the motor is driven.
|