PURPOSE: To simplify the picture input and output device and to reduce the cost by using the rotation of a carrier roller when a head unit is shifted and operating without a solenoid and the like.
CONSTITUTION: When a motor 20 rotates in the positive direction, a document is separated one by one from a document paper supply roller 3 and a separate roller 2 and carried through document guides 4 and 5 from a document table 1. At this time, since a shift roller 19 rotates in the direction shown by the arrow C, a head unit integrating a contact sensor 6 and a thermal head 15 has slots on both ends shifting in the direction A along pins 22 and 23. The terminals of the slots impinge on the pins 22 and 23, and the contact sensor 6 on the head unit is abutted on the shift roller 19.