Numerical Control Device

The numerical control device simplifies the input process for custom G codes by using a G code registration unit and selection shape acceptance unit to automatically set data, addressing the time-consuming nature of direct number input in existing systems.

JP7648769B2Active Publication Date: 2025-03-18FANUC LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023537785
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2025-03-18
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

Existing numerical control devices require direct input of numbers for each item related to the shape in regular or custom G codes, making it time-consuming and labor-intensive to create programs.

Method used

A numerical control device with a custom G code system that includes a G code registration unit for linking item sets, a selection shape acceptance unit for user input, and a data type acquisition unit to automatically acquire and set setting data based on selected shapes and CAD data.

Benefits of technology

Enables easy and quick input of items related to the shape of custom G codes, reducing the effort required for program creation and shortening the generation time of machining programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007648769000001
    Figure 0007648769000001
  • Figure 0007648769000002
    Figure 0007648769000002
  • Figure 0007648769000003
    Figure 0007648769000003
Patent Text Reader

Abstract

The present invention enables easy and quick input of items concerning the shape of a custom G-code. This numerical control device comprises: a G-code registration unit for registering associated information in which a uniquely customized custom G-code, one or more items set in the custom G-code, the type of the shape set for each of the items, and the type of extracted data extracted from the shape are associated with one another; an associated information storage unit for storing the registered associated information; a selected shape reception unit for receiving a shape selected by a user from among shapes indicated by CAD data displayed in a CAD data display unit; a data type acquisition unit for acquiring the type of the extracted data and the item corresponding to the selected shape, by putting a query to the associated information storage unit using the selected shape; a setting data calculation unit for calculating setting data on the basis of the selected shape, the acquired item, and the type of the extracted data; and an item data setting unit for setting, to the acquired item, the setting data calculated by the setting data calculation unit.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a numerical control device. [Background technology]

[0002] For example, as shown in Fig. 32, a technique is known in which a machine tool manufacturer prepares a custom macro program and a unique custom G code (such as "G100") used to call the macro program, and a user can easily call the macro program from the unique custom G code customized by the machine tool manufacturer. For example, see Patent Document 1. Also, there is known a technique for creating one block of NC data by displaying on a display screen an image showing the function of the G code and what data must be input to execute the function of the G code, and creating the NC data by referring to the image (see, for example, Patent Document 2). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 6654740 [Patent Document 2] Japanese Patent Application Publication No. 62-052608 Summary of the Invention [Problem to be solved by the invention]

[0004] However, in the methods disclosed in Patent Documents 1 and 2, it is necessary to directly input numerical values ​​for each item related to the shape in normal G code or unique custom G code, which makes it time-consuming and laborious to create a program.

[0005] It is therefore desirable to be able to input each item relating to the shape of a custom G-code easily and quickly. [Means for solving the problem]

[0006] One aspect of the numerical control device disclosed herein includes a G-code registration unit that registers linking information linking a uniquely customized custom G-code, at least one item set in the custom G-code, a type of shape set for each item, and a type of extracted data to be extracted from the shape, a linking information storage unit that saves the registered linking information, a selected shape receiving unit that receives a shape selected by a user from among shapes indicated by CAD data displayed on a CAD data display unit, a data type acquisition unit that queries the linking information storage unit with the selected shape and acquires the item and type of extracted data for the selected shape, a setting data calculation unit that calculates setting data based on the acquired item and type of extracted data and the selected shape, and an item data setting unit that sets the setting data calculated by the setting data calculation unit to the acquired item. Effect of the Invention

[0007] According to one embodiment, custom G-code geometry items can be entered easily and quickly. [Brief description of the drawings]

[0008] [Figure 1] FIG. 2 is a functional block diagram illustrating an example of a functional configuration of a numerical control device according to an embodiment. [Diagram 2] 13 is a diagram showing an example of a data structure of linking information registered by a G-code registration unit. FIG. [Diagram 3] FIG. 1 is a diagram showing an example of CAD data of a gear. [Figure 4] FIG. 13 is a diagram showing an example of linking information in the case of a custom G code that calls a program for machining a gear. [Diagram 5] FIG. 13 is a diagram showing an example of CAD data of a workpiece in which a plurality of holes are to be generated on the circumference. [Figure 6] 13 is a diagram showing an example of linking information in the case of a custom G code that calls a program for drilling a plurality of holes at equal intervals on a circle. FIG. [Figure 7]FIG. 13 is a diagram showing an example of linking information for the custom G code “G100.” [Figure 8] FIG. 13 is a diagram showing an example of linking information for the custom G code “G100.” [Figure 9] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 10] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 11] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 12] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 13] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 14] FIG. 13 is a diagram showing an example of a registration screen for registering a custom G-code "G200." [Figure 15] FIG. 13 is a diagram showing an example of a setting screen for custom G code "G100." [Figure 16] FIG. 13 is a diagram showing an example of a setting screen for custom G code "G100." [Figure 17] FIG. 13 is a diagram showing an example of a setting screen for custom G code "G200." [Figure 18] FIG. 13 is a diagram showing an example of a setting screen for custom G code "G200." [Figure 19] FIG. 11 is a diagram illustrating an example of settings of setting items. [Figure 20] FIG. 11 is a diagram illustrating an example of settings of setting items. [Figure 21] FIG. 11 is a diagram illustrating an example of settings of setting items. [Figure 22] FIG. 11 is a diagram illustrating an example of settings of setting items. [Diagram 23] FIG. 11 is a diagram illustrating an example of settings of setting items. [Figure 24] FIG. 11 is a diagram illustrating an example of settings of setting items. [Diagram 25]11 is a flowchart illustrating a registration process of a numerical control device. [Figure 26] 4 is a flowchart illustrating a program generation process for a numerical control device. [Figure 27] FIG. 13 is a diagram showing an example of a setting screen when the priority is set to "currently selected item." [Figure 28] FIG. 13 is a diagram illustrating an example of setting items when the priority is set to "manually select setting items." [Figure 29] FIG. 13 is a diagram illustrating an example of setting items when the priority is set to "manually select setting items." [Diagram 30] FIG. 13 is a diagram illustrating an example of setting items when the priority is set to "manually select setting items." [Diagram 31] FIG. 13 is a diagram illustrating an example of setting items when the priority is set to "manually select setting items." [Diagram 32] FIG. 13 is a diagram illustrating an example of an operation in which a custom G-code calls a macro program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] <One embodiment> FIG. 1 is a functional block diagram showing an example of a functional configuration of a numerical control device according to an embodiment. The numerical control device 10 is a numerical control device known to those skilled in the art, which generates an operation command based on control information and outputs the generated operation command to a machine tool (not shown). In this way, the numerical control device 10 controls the operation of the machine tool (not shown). Note that if the machine tool (not shown) is a robot or the like, the numerical control device 10 may be a robot control device or the like.

[0010] The numerical control device 10 may be directly connected to a machine tool (not shown) via a connection interface (not shown). The numerical control device 10 and the machine tool (not shown) may be connected to each other via a network (not shown) such as a LAN (Local Area Network) or the Internet. In this case, the numerical control device 10 includes a communication unit (not shown) for communicating with each other via such a connection.

[0011] Here, the machine tool not shown is, for example, a machine tool, a robot, a peripheral device, etc. Note that the machine tool not shown is not limited to a machine tool, a robot, or a peripheral device, and can be broadly applied to industrial machinery in general. Industrial machinery includes various machines such as a machine tool, an industrial robot, a service robot, a forging machine, and an injection molding machine.

[0012] 1, the numerical control device 10 has a control unit 11, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11, the input unit 12, the display unit 13, and the storage unit 14 are communicatively connected via a bus (not shown). The control unit 11 also has a G-code registration unit 110, a setting screen control unit 111 as a setting order display unit, a CAD data analysis unit 112, a selected shape reception unit 113, a data type acquisition unit 114, a setting data calculation unit 115, an item data setting unit 116, a G-code designation unit 117, a G-code input unit 118, and a program generation unit 119.

[0013] <Input section 12> The input unit 12 is, for example, a keyboard or a touch panel arranged on the display unit 13 described later, and receives inputs from a user, such as designation of a G-code to be used in a machining program of a machine tool (not shown).

[0014] <Display section 13> The display unit 13 is, for example, a liquid crystal display, and displays a registration screen for registering a custom G-code based on a control instruction from a G-code registration unit 110 (described later). The display unit 13 also displays a setting screen for displaying CAD data of a workpiece generated using the custom G-code as a CAD data display unit and automatically selecting and setting setting items for the custom G-code based on a control instruction from a setting screen control unit 111 (described later). The registration screen, setting screen, etc. will be described later.

[0015] <Storage section 14> The storage unit 34 is a read only memory (ROM) or a hard disk drive (HDD), and includes a shape information storage unit 141, a linking information storage unit 142, and an analysis element storage unit 143. The shape information storage unit 141 stores CAD data and the like that indicate the shape of a workpiece generated by a machining operation performed by a machine tool (not shown).

[0016] The linking information storage unit 142 stores, for each custom G code, linking information in which a custom G code, multiple setting items, the type of shape (hereinafter also referred to as the "selected shape") selected from CAD data for each setting item, the type of data of the selected shape extracted from CAD data (hereinafter also referred to as the "extracted data type"), and another setting item set from the same selected shape are pre-linked in order to set the numerical values ​​of multiple parameters (hereinafter also referred to as the "setting items") of the custom G code used in generating a machining program using CAD data of the workpiece generated by the machining program. Here, another setting item set from the same selection shape will be described. For example, as described later, when the same circle is selected in a plurality of items as the selection shape selected for each setting item from the CAD data, it is more efficient to set a plurality of extracted data types such as the center coordinate in the X-axis direction, center coordinate in the Y-axis direction, and radius from the selection shape of the circle in the setting items (parameters) of the custom G code at once. Therefore, by setting "another setting item set from the same selection shape" in the linking information, it is possible to set a plurality of setting items set from the same selection shape collectively. FIG. 2 is a diagram illustrating an example of a data structure of the linking information. 2, the linking information has a three-layered data structure. The first layer stores custom G-codes registered by the G-code registration unit 110, which will be described later. The second layer stores n setting items 1 to n (n is an integer equal to or greater than 1) that are set in the custom G-codes registered in the first layer. The third layer stores, for each setting item in the second layer, the type of selection shape, the type of extracted data, and another setting item that is set from the same selection shape. 2, the association information may store priority information indicating the order in which the setting items are set in a second hierarchical layer. The setting priority will be described later. Below, we will explain more specifically (a) the linking information in the case of a custom G code that calls a program for machining gears, and (b) the linking information in the case of a custom G code that calls a program for machining multiple holes on a circumference.

[0017] (a) Linking information for custom G code that calls a gear machining program Fig. 3 is a diagram showing an example of CAD data for a gear. The left side of Fig. 3 shows CAD data for a gear in an XY plane as viewed from the Z-axis direction, for example, with the diameter of a circle C1 of the gear (hereinafter also referred to as the "outer diameter of the workpiece") set to, for example, 130 mm. The right side of Fig. 3 shows CAD data for a gear in a ZX plane (or ZY plane) as viewed from the Y-axis (or X-axis) direction, for example, with the tooth width of a straight line L1 of the gear (hereinafter also referred to as the "tooth width of the workpiece") set to, for example, 16 mm. FIG. 4 is a diagram showing an example of linking information in the case of a custom G-code that calls the program for machining the gear of FIG. As shown in Fig. 4, the first layer of the linking information stores, for example, a custom G-code "G100" that calls a program to machine a gear. The second layer of the linking information stores, as setting items, "Workpiece outer diameter D" indicating the diameter of the gear circle C1, and "Workpiece tooth width W" indicating the tooth width of the gear straight line L1. "D" and "W" indicate address names (variable names of the custom G-code). In addition, in the third layer of the linking information, the "circle" of the circle C1 is stored as the type of selected shape selected from the CAD data for the setting item "outer diameter D of the workpiece", and the "diameter" of the circle C1 is stored as the type of extracted data extracted from the CAD data. In addition, the "straight line" of the straight line L1 is stored as the type of selected shape selected from the CAD data for the setting item "tooth width W of the workpiece", and the "width" of the straight line L1 is stored as the type of extracted data extracted from the CAD data. As shown in Fig. 3, the selected shape "circle" for the setting item "workpiece outer diameter D" and the selected shape "straight line" for the setting item "workpiece tooth width W" are different shapes, so another setting item that is set from the same selected shape as the third item in the linking information in Fig. 4 is not set.

[0018] (b) Regarding the linking information in the case of a custom G code that calls a program to drill multiple holes on a circumference Fig. 5 is a diagram showing an example of CAD data of a workpiece in which a plurality of holes are generated at equal intervals on a circumference. For example, Fig. 5 shows CAD data of a workpiece in which six holes H1 to H6 are generated at equal intervals on the circumference of a circle C2 with a radius of 40 mm on the XY plane as viewed from the Z axis direction. FIG. 6 is a diagram showing an example of linking information in the case of a custom G code that calls a program for drilling a plurality of holes at equal intervals on the circumference of the circle shown in FIG. 6, the first layer of the linking information stores, for example, a custom G-code "G200" that calls a program to drill multiple holes at equal intervals on a circumference. The second layer of the linking information stores, as setting items, "center coordinate X" indicating the center coordinate in the X-axis direction of circle C2, "center coordinate Y" indicating the center coordinate in the Y-axis direction, and "radius R" indicating the radius of circle C2. In addition, in the second layer of the linking information, for example, if the straight line in the X-axis direction is L20, the following setting items are stored: a "start angle S" indicating the angle (e.g., 60°) between the straight line L20 and the straight line L21 connecting the center point and the first hole H1, an "end angle E" indicating the angle (e.g., 210°) between the straight line L20 and the straight line L26 connecting the center point and the last hole H6, and an "angle interval I" indicating the angle (e.g., 30°) between the straight line L21 between holes H1 and H2 and the straight line L22.

[0019] In addition, in the third layer of the linking information, for the setting item "center coordinate X", "circle" is stored as the type of selected shape selected from the CAD data, and "center point" is stored as the type of extracted data extracted from the CAD data. For the setting item "center coordinate Y", the same "circle" is stored as the type of selected shape selected from the CAD data, and "center point" is stored as the type of extracted data extracted from the CAD data, while "center coordinate X" is stored in another setting item set from the same selected shape. For the setting item "radius R", the same "circle" is stored as the type of selected shape selected from the CAD data, and "radius" is stored as the type of extracted data extracted from the CAD data, while "center coordinate X" is stored in another setting item set from the same selected shape. By doing so, as will be described later, when the circle C2 of the CAD data in FIG. 5 is selected, the numerical control device 10 can collectively set the setting items “center coordinate X”, “center coordinate Y”, and “radius R”.

[0020] In addition, in the third hierarchical level of the linking information, "two straight lines" is stored as the type of selected shape selected from the CAD data for the setting item "start angle S," and "angle" is stored as the type of extracted data extracted from the CAD data. In addition, "two straight lines" is stored as the type of selected shape selected from the CAD data for the setting item "end angle E," and "angle" is stored as the type of extracted data extracted from the CAD data. In addition, "two straight lines" is stored as the type of selected shape selected from the CAD data for the setting item "angle interval I," and "angle" is stored as the type of extracted data extracted from the CAD data. In addition, since the selected shape type and extracted data type of the setting items "Start angle S", "End angle E", and "Angle interval I" are the same as "Two straight lines" and "Angle", it is necessary for the user to be able to distinguish between them when setting, as described later. For this reason, as the linking information in Fig. 6, a priority order indicating the setting order for the setting items "Start angle S", "End angle E", and "Angle interval I" (for example, the item display order in which each setting item is displayed) is set in the second hierarchical level, as described later.

[0021] The analysis element storage unit 143 stores the components of shapes that constitute the CAD data by the CAD data analysis unit 112 described later analyzing the CAD data stored in the shape information storage unit 141.

[0022] <Control unit 11> The control unit 11 has a CPU (Central Processing Unit), a ROM, a RAM (Random Access Memory), a CMOS (Complementary Metal-Oxide-Semiconductor) memory, etc., which are configured to be able 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 numerical control device 10 as a whole. The CPU reads out the system program and application program stored in the ROM via the bus, and controls the entire numerical control device 10 according to the system program and application program. As a result, as shown in FIG. 1, the control unit 11 is configured to realize the functions of the G-code registration unit 110, the setting screen control unit 111, the CAD data analysis unit 112, the selected shape reception unit 113, the data type acquisition unit 114, the setting data calculation unit 115, the item data setting unit 116, the G-code designation unit 117, the G-code input unit 118, and the program generation unit 119. Various data such as temporary calculation data and display data are 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 the storage state even when the power of the numerical control device 10 is turned off.

[0023] <G-code registration unit 110> When generating a machining program, the G-code registration unit 110 registers association information that associates a custom G-code uniquely customized by a machine tool manufacturer or the like, at least one setting item set in the custom G-code, the type of shape set for each setting item, and the type of extraction data extracted from the shape. Hereinafter, specific registration operations of the G-code registration unit 110 will be exemplified and described for (a) the case of a custom G-code that calls a program for machining the gear in FIG. 3 and (b) the case of a custom G-code that calls a program for machining a plurality of holes at equal intervals on the circumference in FIG. 5, respectively.

[0024] (a) Case of a custom G-code that calls a program for machining the gear in FIG. 3 FIG. 7 is a diagram showing an example of a registration screen for registering the custom G-code "G100". When the G-code registration unit 110 receives a registration instruction for a custom G-code based on an input operation of the input unit 12 by the user, for example, it displays a registration screen 200 on the display unit 13 as shown in FIG. 7. As shown in FIG. 7, the registration screen 200 has a G-code 210, a setting item 220, setting data 230, a setting button 250, and a cancel button 260. The G-code registration unit 110 accepts input of a custom G-code "G100" that calls a gear machining program to be registered based on an input operation of the input unit 12 by a user in the G-code 210 corresponding to the first level of the linking information in Figure 4.

[0025] 4, the G-code registration unit 110 accepts input of the item name of the setting item set by the custom G code "G100" input in the G code 210 and the address name corresponding to the item name (variable name of the custom G code) based on, for example, an input operation by the user on the input unit 12. For example, in the case of the custom G code "G100" that calls a program for machining gears, the user inputs into the setting item 220 the item name of "Workpiece outer diameter" and the address name of "D", and the item name of "Workpiece tooth width" and the address name of "W".

[0026] Furthermore, the G-code registration unit 110 accepts input of the type of selected shape and the type of extracted data for each setting item of the setting item 220, for example, based on the user's input operation on the input unit 12, in the setting data 230 corresponding to the third hierarchical level of the linking information in Fig. 4. Specifically, in the setting data 230, for example, the user sets the type of selected shape "circle" and the type of extracted data "diameter" for the setting item "workpiece outer diameter D" of the setting item 220. In addition, in the setting data 230, as shown in Fig. 8, the user sets the type of selected shape "straight line" and the type of extracted data "width" for the setting item "workpiece tooth width W" of the setting item 220.

[0027] When the user presses the setting button 250 based on input operation of the input unit 12 after the G-code 210, setting item 220, and setting data 230 items have been set, the G-code registration unit 110 registers the linking information for the custom G-code "G100" in Figure 4 and stores it in the linking information storage unit 142. On the other hand, if the user presses the cancel button 260 based on input operation of the input unit 12 after the G-code 210, setting item 220, and setting data 230 items have been set, the G-code registration unit 110 cancels the registration of the linking information for the custom G-code "100" in Figure 4.

[0028] (b) Custom G code calling a program to drill multiple holes at equal intervals on the circumference of the circle shown in Figure 5. FIG. 9 is a diagram showing an example of a registration screen for registering a custom G-code "G200." For example, when the G-code registration unit 110 receives an instruction to register a custom G-code based on an input operation by a user on the input unit 12, the G-code registration unit 110 displays a registration screen 200 shown in FIG. 9 on the display unit 13, similar to FIG. Based on the user's input operation on the input unit 12, the G-code registration unit 110 accepts input of the custom G-code "G200" into the G-code 210 corresponding to the first hierarchical level of the linking information in FIG. 6, as described above.

[0029] The G-code registration unit 110 accepts input of the item name of "center coordinate" and the address name of "X", the item name of "center coordinate" and the address name of "Y", the item name of "radius" and the address name of "R", the item name of "start angle" and the address name of "S", the item name of "end angle" and the address name of "E", and the item name of "angle interval" and the address name of "I" in the setting item 220 corresponding to the second hierarchical level of the linking information in FIG. 6, as described above, based on, for example, an input operation by a user on the input unit 12.

[0030] In addition, the G-code registration unit 110, for example, based on the input operation of the input unit 12 by the user, in the setting data 230 corresponding to the third layer of the linking information in FIG. 6, as described above, sets the selected shape type "circle" and the extracted data type "center point" for the setting item "center coordinate X" of the setting item 220. In addition, in the setting data 230, as shown in FIG. 10, the selected shape type "circle" and the extracted data type "center point" are set by the user for the setting item "center coordinate Y" of the setting item 220, and "center coordinate X" is set by the user as another setting item set from the same selected shape. In addition, in the setting data 230, as shown in FIG. 11, the selected shape type "circle" and the extracted data type "radius" are set by the user for the setting item "radius R" of the setting item 220, and "center coordinate X" is set by the user as another setting item set from the same selected shape.

[0031] 12, in the setting data 230, the user sets the type of selected shape "two straight lines" and the type of extracted data "angle" for the setting item "start angle S" of the setting item 220. Also, in the setting data 230, the user sets the type of selected shape "two straight lines" and the type of extracted data "angle" for the setting item "end angle E" of the setting item 220, as shown in Fig. 13. Also, in the setting data 230, the user sets the type of selected shape "two straight lines" and the type of extracted data "angle" for the setting item "angle interval I" of the setting item 220, as shown in Fig. 14.

[0032] As described above, the selected shape type and extracted data type of the setting items "End Angle E" and "Angle Interval I" are the same as the selected shape type "two straight lines" and extracted data type "angle" of the setting item "Start Angle S". Therefore, as shown in Figs. 13 and 14, the G-code registration unit 110 may display a priority order 240 on the registration screen 200, which sets the priority order for setting the setting items "Start Angle S", "End Angle E", and "Angle Interval I". The G-code registration unit 110 may also accept input of priorities such as "item display order" in the priority order 240 based on the user's input operation of the input unit 12. Then, when the setting button 250 is pressed, the G-code registration unit 110 registers the linking information of the set custom G-code "G200" shown in FIG. 6 and stores it in the linking information storage unit 142.

[0033] <Settings screen control unit 111> The setting screen control unit 111 displays on the display unit 13 a setting screen that automatically selects and sets setting items of the custom G-code to generate a machining program using the custom G-code, for example, based on an input operation of the input unit 12 by a user. Below, we will explain the display operation of the setting screen of the setting screen control unit 111 in the case of (a) a custom G code that calls a program for machining gears, and (b) a custom G code that calls a program for machining multiple holes on a circumference.

[0034] (a) Custom G-code calling a program to cut gears For example, when the setting screen control unit 111 receives an instruction to generate a machining program for machining a gear based on the CAD data of FIG. 3 based on an input operation by a user on the input unit 12, the setting screen control unit 111 displays on the display unit 13 a setting screen 300 including a CAD data display screen that displays the CAD data of the gear and a G-code selection screen for selecting a custom G-code, as shown in FIG. 15. When a custom G-code "G100" that calls up a program for machining a gear by a G-code designation unit 117 described later is designated by the user based on an input operation of the input unit 12 by the user, the setting screen control unit 111 displays a setting screen 300 including a CAD data display screen and a G-code input screen for setting the setting items "workpiece outer diameter D" and "workpiece tooth width W", as shown in FIG. 16, based on the linking information of the custom G-code "G100" in FIG. 4.

[0035] (b) Custom G code calling a program to drill multiple holes on a circle For example, when the setting screen control unit 111 receives an instruction to generate a machining program for drilling a plurality of holes on a circumference based on the CAD data of Fig. 5 based on an input operation by a user on the input unit 12, the setting screen control unit 111 displays a setting screen 300 including a CAD data display screen displaying CAD data of a workpiece in which holes H1 to H6 are generated on the circumference and a G-code selection screen for selecting a custom G-code on the display unit 13, as shown in Fig. 17. The CAD data in the CAD data display unit of the setting screen 300 is the same as that in Fig. 5, and will be described using the setting values ​​and symbols of the CAD data in Fig. 5. When a user specifies a custom G-code "G200" that calls a program for drilling multiple holes on a circumference by a G-code specification unit 117 (described later) based on an input operation by the user on the input unit 12, the setting screen control unit 111 displays a setting screen 300 including a CAD data display screen and a G-code input screen for setting the setting items "center coordinate X", "center coordinate Y", "radius R", "start angle S", "end angle E", and "angle interval I", as shown in FIG. 18, based on the linking information of the custom G-code "G200" in FIG. 6. Here, as shown in the linking information in FIG. 6, the setting items "center coordinate Y" and "radius R" are related to another setting item "center coordinate X" that is set from the same selected shape "circle", so the setting screen control unit 111 displays them with the same mark (for example, "*") and an explanation of the mark. This allows the user to know that the setting items are set using the same selection shape. Also, as shown in the association information in FIG. 6, the setting items "start angle S", "end angle E", and "angle interval I" are the same for the selected shape type "two straight lines" and the extracted data type "angle". Therefore, based on the priority order of the association information in FIG. 6 (for example, the item display order), the setting screen control unit 111 attaches marks such as "1", "2", "3", etc. and explanatory texts for the marks to the display unit 13 in the display order of the setting items "start angle S", "end angle E", and "angle interval I". By doing so, the user can know the setting order of the setting items.

[0036] <CAD data analysis unit 112> The CAD data analysis unit 112 analyzes, for example, the CAD data stored in the shape information storage unit 141 and displayed on the setting screen 300 in FIG. 16 or FIG. 18, and extracts the shapes (for example, "circle", "straight line", etc.) that make up the CAD data. The CAD data analysis unit 112 stores the extracted shapes in the analysis element storage unit 143 as analysis elements.

[0037] <Selected shape reception unit 113> The selected shape reception unit 113 receives, for example, the shape selected by the user from among the shapes shown in the CAD data displayed on the display unit 13 as the selected shape using the analysis elements in the analysis element storage unit 143. Specifically, the selected shape reception unit 113 receives, for example, the circle C1 indicating the outer diameter of the gear among the shapes of the CAD data on the setting screen 300 in FIG. 16 as the selected shape based on the input operation of the input unit 12 by the user. Also, the selected shape reception unit 113 may receive from the user the straight line L1 indicating the tooth width of the gear among the shapes of the CAD data on the setting screen 300 in FIG. 16 as the selected shape. On the other hand, the selected shape receiving unit 113 may receive, based on an input operation by the user on the input unit 12, a circle C2 on the circumference of which holes H1 to H6 are generated among the shapes of the CAD data on the setting screen 300 of Fig. 18 as the selected shape. Also, the selected shape receiving unit 113 may receive, from the user, two straight lines L20, L21 forming an angle of the start angle, two straight lines L20, L26 forming an angle of the end angle, or two straight lines L21, L22 forming an angle of the angle interval among the shapes of the CAD data on the setting screen 300 of Fig. 18 as the selected shape.

[0038] <Data type acquisition unit 114> The data type acquiring unit 114 inquires of the linking information storage unit 142 with the selection shape accepted by the selection shape accepting unit 113, and acquires the setting items and the extracted data type for the selection shape. Specifically, for example, when the data type acquiring unit 114 accepts a circle C1 indicating the outer diameter of a gear as a selected shape from the selected shape accepting unit 113 on the setting screen 300 of Fig. 16, the data type acquiring unit 114 acquires a setting item "outer diameter D of workpiece" and an extracted data type "diameter" for the accepted selected shape "circle" based on the linking information of Fig. 4 stored in the linking information storage unit 142. Also, when the data type acquiring unit 114 accepts a straight line L1 indicating the tooth width of a gear as a selected shape from the selected shape accepting unit 113 on the setting screen 300 of Fig. 16, the data type acquiring unit 114 may acquire a setting item "tooth width W of workpiece" and an extracted data type "width" for the accepted selected shape "straight line" based on the linking information of Fig. 4.

[0039] On the other hand, for example, when the data type acquisition unit 114 accepts a circle C2, in which holes H1 to H6 are generated at equal intervals on the circumference, as a selected shape from the selected shape acceptance unit 113 on the setting screen 300 of FIG. 18, the data type acquisition unit 114 may acquire the setting items "center coordinate X," "center coordinate Y," and "radius R" for the accepted selected shape "circle," as well as the extracted data types "center point" and "radius," based on the linking information of FIG. 6 stored in the linking information storage unit 142. In addition, when the data type acquisition unit 114 accepts two straight lines L20, L21 (or straight lines L20, L26 or straight lines L21, L22) as a selected shape from the selected shape acceptance unit 113 on the setting screen 300 of FIG. 18, it may acquire the setting items "start angle S," "end angle E," and "angle interval I" as well as the extracted data type "angle" for the accepted selected shape "two straight lines" based on the linking information of FIG. 6.

[0040] <Setting data calculation unit 115> The setting data calculation unit 115 calculates setting data based on the setting items and extracted data types acquired by the data type acquisition unit 114 and the selection shape accepted by the selection shape acceptance unit 113 . Specifically, for example, when the selected shape receiving unit 113 receives a circle C1 indicating the outer diameter of a gear from the user on the setting screen 300 in Fig. 16 as the selected shape, the data type acquiring unit 114 acquires the setting item "outer diameter D of workpiece" and the extracted data type "diameter" as described above. In this case, the setting data calculating unit 115 calculates the setting value (e.g., "130 mm") of the diameter set in the circle C1 of the CAD data as the setting data. 16, the data type acquiring unit 114 acquires the setting item "Workpiece Tooth Width W" and the extracted data type "Width." The setting data calculating unit 115 may calculate the setting value (e.g., "16 mm") of the tooth width set in the straight line L1 of the CAD data as the setting data.

[0041] On the other hand, for example, when the selected shape receiving unit 113 receives a circle C2 on the circumference of which holes H1 to H6 are generated from the user on the setting screen 300 in Fig. 18 as a selected shape, the data type acquiring unit 114 acquires the setting items "center coordinate X", "center coordinate Y", and "radius R" and the extracted data types "center point" and "radius" as described above. In this case, as described above, the setting item "center coordinate X" is registered in the linking information in Fig. 6 as another setting item set from the same selected shape as the setting items "center coordinate Y" and "radius R", so the setting data calculating unit 115 may calculate the setting values ​​(for example, center coordinate (0,0) and radius "40 mm") set in the circle C2 of the CAD data as setting data. In addition, when the selected shape receiving unit 113 receives two straight lines L20 and L21 from the user as the selected shape on the setting screen 300 of FIG. 18, the data type acquiring unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I" and the extracted data type "angle" as described above. In this case, as described above, the setting items "start angle S", "end angle E", and "angle interval I" have the same selected shape type of "two straight lines" and the same extracted data type of "angle", so the priority order (e.g., item display order, etc.) is registered in the linking information of FIG. 6. For this reason, the setting data calculating unit 115 may calculate, for example, the setting value (e.g., "60°") of the angle formed by the two straight lines L20 and L21 of the CAD data as the setting data of the setting item "start angle S" with the first setting order, based on the priority order of the linking information of FIG. 6.

[0042] <Item data setting section 116> The item data setting unit 116 sets the setting data calculated by the setting data calculation unit 115 to the setting item acquired by the data type acquisition unit 114 among the setting items on the setting screen 300 . Specifically, when the selected shape receiving unit 113 receives a circle C1 as a selected shape from the user on the setting screen 300 in Fig. 16, for example as shown in Fig. 19, the data type acquiring unit 114 acquires the setting item "Workpiece outer diameter D" and the extracted data type "Diameter", and the setting data calculating unit 115 calculates the setting value of the diameter set in the circle C1 of the CAD data (for example, "130 mm") as setting data. Then, the item data setting unit 116 sets the setting data calculated by the setting data calculating unit 115 to the setting item "Workpiece outer diameter D" acquired by the data type acquiring unit 114, as shown in Fig. 19. Next, when the selected shape receiving unit 113 receives a straight line L1 as a selected shape from the user on the setting screen 300 of Fig. 19, for example as shown in Fig. 20, the data type acquiring unit 114 acquires the setting item "workpiece tooth width W" and the extracted data type "width", and the setting data calculating unit 115 calculates the setting value of the tooth width set in the straight line L1 of the CAD data (for example, "16 mm") as setting data. Then, the item data setting unit 116 sets the setting data calculated by the setting data calculating unit 115 to the setting item "workpiece tooth width W" acquired by the data type acquiring unit 114, as shown in Fig. 20.

[0043] On the other hand, when the selected shape receiving unit 113 receives a circle C2 from the user as a selected shape on the setting screen 300 of FIG. 18 as shown in FIG. 21, the data type acquiring unit 114 acquires the setting items "center coordinate X", "center coordinate Y", and "radius R" and the extracted data types "center point" and "radius", and the setting data calculating unit 115 calculates the setting values ​​(for example, center coordinate (0,0) and radius "40 mm") set in the circle C2 of the CAD data as setting data. As described above, since the setting items "center coordinate Y" and "radius R" are related to another setting item "center coordinate X" set from the same selected shape, the item data setting unit 116 collectively sets the setting data calculated by the setting data calculating unit 115 to the setting items "center coordinate X", "center coordinate Y", and "radius R" acquired by the data type acquiring unit 114 as shown in FIG. 20.

[0044] Next, when the selected shape receiving unit 113 receives two straight lines L20 and L21 as a selected shape from the user on the setting screen 300 of FIG. 21 as shown in FIG. 22, the data type acquiring unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I" and the extracted data type "angle". As described above, based on the priority order of the linking information of FIG. 6, the setting data calculation unit 115 calculates, for example, a setting value of the angle formed by the two straight lines L20 and L21 of the CAD data (for example, "60°") as setting data for the setting item "start angle S" with the first display order. The item data setting unit 116 sets the setting data calculated by the setting data calculation unit 115 to the setting item "start angle S" acquired by the data type acquiring unit 114 as shown in FIG. 22.

[0045] Next, when the selected shape receiving unit 113 receives two straight lines L20 and L26 as a selected shape from the user on the setting screen 300 of FIG. 22 as shown in FIG. 23, the data type acquiring unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I" and the extracted data type "angle". The setting data calculating unit 115 calculates the setting value of the angle formed by the two straight lines L20 and L26 of the CAD data (for example, "210°") as the setting data of the setting item "end angle E" with the second display order based on the priority order of the linking information of FIG. 6. The item data setting unit 116 sets the setting data calculated by the setting data calculating unit 115 to the setting item "end angle E" acquired by the data type acquiring unit 114 as shown in FIG. 23.

[0046] Finally, when the selection shape reception unit 113 receives two straight lines L21 and L22 from the user as the selection shape on the setting screen 300 in FIG. 23 as shown in FIG. 24, the data type acquisition unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I", and the extraction data type "angle". The setting data calculation unit 115 calculates the set value of the angle formed by the two straight lines L21 and L22 of the CAD data (for example, "30°") as the setting data of the setting item "angle interval I" in the third display order based on the priority order of the association information in FIG. 6. The item data setting unit 116 sets the setting data calculated by the setting data calculation unit 115 in the setting item "angle interval I" acquired by the data type acquisition unit 114 as shown in FIG. 24.

[0047] <G-code specification unit 117> The G-code specification unit 117 specifies a custom G-code based on the input operation of the input unit 12 by the user on the setting screen 300 displayed on the display unit 13 that automatically selects and sets the setting items of the custom G-code as shown in FIG. 15 or FIG. 17, for example.

[0048] <G-code input unit 118> The G-code input unit 118 inputs the custom G-code specified and the set data of each set item on the setting screen 300 shown in FIG. 20 or FIG. 24, for example, to the program generation unit 119 described later.

[0049] <Program generation unit 119> The program generation unit 119 generates a machining program using, for example, the custom G-code input by the G-code input unit 118 and the set data of each set item.

[0050] <Registration process of the numerical control device 10> Next, with reference to FIG. 25, the flow of the registration process of the numerical control device 10 will be described. FIG. 25 is a flowchart for explaining the registration process of the numerical control device 10. The flow shown here is executed every time a registration instruction for a custom G-code is received from the user.

[0051] In step S41, the G-code registration unit 110 accepts an instruction to register a custom G-code based on an input operation by the user via the input unit 12, and displays the registration screen 200 on the display unit 13.

[0052] In step S42, the G-code registration unit 110 accepts a custom G-code to be registered in the G-code 210 on the registration screen 200 based on an input operation of the input unit 12 by the user.

[0053] In step S43, the G-code registration unit 110 accepts the item name and address name (variable name of the custom G-code) of the setting item of the custom G-code entered in step S42 in the setting item 220 of the registration screen 200 based on the user's input operation on the input unit 12.

[0054] In step S44, the G-code registration unit 110 sets the type of selection shape, the type of extracted data, and another setting item set from the same selection shape for each setting item 220 in the setting data 230 of the registration screen 200 based on the user's input operation on the input unit 12.

[0055] In step S45, the G-code registration unit 110 determines whether there are multiple setting items with the same type of selection shape and the same type of extracted data. If there are multiple setting items with the same type of selection shape and the same type of extracted data, the process proceeds to step S46. On the other hand, if there are not multiple setting items with the same type of selection shape and the same type of extracted data, the process proceeds to step S47.

[0056] In step S46, the G-code registration unit 110 sets priorities for setting each of multiple setting items having the same type of selected shape and extracted data type in the priority order 240 of the registration screen 200 based on the user's input operation on the input unit 12.

[0057] In step S47, when the setting button 250 is pressed based on an input operation by the user on the input unit 12, the G-code registration unit 110 registers the linking information of the custom G-code and stores it in the linking information storage unit 142.

[0058] <Program Generation Process of the Numerical Control Device 10> Next, the flow of the program generation process of the numerical control device 10 will be described with reference to FIG. 26 is a flowchart illustrating the program generation process of the numerical control device 10. The flow shown here is executed every time an instruction to generate a machining program is received from a user.

[0059] In step S51, when the setting screen control unit 111 receives an instruction to generate a machining program based on an input operation by a user on the input unit 12, it displays a setting screen 300 on the display unit 13, the setting screen 300 including a CAD data display screen that displays CAD data and a G-code input screen.

[0060] In step S52, the G-code designation unit 117 designates a custom G-code based on an input operation of the input unit 12 by the user.

[0061] In step S53, the selected shape receiving unit 113 receives the selected shape in the CAD data displayed in step S51, based on an input operation by the user on the input unit 12.

[0062] In step S54, the data type acquisition unit 114 queries the linking information storage unit 142 with the selection shape accepted in step S53, and acquires the setting item and the extracted data type for that selection shape.

[0063] In step S55, the setting data calculation unit 115 calculates setting data based on the selection shape accepted in step S53 and the setting items and extracted data types acquired in step S54.

[0064] In step S56, the item data setting unit 116 sets the setting data calculated in step S55 to the setting items of the setting screen 300 acquired in step S54.

[0065] In step S57, the item data setting unit 116 determines whether or not all the setting items have been set. If all the setting items have been set, the process proceeds to step S58. On the other hand, if all the setting items have not been set, the process returns to step S53.

[0066] In step S58, the G-code designation unit 117 determines whether or not all the custom G-codes have been designated. If all the custom G-codes have been designated, the process proceeds to step S59. On the other hand, if all the custom G-codes have not been designated, the process returns to step S52.

[0067] In step S59, the G-code input unit 118 inputs the specified custom G-code and the setting data of the set setting items to the program generation unit 119.

[0068] In step S60, the program generation unit 119 generates a machining program using the input custom G code and setting data for each setting item.

[0069] As described above, the numerical control device 10 according to one embodiment preregisters, as linking information, at least the setting item for each custom G-code, the type of selected shape for each setting item, the type of extracted data, and other setting items set from the same selected shape. This allows the numerical control device 10 to easily and quickly input each item related to the shape of the custom G-code, thereby eliminating the need to input the custom G-code. Furthermore, the numerical control device 10 can reduce the time required to generate a machining program.

[0070] Although one embodiment has been described above, the numerical control device 10 is not limited to the above-described embodiment, and includes modifications and improvements within the scope of achieving the object.

[0071] <Variation 1> In the embodiment, the numerical control device 10 registers the linking information in the case of a custom G-code that calls a program for machining a gear and a custom G-code that calls a program for machining a plurality of holes on a circumference, but the present invention is not limited to this. For example, the numerical control device 10 may register the linking information of any custom G-code.

[0072] <Variation 2> Also, for example, in the above-described embodiment, the setting screen control unit 111 displays the setting items "Start angle S," "End angle E," and "Angle interval I" of the custom G code "G200" that calls a program for drilling multiple holes on a circumference in order to set them in the display order of the items, with marks "1," "2," and "3" corresponding to the display order, but this is not limited to the above. For example, when the "currently selected item" is set as the priority in the linking information, the setting screen control unit 111 may display the currently selected setting item based on the user's input operation on the input unit 12 on the display unit 13 with a mark such as a square and an explanatory text for the mark, as shown in FIG. 27. FIG. 27 is a diagram showing an example of the setting screen 300 when the priority is set to "currently selected item." As shown in FIG. 27, when the setting item "angle interval I" is selected by the user on the setting screen 300 and the selected shape receiving unit 113 receives two straight lines L21 and L22 on the setting screen 300 from the user as the selected shape, the data type acquiring unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I" and the extracted data type "angle". Since the setting item "angle interval I" is selected, the setting data calculating unit 115 calculates the setting value (e.g., "30°") of the angle formed by the two straight lines L21 and L22 of the CAD data as the setting data of the selected setting item "angle interval I". As shown in FIG. 27, the item data setting unit 116 sets the setting data calculated by the setting data calculating unit 115 to the selected setting item "angle interval I". Similarly to the setting item "angle interval I," the setting items "start angle S" and "end angle E" are marked with a square when selected by the user, and the setting data is set.

[0073] <Variation 3> Also, for example, in the above-described embodiment, among the setting item "G200" of the custom G-code that calls a program for drilling multiple holes on a circumference, the setting item "center coordinate X" is registered in the linking information in FIG. 6 as a separate setting item that is set from the same selected shape as the setting items "center coordinate Y" and "radius R." Therefore, when the selected shape receiving unit 113 receives from the user the circle C2 in which holes H1 to H6 are to be generated as the selected shape, as shown in FIG. 21, the item data setting unit 116 collectively sets the setting data for the setting items "center coordinate X," "center coordinate Y," and "radius R." However, this is not limited to this. For example, when "manually select setting item" is registered as the priority in the linking information in Fig. 6, the item data setting unit 116 may set each of the setting items "center coordinate X", "center coordinate Y", and "radius R" individually based on the input operation of the input unit 12 by the user, even if the setting item "center coordinate X" is registered in the linking information as a different setting item set from the same selection shape as the setting items "center coordinate Y" and "radius R". In this case, the setting screen control unit 111 may display a pop-up screen for allowing the user to select the setting item to be set from the setting items "center coordinate X", "center coordinate Y", and "radius R", for example, as shown in Fig. 28. This allows the user to set setting data for any setting item from the item list.

[0074] Alternatively, if “manually select setting items” is registered as a priority in the linking information of FIG. 6, the setting screen control unit 111 may pop up a screen that allows the user to select setting items for the accepted selection shape each time the selection shape accepting unit 113 accepts a selection shape from the user. As shown in FIG. 29, when the selected shape receiving unit 113 receives two straight lines L21 and L22 from the user on the setting screen 300, the data type acquiring unit 114 acquires the setting items "start angle S", "end angle E", and "angle interval I" for the two straight lines L21 and L22 of the selected shape received based on the linking information in FIG. 6, and the extracted data type "angle". As shown in FIG. 30, the setting screen control unit 111 may pop up an item selection screen 310 displaying a list of the setting items "start angle S", "end angle E", and "angle interval I". When the setting item "angle interval I" is selected by the user on the item selection screen 310, the setting data calculation unit 115 may calculate the setting value (for example, "30°") of the angle formed by the two straight lines L21 and L22 of the CAD data as the setting data of the setting item "angle interval I". As shown in FIG. 31, the item data setting section 116 may set the setting data calculated by the setting data calculation section 115 to the setting item "angle interval I." In this way, by displaying a single selection list on item selection screen 310, the user can prevent selection errors.

[0075] When all or part of the numerical control device 10 is configured from software, it can be realized by storing the information necessary for the calculation in the DRAM and running the program on the CPU in a computer configured with a memory unit such as a hard disk or ROM that stores a program describing all or part of the operation of the numerical control device 10, a DRAM that stores data necessary for the calculation, a CPU, and a bus connecting each unit.

[0076] These programs can be stored and provided 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 programs may also be provided to a computer by various types of transitory computer readable media. Examples of transitory computer readable media include electrical signals, optical signals, and electromagnetic waves. The transitory computer readable media can provide the programs to a computer via wired communication paths such as electric wires and optical fibers, or wireless communication paths. These programs may also be distributed by being downloaded to users' computers via a network.

[0077] In addition, the steps of writing a program to be recorded on a recording medium include not only processes that are performed chronologically according to the order, but also processes that are not necessarily performed chronologically but are executed in parallel or individually.

[0078] In other words, the numerical control device of the present disclosure can take various forms having the following configurations.

[0079] (1) The numerical control device 10 of the present disclosure includes a G-code registration unit 110 that registers linking information linking a uniquely customized custom G-code, at least one item set in the custom G-code, a type of shape set for each item, and a type of extracted data to be extracted from the shape, a linking information storage unit 142 that saves the registered linking information, a selected shape receiving unit 113 that receives a shape selected by a user from among the shapes indicated by the CAD data displayed on the display unit 13, a data type acquisition unit 114 that queries the linking information storage unit with the selected shape and acquires the item and type of extracted data for the selected shape, a setting data calculation unit 115 that calculates setting data based on the acquired item and type of extracted data and the selected shape, and an item data setting unit 116 that sets the setting data calculated by the setting data calculation unit 115 to the acquired item. According to this numerical control device 10, each item relating to the shape of the custom G code can be input easily and quickly.

[0080] (2) In the numerical control device 10 described in (1), when there are multiple items with the same shape type and extracted data type, the G-code registration unit 110 may set priorities for the multiple items and register them in the linking information. By doing so, the numerical control device 10 can inform the user of which setting items to set and in what order for a plurality of items having the same type of shape and type of extracted data.

[0081] (3) In the numerical control device 10 described in (1) or (2), when there are multiple items to be set from the same selected shape, the G-code registration unit 110 may register the G-code in the linking information so that the multiple related items can be set at the same time. In this way, the numerical control device 10 can eliminate the need to input custom G-code.

[0082] (4) In the numerical control device 10 described in (2), when there is one item for the selected shape, the item data setting unit 116 may automatically select the item and set the calculated setting data, and when there are multiple items with the same shape type and extracted data type, the item data setting unit 116 may automatically select each of the items based on the set priority order and set the calculated setting data. By doing so, the numerical control device 10 can reduce the time required to generate a machining program.

[0083] (5) In the numerical control device 10 described in (3), when there are multiple items to be set from the same selected shape, the item data setting unit 116 may set the calculated setting data for each of the multiple related items in a lump sum. By doing so, the numerical control device 10 can more efficiently eliminate the effort required for inputting custom G-code.

[0084] (6) The numerical control device 10 according to (2) or (4) may further include a setting screen control unit 111 that displays items and priorities based on the association information registered by the G-code registration unit 110. In this way, the numerical control device 10 can achieve the same effects as (2) and (4).

[0085] (7) In the numerical control device 10 described in (6), when there are multiple items having the same shape type and extraction data type, the setting screen control unit 111 may display a list of the multiple items, and the item data setting unit 116 may set the calculated setting data to a selected item from the multiple items displayed in the list. By doing so, the numerical control device 10 can achieve the same effect as (6). [Explanation of symbols]

[0086] 10 Numerical control device 11 Control section 110 G-Code Registration Section 111 Setting screen control section 112 CAD Data Analysis Department 113 Selected shape reception section 114 Data type acquisition section 115 Setting data calculation unit 116 Item Data Setting Section 117 G code designation section 118 G-code input section 119 Program Generation Unit 12 Input section 13 Display section 14 Storage section 141 Shape information storage unit 142 Linking information storage unit 143 Analysis element storage section

Claims

1. a G-code registration unit that registers linking information that links a uniquely customized custom G-code, at least one item set in the custom G-code, a type of shape set for each of the items, and a type of data extracted from the shape; A linking information storage unit for storing the registered linking information; a selected shape receiving unit that receives a shape selected by a user from among shapes indicated by the CAD data displayed on the CAD data display unit; a data type acquiring unit that queries the association information storage unit with the selected shape to acquire an item and a type of extracted data for the selected shape; a setting data calculation unit that calculates setting data based on the acquired items and types of extracted data and the selected shape; an item data setting unit that sets the setting data calculated by the setting data calculation unit to the acquired item; A numerical control device comprising:

2. The numerical control device according to claim 1 , wherein, when there are a plurality of items with the same type of shape and type of extracted data, the G-code registration unit sets priorities for the plurality of items and registers them in the linking information.

3. 3. The numerical control device according to claim 1, wherein when there are a plurality of items to be set from the same selected shape, the G-code registration unit registers the G-code in the linking information so that the G-code can be set collectively for the plurality of related items.

4. The item data setting unit includes: If there is one item for the selected shape, automatically select that item and set the calculated setting data; 3. The numerical control device according to claim 2, wherein when there are a plurality of items with the same type of shape and type of extracted data, each item is automatically selected based on the set priority order, and the calculated setting data is set.

5. The numerical control device according to claim 3 , wherein when there are a plurality of items to be set from the same selected shape, the item data setting unit collectively sets the calculated setting data for each of the plurality of related items.

6. The numerical control device according to claim 2 or 4, further comprising a setting order display unit that displays the items and the priorities based on the linking information registered by the G-code registration unit.

7. the setting order display unit displays a list of the corresponding items when the type of the shape and the type of the extracted data are the same for a plurality of the items; The numerical control device according to claim 6 , wherein the item data setting unit sets the calculated setting data to a selected item from among the plurality of items displayed in a list.

Citation Information

Patent Citations

  • Interactive NC program generating method

    JP1987052608A

  • Machine tool, method for editing machining program for machine tool, and program for editing machining program for machine tool

    JP6654740B1

  • JPP6654740B

  • Cutting machine and cutting method

    WO2020008780A1