A laser marking apparatus comprising:
- a laser light generator that generates laser light to be irradiated onto a marking area of a workpiece;
- a laser light scanner that two-dimensionally scans the laser light generated by the laser light generator within the marking area;
- an imaging unit that captures an image of the workpiece to obtain a captured image;
- a distance detector that outputs a detection signal indicating the distance to a distance measurement position indicating a position for measuring the distance on the surface of the workpiece;
- a controller that executes a marking process to form a predetermined marking pattern within the marking area by controlling the laser light generator and the laser light scanner, and executes a pre-post marking process consisting of at least one of a pre-marking process that obtains information related to at least one of the position and orientation of the workpiece before executing the marking process by controlling at least one of the imaging unit and the distance detector, and a post-marking process that obtains information related to the marking pattern formed by the marking process after executing the marking process by controlling at least one of the imaging unit and the distance detector;
- wherein the laser marking apparatus further comprises:
- an order information storage that stores order information associated with each of the pre-post marking processes;
- a trigger signal receiver that accepts input of a trigger signal for causing the controller to execute the marking process;
- a workflow editor that edits a workflow defining a series of processes including the marking process to be executed by the controller from when the trigger signal is input to the trigger signal receiver until it is possible to accept input of the trigger signal again;
- a display unit that displays the pre-post marking processes corresponding to and associated with the order information stored in the order information storage;
- an input receiver that accepts selection of the pre-post marking processes to be included in the workflow in response to user input from among the pre-post marking processes displayed on the display unit;
- wherein the workflow editor adds the pre-post marking processes for which selection has been accepted by the input receiver to the workflow including the marking process in an order according to the order information stored in the order information storage corresponding to said pre-post marking processes, and the controller executes the marking process and the pre-post marking processes in the order specified by the workflow to which the pre-post marking processes have been added by the workflow editor.