Processing program generation device, processing system, processing program generation method, and computer program

The machining program generation device identifies feature points on a workpiece's outer edge to generate machining paths and programs, addressing the high labor and cost issue in existing systems, enabling efficient and precise machining for diverse workpiece shapes.

WO2026244958A1PCT designated stage Publication Date: 2026-11-26MITSUBISHI HEAVY IND LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2026/010706
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-22
Filing Date
2026-03-18
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing machining systems require significant labor and costs to store contour patterns and machining paths for various workpiece shapes, especially in high-mix low-volume production.

Method used

A machining program generation device that identifies three or more feature points on a workpiece's outer edge, generates a processing path by connecting these points, and creates a processing program based on the path, using a robot arm with an imaging unit and tool mounting unit to perform machining without pre-registering the workpiece's outer shape.

Benefits of technology

Reduces the time and cost required to create machining programs for workpieces of various shapes by identifying feature points and generating paths based on these points, allowing for efficient and precise machining without pre-registering the workpiece's shape.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2026010706_26112026_PF_FP_ABST
    Figure JP2026010706_26112026_PF_FP_ABST
Patent Text Reader

Abstract

This processing program generation device comprises: an imaging unit that captures an image of a workpiece; and a program generation unit that generates, on the basis of the captured image of the workpiece, a processing program for performing processing using a prescribed processing tool along an outer edge of the workpiece. The program generation unit includes: an identification unit that identifies, on the basis of the image of the workpiece, three or more feature points that match the shape of a pre-registered feature portion of the outer edge of the workpiece; a path generation unit that generates a processing path extending along the outer edge of the workpiece by connecting the identified three or more feature points; and a program generation unit that generates the processing program on the basis of the generated processing path.
Need to check novelty before this filing date? Find Prior Art

Description

Machining Program Generation Device, Machining System, Machining Program Generation Method, and Computer Program

[0001] This disclosure relates to a machining program generation device, a machining system, a machining program generation method, and a computer program. This application claims priority based on Japanese Patent Application No. 2025-085381 filed in Japan on May 22, 2025, the content of which is incorporated herein by reference.

[0002] Patent Document 1 discloses a configuration in which a workpiece is imaged, a shape pattern of the workpiece is detected based on the captured contour image of the workpiece, a machining path for machining the workpiece is selected based on the detected shape pattern, and a machining command is generated based on the selected machining path. In the configuration described in Patent Document 1, contour patterns as shape patterns of multiple types of representative workpieces, and machining paths corresponding to each contour pattern are stored. To select a machining path, a contour pattern closest to the contour image of the workpiece is searched for using techniques such as pattern matching, and the corresponding machining path is selected.

[0003] Japanese Unexamined Patent Application Publication No. 2007-025991

[0004] However, in the configuration described in Patent Document 1, it is necessary to store in advance contour patterns as shape patterns of multiple types of workpieces, and machining paths corresponding to each contour pattern. Therefore, especially when performing high-mix low-volume production, it is necessary to store in advance a large number of contour patterns and machining paths according to the shape of each of the various types of workpieces, resulting in a problem that significant labor and costs are required.

[0005] This disclosure has been made to solve the above problems, and aims to provide a machining program generation device, a machining system, a machining program generation method, and a computer program that can reduce the labor and costs required to create machining programs for workpieces of various shapes.

[0006] To solve the above problems, the processing program generation apparatus according to the present disclosure comprises an imaging unit for imaging a workpiece, and a program generation unit for generating a processing program to perform processing along the outer edge of the workpiece using a predetermined processing tool based on the image of the workpiece, wherein the program generation unit comprises an identification unit for identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion based on the image of the workpiece, a path generation unit for generating a processing path extending along the outer edge of the workpiece by connecting the three or more identified feature points, and a processing program generation unit for generating the processing program based on the generated processing path.

[0007] The processing system according to this disclosure comprises a processing program generation device as described above, a tool mounting unit provided on the robot arm and capable of mounting the processing tool, and an arm control unit that controls the robot arm based on the processing program.

[0008] The processing program generation method relating to this disclosure is a processing program generation method for a processing program generation apparatus as described above, and includes the steps of: capturing an image of a workpiece; identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion based on the image of the workpiece; generating a processing path extending along the outer edge of the workpiece by connecting the three or more identified feature points; and generating the processing program based on the generated processing path.

[0009] The computer program relating to this disclosure causes the program generation unit of the processing program generation apparatus described above to execute a process including: capturing an image of a workpiece; identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion based on the image of the workpiece; generating a processing path extending along the outer edge of the workpiece by connecting the three or more identified feature points; and generating the processing program based on the generated processing path.

[0010] The processing program generation apparatus, processing system, processing program generation method, and computer program of this disclosure can reduce the time and cost required to create processing programs for workpieces of various shapes.

[0011] This is a schematic diagram showing the general configuration of a machining system according to an embodiment of the present disclosure. This is a block diagram showing the functional configuration of the program generation unit. This is a diagram showing an example of an image of a workpiece. This is a diagram showing examples of multiple types of feature parts pre-registered in the storage unit. This is a diagram showing examples of feature points on the outer edge of a workpiece identified by the identification unit. This is a diagram showing examples of the inclination of the surface of a workpiece in a portion containing feature points, as detected by the identification unit. This is a diagram showing examples of angles of each feature point calculated in order to generate a machining path in the path generation unit. This is a diagram showing an example of a machining path generated by the path generation unit. This is a flowchart showing the procedure of a machining program generation method according to an embodiment of the present disclosure.

[0012] The following describes the processing program generation device, processing system, processing program generation method, and configuration for implementing the computer program according to this disclosure with reference to the attached drawings. However, this disclosure is not limited to this embodiment. (Configuration of the processing system) As shown in Figure 1, the processing system 1 of this embodiment comprises a processing program generation device 2 and a workpiece holding device 3. The processing system 1 of this embodiment performs grinding by a grinder as a predetermined processing method on a workpiece W made of, for example, a metal plate. In the processing system 1 of this embodiment, the workpiece W to be processed is held by the workpiece holding device 3. The processing program generation device 2 generates a processing program for performing grinding by a grinder along the outer edge of the workpiece W held by the workpiece holding device 3.

[0013] (Configuration of the processing program generation device) The processing program generation device 2 comprises a trolley 21, a robot arm 22, an imaging unit 25, a program generation unit 40, and an arm control unit 50.

[0014] The trolley 21 is, for example, an automated guided vehicle (AGV). In this embodiment, the trolley 21 is formed in the shape of a rectangular parallelepiped, for example. The trolley 21 has an upward-facing base 23 on its upper surface. The trolley 21 is equipped with a plurality of wheels 24 that make contact with the floor surface. The plurality of wheels 24 are controlled by a driving control device (not shown), enabling the trolley 21 to move autonomously on the floor surface.

[0015] The robot arm 22 is mounted on the base 23 of the trolley 21. The robot arm 22 is a multi-joint robot arm having multiple joints 22j. The base end 22b of the robot arm 22 is fixed on the base 23. The robot arm 22 is constructed by rotatably connecting multiple arm members 22d via joints 22j. The robot arm 22 can change the position and orientation of its tip 22a arbitrarily by rotating each joint. In Figure 1, the robot arm 22 is shown schematically. The configuration of the robot arm 22, including the number of joints 22j, is not limited to the configuration shown in Figure 1, and any configuration is acceptable. The operation of the robot arm 22 is controlled by the arm control unit 50 based on the machining program generated by the machining program generation unit 45, which will be described later.

[0016] An imaging unit 25 is provided at the tip 22a of the robot arm 22. A three-dimensional (3D) camera is used in the imaging unit 25. The imaging unit 25 images the workpiece W. The imaging unit 25, consisting of a three-dimensional camera, acquires point cloud data including the three-dimensional coordinate information of multiple points on the workpiece W. The imaging unit 25 photographs the workpiece W using, for example, a stereo system or a TOF (Time of Flight) system, and detects the distance to each of the multiple points on the workpiece W. For each of the multiple points on the workpiece W, the imaging unit 25 acquires coordinate information (X-Y-Z) in a three-axis coordinate system X-Y-Z, with reference to a reference position set at, for example, the base end 22b of the robot arm 22. The imaging unit 25 outputs the image of the workpiece W and the point cloud data including the three-dimensional coordinate information of each of the multiple points on the workpiece W to the program generation unit 40.

[0017] Furthermore, the tip 22a of the robot arm 22 is equipped with a tool mounting section 22t to which a processing tool T can be attached. The processing tool T is an instrument for performing various processing tasks. In this embodiment, for example, a brush-type grinder is used as the processing tool T for deburring the outer edge of the workpiece W. Other types of grinders, mounted grinding wheels, etc., may also be used as the processing tool T.

[0018] The program generation unit 40 generates a machining program based on the image of the workpiece W captured by the imaging unit 25, in order to perform machining along the outer edge Ws of the workpiece W using a predetermined machining tool T. The program generation unit 40 is a computer equipped with a CPU (Central Processing Unit), ROM (Read Only Memory), RAM (Random Access Memory), etc.

[0019] Figure 2 is a block diagram showing the functional configuration of the program generation unit. As shown in Figure 2, the program generation unit 40 includes an acquisition unit 41, a storage unit 42, a specification unit 43, a path generation unit 44, a processing program generation unit 45, and an output unit 46, which are generated by the CPU executing a program that is pre-stored in the unit.

[0020] Figure 3 shows an example of an image of a workpiece. The acquisition unit 41 acquires the image V of the captured workpiece W, as well as the coordinate information of multiple points on the acquired workpiece W, which is output from the imaging unit 25, for example as shown in Figure 3.

[0021] Figure 4 shows an example of multiple feature parts pre-registered in the memory unit. As shown in Figure 4, the memory unit 42 stores data relating to the shapes of multiple feature parts C. Multiple feature parts C are used to identify the shape (outer shape) along the outer edge of the workpiece W, and for example, they represent the shape of the bent or curved parts of the workpiece. For example, the memory unit 42 stores (registers) data representing the shapes of multiple types of bent parts C1 to C4, each with different vertex angles α1 to α4, as multiple feature parts C.

[0022] Figure 5 shows an example of feature points on the outer edge of a workpiece identified by the identification unit. Based on the image V of the workpiece W, the identification unit 43 identifies three or more feature points P on the outer edge Ws of the workpiece W that match the shape of a pre-registered feature portion C. As shown in Figure 5, the identification unit 43 extracts the outer edge Ws of the workpiece W from the image V using an appropriate image processing method. The identification unit 43 uses an appropriate pattern matching method to identify a portion on the extracted outer edge Ws of the workpiece W that matches one of several types of feature portions C (for example, bent portions C1 to C4) pre-registered in the storage unit 42, and sets the identified portion as a feature point P. In the example in Figure 5, five bent portions on the outer edge Ws of the workpiece W are identified as feature points P1 to P5. For example, feature point P1 matches the feature portion C of the bent portion C2 at angle α2, and feature point P2 matches the feature portion C of the bent portion C3 at angle α3. Feature points P3 to P5 correspond to feature portion C of the bent portion C1 at angle α1. The identification unit 43 obtains the position coordinates (X-Y-Z) in the coordinate system X-Y-Z for each of the identified feature points P1 to P5.

[0023] Figure 6 shows an example of the inclination of the workpiece surface in a portion containing feature points, as detected by the identification unit. The identification unit 43 also detects the inclination of the workpiece surface in a portion A of a predetermined size that includes each of the identified feature points P (P1 to P5), as shown in Figure 6. To do this, the identification unit 43 detects the inclination of the workpiece surface for each of the feature points P (P1 to P5) based on the point cloud data of the predetermined size portion A that includes the feature point P. Based on the detected inclination angle of the workpiece surface in portion A, the identification unit 43 obtains the inclination angles (w, p, r) with respect to the X, Y, and Z axes of the coordinate system X-Y-Z for each of the multiple feature points P.

[0024] Figure 7 shows an example of the angles of each feature point calculated by the path generation unit to generate a machining path. As shown in Figure 7, the path generation unit 44 generates a machining path 200 that extends along the outer edge Ws of the workpiece W by connecting three or more identified feature points P. In this embodiment, when generating the machining path 200, the path generation unit 44 sets a virtual coordinate system based on one of the three or more feature points P. In this embodiment, for example, the path generation unit 44 sets a two-dimensional coordinate system X'-Y' along the V-axis and W-axis that intersect the imaging direction (depth direction) from the imaging unit 25, with feature point P1 as the reference.

[0025] The path generation unit 44 generates a machining path 200 based on the angle θ between each of the other feature points P(P2 to P5) and one feature point P(P1) in the set coordinate system X'-Y'. Specifically, for each of the other feature points P2 to P5 in the set coordinate system X'-Y', the path generation unit 44 calculates the angle θ(θ1 to θ5) between the virtual lines L1 to L5 connecting each of the other feature points P2 to P5 and one feature point P1, and, for example, the V-axis. The angle θ(θ1 to θ5) can be calculated using the following equation (1) based on the position coordinates (x, y) of each of the other feature points P2 to P5 in the coordinate system X'-Y' with the position feature point P1 as the reference: θ = tan-1(y / x) ... (1)

[0026] Figure 8 shows an example of a machining path generated by the path generation unit. The path generation unit 44 determines the order of other feature points P2 to P5 so that the calculated angles θ1 to θ5 are, for example, in ascending order. As shown in Figure 8, the path generation unit 44 generates a machining path 200 by sequentially connecting multiple feature points P1 to P5 starting from one feature point P1, based on the determined order of feature points P2 to P5, and then connecting the last feature point P5 to the first feature point P1. The path generation unit 44 may also determine the order of other feature points P2 to P5 in descending order of the calculated angles θ1 to θ5.

[0027] The machining program generation unit 45 generates a machining program for operating the machining tool T based on the generated machining path 200. The machining program generation unit 45 generates a machining program that can control the orientation of the machining tool T based on the coordinates (X-Y-Z) and inclination angles (w, p, r) at each of the multiple feature points P (P1 to P5) on the machining path 200. For example, when the machining tool T is brought against the outer edge Ws of the workpiece W from a direction perpendicular to the surface of the workpiece W, the orientation of the machining tool T is set at each of the multiple feature points P (P1 to P5) based on the position coordinates (X-Y-Z) and inclination angles (w, p, r) of each feature point P. This makes it possible to position the machining tool T at an appropriate angle to face the workpiece W according to the inclination of the workpiece W.

[0028] Furthermore, the machining program generation unit 45 sets the orientation of the machining tool T at the intermediate point between two feature points P that are moving forward and backward on the machining path 200, based on the respective inclination angles (w, p, r) of the two feature points P. For example, at the intermediate point between two feature points P (for example, feature point P2 and feature point P3), the machining program generation unit 45 sets an intermediate position Pc between feature point P2 and feature point P3 based on the position coordinates (X-Y-Z) of one feature point P2 and the position coordinates of feature point P3. The machining program generation unit 45 may then maintain the machining tool T at an inclination angle corresponding to the inclination angle (w, p, r) at feature point P2 from feature point P2 to the intermediate position Pc, and maintain the machining tool T at an inclination angle corresponding to the inclination angle (w, p, r) at feature point P3 from the intermediate position Pc to feature point P3. Furthermore, the machining program generation unit 45 may gradually change the inclination angle of the machining tool T in the intermediate portion between feature point P2 and feature point P3, from the orientation of the machining tool T at feature point P2 to the orientation of the machining tool T at feature point P3. In this way, the machining program generation unit 45 generates a machining program that can control the orientation of the machining tool T in the intermediate portion between two feature points P that are moving forward and backward on the machining path 200.

[0029] The output unit 46 outputs the machining program generated by the machining program generation unit 45 to the arm control unit 50.

[0030] (Procedure for generating a machining program) Figure 9 is a flowchart showing the procedure for a machining program generation method according to an embodiment of the present disclosure. As shown in Figure 9, the machining program generation method according to an embodiment of the present disclosure includes the steps of: imaging a workpiece W in step S11; identifying feature points P in step S12; generating a machining path 200 in step S13; generating a machining program in step S14; and outputting the machining program in step S15.

[0031] In step S11, where the workpiece W is imaged, the imaging unit 25 of the processing program generation device 2 images the workpiece W. In this embodiment, as shown in Figure 1, the workpiece W is held by the workpiece holding device 3. The workpiece holding device 3 is equipped with a robot arm 32 similar to the robot arm 22. The workpiece holding device 3, like the processing program generation device 2, may have the robot arm 32 mounted on a self-propelled trolley (not shown) on the floor. For example, the workpiece holding device 3 takes workpieces W one by one from a place where multiple workpieces W are stored and holds them with a circle holding unit (not shown) provided at the tip of the robot arm 32. Based on a preset operation program, the workpiece holding device 3 moves the trolley to a predetermined position and faces the held workpieces W toward the processing program generation device 2.

[0032] Meanwhile, the processing program generation device 2 moves the trolley 21 to a position facing the workpiece W held by the workpiece holding device 3, based on a pre-set operation program, and directs the imaging unit 25 towards the workpiece W. The imaging unit 25 then images the workpiece W. At this time, if the imaging field of view of the imaging unit 25 is smaller than the workpiece W, the imaging unit 25 may take multiple images V of the workpiece W while changing its orientation and position. By imaging the workpiece W, the imaging unit 25 acquires point cloud data including the three-dimensional coordinate information of multiple points on the workpiece W. The imaging unit 25 outputs the image of the workpiece W and the coordinate information of each of the acquired points on the workpiece W to the program generation device 40.

[0033] In step S12, which identifies feature points P, the identification unit 43, shown in Figure 2, identifies three or more feature points P on the outer edge Ws of the workpiece W that match the shape of a pre-registered feature portion C, based on the image V of the workpiece W acquired in step S11. As shown in Figure 5, the identification unit 43 identifies a portion on the outer edge Ws of the workpiece W in the image V that matches one of several types of feature portions C (for example, bends C1 to C4; see Figure 4) pre-registered in the storage unit 42, and sets the identified portion as feature point P (feature points P1 to P5). As shown in Figure 6, the identification unit 43 acquires the position coordinates (X-Y-Z) in the coordinate system X-Y-Z and the inclination angles (w, p, r) with respect to the X, Y, and Z axes of the coordinate system X-Y-Z for each of the identified feature points P1 to P5.

[0034] In step S13, which generates the machining path 200, the path generation unit 44 generates a machining path 200 that extends along the outer edge Ws of the workpiece W by connecting three or more identified feature points P. In this embodiment, as shown in Figure 7, the path generation unit 44 sets a two-dimensional coordinate system X'-Y' as described above. The path generation unit 44 generates a machining path 200 as shown in Figure 8 by sequentially connecting the multiple feature points P(P1-P5) based on the magnitude of the angles θ(θ1-θ5) between each of the other feature points P(P2-P5) and one feature point P(P1) in the set coordinate system X'-Y'. In this way, in step S13, the machining path 200 is generated using a two-dimensional coordinate system X'-Y' instead of a three-dimensional one, thereby reducing the computational load on the path generation unit 44.

[0035] In step S14, which generates a machining program, the machining program generation unit 45 generates a machining program based on the generated machining path 200. In step S14, the machining program generation unit 45 generates a machining program that can control the posture of the machining tool T based on the coordinates (X-Y-Z) and inclination angles (w, p, r) at each of the multiple feature points P (P1 to P5) on the machining path 200.

[0036] In step S15, which outputs the machining program, the output unit 46 outputs the machining program generated in step S14 to the arm control unit 50. The arm control unit 50 then receives the machining program and controls the movement of the robot arm 32, which is fitted with the machining tool T, based on the machining program, thereby performing grinding along the outer edge of the workpiece W using the machining tool T.

[0037] (Effects) In the processing program generation device 2, processing system 1, and processing program generation method configured above, based on the image V of the captured workpiece W, three or more feature points P that match the shape of a pre-registered feature portion C are identified from the outer edge Ws of the workpiece W, and a processing path 200 extending along the outer edge Ws of the workpiece W is generated by connecting the three or more identified feature points P, and a processing program is generated based on the generated processing path 200. With this configuration, the processing path 200 and the processing program can be generated by identifying feature points P that match the shape of a pre-registered feature portion C from the outer edge Ws of the workpiece W. As a result, it is not necessary to pre-register the outer shape of the workpiece W. As a result, the effort and cost required to create processing programs for workpieces W of various shapes can be reduced.

[0038] Furthermore, in the above embodiment, the machining path 200 is generated based on the angle θ between each of the other feature points P and the one feature point P in a coordinate system X'-Y' that is based on one of the three or more feature points P. This makes it easy to generate a machining path 200 along the outer edge Ws of the workpiece W by sequentially connecting the three or more feature points P.

[0039] Furthermore, in the above embodiment, based on the image V of the workpiece W captured by the imaging unit 25, which is a three-dimensional camera, the three-dimensional coordinates of the feature points P of the workpiece W and the inclination angle of each feature point P can be obtained from the inclination of the surface of the workpiece W in the portion containing the feature points P. Therefore, by taking into account the inclination angle of each feature point P in addition to the three-dimensional coordinates of each feature point P, a machining program can be generated that can appropriately control the posture of the machining tool T in accordance with the workpiece W, even if the workpiece W is inclined.

[0040] Furthermore, in the above embodiment, in the intermediate portion between two feature points P that are moving forward and backward on the machining path 200, a machining program can be generated that appropriately controls the posture of the machining tool T based on the inclination angle of one of the two feature points P and the inclination angle of the other feature point P.

[0041] Furthermore, in the above embodiment, by capturing an image V of the workpiece W with the imaging unit 25 provided on the robot arm 22, coordinate information of the feature points P of the workpiece W can be easily obtained using the coordinate system X-Y-Z used for controlling the robot arm 22.

[0042] Furthermore, in the above embodiment, the base 23 on which the robot arm 22 is provided is mounted on the trolley 21, allowing the trolley 21 to be moved over a wide area on the floor surface while generating the machining path 200 and machining program for the workpiece W with a high degree of freedom.

[0043] Furthermore, in the machining system 1 of the above embodiment, the robot arm 22, to which the machining tool T is mounted on the tool mounting section 22t, is controlled by the arm control section 50, thereby enabling predetermined machining of the workpiece W with the machining tool T. Since the tool mounting section 22t is provided on the robot arm 22 which is equipped with the imaging section 25, the generation of the machining path 200 and machining program, and the control of the machining tool T can all be performed based on the same X-Y-Z coordinate system of the robot arm 22. Therefore, compared to the case where the imaging section 25 and the machining tool T are provided on separate robot arms 22, errors are less likely to occur, and machining can be performed with high precision.

[0044] (Other Embodiments) Although embodiments of the present disclosure have been described in detail above with reference to the drawings, the specific configuration is not limited to these embodiments and includes design changes and the like that do not depart from the gist of the present disclosure. In the above embodiments, the processing system 1 performs grinding on a workpiece W made of, for example, a metal plate as a predetermined processing, but it is not limited to this. For example, the workpiece W is not limited to a metal plate, but may have a three-dimensional shape made of metal. Also, the workpiece W is not limited to metal, but may be made of other materials such as composite materials, synthetic resins, or wood.

[0045] In the above embodiment, the workpiece W is held by the workpiece holding device 3. However, the present invention is not limited to this. The workpiece W may be placed on an appropriate stand or the like.

[0046] Furthermore, in the above embodiment, the machining program generation device 2 is self-propelled by the carriage 21. However, the present invention is not limited to this. The machining program generation device 2 may be provided on a base 23 fixed to the floor surface.

[0047] Further, in the above embodiment, the machining program generation device 2 including the imaging unit 25 performs machining by the machining tool T. However, the present invention is not limited to this. The machining tool T may be provided in a robot device or a processing machine different from the machining program generation device 2 including the imaging unit 25. In this case, the output unit 46 of the machining program generation device 2 transfers the generated machining program to the robot device or processing machine to which the machining tool T is mounted.

[0048] In the above embodiment, the machining program generation device 2 includes the robot arm 22. However, the present invention is not limited to this. The machining program generation device 2 may have a configuration in which the imaging unit 25 is fixed at a predetermined position without including the robot arm 22. In this case, the workpiece holding device 3 holding the workpiece W may perform imaging by the imaging unit 25 in a state where the workpiece W is positioned within a range in which imaging is possible by the imaging unit 25.

[0049] Furthermore, a computer program to implement all or part of the functions of the program generation unit 40 may be recorded on a computer-readable recording medium, and the computer program recorded on this recording medium may be loaded into a computer system and executed to perform processing by each functional unit. Here, "computer system" includes hardware such as the OS and peripheral devices. Also, if a WWW system is used, "computer system" also includes the homepage provisioning environment (or display environment). Furthermore, "computer-readable recording medium" refers to portable media such as CDs, DVDs, USBs, and storage devices such as hard disks built into the computer system. In addition, if this computer program is distributed to the program generation unit 40 via a communication line, the program generation unit 40 that receives the distribution may unpack the computer program into storage 64 and execute the above processing. Furthermore, the above computer program may be for implementing part of the functions described above, and may also be able to implement the above functions in combination with computer programs already recorded in the computer system.

[0050] <Note> The processing program generation apparatus 2, processing system 1, processing program generation method, and computer program described in the embodiment can be understood, for example, as follows.

[0051] (1) The processing program generation apparatus 2 according to the first embodiment comprises an imaging unit 25 for imaging a workpiece W, and a program generation unit 40 for generating a processing program to perform processing along the outer edge Ws of the workpiece W using a predetermined processing tool T based on the image V of the workpiece W, wherein the program generation unit 40 comprises an identification unit 43 for identifying three or more feature points P that match the shape of a pre-registered feature portion C on the outer edge Ws of the workpiece W based on the image V of the workpiece W, a path generation unit 44 for generating a processing path 200 that extends along the outer edge Ws of the workpiece W by connecting the three or more identified feature points P, and a processing program generation unit 45 for generating the processing program based on the generated processing path 200. Examples of feature portions C include bent portions and curved portions.

[0052] This machining program generation device 2 identifies three or more feature points P on the outer edge Ws of the workpiece W that match the shape of a pre-registered feature area C, based on an image V of the captured workpiece W. By connecting the three or more identified feature points P, it generates a machining path 200 that extends along the outer edge Ws of the workpiece W, and generates a machining program based on the generated machining path 200. With this configuration, by identifying three or more feature points P on the outer edge Ws of the workpiece W that match the shape of a pre-registered feature area C, the machining path 200 and the machining program can be generated. This eliminates the need to pre-register the outer shape of the workpiece W. As a result, the effort and cost required to create machining programs for workpieces W of various shapes can be reduced.

[0053] (2) The machining program generation device 2 according to the second embodiment is the machining program generation device 2 of (1), wherein the path generation unit 44 sets a coordinate system based on one of the three or more feature points P, and generates the machining path 200 based on the angle θ that is made between each of the other feature points P and the one feature point P in the coordinate system.

[0054] With this configuration, a machining path 200 is generated based on the angle θ between each of the other feature points P and the one feature point P in a coordinate system based on one of the three or more feature points P. This makes it easy to generate a machining path 200 along the outer edge Ws of the workpiece W by sequentially connecting the three or more feature points P.

[0055] (3) The machining program generation apparatus 2 according to the third embodiment is the machining program generation apparatus 2 of (1) or (2), wherein the imaging unit 25 is a three-dimensional camera, the identification unit 43 detects the inclination of the surface of the workpiece W in a portion including each of the identified feature points P, thereby obtaining the inclination angle of each of the plurality of feature points P, and the machining program generation unit 45 generates the machining program capable of controlling the posture of the machining tool T based on the inclination angle of each of the plurality of feature points P on the machining path 200.

[0056] This allows us to obtain the three-dimensional coordinates of the feature points P of the workpiece W and the inclination angle of each feature point P from the image V of the workpiece W captured by the imaging unit 25, which is a three-dimensional camera, and from the inclination of the surface of the workpiece W in the area containing the feature points P. Therefore, by taking into account the inclination angle of each feature point P in addition to the three-dimensional coordinates of each feature point P, it is possible to generate a machining program that can appropriately control the posture of the machining tool T in accordance with the workpiece W, even if the workpiece W is inclined.

[0057] (4) The machining program generation device 2 according to the fourth embodiment is the machining program generation device 2 of (3), wherein the machining program generation unit 45 generates a machining program capable of controlling the posture of the machining tool T in the intermediate portion between two feature points P that are moving forward and backward on the machining path 200, based on the inclination angle of one of the two feature points P that are moving forward and backward and the inclination angle of the other feature point P.

[0058] With this configuration, in the intermediate portion between two feature points P that are moving forward and backward on the machining path 200, a machining program can be generated that appropriately controls the posture of the machining tool T based on the inclination angle of one of the two feature points P and the inclination angle of the other feature point P.

[0059] (5) The processing program generation device 2 according to the fifth embodiment is any one of the processing program generation devices 2 of (1) to (4), further comprising a robot arm 22 installed on a base 23, wherein the imaging unit 25 is provided on the robot arm 22.

[0060] As a result, by capturing an image V of the workpiece W with the imaging unit 25 provided on the robot arm 22, coordinate information of the feature points P of the workpiece W can be easily obtained using the coordinate system used to control the robot arm 22.

[0061] (6) The processing program generation device 2 according to the sixth embodiment is the processing program generation device 2 of (5), wherein the base 23 is provided on a trolley 21 that can move on the floor.

[0062] As a result, the base 23 on which the robot arm 22 is mounted is placed on the trolley 21, allowing the trolley 21 to be moved over a wide range while generating machining paths 200 and machining programs for the workpiece W with a high degree of freedom.

[0063] (7) The processing system 1 according to the seventh embodiment comprises the processing program generation device 2 of (5) or (6), a tool mounting section 22t provided on the robot arm 22 and on which the processing tool T can be attached, and an arm control unit 50 that controls the robot arm 22 based on the processing program.

[0064] According to this machining system 1, a robot arm 22 with a machining tool T mounted on a tool mounting section 22t is controlled by an arm control section 50, thereby enabling predetermined machining of the workpiece W using the machining tool T. Since the tool mounting section 22t is provided on the robot arm 22 equipped with an imaging section 25, the generation of the machining path 200 and machining program, and the control of the machining tool T can all be performed based on the coordinate system of the same robot arm 22. Therefore, compared to the case where the imaging section 25 and the machining tool T are provided on separate robot arms 22, errors are less likely to occur, and machining can be performed with high precision.

[0065] (8) A machining program generation method according to the eighth embodiment is a machining program generation method in any one of the machining program generation apparatus 2 of (1) to (6), comprising: a step S11 of imaging a workpiece W; a step S12 of identifying three or more feature points P that match the shape of a pre-registered feature portion C among the outer edge Ws of the workpiece W based on an image V of the workpiece W; a step S13 of generating a machining path extending along the outer edge Ws of the workpiece W by connecting the three or more identified feature points P; and a step S14 of generating the machining program based on the generated machining path 200.

[0066] According to this machining program generation method, based on the image V of the captured workpiece W, three or more feature points P that match the shape of a pre-registered feature area C are identified from the outer edge Ws of the workpiece W, and a machining path 200 extending along the outer edge Ws of the workpiece W is generated by connecting the three or more identified feature points P, and a machining program is generated based on the generated machining path 200. With this configuration, the machining path 200 and the machining program can be generated by identifying three or more feature points P that match the shape of a pre-registered feature area C from the outer edge Ws of the workpiece W. As a result, it is not necessary to pre-register the outer shape of the workpiece W. Consequently, the effort and cost required to create machining programs for workpieces W of various shapes can be reduced.

[0067] (9) The computer program according to the ninth embodiment causes the program generation unit 40 of any one of the processing program generation devices 2 according to (1) to (6) to execute a process including: taking an image of the workpiece W in step S11; identifying three or more feature points P on the outer edge Ws of the workpiece W that match the shape of a pre-registered feature portion C based on the image V of the workpiece W in step S12; generating a processing path extending along the outer edge Ws of the workpiece W by connecting the three or more identified feature points P in step S13; and generating the processing program based on the generated processing path 200 in step S14.

[0068] This computer program provides a program generation unit 40 that can reduce the time and cost required to create machining programs for workpieces W of various shapes.

[0069] The processing program generation apparatus, processing system, processing program generation method, and computer program of this disclosure can reduce the time and cost required to create processing programs for workpieces of various shapes.

[0070] 1... Machining system 2... Machining program generation device 21... Cart 22... Robot arm 22t... Tool mounting unit 23... Base 25... Imaging unit 32... Robot arm 40... Program generation unit 43... Identification unit 44... Path generation unit 45... Machining program generation unit 50... Arm control unit 200... Machining path C... Feature area P, P1-P5... Feature points T... Machining tool V... Image W... Workpiece Ws... Outer edge

Claims

1. A machining program generation device comprising: an imaging unit for imaging a workpiece; a program generation unit for generating a machining program to perform machining along the outer edge of the workpiece using a predetermined machining tool, wherein the program generation unit comprises: an identification unit for identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion, based on the image of the workpiece; a path generation unit for generating a machining path extending along the outer edge of the workpiece by connecting the three or more identified feature points; and a machining program generation unit for generating the machining program based on the generated machining path.

2. The machining program generation apparatus according to claim 1, wherein the path generation unit sets a coordinate system based on one of the three or more feature points, and generates the machining path based on the angles formed between each of the other feature points and the one feature point in the coordinate system.

3. The machining program generation apparatus according to claim 1 or 2, wherein the imaging unit is a three-dimensional camera, the identification unit detects the inclination of the surface of the workpiece in a portion including each of the identified feature points to obtain the inclination angle of each of the plurality of feature points, and the machining program generation unit generates the machining program capable of controlling the posture of the machining tool based on the inclination angle of each of the plurality of feature points on the machining path.

4. The machining program generation device according to claim 3, wherein the machining program generation unit generates a machining program capable of controlling the posture of the machining tool in an intermediate portion between two feature points that are preceding and succeeding each other on the machining path, based on the inclination angle of one of the two feature points that are preceding and succeeding each other and the inclination angle of the other feature point.

5. A robot arm mounted on a base, further comprising, the imaging unit being provided on the robot arm, the processing program generation apparatus according to claim 1.

6. The processing program generation apparatus according to claim 5, wherein the base is mounted on a trolley that can move on the floor.

7. A machining system comprising: a machining program generation device according to claim 5 or 6; a tool mounting unit provided on the robot arm and capable of mounting the machining tool; and an arm control unit that controls the robot arm based on the machining program.

8. A method for generating a machining program in a machining program generation apparatus according to claim 1 or 2, comprising: taking an image of a workpiece; identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion based on the image of the workpiece; generating a machining path extending along the outer edge of the workpiece by connecting the three or more identified feature points; and generating the machining program based on the generated machining path.

9. A computer program that causes the program generation unit of the machining program generation apparatus according to claim 1 or 2 to execute a process including: taking an image of a workpiece; identifying three or more feature points on the outer edge of the workpiece that match the shape of a pre-registered feature portion based on the image of the workpiece; generating a machining path extending along the outer edge of the workpiece by connecting the three or more identified feature points; and generating the machining program based on the generated machining path.