The present invention pertains to a numerical control device.
A conventional technique for using CAD data to automatically create a machining program is known. For example, refer to Patent Document 1.
Patent Document 1: Japanese Unexamined Patent Application, Publication No. H04-315550
When using CAD data to create a machining program, there is (a) a case in which a user selects a G code after selecting a machining shape and (b) a case in which a user selects a machining shape after selecting a G code.
(a) Regarding a case in which a user selects a G code after selecting a machining shape
As illustrated in
In the display screen illustrated in
(b) Regarding a case in which a user selects a machining shape after selecting a G code
As illustrated in
In the display screen illustrated in
However, in any case described above, because all G codes and/or CAD data machining shapes are displayed, it takes time to select a desired G code or machining shape, and it is easy for a selection error to occur.
Accordingly, it is desired to narrow down G codes and/or machining shapes according to a selected tool so as to display the G codes and/or machining shapes.
By virtue of one aspect, it is possible to narrow down G codes and/or machining shapes according to a selected tool so as to display the G codes and/or machining shapes.
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.
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”.
The above is an outline of the first embodiment.
Next, using the drawings, description is given in detail regarding a configuration according to the present embodiment.
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.
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.
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.
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.
As illustrated in
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.
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.
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.
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.
As illustrated in
The “Tid” 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 “Tid” 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.
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 “Tid”. 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.
The “Sid” 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.
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 “Sid” 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 “Sid” 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 “Sid” 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 “Sid” 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 “Sid” 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”.
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 “Sid” 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 “Sid” 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.
The “Gid” 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.
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 “Gid” 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 “Gid” 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 “Gid” 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 “Gid” 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 “Gid” 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”.
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.
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
The tool information acquisition unit 110 acquires tool information pertaining to a tool selected for machining.
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.
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.
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 “Sid” 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 “Sid” 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 “Sid” is “3” and “4” based on the association table 141.
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.
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.
The display unit 13 which serves as a machinable-shape display unit displays machinable shapes extracted by the machinable-shape extraction unit 112.
As illustrated in
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.
For example, in a case where a user has, in a display screen from
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.
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 “Gid” 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 “Gid” is “2”.
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 “Gid” 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 “Gid” 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 “Gid” is “5”.
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.
For example, in a case where a pocketing portion is selected by a user in the display screen illustrated in
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.
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
The program generation unit 115 uses a parameter inputted by a user via the setting screen in
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.
Next, with reference to
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.
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.
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.
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.
In Step S4, the display unit 13 which serves as a machinable-shape display unit displays (for example,
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.
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.
In Step S7, the display unit 13 which serves as a usable G code display unit displays (for example,
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.
In Step S9, the program generation unit 115 displays a setting screen (for example,
In Step S10, the program generation unit 115 uses the parameter inputted by the user in Step S9 to add (for example,
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.
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.
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.
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.
By the above, the flow for the tool information acquisition process ends, and the process returns to the flow in
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.
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.
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.
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
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.
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.
In Step S37 in
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.
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
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.
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.
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
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
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.
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
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.
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
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.
In Step S52, the selected-shape acquisition unit 113 acquires the shape ID “1” for the hole shape selected by the user.
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.
In Step S54, the selected-shape acquisition unit 113 acquires the shape ID “2” for the screw shape selected by the user.
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.
In Step S56, the selected-shape acquisition unit 113 acquires the shape ID “3” for the pocket shape selected by the user.
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.
In Step S58, the selected-shape acquisition unit 113 acquires the shape ID “4” for the contour shape selected by the user.
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
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
In Step S321, the machinable-shape extraction unit 112 initializes i to “0”.
In Step S322, the machinable-shape extraction unit 112 increases i by 1.
In Step S323, the machinable-shape extraction unit 112 determines whether there are straight lines Li+1 and Li+3 having the end point Ps as end points in the CAD data for the machining product. In a case where the straight lines Li+1 and Li+3 are present, the process proceeds to Step S324. In contrast, in a case where the straight lines Li+1 and Li+3 are not present, the process proceeds to Step S329.
In Step S324, the machinable-shape extraction unit 112 determines whether straight lines Li+2 and Li+4 having the end point PE as end points are present in the CAD data for the machining product. In a case where the straight lines Li+2 and Li+4 are present, the process proceeds to Step S325. In contrast, in a case where the straight lines Li+2 and Li+4 are not present, the process proceeds to Step S329.
In Step S325, the machinable-shape extraction unit 112 determines whether the angle between the straight line Li and the straight line Li+3 and the angle between the straight line Li and the straight line Li+4 are 90 degrees. In a case where the angle between the straight line Li and the straight line Li+3 and the angle between the straight line Li and the straight line Li+4 are 90 degrees, the process proceeds to Step S326. In a case where the angle between the straight line Li and the straight line Li+3 and/or the angle between the straight line Li and the straight line Li+4 is not 90 degrees, the process proceeds to Step S329.
In Step S326, the machinable-shape extraction unit 112 determines whether the angle between the straight line Li and the straight line Li+1 is the same as the angle between the straight line Li and the straight line Li+2. In a case where the angle between the straight line Li and the straight line Li+1 is equal to the angle between the straight line Li and the straight line Li+2, the process proceeds to Step S327. In contrast, in a case where the angle between the straight line Li and the straight line Li+1 is not equal to the angle between the straight line Li and the straight line Li+2, the process proceeds to Step S329.
In Step S327, the machinable-shape extraction unit 112 determines whether the straight line Li is parallel to the X axis or the Y axis. In a case where the straight line Li 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 Li is not parallel to the X axis and not parallel to the Y axis, the process proceeds to Step S329.
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
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
Note that processing in Step S351, Step S352, and Step S359 is similar to processing in Step S321, Step S322, and Step S329 in
In addition,
In Step S353, the machinable-shape extraction unit 112 performs a similar determination process to that in
In Step S354, the machinable-shape extraction unit 112 determine whether there is a straight line Li+5 joining the end point PNS and the end point PNE 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 Li+s is present, the process proceeds to Step S355. In contrast, in a case where the straight line Li+5 is not present, the process proceeds to Step S359.
In Step S355, the machinable-shape extraction unit 112 determines whether the straight line Li+6 having the end point PNS as an end point is present in the CAD data for the machining product. In a case where the straight line Li+6 is present, the process proceeds to Step S356. In contrast, in a case where the straight line Li+6 is not present, the process proceeds to Step S359.
In Step S356, the machinable-shape extraction unit 112 determines whether the straight line Li+7 having the end point PNE as an end point is present in the CAD data for the machining product. In a case where the straight line Li+7 is present, the process proceeds to Step S357. In contrast, in a case where the straight line Li+7 is not present, the process proceeds to Step S359.
In Step S357, the machinable-shape extraction unit 112 determines whether the angle between the straight line Li+5 and the straight line Li+6 and the angle between the straight line L1+5 and the straight line Li+7 are 90 degrees. In a case where the angle between the straight line Li+s and the straight line Li+6 and the angle between the straight line L1+5 and the straight line Li+7 are 90 degrees, the process proceeds to Step S358. In a case where the angle between the straight line L1+5 and the straight line Li+6 and/or the angle between the straight line Li+5 and the straight line Li+7 is not 90 degrees, the process proceeds to Step S359.
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
Note that processing in Step S381, Step S382, and Step S38A is similar to processing in Step S321, Step S322, and Step S329 in
In addition,
In Step S383, the machinable-shape extraction unit 112 acquires an element Ej 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).
In Step S384, the machinable-shape extraction unit 112 acquires a leftmost end point PL and a rightmost end point PR belonging to the shape in the X axis direction from the element Ej.
In Step S385, from all straight-line elements, the machinable-shape extraction unit 112 searches for straight lines LL and LR 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 PL or point PR acquired in Step S384.
In Step S386, the machinable-shape extraction unit 112 determines whether the straight lines LL and LR are present. In a case where the straight lines LL and LR are present, the process proceeds to Step S387. In contrast, in a case where the straight lines LL and LR are not present, the process proceeds to Step S38A.
In Step S387, the machinable-shape extraction unit 112 determines whether there is a straight line LLR that joins the end point PSL, which has a low Y value and belongs to the straight line LL, with the end point PSR, which has a low Y value and belongs to the straight line LR. In a case where the straight line LLR is present, the process proceeds to Step S388. In contrast, in a case where the straight line LLR is not present, the process proceeds to Step S38A.
In Step S388, the machinable-shape extraction unit 112 determines whether there is no other element that passes through the end points PSL, PSR. In a case where there is no other element that passes through the end points PSL, PSR, the process proceeds to Step S389. In contrast, in a case where there is another element that passes through the end points PSL, PSR, the process proceeds to Step S38A.
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
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
In Step S3B7, the machinable-shape extraction unit 112 determines whether there is a straight line LLR that joins the end point PLL, which has a large Y value and belongs to the straight line LL, with the end point PLR, which has a large Y value and belongs to the straight line LR. 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 LLR is not present, the process proceeds to Step S3BA.
In Step S3B8, the machinable-shape extraction unit 112 determines whether there is no other element that passes through the end points PLL, PLR. In a case where there is no other element that passes through the end points PLL, PLR, the process proceeds to Step S3B9. In contrast, in a case where there is another element that passes through the end points PLL, PLR, the process proceeds to Step S3BA.
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
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
In Step S3E7, the machinable-shape extraction unit 112 determines whether the straight line Li is not parallel to the X axis and the Y axis. In a case where the straight line Li 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 Li is parallel to the X axis or the Y axis, the process proceeds to Step S3E9.
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
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.
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.
Description was given above regarding the first embodiment.
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.
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.
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.
Description is given below regarding the second embodiment.
As illustrated in
The machine tool 20 has equivalent functionality to that of the machine tool 20 according to the first embodiment.
As illustrated in
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.
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.
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.
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 “Gid” 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 “Gid” 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 “Gid” 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 “Gid” 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 “Gid” is “4”.
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.
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
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
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.
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.
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.
For example, in a case where the contouring outer wall rough machining “G1060” G code is selected by a user in
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.
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.
Next, with reference to
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.).
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.
In Step S′3, the display unit 13 which serves as a usable G code display unit displays (for example,
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,
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.
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.
In Step S′7, the display unit 13 which serves as a machinable-shape display unit displays (for example,
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.
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,
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.
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.
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.
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.
Description was given above regarding the second embodiment.
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.
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.
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.
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.
In addition, these programs may be distributed by being downloaded to the computer, which belongs to a user, via a network.
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.
To rephrase, the numerical control device according to the present disclosure can have various embodiments which have configurations such as the following.
(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.
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.
(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.
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.
(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.
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.
(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.
By virtue of this numerical control device 10A, an equivalent effect to that for (1) can be achieved.
(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.
As a result, the numerical control device 10A can achieve an equivalent effect to that for (2).
(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.
As a result, the numerical control device 10A can achieve an equivalent effect to that for (3).
Number | Date | Country | Kind |
---|---|---|---|
2020-178689 | Oct 2020 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2021/038714 | 10/20/2021 | WO |