A moving device for alternatively and selectively moving a discharge head for printing by discharging an ink to a printing medium (M) being conveyed in a first horizontal direction or a maintenance part for performing maintenance of the discharge head in a second horizontal direction different from the first horizontal direction, comprising: a body frame ; a first body-side rotating member and a second body-side rotating member each mounted rotatably on the body frame while being separated from each other in the second horizontal direction; a head mounting frame provided movably between the first body-side rotating member and the second body-side rotating member while mounting the discharge head ; a maintenance mounting frame provided movably between the first body-side rotating member and the second body-side rotating member while mounting the maintenance part below the head mounting frame ; a single motor coupled to the head mounting frame ; a head-side rotating member provided rotatably on the head mounting frame , the head-side rotating member rotating by receiving a rotational drive force of the motor ; a cord having an intermediate part laid among the first body-side rotating member , the head-side rotating member and the second body-side rotating member , and both end parts of the cord being fixed to the maintenance mounting frame ; a cord restriction switcher configured to switch movement restriction and movement restriction release of the cord ; and a head restriction switcher configured to switch movement restriction and movement restriction release of the head mounting frame , wherein the maintenance mounting frame is moved together with the maintenance part by operating the motor while releasing the movement restriction of the cord and restricting a movement of the head mounting frame, and the head mounting frame is moved together with the discharge head by operating the motor while restricting a movement of the cord and releasing the movement restriction of the head mounting frame . a body frame ; a first body-side rotating member and a second body-side rotating member each mounted rotatably on the body frame while being separated from each other in the second horizontal direction; a head mounting frame provided movably between the first body-side rotating member and the second body-side rotating member while mounting the discharge head ; a maintenance mounting frame provided movably between the first body-side rotating member and the second body-side rotating member while mounting the maintenance part below the head mounting frame ; a single motor coupled to the head mounting frame ; a head-side rotating member provided rotatably on the head mounting frame , the head-side rotating member rotating by receiving a rotational drive force of the motor ; a cord having an intermediate part laid among the first body-side rotating member , the head-side rotating member and the second body-side rotating member , and both end parts of the cord being fixed to the maintenance mounting frame ; a cord restriction switcher configured to switch movement restriction and movement restriction release of the cord ; and a head restriction switcher configured to switch movement restriction and movement restriction release of the head mounting frame , wherein the maintenance mounting frame is moved together with the maintenance part by operating the motor while releasing the movement restriction of the cord and restricting a movement of the head mounting frame, and the head mounting frame is moved together with the discharge head by operating the motor while restricting a movement of the cord and releasing the movement restriction of the head mounting frame . <EOS>