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

文档序号:118958 发布日期:2021-10-19 浏览:41次 中文

阅读说明:本技术 机床、机床的加工程序编辑方法和用于机床的加工程序编辑的程序 (Machine tool, machining program editing method for machine tool, and program for machining program editing for machine tool ) 是由 松泽洋明 山本祐生 片山拓朗 木村守邦 于 2019-07-19 设计创作,主要内容包括:本发明提供机床、机床的加工程序编辑方法和用于机床的加工程序编辑的程序。机床的加工程序编辑方法取得能够安装于机床的刀具的刀具信息,排列显示程序编辑画面和至少一个辅助画面,所述程序编辑画面显示用于控制机床的加工程序的程序代码,所述至少一个辅助画面显示刀具的刀具信息和刀具的控制方法中的至少一个,在程序代码中指定新插入代码的插入部位,当在至少一个辅助画面中选择了刀具信息和控制方法中的至少一个的信息时,将与至少一个的信息对应的命令插入程序代码的插入部位。(The invention provides a machine tool, a machining program editing method for the machine tool, and a program for editing the machining program for the machine tool. A machining program editing method for a machine tool acquires tool information of a tool that can be attached to the machine tool, and arranges and displays a program editing screen that displays a program code for controlling a machining program for the machine tool and at least one auxiliary screen that displays at least one of the tool information of the tool and a control method of the tool, specifies an insertion location of a new insertion code in the program code, and inserts a command corresponding to the at least one piece of information into the insertion location of the program code when the at least one piece of information of the tool information and the control method is selected in the at least one auxiliary screen.)

1. A method for editing a machining program of a machine tool,

tool information of a tool attachable to a machine tool is acquired,

arranging and displaying a program editing screen displaying a program code for controlling a machining program of the machine tool and at least one auxiliary screen displaying at least one of the tool information of the tool and a control method of the tool,

an insertion site of a newly inserted code is specified in the program code,

when at least one of the tool information and the control method is selected in the at least one auxiliary screen, a command corresponding to the at least one of the information is inserted into the insertion portion of the program code.

2. The method for editing a machining program for a machine tool according to claim 1,

further displaying a display information selection screen for selecting information displayed on the at least one auxiliary screen from the tool information, the control method, and information other than the tool information and the control information,

displaying the display information selected in the display information selection screen on the at least one auxiliary screen.

3. The method for editing a machining program for a machine tool according to claim 2,

displaying a first auxiliary picture and a second auxiliary picture as the at least one auxiliary picture,

displaying a switching setting screen for designating either one of the first auxiliary screen and the second auxiliary screen,

and displaying the display information selected on the display information selection screen on an auxiliary screen designated on the switching setting screen.

4. The method for editing a machining program for a machine tool according to claim 2 or 3, wherein the other information includes at least one of a macro variable specified in the program code and a character set used in programming.

5. The method for editing a machining program for a machine tool according to any one of claims 1 to 4,

the control method comprises a G code and a custom code other than the G code,

and displaying the code of any one of the G code and the custom code on one of the at least one auxiliary screen.

6. The method for editing a machining program for a machine tool according to claim 5, wherein a key for inputting an EOB is further displayed on the one auxiliary screen.

7. The method for editing a machining program for a machine tool according to any one of claims 1 to 6, wherein the tool information includes at least one of a T number corresponding to the tool, a name of the tool, a size of the tool, and a parameter for compensating for an error in cutting.

8. The method for editing a machining program for a machine tool according to any one of claims 1 to 7,

the tool information includes first tool information associated with a T number in the program code, and second tool information associated with at least one of an H number and a D number in the program code,

displaying any one of the first tool information and the second tool information on one of the at least one auxiliary screen.

9. The method of editing a machining program of a machine tool according to claim 8, wherein the first tool information contains an accumulated wear amount accumulated due to use of the tool.

10. The method of editing a machining program for a machine tool according to claim 8 or 9, wherein an M06 command input button for inputting an M06 command into the program code is further displayed on the auxiliary screen on which the first tool information is displayed.

11. The method for editing a machining program for a machine tool according to any one of claims 8 to 10, wherein a T00 input button for inputting a T number, at which the tool is not specified, to the program code is further displayed on the auxiliary screen on which the first tool information is displayed.

12. The method for editing a machining program for a machine tool according to any one of claims 8 to 11,

the second tool information is any one of a parameter for tool length compensation, a parameter for tool radius compensation, and a parameter for nose radius compensation,

further displaying a reference number associated with the second tool information, an H number input button for inputting the reference number as an H number into the program code, and a D number input button for inputting the reference number as a D number into the program code on an auxiliary screen on which the second tool information is displayed,

inserting an H number including the reference number into the insertion portion in the program code when the H number input button is operated in a state where the reference number is designated on the auxiliary screen on which the second tool information is displayed,

when the D number input button is operated in a state where the reference number is designated on the auxiliary screen on which the second tool information is displayed, a D number including the reference number is inserted into the insertion portion in the program code.

13. The method for editing a machining program for a machine tool according to any one of claims 1 to 12, wherein the program editing screen and the at least one auxiliary screen are displayed on one display.

14. A machine tool, comprising:

a memory that stores tool information of a tool that can be attached to a machine tool;

at least one display that displays a program editing screen displaying a program code for controlling a machining program of the machine tool and at least one auxiliary screen displaying at least one of the tool information of the tool and a control method of the tool in an arrangement;

an interface for specifying an insertion site of a newly inserted code in the program code; and

and a processor configured to insert a command corresponding to at least one of the tool information and the control method into the insertion portion of the program code when the at least one auxiliary screen selects the at least one of the tool information and the control method.

15. A program for processing program editing of a machine tool, characterized by executing:

acquiring tool information of a tool that can be attached to a machine tool;

arranging and displaying a program editing screen displaying a program code for controlling a machining program of the machine tool and at least one auxiliary screen displaying at least one of the tool information of the tool and a control method of the tool;

designating an insertion site of a newly inserted code in the program code; and

when at least one of the tool information and the control method is selected in the at least one auxiliary screen, a command corresponding to the at least one of the information is inserted into the insertion portion of the program code.

Technical Field

The present invention relates to a machine tool, a machining program editing method for a machine tool, and a program for machining program editing for a machine tool.

Background

Patent document 1 discloses a machining program editing device that displays a program and an auxiliary screen in proximity to each other and reflects data of the auxiliary screen in the program by a touch operation. Patent document 2 discloses an NC (numerical control) program input device that displays a GUI (graphical user interface) screen on an auxiliary screen, on which a code of a program can be input, and that can insert a code selected on the GUI screen into the program code.

Patent document 1: japanese patent laid-open publication No. 2017-111516

Patent document 2: japanese patent application laid-open No. 2010-003187

Disclosure of Invention

The technical problem disclosed in the present application is to make it easy for a programmer to find a code necessary for editing a machining program of a machine tool.

A machining program editing method for a machine tool according to a first aspect of the present disclosure acquires tool information of a tool that can be attached to the machine tool, and displays a program editing screen and at least one auxiliary screen in an array, wherein the program editing screen displays a program code for controlling a machining program for the machine tool, the at least one auxiliary screen displays at least one of the tool information of the tool and a control method of the tool, an insertion location of a new insertion code is specified in the program code, and when the information of at least one of the tool information and the control method is selected in the at least one auxiliary screen, a command corresponding to the at least one information is inserted into the insertion location of the program code.

According to a second aspect of the present disclosure, in addition to the machining program editing method of the machine tool of the first aspect, a display information selection screen for selecting information to be displayed on at least one auxiliary screen from among tool information, a control method, and other information than the tool information and the control information is displayed, and the display information selected on the display information selection screen is displayed on the at least one auxiliary screen.

According to a third aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to the first or second aspect, the first auxiliary screen and the second auxiliary screen are displayed as at least one auxiliary screen, a switching setting screen for specifying either one of the first auxiliary screen and the second auxiliary screen is displayed, and display information selected on the display information selection screen is displayed on the auxiliary screen specified on the switching setting screen.

According to a fourth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool according to the second or third aspect, the other information includes at least one of a macro variable defined in a program code and a character set used in programming.

According to a fifth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool according to the fourth aspect, the character set is configured to include at least one of a function code, an external output command, and an operator that define a mathematical function.

According to a sixth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool according to the fourth or fifth aspect, an input button for displaying a symbol used in combination with a character set is displayed on an auxiliary screen on which the character set is displayed.

According to a seventh aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to any one of the first to sixth aspects, the control method includes a G code and a custom code other than the G code, and the machining program editing method displays a code of any one of the G code and the custom code on one of the at least one auxiliary screen.

According to an eighth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool according to the seventh aspect, the control content of any one of the codes is displayed on one auxiliary screen.

According to a ninth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool according to the seventh or eighth aspect, a key for inputting an EOB is displayed on the single auxiliary screen.

According to a tenth aspect of the present disclosure, in the method for editing a machining program for a machine tool according to any one of the first to ninth aspects, the tool information includes at least one of a T number corresponding to the tool, a name of the tool, a size of the tool, and a parameter for compensating for an error in the cutting process.

According to an eleventh aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to the tenth aspect, the tool information further includes an accumulated wear amount accumulated due to use of a tool.

According to a twelfth aspect of the present disclosure, in the machining program editing method for a machine tool according to the tenth or eleventh aspect, the parameter configured to compensate for the error in the cutting process includes at least one of a parameter for performing tool length compensation, a parameter for performing tool radius compensation, and a parameter for performing cutting edge radius compensation.

According to a thirteenth aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to any one of the first to twelfth aspects, the tool information includes first tool information associated with the T number in the program code and second tool information associated with at least one of the H number and the D number in the program code. The machining program editing method displays either one of the first tool information and the second tool information on one of the at least one auxiliary screen.

According to a fourteenth aspect of the present disclosure, in addition to the method for editing a machining program for a machine tool of the thirteenth aspect, the first tool information is configured to include an accumulated wear amount accumulated due to use of a tool.

According to a fifteenth aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to the thirteenth or fourteenth aspect, an M06 command input button for inputting an M06 command into a program code is displayed on the auxiliary screen on which the first tool information is displayed.

According to a sixteenth aspect of the present disclosure, in addition to the machining program editing method for a machine tool according to any one of the thirteenth to fifteenth aspects, a T00 input button for inputting a T number of an unspecified tool to a program code is displayed on the auxiliary screen on which the first tool information is displayed.

According to a seventeenth aspect of the present disclosure, in the method for editing a machining program for a machine tool according to any one of the thirteenth to sixteenth aspects, the second tool information is configured to be any one of a parameter for performing tool length compensation, a parameter for performing tool radius compensation, and a parameter for performing cutting edge radius compensation. The machining program editing method further displays a reference number associated with the second tool information, an H number input button for inputting the reference number as an H number into the program code, and a D number input button for inputting the reference number as a D number into the program code on the auxiliary screen on which the second tool information is displayed, and inserts the H number including the reference number into an insertion portion in the program code when the H number input button is operated in a state in which the reference number is designated in the auxiliary screen on which the second tool information is displayed, and inserts the D number including the reference number into the insertion portion in the program code when the D number input button is operated in a state in which the reference number is designated in the auxiliary screen on which the second tool information is displayed.

According to an eighteenth aspect of the present disclosure, in the machining program editing method for a machine tool according to any one of the first to seventeenth aspects, the program editing screen and the at least one auxiliary screen are displayed on one display.

A nineteenth aspect of the present disclosure is a machine tool including: a memory for storing tool information of a tool that can be attached to a machine tool; at least one display which displays a program editing screen and at least one auxiliary screen in an arrangement, the program editing screen displaying a program code for controlling a machining program of a machine tool, the at least one auxiliary screen displaying at least one of tool information of a tool and a control method of the tool; an interface for specifying an insertion site of a newly inserted code in the program code; and a processor for inserting a command corresponding to at least one of the tool information and the control method into an insertion portion of the program code when the at least one of the tool information and the control method information is selected in the at least one auxiliary screen.

According to a twentieth aspect of the present disclosure, in addition to the machine tool of the nineteenth aspect, the display is configured to display a display information selection screen for selecting information to be displayed on the at least one auxiliary screen from among the tool information, the control method, and information other than the tool information and the control information, and to display the display information selected on the display information selection screen on the at least one auxiliary screen.

According to a twenty-first aspect of the present disclosure, in the machine tool of the nineteenth or twentieth aspect, the display is configured to display the first auxiliary screen and the second auxiliary screen as at least one auxiliary screen, to display a switching setting screen for designating either one of the first auxiliary screen and the second auxiliary screen, and to display the display information selected in the display information selection screen on the auxiliary screen designated in the switching setting screen.

According to a twenty-second aspect of the present disclosure, in addition to the machine tool according to the twentieth or twenty-first aspect, the other information includes at least one of a macro variable specified in the program code and a character set used in the programming.

According to a twenty-third aspect of the present disclosure, in the machine tool according to the twenty-second aspect, the character set includes at least one of a function code, an external output command, and an operator, which define a mathematical function.

According to a twenty-fourth aspect of the present disclosure, in addition to the machine tool of the twenty-second or twenty-third aspect, the display is configured to display an input button for displaying a symbol used in combination with the character set on the auxiliary screen on which the character set is displayed.

According to a twenty-fifth aspect of the present disclosure, in addition to the machine tool according to any one of the nineteenth to twenty-fourth aspects, the control method includes a G code and a custom code other than the G code, and the machine tool is configured such that the display displays the code of any one of the G code and the custom code on one of the at least one auxiliary screen.

According to a twenty-sixth aspect of the present disclosure, in addition to the machine tool of the twenty-fifth aspect, the display is configured to display the control content of the code of any one of the sub-screens.

According to a twenty-seventh aspect of the present disclosure, in the machine tool according to the twenty-fifth or twenty-sixth aspect, the display is configured to further display a key for inputting the EOB on the single auxiliary screen.

According to a twenty-eighth aspect of the present disclosure, in the machine tool according to any one of the nineteenth aspect to the twenty-seventh aspect, the tool information includes at least one of a T number corresponding to the tool, a name of the tool, a size of the tool, and a parameter for compensating for an error in the cutting process.

According to a twenty-ninth aspect of the present disclosure, in the machine tool of the twenty-eighth aspect, the tool information further includes an accumulated wear amount accumulated due to use of the tool.

According to a thirtieth aspect of the present disclosure, in the machine tool according to the twenty-eighth or twenty-ninth aspect, the parameter configured to compensate for the error in the cutting process includes at least one of a parameter for compensating for the tool length, a parameter for compensating for the tool radius, and a parameter for compensating for the cutting edge radius.

According to a thirty-first aspect of the present disclosure, in addition to the machine tool according to any one of the nineteenth to thirtieth aspects, the tool information includes first tool information associated with a T number in the program code and second tool information associated with at least one of an H number and a D number in the program code. The machine tool is configured to display one of the first tool information and the second tool information on one of the at least one auxiliary screen.

According to a thirty-second aspect of the present disclosure, in addition to the machine tool of the thirty-first aspect, the first tool information includes an accumulated wear amount accumulated due to use of the tool.

According to a thirty-third aspect of the present disclosure, in addition to the machine tool of the thirty-first or thirty-second aspect, the display is configured to display an M06 command input button for inputting an M06 command into the program code on the auxiliary screen on which the first tool information is displayed.

According to a thirty-fourth aspect of the present disclosure, in addition to the machine tool according to any one of the thirty-first to thirty-third aspects, the display is configured such that the T00 input buttons for inputting the T number of the unspecified tool into the program code are further displayed on the auxiliary screen on which the first tool information is displayed.

According to a thirty-fifth aspect of the present disclosure, in the machine tool according to any one of the thirty-first to thirty-fourth aspects, the second tool information is configured to be any one of a parameter for performing tool length compensation, a parameter for performing tool radius compensation, and a parameter for performing cutting edge radius compensation. The display further displays a reference number associated with the second tool information, an H number input button for inputting the reference number as an H number into the program code, and a D number input button for inputting the reference number as a D number into the program code on the auxiliary screen displaying the second tool information, and the processor is configured to insert the H number including the reference number into an insertion portion in the program code when the H number input button is operated in a state where the reference number is designated in the auxiliary screen displaying the second tool information, and insert the D number including the reference number into the insertion portion in the program code when the D number input button is operated in a state where the reference number is designated in the auxiliary screen displaying the second tool information.

According to a thirty-sixth aspect of the present disclosure, in addition to the machine tool according to any one of the nineteenth aspect to the thirty-fifth aspect, the program editing screen and the at least one auxiliary screen are configured to be displayed on the same display.

A program for machine tool machining program editing according to a seventeenth aspect of the present disclosure executes: acquiring tool information of a tool that can be attached to a machine tool; arranging and displaying a program editing screen and at least one auxiliary screen, wherein the program editing screen displays a program code for controlling a machining program of a machine tool, and the at least one auxiliary screen displays at least one of tool information of a tool and a control method of the tool; specifying an insertion site of a newly inserted code in the program code; and inserting a command corresponding to the at least one piece of information into an insertion portion of the program code when the at least one piece of information of the tool information and the control method is selected in the at least one auxiliary screen.

According to a thirty-eighth aspect of the present disclosure, in addition to the program for machine tool machining program editing of the thirty-seventh aspect, the following processing is executed: displaying a display information selection screen for selecting information displayed on the at least one auxiliary screen from the tool information, the control method, and information other than the tool information and the control information; and displaying the display information selected in the display information selection screen on the at least one auxiliary screen.

According to a thirty-ninth aspect of the present disclosure, in addition to the program for machine tool machining program editing of the thirty-seventh or thirty-eighteenth aspect, the following processing is executed: displaying the first auxiliary picture and the second auxiliary picture as at least one auxiliary picture; displaying a switching setting screen for designating any one of the first auxiliary screen and the second auxiliary screen; and displaying the display information selected in the display information selection screen on the auxiliary screen specified in the switching setting screen.

According to a fortieth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool of the thirty-eighth aspect or the thirty-ninth aspect, the program is configured such that other information includes at least one of a macro variable specified in a program code and a character set used in programming.

According to a fourteenth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool according to the fortieth aspect, the character set is configured to include at least one of a function code defining a mathematical function, an external output command, and an operator.

According to a forty-second aspect of the present disclosure, in addition to the program for machine tool machining program editing of the forty-first or forty-first aspect, the following processing is executed: an input button for a symbol used in combination with the character set is also displayed on the auxiliary screen on which the character set is displayed.

According to a fourteenth aspect of the present disclosure, in addition to the program for machine tool machining program editing according to any one of the thirty-seventh to forty-second aspects, the control method includes a G code and a custom code other than the G code, and the program for machine tool machining program editing executes: and displaying the code of any one of the G code and the custom code on one auxiliary screen of the at least one auxiliary screen.

According to a fourteenth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool of the fourteenth aspect, a process of displaying a control content of one of the codes on one auxiliary screen is executed.

According to a forty-fifth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool of the forty-third or forty-fourth aspect, a process of displaying a key for inputting an EOB on one auxiliary screen is executed.

According to a sixteenth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool according to any one of the thirty-seventh to forty-fifth aspects, the tool information includes at least one of a T number corresponding to the tool, a name of the tool, a size of the tool, and a parameter for compensating for an error in cutting.

According to a seventeenth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool of the forty-sixth aspect, the tool information further includes a cumulative wear amount accumulated due to use of the tool.

According to a forty-eighth aspect of the present disclosure, in addition to the program for editing a machining program for a machine tool of the forty-sixth or seventeenth aspect, the parameter for compensating for the error in the cutting process includes at least one of a parameter for compensating for the tool length, a parameter for compensating for the tool radius, and a parameter for compensating for the cutting edge radius.

According to a forty-ninth aspect of the present disclosure, in addition to the program for machine tool machining program editing of any one of the thirty-seventh to forty-eighth aspects, the tool information includes first tool information associated with a T number in the program code and second tool information associated with at least one of an H number and a D number in the program code. The program for processing program editing executes the following processing: and displaying any one of the first tool information and the second tool information on one of the at least one auxiliary screen.

According to a fifty-fifth aspect of the present disclosure, in addition to the program for machine tool machining program editing of the forty-ninth aspect, the first tool information includes an accumulated wear amount accumulated due to use of the tool.

According to a fifty-first aspect of the present disclosure, in addition to the program for machine tool machining program editing of the forty-ninth or fifty-first aspect, the following processing is executed: an M06 command input button for inputting an M06 command into the program code is also displayed on the auxiliary screen displaying the first tool information.

According to a fifty-second aspect of the present disclosure, in addition to the program for machine tool machining program editing of any one of the forty-ninth to fifty-first aspects, the following processing is executed: a T00 input button for inputting a T number of an unspecified tool into the program code is also displayed on the auxiliary screen on which the first tool information is displayed.

According to a fifteenth aspect of the present disclosure, in addition to the program for editing a machining program of a machine tool according to any one of the forty-ninth aspect to the fifty-second aspect, the second tool information is configured to be any one of a parameter for performing tool length compensation, a parameter for performing tool radius compensation, and a parameter for performing cutting edge radius compensation. The program for processing program editing executes the following processing: further displaying, on the auxiliary screen on which the second tool information is displayed, a reference number associated with the second tool information, an H-number input button for inputting the reference number as an H-number into the program code, and a D-number input button for inputting the reference number as a D-number into the program code; inserting an H number including a reference number into an insertion portion in the program code when the H number input button is operated in a state where the reference number is designated in the auxiliary screen on which the second tool information is displayed; and inserting a D number including the reference number into an insertion portion in the program code when the D number input button is operated in a state where the reference number is designated in the auxiliary screen displaying the second tool information.

According to a fifty-fourth aspect of the present disclosure, a process of displaying the program editing screen and at least one auxiliary screen on one display is executed on the basis of the program for machine tool machining program editing of any one of the thirty-seventh to fifty-third aspects.

According to the machining program editing method for a machine tool of the first aspect, the machine tool of the nineteenth aspect, and the program for editing a machining program for a machine tool of the thirty-seventh aspect, reference and insertion of tool information of a tool and a control method of the tool, which are necessary for editing a program code of the machining program, can be easily performed. As a result, programming of the machining program is made efficient.

According to the second, twentieth, and thirty-eighth aspects, a large amount of information such as tool information, a control method, and information other than the tool information and the control information can be displayed on at least one auxiliary screen.

According to the third, twenty-first, and thirty-ninth aspects, a large amount of information such as the tool information, the control method, and information other than the tool information and the control information can be displayed in a switchable manner on at least one auxiliary screen.

According to the fourth, twenty-second, and fortieth aspects, the macro variable and the character set used for programming are frequently used for programming, and therefore, programming of the machining program is further efficiently performed.

According to the fifth, thirteenth, and eleventh aspects, the function code, the external output instruction, and the operator are used particularly frequently in the machining program of the machine tool even in the character set, thereby further enhancing the efficiency of the programming of the machining program.

According to the sixth, twenty-fourth, and forty-second aspects, since the input buttons for the symbols used in combination with the character set are also displayed, programming of the machining program is further made efficient.

According to the seventh, twenty-fifth, and forty-third aspects, the G code frequently used for programming the machining program and the custom code other than the G code are independently displayed on the auxiliary screen, and therefore, the programming of the machining program is further efficiently performed.

According to the eighth, twenty-sixth, and forty-fourth aspects, the programmer can know the control content of the G code and the custom code without referring to a manual, and therefore programming of the machining program is further more efficient.

According to the ninth aspect, the twenty-seventh aspect, and the forty-fifth aspect, since the frequency of inserting the line feed ("; (EOB)) before and after the G code and the custom code is high, and the EOB can be input from the one auxiliary screen, it is not necessary to display a separate screen keyboard for inputting the EOB particularly in the display with a touch panel of the machine tool. As a result, programming in the machine tool is particularly efficient.

According to the tenth, twenty-eighth, and forty-sixth aspects, the name of the tool, the size of the tool, and parameters for compensating for errors in the cutting process are important information in selecting the T number of the input program code. Therefore, by including such information as the tool information, programming of the machining program is further made efficient.

According to the eleventh aspect, the twenty-ninth aspect, and the forty-seventeenth aspect, by checking the accumulated wear amount, the programmer can grasp whether the tool is used properly and the time of replacement. Therefore, it is easy to select a tool suitable for the machining program.

According to the twelfth, thirty, and forty-eighth aspects, the tool length compensation, the tool radius compensation, and the nose radius compensation are frequently used methods for compensating for errors in cutting. Therefore, programming of the machining program is further efficiently performed.

According to the thirteenth, thirty-first, and forty-ninth aspects, the first tool information and the second tool information may include a common parameter for compensating for an error in the cutting process, and if they are managed on the same auxiliary screen, the programmer may be confused. Therefore, by being able to manage the first tool information and the second tool information on different auxiliary screens, the management of the parameter can be easily performed.

In the fourteenth aspect, the thirty-second aspect, and the fifty-fourth aspect, the cumulative wear amount is used in the selection of the tool, that is, the selection of the T number. Therefore, the convenience of the programmer is further improved by displaying the first tool information on the auxiliary screen.

According to the fifteenth, thirteenth, and fiftieth aspects, since the M06 command has high correlation with the T code, the M06 command can be directly input from the auxiliary screen on which the first tool information is displayed, and the convenience of programming is high. Therefore, by displaying the M06 command input button on the auxiliary screen displaying the first tool information, programming of the machining program is further made efficient.

According to the sixteenth, thirty-fourth, and fifty-second modes, the frequency with which the T number of the unspecified tool is used in combination with the M06 command is high. Therefore, by displaying the T00 input button on the same screen as the M06 command input button, programming of the machining program is further facilitated.

According to the seventeenth, thirty-fifth, and fifty-third aspects, since parameters relating to the D number and the H number are managed on one sub-screen, the number of sub-screens can be reduced. Further, a D number input button and an H number input button are displayed on the auxiliary screen on which the second tool information is displayed, and the reference number can be converted into a D number and an H number by operating these buttons, and the program code can be inserted. This allows the programmer to easily input the selected parameters into the program code.

In the eighteenth, thirty-sixth, and fifty-fourth aspects, the program editing screen and the at least one auxiliary screen are closely related in editing the machining program, and therefore preferably are not displayed on different displays. By displaying the program editing screen and at least one auxiliary screen on one display, programming of the machining program can be further made efficient.

According to the technique disclosed in the present application, for example, a programmer can easily find a code necessary for editing a machining program of a machine tool.

Drawings

Fig. 1 is a diagram showing a schematic configuration of a system including a machine tool according to an embodiment and a computer for editing a machining program of the machine tool.

Fig. 2 is a hardware block diagram of the control device.

Fig. 3 is a hardware block diagram of a computer.

Fig. 4 is an example of a display screen of the machining program editing program according to the embodiment.

Fig. 5 shows an example of a G code list screen.

Fig. 6 shows another example of the G code list screen.

Fig. 7 shows an example of an M-code list screen.

Fig. 8 shows another example of the M-code list screen.

Fig. 9 shows an example of a tool data screen.

Fig. 10 shows another example of the tool data screen.

Fig. 11 is a diagram for explaining the concept of tool length offset compensation.

Fig. 12 is a diagram for explaining the concept of tool length offset compensation.

Fig. 13 is a diagram for explaining the concept of tool radius compensation.

Fig. 14 is a diagram showing a tool radius offset in the milling tool.

Fig. 15 is a diagram for explaining the concept of nose radius compensation.

Fig. 16 is a diagram for explaining the concept of the cutting edge direction.

Fig. 17 shows an example of a tool offset screen.

Fig. 18 shows another example of the tool offset screen.

Fig. 19 shows an example of a macro variable screen.

Fig. 20 shows an example of a macro input screen.

Fig. 21 shows a modification of the tool data screen.

Fig. 22 is a flowchart showing the processing of the machining program editing program.

Detailed Description

The present invention will be specifically described below with reference to the drawings showing embodiments of the present invention. In the drawings, the same reference numerals denote corresponding or substantially identical structures.

Fig. 1 shows a schematic configuration of a system 10 according to an embodiment of the present invention. The system 10 includes a machine tool 100, a computer 200 for editing a machining program of the machine tool, and a network 290 connecting the machine tool 100 and the computer 200. The network 290 is, for example, a LAN (local area network) provided in a factory. The illustrated network 290 is a wired network, but the network 290 may also be a wireless network. In addition, the X axis shown in fig. 1 is along the height direction of machine tool 100, the Y axis is along the depth direction of machine tool 100, and the Z axis is along the width direction of machine tool 100. In the present embodiment, an axis parallel to the rotation axis a3 of the workpiece spindle 122 holding the workpiece is defined as a Z axis in accordance with JIS standard. In the present embodiment, this coordinate system is referred to as a workpiece coordinate system.

Machine tool 100 performs machining (machining) on workpiece W1. The cutting process includes at least one of turning (turning) and milling (milling). The cutting process may further include drilling. As shown in fig. 1, machine tool 100 includes a column 110, a workpiece headstock 120, and a tool changer 130. The column 110, the workpiece headstock 120, and the tool changer 130 are disposed on a base 140.

The column 110 is movable in the Y-axis direction and the Z-axis direction on the base 140. A tool headstock 112 is attached to the column 110. The tool headstock 112 is movable in the X-axis direction with respect to the column 110. The tool headstock 112 is rotatable relative to the column 110 about a rotation axis a1 along the Y-axis direction. A tool spindle 114 is attached to the tool headstock 112. The tool spindle 114 is rotatable relative to the tool headstock 112 about an axis of rotation a 2. The axis of rotation a2 is orthogonal to the axis of rotation a 1. A first tool T1 serving as a cutting tool (machining tool) is held by the tool spindle 114. The concept of cutting tools includes turning tools and milling tools. In the present embodiment, a drill for drilling processing is regarded as one of the milling tools.

In the present embodiment, the intersection of the axis a1 and the axis a2 is referred to as a machine tool origin Om, and a coordinate system in which the rotation axis a2 is a Zm axis, the rotation axis a1 is a Ym axis, and axes perpendicular to the Zm axis and the Ym axis are Xm axes is referred to as a machine tool coordinate system. The direction from the origin Om of the machine tool toward the tip of the first cutter T1 is set as the positive direction of the Zm axis. When the X-axis of the workpiece coordinate system is rotated around the Y-axis so that the positive direction of the Z-axis of the workpiece coordinate system is oriented in the same direction as the positive direction of the Zm-axis of the machine tool coordinate system, the positive direction of the X-axis of the workpiece coordinate system at this time is set as the positive direction of the Xm-axis of the machine tool coordinate system. The positive direction of the Y axis of the workpiece coordinate system is set as the positive direction of the Ym axis of the machine tool coordinate system.

The workpiece spindle head 120 includes a workpiece spindle 122. Workpiece spindle 122 is rotatable about an axis of rotation a 3. The axis of rotation a3 is along the Z-axis direction. A workpiece W1 is attached to the workpiece spindle 122.

Tool changer 130 changes the cutting tool attached to tool spindle 114. Specifically, the tool changer 130 includes a tool changing arm 132 and a stocker 134. The tool changer arm 132 is rotatable about an axis along the Z-axis direction. The tool changer arm 132 is movable in the X-axis direction relative to the stocker portion 134. The stocker portion 134 houses a plurality of cutting tools Ts in an array in the X-axis direction. The plurality of cutting tools Ts accommodated in the stocker portion 134 includes a second tool T2 that can be replaced with the first tool T1.

The replacement of the cutting tool by the tool changer 130 is performed as follows. The column 110 approaches the tool changer 130 in the Z-axis direction in a state where the rotation axis a2 is along the Z-axis direction. The tool changer arm 132 has a first jaw at one end in the extending direction thereof and a second jaw at the other end in the extending direction thereof. To remove first tool T1 attached to tool spindle 114, first jaw grips first tool T1 attached to tool spindle 114. In more detail, if the tool changer arm 132 is rotated about an axis along the Z-axis direction by a predetermined rotation angle, the first jaw grips the first tool T1 while the second jaw grips the second tool T2 received in the stocker portion 134. If the column 110 is moved away from the tool changer 130 in the Z-axis direction, the first tool T1 is removed from the tool spindle 114. To attach second tool T2 to tool spindle 114, tool changer arm 132 rotates about an axis along the Z-axis direction, and moves second tool T2 gripped by the second gripper to the tool attachment position. If column 110 is proximate to tool changer 130 in the Z-axis direction, a second tool T2 is mounted to tool spindle 114.

In order to control the rotation about the respective rotation axes, and the movement in the respective axial directions, the machine tool 100 includes a control device 150. The control device 150 is connected to the base 140. Here, the control device 150 may be connected to another part of the machine tool 100, and may be provided independently of the base 140 as long as it can transmit a control signal and receive a detection result.

Fig. 2 is a hardware block diagram of the control device 150. As shown in fig. 2, the control device 150 includes a processor 151, a memory 152, a communication circuit 153, and a display with a touch panel 154. The processor 151, the memory 152, the communication circuit 153, and the display with touch panel 154 are connected to each other via a bus 155. The memory 152 stores programs and data necessary for processing. The processor 151 reads out a program stored in the memory 152 and executes the read-out program. Thereby, the respective functions of the control device 150 are realized. The functions performed by the control device 150 include controlling the execution of the turning process. Specifically, the memory 152 stores a machining program 157. The machining program 157 contains control commands for performing turning. The machining program 157 is generally edited by the computer 200, transmitted to the control device 150 via the network 290, and stored in the memory 152. The communication circuit 153 has the following functions for communicating with the computer 200 via the network 290: a conversion function from a communication packet to data, a conversion function from data to a communication packet, and a communication packet transmitting and receiving function.

In the present embodiment, the memory 152 stores tool information 158 of tools Ta that can be attached to the machine tool 100 (for example, the first tool T1 and all the cutting tools that can be attached to the machine tool 100, such as the second tool T2, among the plurality of cutting tools Ts stored in the stocker portion 134). The tool information 158 is transmitted by the communication circuit 153 to the computer 200 via the network 290. The tool information 158 is read from the memory 152 when a machining program editor 159, which will be described later, is executed. The details of the tool information 158 are described later.

The memory 152 may also store a machining program editing program 159 for editing the machining program 157. Normally, the machining program editing program 159 is executed when a part of the machining program 157 is corrected. However, the machining program 157 may be created from the first time by executing the machining program editing program 159.

The display 154 with a touch panel may be a set of a plurality of displays instead of one display 154. Note that the display of the display with a touch panel 154 is an example of a display, and the touch panel is an example of an interface. The display 154 with a touch panel may be replaced with a combination of a display without a touch panel and an input device such as a button, a switch, a joystick, or a pointer device provided around the display. In this case, the input device is an example of an interface.

Fig. 3 is a hardware block diagram of the computer 200. As shown in FIG. 3, computer 200 includes processor 210, memory 220, communications circuitry 230, display 240, and input interface 250. The processor 210, memory 220, communication circuitry 230, display 240, and input interface 250 are interconnected via a bus 260. The input interface 250 is an example of an interface, and is a pointing device such as a keyboard or a mouse. In the computer 200, the display 240 and the input interface 250 may be integrated, as in a tablet computer having a display with a touch panel. Further, the display 240 may be a combination of a plurality of displays.

The memory 220 stores a machining program editing program 221 for editing the machining program 157, and programs such as data and an operating system necessary for executing the program. The machining program editor 221 has substantially the same function as the machining program editor 159. However, the screen display method of the machining program editor 221 may be partially different from the screen display method of the machining program editor 159. The memory 220 may further store the machining program 157 edited by the machining program editor 221. The processor 210 reads out the program stored in the memory 220 and executes the read-out program. The communication circuit 230 has the following functions for communicating with the control device 150 via the network 290: a conversion function from a communication packet to data, a conversion function from data to a communication packet, and a communication packet transmitting and receiving function.

The computer 200 can transmit the machining program 157 edited by the machining program editing program 221 to the control device 150 using the communication circuit 230. Further, if the machining program editing program 221 is executed by the computer 200, the above-described tool information 158 can be acquired from the control device 150 by the communication circuit 230, and the tool information 158 can be stored in the memory 220.

Next, the contents of the machining program 157 will be described. In the present embodiment, the machining program 157 is described by a program code for numerically controlling the machine tool 100. Further, the program code is constituted by a character string constituted by letters and numerical values, and for example, the code shown below is prepared.

G code: code for specifying preparatory function (e.g. moving mode of tool) for machining

And (3) M code: code for assisting G code

And T number: specifying cutting tool number

And S number: number designating spindle speed of machine tool or the like

And F number: number specifying feed speed of turning tool or the like

X, Y, Z, U, V, W, A, B, C: symbols designating coordinate axes

N + value: a serial number. A jump location within the program is specified.

The G code is standardized to ISO 6983. The M-code contains a custom code that is uniquely determined by the machine tool manufacturer. The M-code may also further comprise a standardized code.

< display Screen as a whole >

Fig. 4 shows an example of a display screen (display screen)30 of the machining program editing program 221 according to the embodiment. The display screen 30 is displayed on the display 240. The display screen of the machining program editing program 159 displayed on the touch-panel display 154 of the control device 150 is substantially the same as the display screen 30, except for the exceptions described below. The display screen 30 includes a program editing window 300 and at least one auxiliary window 310. Preferably, the program editing screen 300 and the at least one auxiliary screen 310 are displayed on one display 240/154.

A program code 302 for controlling the machining program 157 of the machine tool 100 is displayed on the program editing screen 300. In fig. 4, a line number 308 indicating the position of the program code 302 is also displayed on the program editing screen 300, but the line number 308 may be omitted. An insertion site for inserting the G code can be specified in the program editing screen 300 by a tap (tap) on the touch panel of the display with touch panel 154, a click (click) by a mouse in the input interface 250, or a pointer movement by a keyboard in the input interface 250. Therefore, the touch panel of the display with touch panel 154, the pointer device of the input interface 250, is an interface for specifying the insertion place of the newly inserted code in the program code 302.

Information referred to by the programmer when editing the program code 302 is displayed on at least one of the auxiliary screens 310. In fig. 4, a first auxiliary screen 312 and a second auxiliary screen 314 are displayed as at least one auxiliary screen 310. However, the present invention is not limited to the example of fig. 4, and one auxiliary screen or three or more auxiliary screens may be displayed as at least one auxiliary screen 310. Referring to fig. 4, a program editing screen 300 and at least one auxiliary screen 310 are arranged and displayed. In the example of fig. 4, the program editing screen 300 is displayed on the left side of the display screen 30, and the first auxiliary screen 312 and the second auxiliary screen 314 are displayed on the right side of the display screen 30. However, the display forms of the program editing screen 300 and the at least one auxiliary screen 310 are not limited to this, and the positions of the program editing screen 300 and the at least one auxiliary screen 310 may be reversed. Further, the program editing screen 300 and the at least one auxiliary screen 310 may be displayed in an up-down or inclined arrangement.

In addition, at least one auxiliary screen 310 (e.g., the first auxiliary screen 312 and the second auxiliary screen 314) may not be fixedly displayed on one side of the program editing screen 300. For example, the program editing screen 300 and the at least one auxiliary screen 310 may be displayed in such a manner that a part of the at least one auxiliary screen 310 (for example, the first auxiliary screen 312) and the remaining part of the at least one auxiliary screen 310 (for example, the second auxiliary screen 314) sandwich the program editing screen 300.

Further, the program editing screen 300 and the at least one auxiliary screen 310 may not be displayed in a single direction. For example, the first auxiliary screen 312 may be displayed on the right side of the program editing screen 300, the second auxiliary screen 314 may be displayed on the lower side of the program editing screen 300, and at least one auxiliary screen 310 may be displayed so as to surround the program editing screen 300. That is, at least one auxiliary screen 310 may be displayed in alignment with the program editing screen 300. For the convenience of the programmer, it is preferable that at least one auxiliary screen 310 is displayed in the vicinity of the program editing screen 300. In fig. 4, at least one auxiliary screen 310 is displayed so as not to overlap with the program editing screen 300, but in fig. 4, at least one auxiliary screen 310 may partially overlap with the program editing screen 300.

In the present embodiment, the display information displayed on at least one auxiliary screen 310 is at least one of tool information of a tool Ta that can be attached to machine tool 100 and a method of controlling the tool Ta. That is, the display 240(154) displays a program editing screen 300 and at least one auxiliary screen 310 in a row (side by side), the program editing screen 300 displaying a program code 302 for controlling the machining program 157 of the machine tool 100, and the at least one auxiliary screen 310 displaying at least one of tool information of a tool Ta that can be attached to the machine tool 100 and a control method of the tool Ta. When the display 240(154) is configured by a plurality of displays, the program editing screen 300 may be displayed on one of the displays arranged in line, and at least one auxiliary screen 310 may be displayed on the other. The tool information includes at least one of a T number (T number) corresponding to the tool Ta, a name of the tool Ta, a dimension (dimension) of the tool Ta, and a parameter for compensating for an error in the cutting process, for example. The control method of the tool Ta includes the G code and the M code described above. That is, the control method includes a G code and a custom code other than the G code. Therefore, the display 240(154) displays the code of any one of the G code and the custom code other than the G code on one of the at least one auxiliary screen 310.

In fig. 4, a Tool Data window (Tool Data window)340 mainly for inputting a T number corresponding to a cutting Tool to be used is displayed as the first auxiliary screen 312, and a G Code List window (G-Code List window)320 mainly for inputting a G Code is displayed as the second auxiliary screen 314. However, in the example of fig. 4, the G code list screen 320 may be displayed on the first auxiliary screen 312, and the tool data screen 340 may be displayed as the second auxiliary screen 314.

Note that the screens displayed as the first auxiliary screen 312 and the second auxiliary screen 314 are not limited to these screens. As described later, the first auxiliary screen 312 and the second auxiliary screen 314 may display, instead of each other, any one of a Tool Offset screen (Tool Offset window)360 for inputting a positional Offset amount of a cutting edge position of the cutting Tool with respect to a reference point of the Tool spindle 114, an M-Code List screen (M-Code List window)330 for inputting an M Code, a Macro variable screen (Macro Variables window)380 for inputting a Macro variable into a program, and a Macro Input screen (Macro Input window)390 for simply inputting a character set (character set) used in the program. That is, the information displayed on at least one auxiliary screen 310 may include the above-described tool information of the tool Ta and information other than the control method of the tool Ta. The other information includes at least one of macro variables specified in the program code 302 and character sets utilized in the programming. The character set contains at least one of a function code specifying a mathematical function (mathematical function), an external output command (external output command), and an operator (operator).

The display screen 30 further includes a display information selection screen (display information selection window)316 for selecting information (hereinafter, this information is referred to as display information) displayed on the at least one auxiliary screen 310 from the above-described tool information, control method, and other information. That is, the display 240(154) also displays a display information selection screen 316 for selecting information displayed on the at least one auxiliary screen 310 from among the above-described tool information, control method, and other information. In fig. 4, a display information selection screen 316 is displayed between the program editing screen 300 and at least one auxiliary screen 310. However, the display position of the display information selection screen 316 is not limited to this. For example, in fig. 4, the display information selection screen 316 may be displayed on the lower side or the left side of the program editing screen 300. However, from the viewpoint of visibility of the programmer, it is preferable that the display information selection screen 316 be displayed between the program editing screen 300 and at least one of the auxiliary screens 310.

In fig. 4, on the display information selection screen 316, character strings corresponding to the tool data screen 340, the tool offset screen 360, the macro variable screen 380, the macro input screen 390, the G code list screen 320, and the M code list screen 330 are displayed in selection frames. The programmer selects the information displayed on the at least one auxiliary screen 310 by tapping or clicking on one of these strings. Alternatively, another input means such as a radio button or a check box may be displayed on the display information selection screen 316 instead of the selection box. In the example of fig. 4, a character string of "tool data" indicating the tool data screen is selected. Below the display information selection screen 316, a switching setting screen 318 for designating either one of the first auxiliary screen 312 and the second auxiliary screen 314 is displayed. That is, the display 240(154) displays a switching setting screen 318 for designating either one of the first auxiliary screen 312 and the second auxiliary screen 314. In fig. 4, on the switching setting screen image 318, the positions of the first auxiliary screen image 312 and the second auxiliary screen image 314 that are to be modeled are illustrated, and if any one of the icons is selected, the icon is in an active state. In the example of fig. 4, the icon indicating "1" of the first auxiliary screen 312 is in an active state.

In this state, if the OK button 317 displayed on the lower side of the display information selection screen 316 is operated by clicking, tapping, or the like, the display of the first auxiliary screen 312 is switched to the display of the tool data screen. That is, the display 240(154) displays the display information selected on the display information selection screen 316 on at least one of the auxiliary screens 310. More specifically, the display 240(154) displays the display information selected on the display information selection screen 316 on the auxiliary screen designated on the switching setting screen 318. Fig. 4 shows a state in which the tool data screen is displayed on the first auxiliary screen 312 by the switching operation. The details of the G code list screen, the M code list screen, the tool data screen, the tool offset screen, the macro variable screen, and the macro input screen will be described below.

< G code Listing Screen >

Fig. 5 and 6 show examples of the G code list screen 320. Referring to fig. 5 and 6, a G code 321 is displayed on the left side of the screen of the G code list screen 320. The group number 321G to which the G code 321 belongs is displayed at a position adjacent to the right side of the G code 321. If a plurality of G-codes of the same group number are described in one section ("; (EOB: End of Block section) and"; ") in the program code, only the G-code described in the last is executed. The control content 322 of the G code 321 is displayed adjacent to the right side of the group number 321G. A favorite mark 323 is additionally displayed on the left side of the favorite G code 321.

A collection display button 324 is displayed on the upper end of the G code list screen 320. Fig. 5 shows a G code list screen 320 in which the collection display button 324 is off. Fig. 6 shows a G code list screen 320 in which the collection display button 324 is on. As shown in fig. 5, in the state where the collection display button 324 is off, all G codes are displayed in the order of numbers. A scroll bar 320S is displayed on the right end of the G code list screen 320. The programmer can cause the G code list screen 320 to display the G code in a desired range by moving the scroll bar 320S. As shown in fig. 6, in a state where the favorite display button 324 is on, only the favorite G code is displayed as the G code 321. In fig. 6, since the number of all the collected G codes is smaller than the maximum display line number of the G code list screen 320, the scroll bar is not displayed. However, when the number of the G codes stored is larger than the maximum display line number of the G code list screen 320, a scroll bar is displayed. Although the G codes are displayed in the order of the numbers of the G codes in fig. 5 and 6, the G codes 321 may be displayed in the order of the number of times of use in the past or the order of the number of times of use in a predetermined period in the past.

Buttons 325 to 326 related to the registration/release of the collection are displayed on the lower right end of the G code list screen 320. The G code 321, group number 321G, control content 322, and mark 323 are managed corresponding to each line. Therefore, if any one of the G code 321, the group number 321G, and the control content 322 is clicked or tapped, the G code 321, the group number 321G, and the control content 322 related to the same line as the clicked or tapped item are selected, and black-and-white reverse display or the like is performed. If the favorite login button 325 is clicked or tapped in this state, a mark 323 of a favorite is displayed on the left side of the selected G-code 321, and the selected G-code 321 is managed as a favorite. In contrast, if any one of the G-code 321, the group number 321G, the control content 322, and the mark 323, which becomes a line of the favorite G-code 321, is clicked or tapped, and the favorite release button 326 is clicked or tapped, the selected G-code 321 is released from the favorite, and the favorite mark 323 on the left side of the selected G-code 321 disappears. If the all-collected-collection release button 327 is clicked or tapped, a pop-up window is displayed to confirm whether or not all the collections are released, and if the programmer agrees to release, the management of the collections is released in all the collected G codes 321, and all the marks 323 disappear.

An input button 328 is displayed at the lower left end of the G code list screen 320. The programmer can input the G code into the program as follows with reference to the program editing screen 300 and the G code list screen 320. (1) An insertion portion into which the G code is inserted is specified by an operation such as tapping, clicking, or moving a pointer on the program editing screen 300 (hereinafter, the portion specified as described above is referred to as an insertion portion). (2) Referring to the G code list screen 320, a line of the G code 321 to be input is selected by tapping or clicking. (3) The enter button 328 is tapped or clicked. Thus, the G code 321 selected in (2) is inserted into the insertion site specified in (1) in the program code 302.

A linefeed key 329 is also displayed on the lower end of the G code list screen 320. If the line feed key 329 is clicked or tapped after an insertion position in the program code 302 into which a line feed ("; (EOB)) is inserted is designated by a tap, click, pointer movement, or the like, the line feed ("; (EOB)) is inserted into the insertion position in the program code 302. In the input using the line feed key 329, no input to the input button 328 is required. Since the line break ("; (EOB)) is frequently inserted before and after the G code and the EOB can be input from the line break key 329 displayed on the G code list screen 320, it is not necessary to display a separate screen keyboard for inputting the EOB particularly on the display 154 with a touch panel of the machine tool 100. As a result, programming in the machine tool 100 is made efficient.

The display form of the G code list screen 320 shown in fig. 5 and 6 is merely an example, and other display forms may be used. For example, the display position of the button or text may not be the display position shown in fig. 5 and 6. The input button 328 may be represented not by text but by a symbol or a pattern, and the line feed key 329 may be represented by another symbol, a pattern, or text. The tags/buttons 323 to 327 relating to the collection may be represented by other symbols, patterns, or texts, or may be deleted.

< M code Listing Screen >

Fig. 7 and 8 show examples of the M-code list screen 330. Referring to fig. 7 and 8, an M code 331 is displayed on the left side of the M code list screen 330. The control content 332 of the M-code 331 is displayed adjacent to the right side of the M-code 331. A favorite mark 333 is additionally displayed on the left side of the favorite M code 331.

A collection display button 334 is displayed on the upper end of the M-code list screen 330. Fig. 7 shows an M-code list screen 330 in which the collection display button 334 is off. Fig. 8 shows an M-code list screen 330 in which the collection display button 334 is on. As shown in fig. 7, in a state where the collection display button 334 is off, all M codes are displayed in the order of numbers. A scroll bar 330S is displayed on the right end of the M-code list screen 330. The programmer can cause the M-code list screen 330 to display the M-code in a desired range by moving the scroll bar 330S. As shown in fig. 8, in a state where the favorite display button 334 is on, only the favorite M code is displayed as the M code 331. In fig. 8, since the number of M codes of all the collections is smaller than the maximum display line number of the M code list screen 330, the scroll bar is not displayed. However, when the number of M codes stored is larger than the maximum display line number of the M-code list screen 330, a scroll bar is displayed. Although the M-codes are displayed in the order of the numbers of the M-codes in fig. 7 and 8, the M-codes 331 may be displayed in the order of the number of times of use in the past or the order of the number of times of use in a predetermined period in the past.

Buttons 335 to 336 for registering/releasing the collection are displayed on the lower right end of the M-code list screen 330. The M code 331, the control content 332, and the mark 333 are managed corresponding to each line. Therefore, if any one of the M code 331 and the control content 332 is clicked or tapped, the M code 331 and the control content 332 related to the same row as the clicked or tapped item are selected, and black-and-white reverse display or the like is performed. If the favorite login button 335 is clicked or tapped in this state, a favorite mark 333 is displayed on the left side of the selected M-code 331, and the selected M-code 331 is managed as a favorite. In contrast, if any one of the M-code 331, the control content 332, and the mark 333 of the line that becomes the favorite M-code 331 is clicked or tapped, and the favorite release button 336 is clicked or tapped, the selected M-code 331 is released from the favorite, and the favorite mark 333 on the left side of the selected M-code 331 disappears. If the all-collected-in-place cancel button 337 is clicked or tapped, a pop-up window for confirming whether or not all the collections are canceled is displayed, and if the programmer agrees to cancel the collections, the management of the collections is canceled in all the collected M-codes 331, and all the marks 333 disappear.

An input button 338 is displayed at the lower left end of the M-code list screen 330. The programmer can input the M-code into the program as follows with reference to the program editing screen 300 and the M-code list screen 330. (1) An insertion portion into which the M code is inserted is specified by an operation such as tapping, clicking, or pointer movement on the program editing screen 300. (2) Referring to the M-code list screen 330, a line of the M-code 331 to be input is selected by tapping or clicking. (3) The enter button 338 is tapped or clicked. Thereby, the selected M-code 331 is inserted into the insertion site in the program code 302.

A linefeed key 339 is also displayed at the lower end of the M-code list screen 330. If the line feed key 339 is clicked or tapped after an insertion position in the program code 302 into which a line feed ("; (EOB)) is inserted is designated by a tap, click, pointer movement, or the like, the line feed ("; (EOB)) is inserted into the insertion position in the program code 302. In the input using the line feed key 339, the input to the input button 338 is not required. Since the line break ("; (EOB)) is frequently inserted before and after the M code and the EOB can be input from the line break key 339 displayed on the M code list screen 330, it is not necessary to display a separate screen keyboard for inputting the EOB on the display 154 with a touch panel of the machine tool 100. As a result, programming in the machine tool 100 is made efficient.

The display form of the M-code list screen 330 shown in fig. 7 and 8 is merely an example, and other display forms may be used. For example, the display position of the button or text may not be the display position shown in fig. 7 and 8. The input button 338 may be represented not by text but by a symbol or a pattern, and the line feed key 339 may be represented by another symbol, a pattern, or text. The tags/buttons 333-337 related to the favorites may be represented by other symbols, patterns, text, or may be deleted.

< tool data Picture >

Fig. 9 and 10 are display examples of the tool data screen 340. Referring to fig. 9 and 10, on the tool data screen 340, T numbers 341 corresponding to the tools Ta are displayed on the left end. Icons 342 each schematically representing the tools Ta are displayed adjacent to the right side of the T number 341. Icon 342 may be omitted. The respective tool names 343 of the tools Ta are displayed adjacent to the right of the icon 342. A name 344 indicating a machining portion of a partial tool such as a turning tool (T06 in this example) is displayed at a position adjacent to the right side of the tool name 343. The value 345 of the nominal (size) or nominal diameter (nominal diameter) of each of the cutters Ta is displayed adjacent to the right of the cutter name 343 (name 344 in the case of name 344). At the end of the value 345, a decimal point is described, but a decimal point or more means a mm unit. In the example of fig. 9 and 10, only the nominal diameter is shown in the turning tool (T06) and the nominal diameter is shown in the remaining tools. Which of the nominal and nominal diameters is shown as value 345 depends on the type of tool.

The plurality of parameters are displayed further to the right than the value 345. In a case where the tool corresponding to the T-number 341 is easily associated with any one of the tool name 343 and the numerical value 345, the display of the plurality of parameters may be omitted. In the example of fig. 9 and 10, the parameter display of the end mill (T01) is omitted. Arrow buttons 349a and 349b are displayed in the lower right corner of the tool data screen 340, and the range of the T-number 341 displayed on the tool data screen 340 can be changed by clicking or tapping the arrow buttons 349a and 349 b.

Referring to FIG. 9, the value 346 of the tool length or axial offset is shown adjacent to the right of the value 345. The tool length is a length of the tool Ta in a direction along the rotation axis a2 (hereinafter referred to as an axial direction) in a state where the tool Ta is attached to the tool spindle 114. In other words, the tool length refers to the length of the Zm axis direction of the tool Ta in the machine coordinate system. The axial offset is a distance in the axial direction from a base end point of the tool Ta to a cutting edge tip (tool tip) of the tool Ta in a state where the tool Ta is attached to the tool spindle 114. The base end point of the tool Ta is an end point of a portion belonging to the tool Ta gripped by the tool spindle 114, out of two end points in the axial direction of the tool Ta in a state where the tool Ta is attached to the tool spindle 114. In other words, the axial offset refers to the distance in the Zm axis direction from the base end point of the tool Ta to the cutting edge tip portion in the machine coordinate system. In the example of fig. 9, the axial offset is shown only in the turning tool (T06) and the tool length is shown in the remaining tools. Which of the tool length and axial offset is shown as value 346 depends on the type of tool.

Referring to fig. 9, a tool radius (tool radius) or a radial offset value 347 is displayed on the right end of the tool data screen 340. In addition, although the tool radius is shown in the present embodiment, a tool diameter may be shown instead of the tool radius. The tool radius (tool radius) is a radius of the tool Ta in a direction perpendicular to the rotation axis a2 (hereinafter referred to as a radial direction) in a state where an unworn (new) tool Ta is attached to the tool spindle 114. The radial offset is a coordinate value in the radial direction from the base end point of the tool Ta to the cutting edge (cutting edge) of the tool Ta in a state where the unworn (new) tool Ta is mounted on the tool spindle 114. The coordinate value is a value of Xm coordinate of the edge of the tool Ta in a state where the tool Ta is attached to the tool spindle 114 when the tool headstock 112 is in the posture shown in fig. 1. In the example of fig. 9, since the tool radius (tool radius) of the drill (T03) can be calculated from the nominal diameter, the numerical value 347 is not described. The radial offset is shown as value 347 in the turning tool (T06) and as value 347 in the face mill (T08). Which of the tool radius and the axial offset is indicated as value 347, and whether the indication of value 347 is omitted depends on the type of tool.

Referring to fig. 10, a numerical value 351 of the axial cumulative wear amount is displayed at a position adjacent to the right side of the numerical value 345. The axial cumulative wear amount is an axial cumulative wear amount of a cutting edge tip (tool tip) of the tool Ta. The cumulative wear amount is a wear amount accumulated by use of the tool Ta, and the machine tool 100 can calculate the cumulative wear amount from the use mode and the use time of the tool Ta. Alternatively, the programmer or operator may input the accumulated wear amount while observing the use mode of the tool Ta. By checking the accumulated wear amount, the programmer can grasp whether the use of the tool Ta is appropriate or not and the replacement timing. In addition, the display of the accumulated wear amount may be omitted. In the example of fig. 10, the end mill (T01) and the drill (T03) are not shown with the numerical value 351. Further, a numerical value 352 of the radial cumulative wear amount is displayed on the right end of the tool data screen 340. The radial cumulative wear amount refers to a radial cumulative wear amount of the cutting edge (cutting edge) of the tool Ta. In the example of fig. 10, the end mill (T01) and the drill (T03) are not shown with the numerical value 352. The tool information other than the above can be displayed on the tool data screen 340, and details will be described in a modification 340a of the tool data screen in the following paragraph.

The T number 341, icon 342, tool name 343, name 344 indicating a machining portion, and numerical values 345 to 347, 351, 352 correspond to each line, and are associated with the T number in the program code 302. As such, the tool information 158 associated with the T number 341 in the program code 302 is referred to as first tool information. The tool information includes first tool information including at least one of reference number 361, X value 362, Y value 363, Z value 364, R value 365, T number 341, icon 342, tool name 343, name 344 indicating a machining portion, and numerical values 345 to 347, 351, 352 as described later. The first tool information contains accumulated amounts of wear 351, 352 accumulated due to use of the tool.

An input button 348 is displayed at the lower left end of the tool data screen 340. The programmer can input the T number relating to the tool suitable for machining into the program in the following manner with reference to the program editing screen 300 and the tool data screen 340. (1) An insertion portion for inserting the T number is designated by an operation such as tapping, clicking, or pointer movement on the program editing screen 300. (2) Referring to the tool data screen 340, a row for displaying a tool suitable for machining is selected by tapping or clicking. (3) The enter button 348 is tapped or clicked. Thus, the T number corresponding to the tool selected in (2) is inserted into the insertion site specified in (1) in the program code 302. In the present embodiment, "00" may be additionally inserted as the T number after the 2 nd digit of the T number 341.

Further, the programmer can edit the axial offset, the radial offset, and the wear amount among the values displayed on the tool data screen 340. This editing can be performed by the following procedure, for example. (1) The tool data screen 340 is in a state in which an edited portion is selected by tapping, long-pressing, clicking, or the like, and can be edited (for example, displayed as a form label). (2) When displaying on a display with a touch panel as in the control device 150 of the machine tool 100, an input interface such as an on-screen keyboard or an on-screen ten-key keyboard is additionally displayed. (3) The values are entered through a keyboard or an on-screen input interface as shown in (2). The tap and the click may be a single tap and a single click, or may be a double tap and a double click. The editing method is not limited to the above-described method, and other methods such as other GUI and voice input may be used. Further, the axial offset, the radial offset, the wear amount, and the like may be edited by a program other than the machining program editing program 221 (159).

Also displayed on the lower end of the tool data screen 340 is an M06 command input button 353 for inputting an M06 command into the program code 302. The M06 command is a tool change command. Described in program code as:

< T code of replacement tool > < T code of tool intended for replacement next > M06;

in a state where an insertion portion into which the M06 command is inserted in the program code 302 is designated by an operation such as tapping, clicking, pointer moving, or the like, if the M06 command input button 353 is clicked or tapped, the code of the M06 command is inserted into the designated insertion portion. In the input using the command input button 353 of M06, the input to the input button 348 is not necessary. Although the M06 command may be input from the M code list screen 330, the M06 command has high correlation with the T code, and therefore, the mode in which the M06 command can be directly input from the tool data screen 340 is highly convenient in programming. Therefore, the command input button 353 of M06 is displayed on the tool data screen 340, thereby making programming efficient.

Also displayed at the lower end of the tool data screen 340 is a T00 enter button 354 for entering a T number of an unspecified tool into the program code 302. T00 is a T number for specifying that no tool is attached to the tool spindle 114 or that no tool is attached to the tool changer arm 132. For example, when there is no reservation for the next replacement at the time of replacing a tool, a code indicating T00 in the above-mentioned < T code of a tool scheduled to be replaced next > is described in the program code. In a state where an insertion site for inserting T00 in the program code 302 is designated by an operation such as tapping, clicking, pointer moving, or the like, if the T00 enter button 354 is clicked or tapped, a code indicating T00 is inserted at the designated insertion site. In the input using the T00 input button 354, the input to the input button 348 is not necessary. T00 may be input from another input unit (a keyboard (one of the input interfaces 250) or an on-screen keyboard separately displayed on the display screen 30), but is frequently used in combination with the M06 command. Therefore, the T00 input button 354 is displayed on the same screen (tool data screen 340) as the M06 command input button 353, thereby making programming efficient.

The display form of the tool data screen 340 shown in fig. 9 and 10 is merely an example, and other display forms may be used. For example, the display position of the button or text may not be the display position shown in fig. 9 and 10. The enter button 348 may be represented not by text but by a symbol or pattern, and the arrow buttons 349a and 349b may be represented by other symbols or patterns. In fig. 9 and 10, the tools Ta are displayed in the order of T-number on the tool data screen 340, but the tools Ta may be displayed in the order of the number of times of use in the past or in the order of the number of times of use in a predetermined period in the past. The numerical values 346 and 347 can also be used as one of the tool length offsets described later, and this will be described in a modification 340a of the tool data screen in the following paragraph.

< tool offset >

Next, when describing the tool offset screen 360, the concepts of tool length compensation, tool radius compensation, and cutting edge radius compensation designated on the tool offset screen 360 will be described. The tool length compensation means compensation of a positional deviation (offset) between the reference point Ps and the cutting edge tip of the tool Ta. As shown in fig. 11 and 12, the reference point Ps is located on the Zm axis passing through the machine tool origin Om, and coincides with the base end point of the tool Ta in the state where the tool Ta is attached to the tool spindle 114. The position of the cutting edge tip of the tool Ta with respect to the machine origin Om varies greatly depending on the type and wear state of the tool Ta. Therefore, in the machining program 157, the program code is described as if the machine origin Om passes through the cutting position of the workpiece W1, but the position of the cutting edge tip portion of the tool Ta with respect to the machine origin Om and the action programmed as the tool length offset (tool length offset) are managed independently, the machine tool 100 compensates for the tool length offset and executes the machining program 157.

Specifically, as shown in fig. 11 and 12, the tool length offset is defined by the position (Xf, Yf, Zf) of the cutting edge tip Eg of the tool Ta with respect to the machine origin Om in the machine coordinate system. Xf is the Xm coordinate of the cutting edge tip Eg of the tool Ta. Yf is the Ym coordinate of the cutting edge tip Eg of the tool Ta. Zf is the Zm coordinate of the cutting edge tip Eg of the tool Ta. Xf coincides with Xm coordinates Xsd of the cutting edge tip Eg when the reference point Ps in the tool spindle 114 is set as the origin of the machine coordinate system. Yf coincides with Ym coordinate Ysd of the cutting edge tip Eg when the reference point Ps is set as the origin of the machine coordinate system. Zf is the sum of Zm coordinates Zp of the reference point Ps and Zm coordinates Zsd of the cutting edge tip Eg when the reference point Ps is set as the origin of the machine coordinate system. Zp is predetermined according to the specification of the machine tool 100.

From the sum of the shape offset and the wear compensation parameter (Xsd, Ysd, Zsd) is determined. The shape offset is Xm coordinates, Ym coordinates, and Zm coordinates (Xs, Ys, Zs) to the cutting edge tip Eg when the base end point of the tool Ta (the reference point Ps in the tool spindle 114) is set as the origin in a state where the unworn (new) tool Ta is attached to the tool spindle 114. Zs coincides with the axial offset of the tool Ta described above. In a tool having a substantially circular radial shape such as a drill, Xs and Ys are aligned with the above-described radial offset. The wear compensation parameter represents the amount of deviation from the above-described shape offset due to wear of the tool Ta in the machine coordinate system. When the value of Xm coordinate, the value of Ym coordinate, and the value of Zm coordinate of the wear compensation parameter are Xd, Yd, and Zd, respectively, the tool length offsets Xf, Yf, and Zf are expressed by the following equations.

Xf=Xsd=Xs+Xd

Yf=Ysd=Ys+Yd

Zf=Zp+Zsd=Zp+Zs+Zd

Next, the concept of tool radius compensation (tool radius compensation) will be described. The tool radius compensation is to compensate for a positional deviation (offset) between the reference point Ps and a cutting edge (cutting edge) of the tool Ta (a circumferential edge (periphery) forming the maximum diameter of the tool Ta when viewed from the direction of the rotation axis a2 of the tool Ta) during the milling process and the drilling process. The position of the cutting edge of the tool Ta with respect to the machine tool origin Om varies widely depending on the type and wear state of the tool Ta. Therefore, in the machining program 157, the program code is described as if the machine origin Om passes through the cutting position of the workpiece W1, but the position of the edge of the tool Ta with respect to the machine origin Om is independently managed as a tool radius offset (tool radius offset), and the machine tool 100 compensates for the tool radius offset and executes the machining program 157.

Fig. 13 shows an example of a path Lc of the tool when the tool radius compensation is performed in the case where milling is performed on the outer side of the target outer shape (target contour) Ct. In fig. 13, the tool radius offset Df is the distance between the machine tool origin Om and the cutting edge of the tool Ta as viewed from the direction of the rotational axis a2 of the tool Ta. By the tool radius compensation, the machine tool origin Om of the tool Ta is controlled to move along a path Lc which is not less than the tool radius offset Df away from the target outer shape Ct. If it is provided to compensate for which side of the target outer shape Ct is inside and outside (which side is defined in the NC program by using either the G41 command or the G42 command for the left and right in the cutting edge travel direction), the path Lc can be mathematically determined by a known method.

Fig. 14 is a diagram showing a tool radius offset Df in the milling tool. In fig. 14, the tool radius offset Df of the milling tool is illustrated, but the same can be considered in a drill for drilling. When the tool radius (tool radius) is Rs and the amount of wear in the radial direction with respect to the rotation axis a2 of the tool Ta is Rd, the tool radius offset Df is expressed by the following equation.

Df=Rs+Rd

Next, the concept of tip radius compensation (nose radius compensation) will be described. Since the edge (nose) of the tool is generally rounded, an imaginary edge point (imaginary tool tip) Egv defined by the tool length offset does not contact the workpiece W1, and an edge (cutting edge) Eg whose shape is defined by an arc having a different radius of curvature R from the imaginary edge point Egv contacts the workpiece W1. In this case, if the virtual edge point Egv is programmed to be regarded as the tip of the tool, as shown in fig. 15, the contour Cr is processed so as to deviate from the target contour Ct. Fig. 15 illustrates the following example: since the virtual edge point Egv is located outside the cutting edge Eg, the center Eo of the arc of the radius of curvature R passes through the path Lo that is a distance greater than the radius of curvature R from the target profile Ct, and is thereby processed into the profile Cr that is offset from the target profile Ct. The edge radius compensation is to compensate the movement path of the virtual edge point Egv so that the path of the center Eo of the arc becomes a path Lc that is separated from the target outer shape Ct by the curvature radius R based on the direction (edge direction) from the center Eo of the arc defining the shape of the edge Eg toward the virtual edge point Egv and the curvature radius R of the arc in the workpiece coordinate system. Thus, as shown in fig. 15, the path of the virtual edge point Egv is compensated for by a path Lvc passing through the workpiece W1 inside the target outer shape Ct. Further, the movement path of the machine tool origin Om can be obtained from the path Lvc of the virtual edge point Egv using the tool length compensation.

Fig. 16 illustrates the cutting edge direction. Fig. 16 shows a total of nine edge directions, in which a special edge corresponding to all the edge directions perpendicular to the Y axis of the workpiece coordinate system is set as the edge direction [0] (and the edge direction [9]), in addition to eight edge directions. The cutting edge direction [1] is a direction toward the positive X-axis direction and toward the positive Z-axis direction of the workpiece coordinate system. The cutting edge direction [2] is a direction toward the positive X-axis direction and toward the negative Z-axis direction of the workpiece coordinate system. The cutting edge direction [3] is a direction toward the X-axis negative direction and toward the Z-axis negative direction of the workpiece coordinate system. The cutting edge direction [4] is a direction toward the X-axis negative direction and toward the Z-axis positive direction of the workpiece coordinate system. The cutting edge direction [5] is a direction toward the positive direction of the Z axis of the workpiece coordinate system. The cutting edge direction [6] is a direction toward the positive direction of the X-axis of the workpiece coordinate system. The cutting edge direction [7] is a direction toward the negative direction of the Z-axis of the workpiece coordinate system. The cutting edge direction [8] is a direction toward the X-axis negative direction of the workpiece coordinate system.

When the coordinates of the center Eo of the circular arc in the workpiece coordinate system are (Xo, Yo, Zo), the coordinates (Xgv, Ygv, Zgv) of the virtual edge point Egv in the workpiece coordinate system are determined as follows.

Cutting edge direction [1 ]: (Xgv, Ygv, Zgv) ═ x (R, Yo, Zo + R)

Cutting edge direction [2 ]: (Xgv, Ygv, Zgv) ═ Xo + R, Yo, Zo-R)

Cutting edge direction [3 ]: (Xgv, Ygv, Zgv) ═ o (Xo-R, Yo, Zo-R)

Cutting edge direction [4 ]: (Xgv, Ygv, Zgv) ═ o (Xo-R, Yo, Zo + R)

Cutting edge direction [5 ]: (Xgv, Ygv, Zgv) ═ x, Yo, Zo + R)

Cutting edge direction [6 ]: (Xgv, Ygv, Zgv) ═ Xo + R, Yo, Zo)

Cutting edge direction [7 ]: (Xgv, Ygv, Zgv) ═ x, Yo, Zo-R)

Cutting edge direction [8 ]: (Xgv, Ygv, Zgv) ═ x-R, Yo, Zo)

Cutting edge directions [0], [9 ]: (Xgv, Ygv, Zgv) ═ Xo, Yo, Zo)

If it is provided to compensate for which side of the target outer shape Ct is inside and outside (which side is defined in the NC program by using either the G41 command or the G42 command in the left and right direction of the cutting edge travel direction), the path Lc of the center Eo of the arc can be mathematically determined by a known method. Then, if the edge direction is provided, the path Lvc of the virtual edge point Egv is obtained from the correspondence between (Xo, Yo, Zo) and (Xgv, Ygv, Zgv). When the path Lvc is obtained, the movement path of the machine tool origin Om is obtained from the path Lvc by the tool length compensation in which the virtual edge point Egv is regarded as the cutting edge tip Eg.

In addition, the concept of wear can also be introduced in the nose radius compensation. In this case, the tool length offset (Xf, Yf, Zf) may be obtained by adding a wear compensation parameter used for tool length compensation to the tool length of the unworn (new) tool Ta, and the curvature radius R may be obtained by subtracting the wear amount Rd from the curvature radius Ro at the time of unworn.

< tool offset Picture >

Fig. 17 and 18 are display examples of the tool offset screen 360. Referring to fig. 17 and 18, a reference number 361 referred to as either one of an H number for referring to the offset value in the G43 command/G44 command (tool length compensation) and a D number for referring to the offset value in the G41 command/G42 command (tool radius compensation) is displayed at the left end of the tool offset screen 360. The reference number 361 is not directly related to the tool Ta. Fig. 17 and 18 are switched by a switching button not shown.

In fig. 17, an X value 362 is displayed at a position adjacent to the right side of reference numeral 361, and the X value 362 represents an Xm coordinate of the cutting edge tip Eg in a state where the unworn (new) tool Ta used in the tool length compensation is attached to the tool spindle 114, or an Xm coordinate of the virtual cutting edge point Egv in a state where the unworn (new) tool Ta used in the cutting edge radius compensation is attached to the tool spindle 114. A Y value 363 is displayed adjacent to the right side of the X value 362, and this Y value 363 indicates the Ym coordinate of the cutting edge tip Eg in a state where the unworn (new) tool Ta used in the tool length compensation is attached to the tool spindle 114, or the Ym coordinate of the virtual edge point Egv in a state where the unworn (new) tool Ta used in the edge round compensation is attached to the tool spindle 114. A Z value 364 is displayed adjacent to the right side of the Y value 363, and this Z value 364 represents the Zm coordinate of the cutting edge tip Eg in a state where the unworn (new) tool Ta used in the tool length compensation is attached to the tool spindle 114, or the Zm coordinate of the virtual edge point Egv in a state where the unworn (new) tool Ta used in the cutting edge radius compensation is attached to the tool spindle 114. An R value 365 is displayed at the right end of the tool offset screen 360, and the R value 365 indicates the tool radius Rs used for tool radius compensation or the curvature radius Ro of an arc defining the shape of the cutting edge Eg used for cutting edge radius compensation when not worn.

Arrow buttons 369a, 369b are displayed in the lower right corner of the tool offset view 360. By clicking or tapping the arrow buttons 369a and 369b, the range of the reference number 361 displayed on the tool offset screen 360 can be changed.

In fig. 18, an Xd value 371 indicating an Xm coordinate of a wear compensation parameter used in tool length compensation or cutting edge radius compensation is displayed at a right adjacent position of reference numeral 361. A Yd value 372 is displayed adjacent to the right of the Xd value 371, and this Yd value 372 represents the Ym coordinate of the wear compensation parameter used in tool length compensation or nose radius compensation. Next to the right of Yd value 372, there is shown Zd value 373, which Zd value 373 represents Zm coordinate of wear compensation parameter utilized in tool length compensation or nose radius compensation. The Rd value 374 is shown adjacent to the position to the right of the Zd value 373, and this Rd value 374 indicates the amount of radial wear Rd utilized in the tool radius compensation or nose radius compensation. The right end of the tool offset screen 360 displays a direction value 375 corresponding to the cutting edge directions [0] to [9 ]. The orientation value 375 is shown as 0 when the tool radius is compensated.

Reference number 361, X value 362, Y value 363, Z value 364, R value 365, Xd value 371, Yd value 372, Zd value 373, Rd value 374, and direction value 375 correspond to each row and are associated with at least one of the H number and the D number in program code 302. Thus, the tool information 158 associated with at least one of the H number and the D number in the program code 302 is referred to as second tool information. The tool information includes second tool information including at least one of reference number 361, X value 362, Y value 363, Z value 364, R value 365, Xd value 371, Yd value 372, Zd value 373, Rd value 374, and direction value 375. One reference numeral 361 manages an offset value of any one of the tool length compensation, the tool radius compensation, and the nose radius compensation. That is, the second tool information is any one of a parameter for tool length compensation, a parameter for tool radius compensation, and a parameter for nose radius compensation. With this management method, the R value 365, the Rd value 374 and the direction value 375 in the same row as the reference number 361 corresponding to the tool length compensation show 0. The X value 362, the Y value 363, the Z value 364, the Xd value 371, the Yd value 372, and the Zd value 373 in the same row as the reference number 361 corresponding to the tool radius compensation show 0.

A D number input button 367 and an H number input button 368 are displayed at the lower end of the cutter offset screen 360. In the case of performing the tool length compensation, (1) the program code 302 is first input with the G43 command or the G44 command on the G code list screen 320, the keyboard (one of the input interfaces 250), or the like, and then the insertion portion to which the H number is to be inserted is specified by an operation such as tapping, clicking, or pointer movement on the program editing screen 300. (2) Referring to the tool offset screen 360, a line for displaying the X value 362, the Y value 363, the Z value 364, the Xd value 371, the Yd value 372, and the Zd value 373 suitable for tool length compensation is selected by tapping or clicking. (3) The H number enter button 368 is tapped or clicked. Thus, the insertion portion specified in (1) in the program code 302 is inserted into the H number with the character H added to the head of the reference number 361 of the column selected in (2). For example, when "3" is selected as reference number 361, H03 or H003 is input to program code 302. Until the G49 command is called to cancel the tool length compensation or the offset value is changed in accordance with the additional G43 command/G44 command, the G43 command/G44 command with reference to the reference number 361 thus input is effective.

In the case of performing the tool radius compensation, (1) the program code 302 is first input with the G41 command or the G42 command on the G code list screen 320, the keyboard (one of the input interfaces 250), or the like, and then the insertion portion to which the D number is to be inserted is specified by an operation such as tapping, clicking, or pointer movement on the program editing screen 300. (2) Referring to the tool offset screen 360, a row displaying an R value 365, an Rd value 374 and an orientation value 375 suitable for tool radius compensation is selected by tapping or clicking. In both the tool radius compensation and the cutting edge radius compensation, the direction value 375 is referred to because the G41 command or the G42 command is used. Therefore, in the tool radius compensation, a row having a direction value 375 of 0 or 9 needs to be selected. In general, the direction value 375 is designated 0. Finally, (3) tap or click the D number enter button 367. Thus, the insertion portion specified in (1) in the program code 302 is inserted into the D number of the character D attached to the head of the reference number 361 of the column selected in (2). For example, when "5" is selected as reference number 361, D05 or D005 is input to program code 302. Until the G40 command is called to cancel the tool radius compensation or the offset value is changed in accordance with the additional G41 command/G42 command, the G41 command/G42 command with reference to the reference number 361 thus input is valid.

In the case of performing the cutting edge radius compensation, (1) the tool length offset with respect to the virtual cutting edge point Egv is first compensated by the tool length compensation. The tool length compensation may be performed by using the G43 command/G44 command, but the tool length compensation may be performed by using the T number. This will be described in a modification 340a of the tool data screen in the following paragraph. Next, (2) the program code 302 is first input with the G41 command or the G42 command on the G code list screen 320, the keyboard (one of the input interfaces 250), and the like, and then the insertion portion for inserting the D number is specified by an operation such as tapping, clicking, or pointer movement on the program editing screen 300. (3) With reference to the tool offset screen 360, a row for displaying the R value 365, the Rd value 374, and the direction value 375 suitable for the nose radius compensation is selected by tapping or clicking. In the cutting edge radius compensation, since the machine tool 100 compensates the positional deviation between the virtual cutting edge point Egv and the center Eo of the arc with reference to the direction value 375, the programmer needs only to consider the tool length offset associated with the virtual cutting edge point Egv in the compensation associated with (1). Finally, (4) tap or click the D number enter button 367. Thus, the insertion portion specified in (2) in the program code 302 is entered with the D number of the character D added to the head of the reference number 361 of the column selected in (3). For example, when "8" is selected as reference number 361, D08 or D008 is inserted into the program code 302. Until the G40 command is called to cancel the tool radius compensation or the offset value is changed in accordance with the additional G41 command/G42 command, the G41 command/G42 command with reference to the reference number 361 thus input is valid.

The tool offset screen 360 displays the reference number 361, the X value 362, the Y value 363, the Z value 364, the R value 365, the Xd value 371, the Yd value 372, the Zd value 373, the Rd value 374, and the direction value 375 in this manner, and manages parameters related to the D number and the H number on one sub screen, so that the number of sub screens 310 can be reduced. Further, a D number input button 367 and an H number input button 368 are displayed on the tool offset screen 360, and the reference number 361 can be converted into a D number and an H number and inserted into the program code 302 by these button operations. Whereby the programmer can simply enter the selected parameters into the program code 302.

The display form of the tool offset screen 360 shown in fig. 17 and 18 is merely an example, and other display forms may be used. For example, the display position of the button or text may not be the display position shown in fig. 17 and 18. Further, the D number input buttons 367 and the H number input buttons 368 may be represented by symbols or patterns instead of text, and the arrow buttons 369a and 369b may be represented by other symbols or patterns. In fig. 17 and 18, the parameters are displayed on the tool offset screen 360 in the order of reference numeral 361, but the parameters may be displayed in the order of the number of times of use in the past or in the order of the number of times of use in a predetermined period in the past.

< macrovariables Screen >

Fig. 19 is a display example of the macro variable screen 380. The macro variable screen 380 is a screen for displaying the numerical values of macro variables used in the machining program 157 and the contents of the macro variables. The macro variable is a variable corresponding to a value repeatedly used in the program code. By using the macro variable, the numerical value repeatedly used in the program code can be easily changed. The macro variables include general variables (mostly 100 th and 500 th stages) that can be commonly used in all machining programs executed by the machine tool 100, local variables (generally #1 to #33) that can be used in one machining program, and system variables (generally 1000 th and later) that manage system parameters of the machine tool 100.

In fig. 19, a macro variable screen 380 displays the numerical value and the content of a general variable. The macro variable screen 380 may display local variables and system variables in the same manner, but the display examples of the local variables and the system variables are not described. In the macro variable screen 380, a variable name 381 is displayed on the left end. A numerical value 382 input to the macro variable represented by the variable name 381 is displayed adjacent to the right side of the variable name 381.

On the right end of the macro variable screen 380, a comment 383 corresponding to a macro variable indicated by a variable name 381 is displayed. A variable name 381, a numerical value 382, and a comment 383 correspond to each line. A comment display switching button 384 is displayed in the upper right corner of the macro variable screen 380. By clicking or tapping the comment display switching button 384, the display/non-display of the comment 383 in the macro variable screen 380 is switched. Further, arrow buttons 389a and 389b are displayed in the lower right corner of the macro variable screen 380, and the range of the variable name 381 displayed on the macro variable screen 380 can be changed by clicking or tapping the arrow buttons 389a and 389 b.

A variable input button 385 and a comment input button 386 are displayed on the left side of the lower end of the macro variable screen 380. Since the variable name 381, the numerical value 382, and the comment 383 are managed corresponding to each line, if any one of the variable name 381, the numerical value 382, and the comment 383 is clicked or tapped, the variable name 381, the numerical value 382, and the comment 383 related to the same line as the clicked or tapped item are selected, and are displayed in a black-and-white inverted manner. If the variable input button 385 is clicked or tapped in this state, the macro variable associated with the selected variable name 381 is inserted into an insertion position in the program code 302. In addition, if the comment input button 386 is clicked or tapped in this state, a character string to which parentheses are added on both sides of the selected comment 383 is inserted into the insertion portion in the program code 302. Specifically, when #100 is selected in fig. 19, for example, if the comment input button 386 is clicked or tapped, a character string (WORK-NUM) is inserted into an insertion position in the program code 302.

Further, if a specific variable name 381, a numerical value 382, or an annotation 383 is clicked or tapped, a pop-up window for editing the selected variable name 381, numerical value 382, or annotation 383 is displayed. The programmer can edit values 382, comments 383 in the pop-up window, or set macro variables that have not yet been assigned a value 382.

The macro variable screen 380 shown in fig. 19 is only an example of a display mode, and may be another display mode as long as the variable name 381 and the numerical value 382 are displayed. For example, the display position of the button or text may not be the display position shown in fig. 19. Note that the comment display switching button 384, the variable input button 385, and the comment input button 386 may be represented not by text but by symbols or patterns, and the arrow buttons 389a and 389b may be represented by other symbols or patterns. Note that the comment 383, the comment display switching button 384, and the comment input button 386 may be omitted. Although the variable names 381 are displayed in the macro variable screen 380 in the order of the numbers of macro variables in fig. 19, the variable names 381 may be displayed in the order of the number of times of use in the past or the order of the number of times of use in a predetermined period in the past.

< macro input Screen >

Fig. 20 is a display example of the macro input screen 390. The macro input screen 390 is a screen for simply inputting a macro using a GUI. In the present embodiment, a macro refers to a character set (character set) used for programming. Preferably the character set is a universal or frequently used character set. The macro includes an operator 391 (hereinafter referred to as a control command 391) for specifying a control structure (control structure) in program code, function code 392 representing a mathematical function, a comparison operator 393, and an external output instruction 394.

Here, BCD in the function code 392 is a function of converting Binary-Coded Decimal (Binary-Coded Decimal) data into BCD data. BIN is a function that converts BCD data into binary data. FIX is a function rounded off below the decimal point. FUP is a function of the carry-down of the decimal point. ROUND is a function that outputs an integer by rounding. EQ in the compare operator 393 represents "equivalent", NE represents "not equivalent", GT represents "grease THan", LT represents "less THan", GE represents "grease THan or equivalent to", and LE represents "less THan or equivalent to". POPEN in the external output command 394 is a command for opening the RS232C port. POPEN is called before external data is output. PCLOS is an instruction for RS232C port shutdown. The PCLOS is called at the point when the external data output is completed. DPRNT is an instruction that outputs arguments (strings and/or values) in ISO code. BPRNT is an instruction that outputs arguments (strings and/or values) in binary form. The function codes 392 and the control commands 391 other than BCD, BIN, FIX, FUP, and ROUND are also in a common program language, and are widely known, and therefore, descriptions thereof are omitted.

An input button 395 is displayed at the lower end of the macro input screen 390. If any one of the control command 391 is clicked or tapped, the function code 392, the comparison operator 393, and the external output instruction 394 is selected, the code of the click or tap is selected, and a black-and-white reverse display or the like is performed. If the enter button 395 is clicked or tapped in this state, the selected code is inserted into an insertion site in the program code 302.

On the macro input screen 390, an input button-arithmetic operator (arithmetric operator) key 396, a space key 397, and a line feed key 398 of symbols (symbols) used in combination with the character sets 391 to 394 are also displayed. That is, the symbol includes an arithmetic operator, a space character, and a line break character. In the NC program, the linefeed contains "; "(EOB). Although not shown in fig. 20, numeric key (numeric key) buttons 0 to 9 and decimal key (default key) buttons may be additionally displayed on the macro input screen 390. The macro input screen 390 may also be referred to as a programming assistant screen (programming assistant screen) because the macro input screen 390 displays not only the macro but also input buttons 396 to 398 that display symbols used in combination with the macro.

If the arithmetic operator key 396 is clicked or tapped, the operator corresponding to the clicked or tapped button is inserted into an insertion site in the program code 302. If the space key 397 is clicked or tapped, a space is inserted into the insertion location in the program code 302. If the new line key 398 is clicked or tapped, a new line character ("; (EOB)) is inserted into the insertion site in the program code 302. In the input using the arithmetic operator key 396, the space key 397, and the linefeed key 398, the input to the input button 395 is not necessary. The machining program editor 221 may receive input of arithmetic operators, spaces, and linefeeds from a keyboard (one of the input interfaces 250) connected to the computer 200 or an on-screen keyboard separately displayed on the display screen 30, in addition to input of arithmetic operators, spaces, and linefeeds from the input buttons 396 to 398. The machining program editor 159 may receive inputs of arithmetic operators, spaces, and linefeeds from the input buttons 396 to 398, and may also receive inputs of arithmetic operators, spaces, and linefeeds from a keyboard separately displayed on the display screen 30.

Input buttons 396 to 398 for displaying symbols used in combination with character sets (macros) 391 to 394 on an auxiliary screen (programming auxiliary screen) for displaying a character set including at least one of a function code 392 for specifying a mathematical function, an external output command 394, and operators 391 and 393, that is, a macro input screen 390. Therefore, a troublesome operation of inputting can be omitted, particularly, by displaying a separate screen keyboard on the touch-panel display 154 of the machine tool 100. As a result, programming in the machine tool 100 is made efficient.

The macro variable is often input to an argument of function code 392, a comparison object value of comparison operator 393, and an argument of external output instruction 394. In this case, programming can be performed more efficiently by displaying the macro variable screen 380 on one of the first auxiliary screen 312 and the second auxiliary screen 314 and displaying the macro input screen 390 on the other of the first auxiliary screen 312 and the second auxiliary screen 314.

The display mode of the macro input screen 390 shown in fig. 20 is only an example, and other display modes may be used. For example, the display position of the button or text may not be the display position shown in fig. 20. The enter button 395 and the space key 397 may be represented not by text but by symbols or patterns. The space key 397 may also be displayed as a plain space key. Linefeed keys 398 may also be represented by text or other symbols, patterns. At least one of the arithmetic operator key 396, the space button 397, and the linefeed key 398 may be omitted. Control command 391, function code 392, compare operator 393, and external output instruction 394 may include code other than that shown in FIG. 20, or may omit a portion of that shown in FIG. 20.

< modification of tool data Screen >

The basic display screen 30 is explained as described above. However, as an extended function, the parameters 361 to 365, 371 to 375 managed on the tool offset screen 360 may be managed in the tool data screen 340 in association with the T number. In this case, when the tool Ta associated with the T number is replaced, the tool length compensation is performed based on the parameters 361 to 365, 371 to 375 managed in association with the T number, regardless of the presence or absence of the command G43 or the command G44 in the program code 302. The tool length compensation by the G43 command and the G44 command is only enabled, the tool length compensation by the T number is only enabled, or the tool length compensation by both the designations is enabled by the setting of the machine tool 100. When tool length compensation based on both designations is enabled, the compensation value based on the T number and the compensation values based on the G43 command and the G44 command are added to perform tool length compensation. The tool radius compensation and the cutting edge radius compensation need to be described in the program code as a G41 command or a G42 command, regardless of whether the tool data screen 340 is displayed.

Different cutting operations can be performed by using end surfaces of different cutting edges depending on the tool Ta. The end face of the tool Ta in the tool has different parameters 361-365 and 371-375 respectively. In managing such end faces, it is possible to specify the tool Ta from the integer part of the T number 341 (or a predetermined number of digits from the top), and specify a different end face from a decimal point or less (or from the predetermined number of digits). A symbol defining such an end face is referred to as a suffix. One tool Ta may be designated by combining the numerical value of T number 341 and a suffix, but description thereof will be omitted.

Fig. 21 shows a modification 340a of the tool data screen 340. In fig. 21 a T-numbered 3 drill bit and a T-numbered 5 turning tool for multiple use are shown. For these cutters, a suffix 341a is displayed adjacent to the right side of the value 345. The suffix 341a is denoted by a letter, but when the program code is input as a T number, ABC … Z is converted into "01", "02", "03" … "26", or ABC … Z is converted into "61", "62", "63" … "86". For a tool not showing the suffix 341a, 00 is appended to the end of the T number of the input program code 302 as a suffix. In the following description, when the tool of fig. 21 is described, the T number output by the program code 302 will be used for description. For example, the turning bit is described as having a T number of 3.08. In addition, the suffix 341a may be displayed not by letters but by numbers. The position of the suffix 341a displayed may be in another place (for example, between the T-number 341 and the icon 342).

In the present modification, as information to be referred to from a combination of the T number 341 and the suffix 341a, a numerical value corresponding to at least one of the X value 362, the Y value 363, the Z value 364, the R value 365, the Xd value 371, the Yd value 372, the Zd value 373, the Rd value 374, and the direction value 375 managed on the tool offset screen 360 is included. Note that, value 345 may be managed to correspond to R value 365 or X value 362, value 346 may be managed to correspond to Z value 364, and value 347 may be managed to correspond to X value 362 or R value 365.

The drill bit with T number 3.00 and the turning bit with T number 3.08 are the same tool. However, since the drill bit having a T number of 3.00 is used for drilling, tool radius compensation is required during machining. On the other hand, since the turning bit with T number 3.08 is used for turning, tool length compensation (or nose radius compensation) is required during machining. Thus, even with the same tool, the suffix 341a is valid in order to manage parameters that require different compensation. If the tool length compensation, the tool radius compensation, and the nose radius compensation based on the T number are effective, if T03.00(T003.00) is specified in the program code 302, the tool radius compensation considering the nominal diameter of 5.0mm, for example, is set. If T03.08(T003.08) is specified in program code 032, then a tool length offset of (5.0, 0.0, 123.0) is set, for example, for tool length compensation. The processor 151 of the machine tool 100 may determine which of the tool length compensation, the tool radius compensation, and the cutting edge radius compensation is appropriate by referring to the name 344 indicating the machining site, the range of the suffix 341a, and the like instead of the G41 command, the G42 command, the G43 command, and the G44 command when the machining program 157 is executed.

The programmer can input T numbers suitable for tool length compensation, tool radius compensation, and cutting edge radius compensation of machining into the program in the following manner with reference to the program editing screen 300 and the tool data screen 340. (1) In the program editing screen 300, an insertion portion into which the T number is inserted is specified by an operation such as a tap, a click, or a pointer movement. (2) With reference to the tool data screen 340, a line for displaying a tool suitable for machining and a parameter for compensating for an error in machining is selected by tapping or clicking. (3) The enter button 348 is tapped or clicked. Thus, the T number with a suffix corresponding to the tool selected in (2) is input to the insertion site designated in (1) in the program code 302.

< method for editing machining program and processing flow of machining program editing program >

Next, turning in the present embodiment will be described. Fig. 22 is a flowchart showing a machining program editing method and the processing of the machining program editing program 221(159) in the present embodiment. The processor 210(151) executes the machining program editor 221(159) to perform the operation shown in fig. 22. First, the processor 210(151) acquires the tool information 158 of the tool Ta attachable to the machine tool 100 (step S1). The tool information 158 includes at least one of a T number 341 corresponding to the tool Ta, a name (tool name) 343 of the tool Ta, dimensions 345 to 347 of the tool Ta, and parameters 362 to 365, 371 to 375 for compensating for an error in the cutting process, for example. The parameters for compensating errors in cutting processing include at least one of parameters 362-364, 371-373 for tool length compensation, parameters 365, 374, 375 for tool radius compensation, and parameters 365, 374, 375 for nose radius compensation.

Preferably, the tool information 158 further includes cumulative wear amounts 351, 352 accumulated due to use of the tool Ta. The tool information 158 may be read from the memory 220(152) of the machine tool that executes the machining program editing program 221(159), but the latest tool information 158 stored in the memory 152 of the machine tool 100 may be acquired. In particular, the accumulated wear amounts 351 and 352 may be calculated by the machine tool 100 (processor 151) based on the usage pattern and the usage time of the tool Ta of the machine tool 100, stored in the memory 152, and read out by the processor 210 via the network 290. This enables the cumulative wear amounts 351, 352 of the tool Ta used in the various machining programs 157 to be uniformly managed.

Next, the processor 210(151) executes a process of displaying the program editing screen 300 on the display 240(154), the program editing screen 300 displaying the program code 302 for controlling the machining program 157 of the machine tool 100 (step S2). In the case of the program code 302 being edited, the processor 210(151) reads in the program code being edited from the memory 220(152) and displays it on the display 240 (154). Next, the first display information displayed on at least one of the auxiliary screens 310 (the first auxiliary screen 312 and the second auxiliary screen 314) is specified (step S3). The display information is selected from any one of the tool data screen 340, the tool offset screen 360, the macro variable screen 380, the macro input screen 390, the G code list screen 320, and the M code list screen 330. In step S3, it is preferable that the display screen be selected in advance by default, a display screen that is frequently used by the programmer, or a display screen that is displayed when the previous editing is finished when the program code 302 is being edited.

Next, the processor 210(151) executes a process of displaying at least one auxiliary screen 310 (step S4). More specifically, the processor 210(151) executes a process of displaying the first auxiliary screen 312 and the second auxiliary screen 314 on the display 240(154) as at least one auxiliary screen 310. The processor 210(151) executes processing for displaying the program editing screen 300 and at least one auxiliary screen 310 on the display 240(154) in an aligned manner on the display 240 (154). In step S4, the processor 210(151) executes a process of further displaying on the display 240(154) a display information selection screen 316 for selecting information (display information) to be displayed on the at least one auxiliary screen 310 from among the tool information, the control method, and information other than the tool information and the control information. The other information includes at least one of macro variables (macro variables displayed on the macro variable screen 380) specified in the program code 302 and character sets 391 to 394 used for programming (character sets displayed on the macro input screen 390). The processor 210(151) executes a process of displaying a switching setting screen 318 for designating one of the first auxiliary screen 312 and the second auxiliary screen 314 on the display 240 (154).

Next, the processor 210(151) determines whether there is a request for switching the display information (step S5). The processor 210(151) can determine the presence or absence of the switching request by detecting an event in which the OK button 317 of the display information selection screen 316 is operated. When there is a request for switching the display information (yes in step S5), the processor 210(151) acquires information of the auxiliary screen designated on the switching setting screen 318, and designates the auxiliary screen for switching the display information based on the information (step S6). The processor 210(151) reads the display information selected on the display information selection screen 316 from the memory 220(152) (step S7). Further, returning to step S4, the processor 210(151) performs a process of displaying the display information selected on the display information selection screen 316 on the at least one auxiliary screen 310 (step S4). More specifically, the processor 210(151) displays the display information selected on the display information selection screen 316 on the auxiliary screen designated on the switching setting screen 318.

In step S4 immediately after the macro variable screen 380 and the macro input screen 390 are designated in step S3, the first auxiliary screen 312 and the second auxiliary screen 314 do not display any of the tool information of the tool Ta and the control method of the tool Ta. However, even if the macro variable screen 380 and the macro input screen 390 are designated in step S3, since any one of the tool data screen 340, the tool offset screen 360, the G code list screen 320, and the M code list screen 330 is displayed in step S7, at least one of the auxiliary screens 310 displays at least one of the tool information of the tool Ta and the control method of the tool Ta in step S4 executed again thereafter. The display of the control method of the tool Ta is a display of either the G code list screen 320 or the M code list screen 330.

As described above, in step S4, the processor 210(151) can execute the processing of displaying the tool data screen 340, the tool offset screen 360, the macro variable screen 380, the macro input screen 390, the G code list screen 320, and the M code list screen 330 on at least one of the auxiliary screens 310 (the first auxiliary screen 312 and the second auxiliary screen 314). The processor 210(151) and the display 240(154) perform the following characteristic operations when displaying them.

(1) The processor 210(151) executes a process of displaying a code of any one of the G code and the custom code (M code) other than the G code on one of the at least one auxiliary screen 310. The display 240(154) displays the code of any one of the G code and the custom code other than the G code on one of the at least one auxiliary screen 310.

(2) The processor 210(151) executes processing for further displaying the control contents 322 and 332 of the code of the arbitrary party on the one auxiliary screen. The display 240(154) displays the control content of any one of the G code and the custom code other than the G code on one of the at least one auxiliary screen 310.

(3) The processor 210(151) performs a process of further displaying keys 329, 339 for inputting EOB on the one auxiliary screen. The display 240(154) displays keys 329, 339 for inputting EOB on one of the at least one auxiliary screen 310.

(4) The processor 210(151) executes a process of displaying any one of first tool information (at least one of the tool information 158: 341 to 347, 351, 352 associated with the T number 341 in the program code 302) and second tool information (at least one of the tool information 158: 361 to 365, 371 to 375 associated with at least one of the H number and the D number in the program code 302) on one of the at least one auxiliary screen 310. The display 240(154) displays one of the first tool information and the second tool information on one of the at least one auxiliary screen 310.

(5) The processor 210(151) performs a process of further displaying an M06 command input button 353 for inputting an M06 command into the program code 302 on the auxiliary screen (tool data screen 340) displaying the first tool information. The display 240(154) further displays an M06 command input button 353 for inputting an M06 command to the program code 302 on the auxiliary screen (tool data screen 340) on which the first tool information is displayed.

(6) The processor 210(151) executes processing for further displaying a T00 input button 354 for inputting a T number of an unspecified tool Ta to the program code 302 on the auxiliary screen (tool data screen 340) on which the first tool information is displayed. The display 240(154) further displays a T00 input button 354 for inputting a T number of an unspecified tool Ta to the program code 302 on the auxiliary screen (tool data screen 340) on which the first tool information is displayed.

(7) The processor 210(151) executes a process of further displaying, on the auxiliary screen (tool offset screen 360) on which the second tool information is displayed, a reference number 361 associated with the second tool information, an H number input button 368 for inputting the reference number 361 as an H number into the program code 302, and a D number input button 367 for inputting the reference number 361 as a D number into the program code 302. The display 240(154) further displays, on the auxiliary screen (tool offset screen 360) on which the second tool information is displayed, a reference number 361 associated with the second tool information, an H number input button 368 for inputting the reference number 361 as an H number into the program code 302, and a D number input button 367 for inputting the reference number 361 as a D number into the program code 302.

(8) The processor 210(151) executes processing of the input buttons 396 to 398 for displaying symbols used in combination with the character sets 391 to 394 on the auxiliary screen (macro input screen 390) on which the character sets 391 to 394 are displayed. The display 240(154) further displays input buttons 396 to 398 for symbols used in combination with the character sets 391 to 394 on an auxiliary screen (macro input screen 390) on which the character sets 391 to 394 are displayed.

Next, when there is no request for switching the display information (no in step S5), the processor 210(151) specifies an insertion site of a newly inserted code in the program code 302 (step S8). In the control device 150, the processor 151 can specify an insertion portion by a tap of the touch panel of the display with touch panel 154. In the computer 200, the processor 210 can designate the insertion site using a click of a mouse in the input interface 250 or a pointer movement of a keyboard in the input interface 250.

Next, at least one insertion information to insert the program code 302 is selected in the at least one auxiliary screen 310 (step S9). When the tool data screen 340, the tool offset screen 360, the G code list screen 320, and the M code list screen 330 are displayed on at least one of the auxiliary screens 310, at least one of the tool information and the control method is selected. The insertion information is selected, for example, as follows.

(1) In the G code list screen 320, the line of the G code 321 is selected by tapping or clicking.

(2) In the M-code list screen 330, a line of the M-code 331 is selected by tapping or clicking.

(3) In the tool data screen 340, a tool (and a line for displaying a parameter for compensating for an error in machining) is selected by tapping or clicking.

(4) In the tool offset screen 360, a row for displaying a parameter for compensating for an error in the cutting process is selected by tapping or clicking.

(5) In the macro variable screen 380, the row on which the variable name 381 is displayed is clicked or tapped.

(6) In the macro input screen 390, any one of a control command 391, a function code 392, a comparison operator 393, and an external output instruction 394 is clicked or tapped.

Next, the processor 210(151) accepts an insertion request to insert the selected insertion information into the program code 302 (step S10). The insertion request is an event in which the input button 328, 338, 348, 395, the D number input button 367, the H number input button 368, the variable input button 385, or the comment input button 386 is operated (clicked or tapped). In addition, the insertion request may also include an event that the line feed key 329, 339, 398, the M06 instructs the enter button 353, the T00 enter button 354, the arithmetic operator key 396, or the space key 397 to be operated (clicked or tapped).

If the insertion request is accepted, the processor 210(151) converts the insertion information into a code (step S11). When the input buttons 328, 338, 348, 395 and the variable input button 385 are operated, any one of the selected G code 321, the selected M code 331, the T number of the selected tool, the selected control command 391, the function code 392, the comparison operator 393, the external output command 394, and the selected variable name 381 become program codes, respectively. When the D number input button 367 is operated, the processor 210(151) converts the selected reference number 361 to a D number to which a character D is added at the head. When the H number input button 368 is operated, the processor 210(151) converts the selected reference number 361 to an H number to which a character H is added at the head. When the comment input button 386 is operated, the processor 210(151) converts the selected comment 383 into a character string with parentheses added on both sides.

Next, the processor 210(151) inserts the converted code into the program code 302 (step S12). If the processor 210(151) selects at least one of the cutter information and the control method in the at least one auxiliary screen 310 using steps S8 to S12, a command corresponding to the at least one of the information is inserted into the insertion portion of the program code 302. For example, if the H number input button 368 is operated in a state where the reference number 361 is designated in the auxiliary screen (tool offset screen 360) for displaying the second tool information, the processor 210(151) inserts the H number including the reference number into the insertion portion in the program code 302. In a state where the reference number 361 is designated in the auxiliary screen (tool offset screen 360) for displaying the second tool information, if the D number input button 367 is operated, the processor 210(151) inserts the D number including the reference number 361 into the insertion portion in the program code 302. In a state where the comment 383 is designated on the macro variable screen 380, if the comment input button 386 is operated, the processor 210(151) inserts a character string including the comment 383 into an insertion portion in the program code 302.

Next, the processor 210(151) waits for a program end request (step S13). The program end request is an end event of the machining program editor 221 (159). If there is no program end request (NO in step S13), it returns to step S4. If there is a program end request (yes in step S13), the processor 210(151) saves the edited program code 302 in the memory 220(152) (step S14), and ends.

< actions and effects of embodiments >

In the machine tool 100, the machining program creating and editing method for the machine tool 100, and the machining program editing program 221(159) for editing the machining program for the machine tool according to the present embodiment, the tool information 158 of the tool Ta attachable to the machine tool 100 is acquired. The program editing screen 300 and at least one auxiliary screen 310 are displayed in an array, and the at least one auxiliary screen 310 displays at least one of the tool information 158 of the tool Ta and the control method of the tool Ta. An insertion site where a code is newly inserted is specified in the program code 302, and if information of at least one of the tool information and the control method is selected in the at least one auxiliary screen 310, a command corresponding to the at least one information is inserted into the insertion site of the program code 302. This makes it possible to easily refer to and insert the tool information 158 of the tool Ta and the control method of the tool Ta required for editing the program code 302. As a result, the programming of the machining program 157 is made efficient.

The order of execution of the steps in the flowchart of fig. 22 can be changed within a range in which the processing result does not change. In fig. 22, steps S13 and S14 may be omitted. In this case, after the process of step S12, the process returns to step S4. In the case where at least one auxiliary screen 310 has only one auxiliary screen, step S6 may be omitted. In the present embodiment, a part of the tool data screen 340, the tool offset screen 360, the macro variable screen 380, the macro input screen 390, the G code list screen 320, and the M code list screen 330 may be omitted. However, it is preferable that at least one of the tool data screen 340, the tool offset screen 360, the G code list screen 320, and the M code list screen 330 is not omitted.

The display information selection screen 316 and the switching setting screen 318 may be omitted. In this case, the contents displayed on at least one auxiliary screen 310 of the tool data screen 340, the tool offset screen 360, the macro variable screen 380, the macro input screen 390, the G code list screen 320, and the M code list screen 330 are not switched and displayed. In this case, steps S3, S5 to S7 may be omitted in fig. 22.

In the present application, "include" and its derivatives are non-limiting terms that specify the presence of the stated elements, and do not exclude the presence of other elements not recited. This also applies to "having," "including," and derivatives thereof.

The terms "member", "portion", "element", "body" and "structure" may have various meanings such as a single part or a plurality of parts.

An ordinal number such as "first" or "second" is used merely to identify constituent terms and does not have other meanings (e.g., a particular order, etc.). For example, having a "first element" does not imply the presence of a "second element," and having a "second element" does not imply the presence of a "first element.

The terms "substantially", "about" and "approximately" indicating a degree may mean a reasonable deviation of the end result without significant change. All numbers recited herein are to be interpreted as including words such as "substantially", "about" and "approximately".

In the present application, the word "at least one of a and B" should be interpreted to include only a, only B, and both a and B.

It is apparent that various changes and modifications of the present invention can be made in view of the above disclosure. Therefore, the present invention can be carried out by a method different from the specific disclosure of the present application without departing from the scope of the present invention.

Description of the reference numerals

100: machine tool

151. 210: processor with a memory having a plurality of memory cells

152. 220, and (2) a step of: memory device

154. 240: display device

154. 250: interface (I)

157: machining program

158: tool information

159. 221: machining program editing program

300: program editing screen

310: at least one auxiliary picture

312: first auxiliary picture

314: second auxiliary picture

316: displaying information selection screens

318: the setting screen is switched.

54页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:生产管理装置、生产管理方法以及生产管理程序

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类