Program creation device and program creation method

The program creation device automatically selects contour elements based on machining type, enhancing machining efficiency by streamlining the generation of machining programs for turning operations, addressing the time-consuming manual selection process.

WO2024236757A1PCT designated stage expired Publication Date: 2024-11-21FANUC LTD

Patent Information

Application Number
PCT/JP2023/018405
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

Generating machining programs for turning operations based on workpiece shape data is time-consuming when multiple elements are connected at the end points, requiring manual selection of contour elements.

Method used

A program creation device and method that automatically select contour elements based on machining type, using a shape data storage unit, contour start and end element acquisition, machining type identification, and contour selection to generate machining programs for NC machine tools.

Benefits of technology

Automatically selecting contour elements improves machining efficiency by reducing manual intervention and simplifying the process of creating machining programs for both external and internal diameter turning operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023018405_21112024_PF_FP_ABST
    Figure JP2023018405_21112024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention enables elements of a contour to be selected automatically even if there are a plurality of elements to be connected at end points thereof among elements constituting a product shape. Provided is a program creation device for generating a machining program on the basis of a contour indicated by shape data of a workpiece, the program creation device including: a shape data storage unit that stores the shape data; a contour start / end element acquisition unit that acquires a start element and an end element of the contour from the shape data; a machining type acquisition unit that specifies and acquires a machining type of turning machining; a contour selection unit that selects, as the contour, one or more elements for connecting the acquired start element and end element on the basis of the machining type; and a program creation unit that generates the machining program with the selected contour as a contour for machining.
Need to check novelty before this filing date? Find Prior Art

Description

Programming device and program creating method

[0001] The present disclosure relates to a program creation device and a program creation method for creating a machining program for turning based on the contour of shape data of a workpiece.

[0002] For example, there is known a technology for automatically creating an NC machining program including process division that can improve the machining efficiency of an NC machine tool by determining a reference machining boundary that intersects with the center line of the product shape of the product and divides the volume of a removal shape calculated based on the material shape of the workpiece and the product shape in half, and determining the reference machining boundary or a boundary that passes through a changing portion of the product shape closest to the reference machining boundary as a process division boundary (see, for example, Patent Document 1).

[0003] Japanese Patent Application Laid-Open No. 2006-181691

[0004] Incidentally, when a machining program is generated based on the contour of the shape data of a workpiece input by CAD (Computer Aided Design), if there are two or more elements connected at the end points of each element that makes up the contour, it is necessary to select the element to connect to for each end point of the element, which is time-consuming.

[0005] Therefore, it is desirable to be able to automatically select elements of the outline even when there are multiple elements connected at the end points of each element that constitutes the product shape.

[0006] One aspect of the program creation device disclosed herein is a program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, and includes: a shape data storage unit that stores the shape data; a contour start / end element acquisition unit that acquires the start element and end element of the contour from the shape data; a machining type acquisition unit that identifies and acquires the machining type of turning; a contour selection unit that selects one or more elements that connect the acquired start element to the end element as the contour based on the machining type; and a program creation unit that generates the machining program using the selected contour as a machining contour.

[0007] One aspect of the program creation method disclosed herein is a program creation method for causing a computer to function as a program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, and includes a shape data storage step for storing the shape data, a contour start / end element acquisition step for acquiring a start element and an end element of the contour from the shape data, a machining type acquisition step for identifying and acquiring the machining type of turning, a contour selection step for selecting one or more elements connecting the acquired start element to the end element as the contour based on the machining type, and a program creation step for generating the machining program using the selected contour as a machining contour.

[0008] 1 is a diagram showing an example of the configuration of functional blocks of a program creation device according to a first embodiment; FIG. 2 is a diagram showing an example of a tool table; FIG. 3 is a diagram showing an example of a machining program editing screen and a machining type designation screen; FIG. 4 shows an example of shape data of a workpiece to be machined by external turning, displayed on a display unit; FIG. 5 is a diagram showing an example of an accepted start element and an end element; FIG. 6 is a diagram showing an example of a selected contour; FIG. 7 is a diagram showing an example of shape data of a workpiece to be machined by internal turning, displayed on a display unit; FIG. 8 is a diagram showing an example of an accepted start element and an end element; FIG. 9 is a diagram showing an example of a selected contour; FIG. 10 is a diagram showing an example of a machining program generated by a program creation unit when the turning is external turning; FIG. 11 is a diagram showing an example of a machining program generated by a program creation unit when the turning is internal turning; FIG. 12 is a flowchart illustrating the creation process of a program creation device; FIG. 13 is a diagram showing an example of the configuration of functional blocks of a program creation device 10A according to a second embodiment; FIG. 14 is a diagram showing an example of a machining program generated by a program creation unit when the turning is external turning; FIG. 15 is a diagram showing an example of a machining program generated by a program creation unit when the turning is internal turning;

[0009] <First Embodiment> A program creation device according to a first embodiment will be described in detail below with reference to the drawings. Fig. 1 is a diagram showing an example of the functional block configuration of the program creation device according to the first embodiment. As shown in Fig. 1, the program creation device 10 is, for example, a known computer device or tablet terminal, and has a control unit 11, a storage unit 12, an input unit 13, and a display unit 14. The control unit 11 also has a processing type acquisition unit 110, a contour start / end element acquisition unit 111, a contour selection unit 112, and a program creation unit 113.

[0010] The storage unit 12 is, for example, a solid state drive (SSD) or a hard disk drive (HDD). The storage unit 12 may store a program for generating a machining program based on the contour of shape data of a workpiece stored in a shape data storage unit 120 (described later). The storage unit 12 also includes a shape data storage unit 120 and a tool table storage unit 121. The shape data storage unit 120 stores CAD data, which is shape data of the workpiece created in advance by a CAD device (not shown). The tool table storage unit 121 stores a tool table listing tools that can be used in a lathe (not shown). FIG. 2 is a diagram showing an example of the tool table. As shown in FIG. 2, in the tool table, for example, an external turning tool is assigned to tool number "01" and an internal turning tool is assigned to tool number "02."

[0011] The input unit 13 is, for example, a keyboard or a touch panel disposed on the display unit 14 (described later). The input unit 13 receives instructions input from the user.

[0012] The display unit 14 is, for example, a liquid crystal display, etc. For example, in response to an input operation by the user via the input unit 13, the display unit 14 displays a screen of CAD data, which is shape data of the workpiece stored in the shape data storage unit 120, a screen for specifying the type of turning, a screen for creating a machining program, etc.

[0013] The control unit 11 includes a central processing unit (CPU), a read-only memory (ROM), a random access memory (RAM), a complementary metal-oxide-semiconductor (CMOS) memory, and the like, which are configured to communicate with each other via a bus and are well known to those skilled in the art. The CPU is a processor that controls the entire program creation device 10. The CPU reads system programs and application programs stored in the ROM via the bus and controls the entire program creation device 10 in accordance with the system programs and application programs. As a result, as shown in FIG. 1 , the control unit 11 is configured to realize the functions of a machining type acquisition unit 110, a contour start / end element acquisition unit 111, a contour selection unit 112, and a program creation unit 113. Various data, such as temporary calculation data and display data, is stored in the RAM. The CMOS memory is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its stored state even when the power to the program creation device 10 is turned off. In the following, the operations of the machining type acquisition unit 110, the contour start / end element acquisition unit 111, and the contour selection unit 112 will be described for (a) the case where the turning is external diameter turning, and (b) the case where the turning is internal diameter turning.

[0014] (a) When the turning is external diameter turning The machining type acquisition unit 110 identifies and acquires the type of turning based on the type of turning specified by the user. Specifically, when the program creation device 10 receives an instruction to create a machining program for machining a workpiece by turning from the user via the input unit 13, for example, the program creation device 10 displays an editing screen 200 for the machining program and a specification screen 210 for specifying the machining type, as shown in Fig. 3, on the display unit 14. When the user selects "external diameter turning" on the specification screen 210 via the input unit 13 and presses the "OK" button, the machining type acquisition unit 110 acquires "external diameter turning" as the machining type.

[0015] The contour start / end element acquisition unit 111 acquires the start element and end element of the contour from the shape data. Specifically, for example, when the contour start / end element acquisition unit 111 receives an instruction from the user via the input unit 13 to create a machining program for machining a workpiece by turning, the contour start / end element acquisition unit 111 reads shape data of the workpiece to be machined by the machining program from the shape data storage unit 120. The contour start / end element acquisition unit 111 displays the read shape data of the workpiece on the display unit 14. FIG. 4 is a diagram showing an example of shape data of a workpiece to be machined by contour turning, displayed on the display unit 14. In FIG. 4, the rotation axis of the lathe is the Z-axis direction indicated by the dashed line, and the direction perpendicular to the rotation axis is the X-axis. The contour start / end element acquisition unit 111 receives, from the user via the input unit 13, designation of the start element and end element of the contour of the workpiece to be turned in the shape data displayed on the display unit 14. FIG. 5A is a diagram showing an example of the received start element and end element. 5A, the user has designated element (line segment) OA1, indicated by a thick line, as the start element, and elements A10A11, indicated by a thick line, as the end element. Point O indicates the intersection with the Z axis, and points A1-A11 and B1-B11 indicate the endpoints of each element that makes up the contour. Points A1-A11 are above the Z axis (positive X side), and points B1-B11 are below the Z axis (negative X side). In other words, the contour start / end element acquisition unit 111 acquires element OA1, which is above the Z axis (positive X side), as the start element, and element A9A10 as the end element.

[0016] The contour selection unit 112 selects one or more elements connecting the start element to the end element as the contour of the workpiece, based on the turning type "external diameter turning" acquired by the machining type acquisition unit 110 and the start element OA1 and end element A10A11 acquired by the contour start / end element acquisition unit 111. Specifically, the contour selection unit 112 determines, for example, whether element OB1 connected to the start element OA1, or elements A10B10 and A11B11 connected to the end element A10A11, are located in the X-axis direction and whether element OB1 is below (on the negative X side of) the start element OA1, or whether elements A10B10 and A11B11 are below (on the negative X side of) the end element A10A11. When element OB1 or elements A10B10, A11B11 are in the X-axis direction and element OB1 is below (negative X side of) start element OA1, or when elements A10B10, A11B11 are below (negative X side of) end element A10A11, the contour selection unit 112 selects, as contours, elements above the Z-axis (positive X side) in the shape data in Fig. 4. On the other hand, when element OB1 or elements A10B10, A11B11 are in the X-axis direction and element OB1 is above (positive X side of) start element OA1, or when elements A10B10, A11B11 are above (positive X side of) end element A10A11, the contour selection unit 112 selects, as contours, elements below the Z-axis (negative X side) in the shape data in Fig. 4.

[0017] In the example shown in FIG. 4 , the start element OA1 and the end element A10A11 are located above the Z axis (positive X side), and the contour selection unit 112 selects element A1A2 because element A1A2 is the only element connected to end point A1 of the start element OA1. Furthermore, because the elements connected to end point A2 of element A1A2 branch into elements A2A3 and A2B2, the contour selection unit 112 compares the X-coordinate value of end point A3 of element A2A3 with the X-coordinate value of end point B2 of element A2B2. The contour selection unit 112 selects element A2A3, which has the larger X-coordinate value. Furthermore, because the elements connected to end point A3 of element A2A3 branch into elements A3A4 and A3B3, the contour selection unit 112 compares the X-coordinate value of end point A4 of element A3A4 with the X-coordinate value of end point B3 of element A3B3. The contour selection unit 112 selects element A3A4, which has the largest X-coordinate value. Furthermore, because the elements connected at endpoint A4 of element A3A4 branch into elements A4A5 and A4B4, the contour selection unit 112 compares the X-coordinate value of endpoint A5 of element A4A5 with the X-coordinate value of endpoint B4 of element A4B4. The contour selection unit 112 selects element A4A5, which has the largest X-coordinate value. Furthermore, because element A5A6 is the only element connected at endpoint A5 of the starting element A4A5, the contour selection unit 112 selects element A5A6. Furthermore, because the elements connected at endpoint A6 of element A5A6 branch into elements A6A7 and A6B6, the contour selection unit 112 compares the X-coordinate value of endpoint A7 of element A6A7 with the X-coordinate value of endpoint B6 of element A6B6. The contour selection unit 112 selects the element A6A7 having the larger X coordinate value.

[0018] Furthermore, since element A7A8 is the only element connected to element A6A7 at endpoint A7, the contour selection unit 112 selects element A7A8. Furthermore, since the elements connected to element A7A8 at endpoint A8 branch into elements A8A9 and A8B8, the contour selection unit 112 compares the X coordinate value of endpoint A9 of element A8A9 with the X coordinate value of endpoint B8 of element A8B8. The contour selection unit 112 selects element A8A9, which has the larger X coordinate value. Furthermore, since the elements connected to element A8A9 at endpoint A9 branch into elements A9A10 and A9B9, the contour selection unit 112 compares the X coordinate value of endpoint A10 of element A9A10 with the X coordinate value of endpoint B9 of element A9B9. The contour selection unit 112 selects element A9A10, which has the larger X coordinate value. As a result, the contour selection unit 112 can automatically select elements A1A2, A2A3, A3A4, A4A5, A5A6, A6A7, A7A8, A8A9, and A9A10, which are shown with thick lines and connect the start element OA1 to the end element A10A11, as shown in Figure 5B.

[0019] The elements can also be selected in a similar manner when the element OB1 and the element B10B11 below the Z axis (negative X side) are acquired as the start and end elements by the contour start and end element acquisition unit 111. In this case, however, it is preferable that the contour selection unit 112 selects the element with the smallest X coordinate value.

[0020] (b) When the turning is internal turning When the program creation device 10 receives an instruction to create a machining program for machining a workpiece by turning from the user via the input unit 13, for example, the program creation device 10 displays an editing screen 200 for the machining program and a specification screen 210 for specifying the machining type, as shown in Fig. 3, on the display unit 14. When the user selects "internal turning" via the input unit 13 on the specification screen 210 and presses the "OK" button, the machining type acquisition unit 110 acquires "internal turning" as the machining type.

[0021] For example, when the contour start / end element acquisition unit 111 receives an instruction from the user via the input unit 13 to create a machining program for machining a workpiece by turning, the contour start / end element acquisition unit 111 reads shape data of the workpiece to be machined by the machining program from the shape data storage unit 120. The contour start / end element acquisition unit 111 displays the read shape data of the workpiece on the display unit 14. FIG. 6 is a diagram showing an example of shape data of a workpiece to be machined by internal turning, displayed on the display unit 14. In FIG. 6, the rotation axis of the lathe is the Z-axis direction indicated by the dashed line, and the direction perpendicular to the rotation axis is the X-axis. The contour start / end element acquisition unit 111 receives, from the user via the input unit 13, designation of a start element and an end element of the contour of the workpiece to be turned in the shape data displayed on the display unit 14. FIG. 7A is a diagram showing an example of the accepted start element and end element. In FIG. 7A, elements C1 and C2 are designated as the start element and elements C6 and C7 are designated as the end element. Point O indicates the intersection with the Z axis, and points C1 to C8 and D1 to D8 indicate the endpoints of each element that makes up the contour. Points C1 to C8 are to the right of the Z axis (positive X side), and points D1 to D8 are to the left of the Z axis (negative X side). In other words, the contour start / end element acquisition unit 111 acquires element C1C2, which is to the right of the Z axis (positive X side), as the start element, and elements C6C7 as the end element.

[0022] The contour selection unit 112 determines, for example, whether elements C1D1 and C2D2 connected to the start element C1C2, or elements C6D6 and C7D7 connected to the end element C6C7, are in the X-axis direction and whether the start element C1C2 or the end element C6C7 is to the right of the Z-axis (positive X side). Since elements C1D1 and C2D2 connected to the start element C1C2, or elements C6D6 and C7D7 connected to the end element C6C7, are in the X-axis direction and the start element C1C2 or the end element C6C7 is to the right of the Z-axis (positive X side), the contour selection unit 112 selects elements to the right of the Z-axis (positive X side) in the shape data in FIG. 6 as contours.

[0023] In the case of FIG. 6 , because the element connected at endpoint C2 of element C1C2 branches into elements C2C3 and C2D2, the contour selection unit 112 compares the X-coordinate value of endpoint C3 of element C2C3 with the X-coordinate value of endpoint D2 of element C2D2. The contour selection unit 112 selects element C2C3, which has the larger X-coordinate value. Furthermore, because the element connected at endpoint C3 of element C2C3 branches into elements C3C4 and C3D3, the contour selection unit 112 compares the X-coordinate value of endpoint C4 of element C3C4 with the X-coordinate value of endpoint D3 of element C3D3. The contour selection unit 112 selects element C3C4, which has the larger X-coordinate value. Furthermore, because element C4C5 is the only element connected at endpoint C4 of element C3C4, the contour selection unit 112 selects element C4C5. Furthermore, the contour selection unit 112 selects element C5C6 because element C5C6 is the only element connected to element C4C5 at endpoint C5. As a result, the contour selection unit 112 can automatically select elements C2C3, C3C4, C4C5, and C5C6, which are indicated by thick lines and connect element C1C2 to element C6C7, as shown in FIG.

[0024] The elements can also be selected in a similar manner when elements D1D2 and D6D7 on the left side of the Z axis (negative X side) are acquired as the start and end elements by the contour start / end element acquisition unit 111. In this case, however, it is preferable that the contour selection unit 112 selects the element with the smallest X coordinate value.

[0025] The program creation unit 113 generates a machining program for turning using, for example, a known method, the contour selected by the contour selection unit 112 as the machining contour. FIG. 8A is a diagram showing an example of a machining program generated by the program creation unit 113 when the turning is external diameter turning. As shown in FIG. 8A , the program creation unit 113 writes, for example, a machining program name "O0001" and a tool number "T01" for external diameter turning and an offset "01" based on the tool table in FIG. 2 . Then, the program creation unit 113 writes machining cycle commands for external diameter rough cutting, etc., written in "G1120," into the machining program. For example, the program creation unit 113 writes a machining cycle command "G1120" that sets the cutting direction (P), cutting depth (Q), cutting depth change rate (H), cutting direction feedrate (F), cutting direction feedrate (E), and cutting-up direction feedrate (V). The program creation unit 113 writes a machining cycle command "G1450" specifying a start point in which a start point coordinate (Z-axis) (H) and a start point coordinate (X-axis) (V) are set based on the contour selected by the contour selection unit 112. The program creation unit 113 also writes a linear interpolation machining cycle command "G1451" in which an end point coordinate (Z-axis) (H), an end point coordinate (X-axis) (V), and a linear direction (K) are set based on the contour selected by the contour selection unit 112. The program creation unit 113 also writes a circular interpolation (CCW) machining cycle command "G1453" in which an end point coordinate (Z-axis) (H), an end point coordinate (X-axis) (V), an arc radius (R), a center coordinate (Z-coordinate) (I), and a center coordinate (X-axis) are set based on the contour selected by the contour selection unit 112. In addition, the program creation unit 113 writes a machining cycle command "G1452" for circular interpolation (CW) in which the end point coordinate (Z axis) (H), end point coordinate (X axis) (V), arc radius (R), center coordinate (Z coordinate) (I), and center coordinate (X axis) are set based on the contour selected by the contour selection unit 112.

[0026] The program creation unit 113 may also write a machining cycle command for outer diameter finishing, etc., written in "G1126" into the machining program. In this case, the program creation unit 113 may set the cutting direction (P), feed rate (F), X-axis clearance (L), Z-axis clearance (M), approach operation (Z), and cutting direction (S) in the machining cycle command "G1126."

[0027] FIG. 8B shows an example of a machining program generated by the program creation unit 113 when the turning process is internal turning. As shown in FIG. 8B , the program creation unit 113 writes, for example, a machining program name "O0002" and a tool number "T02" and offset "02" for internal turning based on the tool table in FIG. 2 . The program creation unit 113 then writes, into the machining program, machining cycle commands for internal rough cutting, such as "G1121." For example, the program creation unit 113 writes a machining cycle command "G1121" that sets the cutting direction (P), cutting depth (Q), cutting depth change rate (H), cutting direction feedrate (F), cutting direction feedrate (E), and cutting-up direction feedrate (V). Based on the contour selected by the contour selection unit 112, the program creation unit 113 writes a machining cycle command "G1450" that specifies a start point, with start point coordinates (Z-axis) (H) and start point coordinates (X-axis) (V) set. The program creation unit 113 also writes a machining cycle command "G1451" for linear interpolation, in which an end point coordinate (Z-axis) (H), an end point coordinate (X-axis) (V), and a linear direction (K) are set, based on the contour selected by the contour selection unit 112. The program creation unit 113 also writes a machining cycle command "G1453" for circular interpolation (CCW), in which an end point coordinate (Z-axis) (H), an end point coordinate (X-axis) (V), an arc radius (R), a center coordinate (Z-coordinate) (I), and a center coordinate (X-axis) are set, based on the contour selected by the contour selection unit 112. The program creation unit 113 also writes a machining cycle command "G1452" for circular interpolation (CW), in which an end point coordinate (Z-axis) (H), an end point coordinate (X-axis) (V), an arc radius (R), a center coordinate (Z-coordinate) (I), and a center coordinate (X-axis) are set, based on the contour selected by the contour selection unit 112.

[0028] The program creation unit 113 may also write a machining cycle command for inner diameter finishing, etc., written in "G1127," into the machining program. In this case, the program creation unit 113 may set the cutting direction (P), feed rate (F), X-axis clearance (L), Z-axis clearance (M), approach operation (Z), and cutting direction (S) in the machining cycle command "G1126."

[0029] <Creation Process of Program Creation Device 10> Next, the flow of the creation process of the program creation device 10 will be described with reference to Fig. 9. Fig. 9 is a flowchart illustrating the creation process of the program creation device 10. The flow shown here is repeatedly executed every time the program creation device 10 receives an instruction to create a machining program from the user.

[0030] In step S1, the program creation device 10 (control unit 11) receives an instruction to create a machining program for machining a workpiece by turning from the user via the input unit 13. The program creation device 10 (control unit 11) displays an editing screen 200 for the machining program and a designation screen 210 for designating the machining type on the display unit 14, as shown in FIG.

[0031] In step S2, the program creating device 10 (machining type acquiring unit 110) acquires "external diameter turning" or "internal diameter turning" selected by the user on the designation screen 210 as the machining type of turning.

[0032] In step S3, the program creation device 10 (contour start and end element acquisition unit 111) receives and acquires from the user via the input unit 13 the specification of the start element and end element of the contour of the workpiece to be turned in the shape data displayed on the display unit 14.

[0033] In step S4, the program creation device 10 (contour selection unit 112) selects one or more elements that connect the start element to the end element based on the type of turning obtained in step S2 and the start element and end element obtained in step S3.

[0034] In step S5, the program creating device 10 (program creating unit 113) generates a machining program for turning using the contour selected in step S4 as the machining contour.

[0035] As described above, the program creation device 10 according to the first embodiment acquires the turning type selected by the user and the start and end elements of the contour of the workpiece to be turned. Based on the acquired turning type and start and end elements, the program creation device 10 selects one or more elements connecting the start and end elements, and generates a turning machining program using the selected contour as the machining contour. This allows the program creation device 10 to automatically select contour elements even when multiple elements are connected at the end points of each element constituting the product shape. The first embodiment has been described above.

[0036] Second Embodiment Next, a second embodiment will be described. In the first embodiment, the program creation device 10 acquires the machining type of turning from the user. In contrast, the second embodiment differs from the first embodiment in that the program creation device 10A determines and acquires the machining type of turning from the G-code or tool number in the machining program created by the user. As a result, the program creation device 10A according to the second embodiment can automatically select a contour element even when multiple elements are connected at the end points of each element constituting the product shape. The second embodiment will be described below.

[0037] FIG. 10 is a diagram showing an example of a functional block configuration of a program creation device 10A according to the second embodiment. Elements having the same functions as those of the program creation device 10 in FIG. 1 are designated by the same reference numerals, and detailed description thereof will be omitted. As shown in FIG. 10 , the program creation device 10A according to the second embodiment includes a control unit 11a, a memory unit 12, an input unit 13, and a display unit 14. The control unit 11a also includes a machining type acquisition unit 110a, a contour start / end element acquisition unit 111, a contour selection unit 112, and a program creation unit 113. The memory unit 12, the input unit 13, and the display unit 14 have the same functions as those of the memory unit 12, the input unit 13, and the display unit 14 in the first embodiment. The shape data storage unit 120 and the tool table storage unit 121 have the same functions as those of the shape data storage unit 120 and the tool table storage unit 121 in the first embodiment.

[0038] The control unit 11a includes a CPU, ROM, RAM, CMOS memory, etc., which are configured to communicate with each other via a bus and are well known to those skilled in the art. The CPU is a processor that controls the entire program creation device 10A. The CPU reads system programs and application programs stored in the ROM via the bus and controls the entire program creation device 10A in accordance with the system programs and application programs. As a result, as shown in FIG. 10 , the control unit 11a is configured to implement the functions of a machining type acquisition unit 110a, a contour start / end element acquisition unit 111, a contour selection unit 112, and a program creation unit 113. The contour start / end element acquisition unit 111, the contour selection unit 112, and the program creation unit 113 have functions equivalent to those of the contour start / end element acquisition unit 111, the contour selection unit 112, and the program creation unit 113 in the first embodiment.

[0039] The machining type acquisition unit 110a identifies and acquires the machining type of turning from a machining cycle command including at least a G-code or tool number capable of identifying the machining type input by the user. Specifically, the machining type acquisition unit 110a detects the G-code "G1120" of the machining cycle command for outer diameter rough cutting and the G-code "G1121" of the machining cycle command for inner diameter rough cutting from a machining program created and edited by the user on the machining program editing screen 200 displayed on the display unit 14, for example, as shown in Figures 11A and 11B, and identifies the program as "external diameter turning" or "internal diameter turning." The machining type acquisition unit 110a then acquires the identified "external diameter turning" or "internal diameter turning" as the machining type of turning. Alternatively, the machining type acquisition unit 110a may detect tool numbers such as "T01" and "T02" from the machining program of FIG. 11A or 11B that is created and edited by the user on the machining program editing screen 200 displayed on the display unit 14. The machining type acquisition unit 110a may specify "external diameter turning" or "internal diameter turning" based on the tool table in the tool table storage unit 121 of FIG. 2 and the detected tool number. Then, the machining type acquisition unit 110a may acquire the machining type of turning, "external diameter turning" or "internal diameter turning".

[0040] <Creation Process of Program Creation Device 10A> Next, the flow of the creation process of program creation device 10A will be described with reference to Fig. 12. Fig. 12 is a flowchart illustrating the creation process of program creation device 10A. The flow shown here is repeatedly executed every time program creation device 10A receives an instruction to create a machining program from a user. Note that the processes of step S1 and steps S3 to S5 are the same as the processes of step S1 and steps S3 to S5 in Fig. 9, and therefore description thereof will be omitted.

[0041] In step S2a, the program creation device 10A (machining type acquisition unit 110a) detects the G-code or tool number from the machining program being created and edited by the user on the machining program editing screen displayed on the display unit 14. The program creation device 10A (machining type acquisition unit 110a) identifies and acquires the machining type of turning from the detected G-code or tool number.

[0042] As described above, the program creation device 10A according to the second embodiment acquires the turning machining type from the G-code or tool number in the machining program created and edited by the user, and also acquires the designation of the start element and end element of the contour of the workpiece to be turned. Based on the acquired turning machining type and start element and end element, the program creation device 10A selects one or more elements connecting the start element to the end element, and generates a turning machining program based on the selected contour elements. This allows the program creation device 10A to automatically select contour elements even when multiple elements connect at the endpoints of each element constituting the product shape. The second embodiment has been described above.

[0043] As described above in the first and second embodiments, the program creation device 10, 10A of the present disclosure can automatically select contour elements even when there are multiple elements connected at the end points of each element that constitutes the product shape.

[0044] In the first and second embodiments described above, the program creation device 10, 10A is a device separate from the control device of the lathe (not shown), but this is not limiting. For example, the program creation device 10, 10A may be included in the control device of the lathe (not shown).

[0045] In the first and second embodiments, the functions included in the program creation devices 10 and 10A can be realized by hardware, software, or a combination of these. Here, "realized by software" means that the functions are realized by a computer reading and executing a program.

[0046] The program can be stored and supplied to a computer using various types of non-transitory computer-readable media. Non-transitory computer-readable media include various types of tangible storage media. Examples of non-transitory computer-readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs). The program may be provided to the computer by various types of transient computer-readable media. Examples of transient computer-readable media include electrical signals, optical signals, and electromagnetic waves. The transient computer-readable media can provide the program to the computer via a wired communication path such as an electrical wire or optical fiber, or via a wireless communication path.

[0047] The step of writing a program to be recorded on a recording medium includes not only processes that are performed in chronological order, but also processes that are not necessarily performed in chronological order but are executed in parallel or individually. The step of writing the program may also be performed by cloud computing.

[0048] Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values ​​or mathematical expressions are used in the description of the above-described embodiments.

[0049] The following supplementary notes are further disclosed regarding the above-described embodiments and modifications. (Supplementary Note 1) A program creation device (10) is a program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, and includes a shape data storage unit (120) that stores the shape data, a contour start / end element acquisition unit (111) that acquires a start element and an end element of the contour from the shape data, a machining type acquisition unit (110) that identifies and acquires the machining type of turning, a contour selection unit (112) that selects one or more elements connecting the acquired start element to the end element as a contour based on the machining type, and a program creation unit (113) that generates a machining program using the selected contour as a machining contour. (Supplementary Note 2) In the program creation device (10) of Supplementary Note 1, the machining type acquisition unit (112) identifies and acquires the machining type based on the machining type specified by the user. (Supplementary Note 3) In the program creation device (10A) of Supplementary Note 1, the machining type acquisition unit (112a) identifies and acquires the machining type from a command input by the user, the command including at least a G-code or tool number capable of identifying the machining type. (Supplementary Note 4) A program creation method for causing a computer to function as a program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, the program creation method comprising: a shape data storage step for storing shape data; a contour start / end element acquisition step for acquiring a start element and an end element of the contour from the shape data; a machining type acquisition step for identifying and acquiring the machining type of turning; a contour selection step for selecting, based on the machining type, one or more elements connecting the acquired start element to the end element as a contour; and a program creation step for generating a machining program using the selected contour as a machining contour. (Supplementary Note 5) In the program creation method of Supplementary Note 4, the machining type acquisition step identifies and acquires the machining type based on the machining type specified by the user. (Supplementary Note 6) In the program creation method of Supplementary Note 4, the machining type acquisition step identifies and acquires the machining type from a command including at least a G-code or a tool number that can identify the machining type input by the user.

[0050] 10, 10A Programming device 11, 11a Control unit 110, 110a Machining type acquisition unit 111 Contour start / end element acquisition unit 112 Contour selection unit 113 Programming unit 12 Storage unit 120 Shape data storage unit 121 Tool table storage unit 13 Input unit 14 Display unit

Claims

1. A program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, comprising: a shape data storage unit that stores the shape data; a contour start and end element acquisition unit that acquires a start element and an end element of the contour from the shape data; a machining type acquisition unit that identifies and acquires a machining type of turning; a contour selection unit that selects one or more elements that connect the acquired start element to the end element based on the machining type as the contour; and a program creation unit that generates the machining program using the selected contour as a machining contour.

2. The program creation device according to claim 1, wherein the processing type acquisition unit identifies and acquires the processing type based on a processing type designated by a user.

3. The program creation device according to claim 1, wherein the machining type acquisition unit identifies and acquires the machining type from a command input by a user that includes at least a G-code or a tool number capable of identifying the machining type.

4. A program creation method for causing a computer to function as a program creation device that generates a machining program based on a contour indicated by shape data of a workpiece, comprising: a shape data storage step for storing the shape data; a contour start and end element acquisition step for acquiring a start element and an end element of the contour from the shape data; a machining type acquisition step for identifying and acquiring a machining type of turning; a contour selection step for selecting, based on the machining type, one or more elements connecting the acquired start element to the end element as the contour; and a program creation step for generating the machining program using the selected contour as a machining contour.

5. The program creation method according to claim 4, wherein the processing type acquisition step identifies and acquires the processing type based on a processing type designated by a user.

6. A program creation method according to claim 4, wherein the machining type acquisition step identifies and acquires the machining type from a command input by the user, the command including at least a G-code or a tool number capable of identifying the machining type.

Citation Information

Patent Citations

  • Nc sentence preparation method

    JP1995060605A

  • System and method for numerical control programming

    JP2003241809A

  • Information processing device, machining program generation method and program

    JP2022161454A

  • Working program generation device, working program generation method, and working program generation program

    WO2013128625A1

Cited By

  • Information processing device and information processing method

    JP7917743B1