A component mounting machine comprising: a nozzle station in which multiple suction nozzles for exchanging with a suction nozzle held by a mounting head are arranged in multiple columns; a camera which is configured to image a fiducial mark of a circuit board on which a component is mounted; and control means for controlling a nozzle exchange operation of moving the mounting head and the camera above the nozzle station and exchanging the suction nozzles held by the mounting head with the suction nozzles of the nozzle station , wherein a nozzle ID code display section in which a code of identification information of the suction nozzle (hereinafter, referred to as "nozzle ID code") is displayed at a position at which imaging can be performed by the camera from above is provided in the suction nozzle , wherein the control means is configured to control an operation of imaging the nozzle ID code display section of each suction nozzle in each column of the nozzle station by the camera and an image processing operation of processing the image of the nozzle ID code display section imaged by the camera and reading the nozzle ID code, and wherein, in a case where the nozzle ID code of each suction nozzle in each column of the nozzle station is read, the control means is configured to perform on-the-fly imaging of sequentially imaging the nozzle ID code display sections of each suction nozzle in each column while moving the camera at a predetermined speed along an arrangement direction of the suction nozzle of each column without stopping the camera , to reverse the movement direction of the camera each time the last imaging operation of one column is completed and the camera is moved for an imaging operation of an adjacent column, and to store the nozzle ID code of each suction nozzle in each column read in the image processing operation in storage means in association with a position of each suction nozzle . a nozzle station in which multiple suction nozzles for exchanging with a suction nozzle held by a mounting head are arranged in multiple columns; a camera which is configured to image a fiducial mark of a circuit board on which a component is mounted; and control means for controlling a nozzle exchange operation of moving the mounting head and the camera above the nozzle station and exchanging the suction nozzles held by the mounting head with the suction nozzles of the nozzle station , wherein a nozzle ID code display section in which a code of identification information of the suction nozzle (hereinafter, referred to as "nozzle ID code") is displayed at a position at which imaging can be performed by the camera from above is provided in the suction nozzle , wherein the control means is configured to control an operation of imaging the nozzle ID code display section of each suction nozzle in each column of the nozzle station by the camera and an image processing operation of processing the image of the nozzle ID code display section imaged by the camera and reading the nozzle ID code, and wherein, in a case where the nozzle ID code of each suction nozzle in each column of the nozzle station is read, the control means is configured to perform on-the-fly imaging of sequentially imaging the nozzle ID code display sections of each suction nozzle in each column while moving the camera at a predetermined speed along an arrangement direction of the suction nozzle of each column without stopping the camera , to reverse the movement direction of the camera each time the last imaging operation of one column is completed and the camera is moved for an imaging operation of an adjacent column, and to store the nozzle ID code of each suction nozzle in each column read in the image processing operation in storage means in association with a position of each suction nozzle . <EOS>