WO2021014517A1 - 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム - Google Patents

工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム Download PDF

Info

Publication number
WO2021014517A1
WO2021014517A1 PCT/JP2019/028560 JP2019028560W WO2021014517A1 WO 2021014517 A1 WO2021014517 A1 WO 2021014517A1 JP 2019028560 W JP2019028560 W JP 2019028560W WO 2021014517 A1 WO2021014517 A1 WO 2021014517A1
Authority
WO
WIPO (PCT)
Prior art keywords
tool
screen
information
code
program
Prior art date
Application number
PCT/JP2019/028560
Other languages
English (en)
French (fr)
Inventor
洋明 松澤
祐生 山本
拓朗 片山
守邦 木村
Original Assignee
ヤマザキマザック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ヤマザキマザック株式会社 filed Critical ヤマザキマザック株式会社
Priority to PCT/JP2019/028560 priority Critical patent/WO2021014517A1/ja
Priority to EP19938681.4A priority patent/EP3859464B1/en
Priority to JP2019567393A priority patent/JP6654740B1/ja
Priority to CN201980093408.9A priority patent/CN113518953A/zh
Publication of WO2021014517A1 publication Critical patent/WO2021014517A1/ja
Priority to US17/477,537 priority patent/US11940769B2/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/409Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using manual input [MDI] or by using control panel, e.g. controlling functions with the panel; characterised by control panel details, by setting parameters
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13046Display status of edited program segments: inserted, deleted, replaced
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/36Nc in input of data, input key till input tape
    • G05B2219/36088Machining parameters, overide
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a machine tool, a machine tool machining program editing method, and a program for editing a machine tool machining program.
  • Patent Document 1 discloses a processing program editing device that displays a program and an auxiliary screen in close proximity and reflects the data of the auxiliary screen in the program by touch operation.
  • Patent Document 2 is an NC (Numerically Controlled) program that displays a GUI (graphic user interface) screen of codes that can be input to a program on an auxiliary screen and can insert a code selected on the GUI screen into a program code. The input device is disclosed.
  • NC Numerically Controlled
  • the technical issue disclosed in this application is to make it easy for programmers to find the code necessary for editing a machine tool machining program.
  • the machine tool machining program editing method includes a program editing screen that acquires tool information of tools that can be mounted on the machine tool and displays a program code of the machining program for controlling the machine tool.
  • At least one auxiliary screen that displays at least one of the tool information of the tool and the tool control method is displayed side by side, and the insertion point where a new code is inserted is specified in the program code, and at least one When at least one of the tool information and the control method is selected on the auxiliary screen, an instruction corresponding to at least one information is inserted at the insertion point of the program code.
  • the machine tool machining program editing method displays information to be displayed on at least one auxiliary screen other than the tool information, the control method, and the tool information and the control information.
  • the display information selection screen for selecting from the above information is further displayed, and the display information selected on the display information selection screen is displayed on at least one auxiliary screen.
  • the machine tool machining program editing method displays the first auxiliary screen and the second auxiliary screen as at least one auxiliary screen, and the first The switching setting screen for designating either the auxiliary screen or the second auxiliary screen is displayed, and the display information selected in the display information selection screen is displayed on the auxiliary screen specified in the switching setting screen.
  • other information in the method of editing a machine tool machining program according to the second or third aspect, includes macro variables specified in the program code and a character set used in programming. It is configured to include at least one.
  • the machine tool machining program editing method is such that the character set includes at least one of a function code, an external output command, and an operator that defines a mathematical function. It is composed.
  • the machine tool machining program editing method according to the fourth or fifth aspect further comprises a symbol input button used in combination with the character set on the auxiliary screen for displaying the character set. indicate.
  • the machine tool machining program editing method is configured such that the control method includes a G code and a customized code other than the G code. Then, the machining program editing method displays a code of either a G code or a customized code on one of the auxiliary screens of at least one auxiliary screen.
  • the machine tool machining program editing method according to the seventh aspect further displays the control content of one of the codes on one auxiliary screen.
  • the machine tool machining program editing method according to the seventh or eighth aspect further displays a key button for inputting an EOB on one auxiliary screen.
  • the tool information includes the T number corresponding to the tool, the name of the tool, the dimensions of the tool, and the tool. , Configured to include at least one of the parameters for correcting errors in cutting.
  • the machining program editing method of the machine tool according to the tenth aspect is configured such that the tool information further includes the cumulative wear amount accumulated by the use of the tool.
  • the parameters for correcting the error in the cutting process are the parameters for performing the tool length correction and the tool diameter. It is configured to include at least one of the parameters for performing the correction and the parameters for performing the nose R correction.
  • the tool information includes the first tool information associated with the T number in the program code and the program. It is configured to include a second tool information associated with at least one of the H and D numbers in the code.
  • the machining program editing method displays either the first tool information or the second tool information on one of the auxiliary screens of at least one auxiliary screen.
  • the machining program editing method of the machine tool according to the 13th aspect is configured such that the first tool information includes the cumulative wear amount accumulated by the use of the tool.
  • the machine tool machining program editing method is the M06 command for inputting the M06 command into the program code on the auxiliary screen for displaying the first tool information. Show more input buttons.
  • a T number that does not specify a tool is set as a program code on the auxiliary screen for displaying the first tool information.
  • the T00 input button for inputting to is further displayed.
  • the second tool information includes parameters for performing tool length correction and tool diameter correction. It is configured to be either a parameter for or a parameter for performing nose R correction.
  • the machining program editing method includes a reference number associated with the second tool information, an H number input button for inputting the reference number as an H number in the program code, and an H number input button on the auxiliary screen for displaying the second tool information.
  • the D number input button for inputting the reference number as the D number in the program code is further displayed, and the H number input button is operated with the reference number specified on the auxiliary screen for displaying the second tool information.
  • the D number input button is operated. Insert the D number including the reference number at the insertion point in the program code.
  • a program editing screen and at least one auxiliary screen are displayed in one display. ..
  • the machine tool includes a memory for storing tool information of a tool that can be attached to the machine tool, a program editing screen for displaying a program code of a machining program for controlling the machine tool, and a tool.
  • a program editing screen for displaying a program code of a machining program for controlling the machine tool
  • a tool To specify at least one display that displays at least one auxiliary screen that displays at least one of the tool information and the tool control method side by side, and an insertion point where a new code is inserted in the program code.
  • a processor that inserts an instruction corresponding to at least one information into the insertion point of the program code. Be prepared.
  • the machine tool displays information displayed on at least one auxiliary screen by the display, other than the tool information, the control method, and the tool information and the control information.
  • the display information selection screen for selecting from the information is further displayed, and the display information selected in the display information selection screen is displayed on at least one auxiliary screen.
  • the display displays the first auxiliary screen and the second auxiliary screen as at least one auxiliary screen, and the first auxiliary screen. It is configured to display the switching setting screen for specifying either the and the second auxiliary screen, and to display the display information selected on the display information selection screen on the auxiliary screen specified on the switching setting screen. ing.
  • the machine tool according to the 20th or 21st aspect includes other information including macro variables specified in the program code and at least one of the character sets used in programming. It is configured as follows.
  • the machine tool according to the 22nd aspect is configured such that the character set includes at least one of a function code defining a mathematical function, an external output command, and an operator.
  • the machine tool according to the 22nd or 23rd aspect further displays a symbol input button used in combination with the character set on the auxiliary screen in which the display displays the character set. It is configured as follows.
  • the machine tool according to any one of the 19th to 24th aspects is configured such that the control method includes a G code and a customized code other than the G code. Is configured such that the display displays one of the G code and the customized code on one of the auxiliary screens of at least one auxiliary screen.
  • the machine tool according to the 25th aspect is configured such that the display further displays the control content of one of the codes on one auxiliary screen.
  • the machine tool according to the 25th or 26th aspect is configured such that the display further displays a key button for inputting an EOB on one auxiliary screen.
  • the tool information includes the T number corresponding to the tool, the name of the tool, the size of the tool, and the error in the cutting process. Is configured to include at least one of the parameters for correcting.
  • the machine tool according to the 28th aspect is configured such that the tool information further includes the cumulative wear amount accumulated by the use of the tool.
  • the parameters for correcting the error in the cutting process are the parameters for performing the tool length correction and the tool diameter correction. It is configured to include at least one of the parameters and the parameters for performing the nose R correction.
  • the tool information is the first tool information associated with the T number in the program code and the H number in the program code. And a second tool information associated with at least one of the D numbers.
  • the machine tool is configured to display either the first tool information or the second tool information on one of the auxiliary screens of at least one auxiliary screen.
  • the machine tool according to the 31st aspect is configured such that the first tool information includes the cumulative wear amount accumulated by the use of the tool.
  • the machine tool according to the 31st aspect or the 32nd aspect has an M06 command input button for inputting the M06 command into the program code on the auxiliary screen on which the display displays the first tool information. It is configured to display further.
  • the machine tool according to any one of the 31st to 33rd aspects inputs a T number that does not specify a tool into the program code on the auxiliary screen on which the display displays the first tool information. It is configured to further display the T00 input button for.
  • the second tool information includes a parameter for performing tool length correction, a parameter for performing tool diameter correction, and a nose. It is configured to be one of the parameters for performing R correction.
  • the machine processor has a reference number associated with the second tool information and an H number input button for inputting the reference number as an H number in the program code on the auxiliary screen on which the display displays the second tool information.
  • the D number input button for inputting the reference number as the D number in the program code is further displayed, and the reference number is specified on the auxiliary screen in which the processor displays the second tool information.
  • the H number input button When the H number input button is operated, the H number including the reference number is inserted at the insertion point in the program code, and the D number input button is specified in the auxiliary screen that displays the second tool information. Is operated, the D number including the reference number is inserted at the insertion point in the program code.
  • the machine tool according to any one of the 19th to 35th aspects is configured such that the program editing screen and at least one auxiliary screen are displayed in the same display.
  • the program for editing a machine tool machining program is a program for acquiring tool information of a tool that can be mounted on the machine tool and displaying a program code of the machining program for controlling the machine tool.
  • the edit screen and at least one auxiliary screen that displays at least one of the tool information of the tool and the tool control method are displayed side by side, and the insertion point where the new code is inserted is specified in the program code.
  • a process of inserting an instruction corresponding to the at least one information into the insertion point of the program code is executed.
  • the program for editing the machining program of the machine tool displays information to be displayed on at least one auxiliary screen as tool information, a control method, and tool information and control information.
  • the display information selection screen for selecting from other information other than the above is further displayed, and the process of displaying the display information selected on the display information selection screen on at least one auxiliary screen is executed.
  • the program for editing the machining program of the machine tool displays the first auxiliary screen and the second auxiliary screen as at least one auxiliary screen.
  • the switching setting screen for specifying either the first auxiliary screen or the second auxiliary screen is displayed, and the display information selected on the display information selection screen is displayed on the auxiliary screen specified on the switching setting screen. Execute the process to be performed.
  • the program for editing the machining program of the machine tool according to the 38th aspect or the 39th aspect other information is used in the macro variables specified in the program code and in the programming. It is configured to contain at least one of the character sets.
  • the character set contains at least one of a function code defining a mathematical function, an external output command, and an operator. It is configured to include.
  • the program for editing the machining program of the machine tool according to the 40th aspect or the 41st aspect is to input a symbol used in combination with the character set on the auxiliary screen for displaying the character set. Executes the process of displaying more buttons.
  • the program for editing the machining program of the machine tool includes a G code and a customized code other than the G code as a control method.
  • the program for editing the machining program executes a process of displaying one of the G code and the customized code on one of the auxiliary screens of at least one auxiliary screen.
  • the program for editing the machine tool machining program according to the 43rd aspect executes a process of further displaying the control content of one of the codes on one auxiliary screen.
  • the program for editing the machining program of the machine tool according to the 43rd aspect or the 44th aspect further displays a key button for inputting an EOB on one auxiliary screen. Execute.
  • the tool information includes the T number corresponding to the tool, the name of the tool, and the tool. It is configured to include at least one of the dimensions and parameters for correcting errors in the cutting process.
  • the program for editing the machining program of the machine tool according to the 46th aspect is configured such that the tool information further includes the cumulative wear amount accumulated by the use of the tool.
  • the program for editing the machining program of the machine tool according to the 46th aspect or the 47th aspect is the parameter for correcting the error in the cutting process, and the parameter for performing the tool length correction.
  • the tool information is the first tool information associated with the T number in the program code.
  • the second tool information associated with at least one of the H number and the D number in the program code.
  • the program for editing the machining program executes a process of displaying either the first tool information or the second tool information on one of the auxiliary screens of at least one auxiliary screen.
  • the program for editing the machining program of the machine tool according to the 49th aspect is configured such that the first tool information includes the cumulative wear amount accumulated by the use of the tool.
  • the program for editing the machine tool machining program according to the 49th or 50th aspect is for inputting the M06 command into the program code on the auxiliary screen for displaying the first tool information.
  • the process of further displaying the M06 command input button of is executed.
  • the program for editing the machining program of the machine tool according to any one of the 49th to 51st aspects is a T number in which no tool is specified on the auxiliary screen for displaying the first tool information. Is executed to further display the T00 input button for inputting to the program code.
  • the program for editing the machining program of the machine tool is the parameter for performing the tool length correction, and the tool diameter. It is configured to be either a parameter for performing correction or a parameter for performing nose R correction.
  • the program for editing the machining program inputs the reference number associated with the second tool information and the H number for inputting the reference number as the H number in the program code on the auxiliary screen for displaying the second tool information.
  • the button and the D number input button for inputting the reference number as the D number in the program code are further displayed, and the H number is input with the reference number specified on the auxiliary screen for displaying the second tool information.
  • the button When the button is operated, the H number including the reference number is inserted at the insertion point in the program code, and the D number input button is operated with the reference number specified on the auxiliary screen for displaying the second tool information. Then, the process of inserting the D number including the reference number at the insertion point in the program code is executed.
  • the program for editing the machining program of the machine tool has a program editing screen and at least one auxiliary screen in one display. Execute the displayed process.
  • Tools required for editing the program code of the machining program by the machine tool machining program editing method according to the first aspect, the machine tool according to the 19th aspect, and the program for editing the machining program of the machine tool according to the 37th aspect It is possible to easily refer to and insert the tool information and the tool control method. As a result, the programming of the machining program is streamlined.
  • a lot of information such as tool information, control method, and information other than tool information and control information can be displayed on at least one auxiliary screen.
  • a lot of information such as tool information, control method, and information other than tool information and control information can be displayed while switching to at least one auxiliary screen. it can.
  • the macro variable and the character set used in programming are frequently used in programming, so that the programming of the machining program is further streamlined.
  • the function code, the external output command, and the operator are particularly frequently used in the machining programming of the machine tool in the character set, so that the programming of the machining program is further performed. Is streamlined.
  • the twenty-fourth aspect, and the 42nd aspect since the input button of the symbol used in combination with the character set is further displayed, the programming of the machining program is further made more efficient.
  • the G code frequently used in programming the machining program and the customized code other than the G code are displayed separately on the auxiliary screen, so that the machining program Programming is further streamlined.
  • the programmer can know the control contents of the G code and the customized code without referring to the manual, so that the programming of the machining program is further efficient. Be transformed.
  • a line feed character (“;" (EOB)) is frequently inserted before and after the G code or the customized code, and from the one auxiliary screen.
  • EOB line feed character
  • the name of the tool, the dimensions of the tool, and the parameters for correcting the error in the cutting process are important for selecting the T number to be input to the program code. Information. Therefore, by including this information as tool information, the programming of the machining program becomes more efficient.
  • the programmer can grasp the appropriateness of using the tool and the replacement time by checking the cumulative wear amount. Therefore, it becomes easy to select a tool suitable for the machining program.
  • the tool length correction, the tool diameter correction, and the nose radius correction are methods for correcting errors in frequently used cutting. Therefore, the programming of the machining program is further streamlined.
  • the first tool information and the second tool information may include a common parameter for correcting an error in the cutting process, and the same auxiliary screen may be used.
  • the same auxiliary screen may be used.
  • the cumulative wear amount is used when selecting a tool, that is, selecting a T number. Therefore, the convenience of the programmer is further improved by displaying it on the auxiliary screen as the first tool information.
  • the M06 command is highly related to the T code, it is more convenient for programming to be able to directly input the M06 command from the auxiliary screen displaying the first tool information. high. Therefore, the M06 command input button is displayed on the auxiliary screen for displaying the first tool information, so that the programming of the machining program is further made more efficient.
  • the T number that does not specify a tool is often used in combination with the M06 directive. Therefore, since the T00 input button is displayed on the same screen as the M06 command input button, the programming of the machining program is further streamlined.
  • the number of auxiliary screens can be reduced. Furthermore, a D number input button and an H number input button are displayed on the auxiliary screen that displays the second tool information, and the reference number is converted into the D number / H number by operating these buttons and inserted into the program code. be able to. This allows the programmer to easily enter the selected parameters into the program code.
  • the program editing screen and at least one auxiliary screen are not displayed on separate displays because they are closely related to the editing of the machining program.
  • the programming of the machining program is further streamlined.
  • FIG. 1 is a diagram showing a schematic configuration of a machine tool according to an embodiment and a system including a computer for editing a machine tool machining program.
  • 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 is an example of the G code list screen.
  • FIG. 6 is another example of the G code list screen.
  • FIG. 7 is an example of the M code list screen.
  • FIG. 8 is another example of the M code list screen.
  • FIG. 9 is an example of the tool data screen.
  • FIG. 10 is another example of the tool data screen.
  • FIG. 11 is a diagram for explaining the concept of tool length offset correction.
  • FIG. 1 is a diagram showing a schematic configuration of a machine tool according to an embodiment and a system including a computer for editing a machine tool machining program.
  • FIG. 2 is a hardware block
  • FIG. 12 is a diagram for explaining the concept of tool length offset correction.
  • FIG. 13 is a diagram for explaining the concept of tool diameter correction.
  • FIG. 14 is a diagram showing a tool diameter offset in a mill tool.
  • FIG. 15 is a diagram for explaining the concept of nose R correction.
  • FIG. 16 is a diagram for explaining the concept of the cutting edge direction.
  • FIG. 17 is an example of a tool offset screen.
  • FIG. 18 is another example of the tool offset screen.
  • FIG. 19 is an example of the macro variable screen.
  • FIG. 20 is an example of a macro input screen.
  • FIG. 21 is a modified example of the tool data screen.
  • FIG. 22 is a flowchart showing the processing of the machining program editing program.
  • 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 machine tool machining program, and a network 290 connecting the machine tool 100 and the computer 200.
  • the network 290 is, for example, a LAN (local area network) installed in a factory.
  • the network 290 shown is a wired network, but the network 290 may be a wireless network.
  • the X-axis shown in FIG. 1 is along the height direction of the machine tool 100, the Y-axis is along the depth direction of the machine tool 100, and the Z-axis is along the width direction of the machine tool 100.
  • the axis parallel to the rotation axis A3 of the work spindle 122 that holds the work is defined as the Z axis based on the JIS standard. In this embodiment, this coordinate system is called a work coordinate system.
  • the machine tool 100 performs cutting (machining) on the work W1. Cutting includes at least one of turning and milling. The cutting process may further include drilling. As shown in FIG. 1, the machine tool 100 includes a column 110, a work headstock 120, and a tool changing device 130. The column 110, the work headstock 120, and the tool changing device 130 are arranged on the base 140.
  • the column 110 can be moved 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 can swivel around the swivel axis A1 along the Y-axis direction with respect to the column 110.
  • a tool spindle 114 is attached to the tool spindle 112.
  • the tool spindle 114 is rotatable about the rotation axis A2 with respect to the tool spindle 112.
  • the rotation axis A2 is orthogonal to the turning axis A1.
  • a first tool T1 which is a cutting tool (machining tool) is held in the tool spindle 114.
  • a cutting tool is a concept that includes a turning tool and a mill tool.
  • the drill used for drilling is regarded as one of the mill tools.
  • the intersection of the axis A1 and the axis A2 is called the machine origin Om
  • the rotating axis A2 is the Zm axis
  • the swirling axis A1 is the Ym axis
  • the direction from the machine origin Om toward the tip of the first tool T1 is the positive direction of the Zm axis.
  • the X-axis of the work coordinate system when the X-axis of the work coordinate system is rotated around the Y-axis so that the positive direction of the Z-axis of the work coordinate system faces the same direction as the positive direction of the Zm axis of the machine coordinate system.
  • the positive direction is the positive direction of the Xm axis of the machine coordinate system.
  • the positive direction of the Y axis of the work coordinate system is defined as the positive direction of the Ym axis of the machine coordinate system.
  • the work spindle 120 includes a work spindle 122.
  • the work spindle 122 is rotatable around the rotation axis A3.
  • the rotation axis A3 is along the Z-axis direction.
  • the work W1 is mounted on the work spindle 122.
  • the tool changing device 130 replaces the cutting tool mounted on the tool spindle 114.
  • the tool changing device 130 includes a magazine arm 132 and a stocker 134.
  • the magazine arm 132 can rotate about an axis along the Z-axis direction.
  • the magazine arm 132 can move in the X-axis direction with respect to the stocker 134.
  • the stocker 134 stores a plurality of cutting tools Ts side by side in the X-axis direction.
  • the plurality of cutting tools Ts housed in the stocker 134 include a second tool T2 that can be replaced with the first tool T1.
  • the cutting tool is replaced by the tool changing device 130 according to the following procedure.
  • the column 110 approaches the tool changer 130 in the Z-axis direction with the rotation axis A2 along the Z-axis direction.
  • the magazine arm 132 has a first gripper at one end in the extending direction of the magazine arm 132 and a second gripper at the other end in the extending direction.
  • the first gripper grips the first tool T1 mounted on the tool spindle 114 in order to remove the first tool T1 mounted on the tool spindle 114. More specifically, when the magazine arm 132 turns around an axis along the Z-axis direction by a predetermined turning angle, the first gripper grips the first tool T1, and at the same time, the second gripper is housed in the stocker 134.
  • the machine tool 100 is provided with a control device 150 in order to control rotation around each rotation axis, rotation around each rotation axis, and movement in each axis direction.
  • the control device 150 is connected to the base 140.
  • the control device 150 may be connected to another part of the machine tool 100, and may be installed separately from the base 140 as long as the control signal can be transmitted and the detection result can be received.
  • FIG. 2 is a hardware block diagram of the control device 150.
  • the control device 150 includes a processor 151, a memory 152, a communication circuit 153, and a display 154 with a touch panel.
  • the processor 151, the memory 152, the communication circuit 153, and the display 154 with a touch panel are connected to each other via the bus 155.
  • the memory 152 stores programs and data required for processing.
  • the processor 151 reads the program stored in the memory 152 and executes the read program.
  • Each function realized by the control device 150 includes control of the execution of turning.
  • the memory 152 stores the machining program 157.
  • the machining program 157 includes control commands for executing turning.
  • the communication circuit 153 has a communication packet-to-data conversion function, a data-to-data-to-communication packet conversion function, and a communication packet transmission / reception function for communicating with the computer 200 via the network 290.
  • the memory 152 works like the second tool T2 among the tool Ta (for example, the first tool T1 and the plurality of cutting tools Ts stored in the stocker 134) that can be mounted on the machine tool 100.
  • the tool information 158 of all cutting tools that can be mounted on the machine 100) is stored.
  • the tool information 158 is transmitted to the computer 200 via the network 290 by the communication circuit 153. Further, the tool information 158 is read from the memory 152 when the machining program editing program 159, which will be described later, is executed. A detailed description of the tool information 158 will be described later.
  • the memory 152 may store the machining program editing program 159 for editing the machining program 157. Normally, the machining program editing program 159 is executed when modifying a part of the machining program 157. However, the machining program 157 may be created from the beginning by executing the machining program editing program 159.
  • the display 154 with a touch panel does not have to be one display 154, but may be a collection of a plurality of displays.
  • the display of the display 154 with a touch panel 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 by a combination of a display without a touch panel and an input device such as a button, a switch, a lever, or a pointing device provided around the display. In that case, the input device is an example of an interface.
  • FIG. 3 is a hardware block diagram of the computer 200.
  • the computer 200 includes a processor 210, a memory 220, a communication circuit 230, a display 240, and an input interface 250.
  • the processor 210, the memory 220, the communication circuit 230, the display 240, and the input interface 250 are connected to each other via the bus 260.
  • the input interface 250 is an example of an interface and refers to a pointing device such as a keyboard or a mouse.
  • the computer 200 may be one in which the display 240 and the input interface 250 are integrated, such as 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 above-mentioned machining program 157, and a program such as data and an operating system necessary for executing the program.
  • the machining program editing program 221 has substantially the same function as the machining program editing program 159. However, the screen display method of the machining program editing program 221 may be partially different from the screen display method of the machining program editing program 159.
  • the memory 220 may further store the machining program 157 edited by the machining program editing program 221.
  • the processor 210 reads the program stored in the memory 220 and executes the read program.
  • the communication circuit 230 has a communication packet-to-data conversion function, a data-to-data-to-communication packet conversion function, and a communication packet transmission / reception function for communicating with the control device 150 via the network 290.
  • the computer 200 uses the communication circuit 230 to transmit the machining program 157 edited by using the machining program editing program 221 to the control device 150. Further, when the machining program editing program 221 is executed, the computer 200 acquires the above-mentioned tool information 158 from the control device 150 by using the communication circuit 230, and stores the tool information 158 in the memory 220.
  • the machining program 157 is described by a program code for numerically controlling the machine tool 100. Further, the program code is composed of a character string composed of an alphabet and a numerical value, and for example, the following code is prepared.
  • G code Code that specifies the preparatory function for machining (for example, the movement mode of the tool, etc.)
  • M code Code that plays an auxiliary role in G code
  • T number Number that specifies the cutting tool
  • S number Machine tool Number that specifies the spindle rotation speed, etc.
  • F number Number that specifies the feed speed, etc. of the turning tool
  • X, Y, Z, U, V, W, A, B, C Symbol that specifies the coordinate axes N + Numerical value: Sequence number. Specify the jump position in the program.
  • the G code is standardized as ISO6983.
  • the M code includes a customized code independently determined by the machine tool manufacturer.
  • the M code may further include a standardized code. ⁇ Overall display screen> FIG.
  • 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 with the exception described later.
  • the display screen 30 includes a program editing window 300 and at least one assistance window 310.
  • the program edit screen 300 and at least one auxiliary screen 310 are displayed in one display 240/154.
  • the program code 302 of the machining program 157 for controlling the machine tool 100 is displayed on the program edit screen 300.
  • the line number 308 indicating the position of the program code 302 is also displayed on the program edit screen 300, but the line number 308 may be omitted.
  • auxiliary screen 310 Information referred to by the programmer when editing the program code 302 is displayed on at least one auxiliary screen 310.
  • a first auxiliary screen 312 and a second auxiliary screen 314 are displayed as at least one auxiliary screen 310.
  • at least one auxiliary screen 310 may display one auxiliary screen or three or more auxiliary screens.
  • the program edit screen 300 and at least one auxiliary screen 310 are displayed side by side.
  • the program edit 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.
  • the display mode of the program editing screen 300 and at least one auxiliary screen 310 is not limited to this, and the positions of the program editing screen 300 and at least one auxiliary screen 310 may be reversed. Further, the program editing screen 300 and at least one auxiliary screen 310 may be displayed vertically or diagonally side by side.
  • At least one auxiliary screen 310 may not be displayed on one side of the program editing screen 300.
  • a part of at least one auxiliary screen 310 (for example, the first auxiliary screen 312) and the rest of at least one auxiliary screen 310 (for example, the second auxiliary screen 314) sandwich the program editing screen 300.
  • the program edit screen 300 and at least one auxiliary screen 310 may be displayed.
  • the program editing screen 300 and at least one auxiliary screen 310 may not be displayed side by side in one direction.
  • 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
  • at least one auxiliary screen 310 surrounds the program editing screen 300. It may be displayed. That is, it is sufficient that each of at least one auxiliary screen 310 is displayed side by side on the program edit screen 300.
  • each of at least one auxiliary screen 310 is displayed in the vicinity of the program editing screen 300.
  • 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 partially overlaps with the program editing screen 300. You may.
  • the display information displayed on at least one auxiliary screen 310 is at least one of the tool information of the tool Ta that can be mounted on the machine tool 100 and the control method of the tool Ta. That is, the display 240 (154) has a program edit screen 300 for displaying the program code 302 of the machining program 157 for controlling the machine tool 100, tool information of the tool Ta that can be attached to the machine tool 100, and the tool Ta of the tool Ta.
  • the control method and at least one auxiliary screen 310 displaying at least one of them are displayed side by side (side by side).
  • the program editing screen 300 may be displayed on one of the displays provided side by side, and at least one auxiliary screen 310 may be displayed on the other.
  • the tool information includes, for example, a T number corresponding to the tool Ta, a name of the tool Ta, a dimension of the tool Ta, and at least one of parameters for correcting an error in cutting.
  • the control method of the tool Ta includes the above-mentioned G code and M code. That is, the control method includes a G code and a customized code other than the G code. Therefore, the display 240 (154) displays a code of either a G code or a customized code other than the G code on one auxiliary screen of at least one auxiliary screen 310.
  • the tool data screen (Tool Data window) 340 whose main purpose is to input the T number corresponding to the cutting tool to be used is the first auxiliary screen 312, and the main purpose is to input the G code.
  • the G code list screen (G-Code List window) 320 is displayed as the second auxiliary screen 314.
  • 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.
  • each of the second auxiliary screens 314 of the first auxiliary screen 312 is a tool offset screen (Tool Offset window) for inputting the amount of misalignment of the cutting edge position of the cutting tool with respect to the reference point of the tool spindle 114.
  • Tool Offset window for inputting the amount of misalignment of the cutting edge position of the cutting tool with respect to the reference point of the tool spindle 114.
  • M code list screen M-Code List window
  • Macro variable screen Macro Variables window
  • Character set used in programming Any one of the macro input screens (MacroInputwindow) 390 for easily inputting (character set) may be displayed instead.
  • the information displayed on at least one auxiliary screen 310 may include information other than the tool information of the tool Ta and the control method of the tool Ta described above.
  • the other information includes at least one of the macro variables specified in the program code 302, the character set used in programming.
  • the character set includes at least one of a function code that defines a mathematical function, an external output command, and an operator.
  • the display screen 30 is a display for selecting information to be displayed on at least one auxiliary screen 310 (this information is hereinafter referred to as display information) from the above-mentioned tool information, control method, and other information.
  • the information selection screen (displayed information selection window) 316 is further included. That is, the display 240 (154) further displays the display information selection screen 316 for selecting the information to be displayed on at least one auxiliary screen 310 from the tool information, the control method, and other information described above. To do.
  • the display information selection screen 316 is displayed between the program edit screen 300 and at least one auxiliary screen 310.
  • the display position of the display information selection screen 316 is not limited to this.
  • the display information selection screen 316 may be displayed on the lower side or the left side of the program edit screen 300.
  • the display information selection screen 316 is preferably displayed between the program editing screen 300 and at least one auxiliary screen 310.
  • the display information selection screen 316 has character strings corresponding to each 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. It is displayed in the select box. When the programmer taps or clicks one of these strings, the information to be displayed on at least one auxiliary screen 310 is selected. In addition, on the display information selection screen 316, other input means such as a radio button and a check box may be displayed instead of the select box. In the example of FIG. 4, the character string of "tool data" representing the tool data screen is selected.
  • a switching setting screen 318 for designating either the first auxiliary screen 312 or the second auxiliary screen 314 is displayed. That is, the display 240 (154) displays a switching setting screen 318 for designating either the first auxiliary screen 312 or the second auxiliary screen 314.
  • the schematic positions of the first auxiliary screen 312 and the second auxiliary screen 314 are iconified, and when one of the icons is selected, the icon becomes active. In the example of FIG. 4, the "1" icon indicating the first auxiliary screen 312 is active.
  • the display 240 displays the display information selected on the display information selection screen 316 on at least one auxiliary screen 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.
  • ⁇ G code list screen> 5 and 6 are display examples of the G code list screen 320.
  • the G code 321 is displayed on the left side of the G code list screen 320.
  • the group number 321G to which the G code 321 belongs is displayed on the right side of the G code 321.
  • the control content 322 of the G code 321 is displayed on 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 favorite display button 324 is displayed at the upper end of the G code list screen 320.
  • FIG. 5 shows the G code list screen 320 in a state where the favorite display button 324 is off.
  • FIG. 6 shows the G code list screen 320 in the state where the favorite display button 324 is on.
  • a scroll bar 320S is displayed at the right end of the G code list screen 320. The programmer can display the G code in a desired range on the G code list screen 320 by moving the scroll bar 320S.
  • FIG. 6 when the favorite display button 324 is on, only the favorite G code is displayed as the G code 321.
  • FIG. 6 when the favorite display button 324 is on, only the favorite G code is displayed as the G code 321.
  • the scroll bar is not displayed. However, if the number of favorite G codes is larger than the maximum number of lines to be displayed on the G code list screen 320, the scroll bar is displayed.
  • the G codes are displayed in the order of the G code numbers in FIGS. 5 and 6, the G code 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 the past predetermined period. ..
  • Buttons 325 to 326 related to favorite registration / cancellation are displayed at the lower right corner of the G code list screen 320.
  • the G code 321 and the group number 321G, the control content 322, and the mark 323 are associated and managed line by line. Therefore, when any one of the G code 321 and the group number 321G and the control content 322 is clicked or tapped, the G code 321, the group number 321G, and the control related to the same line as the clicked or tapped item are used. Content 322 is selected, and black and white reverse display is performed.
  • the favorite registration button 325 is clicked or tapped in that state, the favorite mark 323 is displayed on the left side of the selected G code 321 and the selected G code 321 is managed as a favorite.
  • any one of the G code 321 of the favorite G code 321 line, the group number 321G, the control content 322, and the mark 323 is clicked or tapped, and the favorite release button 326 is clicked or tapped. Then, the selected G code 321 is released from the favorites, and the favorite mark 323 on the left side of the selected G code 321 disappears.
  • the all favorite release button 327 is clicked or tapped, a pop-up window is displayed asking whether to cancel all favorites, and if the programmer approves the release, the management of favorites is released for all favorite G-codes 321. , All marks 323 disappear.
  • the 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 by referring to the program edit screen 300 and the G code list screen 320.
  • the insertion point for inserting the G code is specified by tapping, clicking, moving the cursor, or the like (hereinafter, the designated place is referred to as an insertion place).
  • the designated place is referred to as an insertion place.
  • (2) Refer to the G code list screen 320 and select the line of the G code 321 you want to enter by tapping or clicking.
  • Tap or click the input button 328 As a result, the G code 321 selected in (2) is inserted into the insertion location specified by (1) in the program code 302.
  • a line feed key button 329 is further displayed at the lower end of the G code list screen 320.
  • the line feed key button 329 is clicked or tapped after the insertion point for inserting the line feed character (";" (EOB)) in the program code 302 is specified by tapping, clicking, moving the cursor, etc., the line feed character (";" (EOB)) is inserted at the insertion point in the program code 302.
  • the input to the input button 328 is unnecessary.
  • Line feed characters (“;" (EOB)) are frequently inserted before and after the G code, and by making it possible to input EOB from the line feed key button 329 displayed on the G code list screen 320, in particular. It is not necessary to display a separate screen keyboard for inputting EOB on the display 154 with a touch panel of the machine tool 100. As a result, programming on the machine tool 100 is streamlined.
  • the display mode of the G code list screen 320 shown in FIGS. 5 and 6 is merely an example, and may be another display mode.
  • the display position of the button or text does not have to be the one shown in FIGS. 5 and 6.
  • the input button 328 may be represented by a symbol or a symbol instead of the text
  • the line feed key button 329 may be represented by another symbol, a symbol or a text.
  • the mark buttons 323 to 327 related to favorites may be represented by other symbols, symbols, or texts, or may be deleted.
  • ⁇ M code list screen> 7 and 8 are display examples of the M code list screen 330. With reference to FIGS. 7 and 8, the 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 on 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 favorite display button 334 is displayed at the upper end of the M code list screen 330.
  • FIG. 7 shows the M code list screen 330 in a state where the favorite display button 334 is off.
  • FIG. 8 shows the M code list screen 330 in the state where the favorite display button 334 is on.
  • a scroll bar 330S is displayed at the right end of the M code list screen 330. The programmer can display the M code in a desired range on the M code list screen 330 by moving the scroll bar 330S.
  • the favorite display button 334 is on, only the favorite M code is displayed as the M code 331.
  • the scroll bar is not displayed. However, if the number of favorite M codes is larger than the maximum number of lines to be displayed on the M code list screen 330, the scroll bar is displayed. Although the chords are displayed in the order of the M code numbers in FIGS. 7 and 8, the M code 331 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 the past predetermined period. ..
  • Buttons 335 to 336 related to favorite registration / cancellation are displayed at the lower right corner of the M code list screen 330.
  • the M code 331, the control content 332, and the mark 333 are associated and managed line by line. Therefore, when 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 line as the clicked or tapped item are selected and black-and-white inverted. It will be displayed.
  • the favorite registration button 335 is clicked or tapped in that state, the 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.
  • the 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 by referring to the program edit screen 300 and the M code list screen 330. (1) In the program edit screen 300, specify the insertion point for inserting the M code by tapping, clicking, moving the cursor, or the like. (2) Refer to the M code list screen 330 and select the line of the M code 331 you want to enter by tapping or clicking. (3) Tap or click the input button 338. As a result, the selected M code 331 is inserted at the insertion point in the program code 302.
  • a line feed key button 339 is further displayed at the lower end of the M code list screen 330.
  • the line feed key button 339 is clicked or tapped after the insertion point for inserting the line feed character (";" (EOB)) in the program code 302 is specified by tapping, clicking, moving the cursor, etc., the line feed character (";" (EOB)) is inserted at the insertion point in the program code 302.
  • the input to the input button 338 is unnecessary.
  • Line feed characters (“;" (EOB)) are frequently inserted before and after the M code, and by making it possible to input EOB from the line feed key button 339 displayed on the M code list screen 330, in particular. It is not necessary to display a separate screen keyboard for inputting EOB on the display 154 with a touch panel of the machine tool 100. As a result, programming on the machine tool 100 is streamlined.
  • the display mode of the M code list screen 330 shown in FIGS. 7 and 8 is merely an example, and may be another display mode.
  • the display position of the button or text does not have to be the one shown in FIGS. 7 and 8.
  • the input button 338 may be represented by a symbol or a symbol instead of text
  • the line feed key button 339 may be represented by another symbol, a symbol or a text.
  • the mark buttons 333 to 337 related to favorites may be represented by other symbols, symbols, or texts, or may be deleted.
  • ⁇ Tool data screen> 9 and 10 are display examples of the tool data screen 340. With reference to FIGS. 9 and 10, on the tool data screen 340, the T number 341 corresponding to each of the tool Ta is displayed at the left end.
  • a symbol 342 schematically representing each of the tools Ta is displayed.
  • the symbol 342 is optional.
  • the tool name 343 of each tool Ta is displayed.
  • the name 344 indicating the machined part is displayed to the right of the tool name 343.
  • a numerical value 345 of each nominal diameter or nominal diameter of the tool Ta is displayed. A decimal point is described at the end of the numerical value 345, which means that the decimal point or more is in millimeters.
  • the nominal diameter is displayed only on the turning tool (T06), and the nominal diameter is displayed on the remaining tools. Whether the nominal or nominal diameter is displayed as the numerical value 345 depends on the type of tool.
  • Multiple parameters are displayed on the right side of the numerical value 345. If the tool corresponding to the T number 341 is easily supported by any of the tool name 343 and the numerical value 345, the display of these plurality of parameters may be omitted. In the examples of FIGS. 9 and 10, the parameter display of the end mill (T01) is omitted. In addition, arrow buttons 349a and 349b are displayed in the lower right corner of the tool data screen 340, and the range of T number 341 displayed on the tool data screen 340 can be changed by clicking or tapping the arrow buttons 349a and 349b. be able to.
  • the value 346 of the tool length or the axial offset is displayed on the right side of the value 345.
  • the tool length is the length of the tool Ta in the direction along the rotation axis A2 (hereinafter referred to as the axial direction) when the tool Ta is attached to the tool spindle 114.
  • the tool length is the length of the tool Ta in the machine coordinate system in the Zm axis direction.
  • the axial offset is the axial distance from the base end point of the tool Ta to the cutting edge tip (tool tip) of the tool Ta when the tool Ta is attached to the tool spindle 114.
  • the base end point of the tool Ta is an end point belonging to the portion of the tool Ta gripped by the tool spindle 114 among the two end points along the axial direction of the tool Ta when the tool Ta is attached to the tool spindle 114. ..
  • the axial offset is the distance in the Zm axis direction from the base end point of the tool Ta to the tip end of the cutting edge in the machine coordinate system.
  • the axial offset is displayed only for the turning tool (T06), and the tool length is displayed for the remaining tools. Whether the tool length or the axial offset is displayed as the number 346 depends on the type of tool.
  • a numerical value 347 of the tool radius or the radial offset is displayed at the right end of the tool data screen 340.
  • the tool radius is the direction (hereinafter referred to as the radial direction) perpendicular to the rotation axis A2 when the wear-free (new) tool Ta is attached to the tool spindle 114.
  • the radial offset is a radial coordinate value from the base end point of the tool Ta to the cutting edge of the tool Ta when the wear-free (new) tool Ta is attached to the tool spindle 114. ..
  • This coordinate value is the value of the Xm coordinate of the cutting edge of the tool Ta when the tool Ta is attached to the tool spindle 114 when the tool spindle 112 is in the posture shown in FIG.
  • the description of the numerical value 347 is omitted.
  • the radial offset is displayed as a numerical value 347
  • the face mill (T08)
  • the tool radius is displayed as a numerical value 347. Whether the tool radius or the axial offset is displayed as the value 347 or whether the value 347 is omitted depends on the type of tool.
  • the numerical value 351 of the cumulative wear amount in the axial direction is displayed on the right side of the numerical value 345.
  • the cumulative wear amount in the axial direction is the cumulative wear amount in the axial direction of the cutting edge tip of the tool Ta.
  • the cumulative wear amount is the amount of wear accumulated by using the tool Ta, and can be calculated by the machine tool 100 from the usage mode and usage time of the tool Ta.
  • the programmer or the operator may input the cumulative wear amount while observing the usage mode of the tool Ta. By checking the cumulative wear amount, the programmer can grasp the appropriateness of using the tool Ta and the replacement time.
  • the display of the cumulative wear amount may be omitted. In the example of FIG.
  • the display of the numerical value 351 is omitted in the end mill (T01) and the drill (T03). Further, a numerical value 352 of the cumulative wear amount in the radial direction is displayed at the right end of the tool data screen 340. The cumulative wear amount in the radial direction is the cumulative wear amount in the radial direction of the cutting edge of the tool Ta. In the example of FIG. 10, the display of the numerical value 352 is omitted in the end mill (T01) and the drill (T03). Tool information other than the above can be displayed on the tool data screen 340, but this will be described in detail in a modified example 340a of the tool data screen in the subsequent stage.
  • the T number 341, the symbol 342, the tool name 343, the name 344 indicating the machined part, and the numerical values 345 to 347, 351 and 352 are associated with each line and are associated with the T number in the program code 302.
  • the tool information 158 associated with the T number 341 in the program code 302 is referred to as the first tool information.
  • the tool information includes the first tool information, and the first tool information includes a reference number 361, an X value 362, a Y value 363, a Z value 364, an R value 365, a T number 341, a symbol 342, and a tool, as described later.
  • the name 343, the name 344 indicating the processed portion, and at least one of the numerical values 345 to 347, 351 and 352 are included.
  • the first tool information includes cumulative wear amounts 351 and 352 accumulated by using the tool.
  • the input button 348 is displayed at the lower left end of the tool data screen 340.
  • the programmer can refer to the program edit screen 300 and the tool data screen 340 and input the T number related to the tool suitable for machining into the program as follows.
  • Tap or click the input button 348 As a result, the T number corresponding to the tool selected in (2) is inserted into the insertion location specified by (1) in the program code 302. In this embodiment, "00" may be additionally inserted as the T number after the two digits of the T number 341.
  • the programmer can edit the axial offset, the radial offset, and the amount of wear among the values displayed on the tool data screen 340 on the tool data screen 340.
  • This editing can be performed, for example, by the following procedure. (1) Select the part to be edited on the tool data screen 340 by tapping, long-pressing, clicking, etc. to make it editable (for example, displayed as a form tag). (2) When displaying on a display with a touch panel like the control device 150 of the machine tool 100, an input interface such as a screen keyboard and a screen ten keyboard is additionally displayed. (3) Enter the value using the keyboard or the on-screen input interface shown in (2).
  • the tap / click described above may be a single tap / single click or a double tap / double click, respectively.
  • the editing method is not limited to the above method, and other means such as another GUI / voice input may be used.
  • the axial offset, the radial offset, the amount of wear, and the like may be edited by a program other than the machining program editing program 221 (159).
  • an M06 command input button 353 for inputting the M06 command to the program code 302 is further displayed.
  • the M06 command is a tool change command.
  • a T00 input button 354 for inputting a T number that does not specify a tool into the program code 302 is further displayed.
  • T00 is a T number for designating that the tool is not mounted on the tool spindle 114 or that the tool is not mounted on the magazine arm 132.
  • a code indicating T00 is described in the above-mentioned ⁇ T code of the tool to be replaced next> in the program code.
  • the code is inserted. In the input using the T00 input button 354, the input to the input button 348 is unnecessary.
  • the T00 can be input from another input means (keyboard (one of the input interfaces 250) or a screen keyboard separately displayed on the display screen 30), but it is frequently used in combination with the M06 command. There are many. Therefore, programming is streamlined by displaying the T00 input button 354 on the same screen (tool data screen 340) as the M06 command input button 353.
  • the display mode of the tool data screen 340 shown in FIGS. 9 and 10 is merely an example, and may be another display mode.
  • the display position of the button or text does not have to be the one shown in FIGS. 9 and 10.
  • the input button 348 may be represented by a symbol or a symbol instead of the text, and the arrow buttons 349a and 349b may be represented by another symbol or a symbol.
  • the tool Ta is displayed in the order of the T number on the tool data screen 340, but the tool Ta is 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 the past predetermined period. It may be displayed.
  • the tool length compensation means to correct the misalignment (offset) between the reference point Ps and the tip of the cutting edge of the tool Ta. As shown in FIGS. 11 and 12, the reference point Ps is located on the Zm axis passing through the machine origin Om, and coincides with the above-mentioned base end point of the tool Ta when 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 depending on the type of the tool Ta and the wear state. Therefore, in the machining program 157, the program code is described as if the machine tool origin Om passes through the cutting position of the work W1, but the position of the cutting edge tip of the tool Ta with respect to the machine tool origin Om is the tool length offset ( It is managed separately from the movement programmed as tool length offset), and the machine tool 100 corrects the tool length offset and executes the machining program 157.
  • 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 the Xm coordinate Xsd of the cutting edge tip Eg when the reference point Ps in the tool spindle 114 is the origin of the machine coordinate system.
  • Yf coincides with the Ym coordinate Ysd of the cutting edge tip Eg when the reference point Ps is the origin of the machine coordinate system.
  • Zf is the sum of the Zm coordinate Zp of the reference point Ps and the Zm coordinate Zsd of the cutting edge tip Eg when the reference point Ps is the origin of the machine coordinate system.
  • Zp is predetermined by the specifications of the machine tool 100.
  • the shape offset is a cutting edge when a wear-free (new) tool Ta is attached to the tool spindle 114 and the origin is the base end point of the tool Ta (reference point Ps in the tool spindle 114).
  • Xm coordinates, Ym coordinates, and Zm coordinates (Xs, Ys, Zs) up to the tip Eg. Zs coincides with the axial offset of the tool Ta described above.
  • Xs and Ys coincide with the radial offset described above.
  • the wear compensation parameter expresses the amount of deviation from the shape offset described above due to the wear of the tool Ta in the machine coordinate system.
  • the tool length offsets Xf, Yf, and Zf are expressed by the following equations.
  • Tool diameter correction is the cutting edge between the reference point Ps and the tool Ta (periphery that forms the maximum diameter of the tool Ta when viewed from the rotation axis A2 direction of the tool Ta) in milling and drilling. It means to correct the misalignment (offset).
  • the position of the cutting edge of the tool Ta with respect to the machine origin Om varies depending on the type of the tool Ta and the wear state. Therefore, in the machining program 157, the program code is described so that the machine tool origin Om passes through the cutting position of the work W1, but the position of the cutting edge of the tool Ta with respect to the machine tool origin Om is set as a tool radius offset. Separately managed, the machine tool 100 corrects the tool diameter offset and executes the machining program 157.
  • FIG. 13 shows an example of the tool path Lc when the tool diameter is corrected when the outside of the target contour Ct is milled.
  • the tool diameter offset Df is the distance between the machine origin Om and the cutting edge of the tool Ta as seen from the rotation axis A2 direction of the tool Ta.
  • the machine origin Om of the tool Ta is controlled to move along the path Lc separated from the target outer shape Ct by the tool diameter offset Df or more.
  • the path Lc Can be mathematically obtained by a known method.
  • FIG. 14 is a diagram showing a tool diameter offset Df in a mill tool.
  • the tool diameter offset Df of the mill tool is illustrated, but the same can be considered for a drill used for drilling.
  • the concept of nose radius compensation will be described. Since the nose of the tool is generally rounded, the imaginary tool tip Egv defined by the tool length offset does not come into contact with the work W1 and has a radius of curvature R different from the virtual edge point Egv.
  • the cutting edge Eg whose shape is defined by the arc comes into contact with the work W1.
  • the outer shape Cr is processed so as to deviate from the target outer shape Ct as shown in FIG.
  • the center Eo of the arc of the radius of curvature R deviates from the target outer shape Ct by passing through the path Lo that is farther from the target outer shape Ct than the radius of curvature R.
  • An example is shown in which the outer shape Cr is processed.
  • the nose R correction is based on the direction from the center Eo of the arc that defines the shape of the cutting edge Eg in the work coordinate system toward the virtual cutting edge point Egv (nose direction) and the radius of curvature R of the arc. It means to correct the movement path of the virtual cutting edge point Egv so that the path of the center Eo of the arc is the path Lc separated from the target outer shape Ct by the radius of curvature R. As a result, as shown in FIG. 15, the path of the virtual cutting edge point Egv is corrected so as to be a path Lvc that passes through the inside of the work W1 with respect to the target outer shape Ct. It should be noted that the movement path of the machine origin Om can be obtained from the path Lvc of the virtual cutting edge point Egv by using the tool length correction.
  • FIG. 16 illustrates the cutting edge direction.
  • the total cutting edge direction [0] (and the cutting edge direction [9]) corresponds to all the cutting edge directions perpendicular to the Y axis of the work coordinate system.
  • the nine cutting edge directions are shown in the figure.
  • the cutting edge direction [1] is a direction toward the X-axis positive direction and the Z-axis positive direction of the work coordinate system.
  • the cutting edge direction [2] is a direction toward the X-axis positive direction and the Z-axis negative direction of the work coordinate system.
  • the cutting edge direction [3] is a direction toward the negative X-axis direction and the negative Z-axis direction of the work coordinate system.
  • the cutting edge direction [4] is a direction toward the negative X-axis direction and the positive Z-axis direction of the work coordinate system.
  • the cutting edge direction [5] is a direction toward the Z-axis positive direction of the work coordinate system.
  • the cutting edge direction [6] is a direction toward the positive X-axis direction of the work coordinate system.
  • the cutting edge direction [7] is a direction toward the negative Z-axis direction of the work coordinate system.
  • the cutting edge direction [8] is a direction toward the negative X-axis direction of the work coordinate system.
  • the path Lvc of the virtual cutting edge point Egv can be obtained from the correspondence relationship between (Xo, Yo, Zoo) and (Xgv, Ygv, Zgv) described above.
  • the path Lvc is obtained, the movement path of the machine origin Om is obtained from the path Lvc by the tool length correction in which the virtual cutting edge point Egv is regarded as the cutting edge tip Eg.
  • the concept of wear can be introduced in the nose R correction.
  • the tool length offset (Xf, Yf, Zf) is obtained by adding the wear compensation parameter used in the tool length compensation to the tool length of the (new) tool Ta without wear, and the radius of curvature when there is no wear.
  • the radius of curvature R may be obtained by subtracting the amount of wear Rd from Ro.
  • ⁇ Tool offset screen> 17 and 18 are display examples of the tool offset screen 360.
  • the H number for referring to the offset value in the G43 command / G44 command (tool length correction) and the offset value in reference to the G41 command / G42 command (tool diameter correction) can be referred to.
  • the reference number 361 which is referred to as any of the D numbers, is displayed at the left end of the tool offset screen 360. This reference number 361 is not directly associated with the tool Ta. 17 and 18 are switched by a switching button (not shown).
  • the Ym coordinate of the cutting edge tip Eg with the wear-free (new) tool Ta used for tool length correction attached to the tool spindle 114, or the cutting edge A Y value 363 representing the Ym coordinate of the virtual cutting edge point Egv in a state where the wear-free (new) tool Ta used for rounding correction is attached to the tool spindle 114 is displayed.
  • the Zm coordinate of the cutting edge tip Eg or the nose with the wear-free (new) tool Ta used for tool length correction attached to the tool spindle 114.
  • a Z value 364 representing the Zm coordinate of the virtual cutting edge point Egv in a state where the wear-free (new) tool Ta used for R correction is attached to the tool spindle 114 is displayed.
  • the radius of curvature Rs of the arc used for tool diameter correction or the radius of curvature Ro of the arc that defines the shape of the cutting edge Eg when there is no wear used for nose R correction is displayed.
  • Arrow buttons 369a and 369b are displayed in the lower right corner of the tool offset screen 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.
  • an Xd value 371 representing the Xm coordinate of the wear correction parameter used at the time of tool length correction or nose R correction is displayed on the right side of the reference number 361.
  • a Yd value 372 representing the Ym coordinate of the wear correction parameter used for tool length correction or nose R correction is displayed.
  • a Zd value 373 representing the Zm coordinate of the wear correction parameter used for tool length correction or nose R correction is displayed.
  • an Rd value 374 representing the amount of wear Rd in the radial direction used for tool diameter correction or nose R correction is displayed.
  • the direction values 375 corresponding to the above-mentioned cutting edge directions [0] to [9] are displayed.
  • the direction value 375 is displayed as 0.
  • Reference numbers 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 are associated line by line and are programmed. It is associated with at least one of the H number and the D number in the code 302.
  • 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 the second tool information.
  • the tool information includes the second tool information, and the second tool information includes 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.
  • One reference number 361 manages an offset value of any one of tool length correction, tool diameter correction, and nose radius correction. That is, the second tool information is any one of a parameter for performing tool length correction, a parameter for performing tool diameter correction, and a parameter for performing nose R correction. Since such a management method is adopted, 0 is displayed in the R value 365, the Rd value 374, and the direction value 375 in the same line as the reference number 361 corresponding to the tool length correction. 0 is displayed for 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 line as the reference number 361 corresponding to the tool diameter correction.
  • a D number input button 367 and an H number input button 368 are displayed.
  • G43 command or G44 command is first input to the program code 302 on the G code list screen 320, keyboard (one of the input interfaces 250), etc., and then H is displayed on the program edit screen 300. Specify the insertion location to insert the number by tapping, clicking, moving the cursor, etc.
  • (2) Refer to the tool offset screen 360, and tap or tap the line displaying the X value 362, Y value 363, Z value 364, Xd value 371, Yd value 372, and Zd value 373 suitable for tool length correction. Click to select.
  • the H number in which the character H is added to the beginning of the reference number 361 of the column selected in (2) is inserted into the insertion position specified by (1) in the program code 302.
  • H03 or H003 is input to the program code 302.
  • the G43 command / G44 command that refers to the reference number 361 input in this way is valid until the G49 command is called and the tool length correction is canceled, or the offset value is changed by the additional G43 command / G44 command. It becomes.
  • G41 command or G42 command is first input to the program code 302 on the G code list screen 320, keyboard (one of the input interfaces 250), etc., and then D is displayed on the program edit screen 300. Specify the insertion location to insert the number by tapping, clicking, moving the cursor, etc.
  • the direction value 375 is specified as 0.
  • (3) tap or click the D number input button 367.
  • the D number in which the character D is added to the beginning of the reference number 361 of the column selected in (2) is inserted into the insertion position specified by (1) in the program code 302.
  • the G41 command / G42 command that refers to the reference number 361 input in this way is valid until the G40 command is called and the tool diameter correction is canceled, or the offset value is changed by the additional G41 command / G42 command. It becomes.
  • the tool length offset related to the virtual cutting edge point Egv is corrected by the tool length correction described above.
  • the tool length correction may be made by the G43 command / G44 command, but may also be made by the T number. This will be described in a modified example 340a of the tool data screen in the subsequent stage.
  • (2) the G41 command or the G42 command is first input to the program code 302 on the G code list screen 320, the keyboard (one of the input interfaces 250), and then the D number is inserted in the program edit screen 300. Specify the insertion location by tapping, clicking, moving the cursor, etc.
  • the line displaying the R value 365, the Rd value 374, and the direction value 375 suitable for the nose R correction is selected by tapping or clicking.
  • the machine tool 100 corrects the positional deviation between the virtual cutting edge point Egv and the center Eo of the arc with reference to the direction value 375. Therefore, in the correction according to (1), it is related to the virtual cutting edge point Egv.
  • the programmer may consider the tool length offset.
  • the tool offset screen 360 thus displays the 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. Is displayed, and the parameters related to the D number and the H number are managed on one auxiliary screen, so that the number of auxiliary screens 310 can be reduced. Further, the D number input button 367 and the H number input button 368 are displayed on the tool offset screen 360, and the reference number 361 is converted into the D number and the H number by operating these buttons and inserted into the program code 302. Can be done. This allows the programmer to easily enter the selected parameters into program code 302.
  • the display mode of the tool offset screen 360 shown in FIGS. 17 and 18 is merely an example, and may be another display mode.
  • the display position of the button or text does not have to be the one shown in FIGS. 17 and 18.
  • the D number input button 367 and the H number input button 368 may be represented by symbols or symbols instead of text, and the arrow buttons 369a and 369b may be represented by other symbols or symbols.
  • the parameters are displayed in the order of the reference number 361 on the tool offset screen 360, but the parameters are 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 the past predetermined period. May be done. ⁇ Macro variable screen> FIG.
  • the macro variable screen 380 is a screen for displaying the numerical values of the macro variables used in the machining program 157 and the contents of the macro variables.
  • a macro variable is a variable associated with a numerical value that is repeatedly used in a program code. Macro variables make it easy to change numbers that are used repeatedly in the program code. Macro variables include common variables that can be used in common in all machining programs executed by the machine tool 100 (100s and 500s are often used) and local variables that can be used in one machining program (general). # 1 to # 33 are used) and system variables that manage the system parameters of the machine tool 100 (generally, the 1000 series or later are used).
  • the macro variable screen 380 displays the numerical values and contents of the common variables.
  • the macro variable screen 380 may display local variables and system variables in the same manner, but the description of display examples of local variables and system variables will be omitted.
  • the variable name 381 is displayed at the left end.
  • the numerical value 382 input to the macro variable indicated by the variable name 381 is displayed.
  • a comment 383 corresponding to the macro variable indicated by the variable name 381 is displayed.
  • the variable name 381, the numerical value 382, and the comment 383 are associated with 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 can be 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 389b. be able to.
  • variable input button 385 and the comment input button 386 are displayed on the lower left side of the macro variable screen 380. Since the variable name 381, the numerical value 382, and the comment 383 are managed in association with each line, when any one of the variable name 381, the numerical value 382, and the comment 383 is clicked or tapped, the click is made. Alternatively, the variable name 381, the numerical value 382, and the comment 383 related to the same line as the tapped item are selected, and black and white reverse display is performed. When the variable input button 385 is clicked or tapped in that state, the macro variable related to the selected variable name 381 is inserted at the insertion point in the program code 302.
  • a character string in which parentheses are added on both sides of the selected comment 383 is inserted at the insertion point in the program code 302.
  • a character string (WORK-NUM) is inserted at the insertion point in the program code 302.
  • a pop-up window for editing the selected variable name 381, numerical value 382, or comment 383 is displayed.
  • the programmer can edit the numerical value 382 and the comment 383 in the pop-up window, and set a macro variable to which the numerical value 382 has not been assigned yet.
  • the display mode of the macro variable screen 380 shown in FIG. 19 is merely an example, and may be another display mode as long as the variable name 381 and the numerical value 382 are displayed.
  • the display position of the button or text does not have to be the one shown in FIG.
  • the comment display switching button 384, the variable input button 385, and the comment input button 386 may be represented by symbols or symbols instead of text, and the arrow buttons 389a and 389b may be represented by other symbols or symbols.
  • the comment 383, the comment display switching button 384, and the comment input button 386 may be omitted.
  • the variable names 381 are displayed in the order of the macro variable numbers on the macro variable screen 380. May be displayed. ⁇ Macro input screen> FIG.
  • the macro input screen 390 is a screen for easily inputting a macro by GUI.
  • the macro refers to a character set used in programming. It is desirable that the character set is a general-purpose or frequently used character set.
  • a macro is an operator 391 for defining a control structure in a program code (hereinafter referred to as a control command 391), a function code 392 for representing a mathematical function, and a comparison operator 393. , And the external output command 394.
  • BCD is a function that converts binary data into BCD (Binary-Coded Decimal) data.
  • BIN is a function that converts BCD data into binary data.
  • FIX is a function that truncates after the decimal point.
  • FUP is a function that rounds up to the nearest whole number.
  • ROUND is a function that outputs an integer by rounding.
  • EQ stands for "equal”
  • NE stands for "not equal”
  • GT stands for "greater than”
  • LT stands for “less than”
  • GE stands for "greater than or equal”. It stands for "to” and LE stands for "less than or equal to”.
  • POPEN is a command for opening the RS232C port.
  • POPEN is called before external data output.
  • SAMLOS is a command to close the RS232C port. SAMLOS is called when the external data output is completed.
  • DPRNT is a command that outputs arguments (character strings and / or numerical values) in ISO code.
  • BPRNT is a command that outputs arguments (character strings and / or numbers) in binary format.
  • Function codes 392 and control instructions 391 other than BCD, BIN, FIX, FUP, and ROUND are also used in general-purpose program languages and are widely known, so description thereof will be omitted.
  • the input button 395 is displayed at the lower end of the macro input screen 390.
  • any one of the control instruction 391, the function code 392, the comparison operator 393, and the external output command 394 is clicked or tapped, the clicked or tapped code is selected, and black and white reverse display is performed. If the input button 395 is clicked or tapped in that state, the selected code is inserted at the insertion point in the program code 302.
  • buttons for symbols used in combination with the above-mentioned character sets 391 to 394-arithmetic operator key button 396, space key button 397, and line feed key button 398 are displayed. That is, the symbol includes arithmetic operators, whitespace characters, and newline characters.
  • the line feed character includes ";" (EOB).
  • a number key (numeric key) button and a decimal point key (decimal key) buttons from 0 to 9 may be additionally displayed on the macro input screen 390. Since the macro input screen 390 not only displays the above-mentioned macro but also displays the symbol input buttons 396 to 398 used in combination with the macro, it is called a programming assistance screen. May be good.
  • the machining program editing program 221 includes arithmetic operators from a keyboard connected to the computer 200 (one of the input interfaces 250) or a screen keyboard separately displayed on the display screen 30. -You may accept input of spaces and line breaks.
  • the processing program editing program 159 may accept input of arithmetic operators, spaces, and line breaks from a screen keyboard separately displayed on the display screen 30.
  • the macro input screen 390 which is an auxiliary screen (programming auxiliary screen) for displaying a character set including at least one of a function code 392 that defines a mathematical function, an external output command 394, and operators 391 and 393, the character set ( Macro) Input buttons 396 to 398 of symbols used in combination with 391 to 394 are also displayed. Therefore, it is possible to save the trouble of inputting after displaying a separate screen keyboard on the display 154 with a touch panel of the machine tool 100. As a result, programming on the machine tool 100 is streamlined.
  • the above macro variables are often input to the argument of the function code 392, the comparison target value of the comparison operator 393, and the argument of the external output command 394.
  • the macro variable screen 380 is displayed on one of the first auxiliary screen 312 and the second auxiliary screen 314, and the macro input screen 390 is displayed 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 merely an example, and may be another display mode.
  • the display position of the button or text does not have to be the one shown in FIG.
  • the input button 395 and the space key button 397 may be represented by symbols or symbols instead of text.
  • the space key button 397 may be displayed as a plain space bar button.
  • the line feed key button 398 may be represented by text or other symbols or symbols. Further, at least one of the arithmetic operator key button 396, the space button 397, and the line feed key button 398 may be omitted.
  • the control instruction 391, the function code 392, the comparison operator 393, and the external output command 394 may include codes other than the code displayed in FIG. 20, and a part of the code displayed in FIG.
  • Tool data screen The basic display screen 30 has been described above. However, as an extended function, it is also possible to manage the parameters 361 to 365 and 371 to 375 managed on the tool offset screen 360 on the tool data screen 340 in association with the T number. In this case, when the tool Ta related to the T number is replaced, the parameters 361 to 365 and 371 to 375 managed in association with the T number regardless of the presence or absence of the G43 command and the G44 command in the program code 302. Tool length correction is performed based on.
  • Some tools Ta enable different cutting processes by using different blade end faces.
  • Each end face of the tool Ta in such a tool will have different parameters 361-365 and 371-375.
  • the tool Ta can be specified by the integer part (or a predetermined digit from the top) of the T number 341, and different end faces can be specified after the decimal point (or after the predetermined digit).
  • a code that defines such an end face is called a suffix.
  • One tool Ta may be specified by combining the numerical value of T number 341 and the suffix, but the description thereof will be omitted in such a case.
  • FIG. 21 shows a modification 340a of the tool data screen 340.
  • a drill having a T number of 3 and a turning tool having a T number of 5 used for a plurality of purposes are displayed.
  • the suffix 341a is displayed to the right of the number 345.
  • the suffix 341a is written in alphabets, but when it is entered as a T number in the program code, ABC ... Z is converted to "01" "02" "03” ... "26” or ABC ... Z. Is converted into “61", “62", “63” ... "86".
  • 00 is added as a suffix at the end of the T number input to the program code 302.
  • the T number output by the program code 302 will be used for description.
  • the turning drill will be described in the form of a T number of 3.08.
  • the suffix 341a may be displayed as a number instead of being displayed as an alphabet. Further, the display position of the suffix 341a may be another place (for example, between the T number 341 and the symbol 342).
  • the X value 362, the Y value 363, the Z value 364, the R value 365, the Xd value 371, and Yd managed by the tool offset screen 360 are used.
  • a numerical value corresponding to at least one of a value 372, a Zd value 373, an Rd value 374, and a direction value 375 is included.
  • the numerical value 345 corresponds to the R value 365 or the X value 362
  • the numerical value 346 corresponds to the Z value 364
  • the numerical value 347 corresponds to the X value 362 or the R value 365. It may be managed.
  • a drill with a T number of 3.00 and a turning drill with a T number of 3.08 are the same as tools. However, since the drill having a T number of 3.00 is used for drilling, it is necessary to correct the tool diameter in the drilling. On the other hand, since a turning drill having a T number of 3.08 is used for turning, tool length correction (or nose R correction) is required in the machining. Thus, the suffix 341a is effective in managing parameters that require different corrections even for the same tool.
  • T03.000 (T003.00) is specified in the program code 302 when tool length correction, tool diameter correction, and nose R correction by T number are effective, for example, a nominal diameter of 5.0 mm is considered. Tool diameter compensation is set.
  • T03.08 (T003.08) is specified in the program code 032, for example, a tool length correction in which the tool length offset is (5.0,0.0,123.0) is set.
  • the processor 151 of the machine tool 100 refers to the range of the name 344 indicating the machining site, the suffix 341a, etc. instead of the G41 command, the G42 command, the G43 command, and the G44 command, and corrects the tool length. It may be determined which of the tool diameter correction and the nose R correction is appropriate.
  • the programmer is programming the T number related to the tool length correction, the tool diameter correction, and the nose R correction suitable for machining during the program as follows. Can be entered in. (1) In the program edit screen 300, the insertion point for inserting the T number is specified by tapping, clicking, moving the cursor, or the like. (2) With reference to the tool data screen 340, tap or click the line displaying the tool suitable for machining and the parameter for correcting the error in cutting. (3) Tap or click the input button 348. As a result, the suffixed T number corresponding to the tool selected in (2) is input to the insertion point specified by (1) in the program code 302.
  • FIG. 22 is a flowchart showing the editing method of the machining program in the present embodiment and the processing of the machining program editing program 221 (159).
  • the processor 210 When the processing program editing program 221 (159) is executed, the processor 210 (151) performs the operation shown in FIG. First, the processor 210 (151) acquires the tool information 158 of the tool Ta that can be mounted on the machine tool 100 (step S1).
  • the tool information 158 is, for example, T number 341 corresponding to the tool Ta, the name of the tool Ta (tool name) 343, the dimensions of the tool Ta 345 to 347, and the parameters 362 to 365 for correcting the error in the cutting process.
  • the parameters for correcting the error in cutting are the parameters 362 to 364, 371 to 373 for performing the tool length correction, the parameters 365, 374, 375 for performing the tool diameter correction, and the nose R correction. Includes at least one of the parameters 365, 374, 375.
  • the tool information 158 further includes the cumulative wear amounts 351 and 352 accumulated by using the tool Ta.
  • the tool information 158 may be read from the memory 220 (152) in the machine that executes the machining program editing program 221 (159), but the latest tool stored in the memory 152 of the machine tool 100 may be read. Information 158 may be acquired.
  • the cumulative wear amounts 351, 352 are calculated by the machine tool 100 (processor 151) from the usage mode and usage time of the tool Ta by the machine tool 100, stored in the memory 152, and read out by the processor 210 via the network 290. You may.
  • the cumulative wear amounts 351 and 352 of the tool Ta used in various machining programs 157 can be centrally managed.
  • the processor 210 executes a process of displaying the program edit screen 300 for displaying the program code 302 of the machining program 157 for controlling the machine tool 100 on the display 240 (154) (step S2).
  • the processor 210 reads the program code being edited from the memory 220 (152) and displays it on the display 240 (154).
  • the first display information to be displayed on at least one auxiliary screen 310 is designated (step S3).
  • the display information is selected from any 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.
  • the display screen is selected in advance by default, the display screen frequently used by the programmer, or the display screen displayed at the end of the previous editing when the program code 302 is being edited. ..
  • the processor 210 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 a process of displaying the program editing screen 300 and at least one auxiliary screen 310 side by side on the display 240 (154) on the display 240 (154).
  • the processor 210 (151) selects the information (display information) to be displayed on at least one auxiliary screen 310 from the tool information, the control method, and information other than the tool information and the control information.
  • a process of further displaying the display information selection screen 316 for selection on the display 240 is executed.
  • the other information includes macro variables specified in the program code 302 (macro variables displayed on the macro variable screen 380) and character sets 391 to 394 used in programming (character sets displayed on the macro input screen 390). Includes at least one of.
  • the processor 210 (151) executes a process of displaying the switching setting screen 318 for designating either the first auxiliary screen 312 or the second auxiliary screen 314 on the display 240 (154).
  • the processor 210 determines whether or not there is a request for switching the display information (step S5).
  • the processor 210 (151) can determine the presence / absence of the switching request by detecting an event in which the OK button 317 of the display information selection screen 316 is operated.
  • the processor 210 acquires the information of the auxiliary screen specified on the switching setting screen 318, and assists in switching the display information based on the information. Specify the screen (step S6).
  • the processor 210 reads the display information selected on the display information selection screen 316 from the memory 220 (152) (step S7).
  • step S4 the processor 210 (151) executes a process of displaying the display information selected on the display information selection screen 316 on 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.
  • 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 control the tool information of the tool Ta and the tool Ta. Do not show any of the methods. However, even if the macro variable screen 380 and the macro input screen 390 are specified in step S3, the tool data screen 340, the tool offset screen 360, the G code list screen 320, and the M code are set in step S7 described above. Since any of the list screens 330 will be displayed, in step S4 to be executed again after that, at least one auxiliary screen 310 is at least one of the tool information of the tool Ta and the control method of the tool Ta. Will be displayed.
  • the display of the tool Ta control method means the display of either the G code list screen 320 or the M code list screen 330.
  • the processor 210 has at least one tool data screen 340, a tool offset screen 360, a macro variable screen 380, a macro input screen 390, a G code list screen 320, and an M code list screen 330. It is possible to execute the process of displaying on the auxiliary screen 310 (first auxiliary screen 312 and second auxiliary screen 314).
  • the processor 210 (151) and the display 240 (154) perform the following characteristic operations in displaying them.
  • the processor 210 (151) displays a code of either a G code or a customized code (M code) other than the G code on one of the auxiliary screens of at least one auxiliary screen 310. Execute the process.
  • the display 240 displays a code of either a G code or a customized code other than the G code on one auxiliary screen of at least one auxiliary screen 310.
  • the processor 210 further executes a process of displaying the control contents 322 and 332 of the one of the codes on the one auxiliary screen.
  • the display 240 displays the control content of either the G code or the customized code other than the G code on one auxiliary screen of at least one auxiliary screen 310.
  • the processor 210 further executes a process of displaying the key buttons 329 and 339 for inputting the EOB on the one auxiliary screen.
  • the display 240 displays key buttons 329 and 339 for inputting EOB on one auxiliary screen of at least one auxiliary screen 310.
  • the processor 210 displays the first tool information (tool information 158: 341 to 347, 351 associated with the T number 341 in the program code 302) on one auxiliary screen of at least one auxiliary screen 310. , At least one of 352) and the second tool information (at least one of tool information 158: 361-365, 371-375 associated with at least one of the H and D numbers in the program code 302). ) And the process of displaying one of them is executed.
  • the display 240 (154) displays either the first tool information or the second tool information on one auxiliary screen of at least one auxiliary screen 310.
  • the processor 210 further displays the M06 command input button 353 for inputting the M06 command into the program code 302 on the auxiliary screen (tool data screen 340) for displaying the first tool information.
  • the display 240 further displays the M06 command input button 353 for inputting the M06 command to the program code 302 on the auxiliary screen (tool data screen 340) for displaying the first tool information.
  • the processor 210 further adds a T00 input button 354 for inputting a T number that does not specify the tool Ta to the program code 302 on the auxiliary screen (tool data screen 340) that displays the first tool information. Execute the process to be displayed.
  • the display 240 further displays a T00 input button 354 for inputting a T number that does not specify the tool Ta into the program code 302 on the auxiliary screen (tool data screen 340) that displays the first tool information.
  • the processor 210 displays the reference number 361 associated with the second tool information and the reference number 361 on the auxiliary screen (tool offset screen 360) displaying the second tool information with the program code 302.
  • a process of further displaying the H number input button 368 for inputting the reference number 361 as the H number and the D number input button 367 for inputting the reference number 361 as the D number in the program code 302 are executed.
  • the display 240 displays the reference number 361 associated with the second tool information and the reference number 361 in the program code 302 on the auxiliary screen (tool offset screen 360) for displaying the second tool information.
  • the H number input button 368 for inputting as a number and the D number input button 367 for inputting the reference number 361 as a D number in the program code 302 are further displayed.
  • the processor 210 (151) further displays the symbol input buttons 396 to 398 used in combination with the character sets 391 to 394 on the auxiliary screen (macro input screen 390) for displaying the character sets 391 to 394. Execute the process.
  • the display 240 further displays the symbol input buttons 396 to 398 used in combination with the character sets 391 to 394 on the auxiliary screen (macro input screen 390) for displaying the character sets 391 to 394.
  • the processor 210 specifies an insertion point in the program code 302 to insert a new code (step S8).
  • the processor 151 can specify the insertion point by tapping the touch panel of the display 154 with a touch panel.
  • the processor 210 can specify the insertion point by clicking with the mouse in the input interface 250 or moving the cursor with the keyboard in the input interface 250.
  • At least one insertion information to be inserted into the program code 302 is selected on at least one auxiliary screen 310 (step S9).
  • 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 auxiliary screen 310, at least one of the above tool information and the above control method.
  • One piece of information is selected.
  • the insertion information is selected as follows. (1) On the G code list screen 320, the line of G code 321 is selected by tapping or clicking. (2) On the M code list screen 330, the line of the M code 331 is selected by tapping or clicking.
  • the tool On the tool data screen 340, the tool (and the line displaying the parameters for correcting the error in the cutting process) is selected by tapping or clicking.
  • the line displaying the parameters for correcting the error in the cutting process is selected by tapping or clicking.
  • the line displaying the variable name 381 On the macro variable screen 380, the line displaying the variable name 381 is clicked or tapped.
  • any one of the control instruction 391, the function code 392, the comparison operator 393, and the external output command 394 is clicked or tapped.
  • the processor 210 receives a request for inserting the selected insertion information into the program code 302 (step S10).
  • the insertion request is an event in which the input buttons 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 are operated (clip or tapped). Is. Further, in the insertion request, the line feed key button 329, 339, 398, the M06 command input button 353, the T00 input button 354, the arithmetic operator key button 396, or the space key button 397 was operated (clip or tapped). It may include an event.
  • the processor 210 Upon receiving the insertion request, the processor 210 (151) converts the insertion information into a code (step S11).
  • the processor 210 converts the insertion information into a code (step S11).
  • the input buttons 328, 338, 348, 395 and the variable input button 385 were operated, the selected G code 321 and the selected M code 331, the T number related to the selected tool, were selected, respectively.
  • the selected variable name 381 of any of the control instruction 391, the function code 392, the comparison operator 393, and the external output command 394 becomes the program code.
  • the processor 210 converts the selected reference number 361 into a D number with the letter D added to the beginning thereof.
  • the processor 210 converts the selected reference number 361 into an H number with the letter H added to the beginning thereof.
  • the processor 210 converts the selected comment 383 into a character string with parentheses added on both sides thereof.
  • the processor 210 inserts the converted code into the program code 302 (step S12). From step S8 to step S12, when at least one of the tool information and the control method is selected on the at least one auxiliary screen 310, the processor 210 (151) issues an instruction corresponding to at least one information. Insert it at the insertion point of the program code 302. For example, when the H number input button 368 is operated in the state where the reference number 361 is specified on the auxiliary screen (tool offset screen 360) for displaying the second tool information described above, the processor 210 (151) is a program code. The H number including the reference number is inserted at the insertion point in 302.
  • the processor 210 When the D number input button 367 is operated in the state where the reference number 361 is specified on the auxiliary screen (tool offset screen 360) for displaying the second tool information described above, the processor 210 (151) is in the program code 302. The D number including the reference number 361 is inserted at the insertion point of. When the comment input button 386 is operated while the comment 383 is specified on the macro variable screen 380, the processor 210 (151) inserts a character string including the comment 383 at the insertion location in the program code 302.
  • the processor 210 waits for the program end request (step S13).
  • the program end request is an end event of the machining program editing program 221 (159). If there is no program end request (No in step S13), the process returns to step S4.
  • the processor 210 (151) saves the edited program code 302 in the memory 220 (152) (step S14) and ends.
  • the tool Ta that can be attached to the machine tool 100.
  • Tool information 158 is acquired.
  • the program edit screen 300 and at least one auxiliary screen 310 for displaying at least one of the tool information 158 of the tool Ta and the control method of the tool Ta are displayed side by side.
  • an insertion point for inserting a new code is specified in the program code 302 and at least one information of the tool information and the control method is selected on at least one auxiliary screen 310, at least one information is supported.
  • the instruction is inserted at the insertion point of the program code 302.
  • the programming of the machining program 157 is streamlined.
  • steps S13 and S14 may be omitted.
  • the process returns to step S4.
  • Step S6 is optional if at least one auxiliary screen 310 has only one auxiliary screen.
  • 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.
  • it is desirable 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.
  • 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 that are displayed on at least one auxiliary screen 310 can be switched. It will be displayed without any notice.
  • steps S3 and S5 to S7 may be omitted in FIG. 22.

Abstract

工作機械の加工プログラム編集方法は、工作機械に装着可能な工具の工具情報を取得し、工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、工具の工具情報と工具の制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示し、プログラムコード中において、新たにコードを挿入する挿入箇所を指定し、少なくとも1つの補助画面において、工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令をプログラムコードの挿入箇所に挿入する。

Description

工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム
 本発明は、工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラムに関する。
 特許文献1は、プログラムと補助画面を近接して表示し、タッチ操作で補助画面のデータをプログラムに反映させる加工プログラム編集装置を開示している。特許文献2は、補助画面にプログラムに入力可能なコードのGUI(グラフィックユーザインタフェース)画面を表示し、GUI画面にて選択されたコードをプログラムコードに挿入することが可能なNC (Numerically Controlled) プログラム入力装置を開示している。
特開2017-111516号公報 特開2010-003187号公報
 本願に開示される技術の課題は、工作機械の加工プログラムの編集に必要なコードを、プログラマが見つけることを容易にすることである。
 本開示の第1態様に係る工作機械の加工プログラム編集方法は、工作機械に装着可能な工具の工具情報を取得し、工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、工具の工具情報と工具の制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示し、プログラムコード中において、新たにコードを挿入する挿入箇所を指定し、少なくとも1つの補助画面において、工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令をプログラムコードの挿入箇所に挿入する。
 本開示の第2態様によれば、第1態様による工作機械の加工プログラム編集方法は、少なくとも1つの補助画面に表示する情報を、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報の中から選択するための表示情報選択画面をさらに表示し、表示情報選択画面において選択された表示情報を少なくとも1つの補助画面に表示する。
 本開示の第3態様によれば、第1態様または第2態様による工作機械の加工プログラム編集方法は、少なくとも1つの補助画面として、第1補助画面と第2補助画面とを表示し、第1補助画面と第2補助画面とのいずれかを指定するための切替設定画面を表示し、切替設定画面にて指定された補助画面に、表示情報選択画面において選択された表示情報を表示する。
 本開示の第4態様によれば、第2態様または第3態様による工作機械の加工プログラム編集方法は、他の情報は、プログラムコードにおいて規定するマクロ変数、及び、プログラミングにおいて利用される文字セットの少なくとも1つを含むように構成される。
 本開示の第5態様によれば、第4態様による工作機械の加工プログラム編集方法は、文字セットは、数学関数を規定する関数コード、外部出力コマンド、及び演算子の少なくとも1つを含むように構成される。
 本開示の第6態様によれば、第4態様または第5態様による工作機械の加工プログラム編集方法は、文字セットを表示する補助画面に、文字セットと組み合わせて利用される記号の入力ボタンをさらに表示する。
 本開示の第7態様によれば、第1態様から第6態様のいずれかによる工作機械の加工プログラム編集方法は、制御方法はGコードと、Gコード以外のカスタマイズドコードとを含むように構成され、当該加工プログラム編集方法は、少なくとも1つの補助画面のうちの1つの補助画面に、Gコードとカスタマイズドコードとのいずれか一方のコードを表示する。
 本開示の第8態様によれば、第7態様による工作機械の加工プログラム編集方法は、1つの補助画面に、いずれか一方のコードの制御内容をさらに表示する。
 本開示の第9態様によれば、第7態様または第8態様による工作機械の加工プログラム編集方法は、1つの補助画面に、EOBを入力するためのキーボタンをさらに表示する。
 本開示の第10態様によれば、第1態様から第9態様のいずれかによる工作機械の加工プログラム編集方法は、工具情報は、工具に対応するT番号、工具の名称、工具の寸法、並びに、切削加工における誤差を補正するためのパラメータの少なくとも1つを含むように構成される。
 本開示の第11態様によれば、第10態様による工作機械の加工プログラム編集方法は、工具情報は、工具の使用により累積した累積摩耗量をさらに含むように構成される。
 本開示の第12態様によれば、第10態様または第11態様による工作機械の加工プログラム編集方法は、切削加工における誤差を補正するためのパラメータは、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、及びノーズR補正を行うためのパラメータの少なくとも1つを含むように構成される。
 本開示の第13態様によれば、第1態様から第12態様のいずれかによる工作機械の加工プログラム編集方法は、工具情報はプログラムコード中のT番号に関連づけされる第1工具情報と、プログラムコード中のH番号とD番号とのうちの少なくとも1つに関連づけられる第2工具情報とを含むように構成される。当該加工プログラム編集方法は、少なくとも1つの補助画面のうちの1つの補助画面に、第1工具情報と第2工具情報とのいずれか一方を表示する。
 本開示の第14態様によれば、第13態様による工作機械の加工プログラム編集方法は、第1工具情報は工具の使用により累積した累積摩耗量を含むように構成される。
 本開示の第15態様によれば、第13態様または第14態様による工作機械の加工プログラム編集方法は、第1工具情報を表示する補助画面に、M06指令をプログラムコードに入力するためのM06指令入力ボタンをさらに表示する。
 本開示の第16態様によれば、第13態様から第15態様のいずれかによる工作機械の加工プログラム編集方法は、第1工具情報を表示する補助画面に、工具を指定しないT番号をプログラムコードに入力するためのT00入力ボタンをさらに表示する。
 本開示の第17態様によれば、第13態様から第16態様のいずれかによる工作機械の加工プログラム編集方法は、第2工具情報は、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、ノーズR補正を行うためのパラメータのいずれかであるように構成される。当該加工プログラム編集方法は、第2工具情報を表示する補助画面に、第2工具情報と関連付けられた参照番号と、参照番号をプログラムコード中にH番号として入力するためのH番号入力ボタンと、参照番号をプログラムコード中にD番号として入力するためのD番号入力ボタンと、をさらに表示し、第2工具情報を表示する補助画面において参照番号が指定された状態で、H番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むH番号を挿入し、第2工具情報を表示する補助画面において参照番号が指定された状態で、D番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むD番号を挿入する。
 本開示の第18態様によれば、第1態様から第17態様のいずれかによる工作機械の加工プログラム編集方法は、プログラム編集画面と、少なくとも1つの補助画面は、1つのディスプレイ中に表示される。
 本開示の第19態様に係る工作機械は、工作機械に装着可能な工具の工具情報を保存するメモリと、工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、工具の工具情報と工具の制御方法とのうちの少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示する少なくとも1つのディスプレイと、プログラムコード中に新たにコードを挿入する挿入箇所を指定するためのインタフェースと、少なくとも1つの補助画面において、工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令をプログラムコードの挿入箇所に挿入するプロセッサと、を備える。
 本開示の第20態様によれば、第19態様に係る工作機械は、ディスプレイが、少なくとも1つの補助画面に表示する情報を、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報の中から選択するための表示情報選択画面をさらに表示し、表示情報選択画面において選択された表示情報を少なくとも1つの補助画面に表示するように構成されている。
 本開示の第21態様によれば、第19態様または第20態様による工作機械は、少なくとも1つの補助画面として、ディスプレイが、第1補助画面と第2補助画面とを表示し、第1補助画面と第2補助画面とのいずれかを指定するための切替設定画面を表示し、切替設定画面にて指定された補助画面に、表示情報選択画面において選択された表示情報を表示するように構成されている。
 本開示の第22態様によれば、第20態様または第21態様による工作機械は、他の情報は、プログラムコードにおいて規定するマクロ変数、及び、プログラミングにおいて利用される文字セットの少なくとも1つを含むように構成される。
 本開示の第23態様によれば、第22態様による工作機械は、文字セットは、数学関数を規定する関数コード、外部出力コマンド、及び演算子の少なくとも1つを含むように構成される。
 本開示の第24態様によれば、第22態様または第23態様による工作機械は、ディスプレイが、文字セットを表示する補助画面に、文字セットと組み合わせて利用される記号の入力ボタンをさらに表示するように構成される。
 本開示の第25態様によれば、第19態様から第24態様のいずれかによる工作機械は、制御方法はGコードと、Gコード以外のカスタマイズドコードとを含むように構成され、当該工作機械は、ディスプレイが、少なくとも1つの補助画面のうちの1つの補助画面に、Gコードとカスタマイズドコードとのいずれか一方のコードを表示するように構成される。
 本開示の第26態様によれば、第25態様による工作機械は、ディスプレイが1つの補助画面に、いずれか一方のコードの制御内容をさらに表示するように構成される。
 本開示の第27態様によれば、第25態様または第26態様による工作機械は、ディスプレイが1つの補助画面に、EOBを入力するためのキーボタンをさらに表示するように構成される。
 本開示の第28態様によれば、第19態様から第27態様のいずれかによる工作機械は、工具情報は、工具に対応するT番号、工具の名称、工具の寸法、並びに、切削加工における誤差を補正するためのパラメータの少なくとも1つを含むように構成される。
 本開示の第29態様によれば、第28態様による工作機械は、工具情報は、工具の使用により累積した累積摩耗量をさらに含むように構成される。
 本開示の第30態様によれば、第28態様または第29態様による工作機械は、切削加工における誤差を補正するためのパラメータは、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、及びノーズR補正を行うためのパラメータの少なくとも1つを含むように構成される。
 本開示の第31態様によれば、第19態様から第30態様のいずれかによる工作機械は、工具情報はプログラムコード中のT番号に関連づけされる第1工具情報と、プログラムコード中のH番号とD番号とのうちの少なくとも1つに関連づけられる第2工具情報とを含むように構成される。当該工作機械は、少なくとも1つの補助画面のうちの1つの補助画面に、第1工具情報と第2工具情報とのいずれか一方を表示するように構成される。
 本開示の第32態様によれば、第31態様による工作機械は、第1工具情報は工具の使用により累積した累積摩耗量を含むように構成される。
 本開示の第33態様によれば、第31態様または第32態様による工作機械は、ディスプレイが第1工具情報を表示する補助画面に、M06指令をプログラムコードに入力するためのM06指令入力ボタンをさらに表示するように構成される。
 本開示の第34態様によれば、第31態様から第33態様のいずれかによる工作機械は、ディスプレイが第1工具情報を表示する補助画面に、工具を指定しないT番号をプログラムコードに入力するためのT00入力ボタンをさらに表示するように構成される。
 本開示の第35態様によれば、第31態様から第34態様のいずれかによる工作機械は、第2工具情報は、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、ノーズR補正を行うためのパラメータのいずれかであるように構成される。当該工作機械は、ディスプレイが第2工具情報を表示する補助画面に、第2工具情報と関連付けられた参照番号と、参照番号をプログラムコード中にH番号として入力するためのH番号入力ボタンと、参照番号をプログラムコード中にD番号として入力するためのD番号入力ボタンと、をさらに表示するように構成され、プロセッサが第2工具情報を表示する補助画面において参照番号が指定された状態で、H番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むH番号を挿入し、第2工具情報を表示する補助画面において参照番号が指定された状態で、D番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むD番号を挿入するように構成される。
 本開示の第36態様によれば、第19態様から第35態様のいずれかによる工作機械は、プログラム編集画面と、少なくとも1つの補助画面は、同じディスプレイ中に表示されるように構成される。
 本開示の第37態様に係る工作機械の加工プログラム編集のためのプログラムは、工作機械に装着可能な工具の工具情報を取得し、工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、工具の工具情報と工具の制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示し、プログラムコード中において、新たにコードを挿入する挿入箇所を指定し、少なくとも1つの補助画面において、工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令をプログラムコードの挿入箇所に挿入する、処理を実行する。
 本開示の第38態様によれば、第37態様による工作機械の加工プログラム編集のためのプログラムは、少なくとも1つの補助画面に表示する情報を、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報の中から選択するための表示情報選択画面をさらに表示し、表示情報選択画面において選択された表示情報を少なくとも1つの補助画面に表示する処理を実行する。
 本開示の第39態様によれば、第37態様または第38態様による工作機械の加工プログラム編集のためのプログラムは、少なくとも1つの補助画面として、第1補助画面と第2補助画面とを表示し、第1補助画面と第2補助画面とのいずれかを指定するための切替設定画面を表示し、切替設定画面にて指定された補助画面に、表示情報選択画面において選択された表示情報を表示する処理を実行する。
 本開示の第40態様によれば、第38態様または第39態様による工作機械の加工プログラム編集のためのプログラムは、他の情報は、プログラムコードにおいて規定するマクロ変数、及び、プログラミングにおいて利用される文字セットの少なくとも1つを含むように構成される。
 本開示の第41態様によれば、第40態様による工作機械の加工プログラム編集のためのプログラムは、文字セットは、数学関数を規定する関数コード、外部出力コマンド、及び演算子の少なくとも1つを含むように構成される。
 本開示の第42態様によれば、第40態様または第41態様による工作機械の加工プログラム編集のためのプログラムは、文字セットを表示する補助画面に、文字セットと組み合わせて利用される記号の入力ボタンをさらに表示する処理を実行する。
 本開示の第43態様によれば、第37態様から第42態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、制御方法はGコードと、Gコード以外のカスタマイズドコードとを含むように構成され、当該加工プログラム編集のためのプログラムは、少なくとも1つの補助画面のうちの1つの補助画面に、Gコードとカスタマイズドコードとのいずれか一方のコードを表示する処理を実行する。
 本開示の第44態様によれば、第43態様による工作機械の加工プログラム編集のためのプログラムは、1つの補助画面に、いずれか一方のコードの制御内容をさらに表示する処理を実行する。
 本開示の第45態様によれば、第43態様または第44態様による工作機械の加工プログラム編集のためのプログラムは、1つの補助画面に、EOBを入力するためのキーボタンをさらに表示する処理を実行する。
 本開示の第46態様によれば、第37態様から第45態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、工具情報は、工具に対応するT番号、工具の名称、工具の寸法、並びに、切削加工における誤差を補正するためのパラメータの少なくとも1つを含むように構成される。
 本開示の第47態様によれば、第46態様による工作機械の加工プログラム編集のためのプログラムは、工具情報は、工具の使用により累積した累積摩耗量をさらに含むように構成される。
 本開示の第48態様によれば、第46態様または第47態様による工作機械の加工プログラム編集のためのプログラムは、切削加工における誤差を補正するためのパラメータは、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、及びノーズR補正を行うためのパラメータの少なくとも1つを含むように構成される。
 本開示の第49態様によれば、第37態様から第48態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、工具情報はプログラムコード中のT番号に関連づけされる第1工具情報と、プログラムコード中のH番号とD番号とのうちの少なくとも1つに関連づけられる第2工具情報とを含むように構成される。当該加工プログラム編集のためのプログラムは、少なくとも1つの補助画面のうちの1つの補助画面に、第1工具情報と第2工具情報とのいずれか一方を表示する処理を実行する。
 本開示の第50態様によれば、第49態様による工作機械の加工プログラム編集のためのプログラムは、第1工具情報は工具の使用により累積した累積摩耗量を含むように構成される。
 本開示の第51態様によれば、第49態様または第50態様による工作機械の加工プログラム編集のためのプログラムは、第1工具情報を表示する補助画面に、M06指令をプログラムコードに入力するためのM06指令入力ボタンをさらに表示する処理を実行する。
 本開示の第52態様によれば、第49態様から第51態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、第1工具情報を表示する補助画面に、工具を指定しないT番号をプログラムコードに入力するためのT00入力ボタンをさらに表示する処理を実行する。
 本開示の第53態様によれば、第49態様から第52態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、第2工具情報は、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、ノーズR補正を行うためのパラメータのいずれかであるように構成される。当該加工プログラム編集のためのプログラムは、第2工具情報を表示する補助画面に、第2工具情報と関連付けられた参照番号と、参照番号をプログラムコード中にH番号として入力するためのH番号入力ボタンと、参照番号をプログラムコード中にD番号として入力するためのD番号入力ボタンと、をさらに表示し、第2工具情報を表示する補助画面において参照番号が指定された状態で、H番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むH番号を挿入し、第2工具情報を表示する補助画面において参照番号が指定された状態で、D番号入力ボタンが操作されると、プログラムコード中の挿入箇所に参照番号を含むD番号を挿入する処理を実行する。
 本開示の第54態様によれば、第37態様から第53態様のいずれかによる工作機械の加工プログラム編集のためのプログラムは、プログラム編集画面と、少なくとも1つの補助画面は、1つのディスプレイ中に表示される処理を実行する。
 第1態様に係る工作機械の加工プログラム編集方法、第19態様に係る工作機械、及び第37態様に係る作機械の加工プログラム編集のためのプログラムによって、加工プログラムのプログラムコードの編集に必要な工具の工具情報と工具の制御方法の参照及び挿入を容易とすることができる。その結果、加工プログラムのプログラミングが効率化される。
 第2態様、第20態様、第38態様によれば、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報といった多くの情報を少なくとも1つの補助画面に表示することができる。
 第3態様、第21態様、第39態様によれば、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報といった多くの情報を少なくとも1つの補助画面に切り替えながら表示することができる。
 第4態様、第22態様、第40態様によれば、マクロ変数、及び、プログラミングにおいて利用される文字セットは、プログラミングにおいて頻繁に利用されるので、さらに加工プログラムのプログラミングが効率化される。
 第5態様、第23態様、第41態様によれば、関数コード、外部出力コマンド、及び演算子は、文字セットの中でも工作機械の加工プログラミングにおいて特に頻繁に利用されるので、さらに加工プログラムのプログラミングが効率化される。
 第6態様、第24態様、第42態様によれば、文字セットと組み合わせて利用される記号の入力ボタンがさらに表示するため、加工プログラムのプログラミングがさらに一層効率化される。
 第7態様、第25態様、第43態様によれば、加工プログラムのプログラミングにおいて頻繁に利用されるGコードと、Gコード以外のカスタマイズドコードとが補助画面に別々に表示されるため、加工プログラムのプログラミングがさらに効率化される。
 第8態様、第26態様、第44態様によれば、プログラマは、Gコードと、カスタマイズドコードの制御内容について、マニュアルを参照することなく知ることができるので、加工プログラムのプログラミングがさらに一層効率化される。
 第9態様、第27態様、第45態様によれば、Gコードやカスタマイズドコードの前後には、改行文字(「;」(EOB))が挿入される頻度が高く、当該1つの補助画面からEOBを入力できるようにすることによって、特に工作機械のタッチパネル付きディスプレイにおいてEOBを入力するために別途のスクリーンキーボードを表示させなくて済む。その結果、特に工作機械でのプログラミングが効率化される。
 第10態様、第28態様、第46態様によれば、工具の名称、工具の寸法、並びに、切削加工における誤差を補正するためのパラメータは、プログラムコードに入力するT番号を選択する上で重要な情報である。したがって、これらの情報が工具情報として含まれることによって、加工プログラムのプログラミングがさらに効率化される。
 第11態様、第29態様、第47態様によれば、累積摩耗量を確認することによってプログラマが工具の使用の適否や交換時期を把握することができる。このため、加工プログラムに適した工具を選択することが容易となる。
 第12態様、第30態様、第48態様によれば、工具長補正、工具径補正、及びノーズR補正は、頻繁に利用される切削加工における誤差を補正する方法である。このため、加工プログラムのプログラミングがさらに効率化される。
 第13態様、第31態様、第49態様によれば、第1工具情報と第2工具情報とは、切削加工における誤差を補正するための共通のパラメータを含む場合もあり、同一の補助画面で管理すると、プログラマは混同しやすい。このため、第1工具情報と第2工具情報とを別々の補助画面で管理できるようにすることによって、当該パラメータの管理を容易とすることができる。
 第14態様、第32態様、第50態様によれば、累積摩耗量は、工具の選択、つまり、T番号の選択の際に利用される。このため、第1工具情報として補助画面に表示させることによって、プログラマの利便性がさらに向上する。
 第15態様、第33態様、第51態様によれば、M06指令はTコードと関連性が高いため、第1工具情報を表示する補助画面からM06指令を直接入力できるほうがプログラミング上の利便性が高い。このため、M06指令入力ボタンが第1工具情報を表示する補助画面に表示されることによって加工プログラムのプログラミングがさらに効率化される。
 第16態様、第34態様、第52態様によれば、工具を指定しないT番号は、M06指令と組み合わせて利用する頻度が多い。このため、T00入力ボタンがM06指令入力ボタンと同じ画面に表示されることによって加工プログラムのプログラミングがさらに効率化される。
 第17態様、第35態様、第53態様によれば、D番号・H番号に係るパラメータを1つの補助画面で管理しているため、補助画面の数を減少させることができる。さらには、第2工具情報を表示する補助画面には、D番号入力ボタン、H番号入力ボタンが表示され、これらのボタン操作によって参照番号をD番号・H番号に変換してプログラムコードへ挿入することができる。これによってプログラマは、選択したパラメータをプログラムコードに簡単に入力することができる。
 第18態様、第36態様、第54態様によれば、プログラム編集画面と、少なくとも1つの補助画面は、加工プログラムの編集上密接に関係するために別々のディスプレイに表示されないことが好ましい。プログラム編集画面と少なくとも1つの補助画面とが1つのディスプレイ中に表示されることによって、加工プログラムのプログラミングがさらに効率化される。
 本願に開示される技術によれば、例えば、工作機械の加工プログラムの編集に必要なコードを、プログラマが見つけることを容易にすることができる。
図1は、実施形態に係る工作機械及び工作機械の加工プログラムを編集するためのコンピュータを含むシステムの概略構成を示す図である。 図2は、制御装置のハードウェアブロック図である。 図3は、コンピュータのハードウェアブロック図である。 図4は、実施形態に係る加工プログラム編集プログラムの表示画面の一例である。 図5は、Gコード一覧画面の一例である。 図6は、Gコード一覧画面の別の一例である。 図7は、Mコード一覧画面の一例である。 図8は、Mコード一覧画面の別の一例である。 図9は、工具データ画面の一例である。 図10は、工具データ画面の別の一例である。 図11は、工具長オフセット補正の概念を説明するための図である。 図12は、工具長オフセット補正の概念を説明するための図である。 図13は、工具径補正の概念を説明するための図である。 図14は、ミル工具での工具径オフセットを示す図である。 図15は、ノーズR補正の概念を説明するための図である。 図16は、刃先方向の概念を説明するための図である。 図17は、工具オフセット画面の一例である。 図18は、工具オフセット画面の別の一例である。 図19は、マクロ変数画面の一例である。 図20は、マクロ入力画面の一例である。 図21は、工具データ画面の変形例である。 図22は、加工プログラム編集プログラムの処理を示すフローチャートである。
 以下、この発明をその実施の形態を示す図面に基づいて具体的に説明する。なお、図中において同じ符号は、対応するまたは実質的に同一の構成を示している。
 図1は、本発明の実施形態に係るシステム10の概略構成を示す。システム10は、工作機械100、工作機械の加工プログラムを編集するためのコンピュータ200、及び、工作機械100とコンピュータ200とを接続するネットワーク290とを含む。ネットワーク290は、例えば、工場内に設置されるLAN(ローカルエリアネットワーク)である。図示されているネットワーク290は有線ネットワークであるが、ネットワーク290は無線ネットワークであってもよい。なお、図1に示すX軸は、工作機械100の高さ方向に沿い、Y軸は、工作機械100の奥行方向に沿い、Z軸は、工作機械100の幅方向に沿っている。本実施形態では、JIS規格に基づいて、ワークを保持するワーク主軸122の回転軸線A3に平行な軸をZ軸としている。本実施形態では、この座標系をワーク座標系と呼ぶ。
 工作機械100は、ワークW1に対する切削加工(machining)を行う。切削加工は、旋削加工(turning)とミル加工(milling)とのうちの少なくとも1つを含む。切削加工は、さらに削孔加工(drilling)を含んでもよい。図1に示すように、工作機械100は、コラム110と、ワーク主軸台120と、工具交換装置130と、を備えている。コラム110、ワーク主軸台120、及び工具交換装置130は、基台140の上に配置されている。
 コラム110は、基台140上において、Y軸方向およびZ軸方向に移動可能である。コラム110には、工具主軸台112が取り付けられている。工具主軸台112は、コラム110に対して、X軸方向に移動可能である。工具主軸台112は、コラム110に対して、Y軸方向に沿う旋回軸線A1周りに旋回可能である。工具主軸台112には、工具主軸114が取り付けられている。工具主軸114は、工具主軸台112に対して回転軸線A2回りに回転可能である。回転軸線A2は、旋回軸線A1に直交する。工具主軸114には、切削工具(machining tool)である第1工具T1が保持されている。切削工具とは、旋削工具とミル工具とを包含する概念である。本実施形態では、削孔加工に用いるドリルは、ミル工具の1つとみなす。
 本実施形態では、軸線A1と軸線A2との交点を機械原点Omと呼び、回転軸線A2をZm軸とし、旋回軸線A1をYm軸とし、Zm軸とYm軸との夫々に対して垂直な軸をXm軸とする座標系を機械座標系と呼ぶ。機械原点Omから第1工具T1の先端に向かう方向をZm軸の正方向とする。ワーク座標系のZ軸の正方向を機械座標系のZm軸の正方向と同じ方向に向かうように、ワーク座標系のX軸をY軸回りに回転させたときのワーク座標系のX軸の正方向を、機械座標系のXm軸の正方向とする。ワーク座標系のY軸の正方向を機械座標系のYm軸の正方向とする。
 ワーク主軸台120は、ワーク主軸122を備えている。ワーク主軸122は、回転軸線A3周りに回転可能である。回転軸線A3は、Z軸方向に沿っている。ワーク主軸122には、ワークW1が装着されている。
 工具交換装置130は、工具主軸114に装着される切削工具を交換する。具体的には、工具交換装置130は、マガジンアーム132とストッカ134とを備えている。マガジンアーム132は、Z軸方向に沿う軸回りに旋回可能である。マガジンアーム132は、ストッカ134に対してX軸方向に移動可能である。ストッカ134は、X軸方向に複数の切削工具Tsを並べて収納している。ストッカ134に収納される複数の切削工具Tsは、第1工具T1と交換可能な第2工具T2を含む。
 工具交換装置130による切削工具の交換は次の手順で行われる。コラム110は、回転軸線A2がZ軸方向に沿う状態で、Z軸方向において工具交換装置130に近づく。マガジンアーム132は、マガジンアーム132が延びる方向の一端に第1グリッパを有し、当該延びる方向の他端に第2グリッパを有している。第1グリッパは、工具主軸114に装着された第1工具T1を取り外すために、工具主軸114に装着されている第1工具T1を把持する。より詳細には、マガジンアーム132がZ軸方向に沿う軸周りに所定旋回角度だけ旋回すると、第1グリッパは第1工具T1を把持し、同時に、第2グリッパは、ストッカ134に収納された第2工具T2を把持する。コラム110がZ軸方向において工具交換装置130から離れると、第1工具T1は工具主軸114から取り外される。マガジンアーム132は、工具主軸114に第2工具T2を装着するために、Z軸方向に沿う軸回りに旋回し、第2グリッパに把持された第2工具T2を工具取付位置に移動させる。コラム110がZ軸方向において工具交換装置130に近づくと、工具主軸114に第2工具T2が装着される。
 工作機械100は、各回転軸線回りの回転、各旋回軸線回りの旋回及び各軸方向における移動を制御するために、制御装置150を備えている。制御装置150は、基台140に接続されている。ここで、制御装置150は、工作機械100の他の箇所に接続されてもよく、制御信号の送信や検出結果の受信ができれば、基台140とは別に設置されてもよい。
 図2は、制御装置150のハードウェアブロック図である。図2に示すように、制御装置150は、プロセッサ151と、メモリ152と、通信回路153と、タッチパネル付きディスプレイ154と、を備えている。プロセッサ151と、メモリ152と、通信回路153と、タッチパネル付きディスプレイ154は、バス155を介して互いに接続されている。メモリ152は、加工に必要なプログラム及びデータを記憶している。プロセッサ151は、メモリ152に記憶されたプログラムを読み出して、読みだしたプログラムを実行する。これにより、制御装置150の各機能は、実現される。制御装置150が実現する各機能には、旋削加工の実行の制御が含まれる。具体的には、メモリ152は、加工プログラム157を記憶している。加工プログラム157は、旋削加工を実行するための制御命令を含んでいる。通常、加工プログラム157は、コンピュータ200において編集され、ネットワーク290を介して制御装置150に送信され、メモリ152に記憶される。通信回路153は、ネットワーク290を介してコンピュータ200と通信するための、通信パケットからデータへの変換機能とデータから通信パケットへの変換機能と通信パケット送受信機能とを有している。
 本実施形態では、メモリ152は、工作機械100に装着可能な工具Ta(例えば、第1工具T1、及び、ストッカ134に収納される複数の切削工具Tsのうち、第2工具T2のように工作機械100に装着可能な全ての切削工具)の工具情報158を記憶する。工具情報158は、通信回路153によって、ネットワーク290を介してコンピュータ200に送信される。また、工具情報158は、後述する加工プログラム編集プログラム159の実行時に、メモリ152から読み出される。工具情報158の詳細な説明は、後述する。
 メモリ152は、加工プログラム157を編集するための加工プログラム編集プログラム159を記憶してもよい。通常、加工プログラム編集プログラム159は、加工プログラム157の一部を修正する場合に実行される。しかし、加工プログラム編集プログラム159を実行することによって、加工プログラム157が最初から作成されてもよい。
 タッチパネル付きディスプレイ154は1つのディスプレイ154でなくてもよく、複数のディスプレイの集まりであってもよい。なお、タッチパネル付きディスプレイ154のディスプレイは、ディスプレイの一例であり、タッチパネルは、インタフェースの一例である。なお、タッチパネル付きディスプレイ154は、タッチパネルのないディスプレイと、ディスプレイ周辺に設けられたボタン・スイッチ・レバー・ポインティングデバイス等の入力機器との組み合わせによって代替されてもよい。その場合、当該入力機器は、インタフェースの一例である。
 図3は、コンピュータ200のハードウェアブロック図である。図3に示すように、コンピュータ200は、プロセッサ210と、メモリ220と、通信回路230と、ディスプレイ240と、入力インタフェース250と、を備えている。プロセッサ210と、メモリ220と、通信回路230と、ディスプレイ240と、入力インタフェース250は、バス260を介して互いに接続されている。入力インタフェース250は、インタフェースの一例であって、例えば、キーボード、マウスなどのポインティングデバイスを指す。なお、コンピュータ200は、タッチパネル付きディスプレイを有するタブレットコンピュータのように、ディスプレイ240と入力インタフェース250とが一体化されたものであってもよい。また、ディスプレイ240は複数のディスプレイの組み合わせであってもよい。
 メモリ220は、上述する加工プログラム157を編集するための加工プログラム編集プログラム221と、当該プログラムを実行するにあたり必要なデータ及びオペレーティングシステムなどのプログラムと、を記憶している。加工プログラム編集プログラム221は、加工プログラム編集プログラム159と実質的に同じ機能を有する。ただし、加工プログラム編集プログラム221の画面表示方法が加工プログラム編集プログラム159の画面表示方法と部分的に相違してもよい。メモリ220は、加工プログラム編集プログラム221によって編集された加工プログラム157をさらに記憶してもよい。プロセッサ210は、メモリ220に記憶されたプログラムを読み出して、読みだしたプログラムを実行する。通信回路230は、ネットワーク290を介して制御装置150と通信するための、通信パケットからデータへの変換機能とデータから通信パケットへの変換機能と通信パケット送受信機能とを有している。
 コンピュータ200は、通信回路230を利用して、加工プログラム編集プログラム221を利用して編集された加工プログラム157を制御装置150に送信する。さらに、コンピュータ200は、加工プログラム編集プログラム221が実行されると、通信回路230を利用して、制御装置150から上述する工具情報158を取得し、メモリ220に工具情報158を記憶する。
 次に、加工プログラム157の内容について説明する。本実施形態において、加工プログラム157は、工作機械100を数値制御するためのプログラムコードによって記述されている。また、当該プログラムコードは、アルファベットと数値とからなる文字列で構成されており、例えば、以下に示すようなコードが用意されている。
  Gコード:加工を行うための準備機能(例えば、工具の移動態様等)を指定するコード
  Mコード:Gコードの補助的役割を果たすコード
  T番号:切削工具を指定する番号
  S番号:工作機械の主軸回転数等を指定する番号
  F番号:旋削工具の送り速度等を指定する番号
  X,Y,Z,U,V,W,A,B,C:座標軸を指定する記号
  N+数値:シーケンス番号。プログラム内のジャンプ位置を指定する。
Gコードは、ISO6983として標準化されている。Mコードは、工作機械メーカーが独自に定めたカスタマイズドコードを含む。Mコードは、標準化されたコードをさらに含んでもよい。
<全体の表示画面>
 図4は、実施形態に係る加工プログラム編集プログラム221の表示画面(display screen)30の一例である。当該表示画面30は、ディスプレイ240に表示される。なお、制御装置150のタッチパネル付きディスプレイ154に表示される加工プログラム編集プログラム159の表示画面も、後に述べる例外を除いて表示画面30と実質的に同じ画面である。表示画面30は、プログラム編集画面(program editing window)300と、少なくとも1つの補助画面(assistance window)310とを含む。好ましくは、プログラム編集画面300と、少なくとも1つの補助画面310は、1つのディスプレイ240/154中に表示される。
 プログラム編集画面300には、工作機械100を制御するための加工プログラム157のプログラムコード302が表示される。図4では、プログラム編集画面300にプログラムコード302の位置を示す行番号308も併せて表示されているが、行番号308は省略されてもよい。タッチパネル付きディスプレイ154のタッチパネルでのタップ、入力インタフェース250のうちのマウスによるクリックや入力インタフェース250のうちのキーボードによるカーソル移動によって、プログラム編集画面300中においてGコードを挿入する挿入箇所を指定することができる。したがって、タッチパネル付きディスプレイ154のタッチパネルや入力インタフェース250のポインティングデバイスは、プログラムコード302中に新たにコードを挿入する挿入場所を指定するためのインタフェースである。
 少なくとも1つの補助画面310には、プログラムコード302を編集するにあたりプログラマが参照する情報が表示される。図4では、少なくとも1つの補助画面310として、第1補助画面312と第2補助画面314とが表示されている。しかし、図4の例に限らず、少なくとも1つの補助画面310は、1つの補助画面もしくは3つ以上の補助画面が表示されてもよい。図4を参照すると、プログラム編集画面300と少なくとも1つの補助画面310は並んで表示されている。図4の例では、プログラム編集画面300は、表示画面30の左側、第1補助画面312と第2補助画面314は表示画面30の右側に表示されている。しかし、プログラム編集画面300と少なくとも1つの補助画面310の表示態様はこれに限らず、プログラム編集画面300と少なくとも1つの補助画面310の位置が左右逆であってもよい。また、プログラム編集画面300と少なくとも1つの補助画面310が上下もしくは斜めに並んで表示されてもよい。
 また、少なくとも1つの補助画面310(例えば、第1補助画面312と第2補助画面314)がプログラム編集画面300の片側に固まって表示されてなくてもよい。例えば、少なくとも1つの補助画面310の一部(例えば、第1補助画面312)と、少なくとも1つの補助画面310の残り(例えば、第2補助画面314)とが、プログラム編集画面300を挟み込むように、プログラム編集画面300と少なくとも1つの補助画面310とが表示されてもよい。
 また、プログラム編集画面300と少なくとも1つの補助画面310とが一方向に並んで表示されていなくてもよい。例えば、第1補助画面312がプログラム編集画面300の右側、第2補助画面314がプログラム編集画面300の下側に表示されてもよく、少なくとも1つの補助画面310がプログラム編集画面300を取り囲むように表示されてもよい。つまり、少なくとも1つの補助画面310の各々がプログラム編集画面300に並んで表示されていればよい。なお、プログラマの便宜のため、少なくとも1つの補助画面310の各々がプログラム編集画面300の近傍に表示されることが好ましい。さらに、図4では、少なくとも1つの補助画面310は、プログラム編集画面300と重畳しない態様で表示されているが、図4では、少なくとも1つの補助画面310は、プログラム編集画面300と一部重畳してもよい。
 本実施形態において少なくとも1つの補助画面310に表示される表示情報は、工作機械100に装着可能な工具Taの工具情報と当該工具Taの制御方法とのうち少なくとも1つである。つまり、ディスプレイ240(154)は、工作機械100を制御するための加工プログラム157のプログラムコード302を表示するプログラム編集画面300と、工作機械100に装着可能な工具Taの工具情報と当該工具Taの制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面310とを並べて(side by side)表示する。ディスプレイ240(154)が複数のディスプレイから構成されるときは、並べて設けられたディスプレイのうちの一方に、プログラム編集画面300が表示され、他方に、少なくとも1つの補助画面310が表示されてもよい。工具情報とは、例えば、工具Taに対応するT番号(T number)、工具Taの名称、工具Taの寸法(dimension)、並びに、切削加工における誤差を補正するためのパラメータの少なくとも1つを含む。当該工具Taの制御方法とは、上述するGコード、Mコードを含む。つまり、当該制御方法は、Gコードと、Gコード以外のカスタマイズドコードとを含む。したがって、ディスプレイ240(154)は、少なくとも1つの補助画面310のうちの1つの補助画面で、Gコードと、Gコード以外のカスタマイズドコードとのいずれか一方のコードを表示する。
 図4では、使用したい切削工具に対応するT番号を入力することを主目的とする工具データ画面(Tool Data window)340が第1補助画面312として、Gコードを入力することを主目的とするGコード一覧画面(G-Code List window)320が第2補助画面314として表示されている。しかし、図4の例において、第1補助画面312においてGコード一覧画面320が表示されてもよく、第2補助画面314として工具データ画面340が表示されてもよい。
 また、第1補助画面312、第2補助画面314として表示される画面はこれらの画面に限られない。後述するように、第1補助画面312の第2補助画面314の夫々には、工具主軸114の基準点に対する切削工具の切刃位置の位置ずれ量を入力するための工具オフセット画面(Tool Offset window)360、Mコードを入力するためのMコード一覧画面(M-Code List window)330、マクロ変数をプログラム中に入力するためのマクロ変数画面(Macro Variables window)380、プログラミングにおいて利用される文字セット(character set)を簡単に入力するためのマクロ入力画面(Macro Input window)390のうちのいずれかが代わりに表示されてもよい。つまり、少なくとも1つの補助画面310に表示される情報は、上述する工具Taの工具情報と工具Taの制御方法以外の他の情報を含んでもよい。当該他の情報は、プログラムコード302において規定するマクロ変数、プログミングにおいて利用される文字セットの少なくとも1つを含む。当該文字セットは、数学関数(mathematical function)を規定する関数コード、外部出力コマンド(external output command)、及び演算子(operator)の少なくとも1つを含む。
 表示画面30は、少なくとも1つの補助画面310に表示する情報(この情報を、以下表示情報と呼ぶ)を、上述する、工具情報、制御方法、並びに、他の情報の中から選択するための表示情報選択画面(displayed information selection window)316をさらに含む。つまり、ディスプレイ240(154)は、少なくとも1つの補助画面310に表示する情報を、上述する、工具情報、制御方法、並びに、他の情報の中から選択するための表示情報選択画面316をさらに表示する。図4では、表示情報選択画面316は、プログラム編集画面300と少なくとも1つの補助画面310との間に表示されている。しかし、表示情報選択画面316の表示位置は、これに限られない。例えば、図4において、表示情報選択画面316は、プログラム編集画面300の下側や左側に表示されてもよい。しかし、プログラマの視認性の観点から、表示情報選択画面316は、プログラム編集画面300と少なくとも1つの補助画面310との間に表示されることが好ましい。
 図4では、表示情報選択画面316に、工具データ画面340、工具オフセット画面360、マクロ変数画面380、マクロ入力画面390、Gコード一覧画面320、Mコード一覧画面330のそれぞれに対応する文字列がセレクトボックス内に表示されている。プログラマがこれらの文字列のうちの1つをタップもしくはクリックすることによって、少なくとも1つの補助画面310に表示する情報が選択される。なお、表示情報選択画面316では、セレクトボックスに代えて、ラジオボタンやチェックボックスなどの他の入力手段が表示されてもよい。図4の例では、工具データ画面を表す「工具データ」の文字列が選択された状態になっている。表示情報選択画面316の下方には、第1補助画面312と第2補助画面314とのいずれかを指定するための切替設定画面318が表示される。つまり、ディスプレイ240(154)は、第1補助画面312と第2補助画面314とのいずれかを指定するための切替設定画面318を表示する。図4では、切替設定画面318において、第1補助画面312、第2補助画面314の夫々の模式化した位置がアイコン化されていて、どちらかのアイコンで選択するとそのアイコンがアクティブとなる。図4の例では、第1補助画面312を示す「1」のアイコンがアクティブになっている。
 この状態で、表示情報選択画面316の下側に表示されているOKボタン317をクリックもしくはタップ等で操作されると、第1補助画面312の表示が工具データ画面の表示に切り替えられる。つまり、ディスプレイ240(154)は、表示情報選択画面316において選択された表示情報を少なくとも1つの補助画面310に表示する。より具体的には、ディスプレイ240(154)は、切替設定画面318にて指定された補助画面に、表示情報選択画面316において選択された表示情報を表示する。図4は、上記切替操作によって第1補助画面312に工具データ画面が表示された状態を示している。以降に、Gコード一覧画面、Mコード一覧画面、工具データ画面、工具オフセット画面、マクロ変数画面、マクロ入力画面の詳細について説明する。
<Gコード一覧画面>
 図5及び図6は、Gコード一覧画面320の表示例である。図5及び図6を参照すると、Gコード一覧画面320の画面左側にGコード321が表示される。Gコード321の右隣りには、Gコード321の属するグループ番号321Gが表示される。同じグループ番号の複数のGコードが1つのブロック(プログラムコード中の「;」(EOB:End of Block)と「;」との間)に記載されると、最後に記載されたGコードのみが実行される。グループ番号321Gの右隣りには、Gコード321の制御内容322が表示される。お気に入りのGコード321の左側には、お気に入りのマーク323が付加的に表示される。
 Gコード一覧画面320の上端には、お気に入り表示ボタン324が表示されている。図5は、お気に入り表示ボタン324がオフの状態のGコード一覧画面320を示している。図6は、お気に入り表示ボタン324がオンの状態のGコード一覧画面320を示している。図5に示すように、お気に入り表示ボタン324がオフの状態では、すべてのGコードが番号順に表示される。Gコード一覧画面320の右端にはスクロールバー320Sが表示されている。プログラマは、スクロールバー320Sを動かすことによって、所望の範囲のGコードをGコード一覧画面320に表示させることができる。図6に示すように、お気に入り表示ボタン324がオンの状態では、お気に入りのGコードのみがGコード321として表示される。図6では、全てのお気に入りのGコードの数がGコード一覧画面320の最大表示行数よりも少ないため、スクロールバーが表示されていない。しかし、お気に入りのGコードの数がGコード一覧画面320の最大表示行数よりも多い場合、スクロールバーが表示される。なお、図5及び図6では、Gコードの番号順に表示されているが、過去の使用回数の多い順、または、過去の所定期間内において使用回数の多い順にGコード321が表示されてもよい。
 Gコード一覧画面320の右下端には、お気に入りの登録・解除に係るボタン325~326が表示されている。Gコード321、グループ番号321G、制御内容322、及び、マーク323は、行ごとに対応づけされて管理される。このため、Gコード321、グループ番号321G、及び、制御内容322のどれか1つがクリックまたはタップされると、クリックまたはタップされた項目と同じ行に係るGコード321、グループ番号321G、及び、制御内容322が選択され、白黒反転表示などがされる。その状態でお気に入り登録ボタン325がクリックまたはタップされると、選択されているGコード321の左側に、お気に入りのマーク323が表示され、選択されているGコード321がお気に入りとして管理される。逆に、お気に入りとなっているGコード321の行のGコード321、グループ番号321G、制御内容322、及び、マーク323のどれか1つがクリックまたはタップされ、お気に入り解除ボタン326がクリックまたはタップされると、選択されているGコード321がお気に入りから解除され、選択されているGコード321の左側のお気に入りのマーク323が消滅する。お気に入り全解除ボタン327がクリックまたはタップされると、全てのお気に入りを解除するかどうか確認するポップアップウィンドウが表示され、プログラマが解除を承諾すると、すべてのお気に入りのGコード321においてお気に入りの管理が解除され、すべてのマーク323が消滅する。
 Gコード一覧画面320の下端左端には、入力ボタン328が表示される。プログラマは、プログラム編集画面300と、Gコード一覧画面320を参照して、以下のように、Gコードをプログラム中に入力することができる。(1)プログラム編集画面300中においてGコードを挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する(以下、このように指定される箇所を挿入箇所と呼ぶ)。(2)Gコード一覧画面320を参照し、入力したいGコード321の行をタップまたはクリックで選択する。(3)入力ボタン328をタップまたはクリックする。これによって、プログラムコード302中の(1)によって指定された挿入箇所に、(2)で選択されたGコード321が挿入される。
 Gコード一覧画面320の下端には、さらに、改行キーボタン329が表示されている。プログラムコード302中の改行文字(「;」(EOB))を挿入する挿入箇所がタップ・クリック・カーソル移動等の操作で指定された後に、改行キーボタン329がクリックまたはタップされると、改行文字(「;」(EOB))がプログラムコード302中の挿入箇所に挿入される。改行キーボタン329を利用した入力においては、入力ボタン328への入力は不要である。Gコードの前後には、改行文字(「;」(EOB))が挿入される頻度が高く、Gコード一覧画面320に表示される改行キーボタン329からEOBを入力できるようにすることによって、特に工作機械100のタッチパネル付きディスプレイ154においてEOBを入力するために別途のスクリーンキーボードを表示させなくて済む。その結果、工作機械100でのプログラミングが効率化される。
 なお、図5及び図6に示されたGコード一覧画面320の表示態様は、単なる一例であって、他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図5及び図6に示されたものでなくてもよい。また、入力ボタン328はテキストではなく、記号や図柄によって表されてもよく、改行キーボタン329は他の記号や図柄、テキストによって表されてもよい。お気に入りに関わるマーク・ボタン323~327は、他の記号や図柄、テキストによって表されてもよく、削除されてもよい。
<Mコード一覧画面>
 図7及び図8は、Mコード一覧画面330の表示例である。図7及び図8を参照すると、Mコード一覧画面330の画面左側にMコード331が表示される。Mコード331の右隣りには、Mコード331の制御内容332が表示される。お気に入りのMコード331の左側には、お気に入りのマーク333が付加的に表示される。
 Mコード一覧画面330の上端には、お気に入り表示ボタン334が表示されている。図7は、お気に入り表示ボタン334がオフの状態のMコード一覧画面330を示している。図8は、お気に入り表示ボタン334がオンの状態のMコード一覧画面330を示している。図7に示すように、お気に入り表示ボタン334がオフの状態では、すべてのMコードが番号順に表示される。Mコード一覧画面330の右端にはスクロールバー330Sが表示されている。プログラマは、スクロールバー330Sを動かすことによって、所望の範囲のMコードをMコード一覧画面330に表示させることができる。図8に示すように、お気に入り表示ボタン334がオンの状態では、お気に入りのMコードのみがMコード331として表示される。図8では、全てのお気に入りのMコードの数がMコード一覧画面330の最大表示行数よりも少ないため、スクロールバーが表示されていない。しかし、お気に入りのMコードの数がMコード一覧画面330の最大表示行数よりも多い場合、スクロールバーが表示される。なお、図7及び図8では、Mコードの番号順に表示されているが、過去の使用回数の多い順、または、過去の所定期間内において使用回数の多い順にMコード331が表示されてもよい。
 Mコード一覧画面330の右下端には、お気に入りの登録・解除に係るボタン335~336が表示されている。Mコード331、制御内容332、及び、マーク333は、行ごとに対応づけされて管理される。このため、Mコード331、及び、制御内容332のどれか1つがクリックまたはタップされると、クリックまたはタップされた項目と同じ行に係るMコード331、及び、制御内容332が選択され、白黒反転表示などがされる。その状態でお気に入り登録ボタン335がクリックまたはタップされると、選択されているMコード331の左側に、お気に入りのマーク333が表示され、選択されているMコード331がお気に入りとして管理される。逆に、お気に入りとなっているMコード331の行のMコード331、制御内容332、及び、マーク333のどれか1つがクリックまたはタップされ、お気に入り解除ボタン336がクリックまたはタップされると、選択されているMコード331がお気に入りから解除され、選択されているMコード331の左側のお気に入りのマーク333が消滅する。お気に入り全解除ボタン337がクリックまたはタップされると、全てのお気に入りを解除するかどうか確認するポップアップウィンドウが表示され、プログラマが解除を承諾すると、すべてのお気に入りのMコード331においてお気に入りの管理が解除され、すべてのマーク333が消滅する。
 Mコード一覧画面330の下端左端には、入力ボタン338が表示される。プログラマは、プログラム編集画面300と、Mコード一覧画面330を参照して、以下のように、Mコードをプログラム中に入力することができる。(1)プログラム編集画面300中においてMコードを挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(2)Mコード一覧画面330を参照し、入力したいMコード331の行をタップまたはクリックで選択する。(3)入力ボタン338をタップまたはクリックする。これによって、プログラムコード302中の挿入箇所に、選択されたMコード331が挿入される。
 Mコード一覧画面330の下端には、さらに、改行キーボタン339が表示されている。プログラムコード302中の改行文字(「;」(EOB))を挿入する挿入箇所がタップ・クリック・カーソル移動等の操作で指定された後に、改行キーボタン339がクリックまたはタップされると、改行文字(「;」(EOB))がプログラムコード302中の挿入箇所に挿入される。改行キーボタン339を利用した入力においては、入力ボタン338への入力は不要である。Mコードの前後には、改行文字(「;」(EOB))が挿入される頻度が高く、Mコード一覧画面330に表示される改行キーボタン339からEOBを入力できるようにすることによって、特に工作機械100のタッチパネル付きディスプレイ154においてEOBを入力するために別途のスクリーンキーボードを表示させなくて済む。その結果、工作機械100でのプログラミングが効率化される。
 なお、図7及び図8に示されたMコード一覧画面330の表示態様は、単なる一例であって、他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図7及び図8に示されたものでなくてもよい。また、入力ボタン338はテキストではなく、記号や図柄によって表されてもよく、改行キーボタン339は他の記号や図柄、テキストによって表されてもよい。お気に入りに関わるマーク・ボタン333~337は、他の記号や図柄、テキストによって表されてもよく、削除されてもよい。
<工具データ画面>
 図9及び図10は、工具データ画面340の表示例である。図9及び図10を参照すると、工具データ画面340では、左端に工具Taの各々に対応するT番号341が表示される。T番号341の右隣りには、工具Taの各々を模式的に表したシンボル342が表示される。シンボル342は省略可能である。シンボル342の右隣りには、工具Taの各々の工具名343が表示される。旋削工具(本例では、T06)などの一部の工具については、加工部位を示す名称344が工具名343の右隣りに表示される。工具名343(名称344がある場合は名称344)の右隣りには、工具Taの各々の呼び(size)または呼び径(nominal diameter)の数値345が表示される。数値345の最後には小数点が記載されているが、小数点以上がmm単位であるという意味である。図9及び図10の例では、旋削工具(T06)のみにおいて呼びが表示されており、残りの工具においては呼び径が表示されている。呼びまたは呼び径のいずれが数値345として表示されるかは、工具の種類に依存する。
 数値345よりもさらに右側には、複数のパラメータが表示される。工具名343と数値345とのいずれかによってT番号341に対応する工具の対応が容易である場合、これら複数のパラメータは表示が省略されてもよい。図9及び図10の例では、エンドミル(T01)のパラメータ表示が省略されている。また、工具データ画面340の右下隅には、矢印ボタン349a、349bが表示されており、矢印ボタン349a、349bのクリックまたはタップによって、工具データ画面340に表示されるT番号341の範囲を変更することができる。
 図9を参照すると、数値345の右隣には、工具長または軸方向オフセットの数値346が表示される。工具長とは、工具Taが工具主軸114に取り付けられた状態での回転軸線A2に沿う向き(以下、軸方向と呼ぶ)の工具Taの長さである。別の言い方をすれば、工具長とは、機械座標系での工具TaのZm軸方向の長さである。軸方向オフセットとは、工具Taが工具主軸114に取り付けられた状態での、工具Taの基端点から工具Taの切刃先端部(tool tip)までの軸方向の距離である。工具Taの基端点とは、工具Taが工具主軸114に取り付けられた状態での工具Taの軸方向に沿う2つの端点のうち、工具主軸114に把持される工具Taの部分に属する端点である。別の言い方をすれば、軸方向オフセットとは、機械座標系での工具Taの基端点から切刃先端部までのZm軸方向の距離である。図9の例では、旋削工具(T06)のみにおいて軸方向オフセットが表示されており、残りの工具においては工具長が表示されている。工具長または軸方向オフセットのいずれが数値346として表示されるかは、工具の種類に依存する。
 図9を参照すると、工具データ画面340の右端に工具半径(tool radius)または径方向オフセットの数値347が表示される。なお、本実施例では工具半径が表示されているが、工具半径の代わりに工具直径が表示されてもよい。工具半径(tool radius)とは、摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での回転軸線A2に対して垂直な向き(以下、径方向と呼ぶ)の工具Taの半径である。径方向オフセットとは、摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での、工具Taの基端点から工具Taの刃先(cutting edge)までの径方向の座標値である。この座標値は、工具主軸台112が図1に示される姿勢であるときに、工具Taが工具主軸114に取り付けられた状態での工具Taの刃先のXm座標の値である。図9の例では、ドリル(T03)の工具半径(tool radius)は、呼び径から算出できるため、数値347の記載が省略されている。旋削工具(T06)においては径方向オフセットが数値347として表示されており、フェイスミル(T08)においては工具半径が数値347として表示されている。工具半径または軸方向オフセットのいずれが数値347として表示されるか、数値347の表示が省略されるか否かは、工具の種類に依存する。
 図10を参照すると、数値345の右隣には、軸方向累積摩耗量の数値351が表示される。軸方向累積摩耗量とは、工具Taの切刃先端部(tool tip)の軸方向の累積摩耗量である。累積摩耗量は、工具Taの使用により累積した摩耗量であって、工具Taの使用態様や使用時間から工作機械100が算出することが可能である。あるいは、プログラマもしくは作業者が工具Taの使用態様を見ながら累積摩耗量を入力してもよい。累積摩耗量を確認することによってプログラマが当該工具Taの使用の適否や交換時期を把握することができる。なお、累積摩耗量の表示は省略されてもよい。図10の例では、エンドミル(T01)やドリル(T03)においては数値351の表示が省略されている。さらに、工具データ画面340の右端に径方向累積摩耗量の数値352が表示される。径方向累積摩耗量とは、工具Taの刃先(cutting edge)の径方向の累積摩耗量である。図10の例では、エンドミル(T01)やドリル(T03)においては数値352の表示が省略されている。工具データ画面340には、上述する以外の工具情報も表示可能であるが、後段の工具データ画面の変形例340aにおいて詳細に説明する。
 T番号341、シンボル342、工具名343、加工部位を示す名称344、数値345~347、351、352は、行ごとに対応づけられ、プログラムコード302中のT番号に関連づけられる。このように、プログラムコード302中のT番号341に関連づけられる工具情報158を第1工具情報と呼ぶ。工具情報は、第1工具情報を含み、第1工具情報は、後述するように、参照番号361、X値362、Y値363、Z値364、R値365、T番号341、シンボル342、工具名343、加工部位を示す名称344、数値345~347、351、352のうちの少なくとも1つを含む。第1工具情報は工具の使用により累積した累積摩耗量351、352を含む。
 工具データ画面340の下端左端には、入力ボタン348が表示されている。プログラマは、プログラム編集画面300と、工具データ画面340を参照して、以下のように、プログラム中に加工に適した工具に係るT番号をプログラム中に入力することができる。(1)プログラム編集画面300中においてT番号を挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(2)工具データ画面340を参照し、加工に適した工具が表示されている行をタップまたはクリックで選択する。(3)入力ボタン348をタップまたはクリックする。これによって、プログラムコード302中の(1)によって指定された挿入箇所に(2)で選択された工具に対応するT番号が挿入される。なお、本実施形態ではT番号としてT番号341にある数字2桁の後ろに「00」を追加挿入してもよい。
 さらに、プログラマは、工具データ画面340において表示される値のうち、軸方向オフセット・径方向オフセット・摩耗量を工具データ画面340で編集可能である。この編集は、例えば、以下のような手順で行うことができる。(1)工具データ画面340上で編集する箇所をタップ・長押し・クリックなどで選択し、編集可能な状態(例えば、フォームタグとして表示)とする。(2)工作機械100の制御装置150のようにタッチパネル付きディスプレイで表示している場合、スクリーンキーボード、スクリーンテンキーボードのような入力インタフェースを追加表示する。(3)キーボードもしくは(2)で示されたスクリーン上の入力インタフェースで値を入力する。なお、上述するタップ・クリックは、それぞれ、シングルタップ・シングルクリックでも、ダブルタップ・ダブルクリックでもよい。また、編集方法は、上記の方法に限らず、別のGUI・音声入力などの他の手段が用いられてもよい。また、加工プログラム編集プログラム221(159)以外のプログラムによって、軸方向オフセット・径方向オフセット・摩耗量などが編集されてもよい。
 工具データ画面340の下端には、さらに、M06指令をプログラムコード302に入力するためのM06指令入力ボタン353が表示されている。M06指令とは、工具交換指令である。プログラムコード中では、
<交換される工具のTコード> <次に交換する予定の工具のTコード> M06;
と記述される。プログラムコード302中のM06指令を挿入する挿入箇所がタップ・クリック・カーソル移動等の操作によって指定されている状態で、M06指令入力ボタン353がクリックまたはタップされると、指定された挿入箇所にM06指令のコードが挿入される。M06指令入力ボタン353を利用した入力においては、入力ボタン348への入力は不要である。M06指令をMコード一覧画面330から入力することも可能であるが、M06指令はTコードと関連性が高いため、工具データ画面340からM06指令を直接入力できるほうがプログラミング上の利便性が高い。このため、M06指令入力ボタン353が工具データ画面340に表示されることによってプログラミングが効率化される。
 工具データ画面340の下端には、さらに、工具を指定しないT番号をプログラムコード302に入力するためのT00入力ボタン354が表示されている。T00は、工具主軸114に工具を装着しないことを指定する、または、マガジンアーム132に工具を装着しないことを指定するためのT番号である。例えば、工具交換時に次に交換する予定がないときに、上述の<次に交換する予定の工具のTコード>にT00を示すコードがプログラムコード中に記述される。プログラムコード302中のT00を挿入する挿入箇所がタップ・クリック・カーソル移動等の操作で指定されている状態で、T00入力ボタン354がクリックまたはタップされると、指定された挿入箇所にT00を示すコードが挿入される。T00入力ボタン354を利用した入力においては、入力ボタン348への入力は不要である。T00は、他の入力手段(キーボード(入力インタフェース250の1つ)、もしくは表示画面30に別途に表示されるスクリーンキーボード)から入力することも可能であるが、M06指令と組み合わせて利用する頻度が多い。このため、T00入力ボタン354がM06指令入力ボタン353と同じ画面(工具データ画面340)に表示されることによってプログラミングが効率化される。
 図9及び図10において示された工具データ画面340の表示態様は、単なる一例であって、他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図9及び図10に示されたものでなくてもよい。また、入力ボタン348はテキストではなく、記号や図柄によって表されてもよく、矢印ボタン349a、349bは他の記号や図柄によって表されてもよい。なお、図9及び図10では、工具データ画面340において工具TaがT番号順に表示されているが、過去の使用回数の多い順、または、過去の所定期間内において使用回数の多い順に工具Taが表示されてもよい。さらに、数値346、347については、後述する工具長オフセットの1つとして利用することもできるが、これについては後段の工具データ画面の変形例340aで説明する。
<工具オフセット>
 次に、工具オフセット画面360を説明するにあたり、工具オフセット画面360で指定する工具長補正、工具径補正、ノーズR補正の概念について説明する。工具長補正(tool length compensation)とは、基準点Psと工具Taの切刃先端部の位置ずれ(オフセット)を補正することをいう。図11・図12に示すように、基準点Psは、機械原点Omを通るZm軸に位置し、上述する、工具Taが工具主軸114に取り付けられた状態での工具Taの基端点に一致する。機械原点Omに対する工具Taの切刃先端部の位置は、工具Taの種類、摩耗状態によって千差万別である。このため、加工プログラム157では、あたかも機械原点OmがワークW1の切削位置を通るかのようにプログラムコードが記述されるが、機械原点Omに対する工具Taの切刃先端部の位置は工具長オフセット(tool length offset)としてプログラムされる動きとは別に管理され、工作機械100は、工具長オフセットを補正して加工プログラム157を実行する。
 具体的には、図11・図12に示すように、工具長オフセットは、機械座標系での機械原点Omに対する工具Taの切刃先端部Egの位置(Xf,Yf,Zf)で定義される。Xfは、工具Taの切刃先端部EgのXm座標である。Yfは、工具Taの切刃先端部EgのYm座標である。Zfは、工具Taの切刃先端部EgのZm座標である。Xfは、工具主軸114内の基準点Psを機械座標系の原点としたときの切刃先端部EgのXm座標Xsdと一致する。Yfは、当該基準点Psを機械座標系の原点としたときの切刃先端部EgのYm座標Ysdと一致する。Zfは、当該基準点PsのZm座標Zpと、当該基準点Psを機械座標系の原点としたときの切刃先端部EgのZm座標Zsdとの和である。Zpは、工作機械100の仕様によってあらかじめ定められている。
 (Xsd,Ysd,Zsd)は、形状オフセットと摩耗補正パラメータの2つの和によって求められる。形状オフセットとは、摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での、工具Taの基端点(工具主軸114内の基準点Ps)を原点としたときの、切刃先端部EgまでのXm座標、Ym座標、Zm座標(Xs,Ys,Zs)である。Zsは、上述する工具Taの軸方向オフセットと一致する。ドリルのような径方向の形状が略円形である工具においては、Xs及びYsは、上述する径方向オフセットと一致する。摩耗補正パラメータは、工具Taが摩耗したことにより、上述する形状オフセットからずれたずれ量を機械座標系で表現したものである。摩耗補正パラメータのXm座標の値、Ym座標の値、Zm座標の値を、それぞれXd、Yd、Zdとするとき、工具長オフセットXf,Yf,Zfは、以下の式により表される。
Xf=Xsd=Xs+Xd
Yf=Ysd=Ys+Yd
Zf=Zp+Zsd=Zp+Zs+Zd
 つぎに、工具径補正(tool radius compensation)の概念について説明する。工具径補正とは、ミル加工・削孔加工において、基準点Psと工具Taの刃先(cutting edge)(工具Taの回転軸A2方向からみた工具Taの最大径をなす周縁部(periphery))の位置ずれ(オフセット)を補正することをいう。機械原点Omに対する工具Taの刃先の位置は、工具Taの種類、摩耗状態によって千差万別である。このため、加工プログラム157では、あたかも機械原点OmがワークW1の切削位置を通るようにプログラムコードが記述されるが、機械原点Omに対する工具Taの刃先の位置は工具径オフセット(tool radius offset)として別に管理され、工作機械100は、工具径オフセットを補正して加工プログラム157を実行する。
 図13は、目標外形(target contour)Ctの外側をミル加工する場合に、工具径補正を行った場合の工具の経路Lcの一例を示す。図13では、工具径オフセットDfは、工具Taの回転軸A2方向から見た機械原点Omと工具Taの刃先との間の距離である。工具径補正によって、工具Taの機械原点Omが、目標外形Ctから工具径オフセットDf以上離間した経路Lcを移動するように制御される。目標外形Ct内側と目標外形Ct外側のどちら側に補正するか(NCプログラムではG41指令またはG42指令のいずれを用いるかによって切刃進行方向の左右どちら側かで規定する)を与えれば、経路Lcを公知の方法で数学的に求めることができる。
 図14は、ミル工具における工具径オフセットDfを示す図である。図14では、ミル工具の工具径オフセットDfを例示しているが、削孔加工に利用されるドリルにおいても同様に考えてよい。工具半径(tool radius)をRsとし、工具Taの回転軸A2に対する径方向の摩耗量Rdとするとき、工具径オフセットDfは、以下の式により表される。
Df=Rs+Rd
 つぎに、ノーズR補正(nose radius compensation)の概念について説明する。工具の刃先(nose)は、一般に丸みをもっているため、工具長オフセットから規定される仮想刃先点(imaginary tool tip)EgvがワークW1と接触せず、仮想刃先点Egvとは別の曲率半径Rの円弧によって形状が定義された刃先(cutting edge)EgがワークW1と接触することとなる。このような状況で、仮想刃先点Egvを工具の先端とみなしてプログラミングすると、図15に示すように目標外形Ctとずれた外形Crに加工されてしまう。図15は、仮想刃先点Egvが刃先Egの外部にあるために、曲率半径Rの円弧の中心Eoが目標外形Ctから曲率半径Rよりも大きく離間する経路Loを通ることにより目標外形Ctとずれた外形Crに加工されてしまう例を示している。ノーズR補正は、ワーク座標系における刃先Egの形状を規定する円弧の中心Eoから仮想刃先点Egvに向かう方向(刃先方向(nose direction))、及び、当該円弧の曲率半径Rに基づいて、当該円弧の中心Eoの経路が目標外形Ctから曲率半径Rだけ離間する経路Lcとなるように仮想刃先点Egvの移動経路を補正することをいう。これにより、図15に示すように、仮想刃先点Egvの経路は、目標外形CtよりもワークW1内側を通る経路Lvcとなるように補正される。なお、仮想刃先点Egvの経路Lvcから機械原点Omの移動経路を求めるのは、工具長補正を用いて行うことができる。
 図16は、刃先方向を例示したものである。図16は、8通りの刃先方向に加えて、ワーク座標系のY軸に垂直な全ての刃先方向に対応した特殊な刃先を刃先方向[0](及び、刃先方向[9])とした合計9つの刃先方向を図示している。刃先方向[1]は、ワーク座標系のX軸正方向且つZ軸正方向に向かう方向である。刃先方向[2]は、ワーク座標系のX軸正方向且つZ軸負方向に向かう方向である。刃先方向[3]は、ワーク座標系のX軸負方向且つZ軸負方向に向かう方向である。刃先方向[4]は、ワーク座標系のX軸負方向且つZ軸正方向に向かう方向である。刃先方向[5]は、ワーク座標系のZ軸正方向に向かう方向である。刃先方向[6]は、ワーク座標系のX軸正方向に向かう方向である。刃先方向[7]は、ワーク座標系のZ軸負方向に向かう方向である。刃先方向[8]は、ワーク座標系のX軸負方向に向かう方向である。
 ワーク座標系での円弧の中心Eoの座標を(Xo,Yo,Zo)とするとき、ワーク座標系における仮想刃先点Egvの座標(Xgv,Ygv,Zgv)は、以下のように定められる。
刃先方向[1]:(Xgv,Ygv,Zgv)=(Xo+R,Yo,Zo+R)
刃先方向[2]:(Xgv,Ygv,Zgv)=(Xo+R,Yo,Zo-R)
刃先方向[3]:(Xgv,Ygv,Zgv)=(Xo-R,Yo,Zo-R)
刃先方向[4]:(Xgv,Ygv,Zgv)=(Xo-R,Yo,Zo+R)
刃先方向[5]:(Xgv,Ygv,Zgv)=(Xo,Yo,Zo+R)
刃先方向[6]:(Xgv,Ygv,Zgv)=(Xo+R,Yo,Zo)
刃先方向[7]:(Xgv,Ygv,Zgv)=(Xo,Yo,Zo-R)
刃先方向[8]:(Xgv,Ygv,Zgv)=(Xo-R,Yo,Zo)
刃先方向[0]、[9]:(Xgv,Ygv,Zgv)=(Xo,Yo,Zo)
 目標外形Ct内側と目標外形Ct外側のどちら側に補正するか(NCプログラムではG41指令またはG42指令のいずれを用いるかによって切刃進行方向の左右どちら側かで規定する)を与えれば、該円弧の中心Eoの経路Lcを公知の方法で数学的に求めることができる。そして、刃先方向が与えられると、上述の(Xo,Yo,Zo)と(Xgv,Ygv,Zgv)との対応関係から仮想刃先点Egvの経路Lvcが求められる。経路Lvcが求められると、仮想刃先点Egvを切刃先端部Egとみなした工具長補正によって経路Lvcから機械原点Omの移動経路を求められる。
 また、ノーズR補正においても摩耗の概念を導入することができる。この場合、摩耗のない(新品の)工具Taの工具長に工具長補正で使用される摩耗補正パラメータを加えることによって工具長オフセット(Xf,Yf,Zf)を求め、摩耗がないときの曲率半径Roから、摩耗量Rdを減じることによって曲率半径Rを求めればよい。
<工具オフセット画面>
 図17及び図18は、工具オフセット画面360の表示例である。図17及び図18を参照すると、G43指令/G44指令(工具長補正)でのオフセット値を参照するためのH番号、G41指令/G42指令(工具径補正)でのオフセット値を参照するためのD番号のいずれかとして参照される参照番号361が、工具オフセット画面360の左端に表示される。この参照番号361は、工具Taと直接関連づけられない。図17と図18とは、図示しない切替ボタンによって切り替えられる。
 図17において、参照番号361の右隣には、工具長補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での切刃先端部EgのXm座標、あるいは、ノーズR補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での仮想刃先点EgvのXm座標を表すX値362が表示される。X値362の右隣には、工具長補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での切刃先端部EgのYm座標、あるいは、刃先丸み補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での仮想刃先点EgvのYm座標を表すY値363が表示される。Y値363の右隣には、工具長補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での切刃先端部EgのZm座標、あるいは、ノーズR補正の際に利用される摩耗のない(新品の)工具Taが工具主軸114に取り付けられた状態での仮想刃先点EgvのZm座標を表すZ値364が表示される。工具オフセット画面360の右端には、工具径補正の際に利用される工具半径Rs、あるいは、ノーズR補正の際に利用される摩耗がないときの刃先Egの形状を規定する円弧の曲率半径Roを表すR値365が表示される。
 工具オフセット画面360の右下隅には、矢印ボタン369a、369bが表示されている。矢印ボタン369a、369bのクリックまたはタップによって、工具オフセット画面360に表示される参照番号361の範囲を変更することができる。
 図18において、参照番号361の右隣には、工具長補正あるいはノーズR補正の際に利用される摩耗補正パラメータのXm座標を表すXd値371が表示される。Xd値371の右隣には、工具長補正あるいはノーズR補正の際に利用される摩耗補正パラメータのYm座標を表すYd値372が表示される。Yd値372の右隣には、工具長補正あるいはノーズR補正の際に利用される摩耗補正パラメータのZm座標を表すZd値373が表示される。Zd値373の右隣には、工具径補正あるいはノーズR補正の際に利用される径方向の摩耗量Rdを表すRd値374が表示される。工具オフセット画面360の右端には、上述する刃先方向[0]~[9]に対応する方向値375が表示される。工具径補正のとき、方向値375は0として表示される。
 参照番号361、X値362、Y値363、Z値364、R値365、Xd値371、Yd値372、Zd値373、Rd値374、及び方向値375は、行ごとに対応づけられ、プログラムコード302中のH番号とD番号とのうちの少なくとも1つに関連づけられる。このように、プログラムコード302中のH番号とD番号とのうちの少なくとも1つに関連づけられる工具情報158を第2工具情報と呼ぶ。工具情報は、第2工具情報を含み、第2工具情報は、参照番号361、X値362、Y値363、Z値364、R値365、Xd値371、Yd値372、Zd値373、Rd値374、及び方向値375のうちの少なくとも1つを含む。1つの参照番号361は、工具長補正、工具径補正、ノーズR補正のいずれか1つのオフセット値を管理する。つまり、第2工具情報は、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、ノーズR補正を行うためのパラメータのいずれかである。このような管理方法が採用されているため、工具長補正に対応する参照番号361と同じ行にあるR値365、Rd値374、及び方向値375には0が表示される。工具径補正に対応する参照番号361と同じ行にあるX値362、Y値363、Z値364、Xd値371、Yd値372、及びZd値373には0が表示される。
 工具オフセット画面360の下端には、D番号入力ボタン367、H番号入力ボタン368が表示されている。工具長補正を行う場合、(1)Gコード一覧画面320、キーボード(入力インタフェース250の1つ)等で先にG43指令又はG44指令をプログラムコード302に入力した後、プログラム編集画面300中においてH番号を挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(2)工具オフセット画面360を参照し、工具長補正に適したX値362、Y値363、Z値364、Xd値371、Yd値372、及びZd値373が表示されている行をタップまたはクリックで選択する。(3)H番号入力ボタン368をタップまたはクリックする。これによって、プログラムコード302中の(1)によって指定された挿入箇所に、(2)で選択された列の参照番号361の先頭に文字Hが付加されたH番号が挿入される。例えば、参照番号361として「3」が選択されている場合、H03もしくはH003がプログラムコード302に入力される。このように入力された参照番号361を参照するG43指令/G44指令は、G49指令が呼ばれて工具長補正がキャンセルされるか、追加のG43指令/G44指令によってオフセット値が変更されるまで有効となる。
 工具径補正を行う場合、(1)Gコード一覧画面320、キーボード(入力インタフェース250の1つ)等で先にG41指令またはG42指令をプログラムコード302に入力した後、プログラム編集画面300中においてD番号を挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(2)工具オフセット画面360を参照し、工具径補正に適したR値365、Rd値374、及び方向値375が表示されている行をタップまたはクリックで選択する。なお、工具径補正とノーズR補正とのいずれの場合においてもG41指令またはG42指令が利用されるため、方向値375が参照される。このため、工具径補正においては、方向値375が0または9である行が選択される必要がある。一般的には、方向値375は0に指定される。最後に、(3)D番号入力ボタン367をタップまたはクリックする。これによって、プログラムコード302中の(1)によって指定された挿入箇所に、(2)で選択された列の参照番号361の先頭に文字Dが付加されたD番号が挿入される。例えば、参照番号361として「5」が選択されている場合、D05もしくはD005がプログラムコード302に入力される。このように入力された参照番号361を参照するG41指令/G42指令は、G40指令が呼ばれて工具径補正がキャンセルされるか、追加のG41指令/G42指令によってオフセット値が変更されるまで有効となる。
 ノーズR補正を行う場合、まず、(1)仮想刃先点Egvに係る工具長オフセットを上述する工具長補正によって補正する。工具長補正は、G43指令/G44指令によってなされてもよいが、T番号によってなされることもある。これについては後段の工具データ画面の変形例340aで説明する。つぎに、(2)Gコード一覧画面320、キーボード(入力インタフェース250の1つ)等で先にG41指令またはG42指令をプログラムコード302に入力した後、プログラム編集画面300中においてD番号を挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(3)工具オフセット画面360を参照し、ノーズR補正に適したR値365、Rd値374、及び方向値375が表示されている行をタップまたはクリックで選択する。ノーズR補正では、仮想刃先点Egvと円弧の中心Eoとの位置ずれを、工作機械100が方向値375を参照して補正するため、(1)に係る補正においては、仮想刃先点Egvに係る工具長オフセットをプログラマは考慮すればよい。最後に、(4)D番号入力ボタン367をタップまたはクリックする。これによって、プログラムコード302中の(2)によって指定された挿入箇所に、(3)で選択された列の参照番号361の先頭に文字Dが付加されたD番号が入力される。例えば、参照番号361として「8」が選択されている場合、D08もしくはD008がプログラムコード302に挿入される。このように入力された参照番号361を参照するG41指令/G42指令は、G40指令が呼ばれて工具径補正がキャンセルされるか、追加のG41指令/G42指令によってオフセット値が変更されるまで有効となる。
 工具オフセット画面360は、このように、参照番号361、X値362、Y値363、Z値364、R値365、Xd値371、Yd値372、Zd値373、Rd値374、及び方向値375を表示し、D番号・H番号に係るパラメータを1つの補助画面で管理しているため、補助画面310の数を減少させることができる。さらには、工具オフセット画面360には、D番号入力ボタン367、H番号入力ボタン368が表示され、これらのボタン操作によって参照番号361をD番号・H番号に変換してプログラムコード302へ挿入することができる。これによってプログラマは、選択したパラメータをプログラムコード302に簡単に入力することができる。
 なお、図17及び図18において示された工具オフセット画面360の表示態様は、単なる一例であって、他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図17及び図18に示されたものでなくてもよい。また、D番号入力ボタン367、H番号入力ボタン368はテキストではなく、記号や図柄によって表されてもよく、矢印ボタン369a、369bは他の記号や図柄によって表されてもよい。なお、図17及び図18では、工具オフセット画面360において参照番号361順にパラメータが表示されているが、過去の使用回数の多い順、または、過去の所定期間内において使用回数の多い順にパラメータが表示されてもよい。
<マクロ変数画面>
 図19は、マクロ変数画面380の表示例である。マクロ変数画面380とは、加工プログラム157で使用されるマクロ変数の数値、及び、マクロ変数の内容を表示する画面である。マクロ変数とは、プログラムコード中において、繰り返し利用される数値に対応づけられる変数である。マクロ変数によって、プログラムコード中において繰り返し利用される数値の変更を容易とすることができる。マクロ変数には、工作機械100で実行される全ての加工プログラム中で共通に利用できるコモン変数(100番台、500番台が多く用いられる)と、1つの加工プログラム内で利用できるローカル変数(一般的に、#1~#33が用いられる)と、工作機械100のシステムパラメータを管理するシステム変数(一般的に、1000番台以降が用いられる)がある。
 図19では、マクロ変数画面380は、コモン変数の数値、及び、内容を表示している。マクロ変数画面380は、ローカル変数、システム変数についても同様に表示してもよいが、ローカル変数・システム変数の表示例については説明を省略する。マクロ変数画面380では、左端に変数名381が表示される。変数名381の右隣りには、変数名381で示されるマクロ変数に入力される数値382が表示される。
 マクロ変数画面380の右端には、変数名381で示されるマクロ変数に対応するコメント383が表示される。変数名381、数値382、コメント383は、行ごとに対応づけられている。マクロ変数画面380の右上隅には、コメント表示切替ボタン384が表示される。コメント表示切替ボタン384のクリックまたはタップによって、マクロ変数画面380中のコメント383の表示/非表示が切り替えられる。また、マクロ変数画面380の右下隅には、矢印ボタン389a、389bが表示されており、矢印ボタン389a、389bのクリックまたはタップによって、マクロ変数画面380に表示される変数名381の範囲を変更することができる。
 マクロ変数画面380の下端左側には、変数入力ボタン385、及び、コメント入力ボタン386が表示される。変数名381、数値382、及び、コメント383は、行ごとに対応づけされて管理されるため、変数名381、数値382、及びコメント383のうちのどれか1つがクリックまたはタップされると、クリックまたはタップされた項目と同じ行に係る変数名381、数値382、コメント383が選択され、白黒反転表示などがされる。その状態で変数入力ボタン385がクリックまたはタップされると、選択されている変数名381に係るマクロ変数が、プログラムコード302中の挿入箇所に挿入される。また、その状態でコメント入力ボタン386がクリックまたはタップされると、選択されているコメント383の両側に丸括弧を追加した文字列が、プログラムコード302中の挿入箇所に挿入される。具体的には、図19において例えば、#100が選択されているときに、コメント入力ボタン386がクリックまたはタップされると、文字列(WORK-NUM)がプログラムコード302中の挿入箇所に挿入される。
 さらに、特定の変数名381、数値382、コメント383がクリックまたはタップされると、選択された変数名381、数値382、コメント383を編集するためのポップアップウィンドウが表示される。プログラマは、当該ポップアップウィンドウ中で数値382、コメント383を編集したり、まだ数値382が割り当てられていないマクロ変数を設定したりすることができる。
 図19において示されたマクロ変数画面380の表示態様は、単なる一例であって、変数名381と数値382とが表示されていれば他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図19に示されたものでなくてもよい。また、コメント表示切替ボタン384、変数入力ボタン385、コメント入力ボタン386はテキストではなく、記号や図柄によって表されてもよく、矢印ボタン389a、389bは他の記号や図柄によって表されてもよい。また、コメント383、コメント表示切替ボタン384、コメント入力ボタン386は省略されてもよい。さらに、図19では、マクロ変数画面380においてマクロ変数の番号順に変数名381が表示されているが、過去の使用回数の多い順、または、過去の所定期間内において使用回数の多い順に変数名381が表示されてもよい。
<マクロ入力画面>
 図20は、マクロ入力画面390の表示例である。マクロ入力画面390とは、マクロをGUIによって簡単に入力するための画面である。本実施形態においては、マクロとは、プログラミングにおいて利用される文字セット(character set)のことを指す。当該文字セットは、汎用的もしくは頻繁に用いられる文字セットであることが望ましい。マクロは、プログラムコードにおいて制御構造(control structure)を規定するための演算子391(以下、制御命令(control command)391と呼ぶ)、数学関数を表す関数コード392、比較演算子(comparative operator)393、及び、外部出力コマンド394を含む。
 ここで、関数コード392のうち、BCDとは、バイナリデータをBCD(Binary-Coded Decimal)データに変換する関数である。BINとは、BCDデータをバイナリデータに変換する関数である。FIXとは、小数点以下切り捨ての関数である。FUPとは、小数点以下切り上げの関数である。ROUNDとは、四捨五入によって整数を出力する関数である。比較演算子393のうち、EQは"equal"を表し、NEは"not equal"を表し、GTは、"greater than"を表し、LTは"less than"を表し、GEは"greater than or equal to"を表し、LEは"less than or equal to"を表す。外部出力コマンド(external output command)394のうち、POPENはRS232Cポートオープンのコマンドである。POPENは、外部データ出力の前に呼び出される。PCLOSはRS232Cポートクローズのコマンドである。PCLOSは外部データ出力が完了した時点で呼び出される。DPRNTは引数(文字列及び/又は数値)をISOコードで出力するコマンドである。BPRNTは引数(文字列及び/又は数値)をバイナリ形式で出力するコマンドである。BCD・BIN・FIX・FUP・ROUND以外の関数コード392及び制御命令391については、汎用的なプログラム言語でも用いられており、広く知られているため説明を省略する。
 マクロ入力画面390の下端には、入力ボタン395が表示される。制御命令391、関数コード392、比較演算子393、及び、外部出力コマンド394のどれか1つがクリックまたはタップされると、クリックまたはタップされたコードが選択され、白黒反転表示などがされる。その状態で入力ボタン395がクリックまたはタップされると、選択されているコードがプログラムコード302中の挿入箇所に挿入される。
 マクロ入力画面390では、さらに、上述する文字セット391~394と組み合わせて利用される記号(symbol)の入力ボタン―算術演算子(arithmetic operator)キーボタン396、スペースキーボタン397、及び改行キーボタン398が表示されている。つまり、当該記号とは、算術演算子、空白文字、改行文字を含む。NCプログラムにおいて、改行文字とは、「;」(EOB)を含む。なお、図20には表示されていないが、マクロ入力画面390には、0から9までの数字キー(numeric key)ボタン、小数点キー(decimal key)ボタンが付加的に表示されてもよい。マクロ入力画面390は、上述のマクロを表示するばかりでなく、マクロと組み合わせて利用される記号の入力ボタン396~398も併せて表示しているため、プログラミング補助画面(programming assistance screen)と称してもよい。
 算術演算子キーボタン396がクリックまたはタップされると、クリックまたはタップされたボタンに対応する演算子がプログラムコード302中の挿入箇所に挿入される。スペースキーボタン397がクリックまたはタップされると、スペースがプログラムコード302中の挿入箇所に挿入される。改行キーボタン398がクリックまたはタップされると、改行文字(「;」(EOB))がプログラムコード302中の挿入箇所に挿入される。算術演算子キーボタン396、スペースキーボタン397、及び改行キーボタン398を利用した入力においては、入力ボタン395への入力は不要である。なお、加工プログラム編集プログラム221は、入力ボタン396~398以外に、コンピュータ200に接続されているキーボード(入力インタフェース250の1つ)、もしくは表示画面30に別途に表示されるスクリーンキーボードから算術演算子・スペース・改行の入力を受け付けてもよい。加工プログラム編集プログラム159は、入力ボタン396~398以外に、表示画面30に別途に表示されるスクリーンキーボードから算術演算子・スペース・改行の入力を受け付けてもよい。
 数学関数を規定する関数コード392、外部出力コマンド394、及び演算子391、393の少なくとも1つを含む文字セットを表示する補助画面(プログラミング補助画面)であるマクロ入力画面390では、当該文字セット(マクロ)391~394と組み合わせて利用される記号の入力ボタン396~398も併せて表示される。このため、特に工作機械100のタッチパネル付きディスプレイ154において別途のスクリーンキーボードの表示を行った上で入力する手間を省くことができる。その結果、工作機械100でのプログラミングが効率化される。
 関数コード392の引数、比較演算子393の比較対象値、及び、外部出力コマンド394の引数には、上述のマクロ変数が入力される場合も多い。このような場合、マクロ変数画面380を第1補助画面312と第2補助画面314とのうちの一方、マクロ入力画面390を第1補助画面312と第2補助画面314とのうちの他方に表示することによってプログラムをより効率的に行うことができる。
 なお、図20において示されたマクロ入力画面390の表示態様は、単なる一例であって、他の表示態様であってもよい。例えば、ボタンやテキストの表示位置は、図20に示されたものでなくてもよい。入力ボタン395、スペースキーボタン397はテキストではなく、記号や図柄によって表されてもよい。スペースキーボタン397は、無地のスペースバーボタンとして表示されてもよい。改行キーボタン398は、テキストまたは、他の記号や図柄によって表されてもよい。また、算術演算子キーボタン396、スペースボタン397、及び改行キーボタン398の少なくとも1つは省略されてもよい。制御命令391、関数コード392、比較演算子393、及び、外部出力コマンド394は、図20に表示されたコードの以外のコードを含んでもよく、図20に表示されたコードの一部が省略されてもよい。
<工具データ画面の変形例>
 基本的な表示画面30の説明は以上である。しかし、拡張的な機能として、工具データ画面340において工具オフセット画面360で管理されるパラメータ361~365、371~375を、T番号に紐づけて管理することも可能である。この場合、T番号にかかる工具Taに交換される際に、プログラムコード302中のG43指令、G44指令の有無に関わらず、T番号に紐づけられて管理されたパラメータ361~365、371~375に基づいて工具長補正が実行される。工作機械100の設定によって、G43指令及びG44指令による工具長補正のみを有効にしたり、T番号による工具長補正のみを有効にしたり、両方の指定による工具長補正を有効にしたりすることが可能である。両方の指定による工具長補正が有効であるとき、T番号による補正値と、G43指令及びG44指令による補正値が合算されて、工具長補正が行われる。なお、工具径補正及びノーズR補正は、工具データ画面340の表示の有無に関わらず、プログラムコード中にG41指令またはG42指令を記載する必要がある。
 工具Taによっては異なる刃の端面を利用して異なる切削加工を可能とするものもある。そのような工具における工具Taの端面のそれぞれは、異なるパラメータ361~365、371~375を有することとなる。このような端面を管理するにあたり、T番号341の整数部分(もしくは上から所定桁分)で工具Taを特定し、小数点以下(もしくは上記所定桁分以降)で異なる端面を指定することができる。このような端面を規定する符号をサフィックスと呼ぶ。T番号341の数値とサフィックスとを組み合わせて1つの工具Taを指定する場合もあるが、そのような場合については説明を省略する。
 図21は、工具データ画面340の変形例340aを示す。図21では、複数の用途で用いられるT番号が3であるドリルと、T番号が5である旋削工具とが表示されている。これらの工具については、数値345の右隣にサフィックス341aが表示されている。サフィックス341aはアルファベットで表記されているが、プログラムコードにT番号として入力される際には、ABC…Zが「01」「02」「03」…「26」に変換されるか、ABC…Zが「61」「62」「63」…「86」に変換される。サフィックス341aが表示されていない工具については、プログラムコード302に入力されるT番号の最後には、サフィックスとして00が付加される。以降の説明において、図21の工具を説明する際には、プログラムコード302にて出力されるT番号を利用して説明する。例えば、旋削ドリルについては、T番号が3.08といった形で説明する。なお、サフィックス341aがアルファベットで表示されるのではなく、数字で表示されてもよい。また、サフィックス341aの表示位置は他の場所(例えば、T番号341とシンボル342との間)であってもよい。
 本変形例では、T番号341とサフィックス341aとの組み合わせから参照される情報として、工具オフセット画面360で管理されるX値362、Y値363、Z値364、R値365、Xd値371、Yd値372、Zd値373、Rd値374、及び方向値375の少なくとも1つに相当する数値を含む。また、数値345は、R値365またはX値362に相当するものであるとして、数値346は、Z値364に相当するものとして、数値347は、X値362またはR値365に相当するものとして管理されてもよい。
 T番号が3.00のドリルと、T番号が3.08の旋削ドリルは工具としては同一である。しかし、T番号が3.00のドリルは、削孔加工に用いられるため、加工においては工具径補正が必要となる。一方、T番号が3.08の旋削ドリルは旋削加工に用いられるため、加工においては工具長補正(もしくはノーズR補正)が必要となる。このように同じ工具であっても別の補正が必要であるパラメータを管理するのにサフィックス341aは有効である。T番号による工具長補正、工具径補正、及び、ノーズR補正が有効である場合において、T03.00(T003.00)がプログラムコード302において指定されると、例えば呼び径5.0mmを考慮した工具径補正が設定される。T03.08(T003.08)がプログラムコード032において指定されると、例えば工具長オフセットが(5.0,0.0,123.0)となる工具長補正が設定される。工作機械100のプロセッサ151は、加工プログラム157の実行時には、G41指令、G42指令、G43指令、G44指令の代わりに、加工部位を示す名称344、サフィックス341aの範囲などを参照し、工具長補正、工具径補正、及び、ノーズR補正のいずれの補正が適切か判定してもよい。
 プログラマは、プログラム編集画面300と、工具データ画面340を参照して、以下のように、プログラム中に加工に適した工具長補正、工具径補正、及び、ノーズR補正に係るT番号をプログラム中に入力することができる。(1)プログラム編集画面300中においてT番号を挿入する挿入箇所をタップ・クリック・カーソル移動等の操作で指定する。(2)工具データ画面340を参照し、加工に適した工具及び切削加工における誤差を補正するためのパラメータが表示されている行をタップまたはクリックで選択する。(3)入力ボタン348をタップまたはクリックする。これによって、プログラムコード302中の(1)によって指定された挿入箇所に(2)で選択された工具に対応するサフィックス入りのT番号が入力される。
<加工プログラムの編集方法、加工プログラム編集プログラムの処理の流れ>
 次に、本実施形態における旋削加工を説明する。図22は、本実施形態における加工プログラムの編集方法、及び、加工プログラム編集プログラム221(159)の処理を示すフローチャートである。プロセッサ210(151)は、加工プログラム編集プログラム221(159)を実行すると、図22に示す動作を行う。まず、プロセッサ210(151)は、工作機械100に装着可能な工具Taの工具情報158を取得する(ステップS1)。工具情報158とは、例えば、工具Taに対応するT番号341、工具Taの名称(工具名)343、工具Taの寸法345~347、並びに、切削加工における誤差を補正するためのパラメータ362~365、371~375の少なくとも1つを含む。切削加工における誤差を補正するためのパラメータは、工具長補正を行うためのパラメータ362~364・371~373、工具径補正を行うためのパラメータ365・374・375、及びノーズR補正を行うためのパラメータ365・374・375の少なくとも1つを含む。
 工具情報158は、工具Taの使用により累積した累積摩耗量351、352をさらに含むことが好ましい。工具情報158は、加工プログラム編集プログラム221(159)を実行する機械中のメモリ220(152)に保存されているものを読み込んでもよいが、工作機械100のメモリ152に記憶されている最新の工具情報158を取得してもよい。特に、累積摩耗量351・352は、工作機械100が工具Taの使用態様や使用時間から工作機械100(プロセッサ151)によって算出され、メモリ152によって記憶され、プロセッサ210によってネットワーク290経由で読みだされてもよい。これによって、様々な加工プログラム157に利用される工具Taの累積摩耗量351、352を一元的に管理することができる。
 つぎに、プロセッサ210(151)は、工作機械100を制御するための加工プログラム157のプログラムコード302を表示するプログラム編集画面300をディスプレイ240(154)に表示する処理を実行する(ステップS2)。プログラムコード302が編集中である場合、プロセッサ210(151)は、編集中のプログラムコードをメモリ220(152)から読み込んでディスプレイ240(154)に表示する。つぎに、少なくとも1つの補助画面310(第1補助画面312及び第2補助画面314)に表示する最初の表示情報を指定する(ステップS3)。表示情報とは、工具データ画面340、工具オフセット画面360、マクロ変数画面380、マクロ入力画面390、Gコード一覧画面320、Mコード一覧画面330のいずれかから選択される。ステップS3においては、デフォルトであらかじめ選択された表示画面、プログラマの利用頻度の高い表示画面、または、プログラムコード302が編集中である場合前回の編集終了時に表示されていた表示画面であることが好ましい。
 つぎに、プロセッサ210(151)は、少なくとも1つの補助画面310を表示する処理を実行する(ステップS4)。より具体的には、プロセッサ210(151)は、少なくとも1つの補助画面310として、第1補助画面312と第2補助画面314とをディスプレイ240(154)に表示する処理を実行する。プロセッサ210(151)は、ディスプレイ240(154)に、プログラム編集画面300と少なくとも1つの補助画面310とをディスプレイ240(154)に並べて表示する処理を実行する。ステップS4においては、プロセッサ210(151)は、少なくとも1つの補助画面310に表示する情報(表示情報)を、工具情報、制御方法、並びに、工具情報及び制御情報以外の他の情報との中から選択するための表示情報選択画面316をディスプレイ240(154)にさらに表示する処理を実行する。当該他の情報は、プログラムコード302において規定するマクロ変数(マクロ変数画面380で表示されるマクロ変数)、プログミングにおいて利用される文字セット391~394(マクロ入力画面390で表示される文字セット)の少なくとも1つを含む。さらに、プロセッサ210(151)は、第1補助画面312と第2補助画面314とのいずれかを指定する切替設定画面318をディスプレイ240(154)に表示する処理を実行する。
 つぎに、プロセッサ210(151)は、表示情報の切替要求があるか否かを判定する(ステップS5)。プロセッサ210(151)は、表示情報選択画面316のOKボタン317が操作されたイベントを検出することによって当該切替要求の有無を判定することができる。表示情報の切替要求があるとき(ステップS5でYes)、プロセッサ210(151)は、切替設定画面318において指定されている補助画面の情報を取得して、当該情報に基づいて表示情報を切り替える補助画面を指定する(ステップS6)。そして、プロセッサ210(151)は、表示情報選択画面316において選択された表示情報をメモリ220(152)から読み込む(ステップS7)。そして、ステップS4に戻り、プロセッサ210(151)は、表示情報選択画面316において選択された表示情報を少なくとも1つの補助画面310に表示する処理を実行する(ステップS4)。より具体的には、プロセッサ210(151)は、切替設定画面318にて指定された補助画面に、表示情報選択画面316において選択された表示情報を表示する。
 ここで、ステップS3においてマクロ変数画面380とマクロ入力画面390とが指定された直後のステップS4においては、第1補助画面312及び第2補助画面314は、工具Taの工具情報と工具Taの制御方法とのうちのいずれも表示しない。しかし、仮にステップS3において、マクロ変数画面380とマクロ入力画面390とが指定された場合であっても、上述したステップS7において工具データ画面340、工具オフセット画面360、Gコード一覧画面320、Mコード一覧画面330のいずれかが表示されることとなるため、その後再び実行されるステップS4においては、少なくとも1つの補助画面310は、工具Taの工具情報と工具Taの制御方法とのうち少なくとも1つを表示することとなる。なお、工具Taの制御方法の表示とは、Gコード一覧画面320とMコード一覧画面330とのうちのいずれかの表示を意味する。
 以上により、ステップS4においては、プロセッサ210(151)は、工具データ画面340、工具オフセット画面360、マクロ変数画面380、マクロ入力画面390、Gコード一覧画面320、Mコード一覧画面330を少なくとも1つの補助画面310(第1補助画面312及び第2補助画面314)に表示する処理を実行することが可能である。プロセッサ210(151)、ディスプレイ240(154)は、それらを表示するにあたり以下のような特徴的な動作を行う。
(1)プロセッサ210(151)は、少なくとも1つの補助画面310のうちの1つの補助画面に、Gコードと、Gコード以外のカスタマイズドコード(Mコード)とのいずれか一方のコードを表示する処理を実行する。ディスプレイ240(154)は、少なくとも1つの補助画面310のうちの1つの補助画面に、Gコードと、Gコード以外のカスタマイズドコードとのいずれか一方のコードを表示する。
(2)プロセッサ210(151)は、当該1つの補助画面に、当該いずれか一方のコードの制御内容322、332をさらに表示する処理を実行する。ディスプレイ240(154)は、少なくとも1つの補助画面310のうちの1つの補助画面に、Gコードと、Gコード以外のカスタマイズドコードとのいずれか一方の制御内容を表示する。
(3)プロセッサ210(151)は、当該1つの補助画面に、EOBを入力するためのキーボタン329、339をさらに表示する処理を実行する。ディスプレイ240(154)は、少なくとも1つの補助画面310のうちの1つの補助画面に、EOBを入力するためのキーボタン329、339を表示する。
(4)プロセッサ210(151)は、少なくとも1つの補助画面310のうちの1つの補助画面に、第1工具情報(プログラムコード302中のT番号341に関連づけられる工具情報158:341~347、351、352の少なくとも1つ)と第2工具情報(プログラムコード302中のH番号とD番号とのうちの少なくとも1つに関連づけられる工具情報158:361~365、371~375のうちの少なくとも1つ)とのいずれか一方を表示する処理を実行する。ディスプレイ240(154)は、少なくとも1つの補助画面310のうちの1つの補助画面に、第1工具情報と第2工具情報とのいずれか一方を表示する。
(5)プロセッサ210(151)は、当該第1工具情報を表示する補助画面(工具データ画面340)に、M06指令をプログラムコード302に入力するためのM06指令入力ボタン353をさらに表示する処理を実行する。ディスプレイ240(154)は、当該第1工具情報を表示する補助画面(工具データ画面340)に、M06指令をプログラムコード302に入力するためのM06指令入力ボタン353をさらに表示する。
(6)プロセッサ210(151)は、当該第1工具情報を表示する補助画面(工具データ画面340)に、工具Taを指定しないT番号をプログラムコード302に入力するためのT00入力ボタン354をさらに表示する処理を実行する。ディスプレイ240(154)は、当該第1工具情報を表示する補助画面(工具データ画面340)に、工具Taを指定しないT番号をプログラムコード302に入力するためのT00入力ボタン354をさらに表示する。
(7)プロセッサ210(151)は、当該第2工具情報を表示する補助画面(工具オフセット画面360)に、当該第2工具情報と関連付けられた参照番号361と、当該参照番号361をプログラムコード302中にH番号として入力するためのH番号入力ボタン368と、当該参照番号361をプログラムコード302中にD番号として入力するためのD番号入力ボタン367と、をさらに表示する処理を実行する。ディスプレイ240(154)は、当該第2工具情報を表示する補助画面(工具オフセット画面360)に、当該第2工具情報と関連付けられた参照番号361と、当該参照番号361をプログラムコード302中にH番号として入力するためのH番号入力ボタン368と、当該参照番号361をプログラムコード302中にD番号として入力するためのD番号入力ボタン367と、をさらに表示する。
(8)プロセッサ210(151)は、文字セット391~394を表示する補助画面(マクロ入力画面390)に、文字セット391~394と組み合わせて利用される記号の入力ボタン396~398をさらに表示する処理を実行する。ディスプレイ240(154)は、文字セット391~394を表示する補助画面(マクロ入力画面390)に、文字セット391~394と組み合わせて利用される記号の入力ボタン396~398をさらに表示する。
 つぎに、表示情報の切替要求がないとき(ステップS5でNo)、プロセッサ210(151)は、プログラムコード302中において、新たにコードを挿入する挿入箇所を指定する(ステップS8)。制御装置150においては、プロセッサ151は、タッチパネル付きディスプレイ154のタッチパネルによるタップによって挿入箇所を指定することができる。コンピュータ200においては、プロセッサ210は、入力インタフェース250のうちのマウスによるクリックや入力インタフェース250のうちのキーボードによるカーソル移動によって挿入箇所を指定することができる。
 つぎに、少なくとも1つの補助画面310において、プログラムコード302に挿入される少なくとも1つの挿入情報が選択される(ステップS9)。少なくとも1つの補助画面310に工具データ画面340、工具オフセット画面360、Gコード一覧画面320、Mコード一覧画面330が表示されている場合、上述の工具情報と上述の制御方法とのうちの少なくとも1つの情報が選択される。例えば以下のように挿入情報が選択される。
(1)Gコード一覧画面320において、Gコード321の行がタップまたはクリックで選択される。
(2)Mコード一覧画面330において、Mコード331の行がタップまたはクリックで選択される。
(3)工具データ画面340において、工具(及び切削加工における誤差を補正するためのパラメータが表示されている行)がタップまたはクリックで選択される。
(4)工具オフセット画面360において、切削加工における誤差を補正するためのパラメータが表示されている行がタップまたはクリックで選択される。
(5)マクロ変数画面380において、変数名381が表示されている行がクリックまたはタップされる。
(6)マクロ入力画面390において、制御命令391、関数コード392、比較演算子393、及び、外部出力コマンド394のどれか1つがクリックまたはタップされる。
 つぎに、プロセッサ210(151)は、選択された挿入情報のプログラムコード302への挿入要求を受け付ける(ステップS10)。挿入要求とは、入力ボタン328・338・348・395、D番号入力ボタン367、H番号入力ボタン368、変数入力ボタン385、または、コメント入力ボタン386が操作された(クリップまたはタップされた)イベントである。また、挿入要求は、改行キーボタン329・339・398、M06指令入力ボタン353、T00入力ボタン354、算術演算子キーボタン396、または、スペースキーボタン397が操作された(クリップまたはタップされた)イベントを含んでもよい。
 挿入要求を受け付けると、プロセッサ210(151)は、挿入情報をコードへ変換する(ステップS11)。入力ボタン328・338・348・395、及び、変数入力ボタン385が操作されたとき、それぞれ、選択されたGコード321、選択されたMコード331、選択された工具に係るT番号、選択された制御命令391・関数コード392・比較演算子393・外部出力コマンド394のいずれか、選択された変数名381がプログラムコードとなる。D番号入力ボタン367が操作されたとき、プロセッサ210(151)は、選択された参照番号361を、その先頭に文字Dを付加したD番号に変換する。H番号入力ボタン368が操作されたとき、プロセッサ210(151)は、選択された参照番号361を、その先頭に文字Hを付加したH番号に変換する。コメント入力ボタン386が操作されたとき、プロセッサ210(151)は、選択されているコメント383を、その両側に丸括弧を追加した文字列に変換する。
 つぎに、プロセッサ210(151)は、変換したコードをプログラムコード302へ挿入する(ステップS12)。ステップS8からステップS12によって、プロセッサ210(151)は、少なくとも1つの補助画面310において、工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令をプログラムコード302の挿入箇所に挿入する。例えば、プロセッサ210(151)は、上述する第2工具情報を表示する補助画面(工具オフセット画面360)において参照番号361が指定された状態で、H番号入力ボタン368が操作されると、プログラムコード302中の挿入箇所に参照番号を含むH番号を挿入する。プロセッサ210(151)は、上述する第2工具情報を表示する補助画面(工具オフセット画面360)において参照番号361が指定された状態で、D番号入力ボタン367が操作されると、プログラムコード302中の挿入箇所に参照番号361を含むD番号を挿入する。プロセッサ210(151)は、マクロ変数画面380においてコメント383が指定された状態で、コメント入力ボタン386が操作されると、プログラムコード302中の挿入箇所にコメント383を含む文字列を挿入する。
 つぎに、プロセッサ210(151)は、プログラム終了要求を待つ(ステップS13)。プログラム終了要求とは、加工プログラム編集プログラム221(159)の終了イベントである。プログラム終了要求がない(ステップS13でNo)と、ステップS4に戻る。プログラム終了要求がある(ステップS13でYes)と、プロセッサ210(151)は、編集したプログラムコード302をメモリ220(152)に保存して(ステップS14)、終了する。
<実施形態の作用及び効果>
 本実施形態に係る工作機械100、工作機械100の加工プログラム作成編集方法、及び、工作機械の加工プログラム編集のための加工プログラム編集プログラム221(159)においては、工作機械100に装着可能な工具Taの工具情報158が取得される。そして、プログラム編集画面300と、工具Taの工具情報158と工具Taの制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面310とが並べて表示される。プログラムコード302中において新たにコードを挿入する挿入箇所を指定し、少なくとも1つの補助画面310において工具情報と制御方法とのうちの少なくとも1つの情報が選択されると、少なくとも1つの情報に対応する命令がプログラムコード302の挿入箇所に挿入される。これにより、プログラムコード302の編集に必要な工具Taの工具情報158と工具Taの制御方法の参照及び挿入を容易とすることができる。その結果、加工プログラム157のプログラミングが効率化される。
 図22におけるフローチャートにおける各ステップの実行順序は、処理結果が変わらない範囲で変更可能である。また、図22において、ステップS13,S14は省略されてもよい。この場合、ステップS12の処理後、ステップS4に戻る。少なくとも1つの補助画面310が1つの補助画面のみを有する場合、ステップS6は省略可能である。また、本実施形態において、工具データ画面340、工具オフセット画面360、マクロ変数画面380、マクロ入力画面390、Gコード一覧画面320、Mコード一覧画面330の一部が省略されてもよい。ただし、工具データ画面340、工具オフセット画面360、Gコード一覧画面320、Mコード一覧画面330の少なくとも1つが省略されないことが望ましい。
 表示情報選択画面316、切替設定画面318は、省略されてもよい。この場合、工具データ画面340、工具オフセット画面360、マクロ変数画面380、マクロ入力画面390、Gコード一覧画面320、Mコード一覧画面330のうち少なくとも1つの補助画面310に表示されるものが切り替えられることなく表示されることになる。この場合、図22においてステップS3、S5~S7が省略されてもよい。
 本願においては、「備える」およびその派生語は、構成要素の存在を説明する非制限用語であり、記載されていない他の構成要素の存在を排除しない。これは、「有する」、「含む」およびそれらの派生語にも適用される。
 「~部材」、「~部」、「~要素」、「~体」、および「~構造」という文言は、単一の部分や複数の部分といった複数の意味を有し得る。
 「第1」や「第2」などの序数は、単に構成を識別するための用語であって、他の意味(例えば特定の順序など)は有していない。例えば、「第1要素」があるからといって「第2要素」が存在することを暗に意味するわけではなく、また「第2要素」があるからといって「第1要素」が存在することを暗に意味するわけではない。
 程度を表す「実質的に」、「約」、および「およそ」などの文言は、最終結果が大きく変わらないような合理的なずれ量を意味し得る。本願に記載される全ての数値は、「実質的に」、「約」、および「およそ」などの文言を含むように解釈され得る。
 本願において「A及びBの少なくとも一方」という文言は、Aだけ、Bだけ、及びAとBの両方を含むように解釈されるべきである。
 上記の開示内容から考えて、本発明の種々の変更や修正が可能であることは明らかである。したがって、本発明の趣旨を逸脱しない範囲で、本願の具体的な開示内容とは別の方法で本発明が実施されてもよい。
100                  :工作機械
151,210              :プロセッサ
152,220               :メモリ
154,240              :ディスプレイ
154,250              :インタフェース
157                  :加工プログラム
158                  :工具情報
159,221              :加工プログラム編集プログラム
300                  :プログラム編集画面
310                  :少なくとも1つの補助画面
312                      :第1補助画面
314                      :第2補助画面
316                      :表示情報選択画面
318                      :切替設定画面

Claims (15)

  1.  工作機械に装着可能な工具の工具情報を取得し、
     前記工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、前記工具の前記工具情報と前記工具の制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示し、
     前記プログラムコード中において、新たにコードを挿入する挿入箇所を指定し、
     前記少なくとも1つの補助画面において、前記工具情報と前記制御方法とのうちの少なくとも1つの情報が選択されると、前記少なくとも1つの情報に対応する命令を前記プログラムコードの前記挿入箇所に挿入する、
    工作機械の加工プログラムの編集方法。
  2.  前記少なくとも1つの補助画面に表示する情報を、前記工具情報、前記制御方法、並びに、前記工具情報及び前記制御情報以外の他の情報の中から選択するための表示情報選択画面をさらに表示し、
     前記表示情報選択画面において選択された表示情報を前記少なくとも1つの補助画面に表示する、
    請求項1に記載の工作機械の加工プログラムの編集方法。
  3.  前記少なくとも1つの補助画面として、第1補助画面と第2補助画面とを表示し、
     前記第1補助画面と前記第2補助画面とのいずれかを指定するための切替設定画面を表示し、
     前記切替設定画面にて指定された補助画面に、前記表示情報選択画面において選択された前記表示情報を表示する、
    請求項2に記載の工作機械の加工プログラムの編集方法。
  4.  前記他の情報は、前記プログラムコードにおいて規定するマクロ変数、及び、プログラミングにおいて利用される文字セットの少なくとも1つを含む、
    請求項2または3に記載の工作機械の加工プログラムの編集方法。
  5.  前記制御方法はGコードと、Gコード以外のカスタマイズドコードとを含み、
     前記少なくとも1つの補助画面のうちの1つの補助画面に、前記Gコードと前記カスタマイズドコードとのいずれか一方のコードを表示する、
    、請求項1から4のいずれかに記載の工作機械の加工プログラムの編集方法。
  6.  前記1つの補助画面に、EOBを入力するためのキーボタンをさらに表示する、請求項5に記載の工作機械の加工プログラムの編集方法。
  7.  前記工具情報は、前記工具に対応するT番号、前記工具の名称、前記工具の寸法、並びに、切削加工における誤差を補正するためのパラメータの少なくとも1つを含む、請求項1から6のいずれかに記載の工作機械の加工プログラムの編集方法。
  8.  前記工具情報は前記プログラムコード中のT番号に関連づけされる第1工具情報と、前記プログラムコード中のH番号とD番号とのうちの少なくとも1つに関連づけられる第2工具情報とを含み、
     前記少なくとも1つの補助画面のうちの1つの補助画面に、前記第1工具情報と前記第2工具情報とのいずれか一方を表示する、
    、請求項1から7のいずれかに記載の工作機械の加工プログラムの編集方法。
  9.  前記第1工具情報は前記工具の使用により累積した累積摩耗量を含む、請求項8に記載の工作機械の加工プログラムの編集方法。
  10.  前記第1工具情報を表示する補助画面に、M06指令を前記プログラムコードに入力するためのM06指令入力ボタンをさらに表示する、請求項8または9に記載の工作機械の加工プログラムの編集方法。
  11.  前記第1工具情報を表示する補助画面に、前記工具を指定しないT番号を前記プログラムコードに入力するためのT00入力ボタンをさらに表示する、請求項8から10のいずれかに記載の工作機械の加工プログラムの編集方法。
  12.  前記第2工具情報は、工具長補正を行うためのパラメータ、工具径補正を行うためのパラメータ、ノーズR補正を行うためのパラメータのいずれかであって、
     前記第2工具情報を表示する補助画面に、前記第2工具情報と関連付けられた参照番号と、前記参照番号を前記プログラムコード中にH番号として入力するためのH番号入力ボタンと、前記参照番号を前記プログラムコード中にD番号として入力するためのD番号入力ボタンと、をさらに表示し、
     前記第2工具情報を表示する補助画面において前記参照番号が指定された状態で、前記H番号入力ボタンが操作されると、前記プログラムコード中の前記挿入箇所に前記参照番号を含むH番号を挿入し、
     前記第2工具情報を表示する補助画面において前記参照番号が指定された状態で、前記D番号入力ボタンが操作されると、前記プログラムコード中の前記挿入箇所に前記参照番号を含むD番号を挿入する、
    請求項8から11のいずれかに記載の工作機械の加工プログラムの編集方法。
  13.  前記プログラム編集画面と、前記少なくとも1つの補助画面は、1つのディスプレイ中に表示される、請求項1から12のいずれかに記載の工作機械の加工プログラムの編集方法。
  14.  工作機械に装着可能な工具の工具情報を記憶するメモリと、
     前記工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、前記工具の前記工具情報と前記工具の制御方法とのうちの少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示する少なくとも1つのディスプレイと、
     前記プログラムコード中に新たにコードを挿入する挿入箇所を指定するためのインタフェースと、
     前記少なくとも1つの補助画面において、前記工具情報と前記制御方法とのうちの少なくとも1つの情報が選択されると、前記少なくとも1つの情報に対応する命令を前記プログラムコードの前記挿入箇所に挿入するプロセッサと、
    を備える工作機械。
  15.  工作機械に装着可能な工具の工具情報を取得し、
     前記工作機械を制御するための加工プログラムのプログラムコードを表示するプログラム編集画面と、前記工具の前記工具情報と前記工具の制御方法とのうち少なくとも1つを表示する少なくとも1つの補助画面とを並べて表示し、
     前記プログラムコード中において、新たにコードを挿入する挿入箇所を指定し、
     前記少なくとも1つの補助画面において、前記工具情報と前記制御方法とのうちの少なくとも1つの情報が選択されると、前記少なくとも1つの情報に対応する命令を前記プログラムコードの前記挿入箇所に挿入する、
    処理を実行する、工作機械の加工プログラム編集のためのプログラム。
PCT/JP2019/028560 2019-07-19 2019-07-19 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム WO2021014517A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/JP2019/028560 WO2021014517A1 (ja) 2019-07-19 2019-07-19 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム
EP19938681.4A EP3859464B1 (en) 2019-07-19 2019-07-19 Machining program editing method for machine tool, system comprising a machine tool and a controller and editing computing program for editing machining program for machine tool
JP2019567393A JP6654740B1 (ja) 2019-07-19 2019-07-19 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム
CN201980093408.9A CN113518953A (zh) 2019-07-19 2019-07-19 机床、机床的加工程序编辑方法和用于机床的加工程序编辑的程序
US17/477,537 US11940769B2 (en) 2019-07-19 2021-09-17 Machine tool, method for editing machining program for machine tool, and non-transitory computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/028560 WO2021014517A1 (ja) 2019-07-19 2019-07-19 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/477,537 Continuation US11940769B2 (en) 2019-07-19 2021-09-17 Machine tool, method for editing machining program for machine tool, and non-transitory computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021014517A1 true WO2021014517A1 (ja) 2021-01-28

Family

ID=69624583

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/028560 WO2021014517A1 (ja) 2019-07-19 2019-07-19 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム

Country Status (5)

Country Link
US (1) US11940769B2 (ja)
EP (1) EP3859464B1 (ja)
JP (1) JP6654740B1 (ja)
CN (1) CN113518953A (ja)
WO (1) WO2021014517A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741348A (zh) * 2021-08-17 2021-12-03 广东利元亨智能装备股份有限公司 一种机床加工方法,系统及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114563978A (zh) * 2022-02-24 2022-05-31 乐健科技(珠海)有限公司 钻机指令生成方法及钻机指令生成装置
CN115016391B (zh) * 2022-08-05 2022-10-25 北京精雕科技集团有限公司 基于圆角刀具的工件位置偏差补偿方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02259808A (ja) * 1989-03-31 1990-10-22 Amada Metrecs Co Ltd 自動プログラミング装置付nc装置
JP2010003187A (ja) 2008-06-20 2010-01-07 Kimitake Utsunomiya 電子指紋と電子署名機能を持つ、コイルを横切るジャンパーのないhf帯の格段にコストダウンされたicカードの製造方法
WO2016051544A1 (ja) * 2014-09-30 2016-04-07 株式会社牧野フライス製作所 工作機械の制御装置
WO2016051543A1 (ja) * 2014-09-30 2016-04-07 株式会社牧野フライス製作所 工作機械の制御装置および工作機械
JP2017111516A (ja) 2015-12-14 2017-06-22 Dmg森精機株式会社 加工プログラム編集装置、およびこれを備えた工作機械
JP2018101401A (ja) * 2016-09-28 2018-06-28 ザ・ボーイング・カンパニーThe Boeing Company 自動穿孔プロセスをモニタリングするための方法及び装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436050A (zh) * 2007-11-12 2009-05-20 上海电气集团股份有限公司 用于开放式数控系统的图形化交互式编程单元及方法
JP5099602B2 (ja) * 2008-01-18 2012-12-19 ブラザー工業株式会社 数値制御装置
JP2010003287A (ja) 2009-03-18 2010-01-07 Osaka Prefecture Ncプログラム入力装置
WO2012073368A1 (ja) * 2010-12-02 2012-06-07 三菱電機株式会社 数値制御装置
EP3214513B1 (en) * 2014-10-29 2023-11-22 Makino Milling Machine Co., Ltd. Control method for machining tool and control device for machining tool
WO2017056264A1 (ja) * 2015-09-30 2017-04-06 株式会社牧野フライス製作所 工作機械
JPWO2018096676A1 (ja) 2016-11-28 2018-11-22 三菱電機株式会社 数値制御装置及び工具管理生成プログラム
JP6584488B2 (ja) * 2017-12-22 2019-10-02 株式会社牧野フライス製作所 工作機械の制御方法および工作機械の制御装置
WO2021024437A1 (ja) * 2019-08-07 2021-02-11 ヤマザキマザック株式会社 工作機械、工作機械の工具負荷表示方法、及び工作機械のためのプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02259808A (ja) * 1989-03-31 1990-10-22 Amada Metrecs Co Ltd 自動プログラミング装置付nc装置
JP2010003187A (ja) 2008-06-20 2010-01-07 Kimitake Utsunomiya 電子指紋と電子署名機能を持つ、コイルを横切るジャンパーのないhf帯の格段にコストダウンされたicカードの製造方法
WO2016051544A1 (ja) * 2014-09-30 2016-04-07 株式会社牧野フライス製作所 工作機械の制御装置
WO2016051543A1 (ja) * 2014-09-30 2016-04-07 株式会社牧野フライス製作所 工作機械の制御装置および工作機械
JP2017111516A (ja) 2015-12-14 2017-06-22 Dmg森精機株式会社 加工プログラム編集装置、およびこれを備えた工作機械
JP2018101401A (ja) * 2016-09-28 2018-06-28 ザ・ボーイング・カンパニーThe Boeing Company 自動穿孔プロセスをモニタリングするための方法及び装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741348A (zh) * 2021-08-17 2021-12-03 广东利元亨智能装备股份有限公司 一种机床加工方法,系统及存储介质

Also Published As

Publication number Publication date
EP3859464A4 (en) 2021-12-15
EP3859464B1 (en) 2023-10-25
JP6654740B1 (ja) 2020-02-26
US11940769B2 (en) 2024-03-26
EP3859464A1 (en) 2021-08-04
US20220004158A1 (en) 2022-01-06
CN113518953A (zh) 2021-10-19
JPWO2021014517A1 (ja) 2021-09-13

Similar Documents

Publication Publication Date Title
WO2021014517A1 (ja) 工作機械、工作機械の加工プログラム編集方法、及び工作機械の加工プログラム編集のためのプログラム
US10379723B2 (en) Machining program editing apparatus and machine tool having the same
US4636938A (en) Method and apparatus for producing numerical control programs
US20130257738A1 (en) Numerical control apparatus
US10295987B2 (en) Machining program editing assist apparatus
WO2021024438A1 (ja) 工作機械、工作機械の工具負荷表示方法、及び工作機械のためのプログラム
WO2004061537A1 (ja) 加工プログラム作成装置
JP2010003287A (ja) Ncプログラム入力装置
JP2023037691A (ja) 表示制御装置
EP0529239B1 (en) Numerical control unit with position counter control and display
JP6674076B1 (ja) 工作機械、工作機械のための入力支援方法、及び工作機械のためのプログラム
US5457369A (en) Numerical control system
JP7409828B2 (ja) 数値制御装置
JP3532255B2 (ja) 対話型数値制御装置の入力データ表示方法
JP2015207147A (ja) 工作機械、プログラム編集方法、及び制御プログラム
EP0441977B1 (en) Display system of numeric control apparatus
WO1985002693A1 (en) Tool-selecting method for automatic programming
JP2015207135A (ja) 工作機械、プログラム検索方法、及び制御プログラム
WO2023033095A1 (ja) 表示制御装置
WO2019097601A1 (ja) 数値制御装置および表示方法
JPH0158016B2 (ja)
JP3437218B2 (ja) 自動プログラミング装置における加工データの確認編集方法および装置
EP0436039A1 (en) System for resuming program for automatic operation
US20120277922A1 (en) Device and method for reducing the energy consumption of a machine in the field of automation engineering
JP2015207134A (ja) 工作機械、プログラム編集方法、及び制御プログラム

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019567393

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19938681

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019938681

Country of ref document: EP

Effective date: 20210427

NENP Non-entry into the national phase

Ref country code: DE