NUMERICAL CONTROL DEVICE
20230333534 · 2023-10-19
Inventors
Cpc classification
International classification
Abstract
A numerical control device automatically generates a machining program and comprises: a linked information storage unit that stores linked information, which is tool information pertaining to a plurality of tools, a shape identifier that shows the shape that each tool can machine, and at least one G code which can be used for machining the shaped indicated by the shape identifier; a tool information acquisition unit that acquires tool information pertaining to the tool selected for machining; a shape ID information extraction unit that, using the acquired tool information, makes an enquiry to the linked information storage unit and extracts a shape identifier indicating a shape that can be machined by the tool having the acquired tool information; a machinable-shape extraction unit that extracts machinable shapes from CAD data on the basis of the extracted shape identifier; and a machinable-shape display unit that shows the extracted machinable shape.
Claims
1. A numerical control device configured to automatically generate a machining program, the numerical control device comprising: an associated information storage unit configured to store associated information resulting from associating, in advance, tool information pertaining to a plurality of tools, shape identifiers indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine the shape indicated by the shape identifier; a tool information acquisition unit configured to acquire tool information pertaining to a tool selected for machining; a shape ID information extraction unit configured to, using the acquired tool information to query the associated information storage unit, extract a shape identifier indicating a shape that can be machined by the tool corresponding to the acquired tool information; a machinable-shape extraction unit configured to, based on the extracted shape identifier, extract a machinable shape from CAD data; and a machinable-shape display unit configured to display the extracted machinable shape.
2. The numerical control device according to claim 1, further comprising: a shape selection acceptance unit configured to select the extracted machinable shape; a selected-shape acquisition unit configured to acquire a shape identifier for the selected machinable shape; and a usable G code extraction unit configured to, using the shape identifier for the machinable shape acquired by the selected-shape acquisition unit and the acquired tool information to query the associated information storage unit, further narrow down G codes that can be used to machine the shape corresponding to the acquired shape identifier by the tool corresponding to the acquired tool information.
3. The numerical control device according to claim 2, further comprising: a usable G code display unit configured to display the G codes that can be used and were narrowed down by the usable G code extraction unit; and a G code selection acceptance unit configured to select a G code from the displayed G codes that can be used.
4. A numerical control device configured to automatically generate a machining program, the numerical control device comprising: an associated information storage unit configured to store associated information resulting from associating, in advance, tool information pertaining to a plurality of tools, shape identifiers indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine the shape indicated by the shape identifier; a tool information acquisition unit configured to acquire tool information pertaining to a tool selected for machining; a usable G code extraction unit configured to, using the acquired tool information to query the associated information storage unit, extract a G code that can be used by the tool corresponding to the acquired tool information; and a usable G code display unit configured to display the extracted G code that can be used.
5. The numerical control device according to claim 4, further comprising: a G code selection acceptance unit configured to select the extracted G code that can be used; a selected G code acquisition unit configured to acquire the selected G code that can be used; and a shape ID information extraction unit configured to, using the G code that can be used and was acquired by the selected G code acquisition unit and the acquired tool information to query the associated information storage unit, further narrow down a shape identifier indicating a shape that can be machined by the tool corresponding to the acquired tool information using the selected G code that can be used.
6. The numerical control device according to claim 5, further comprising: a machinable-shape extraction unit configured to, based on the shape identifier narrowed down by the shape ID information extraction unit, extract from CAD data a shape that can be machined; and a machinable-shape display unit configured to display the extracted shape that can be machined.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
PREFERRED MODE FOR CARRYING OUT THE INVENTION
First Embodiment
[0055] Firstly, an outline of the present embodiment is described. In the present embodiment, a numerical control device stores associated information resulting from associating, in advance, tool information pertaining to a plurality of tools, shape identifiers indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a shape identifier. The numerical control device acquires tool information pertaining to a tool selected for machining, uses the acquired tool information to query the associated information and thereby extract a shape identifier indicating a shape that can be machined by the tool having the acquired tool information, and displays the extracted shape that can be machined.
[0056] As a result, by virtue of the present embodiment, it is possible to solve the problem “narrow down G codes and/or machining shapes according to a selected tool so as to display the G codes and/or machining shapes”.
[0057] The above is an outline of the first embodiment.
[0058] Next, using the drawings, description is given in detail regarding a configuration according to the present embodiment.
[0059]
[0060] The numerical control device 10 and the machine tool 20 may be directly connected to each other via a connection interface (not shown). In addition, the numerical control device 10 and the machine tool 20 may be connected to each other via a network (not shown) such as a LAN (local area network) or the internet. In this case, it may be that the numerical control device 10 and the machine tool 20 are each provided with a communication unit (not shown) for communicating with each other via the corresponding connection. Note that, as described below, the machine tool 20 may include the numerical control device 10.
[0061] The machine tool 20 is a machine tool that is publicly known to a person skilled in the art, and operates based on an operation command from the numerical control device 10.
[0062] Note that, for example, the machine tool 20 may store a tool management table (not shown), which is for managing all tools that can be attached to the main shaft (not shown) of the machine tool 20, in a storage unit (not shown) such as an HDD (Hard Disk Drive) included in the machine tool 20. The later-described numerical control device 10 may acquire a tool name, tool diameter, tool length, etc. from the tool management table (not shown) in the machine tool 20 based on, inter alia, a tool number such as “T10” set in a machining program.
[0063] The numerical control device 10 is a numerical control device that is publicly known to a person skilled in the art, and generates an operation command based on execution of a machining program, and transmits the generated operation command to the machine tool 20. As a result, the numerical control device 10 controls operation by the machine tool 20.
[0064] As illustrated in
[0065] For example, the input unit 12 is configured by, inter alia, a keyboard, an MDI (Manual Data Input), and/or a touch panel disposed on the front surface of the later-described display unit 13, and accepts an input from a user who is an operator. Based on an input operation by the user, the input unit 12 functions as a shape selection acceptance unit for selecting a machinable shape extracted by the machinable-shape extraction unit 112, which is described below. In addition, the input unit 12, based on an input operation by the user, functions as a G code selection acceptance unit for selecting usable G codes which are further narrowed down by the usable G code extraction unit 114, which is described below.
[0066] The display unit 13 is a display device such as a liquid crystal display (LCD), and has a touch panel (not shown) disposed on a front surface of the display device. The display unit 13 functions as a machinable-shape display unit that displays a machinable shape extracted by the machinable-shape extraction unit 112 described below. In addition, the display unit 13 functions as a usable G code display unit for displaying usable G codes, which are further narrowed down by the usable G code extraction unit 114 described below and are for machining a machinable shape.
Storage Unit 14
[0067] The storage unit 14 is, inter alia, a RAM (Random-Access Memory) or an HDD (Hard Disk Drive), for example. The storage unit 14 is provided with the association table 141 in addition to storing various programs including publicly known control software for the numerical control device 10 to function as a numerical control device.
[0068] The association table 141 includes associated information resulting from associating, in advance, tool information pertaining to a plurality of tools, shape identifiers (hereinafter, may be referred to as a “shape ID”) indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a shape ID.
[0069]
[0070] As illustrated in
[0071] The “T.sub.id” storage region within the association table 141 stores a tool identifier (hereinafter, may be referred to as “tool ID”) such as “1” or “2” allocated for each tool in advance. Note that, regarding tool IDs stored in the “T.sub.id” storage region, different tool IDs are allocated in a case where machined shaped differ even with a tool having the same tool number and type.
[0072] The “tool” storage region within the association table 141 stores a tool number (for example, “T10”, etc.) and a tool type (for example, “drill”, etc.), corresponding to “T.sub.id”. Note that, as described above, it is desirable that the tool number and tool type stored in the “tool” storage region are acquired in advance from the tool management table (not shown) in the machine tool 20.
[0073] The “S.sub.id” storage region within the association table 141 stores a shape ID such as “1” or “2” indicating a shape that can be machined by the tool stored in the “tool” storage region.
[0074] The “shape (CAD)” storage region within the association table 141 stores CAD data indicating a shape that is machined by the tool stored in the “tool” storage region. Specifically, the “shape (CAD)” storage region for which “S.sub.id” is “1” stores CAD data indicating the shape of a hole opened by a drill having the tool number “T10”. In addition, the “shape (CAD)” storage region for which “S.sub.id” is “2”, for example, stores CAD data indicating a shape for a screw thread portion that is indicated by a thick line and is machined by a tap having the tool number “T20” in a hole that is indicated by a fine line and is opened by a drill having the tool number “T10” or the like. In addition, the “shape (CAD)” storage region for which “S.sub.id” is “3”, for example, stores CAD data indicating a shape that is pocketed by an end mill having the tool number “T30”. In addition, the “shape (CAD)” storage region for which “S.sub.id” is “4”, for example, stores CAD data indicating a shape contoured by the end mill having the tool number “T30”. In addition, the “shape (CAD)” storage region for which “S.sub.id” is “5”, for example, stores CAD data indicating a shape for a hole that is opened inclined obliquely by the drill having the tool number “T10”.
[0075] Note that the “shape (CAD)” storage region within the association table 141 is not limited to CAD data for a machined shape. For example, the “shape (CAD)” storage region for which “S.sub.id” is “1”, for example, may store text data having a “k-ø*” format, such as “3-ø10” indicating a shape for three holes opened by a drill having a diameter of 10 mm and the tool number “T10”. Note that k indicates a number of holes and * indicates a hole diameter. In addition, the “shape (CAD)” storage region for which “S.sub.id” is “2”, for example, may store text data having an “M*×h×D” format, such as “M10×1.5×15” indicating a shape for a screw thread portion having a height of 1.5 mm at a depth of 15 mm in a hole having a diameter of 10 mm, by a tap having the tool number “T20”. Note that h indicates the height of the screw thread and D indicates the depth of the screw thread portion.
[0076] The “G.sub.id” storage region within the association table 141 stores a G code identifier (hereinafter, may be referred to as “G code ID”) such as “1” or “2” indicating a G code that can be used to machine the shape stored in the “shape (CAD)” storage region with the tool stored in the “tool” storage region.
[0077] The “G code” storage region within the association table 141 stores at least one G code that can be used to machine the shape stored in the “shape (CAD)” storage region with the tool stored in the “tool” storage region. Specifically, the “G code” storage region for which the G code ID “G.sub.id” is “1” stores G codes - drill cycle “G81”, drill cycle “G82”, peck drilling cycle “G83”, cancel “G80”, drill cycle “G1110”, and drill cycle “G1111” - which can be used to machine a hole with the drill having the tool number “T10”. In addition, the “G code” storage region for which the G code ID “G.sub.id” is “2” stores, for example, G codes - tapping “G84” and tapping “G1112” - which can be used to machine the shape for a screw thread with the tap having the tool number “T20”, in a hole opened by the drill having the tool number “T10”. In addition, the “G code” storage region for which the G code ID “G.sub.id” is “3”, for example, stores G codes - pocketing rough machining “G1040”, pocketing bottom surface finishing “G1041”, and pocketing side surface finishing “G1042” - which can be used to perform pocketing with the end mill having the tool number “T30”. In addition, the “G code” storage region for which the G code ID “G.sub.id” is “4”, for example, stores G codes -contouring outer wall rough machining “G1060”, contouring outer wall bottom surface finishing “G1061”, and contouring outer wall side surface finishing “G1062” - which can be used to perform contouring with the end mill having the tool number “T30”. In addition, the “G code” storage region for which the G code ID “G.sub.id” is “5”, for example, stores G codes - inclined surface indexing command “G68.2”, inclined surface indexing command in accordance with a tool axis direction “G68.3”, and inclined surface indexing command (incremental multiple commands) “G68.4” - which can be used to machine a hole that is inclined obliquely with the drill having the tool number “T10”.
Control Unit 11
[0078] The control unit 11 is something publicly known to a person skilled in the art that has a CPU (central processing unit), a ROM, a RAM, a CMOS (complementary metal-oxide-semiconductor) memory, etc., with each of these configured to be able to mutually communicate via a bus.
[0079] The CPU is a processor that performs overall control of the numerical control device 10. The CPU reads out, via the bus, a system program and an application program that are stored in the ROM, and controls the entirety of the numerical control device 10 in accordance with a system program and the application program. As a result, as illustrated in
[0080] The tool information acquisition unit 110 acquires tool information pertaining to a tool selected for machining.
[0081] Specifically, the tool information acquisition unit 110 acquires tool information (for example, a tool number, tool type, etc.) based on an input operation by a user via the input unit 12, for example. Note that, in a case where tool information is not inputted by a user via the input unit 12, it may be that, for example, the tool information acquisition unit 110 acquires tool information (for example, a tool number, tool type, etc.) from tooling data acquired in advance from the tool management data (not shown) in the machine tool 20.
[0082] The shape ID information extraction unit 111 uses the tool information acquired by the tool information acquisition unit 110 to query the association table 141, which is an associated information storage unit, and thereby extract a shape ID (Sid) indicating shapes that can be machined by the tool corresponding to the acquired tool information.
[0083] Specifically, for example in a case where the tool information acquired by the tool information acquisition unit 110 includes the tool number “T10”, the shape ID information extraction unit 111 extracts the shape IDs for which “S.sub.id” is “1” and “5” based on the association table 141. In addition, for example in a case where the tool information acquired by the tool information acquisition unit 110 includes the tool number “T20”, the shape ID information extraction unit 111 extracts the shape ID for which “S.sub.id” is “2” based on the association table 141. In addition, for example in a case where the tool information acquired by the tool information acquisition unit 110 includes the tool number “T30”, the shape ID information extraction unit 111 extracts shape IDs for which “S.sub.id” is “3” and “4” based on the association table 141.
[0084] Based on a shape ID extracted by the shape ID information extraction unit 111, the machinable-shape extraction unit 112 extracts machinable shapes from CAD data for a machining product to be achieved.
[0085] Specifically, for example, in a case where shape IDs extracted by the shape ID information extraction unit 111 are “1” and “5”, the machinable-shape extraction unit 112 extracts from the CAD data a hole machined parallel to an X axis, Y axis, or Z axis and a hole machined inclined obliquely, as machinable shapes. In addition, in a case where the shape ID extracted by the shape ID information extraction unit 111 is “2”, the machinable-shape extraction unit 112 extracts from the CAD data a portion at which a screw thread is machined, as a machinable shape. In addition, in a case where the shape IDs extracted by the shape ID information extraction unit 111 is “3” and “4”, the machinable-shape extraction unit 112 extracts from the CAD data a portion at which pocketing is performed and a portion at which contouring is performed, as machinable shapes. Note that a detailed description for the machinable-shape extraction unit 112 is given below.
[0086] The display unit 13 which serves as a machinable-shape display unit displays machinable shapes extracted by the machinable-shape extraction unit 112.
[0087]
[0088] As illustrated in
[0089] Note that the display unit 13 which serves as a machinable-shape display unit has displayed an extracted machinable shape emphasized by a thick line, but an emphasized display may be performed by a line other than a thick line, or an emphasized display may be performed by a line having a color such as red.
[0090] For example, in a case where a user has, in a display screen from
[0091] The usable G code extraction unit 114 uses the tool information and shape ID for the machinable shape, which are received from the selected-shape acquisition unit 113, to query the association table 141 which serves as an associated information storage unit and uses the tool corresponding to the received tool information to further narrow down G codes that can be used to machine the shape corresponding to the received shape ID.
[0092] Specifically, for example, in a case of receiving from the selected-shape acquisition unit 113 the tool number “T10” acquired 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 serves as a shape selection acceptance unit, based on the association table 141, the usable G code extraction unit 114 extracts and narrows down usable G codes - drill cycle “G81”, drill cycle “G82”, peck drilling cycle “G83”, cancel “G80”, drill cycle “G1110”, and drill cycle “G1111” - for which the G code ID “G.sub.id” is “1”. In addition, in a case of receiving from the selected-shape acquisition unit 113 the tool number “T20” acquired by the tool information acquisition unit 110 and the shape ID “2” indicating a screw thread portion selected by the user via the input unit 12 which serves as a shape selection acceptance unit, based on the association table 141, the usable G code extraction unit 114 extracts and narrows down usable G codes -tapping “G84” and tapping “G1112” - for which the G code ID “G.sub.id” is “2”.
[0093] In addition, in a case of receiving from the selected-shape acquisition unit 113 the tool number “T30” acquired by the tool information acquisition unit 110 and the shape ID “3” indicating a pocketing portion selected by the user via the input unit 12 which serves as a shape selection acceptance unit, based on the association table 141, the usable G code extraction unit 114 extracts and narrows down usable G codes -pocketing rough machining “G1040”, pocketing bottom surface finishing “G1041”, and pocketing side surface finishing “G1042” - for which the G code ID “G.sub.id” is “3”. In addition, in a case of receiving from the selected-shape acquisition unit 113 the tool number “T30” acquired by the tool information acquisition unit 110 and the shape ID “4” indicating a contouring portion selected by the user via the input unit 12 which serves as a shape selection acceptance unit, based on the association table 141, the usable G code extraction unit 114 extracts and narrows down usable G codes -contouring outer wall rough machining “G1060”, contouring outer wall bottom surface finishing “G1061”, and contouring outer wall side surface finishing “G1062” - for which the G code ID “G.sub.id” is “4”. In addition, in a case of receiving from the selected-shape acquisition unit 113 the tool number “T10” acquired by the tool information acquisition unit 110 and the shape ID “5” indicating an obliquely inclined hole shape selected by the user via the input unit 12 which serves as a shape selection acceptance unit, based on the association table 141, the usable G code extraction unit 114 extracts and narrows down usable G codes - inclined surface indexing command “G68.2”, inclined surface indexing command in accordance with a tool axis direction “G68.3”, and inclined surface indexing command (incremental multiple commands) “G68.4” - for which the G code ID “G.sub.id” is “5”.
[0094] The display unit 13 which serves as a usable G code display unit displays the usable G codes that were narrowed down by the usable G code extraction unit 114.
[0095]
[0096] For example, in a case where a pocketing portion is selected by a user in the display screen illustrated in
[0097] As a result, the numerical control device 10 enables selection of a G code and a machining shape to be easily performed, and can shorten an amount of time for creating a machining program. In addition, the numerical control device 10 presents available G codes and machining shapes and allows a user to make a selection, whereby it is possible to prevent a machining program from being erroneously inputted.
[0098] For example, the program generation unit 115 accepts a G code selected by a user, via the input unit 12 which serves as a G code selection acceptance unit, on the screen in
[0099]
[0100] The program generation unit 115 uses a parameter inputted by a user via the setting screen in
[0101] Note that “G1200” is a G code for setting a start point for pocketing, and “G1201” is a G code for setting a straight line in pocketing. In addition, “G1990” is a G code for a group range selection start command, and “G1991” is a G code for a group range selection end command.
Machining Program Generation Process by Numerical Control Device 10
[0102] Next, with reference to
[0103]
[0104] Description is given below regarding a case in which a hole shape (hereinafter, may be referred to as “hole shape”), a screw thread portion (hereinafter, may be referred to as “screw shape”), a pocketing portion (hereinafter, may be referred to as “pocket shape”), a contouring portion (hereinafter, may be referred to as “contour shape”), and an obliquely inclined hole shape (hereinafter, may be referred to as “inclined shape”) are machinable shapes, but there is no limitation to this. It is possible to similarly perform processing even for a case for a machinable shape other than a hole shape, a screw shape, a pocket shape, a contour shape, and an inclined shape.
[0105] In Step S1, the tool information acquisition unit 110, based on an input operation by a user via the input unit 12, performs a tool information acquisition process to acquire tool information (for example, a tool number, tool type, etc.). Note that a detailed flow for the tool information acquisition process is described below.
[0106] In Step S2, the shape ID information extraction unit 111 uses the tool information acquired in Step S1 to query the association table 141, which is an associated information storage unit, and thereby extract shape IDs indicating shapes that can be machined by the tool corresponding to the acquired tool information.
[0107] In Step S3, based on the shape IDs extracted in Step S2, the machinable-shape extraction unit 112 performs a machinable-shape extraction process and extracts machinable shapes from CAD data for a machining product to be achieved. Note that a detailed flow for the machinable-shape extraction process is given below.
[0108] In Step S4, the display unit 13 which serves as a machinable-shape display unit displays (for example,
[0109] In Step S5, based on the selection of a machinable shape by a user via the input unit 12 which serves as a shape selection acceptance unit in the screen displayed by the display unit 13 which serves as a machinable-shape display unit, the selected-shape acquisition unit 113 performs a selected shape acquisition process and acquires a shape ID for the machinable shape selected by the user. Note that a detailed flow for the selected shape acquisition process is described below.
[0110] In Step S6, the usable G code extraction unit 114 uses the tool information acquired in Step S1 and the shape ID for the machinable shape selected in Step S5 to query the association table 141 and further narrow down usable G codes.
[0111] In Step S7, the display unit 13 which serves as a usable G code display unit displays (for example,
[0112] In Step S8, the program generation unit 115 accepts a G code selected by a user, via the input unit 12 which serves as a G code selection acceptance unit, on a display screen displayed on the display unit 13 which serves as a usable G code display unit.
[0113] In Step S9, the program generation unit 115 displays a setting screen (for example,
[0114] In Step S10, the program generation unit 115 uses the parameter inputted by the user in Step S9 to add (for example,
[0115] In Step S11, the program generation unit 115 determines whether generation of the machining program has ended. In a case where an input such as “save” or “end” for the machining program is accepted from a user via the input unit 12, the program generation unit 115 determines that generation of the machining program has ended, and ends the processing. In contrast, in a case where an input such as “save” or “end” for the machining program is not accepted from a user via the input unit 12, the program generation unit 115 determines that generation of the machining program has not ended, and returns the processing to Step S1.
Tool Information Acquisition Process in Step S1
[0116]
[0117] In Step S1A, based on an input operation by the user via the input unit 12, the tool information acquisition unit 110 determines whether tool information has been inputted. In a case where tool information is inputted, the process proceeds to Step S1B. In contrast, in a case where tool information is not inputted, the process proceeds to Step S1C.
[0118] In Step S1B, the tool information acquisition unit 110 acquires tool information (for example, a tool number, tool type, etc.) inputted by the user via the input unit 12.
[0119] In Step S1C, the tool information acquisition unit 110 acquires tool information (for example, a tool number, tool type, etc.) from tooling data acquired in advance from the tool management data (not shown) in the machine tool 20.
[0120] By the above, the flow for the tool information acquisition process ends, and the process returns to the flow in
Machinable-Shape Extraction Process in Step S3
[0121]
[0122] In Step S31, the machinable-shape extraction unit 112 determines whether the shape ID extracted in Step S2 is “1” for a hole shape. In a case where the shape ID is “1” for a hole shape, the process proceeds to Step S32. In contrast, in a case where the shape ID is not “1” for a hole shape, the process proceeds to Step S34.
[0123] In Step S32, the machinable-shape extraction unit 112 performs a determination process regarding whether there is a hole shape having the shape ID “1” in the CAD data for the machining product. Note that a detailed flow for the determination process in Step S32 is described below.
[0124] In Step S33, in a case where the result of the determination process in Step S32 is that there is a hole shape, the process proceeds to Step S3G. In contrast, in a case where the result of the determination process in Step S32 is that there is no hole shape, the process proceeds to Step S3H.
[0125] In Step S34, the machinable-shape extraction unit 112 determines whether the shape ID extracted in Step S2 is “2” for a screw shape. In a case where the shape ID is “2” for a screw shape, the process proceeds to Step S35. In contrast, in a case where the shape ID is not “2” for a screw shape, the process proceeds to Step S37 in
[0126] In Step S35, the machinable-shape extraction unit 112 performs a determination process regarding whether there is a screw shape having the shape ID “2” in the CAD data for the machining product. Note that a detailed flow for the determination process in Step S35 is described below.
[0127] In Step S36, in a case where the result of the determination process in Step S35 is that there is a screw shape, the process proceeds to Step S3G. In contrast, in a case where the result of the determination process in Step S35 is that there is no screw shape, the process proceeds to Step S3H.
[0128] In Step S37 in
[0129] In Step S38, the machinable-shape extraction unit 112 performs a determination process regarding whether there is a pocket shape having the shape ID “3” in the CAD data for the machining product. Note that a detailed flow for the determination process in Step S38 is described below.
[0130] In Step S39, in a case where the result of the determination process in Step S38 is that there is a pocket shape, the process proceeds to Step S3G. In contrast, in a case where the result of the determination process in Step S38 is that there is no pocket shape, the process proceeds to Step S3H in
[0131] In Step S3A, the machinable-shape extraction unit 112 determines whether the shape ID extracted in Step S2 is “4” for a contour shape. In a case where the shape ID is “4” for a contour shape, the process proceeds to Step S3B. In contrast, in a case where the shape ID is not “4” for a contour shape, the process proceeds to Step S3D.
[0132] In Step S3B, the machinable-shape extraction unit 112 performs a determination process regarding whether there is a contour shape having the shape ID “4” in the CAD data for the machining product. Note that a detailed flow for the determination process in Step S3B is described below.
[0133] In Step S3C, in a case where the result of the determination process in Step S3B is that there is a contour shape, the machinable-shape extraction unit 112 advances the process to Step S3G in
[0134] In Step S3D, the machinable-shape extraction unit 112 determines whether the shape ID extracted in Step S2 is “5” for an inclined shape. In a case where the shape ID is “5” for an inclined shape, the process proceeds to Step S3E. In contrast, in a case where the shape ID is not “5” for a contour shape, the process proceeds to Step S3H in
[0135] In Step S3E, the machinable-shape extraction unit 112 performs a determination process regarding whether there is an inclined shape having the shape ID “5” in the CAD data for the machining product. Note that a detailed flow for the determination process in Step S3E is described below.
[0136] In Step S3F, in a case where the result of the determination process in Step S3E is that there is an inclined shape, the process proceeds to Step S3G in
[0137] In Step S3G, the machinable-shape extraction unit 112 extracts, from the CAD data, a machinable shape corresponding to the shape ID. The process then proceeds to Step S3H.
[0138] In Step S3H, the machinable-shape extraction unit 112 determines whether all extracted shape IDs have been checked. In a case where all extracted shape IDs have not been checked, the process returns to Step S31. In contrast, in a case where all extracted shape IDs have been checked, the flow for the machinable-shape extraction process in Step S3 ends and the process returns to the flow in
Selected Shape Acquisition Process in Step S5
[0139]
[0140] In Step S51, the selected-shape acquisition unit 113 determines whether the machining shape selected by the user is a hole shape. In a case where the machining shape selected by the user is a hole shape, the process proceeds to Step S52. In contrast, in a case where the machining shape selected by the user is not a hole shape, the process proceeds to Step S53.
[0141] In Step S52, the selected-shape acquisition unit 113 acquires the shape ID “1” for the hole shape selected by the user.
[0142] In Step S53, the selected-shape acquisition unit 113 determines whether the machining shape selected by the user is a screw shape. In a case where the machining shape selected by the user is a screw shape, the process proceeds to Step S54. In contrast, in a case where the machining shape selected by the user is a not screw shape, the process proceeds to Step S55.
[0143] In Step S54, the selected-shape acquisition unit 113 acquires the shape ID “2” for the screw shape selected by the user.
[0144] In Step S55, the selected-shape acquisition unit 113 determines whether the machining shape selected by the user is a pocket shape. In a case where the machining shape selected by the user is a pocket shape, the process proceeds to Step S56. In contrast, in a case where the machining shape selected by the user is not a pocket shape, the process proceeds to Step S57.
[0145] In Step S56, the selected-shape acquisition unit 113 acquires the shape ID “3” for the pocket shape selected by the user.
[0146] In Step S57, the selected-shape acquisition unit 113 determines whether the machining shape selected by the user is a contour shape. In a case where the machining shape selected by the user is a contour shape, the process proceeds to Step S58. In contrast, in a case where the machining shape selected by the user is not a contour shape, the process proceeds to Step S59.
[0147] In Step S58, the selected-shape acquisition unit 113 acquires the shape ID “4” for the contour shape selected by the user.
[0148] In Step S59, the selected-shape acquisition unit 113 determines whether the machining shape selected by the user is an inclined shape. In a case where the machining shape selected by the user is an inclined shape, the process proceeds to Step S5A. In contrast, in a case where the machining shape selected by the user is not an inclined shape, the flow for the selected shape acquisition process ends, and the process returns to the flow in
[0149] In Step S5A, with the machining shape selected by the user being an inclined shape, the selected-shape acquisition unit 113 acquires the shape ID “5” for the inclined shape. By the above, the flow for the selected shape acquisition process ends, and the process returns to the flow in
Determination Process in Step S32
[0150]
[0151]
[0152] In Step S321, the machinable-shape extraction unit 112 initializes i to “0”.
[0153] In Step S322, the machinable-shape extraction unit 112 increases i by 1.
[0154] In Step S323, the machinable-shape extraction unit 112 determines whether there are straight lines L.sub.i+1 and L.sub.i+3 having the end point P.sub.s as end points in the CAD data for the machining product. In a case where the straight lines L.sub.i+1 and L.sub.i+3 are present, the process proceeds to Step S324. In contrast, in a case where the straight lines L.sub.i+1 and L.sub.i+3 are not present, the process proceeds to Step S329.
[0155] In Step S324, the machinable-shape extraction unit 112 determines whether straight lines L.sub.i+2 and L.sub.i+4 having the end point P.sub.E as end points are present in the CAD data for the machining product. In a case where the straight lines L.sub.i+2 and L.sub.i+4 are present, the process proceeds to Step S325. In contrast, in a case where the straight lines L.sub.i+2 and L.sub.i+4 are not present, the process proceeds to Step S329.
[0156] In Step S325, the machinable-shape extraction unit 112 determines whether the angle between the straight line L.sub.i and the straight line L.sub.i+3 and the angle between the straight line L.sub.i and the straight line L.sub.i+4 are 90 degrees. In a case where the angle between the straight line L.sub.i and the straight line L.sub.i+3 and the angle between the straight line L.sub.i and the straight line L.sub.i+4 are 90 degrees, the process proceeds to Step S326. In a case where the angle between the straight line L.sub.i and the straight line L.sub.i+3 and/or the angle between the straight line L.sub.i and the straight line L.sub.i+4 is not 90 degrees, the process proceeds to Step S329.
[0157] In Step S326, the machinable-shape extraction unit 112 determines whether the angle between the straight line L.sub.i and the straight line L.sub.i+1 is the same as the angle between the straight line L.sub.i and the straight line L.sub.i+2. In a case where the angle between the straight line L.sub.i and the straight line L.sub.i+1 is equal to the angle between the straight line L.sub.i and the straight line L.sub.i+2, the process proceeds to Step S327. In contrast, in a case where the angle between the straight line L.sub.i and the straight line L.sub.i+1 is not equal to the angle between the straight line L.sub.i and the straight line L.sub.i+2, the process proceeds to Step S329.
[0158] In Step S327, the machinable-shape extraction unit 112 determines whether the straight line L.sub.i is parallel to the X axis or the Y axis. In a case where the straight line L.sub.i is parallel to the X axis or the Y axis, the process proceeds to Step S328. In contrast, in a case where the straight line L.sub.i is not parallel to the X axis and not parallel to the Y axis, the process proceeds to Step S329.
[0159] In Step S328, the machinable-shape extraction unit 112 determines that there is a hole shape in the CAD data for the machining product. The flow for the determination process in Step S32 ends, and the process returns to the flow in
[0160] In Step S329, the machinable-shape extraction unit 112 determines whether all straight lines have been checked. In a case where all straight lines have been checked, the flow for the determination process in Step S32 ends, and the process returns to the flow in
Determination Process in Step S35
[0161]
[0162] Note that processing in Step S351, Step S352, and Step S359 is similar to processing in Step S321, Step S322, and Step S329 in
[0163] In addition,
[0164] In Step S353, the machinable-shape extraction unit 112 performs a similar determination process to that in
[0165] In Step S354, the machinable-shape extraction unit 112 determine whether there is a straight line L.sub.i+5 joining the end point P.sub.NS and the end point P.sub.NE in the CAD data for the hole shape for which the determination process was performed in Step S353. In a case where the straight line L.sub.i+s is present, the process proceeds to Step S355. In contrast, in a case where the straight line L.sub.i+5 is not present, the process proceeds to Step S359.
[0166] In Step S355, the machinable-shape extraction unit 112 determines whether the straight line L.sub.i+6 having the end point P.sub.NS as an end point is present in the CAD data for the machining product. In a case where the straight line L.sub.i+6 is present, the process proceeds to Step S356. In contrast, in a case where the straight line L.sub.i+6 is not present, the process proceeds to Step S359.
[0167] In Step S356, the machinable-shape extraction unit 112 determines whether the straight line L.sub.i+7 having the end point P.sub.NE as an end point is present in the CAD data for the machining product. In a case where the straight line L.sub.i+7 is present, the process proceeds to Step S357. In contrast, in a case where the straight line L.sub.i+7 is not present, the process proceeds to Step S359.
[0168] In Step S357, the machinable-shape extraction unit 112 determines whether the angle between the straight line L.sub.i+5 and the straight line L.sub.i+6 and the angle between the straight line L.sub.1+5 and the straight line L.sub.i+7 are 90 degrees. In a case where the angle between the straight line L.sub.i+s and the straight line L.sub.i+6 and the angle between the straight line L.sub.1+5 and the straight line L.sub.i+7 are 90 degrees, the process proceeds to Step S358. In a case where the angle between the straight line L.sub.1+5 and the straight line L.sub.i+6 and/or the angle between the straight line L.sub.i+5 and the straight line L.sub.i+7 is not 90 degrees, the process proceeds to Step S359.
[0169] In Step S358, the machinable-shape extraction unit 112 determines that there is a screw shape in the CAD data for the machining product. The flow for the determination process in Step S35 ends, and the process returns to the flow in
Determination Process in Step S38
[0170]
[0171] Note that processing in Step S381, Step S382, and Step S38A is similar to processing in Step S321, Step S322, and Step S329 in
[0172] In addition,
[0173] In Step S383, the machinable-shape extraction unit 112 acquires an element E.sub.j adjacent to any one element in the CAD data for the machining product (j is an integer from 1 to n, and n is an integer that is equal to or greater than 1).
[0174] In Step S384, the machinable-shape extraction unit 112 acquires a leftmost end point P.sub.L and a rightmost end point P.sub.R belonging to the shape in the X axis direction from the element E.sub.j.
[0175] In Step S385, from all straight-line elements, the machinable-shape extraction unit 112 searches for straight lines L.sub.L and L.sub.R that are parallel to the Y axis and for which a Y-axis value (Y value) for a start point or terminal point thereof is the same as the Y-axis value (Y value) for the point P.sub.L or point P.sub.R acquired in Step S384.
[0176] In Step S386, the machinable-shape extraction unit 112 determines whether the straight lines L.sub.L and L.sub.R are present. In a case where the straight lines L.sub.L and L.sub.R are present, the process proceeds to Step S387. In contrast, in a case where the straight lines L.sub.L and L.sub.R are not present, the process proceeds to Step S38A.
[0177] In Step S387, the machinable-shape extraction unit 112 determines whether there is a straight line L.sub.LR that joins the end point P.sub.SL, which has a low Y value and belongs to the straight line L.sub.L, with the end point P.sub.SR, which has a low Y value and belongs to the straight line L.sub.R. In a case where the straight line L.sub.LR is present, the process proceeds to Step S388. In contrast, in a case where the straight line L.sub.LR is not present, the process proceeds to Step S38A.
[0178] In Step S388, the machinable-shape extraction unit 112 determines whether there is no other element that passes through the end points P.sub.SL, P.sub.SR. In a case where there is no other element that passes through the end points P.sub.SL, P.sub.SR, the process proceeds to Step S389. In contrast, in a case where there is another element that passes through the end points P.sub.SL, P.sub.SR, the process proceeds to Step S38A.
[0179] In Step S389, the machinable-shape extraction unit 112 determines that there is a pocket shape in the CAD data for the machining product. The flow for the determination process in Step S38 ends, and the process returns to the flow in
Determination Process in Step S3B
[0180]
[0181] Note that processing in Step S3B1 through Step S3B6, and Step S3BA is similar to processing in Step S381 through Step S386, and Step S38A in
[0182]
[0183] In Step S3B7, the machinable-shape extraction unit 112 determines whether there is a straight line L.sub.LR that joins the end point P.sub.LL, which has a large Y value and belongs to the straight line L.sub.L, with the end point P.sub.LR, which has a large Y value and belongs to the straight line L.sub.R. In a case where the straight line LLR is present, the process proceeds to Step S3B8. In contrast, in a case where the straight line L.sub.LR is not present, the process proceeds to Step S3BA.
[0184] In Step S3B8, the machinable-shape extraction unit 112 determines whether there is no other element that passes through the end points P.sub.LL, P.sub.LR. In a case where there is no other element that passes through the end points P.sub.LL, P.sub.LR, the process proceeds to Step S3B9. In contrast, in a case where there is another element that passes through the end points P.sub.LL, P.sub.LR, the process proceeds to Step S3BA.
[0185] In Step S3B9, the machinable-shape extraction unit 112 determines that there is a contour shape in the CAD data for the machining product. The flow for the determination process in Step S3B ends, and the process returns to the flow in
Determination Process in Step S3E
[0186]
[0187] Note that processing in Step S3E1 through Step S3E6, and Step S3E9 is similar to processing in Step S321 through Step S326, and Step S329 in
[0188]
[0189] In Step S3E7, the machinable-shape extraction unit 112 determines whether the straight line L.sub.i is not parallel to the X axis and the Y axis. In a case where the straight line L.sub.i is not parallel to the X axis and the Y axis, the process proceeds to Step S3E8. In contrast, in a case where the straight line L.sub.i is parallel to the X axis or the Y axis, the process proceeds to Step S3E9.
[0190] In Step S3E8, the machinable-shape extraction unit 112 determines that there is an inclined shape in the CAD data for the machining product. The flow for the determination process in Step S3E ends, and the process returns to the flow in
[0191] As above, based on tool information for a tool selected by the user and the association table 141, the numerical control device 10 according to the first embodiment extracts shape IDs indicating shapes that can be machined by a tool selected, and displays machinable shapes that have the extracted shape IDs. The numerical control device 10 also narrows down usable G codes based on a shape ID for a shape selected by a user from among the displayed machinable shapes, the selected tool information, and the association table 141. As a result, the numerical control device 10 can narrow down G codes and/or machining shapes according to the selected tool and display the G codes and/or machining shapes. The numerical control device 10 enables selection of machinable shapes and usable G codes to be easily performed, and can shorten an amount of time for creating a machining program.
[0192] In addition, the numerical control device 10 presents machinable shapes and usable G codes and allows a user to make a selection, whereby it is possible to prevent a machining program from being erroneously inputted.
[0193] Description was given above regarding the first embodiment.
Second Embodiment
[0194] Next, description is given regarding a second embodiment. As described above, the numerical control device 10 according to the first embodiment stores the association table 141 that associates, in advance, tool information pertaining to a plurality of tools, shape IDs indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a corresponding shape ID; extracts, based on tool information for a tool selected by a user and the association table 141, shape IDs indicating shapes that can be machined by a tool selected; and displays machinable shapes corresponding to the extracted shape IDs. The numerical control device 10 also narrows down usable G codes based on a shape ID for a shape selected by a user from among the displayed machinable shapes and the association table 141.
[0195] In contrast to this, a numerical control device 10A according to the second embodiment stores the association table 141 that associates, in advance, tool information pertaining to a plurality of tools, shape IDs indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a corresponding shape ID; extracts, based on tool information for a tool selected by a user and the association table 141, G codes that can be used by a selected tool; and displays the extracted G codes. The numerical control device 10A differs from the first embodiment in further narrowing down machinable shapes based on a G code selected by a user from among the displayed G codes and the association table 141.
[0196] As a result, the numerical control device 10A can narrow down G codes and/or machining shapes according to the selected tool and display the G codes and/or machining shapes.
[0197] Description is given below regarding the second embodiment.
[0198]
[0199] As illustrated in
[0200] The machine tool 20 has equivalent functionality to that of the machine tool 20 according to the first embodiment.
[0201] As illustrated in
[0202] The input unit 12, the display unit 13, and the storage unit 14 have functionality equivalent to that of the input unit 12, the display unit 13, and the storage unit 14 according to the first embodiment.
[0203] In addition, the tool information acquisition unit 110, the machinable-shape extraction unit 112, and the program generation unit 115 have functionality equivalent to that of the tool information acquisition unit 110, the machinable-shape extraction unit 112, and the program generation unit 115 according to the first embodiment.
[0204] The usable G code extraction unit 114a uses the tool information acquired by the tool information acquisition unit 110 to query the association table 141, which is an associated information storage unit, and thereby extract G codes that can be used by a tool having the acquired tool information.
[0205] Specifically, for example, in a case where tool information acquired by the tool information acquisition unit 110 includes the tool number “T10”, the usable G code extraction unit 114a, based on the association table 141, extracts usable G codes - drill cycle “G81”, drill cycle “G82”, peck drilling cycle “G83”, cancel “G80”, drill cycle “G1110”, and drill cycle “G1111” - for which the G code ID “G.sub.id” is “1”, as well as usable G codes - inclined surface indexing command “G68.2”, inclined surface indexing command in accordance with a tool axis direction “G68.3”, and inclined surface indexing command (incremental multiple commands) “G68.4” - for which the G code ID “G.sub.id” is “5”. In addition, for example in a case where the tool information acquired by the tool information acquisition unit 110 includes the tool number “T20”, based on the association table 141, the usable G code extraction unit 114a extracts usable G codes - tapping “G84” and tapping “G1112” - for which the G code ID “G.sub.id” is “2”. In addition, for example in a case where the tool information acquired by the tool information acquisition unit 110 includes the tool number “T30”, based on the association table 141, the usable G code extraction unit 114a extracts usable G codes - pocketing rough machining “G1040”, pocketing bottom surface finishing “G1041”, and pocketing side surface finishing “G1042” - for which the G code ID “G.sub.id” is “3”, and usable G codes - contouring outer wall rough machining “G1060”, contouring outer wall bottom surface finishing “G1061”, and contouring outer wall side surface finishing “G1062” - for which the G code ID “G.sub.id” is “4”.
[0206] The display unit 13 which serves as a usable G code display unit displays the usable G codes that were extracted by the usable G code extraction unit 114a.
[0207]
[0208] For example, in a case where an end mill having the tool number “T30” is selected by a user as a tool, as illustrated in
[0209] For example, in a case where a user has selected a G code, via the input unit 12 which serves as a G code selection acceptance unit, on the display screen in
[0210] The shape ID information extraction unit 111a uses the tool information and G code received from the selected G code acquisition unit 116 to query the association table 141 which serves as an associated information storage unit and further narrows down shape IDs for shapes that can be machined by the tool corresponding to the received tool information using the received G code.
[0211] Specifically, for example in a case where the tool number “T10” acquired by the tool information acquisition unit 110 and the peck drilling cycle “G83” G code selected by the user via the input unit 12 which serves as a G code selection acceptance unit are received from the selected G code acquisition unit 116, the shape ID information extraction unit 111a extracts and narrows down to the shape ID (Sid) “1” based on the association table 141. In addition, for example in a case where the tool number “T20” acquired by the tool information acquisition unit 110 and the tapping ring “G84” G code selected by the user via the input unit 12 which serves as a G code selection acceptance unit are received from the selected G code acquisition unit 116, the shape ID information extraction unit 111a extracts and narrows down to the shape ID (Sid) “2” based on the association table 141. In addition, for example in a case where the tool number “T30” acquired by the tool information acquisition unit 110 and the pocketing rough machining “G1040” G code selected by the user via the input unit 12 which serves as a G code selection acceptance unit are received from the selected G code acquisition unit 116, the shape ID information extraction unit 111a extracts and narrows down to the shape ID (Sid) “3” based on the association table 141. In addition, for example in a case where the tool number “T30” acquired by the tool information acquisition unit 110 and the contouring outer wall rough machining “G1060” G code selected by the user via the input unit 12 which serves as a G code selection acceptance unit are received from the selected G code acquisition unit 116, the shape ID information extraction unit 111a extracts and narrows down to the shape ID (Sid) “4” based on the association table 141. In addition, for example in a case where the tool number “T10” acquired by the tool information acquisition unit 110 and the inclined surface indexing command “G68.2” G code selected by the user via the input unit 12 which serves as a G code selection acceptance unit are received from the selected G code acquisition unit 116, the shape ID information extraction unit 111a extracts and narrows down to the shape ID (Sid) “5” based on the association table 141.
[0212] Based on the shape IDs narrowed down by the shape ID information extraction unit 111a described above, the display unit 13 which serves as a machinable-shape display unit displays machinable shapes extracted from CAD data for a machining product by the machinable-shape extraction unit 112.
[0213]
[0214] For example, in a case where the contouring outer wall rough machining “G1060” G code is selected by a user in
[0215] As a result, the numerical control device 10A enables selection of a G code and a machining shape to be easily performed, and can shorten an amount of time for creating a machining program. In addition, the numerical control device 10A presents available G codes and machinable shapes and allows a user to make a selection, whereby it is possible to prevent a machining program from being erroneously inputted.
[0216] Note that the display unit 13 which serves as a machinable-shape display unit has displayed an extracted machining shape emphasized by a thick line, but an emphasized display may be performed by a line other than a thick line, or an emphasized display may be performed by a line having a color such as red.
Machining Program Generation Process by Numerical Control Device 10A
[0217] Next, with reference to
[0218]
[0219] In Step S′1, the tool information acquisition unit 110, based on an input operation by a user via the input unit 12, performs a tool information acquisition process similar to that for Step S1 in the first embodiment to acquire tool information (for example, a tool number, tool type, etc.).
[0220] In Step S′2, the usable G code extraction unit 114a uses the tool information acquired in Step S′1 to query the association table 141, which is an associated information storage unit, and thereby extract G codes that can be used by a tool having the acquired tool information.
[0221] In Step S′3, the display unit 13 which serves as a usable G code display unit displays (for example,
[0222] In Step S′4, the selected G code acquisition unit 116 acquires a G code selected by a user, via the input unit 12 which serves as a G code selection acceptance unit, on a display screen (for example,
[0223] In Step S′5, the shape ID information extraction unit 111a uses the tool information acquired in Step S′1 and the G code selected in Step S′4 to query the association table 141 and thereby further narrow down shape IDs indicating shapes that can be machined by the tool corresponding to the acquired tool information and using the selected G code.
[0224] In Step S′6, based on the shape IDs extracted in Step S′5, the machinable-shape extraction unit 112 performs a machinable-shape extraction process, similar to that in Step S3 in the first embodiment, and extracts machinable shapes from CAD data for a machining product to be achieved.
[0225] In Step S′7, the display unit 13 which serves as a machinable-shape display unit displays (for example,
[0226] In Step S′8, the program generation unit 115 accepts a shape selected by a user, via the input unit 12 which serves as a shape selection acceptance unit, on a display screen displayed on the display unit 13 which serves as a machinable-shape display unit.
[0227] In Step S′9, in order to machine the shape accepted in Step S′8, the program generation unit 115 displays a setting screen (for example,
[0228]
[0229] In Step S′10, the program generation unit 115 uses the parameter inputted by the user in Step S′9 to add a block that includes the selected G code.
[0230]
[0231] In Step S′11, the program generation unit 115 determines whether generation of the machining program has ended, similarly to Step S11 in the first embodiment. In a case where an input such as “save” or “end” for the machining program is accepted from a user via the input unit 12, the program generation unit 115 determines that generation of the machining program has ended, and ends the processing. In contrast, in a case where an input such as “save” or “end” for the machining program is not accepted from a user via the input unit 12, the program generation unit 115 determines that generation of the machining program has not ended, and returns the processing to Step S′1.
[0232] As above, based on tool information for a tool selected by a user and the association table 141, the numerical control device 10A according to the second embodiment extracts G codes that can be used by the selected tool, and displays the extracted usable G codes. Based on a G code selected by the user from among the displayed usable G codes, the selected tool information, and the association table 141, the numerical control device 10 further narrows down machinable shapes. As a result, the numerical control device 10A can narrow down G codes and/or machining shapes according to the selected tool and display the G codes and/or machining shapes. The numerical control device 10A enables selection of machinable machining shapes and usable G codes to be easily performed, and can shorten an amount of time for creating a machining program.
[0233] In addition, the numerical control device 10A presents machinable machining shapes and usable G codes and allows a user to make a selection, whereby it is possible to prevent a machining program from being erroneously inputted.
[0234] Description was given above regarding the second embodiment.
[0235] This concludes the description above regarding the first embodiment and the second embodiment, but the numerical control devices 10 and 10A is not limited to the embodiments described above, and include variations, improvements, etc. in a scope that enables the objective to be achieved.
Variation
[0236] In the first embodiment and second embodiment described above, the numerical control devices 10 and 10A are given as devices that differ to the machine tool 20, but there is no limitation to this. For example, the numerical control devices 10 and 10A may be included in the machine tool 20.
[0237] In a case of configuring all or some of the numerical control devices 10 and 10A by software, a computer is configured by a storage unit such as a hard disk or a ROM that stores a program in which is written all of some of the operations by the numerical control devices 10 and 10A, a DRAM that stores data necessary for computation, a CPU, and a bus that connects each unit, and realization is possible in the computer by storing information necessary for computation in the DRAM and causing the program to be run by the CPU.
[0238] The program can be stored using various types of non-transitory computer-readable mediums and supplied to the computer. A non-transitory computer-readable medium includes various types of tangible storage mediums. An example of a non-transitory computer-readable medium includes a magnetic recording medium (for example, a floppy disk, magnetic tape, or a hard disk drive), a magneto-optical recording medium (for example, a magneto-optical disk), a CD-ROM (read-only memory), CD-R, CD-R/W, and a semiconductor memory (for example, a mask ROM, a programmable ROM (PROM), an erasable PROM (EPROM), a flash ROM, or a RAM). In addition, the program may be supplied to the computer by various types of transitory computer-readable mediums. An example of a transitory computer-readable medium includes an electrical signal, an optical signal, and electromagnetic waves. A transitory computer-readable medium can supply the program to the computer via wired communication channel such as an electrical wire or an optical fiber, or via a wireless communication channel.
[0239] In addition, these programs may be distributed by being downloaded to the computer, which belongs to a user, via a network.
[0240] Note that steps that express a program recorded to a recording medium of course include processing in chronological order following the order of these steps, but also include processing that is executed in parallel or individually, with no necessity for processing to be performed in chronological order.
[0241] To rephrase, the numerical control device according to the present disclosure can have various embodiments which have configurations such as the following.
[0242] (1) The numerical control device 10 according to the present disclosure is a numerical control device configured to automatically generate a machining program, the device comprising: the storage unit 14 configured to store the association table 141 resulting from associating, in advance, tool information pertaining to a plurality of tools, shape IDs indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a shape ID; the tool information acquisition unit 110 configured to acquire tool information pertaining to a tool selected for machining; the shape ID information extraction unit 111 configured to, using the acquired tool information to query the association table 141, extract a shape ID indicating a shape that can be machined by the tool corresponding to the acquired tool information; the machinable-shape extraction unit 112 configured to, based on the extracted shape ID, extract a machinable shape from CAD data; and the display unit 13 which serves as a machinable-shape display unit configured to display the extracted machinable shape.
[0243] By virtue of this numerical control device 10, it is possible to narrow down G codes and/or machining shapes according to the selected tool so as to display the G codes and/or machining shapes.
[0244] (2) The numerical control device 10 according to (1) may further be provided with: the input unit 12 which serves as a shape selection acceptance unit configured to select the extracted machinable shape; the selected-shape acquisition unit 113 configured to acquire a shape ID for the selected machinable shape; and the usable G code extraction unit 114 configured to, using the shape ID for the machinable shape acquired by the selected-shape acquisition unit 113 and the acquired tool information to query the association table 141, further narrow down G codes that can be used to machine the shape corresponding to the acquired shape ID by the tool corresponding to the acquired tool information.
[0245] As a result, the numerical control device 10 enables selection of machinable machining shapes and usable G codes to be easily performed, and can shorten an amount of time for creating a machining program.
[0246] (3) The numerical control device 10 according to (2) may further be provided with: the display unit 13 which serves as a usable G code display unit configured to display the G codes that can be used and were narrowed down by the usable G code extraction unit 114; and the input unit 12 which serves as a G code selection acceptance unit configured to select a G code from the displayed G codes that can be used.
[0247] As a result, the numerical control device 10 presents machinable machining shapes and usable G codes and allows a user to make a selection, whereby it is possible to prevent a machining program from being erroneously inputted.
[0248] (4) The numerical control device 10A according to the present disclosure is a numerical control device configured to automatically generate a machining program, the device comprising: the storage unit 14 configured to store the association table 141 resulting from associating, in advance, tool information pertaining to a plurality of tools, shape IDs indicating shapes that the plurality of tools can respectively machine, and at least one G code that can be used to machine a shape indicated by a shape ID; the tool information acquisition unit 110 configured to acquire tool information pertaining to a tool selected for machining; the usable G code extraction unit 114a configured to, using the acquired tool information to query the association table 141, extract a G code that can be used by the tool corresponding to the acquired tool information; and the display unit 13 which serves as a usable G code display unit configured to display the extracted G code that can be used.
[0249] By virtue of this numerical control device 10A, an equivalent effect to that for (1) can be achieved.
[0250] (5) The numerical control device 10A according to (4) may further be provided with: the input unit 12 which serves as a G code selection acceptance unit configured to select the extracted G code that can be used; the selected G code acquisition unit 116 configured to acquire the selected G code that can be used; and the shape ID information extraction unit 111a configured to, using the G code that can be used and was acquired by the selected G code acquisition unit 116 and the acquired tool information to query the association table 141, further narrow down a shape ID indicating a shape that can be machined by the tool corresponding to the acquired tool information using the selected G code that can be used.
[0251] As a result, the numerical control device 10A can achieve an equivalent effect to that for (2).
[0252] (6) The numerical control device 10A according to (5) may further be provided with: the machinable-shape extraction unit 112 configured to, based on the shape ID narrowed down by the shape ID information extraction unit 111a, extract from CAD data a shape that can be machined; and the display unit 13 which serves as a machinable-shape display unit configured to display the extracted shape that can be machined.
[0253] As a result, the numerical control device 10A can achieve an equivalent effect to that for (3).
EXPLANATION OF REFERENCE NUMERALS
[0254] 1 Control system [0255] 10, 10A Numerical control device [0256] 11, 11a Control unit [0257] 110 Tool information acquisition unit [0258] 111, 111a Shape ID information extraction unit [0259] 112 Machinable-shape extraction unit [0260] 113 Selected-shape acquisition unit [0261] 114, 114a Usable G code extraction unit [0262] 115 Program generation unit [0263] 116 Selected G code acquisition unit [0264] 12 Input unit [0265] 13 Display unit [0266] 14 Storage unit [0267] 141 Association table [0268] 20 Machine tool