A component mounting machine comprising: a substrate holding device configured to hold a substrate; a component supply device configured to supply a component; a mounting head configured to pick up and hold the component supplied from the component supply device and mount the component on the substrate held by the substrate holding device; and a moving device configured to move the mounting head, the moving device including a unidirectional moving device configured to move the mounting head in a first direction using a linear motor, wherein the unidirectional moving device is provided with a base, a pair of guide rails arranged on the base extending parallel in the first direction, a slide configured to hold the mounting head, the slide being guided by the pair of guide rails and movable in the first direction, a stator that configures the linear motor, the stator being held on the base with multiple magnets that are lined up in the first direction, a movable element that configures the linear motor, the movable element including a coil and being arranged on the slide between the pair of guide rails, characterized by a bracket fixed to the movable element and configured to hold a portion of wires that are used to supply power to the linear motor, wherein the unidirectional moving device is configured such that the base, which has a substantially frame shape, is arranged on an upper section of the component mounting machine, the slide is configured such that the movable element is fixed to an upper section of the slide, and the bracket is fixed to the movable element in a manner protruding from the base upwards from between the pair of guide rails. a substrate holding device configured to hold a substrate; a component supply device configured to supply a component; a mounting head configured to pick up and hold the component supplied from the component supply device and mount the component on the substrate held by the substrate holding device; and a moving device configured to move the mounting head, the moving device including a unidirectional moving device configured to move the mounting head in a first direction using a linear motor, wherein the unidirectional moving device is provided with a base, a pair of guide rails arranged on the base extending parallel in the first direction, a slide configured to hold the mounting head, the slide being guided by the pair of guide rails and movable in the first direction, a stator that configures the linear motor, the stator being held on the base with multiple magnets that are lined up in the first direction, a movable element that configures the linear motor, the movable element including a coil and being arranged on the slide between the pair of guide rails, characterized by a bracket fixed to the movable element and configured to hold a portion of wires that are used to supply power to the linear motor, wherein the unidirectional moving device is configured such that the base, which has a substantially frame shape, is arranged on an upper section of the component mounting machine, the slide is configured such that the movable element is fixed to an upper section of the slide, and the bracket is fixed to the movable element in a manner protruding from the base upwards from between the pair of guide rails.