Numerical control device
By using the associated information storage and retrieval function of the numerical control device, machining programs are automatically generated, which solves the problems of time-consuming and error-prone selection of G-codes and machining shapes in the existing technology, and improves selection efficiency and program production speed.
Patent Information
- Application Number
- CN202180071422.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-10-26
- Filing Date
- 2021-10-20
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-10-20
AI Technical Summary
In existing technologies, when generating machining programs, users need to select G-codes and machining shapes, and all information needs to be displayed, which makes the selection process time-consuming and prone to errors.
The machining program is automatically generated by the numerical control device. The association relationship between the tool information, shape identifier and G code is stored in the association information storage unit. The machined shape and G code are extracted and displayed, reducing the amount of information displayed.
This technology enables the reduction of G-code and machining shape display by selecting tools, improving selection efficiency, reducing errors, and shortening machining program creation time.
Smart Images

Figure CN116324645B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a numerical control device. Background Technology
[0002] Previously, there were known technologies for automatically creating machining programs using CAD data. For example, see Patent Document 1.
[0003] Existing technical documents
[0004] Patent documents
[0005] Patent Document 1: Japanese Patent Application Publication No. 4-315550 Summary of the Invention
[0006] The problem that the invention aims to solve
[0007] When creating a machining program using CAD data, the following situations exist: (a) the user selects the machining shape and then selects the G-code; (b) the user selects the G-code and then selects the machining shape.
[0008] (a) Regarding the case where the user selects the processing shape and then chooses the G-code.
[0009] Figures 26A to 26D This is an example of how the screen changes when a user selects a processing shape and then chooses a G-code.
[0010] like Figure 26A As shown, if the user wants to create Figure 27 When a workpiece is shown and a tool (cutting tool) is selected, the machining program containing the selected tool (e.g., tool code "T10") will be displayed in the left area of the screen. After selecting a tool, if the user selects... Figure 27 processed products Figure 28A as well as Figure 28B The CAD data shown will display all shapes contained within it in the right-hand area of the screen, without reducing the shapes that can be processed by the selected tool (tool code "T10"). Furthermore, for example... Figure 26A As shown, if the user selects the circular portion in order to perform deep hole machining on the upper right circular portion, then as follows... Figure 26B As shown, all G-codes are displayed in the right-hand area of the screen, without reducing the G-codes using the selected tool (tool code "T10") and the selected shape.
[0011] exist Figure 26B In the displayed screen, if the user selects "G83 Deep Hole Drilling Circulation" (pecking drilling circulation), then as shown... Figure 26C As shown, the screen on the right displays the settings for the cutting conditions using G-code "G83". If in Figure 26CThe display screen shown allows the user to set cutting condition parameters, which are then... Figure 26D In the left area of the displayed screen, a program block with G code "G83" is added to the machining program and displayed. Furthermore, by processing all shapes contained in the CAD data... Figures 26A to 26D The steps shown generate the processing program.
[0012] (b) Regarding the situation where the user selects the processing shape after selecting the G code.
[0013] Figure 29A and Figure 29B This is an example of the screen display changes when a user selects a processing shape after choosing a G-code.
[0014] like Figure 29A As shown, if the user selects a tool, the processing program containing the selected tool (e.g., tool code "T10") is displayed in the left area of the screen, and all G-codes are displayed in the right area of the screen, without reducing the G-codes that the selected tool (tool code "T10") can use. Figure 29A In the shown screen, for example, if the user selects "G83 Deep Hole Drilling Cycle" for deep hole drilling, then... Figure 27 The processed work shown Figure 28A and Figure 28B The CAD data shown is as follows: Figure 29B As shown, all shapes contained in the CAD data are displayed in the right area of the screen without reducing the shapes that can be processed using the selected G code "G83".
[0015] exist Figure 29B In the displayed screen, for example, if the user selects the upper right circular portion as the shape for deep hole machining, the cutting condition parameters for setting the G code "G83" are displayed in the right-hand area. Figure 26C The same scene. If in Figure 26C The display shown allows users to set cutting condition parameters, which are then compared to... Figure 26D Similar to the previous case, a program block with G-code "G83" is added to the machining program and displayed. Furthermore, this is done by processing all shapes contained in the CAD data. Figure 29A , Figure 29B , Figure 26C , Figure 26D The steps shown generate the processing program.
[0016] However, in any of the above situations, the machining shape of all G-codes and / or CAD data will be displayed. Therefore, selecting the desired G-code or machining shape takes time and is prone to errors.
[0017] Therefore, it is expected that the display will be achieved by reducing the G-code and / or machining the shape using the selected tools.
[0018] Methods for solving problems
[0019] (1) One aspect of the numerical control device disclosed herein is a numerical control device that automatically generates a machining program, comprising: an association information storage unit that stores association information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier; a tool information acquisition unit that acquires tool information related to a tool selected for machining; a shape ID information extraction unit that uses the acquired tool information to query the association information storage unit to extract a shape identifier representing a shape that the tool of the acquired tool information can process; a machinable shape extraction unit that extracts a machinable shape from CAD data based on the extracted shape identifier; and a machinable shape display unit that displays the extracted machinable shape.
[0020] (2) One aspect of the numerical control device disclosed herein is a numerical control device that automatically generates a machining program, comprising: an association information storage unit that stores association information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier; a tool information acquisition unit that acquires tool information related to the tool selected for machining; a G-code extraction unit that uses the acquired tool information to query the association information storage unit to extract the G-code that can be used by the tool based on the acquired tool information; and a G-code display unit that displays the extracted G-code.
[0021] Invention Effects
[0022] According to one method, the G-code can be reduced and / or the shape can be processed using selected tools for display. Attached Figure Description
[0023] Figure 1 This is a functional block diagram illustrating an example of the functional configuration of the control system in the first embodiment.
[0024] Figure 2 This is a diagram representing an example of a related table.
[0025] Figure 3A This is an example of a display screen showing the extracted, processable shape.
[0026] Figure 3B This is an example of a display screen showing the extracted, processable shape.
[0027] Figure 4 This is an example of a display showing a scaled-down version of the usable G-code.
[0028] Figure 5A This is an example of a screen showing the settings for the selected G-code.
[0029] Figure 5B This is an example of a display screen showing a program block with the selected G code appended.
[0030] Figure 6 This is a flowchart illustrating the machining program generation process of the numerical control device 10.
[0031] Figure 7 Yes Figure 6 The flowchart for explaining the tool information acquisition and processing shown in step S1 is as follows.
[0032] Figure 8A Yes Figure 6 The flowchart illustrating the shape extraction process shown in step S3 is as follows.
[0033] Figure 8B Yes Figure 6 The flowchart illustrating the shape extraction process shown in step S3 is as follows.
[0034] Figure 9 Yes Figure 6 The flowchart illustrating the shape selection process shown in step S5 is as follows.
[0035] Figure 10 Yes Figure 8A The flowchart below explains the process of determining whether the shape of the hole with shape ID "1" exists in the CAD data of the workpiece in step S32.
[0036] Figure 11 This is an example of CAD data representing the shape of a hole.
[0037] Figure 12 Yes Figure 8A The flowchart in step S35 describes the process of determining whether the thread shape with shape ID "2" exists in the CAD data of the workpiece.
[0038] Figure 13 This is a diagram showing an example of CAD data representing the shape of a thread.
[0039] Figure 14 Yes Figure 8AThe flowchart in step S38 describes the process of determining whether the cavity shape with shape ID "3" exists in the CAD data of the workpiece.
[0040] Figure 15 This is a diagram showing an example of CAD data representing the shape of a cavity.
[0041] Figure 16 Yes Figure 8B The flowchart below explains the process of determining whether the outline shape with shape ID "4" exists in the CAD data of the workpiece in step S3B.
[0042] Figure 17 This is a diagram representing an example of CAD data showing the shape of a contour.
[0043] Figure 18 Yes Figure 8B The flowchart below explains the process of determining whether a tilted shape with shape ID "5" exists in the CAD data of the workpiece in step S3E.
[0044] Figure 19 This is a diagram representing an example of CAD data showing a tilted shape.
[0045] Figure 20 This is a functional block diagram illustrating an example of the functional configuration of the control system in the second embodiment.
[0046] Figure 21 This is an example of a display screen showing the G-code that can be used.
[0047] Figure 22 This is an example of a display screen showing the extracted, processable shape.
[0048] Figure 23 This is a flowchart illustrating the process of generating machining programs for a numerical control device.
[0049] Figure 24 This is an example of a settings screen when using the G-code "G1060" for rough machining of the outer wall of the contour machining process.
[0050] Figure 25 This is an example of a screen showing a program block with the selected G code added.
[0051] Figure 26A This is an example of the change in the display screen when a user selects a processing shape and then chooses a G-code.
[0052] Figure 26B This is an example of the change in the display screen when a user selects a processing shape and then chooses a G-code.
[0053] Figure 26CThis is an example of the change in the display screen when a user selects a processing shape and then chooses a G-code.
[0054] Figure 26D This is an example of the change in the display screen when a user selects a processing shape and then chooses a G-code.
[0055] Figure 27 This is a diagram showing an example of a processed product.
[0056] Figure 28A It means Figure 27 A diagram showing an example of CAD data for a workpiece being machined.
[0057] Figure 28B It means Figure 27 A diagram showing an example of CAD data for a workpiece being machined.
[0058] Figure 29A This is an example of the changes in the display screen when a user selects a processing shape after choosing a G-code.
[0059] Figure 29B This is an example of the changes in the display screen when a user selects a processing shape after choosing a G-code. Detailed Implementation
[0060] <First Implementation>
[0061] First, a general overview of this embodiment will be provided. In this embodiment, the numerical control device stores association information, which pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier. The numerical control device acquires tool information related to the tool selected for processing, uses the acquired tool information to query the association information, extracts the shape identifier representing the shape that the tool of the acquired tool information can process, and displays the extracted processable shape.
[0062] Therefore, according to this embodiment, the problem of "displaying by reducing G-code and / or processing shape by selecting a tool" can be solved.
[0063] The above is a summary of the first implementation method.
[0064] Next, the structure of this embodiment will be described in detail with reference to the accompanying drawings.
[0065] Figure 1 This is a functional block diagram illustrating an example of the functional configuration of the control system in the first embodiment. For example... Figure 1 As shown, the control system 1 has a numerical control device 10 and a machine tool 20.
[0066] The numerical control device 10 and the machine tool 20 can be directly connected to each other via a connection interface not shown. Alternatively, the numerical control device 10 and the machine tool 20 can also 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 and the machine tool 20 have a communication unit not shown for communicating with each other via this connection. Furthermore, as described later, the machine tool 20 may also include the numerical control device 10.
[0067] Machine tool 20 is a machine tool known to those skilled in the art, and it operates according to the action instructions of numerical control device 10.
[0068] Furthermore, the machine tool 20 may, for example, store a tool management table (not shown) in a storage unit such as an HDD (Hard Disk Drive) included in the machine tool 20 to manage all tools mounted on the spindle (not shown) of the machine tool 20. Moreover, the numerical control device 10, described later, can obtain tool names, tool diameters, tool lengths, etc., from the tool management table (not shown) of the machine tool 20 based on tool numbers such as "T10" set in the machining program.
[0069] The numerical control device 10 is a well-known numerical control device to those skilled in the art. It generates motion commands based on the execution of the machining program and sends the generated motion commands to the machine tool 20. Thus, the numerical control device 10 controls the motion of the machine tool 20.
[0070] like Figure 1 As shown, the numerical control device 10 includes a control unit 11, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11 includes a tool information acquisition unit 110, a shape ID information extraction unit 111, a processable shape extraction unit 112, a shape selection acquisition unit 113, a G-code extraction unit 114, and a program generation unit 115. The storage unit 14 includes an association table 141.
[0071] The input unit 12 is configured, for example, by a keyboard, an MDI (Manual Data Input), and / or a touch panel disposed on the front surface of the display unit 13 (described later), and accepts input from a user acting as an operator. The input unit 12 functions as a shape selection receiving unit, which selects a processable shape extracted by the processable shape extraction unit 112 (described later) based on the user's input. Furthermore, the input unit 12 also functions as a G-code selection receiving unit, which selects a usable G-code further reduced by the usable G-code extraction unit 114 (described later) based on the user's input.
[0072] Display unit 13 is a display device such as an LCD (Liquid Crystal Display) and has a touch panel (not shown) disposed on the front surface of the display device. Display unit 13 functions as a processable shape display unit, which displays processable shapes extracted by processable shape extraction unit 112 (described later). In addition, display unit 13 also functions as a G-code display unit, which displays usable G-codes that are further reduced by G-code extraction unit 114 (described later) for processing into processable shapes.
[0073] <Storage Section 14>
[0074] The storage unit 14 is, for example, RAM (Random Access Memory) or HDD (Hard Disk Drive). In addition to storing various programs, including known control software for the numerical control device 10 to function as a numerical control device, the storage unit 14 also has an association table 141.
[0075] Association table 141 contains the following association information: tool information associated with multiple tools, shape identifiers (hereinafter also referred to as "shape IDs") representing the shapes that each of the multiple tools can process, and at least one G code that can be used to process the shape represented by the shape ID.
[0076] Figure 2 This is a diagram representing an example of the association table 141.
[0077] like Figure 2 As shown, association table 141, for example, contains "T" id "Tools", "S" id "Shape (CAD)", "G" id The storage area for "G code" and "G code".
[0078] In the association table 141, "T" id The storage area contains tool identifiers (hereinafter referred to as "tool IDs") pre-assigned according to the tool, such as "1", "2", etc. Additionally, regarding the storage in "T"... id The tool ID in the storage area is assigned a different tool ID even if the tool number and type are the same, when the shape to be processed is different.
[0079] The storage area of "Tools" in relational table 141 stores data related to "T". idThe corresponding tool number (e.g., "T10") and tool type (e.g., "drill bit") are stored in the "Tools" storage area. In addition, as mentioned above, the tool number and tool type stored in the "Tools" storage area are preferably obtained in advance from the tool management table (not shown) of the machine tool 20.
[0080] In the association table 141, “S” id The storage area of “Tools” stores shape IDs such as “1”, “2”, etc., that represent shapes that can be processed by tools stored in the storage area of “Tools”.
[0081] Within the "Shape (CAD)" storage area of associated table 141, CAD data representing shapes processed by tools stored in the "Tools" storage area is stored. Specifically, in "S id In the "Shape (CAD)" storage area where "1" is set, CAD data representing the shape of a hole opened by the drill bit with tool number "T10" is stored. Additionally, in the "S" storage area... id In the "Shape (CAD)" storage area marked "2", CAD data is stored representing the shape of the thread teeth (represented by thick lines) machined by a tap (represented by thick lines) in a hole (represented by thin lines) created by a drill bit (e.g., tool number "T10"), and machined by a tap (represented by thick lines). Additionally, in "S id The "Shape (CAD)" storage area, marked "3", stores CAD data representing shapes used for pocketing by end mills, for example, tool number "T30". Additionally, in the "S" section... id The "Shape (CAD)" storage area, marked "4", stores CAD data representing shapes profiled by end mills, for example, tool number "T30". Additionally, in the "S" storage area... id In the storage area for “Shape (CAD)” where “5” is “5”, CAD data representing the shape of a hole that is opened at an angle by a drill bit with tool number “T10” is stored.
[0082] Furthermore, the storage area for "Shape (CAD)" within associated table 141 is not limited to the CAD data of the shape to be processed. For example, in "S..." id In the "Shape (CAD)" storage area where "1" is set, you can also store shapes representing three holes drilled by a 10mm diameter drill bit with tool number "T10". wait The format is character data. Additionally, 'k' represents the number of holes, and '*' represents the hole diameter. Furthermore, in "S..." idIn the "Shape (CAD)" storage area where "2" is specified, character data in the format "M*×h×D", such as "M10×1.5×15", can also be stored, representing the shape of a threaded portion made by a tap with tool number "T20" in a hole with a diameter of, for example, 10mm, a depth of 15mm, and a height of 1.5mm. Furthermore, h represents the height of the threaded portion, and D represents the depth of the threaded portion.
[0083] In the association table 141, "G" id In the storage area of "", there are G-code identifiers such as "1", "2" etc. (hereinafter also referred to as "G-code ID"). The G-code identifier represents the G-code that can be used to process the shape stored in the storage area of "shape (CAD)" by the tool stored in the storage area of "tool".
[0084] In the "G-code" storage area within association table 141, at least one G-code is stored that can be used to process a shape stored in the "Shape (CAD)" storage area by a tool stored in the "Tools" storage area. Specifically, in G-code ID "G..." id The storage area for "G-codes" marked "1" stores the G-codes for drilling cycles "G81", "G82", "G83", "G80", "G1110", and "G1111" that can be used to machine holes with the drill bit of tool number "T10". Additionally, in the G-code ID "G..." id The storage area for "G code" with the value "2" stores G codes for tapping (G84) and tapping (G1112) that can be used to machine the thread shape for a tap with tool number "T20" in a hole opened by, for example, a drill bit with tool number "T10". Additionally, in the G code ID "G id The storage area for the "G code" with the value "3" stores the G codes for roughing ("G1040"), finishing the bottom surface ("G1041"), and finishing the side surface ("G1042") of a cavity, which can be used for cavity machining with an end mill, for example, tool number "T30". Additionally, in the G code ID "G id The storage area for "G code" with the value "3" stores G codes for contour machining using end mills with tool number "T30", including roughing of the outer wall ("G1060"), finishing of the bottom surface of the outer wall ("G1061"), and finishing of the side surface of the outer wall ("G1062"). Additionally, in the G code ID "G..." idIn the storage area of the "G code" with the value "5", the following G codes are stored: the inclined surface indexing instruction "G68.2", the inclined surface indexing instruction "G68.3" based on the tool axis, and the inclined surface indexing instruction (incremental multi-instruction) "G68.4", which can be used to process inclined holes by a drill bit with tool number "T10".
[0085] <Control Unit 11>
[0086] The control unit 11 includes a CPU (Central Processing Unit), ROM, RAM, CMOS (Complementary Metal-Oxide-Semiconductor) memory, etc., which are configured to communicate with each other via a bus, as is known to those skilled in the art.
[0087] The CPU is the processor that controls the numerical control device 10 as a whole. The CPU reads the system program and application program stored in ROM via the bus, and controls the numerical control device 10 according to the system program and application program. Thus, as... Figure 1 As shown, the control unit 11 is configured to perform the functions of the tool information acquisition unit 110, the shape ID information extraction unit 111, the processable shape extraction unit 112, the shape selection acquisition unit 113, the G-code extraction unit 114, and the program generation unit 115. Various data, such as temporary calculation data and display data, are stored in RAM. Furthermore, the CMOS memory is configured as a non-volatile memory that is backed up by a battery (not shown) and maintains its storage state even when the power supply to the numerical control device 10 is disconnected.
[0088] The tool information acquisition unit 110 acquires tool information related to the tool selected in the process.
[0089] Specifically, the tool information acquisition unit 110 acquires tool information (e.g., tool number, tool type, etc.) based on input operations by the user via the input unit 12. Furthermore, when the user does not input tool information via the input unit 12, the tool information acquisition unit 110 can also acquire tool information (e.g., tool number, tool type, etc.) from tooling data, which is pre-acquired from the tool management data (not shown) of the machine tool 20.
[0090] The shape ID information extraction unit 111 uses the tool information obtained by the tool information acquisition unit 110 to query the association table 141 of the association information storage unit to extract the shape ID (S) representing the shape that the tool can process based on the acquired tool information. id ).
[0091] Specifically, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T10", the shape ID information extraction unit 111 extracts "S" according to the association table 141. id The shape IDs are "1" and "5". Additionally, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T20", the shape ID information extraction unit 111 extracts "S" according to the association table 141. id The shape ID is "2". Additionally, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T30", the shape ID information extraction unit 111 extracts "S" according to the association table 141. id The shape IDs are "3" and "4".
[0092] The shape extraction unit 112 extracts the shape that can be processed from the CAD data of the workpiece that is the object to be processed, based on the shape ID extracted by the shape ID information extraction unit 111.
[0093] Specifically, the shape extraction unit 112 can extract, for example, holes machined parallel to the X-axis, Y-axis, or Z-axis, and holes machined at an angle from the CAD data when the shape ID extracted by the shape ID information extraction unit 111 is "1" or "5". Furthermore, when the shape ID extracted by the shape ID information extraction unit 111 is "2", the shape extraction unit 112 extracts the portion for machining threads from the CAD data as a machined shape. Additionally, when the shape ID extracted by the shape ID information extraction unit 111 is "3" or "4", the shape extraction unit 112 extracts the portion for cavity machining and the portion for contour machining from the CAD data as machined shapes. A detailed description of the shape extraction unit 112 will be provided later.
[0094] Furthermore, the display unit 13, which is a processable shape display unit, displays the processable shape extracted by the processable shape extraction unit 112.
[0095] Figure 3A as well as Figure 3B This is an example of a display screen showing the extracted, processable shape.
[0096] like Figure 3A As shown, in from Figure 28A and Figure 28B When the hole shape with shape ID "1" is extracted from the CAD data shown and is selected as a shape that can be processed by the shape extraction unit 112, the display unit 13, which is the shape display unit for processing shapes, can, for example, emphasize the extracted hole shape with thick lines. Additionally, as... Figure 3B As shown, in from Figure 28A and Figure 28B When the machining shape of the cavity machining part with shape ID "3" and / or the contour machining part with shape ID "4" is extracted from the CAD data shown and is used as the shape that can be machined by the machined shape extraction unit 112, the display unit 13, which is the machined shape display unit, can, for example, use thick lines to emphasize the extracted machined shape.
[0097] Furthermore, the display unit 13, which is a shape display unit capable of processing, can emphasize the extracted shape capable of processing with thick lines, or it can emphasize the shape with lines other than thick lines, or it can emphasize the shape with lines of colors such as red.
[0098] For example, as shown in display unit 13, which is a display unit capable of processing shapes. Figure 3A or Figure 3B In the display screen, when the user selects a processable shape via the input unit 12, which serves as the shape selection receiving unit, the shape acquisition unit 113 acquires the shape ID of the selected processable shape. The shape acquisition unit 113 outputs the acquired shape ID of the processable shape together with the tool information acquired by the tool information acquisition unit 110 to the G-code extraction unit 114, which will be described later.
[0099] The G-code extraction unit 114 can use the tool information received from the shape selection unit 113 and the shape ID of the shape that can be processed to query the association table 141 of the association information storage unit, and further reduce the G-code that can be used to process the tool of the received tool information into the shape of the received shape ID.
[0100] Specifically, for example, when the shape selection acquisition unit 113 receives the tool number "T10" obtained by the tool information acquisition unit 110 and the shape ID "1" indicating the hole shape selected by the user via the input unit 12, which is the shape selection acceptance unit, the G code extraction unit 114 can extract the G code ID "G" according to the association table 141. id The G-codes for the usable drilling cycles "G81", "G82", "G83", "G80", "G1110", and "G1111" (where "1" is abbreviated) are reduced. Furthermore, when the shape selection unit 113 receives the tool number "T20" obtained from the tool information acquisition unit 110 and the shape ID "2" representing the thread portion selected by the user via the input unit 12 (which serves as the shape selection receiving unit), the G-code extraction unit 114 can extract the G-code ID "G" according to the association table 141. id The G codes for tapping “G84” and tapping “G1112” that can be used are reduced to “2”.
[0101] Furthermore, when the shape selection acquisition unit 113 receives the tool number "T30" obtained by the tool information acquisition unit 110 and the shape ID "3" representing the cavity machining portion selected by the user via the input unit 12, which serves as the shape selection acceptance unit, the G-code extraction unit 114 can extract the G-code ID "G" according to the association table 141. id The G-codes for the cavity machining roughing "G1040", cavity machining bottom surface finishing "G1041", and cavity machining side surface finishing "G1042" that can be used are reduced to "3". Furthermore, when the shape selection acquisition unit 113 receives the tool number "T30" obtained from the tool information acquisition unit 110 and the shape ID "4" representing the contour machining portion selected by the user via the input unit 12, which serves as the shape selection acceptance unit, the G-code extraction unit 114 can extract the G-code ID "G1042" according to the association table 141. id The G-codes for the contour machining outer wall roughing "G1060", contour machining outer wall bottom surface finishing "G1061", and contour machining outer wall side surface finishing "G1062" are reduced to "4". Furthermore, when the shape selection unit 113 receives the tool number "T10" obtained from the tool information acquisition unit 110 and the shape ID "5" representing the inclined hole shape selected by the user via the input unit 12 (which serves as the shape selection receiving unit), the G-code extraction unit 114 can extract the G-code ID "G1060" according to the association table 141. id The G-codes for the following are available: "G68.2" (5), "G68.3" (tool axis-based), and "G68.4" (incremental multi-instruction).
[0102] Furthermore, the display unit 13, which is a G-code display unit, displays the usable G-code reduced by the G-code extraction unit 114.
[0103] Figure 4 This is an example of a display showing a scaled-down version of the usable G-code.
[0104] For example, in Figure 3B In the displayed screen, when the user selects the cavity machining part, such as Figure 4 As shown, the display unit 13, which is capable of displaying G codes, only displays the G codes for roughing of the cavity machining "G1040", bottom surface finishing of the cavity machining "G1041", and side surface finishing of the cavity machining "G1042".
[0105] Therefore, the numerical control device 10 can easily select G-codes and machining shapes, thus shortening the machining program creation time. Furthermore, by prompting the user with possible G-codes and machining shapes and allowing the user to select them, the numerical control device 10 can prevent erroneous input of the machining program.
[0106] The program generation unit 115 is, for example, displayed in the display unit 13, which is a display unit capable of using G-code. Figure 4 In the display screen, the user selects a G-code via the input unit 12, which serves as the G-code selection unit. The program generation unit 115 displays a parameter setting screen on the display unit 13 to set the parameters of the selected G-code.
[0107] Figure 5A This is an example of a screen showing the settings for the selected G-code. Figure 5B This is an example of a display screen showing a program block with the selected G code appended.
[0108] Program generation unit 115 uses user via Figure 5A The parameters entered on the settings screen, such as Figure 5B As shown, add a program block containing the selected G code to generate the machining program.
[0109] In addition, "G1200" is the G-code for setting the starting point of cavity machining, and "G1201" is the G-code for setting the straight line of cavity machining. Furthermore, "G1990" is the G-code for the group range selection start instruction, and "G1991" is the G-code for the group range selection end instruction.
[0110] <Machining program generation and processing of numerical control device 10>
[0111] Then, while referring to Figure 6 The process of generating and processing the machining program of the numerical control device 10 is explained.
[0112] Figure 6 This is a flowchart illustrating the machining program generation process of the numerical control device 10. The flowchart shown here is executed each time a machining program is generated.
[0113] The following description covers the shapes that can be machined, including hole shapes (hereinafter also referred to as "hole shapes"), thread teeth (hereinafter also referred to as "thread shapes"), cavity machining parts (hereinafter also referred to as "cavity shapes"), contour machining parts (hereinafter also referred to as "contour shapes"), and inclined hole shapes (hereinafter also referred to as "inclined shapes"), but is not limited to these. The same processing can also be performed on machineable shapes other than hole shapes, thread shapes, cavity shapes, contour shapes, and inclined shapes.
[0114] In step S1, the tool information acquisition unit 110 performs tool information acquisition processing based on the user's input operation via the input unit 12, and acquires tool information (e.g., tool number, tool type, etc.). Furthermore, the detailed process of the tool information acquisition processing will be described later.
[0115] In step S2, the shape ID information extraction unit 111 uses the tool information obtained in step S1 to query the association table 141 of the association information storage unit to extract the shape ID of the shape that can be processed by the tool obtained from the tool information.
[0116] In step S3, the machinable shape extraction unit 112 performs machinable shape extraction processing based on the shape ID extracted in step S2, extracting the machinable shape from the CAD data of the workpiece to be processed. Furthermore, a detailed process for the machinable shape extraction processing will be described later.
[0117] In step S4, the display unit 13, which is capable of displaying the shape to be processed, displays the shape extracted in step S3 (e.g., Figure 3A or Figure 3B ).
[0118] In step S5, the shape acquisition unit 113 performs a shape acquisition process on the screen displayed on the display unit 13, which serves as a processable shape display unit, based on the user's selection of processable shapes via the input unit 12, which serves as a shape selection receiving unit, and obtains the shape ID of the processable shape selected by the user. Furthermore, a detailed process for the shape acquisition process will be described later.
[0119] In step S6, the G-code extraction unit 114 can use the tool information obtained in step S1 and the shape ID of the processable shape selected in step S5 to query the association table 141 to further reduce the usable G-codes.
[0120] In step S7, the display unit 13, which is a G-code display unit, displays the reduced G-code that was used in step S6 (e.g., Figure 4 ).
[0121] In step S8, the program generation unit 115 accepts the G code selected by the user via the input unit 12, which is a G code selection acceptance unit, in the display screen displayed by the display unit 13, which is a G code display unit.
[0122] In step S9, the program generation unit 115 displays the setting screen of the G code received in step S8 (for example, ...). Figure 5AThe parameters are displayed on the display unit 13 and are input by the user via the input unit 12.
[0123] In step S10, the program generation unit 115 uses the parameters input by the user in step S9 to append a program block containing the selected G code (e.g., Figure 5B ).
[0124] In step S11, the program generation unit 115 determines whether the generation of the processing program has ended. When the program generation unit 115 receives input from the user via the input unit 12 for "save" or "end" in the processing program, it determines that the generation of the processing program has ended, and the process ends. Conversely, when the program generation unit 115 does not receive input from the user via the input unit 12 for "save" or "end" in the processing program, it determines that the generation of the processing program has not ended, and the process returns to step S1.
[0125] <Step S1: Tool Information Acquisition and Processing>
[0126] Figure 7 Yes Figure 6 The flowchart for explaining the tool information acquisition and processing shown in step S1 is as follows.
[0127] In step S1A, the tool information acquisition unit 110 determines whether tool information has been input based on the user's input operation via the input unit 12. If tool information has been input, the process proceeds to step S1B. On the other hand, if no tool information has been input, the process proceeds to step S1C.
[0128] In step S1B, the tool information acquisition unit 110 acquires the tool information (e.g., tool number, tool type, etc.) input by the user via the input unit 12.
[0129] In step S1C, the tool information acquisition unit 110 acquires tool information (e.g., tool number, tool type, etc.) from the tool data (not shown) previously obtained from the tool management data (not shown) of the machine tool 20.
[0130] The above process for obtaining and processing tool information has concluded, and the process has returned to [the previous state / location]. Figure 6 The process.
[0131] <Step S3: Processable Shape Extraction Process>
[0132] Figure 8A and Figure 8B Yes Figure 6 The flowchart illustrating the shape extraction process shown in step S3 is as follows.
[0133] In step S31, the shape extraction unit 112 determines whether the shape ID extracted in step S2 is hole shape "1". If the shape ID is hole shape "1", the process proceeds to step S32. On the other hand, if the shape ID is not hole shape "1", the process proceeds to step S34.
[0134] In step S32, the shape extraction unit 112 performs a determination process to determine whether a hole shape with shape ID "1" exists in the CAD data of the workpiece. Furthermore, the detailed process of the determination process in step S32 will be described later.
[0135] In step S33, if a hole shape exists as determined by the process in step S32, the process proceeds to step S3G. On the other hand, if a hole shape does not exist as determined by the process in step S32, the process proceeds to step S3H.
[0136] In step S34, the shape extraction unit 112 determines whether the shape ID extracted in step S2 is "2" of the thread shape. If the shape ID is "2" of the thread shape, the process proceeds to step S35. On the other hand, if the shape ID is not "2" of the thread shape, the process proceeds to step S35. Figure 8B Step S37.
[0137] In step S35, the shape extraction unit 112 performs a determination process to determine whether a thread shape with shape ID "2" exists in the CAD data of the workpiece. Furthermore, the detailed process of the determination process in step S35 will be described later.
[0138] In step S36, if a threaded shape exists based on the result of the determination process in step S35, the process proceeds to step S3G. On the other hand, if no threaded shape exists based on the result of the determination process in step S35, the process proceeds to step S3H.
[0139] exist Figure 8B In step S37, the shape extraction unit 112 determines whether the shape ID extracted in step S2 is a cavity shape "3". If the shape ID is a cavity shape "3", the process proceeds to step S38. On the other hand, if the shape ID is not a cavity shape "3", the process proceeds to step S3A.
[0140] In step S38, the shape extraction unit 112 performs a determination process to determine whether a cavity shape with shape ID "3" exists in the CAD data of the workpiece. Furthermore, the detailed process of the determination process in step S38 will be described later.
[0141] In step S39, if a cavity shape exists based on the result of the determination process in step S38, the process proceeds to step S3G. Conversely, if no cavity shape exists based on the result of the determination process in step S38, the process proceeds to... Figure 8A Step S3H.
[0142] In step S3A, the shape extraction unit 112 determines whether the shape ID extracted in step S2 is the contour shape "4". If the shape ID is the contour shape "4", the process proceeds to step S3B. On the other hand, if the shape ID is not the contour shape "4", the process proceeds to step S3D.
[0143] In step S3B, the shape extraction unit 112 performs a determination process to determine whether the outline shape with shape ID "4" exists in the CAD data of the workpiece. Furthermore, the detailed process of the determination process in step S3B will be described later.
[0144] In step S3C, the shape extraction unit 112, having determined the contour shape based on the result of step S3B, advances the processing to... Figure 8A Step S3G. On the other hand, if the shape extraction unit 112 determines that there is no contour shape in the result of step S3G, it proceeds the processing to step S3G. Figure 8A Step S3H.
[0145] In step S3D, the shape extraction unit 112 determines whether the shape ID extracted in step S2 is a tilted shape "5". If the shape ID is a tilted shape "5", the process proceeds to step S3E. On the other hand, if the shape ID is not a contour shape "5", the process proceeds to step S3E. Figure 8A Step S3H.
[0146] In step S3E, the shape extraction unit 112 performs a determination process to determine whether a tilted shape with shape ID "5" exists in the CAD data of the workpiece. Furthermore, the detailed process of the determination process in step S3E will be described later.
[0147] In step S3F, if an inclined shape exists based on the result of the determination process in step S3E, proceed to... Figure 8A Step S3G. On the other hand, if the result of the process based on step S3E does not show a tilted shape, the process proceeds to step S3G. Figure 8A Step S3H.
[0148] In step S3G, the processable shape extraction unit 112 extracts the processable shape corresponding to the shape ID from the CAD data. The process then proceeds to step S3H.
[0149] In step S3H, the processable shape extraction unit 112 determines whether all extracted shape IDs have been checked. If not all extracted shape IDs have been checked, the process returns to step S31. On the other hand, if all extracted shape IDs have been checked, the processable shape extraction process in step S3 ends, and the process returns to... Figure 6 The process.
[0150] <Step S5: Shape Acquisition Processing>
[0151] Figure 9 Yes Figure 6 The flowchart illustrating the shape selection process shown in step S5 is as follows.
[0152] In step S51, the shape acquisition unit 113 determines whether the processing shape selected by the user is a hole shape. If the processing shape selected by the user is a hole shape, the process proceeds to step S52. On the other hand, if the processing shape selected by the user is not a hole shape, the process proceeds to step S53.
[0153] In step S52, the shape acquisition unit 113 acquires the shape ID "1" of the hole shape selected by the user.
[0154] In step S53, the shape acquisition unit 113 determines whether the machining shape selected by the user is a thread shape. If the machining shape selected by the user is a thread shape, the process proceeds to step S54. On the other hand, if the machining shape selected by the user is not a thread shape, the process proceeds to step S55.
[0155] In step S54, the shape acquisition unit 113 acquires the shape ID "2" of the thread shape selected by the user.
[0156] In step S55, the shape acquisition unit 113 determines whether the machining shape selected by the user is a cavity shape. If the machining shape selected by the user is a cavity shape, the process proceeds to step S56. On the other hand, if the machining shape selected by the user is not a cavity shape, the process proceeds to step S57.
[0157] In step S56, the shape acquisition unit 113 acquires the shape ID "3" of the cavity shape selected by the user.
[0158] In step S57, the shape acquisition unit 113 determines whether the processing shape selected by the user is a contour shape. If the processing shape selected by the user is a contour shape, the process proceeds to step S58. On the other hand, if the processing shape selected by the user is not a contour shape, the process proceeds to step S59.
[0159] In step S58, the shape acquisition unit 113 acquires the shape ID "4" of the outline shape selected by the user.
[0160] In step S59, the shape acquisition unit 113 determines whether the processing shape selected by the user is an inclined shape. If the processing shape selected by the user is an inclined shape, the process proceeds to step S5A. On the other hand, if the processing shape selected by the user is not an inclined shape, the shape acquisition process ends and the process returns to... Figure 6 The process.
[0161] In step S5A, the processing shape selected by the user is an inclined shape, and the shape acquisition unit 113 acquires the shape ID "5" of the inclined shape. Thus, the shape acquisition process ends, and the process returns to... Figure 6 The process.
[0162] <Step S32 Judgment Processing>
[0163] Figure 10 Yes Figure 8A The flowchart below explains the process of determining whether the shape of the hole with shape ID "1" exists in the CAD data of the workpiece in step S32.
[0164] Figure 11 This is an example diagram showing CAD data representing the shape of a hole. For example... Figure 11 As shown, endpoint P S With endpoint P E Let the distance between them (the diameter of the hole) be L. i It will start from endpoint P S Let L be the distance to the front end of the hole shape. i+1 It will start from endpoint P E Let L be the distance to the front end of the hole shape. i+2 It will start from endpoint P S Let the distance to the end of the hole shape be L. i+3 It will start from endpoint P E Let the distance to the end of the hole shape be L. i+4 Additionally, line L i With line L i+3 The angle formed and the line L i With line L i+4 The angle formed is 90 degrees. Furthermore, from line L... i L i+1 L i+2 The triangle formed is an isosceles triangle, and line L... i With line L i+1 The angle formed by the line L i With line L i+2The angles formed are the same.
[0165] In step S321, the shape extraction unit 112 initializes i to "0".
[0166] In step S322, the shape extraction section 112 can be processed to increase i by 1.
[0167] In step S323, the capable shape extraction unit 112 determines whether there is an endpoint P in the CAD data of the workpiece. S The straight line L with endpoints i+1 L i+3 There exists a straight line L. i+1 L i+3 When this happens, the process proceeds to step S324. On the other hand, when there is no straight line L... i+1 L i+3 At that time, the process proceeds to step S329.
[0168] In step S324, the shape extraction unit 112 determines whether there is an endpoint P in the CAD data of the workpiece. E The straight line L with endpoints i+2 L i+4 There exists a straight line L. i+2 L i+4 When this happens, the process proceeds to step S325. On the other hand, when there is no straight line L... i+2 L i+4 At that time, the process proceeds to step S329.
[0169] In step S325, the shape extraction unit 112 determines the straight line L. i With line L i+3 The angle formed and the line L i With line L i+4 Is the angle formed by the line L 90 degrees? i With line L i+3 The angle formed and the line L i With line L i+4 When the angle formed is 90 degrees, the process proceeds to step S326. On line L... i With line L i+3 The angle and / or line L formed i With line L i+4 If the angle formed is not 90 degrees, proceed to step S329.
[0170] In step S326, the shape extraction unit 112 determines the straight line L. i With line L i+1 The angle formed by the line L i With line L i+2Are the angles formed by the lines equal? On line L i With line L i+1 The angle formed by the line L i With line L i+2 When the angles formed are equal, the process proceeds to step S327. On the other hand, on line L... i With line L i+1 The angle formed by the line L i With line L i+2 If the angles formed are not equal, proceed to step S329.
[0171] In step S327, the shape extraction unit 112 determines the straight line L. i Is it parallel to the X-axis or Y-axis? On line L i When parallel to the X-axis or Y-axis, the process proceeds to step S328. On the other hand, when on line L... i If the axis is not parallel to the X and Y axes, the process proceeds to step S329.
[0172] In step S328, the processable shape extraction unit 112 determines that a hole shape exists in the CAD data of the workpiece. The determination process in step S32 ends, and the process returns to... Figure 8A The process.
[0173] In step S329, the shape extraction unit 112 determines whether all straight lines have been checked. If all straight lines have been checked, the determination process in step S32 ends, and the process returns to... Figure 8A The process continues. On the other hand, if not all straight lines are checked, the process returns to step S322.
[0174] <Step S35 Judgment Processing>
[0175] Figure 12 Yes Figure 8A The flowchart in step S35 describes the process of determining whether the thread shape with shape ID "2" exists in the CAD data of the workpiece.
[0176] Furthermore, the processing of steps S351, S352, and S359 is... Figure 10 The processes of steps S321, S322, and S329 are the same, and the explanation is omitted.
[0177] in addition, Figure 13 This is a diagram illustrating an example of CAD data representing the shape of a thread. Figure 13 The thread shape contains... Figure 11 The hole shapes are the same. Therefore, the description of the hole shapes is omitted. For example... Figure 13 As shown, endpoint P NS With endpoint PNE Let the distance between them be L i+5 It will start from endpoint P NS Let L be the distance to the end of the thread shape. i+6 It will start from endpoint P NE Let L be the distance to the end of the thread shape. i+7 The thread shape is formed as Figure 11 The shape of the hole.
[0178] In step S353, the shape extraction unit 112 can be processed by performing a process with... Figure 10 The same decision-making process is used to determine whether a hole shape exists in the CAD data of the workpiece. If a hole shape exists, the process proceeds to step S354. On the other hand, if no hole shape exists, the process proceeds to step S359.
[0179] In step S354, the shape extraction unit 112 determines whether the CAD data of the hole shape determined in step S353 contains a connection endpoint P. NS and endpoint P NE straight line L i+5 There exists a straight line L. i+5 When this happens, the process proceeds to step S355. On the other hand, in the absence of a straight line L... i+5 At that time, the process proceeds to step S359.
[0180] In step S355, the shape extraction unit 112 determines whether there is an endpoint P in the CAD data of the workpiece. NS The straight line L with endpoints i+6 There exists a straight line L. i+6 When this happens, the process proceeds to step S356. On the other hand, in the absence of a straight line L... i+6 At that time, the process proceeds to step S359.
[0181] In step S356, the shape extraction unit 112 determines whether there is an endpoint P in the CAD data of the workpiece. NE The straight line L with endpoints i+7 There exists a straight line L. i+7 When this happens, the process proceeds to step S357. On the other hand, in the absence of a straight line L... i+7 At that time, the process proceeds to step S359.
[0182] In step S357, the shape extraction unit 112 determines the straight line L. i+5 With line L i+6 The angle formed and the line L i+5 With line L i+7 Is the angle formed by the line L 90 degrees? i+5 With line L i+6The angle formed and the line L i+5 With line L i+7 When the angle formed is 90 degrees, the process proceeds to step S358. On line L... i+5 With line L i+6 The angle and / or line L formed i+5 With line L i+7 If the angle formed is not 90 degrees, proceed to step S359.
[0183] In step S358, the processable shape extraction unit 112 determines that a thread shape exists in the CAD data of the workpiece. The determination process in step S35 ends, and the process returns to... Figure 8A The process.
[0184] <Step S38 Judgment Processing>
[0185] Figure 14 Yes Figure 8A The flowchart in step S38 describes the process of determining whether the cavity shape with shape ID "3" exists in the CAD data of the workpiece.
[0186] Furthermore, the processing of steps S381, S382, and S38A is... Figure 10 The processes of steps S321, S322, and S329 are the same, and the explanation is omitted.
[0187] in addition, Figure 15 This is a diagram showing an example of CAD data representing the shape of a cavity. Figure 15 The upper part indicates the shape of the cavity as viewed from above. Figure 15 The lower section indicates the shape of the cavity when viewed from the front. For example... Figure 15 As shown, in the X-axis direction, connect endpoint P SL and endpoint P SR Let the straight line be L LR .
[0188] In step S383, the shape extraction unit 112 can obtain the element E adjacent to any one element in the CAD data of the workpiece. j (j is an integer from 1 to n, and n is an integer greater than 1).
[0189] In step S384, the shape extraction unit 112 can process the element E j Find the leftmost point P of the shape along the X-axis. L And the rightmost point P R .
[0190] In step S385, the shape extraction unit 112 searches for the Y-coordinate value (Y value) of a point parallel to the Y-axis and with its start or end point from all straight line elements, and the point P obtained in step S384. L Or point P R The straight line L with the same Y-coordinate (Y value) L L R .
[0191] In step S386, the shape extraction unit 112 determines whether a straight line L exists. L L R There exists a straight line L. L L R When this happens, the process proceeds to step S387. On the other hand, in the absence of a straight line L... L L R At that time, the process proceeds to step S38A.
[0192] In step S387, the shape extraction unit 112 determines whether there is a straight line L. L The endpoint P with the smaller Y value SL With line L R The endpoint P with the smaller Y value SR The connecting line L LR There exists a straight line L. LR When this happens, the process proceeds to step S388. On the other hand, when there is no straight line L... LR At that time, the process proceeds to step S38A.
[0193] In step S388, the shape extraction unit 112 determines whether the other endpoint P has not been reached. SL P SR The element. Without passing through other endpoints P. SL P SR When the element is present, the process proceeds to step S389. On the other hand, if there is a connection through other endpoints P... SL P SR When the element is obtained, the process proceeds to step S38A.
[0194] In step S389, the processable shape extraction unit 112 determines that a cavity shape exists in the CAD data of the workpiece. The determination process in step S38 ends, and the process returns to... Figure 8A The process.
[0195] <Step S3B Judgment Processing>
[0196] Figure 16 Yes Figure 8B The flowchart below explains the process of determining whether the outline shape with shape ID "4" exists in the CAD data of the workpiece in step S3B.
[0197] Furthermore, the processing of steps S3B1 to S3B6 and step S3BA is... Figure 14 The processes of steps S381 to S386 and step S38A are the same, so the explanation is omitted.
[0198] Figure 17 This is a diagram representing an example of CAD data showing the shape of a contour. Figure 17 The upper part represents the outline shape as viewed from above. Figure 17 The lower part indicates the outline shape when viewed from the front. For example... Figure 17 As shown, in the X-axis direction, connect endpoint P LL and endpoint P LR Let the straight line be L LR .
[0199] In step S3B7, the shape extraction unit 112 determines whether there is a straight line L. L The endpoint P with the largest Y value LL With line L R The endpoint P with the largest Y value LR The connecting line L LR There exists a straight line L. LR When this happens, the process proceeds to step S3B8. On the other hand, when there is no straight line L... LR At that time, the process proceeds to step S3BA.
[0200] In step S3B8, the shape extraction unit 112 determines whether the shape has not passed through other endpoints P. LL P LR The element. Without passing through other endpoints P. LL P LR When the element is present, the process proceeds to step S3B9. On the other hand, if there is a connection through other endpoints P... LL and P LR When the element is selected, the processing proceeds to step S3BA.
[0201] In step S3B9, the processable shape extraction unit 112 determines that a contour shape exists in the CAD data of the workpiece. The determination process in step S3B ends, and the process returns to... Figure 8B The process.
[0202] <Step S3E Judgment Processing>
[0203] Figure 18 Yes Figure 8B The flowchart below explains the process of determining whether a tilted shape with shape ID "5" exists in the CAD data of the workpiece in step S3E.
[0204] Furthermore, the processing of steps S3E1 to S3E6 and step S3E9 is... Figure 10 The processing of steps S321 to S326 and step S329 is the same, so the explanation is omitted.
[0205] Figure 19 This is a diagram illustrating an example of CAD data representing a tilted shape. For example... Figure 19 As shown, the inclined shape is to make Figure 11 The shape of the hole is inclined, relative to Figure 11 Elements with the same characteristics are labeled with the same symbol, and their descriptions are omitted.
[0206] In step S3E7, the shape extraction unit 112 determines the straight line L. i Is it not parallel to the X-axis and Y-axis? On line L... i If the line is not parallel to the X-axis and Y-axis, the process proceeds to step S3E8. On the other hand, on line L... i When parallel to the X-axis or Y-axis, the process proceeds to step S3E9.
[0207] In step S3E8, the processable shape extraction unit 112 determines that a tilted shape exists in the CAD data of the workpiece. The determination process in step S3E ends, and the process returns to... Figure 8B The process.
[0208] As described above, the numerical control device 10 of the first embodiment extracts a shape ID representing a shape that can be processed by the selected tool based on the tool information of the tool selected by the user and the association table 141, and displays the processable shape represented by the extracted shape ID. The numerical control device 10 further reduces the usable G-code based on the shape ID of the user-selected shape among the displayed processable shapes, the selected tool information, and the association table 141. Therefore, the numerical control device 10 can reduce the G-code and / or display the processable shape by selecting the tool. Furthermore, the numerical control device 10 can easily select the processable shape and the usable G-code, thus shortening the production time of the processing procedure.
[0209] In addition, the numerical control device 10 prompts the user with the shapes that can be processed and the G codes that can be used, thereby preventing the incorrect input of the processing program.
[0210] The first embodiment has been described above.
[0211] <Second Implementation>
[0212] Next, the second embodiment will be described. As described above, the numerical control device 10 of the first embodiment stores an association table 141 that pre-associates tool information associated with multiple tools, shape IDs representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape ID. Based on the tool information of the tool selected by the user and the association table 141, the numerical control device 10 extracts the shape ID representing the shape that can be processed by the selected tool and displays the shape that can be processed by the extracted shape ID. Based on the shape ID of the shape selected by the user among the displayed shape that can be processed and the association table 141, the numerical control device 10 further reduces the usable G-codes.
[0213] In contrast, the numerical control device 10A of the second embodiment stores an association table 141 that pre-associates tool information associated with multiple tools, shape IDs representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape ID. Based on the tool information of the tool selected by the user and the association table 141, the numerical control device 10A extracts the G-code that can be used by the selected tool and displays the extracted G-code. The difference between the numerical control device 10A and the first embodiment is that the shape that can be processed is further reduced based on the G-code selected by the user in the displayed G-code and the association table 141.
[0214] Therefore, the numerical control device 10A can reduce the G code and / or the machining shape by selecting the tool and displaying it.
[0215] The second embodiment will be described below.
[0216] Figure 20 This is a functional block diagram illustrating an example of the functional configuration of the control system according to the second embodiment. Furthermore, for systems having... Figure 1 Elements of the same function as those in control system 1 are labeled with the same symbols, and detailed descriptions are omitted.
[0217] like Figure 20 As shown, the control system 1 has a numerical control device 10A and a machine tool 20.
[0218] The machine tool 20 has the same functions as the machine tool 20 in the first embodiment.
[0219] like Figure 20As shown, the numerical control device 10A includes a control unit 11a, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11a includes a tool information acquisition unit 110, a shape ID information extraction unit 111a, a processable shape extraction unit 112, a G-code extraction unit 114a, a program generation unit 115, and a G-code selection acquisition unit 116. Furthermore, the storage unit 14 includes an association table 141.
[0220] The input unit 12, display unit 13, and storage unit 14 have the same functions as the input unit 12, display unit 13, and storage unit 14 in the first embodiment.
[0221] Furthermore, the tool information acquisition unit 110, the processable shape extraction unit 112, and the program generation unit 115 have the same functions as those of the tool information acquisition unit 110, the processable shape extraction unit 112, and the program generation unit 115 in the first embodiment.
[0222] The G-code extraction unit 114a can use the tool information obtained by the tool information acquisition unit 110 to query the association table 141 of the association information storage unit to extract the G-code that the tool can use based on the acquired tool information.
[0223] Specifically, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T10", the G code extraction unit 114a can extract the G code ID "G" according to the association table 141. id The following drilling cycles are available when "1": "G81", "G82", "G83", "G80" (cancel), "G1110", "G1111", and "G1111", and the G-code ID "G". id The G-codes for the following usable indexing commands are: "G68.2" (for inclined plane indexing), "G68.3" (for inclined plane indexing based on tool axis), and "G68.4" (for inclined plane indexing (incremental multiple commands)). Additionally, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T20", the G-code extraction unit 114a can extract the G-code ID "G" from the association table 141. id The G-codes for tapping "G84" and tapping "G1112" are available when the value is "2". Additionally, for example, when the tool information obtained by the tool information acquisition unit 110 includes the tool number "T30", the G-code extraction unit 114a can extract the G-code ID "G" from the association table 141. id The available Cavity Machining roughing code "G1040", Cavity Machining bottom surface finishing code "G1041", and Cavity Machining side surface finishing code "G1042", and the G-code ID "G" are all represented by the number "3". idThe G-codes “4” are “G1060” for roughing the outer wall of contour machining, “G1061” for finishing the bottom surface of the outer wall of contour machining, and “G1062” for finishing the side surface of the outer wall of contour machining.
[0224] Furthermore, the display unit 13, which is a G-code display unit, displays the usable G-code extracted by the G-code extraction unit 114a.
[0225] Figure 21 This is an example of a display screen showing the G-code that can be used.
[0226] For example, when the user selects the end mill with tool number "T30" as the tool, such as Figure 21 As shown, the display unit 13, which is capable of displaying G-codes, displays the G-codes for roughing of the cavity machining "G1040", finishing of the bottom surface of the cavity machining "G1041", finishing of the side surface of the cavity machining "G1042", roughing of the outer wall of the contour machining "G1060", finishing of the bottom surface of the outer wall of the contour machining "G1061", and finishing of the side surface of the outer wall of the contour machining "G1062".
[0227] The selection G-code acquisition unit 116 is displayed, for example, in the display unit 13, which is a display unit capable of displaying G-codes. Figure 21 In the display screen, when the user selects a G code via the input unit 12, which serves as the G code selection receiving unit, the selected G code is obtained. The G code selection acquisition unit 116 outputs the obtained G code together with the tool information obtained by the tool information acquisition unit 110 to the shape ID information extraction unit 111a, which will be described later.
[0228] The shape ID information extraction unit 111a uses the tool information and G code query received from the G code acquisition unit 116 as the association table 141 of the association information storage unit to further reduce the shape ID of the shape that can be processed by the tool of the received tool information through the received G code.
[0229] Specifically, when the shape ID information extraction unit 111a receives, for example, the tool number "T10" obtained by the tool information acquisition unit 110 and the G code of the deep hole drilling cycle "G83" selected by the user via the input unit 12, which serves as the G code selection receiving unit, from the G code selection acquisition unit 116, it extracts the shape ID (S) according to the association table 141. idThe shape ID information extraction unit 111a, for example, when receiving the tool number "T20" obtained by the tool information acquisition unit 110 and the tapping code "G84" selected by the user via the input unit 12, which is the G code selection receiving unit, from the G code selection acquisition unit 116, extracts the shape ID (S) according to the association table 141. id The shape ID information extraction unit 111a reduces the value of "2" by a factor of 1. Additionally, when the shape ID information extraction unit 111a receives, for example, the tool number "T30" obtained from the tool information acquisition unit 110 and the G code for cavity machining roughing "G1040" selected by the user via the input unit 12 (which acts as the G code selection receiving unit) from the G code selection acquisition unit 116, it extracts the shape ID (S) based on the association table 141. id The shape ID information extraction unit 111a, for example, when receiving the tool number "T30" obtained by the tool information acquisition unit 110 and the G code "G1060" for outer wall roughing of contour machining selected by the user via the input unit 12, which is the G code selection acceptance unit, from the G code selection acquisition unit 116, extracts the shape ID (S) according to the association table 141. id The shape ID information extraction unit 111a reduces the value of "4" by a factor of 1. Additionally, when the shape ID information extraction unit 111a receives, for example, the tool number "T10" obtained by the tool information acquisition unit 110 and the G code "G68.2" selected by the user via the input unit 12 (which serves as the G code selection receiving unit) from the G code selection acquisition unit 116, it extracts the shape ID (S) based on the association table 141. id The number “5” is reduced.
[0230] Furthermore, the display unit 13, which is a processable shape display unit, displays the processable shape extracted from the CAD data of the workpiece by the processable shape extraction unit 112 based on the shape ID reduced by the shape ID information extraction unit 111a described above.
[0231] Figure 22 This is an example of a display screen showing the extracted, processable shape.
[0232] For example, in Figure 21 In the process, when the user selects the G-code "G1060" for rough machining of the outer wall contour, the shape ID information extraction unit 111a extracts the shape ID "4". Furthermore, the shape extraction unit 112 can process... Figure 28A as well as Figure 28B Only the outline shape with shape ID "4" is extracted from the CAD data shown. For example... Figure 22 As shown, the display section 13, which is a shape display section capable of processing, can use thick lines to emphasize the extracted outline shape.
[0233] Therefore, the numerical control device 10A can easily select G-codes and machining shapes, thus shortening the machining program creation time. Furthermore, the numerical control device 10A prompts the user with the available G-codes and machining shapes, thereby preventing erroneous input of the machining program.
[0234] Furthermore, the display unit 13, which is a processing shape display unit, can emphasize the extracted processing shape with thick lines, or it can emphasize the shape with lines other than thick lines, or it can emphasize the shape with lines of colors such as red.
[0235] <Machining program generation and processing of numerical control device 10A>
[0236] Then, while referring to Figure 23 The process of generating machining programs for the numerical control device 10A will be explained.
[0237] Figure 23 This is a flowchart illustrating the machining program generation process of the numerical control device 10A. The flowchart shown here is executed each time a machining program is generated.
[0238] In step S'1, the tool information acquisition unit 110 performs the same tool information acquisition process as step S1 in the first embodiment based on the user's input operation via the input unit 12, and acquires tool information (e.g., tool number, tool type, etc.).
[0239] In step S'2, the G-code extraction unit 114a can use the tool information obtained in step S'1 to query the association table 141 of the association information storage unit to extract the G-code that the tool can use based on the obtained tool information.
[0240] In step S'3, the display unit 13, which is a G-code display unit, displays the usable G-code extracted in step S'2 (e.g., Figure 21 ).
[0241] In step S'4, the G-code acquisition unit 116 selects the display screen (e.g., the display screen displayed by the display unit 13, which is a G-code display unit) that is capable of displaying G-codes. Figure 21 In the process, the G code selected by the user via the input unit 12, which serves as the G code selection and acceptance unit, is obtained.
[0242] In step S'5, the shape ID information extraction unit 111a uses the tool information obtained in step S'1 and the G code selected in step S'4 to query the association table 141 to further reduce the shape ID of the shape that the tool in the obtained tool information can process according to the selected G code.
[0243] In step S'6, the processable shape extraction unit 112 performs the same processable shape extraction process as step S3 of the first embodiment based on the shape ID extracted in step S'5, and extracts the processable shape from the CAD data of the workpiece.
[0244] In step S'7, the display unit 13, which serves as a shape display unit, displays the shape that can be processed (e.g., the shape that can be processed) extracted in step S'6. Figure 22 ).
[0245] In step S'8, the program generation unit 115 accepts the shape selected by the user via the input unit 12, which is a shape selection acceptance unit, in the display screen displayed by the display unit 13, which is a shape display unit capable of processing.
[0246] In step S'9, the program generation unit 115 displays the setting screen of the G code selected in step S'4 on the display unit 13 (for example, in order to process the shape received in step S'8) Figure 24 The parameters are input by the user via the input section 12.
[0247] Figure 24 This is an example of a setup screen when performing G-code "G1060" rough machining of the outer wall of the contour machining.
[0248] In step S'10, the program generation unit 115 uses the parameters input by the user in step S'9 to append a program block containing the selected G code.
[0249] Figure 25 This is an example of a screen showing a program block with the selected G-code added. Furthermore, "G1200" is the G-code for setting the starting point of contour machining, and "G1201" is the G-code for setting the straight line of contour machining.
[0250] In step S'11, the program generation unit 115, as in step S11 of the first embodiment, determines whether the generation of the processing program has ended. When the program generation unit 115 receives input from the user via the input unit 12 for "save" or "end" in the processing program, it determines that the generation of the processing program has ended, and the process ends. Conversely, when the program generation unit 115 does not receive input from the user via the input unit 12 for "save" or "end" in the processing program, it determines that the generation of the processing program has not ended, and the process returns to step S'1.
[0251] As described above, the numerical control device 10A of the second embodiment extracts the G-codes usable by the selected tool based on the tool information of the tool selected by the user and the association table 141, and displays the extracted usable G-codes. The numerical control device 10A further reduces the machinable shape based on the user-selected G-codes, the selected tool information, and the association table 141 among the displayed usable G-codes. Thus, the numerical control device 10A can reduce the G-codes and / or machinable shapes by selecting the tool and display them. Furthermore, the numerical control device 10A can easily select machinable shapes and usable G-codes, shortening the production time of the machining process.
[0252] In addition, the numerical control device 10A prompts the user with the machining shapes that can be machined and the G codes that can be used, thereby preventing the incorrect input of the machining program.
[0253] The second embodiment has been described above.
[0254] The first and second embodiments have been described above, but the numerical control devices 10 and 10A are not limited to the embodiments described above, but include variations and improvements within the scope of achieving the purpose.
[0255] <Variation Example>
[0256] In the first and second embodiments described above, the numerical control devices 10 and 10A are devices different from the machine tool 20, but are not limited thereto. For example, the numerical control devices 10 and 10A may be included in the machine tool 20.
[0257] When all or part of the numerical control devices 10 and 10A are composed of software, in a computer consisting of a hard disk, ROM or other storage unit that stores a program that describes all or part of the operation of the numerical control devices 10 and 10A, a DRAM that stores the data required for the operation, a CPU, and a bus connecting the various units, the information required for the operation can be stored in the DRAM and the program can be executed by the CPU to achieve the operation.
[0258] These programs can be stored and provided to the 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., floppy disks, magnetic tapes, hard disks), optical-magnetic recording media (e.g., optical discs), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash memory ROMs, and RAM). Alternatively, programs can also be provided to the computer using various types of transient computer-readable media. Examples of transient computer-readable media include electrical signals, optical signals, and electromagnetic waves. Transient computer-readable media can provide programs to the computer via wired communication paths such as wires and optical fibers, or via wireless communication paths.
[0259] In addition, these programs can also be distributed by downloading them to users' computers via the internet.
[0260] Furthermore, the steps describing a program recorded in a recording medium naturally include processes performed in that order in a time sequence, as well as processes that are not necessarily performed in a time sequence, and processes that are performed in parallel or individually.
[0261] In other words, the numerical control device disclosed herein can be implemented in various ways having the following structure.
[0262] (1) The numerical control device 10 of this disclosure is a numerical control device for automatically generating machining programs, which includes: a storage unit 14 that stores an association table 141, which pre-associates tool information related to multiple tools, shape IDs representing shapes that each of the multiple tools can process, and at least one G code that can be used to process the shape represented by the shape ID; a tool information acquisition unit 110 that acquires tool information related to the tool selected for machining; a shape ID information extraction unit 111 that uses the acquired tool information to query the association table 141 to extract shape IDs representing shapes that the tools of the acquired tool information can process; a processable shape extraction unit 112 that extracts processable shapes from CAD data based on the extracted shape IDs; and a display unit 13, which serves as a processable shape display unit, displays the extracted processable shapes.
[0263] According to the numerical control device 10, the G-code and / or the processed shape can be reduced and displayed by selecting the tool.
[0264] (2) In the numerical control device 10 described in (1), it may also be,
[0265] The numerical control device 10 further includes: an input unit 12, which serves as a shape selection receiving unit, selects the extracted processable shape; a shape selection acquisition unit 113, which acquires the shape ID of the selected processable shape; and a G-code extraction unit 114, which uses the shape ID of the processable shape acquired by the shape selection acquisition unit 113 and the acquired tool information to query the association table 141 to further reduce the G-code to be usable for processing, which refers to processing the obtained shape ID into a shape by the tool of the acquired tool information.
[0266] Therefore, the numerical control device 10 can easily select the machining shape that can be machined and the G code that can be used, which can shorten the production time of the machining program.
[0267] (3) In the numerical control device 10 described in (2), it may also be,
[0268] The numerical control device 10 also includes: a display unit 13, which is a G-code display unit, displays usable G-codes reduced by the G-code extraction unit 114; and an input unit 12, which is a G-code selection receiving unit, selects a G-code from the displayed usable G-codes.
[0269] Therefore, the numerical control device 10 prompts the machining shape that can be machined and the G code that can be used, and allows the user to select it, thereby preventing the incorrect input of the machining program.
[0270] (4) The numerical control device 10A of this disclosure is a numerical control device that automatically generates machining programs. It includes: a storage unit 14 that stores an association table 141, which pre-associates tool information related to multiple tools, shape IDs representing shapes that each of the multiple tools can process, and at least one G code that can be used to process the shape represented by the shape ID; a tool information acquisition unit 110 that acquires tool information related to the tool selected for machining; a usable G code extraction unit 114a that uses the acquired tool information to query the association table 141 to extract the G code that the tool can use based on the acquired tool information; and a display unit 13, which is a usable G code display unit, that displays the extracted usable G code.
[0271] According to the numerical control device 10A, the same effect as (1) can be obtained.
[0272] (5) In the numerical control device 10A described in (4), it may also be,
[0273] The numerical control device 10A also includes: an input unit 12, which serves as a G-code selection receiving unit, selects and extracts usable G-codes; a G-code selection acquisition unit 116, which acquires the selected usable G-codes; and a shape ID information extraction unit 111a, which uses the usable G-codes acquired by the G-code selection acquisition unit 116 and the acquired tool information to query the association table 141 to further reduce the shape ID representing the shape that can be processed by the tool with the acquired tool information using the selected usable G-codes.
[0274] Therefore, the numerical control device 10A can achieve the same effect as (2).
[0275] (6) In the numerical control device 10A described in (5), it may also be,
[0276] The numerical control device 10A also includes: a processable shape extraction unit 112, which extracts processable shapes from CAD data based on shape IDs reduced by the shape ID information extraction unit 111a; and a display unit 13, which displays the extracted processable shapes as a processable shape display unit.
[0277] Therefore, the numerical control device 10A can achieve the same effect as (3).
[0278] Symbol Explanation
[0279] 1 Control System
[0280] 10. 10A Numerical Control Device
[0281] 11, 11a Control Section
[0282] 110 Tool Information Acquisition Department
[0283] 111, 111a Shape ID Information Extraction Department
[0284] 112 Capable of processing shape extraction section
[0285] 113 Select Shape Acquisition Section
[0286] 114 and 114a can use G-code extraction.
[0287] 115 Program Generation Department
[0288] 116 Select G code to obtain part
[0289] 12 Input Section
[0290] 13 Display Section
[0291] 14 Storage Department
[0292] 141 Relationship Table
[0293] 20 machine tools.
Claims
1. A numerical control device that automatically generates machining programs, characterized in that, The numerical control device has: The associated information storage unit stores associated information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier. The tool information acquisition department acquires tool information related to the tools selected during processing. The shape ID information extraction unit uses the obtained tool information to query the associated information storage unit to extract a shape identifier representing the shape that the tool can process using the obtained tool information; A shape extraction unit is capable of extracting processable shapes from CAD data based on the extracted shape identifiers; as well as A shape display unit is provided that displays the extracted shape that can be processed, wherein the displayed shape can be selected by the user to display the usable G-code.
2. A numerical control device that automatically generates machining programs, characterized in that, The numerical control device has: The associated information storage unit stores associated information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier. The tool information acquisition department acquires tool information related to the tools selected during processing. The shape ID information extraction unit uses the obtained tool information to query the associated information storage unit to extract a shape identifier representing the shape that the tool can process using the obtained tool information; A shape extraction unit is capable of extracting processable shapes from CAD data based on the extracted shape identifiers; as well as A shape display unit is capable of processing shapes, which displays the extracted processable shapes. The numerical control device also has: The shape selection receiving unit selects the extracted processable shape; The shape acquisition unit acquires the shape identifier of the selected processable shape; as well as The G-code extraction unit can use the shape identifier of the processable shape obtained by the shape selection unit and the obtained tool information to query the associated information storage unit, and further reduce the G-code to be usable for processing, which refers to processing the tool of the obtained tool information into the shape of the obtained shape identifier.
3. The numerical control device according to claim 2, characterized in that, The numerical control device also has: A G-code display unit is available, which displays the usable G-code reduced by the G-code extraction unit; and The G-code selection department selects a G-code from the displayed list of available G-codes.
4. A numerical control device that automatically generates machining programs, characterized in that, The numerical control device has: The associated information storage unit stores associated information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier. The tool information acquisition department acquires tool information related to the tools selected during processing. The G-code extraction unit can use the acquired tool information to query the associated information storage unit to extract the G-code that the tool can use based on the acquired tool information; as well as A G-code display unit is available to display the extracted usable G-codes, wherein the displayed G-codes can be selected by the user to display the shape that can be processed.
5. A numerical control device that automatically generates machining programs, characterized in that, The numerical control device has: The associated information storage unit stores associated information that pre-associates tool information related to multiple tools, shape identifiers representing shapes that each of the multiple tools can process, and at least one G-code that can be used to process the shape represented by the shape identifier. The tool information acquisition department acquires tool information related to the tools selected during processing. The G-code extraction unit can use the acquired tool information to query the associated information storage unit to extract the G-code that the tool can use based on the acquired tool information; as well as A G-code display unit is available to display the extracted usable G-code. The numerical control device also has: The G-code selection and acceptance department selects the usable G-codes extracted from the code. The G-code acquisition unit selects and acquires the selected usable G-code; as well as The shape ID information extraction unit uses the usable G-code obtained by the G-code selection unit and the obtained tool information to query the associated information storage unit to further reduce the shape identifier representing the shape that can be processed by the tool with the obtained tool information through the selected usable G-code.
6. The numerical control device according to claim 5, characterized in that, The numerical control device also has: A shape extraction unit capable of processing can extract processable shapes from CAD data based on the shape identifier reduced by the shape ID information extraction unit; and A shape display unit is capable of processing the extracted shape.
Citation Information
Patent Citations
Automatic programming device
JP1992315550A
Boring program generating device
JP1995168612A
NC program editing device, NC program editing program and computer-readable recording medium with NC program editing program recorded thereon
JP2009110273A
CAD system, program for executing same, and record medium where the program is recorded
WO2004038523A1