A moving device for alternatively and selectively moving a discharge head (321, 331) for printing by discharging an ink to a printing medium being conveyed in a first horizontal direction or a maintenance part for performing maintenance of the discharge head (321, 331) in a second horizontal direction different from the first horizontal direction, comprising: a body frame; a first body-side rotating member (573d, 573e, 573f) and a second body-side rotating member (573g, 573h, 573i) 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 (573d, 573e, 573f) and the second body-side rotating member (573g, 573h, 573i) while mounting the discharge head (321, 331); a maintenance mounting frame provided movably between the first body-side rotating member (573d, 573e, 573f) and the second body-side rotating member (573g, 573h, 573i) while mounting the maintenance part below the head mounting frame; a single motor coupled to the head mounting frame; a head-side rotating member (573a, 573b, 573c) provided rotatably on the head mounting frame, the head-side rotating member (573a, 573b, 573c) rotating by receiving a rotational drive force of the motor; a cord having an intermediate part laid among the first body-side rotating member (573d, 573e, 573f), the head-side rotating member (573a, 573b, 573c) and the second body-side rotating member (573g, 573h, 573i), 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 (321, 331) 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 (573d, 573e, 573f) and a second body-side rotating member (573g, 573h, 573i) 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 (573d, 573e, 573f) and the second body-side rotating member (573g, 573h, 573i) while mounting the discharge head (321, 331); a maintenance mounting frame provided movably between the first body-side rotating member (573d, 573e, 573f) and the second body-side rotating member (573g, 573h, 573i) while mounting the maintenance part below the head mounting frame; a single motor coupled to the head mounting frame; a head-side rotating member (573a, 573b, 573c) provided rotatably on the head mounting frame, the head-side rotating member (573a, 573b, 573c) rotating by receiving a rotational drive force of the motor; a cord having an intermediate part laid among the first body-side rotating member (573d, 573e, 573f), the head-side rotating member (573a, 573b, 573c) and the second body-side rotating member (573g, 573h, 573i), 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 (321, 331) by operating the motor while restricting a movement of the cord and releasing the movement restriction of the head mounting frame.