JP2023005227A - Machine tool controller and machine tool control method - Google Patents

Machine tool controller and machine tool control method Download PDF

Info

Publication number
JP2023005227A
JP2023005227A JP2021107005A JP2021107005A JP2023005227A JP 2023005227 A JP2023005227 A JP 2023005227A JP 2021107005 A JP2021107005 A JP 2021107005A JP 2021107005 A JP2021107005 A JP 2021107005A JP 2023005227 A JP2023005227 A JP 2023005227A
Authority
JP
Japan
Prior art keywords
tool
mdi
program
snippet
parameter
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2021107005A
Other languages
Japanese (ja)
Other versions
JP7032596B1 (en
Inventor
彬央 真田
Akio Sanada
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DMG Mori Co Ltd
Original Assignee
DMG Mori Seiki Co Ltd
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 DMG Mori Seiki Co Ltd filed Critical DMG Mori Seiki Co Ltd
Priority to JP2021107005A priority Critical patent/JP7032596B1/en
Application granted granted Critical
Publication of JP7032596B1 publication Critical patent/JP7032596B1/en
Priority to PCT/JP2022/024813 priority patent/WO2023276801A1/en
Publication of JP2023005227A publication Critical patent/JP2023005227A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • 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
    • 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

Abstract

To efficiently generate an MDI program.SOLUTION: A machine tool controller includes: an industrial tool management unit that generates an industrial tool management screen image showing a list of industrial tools prepared for a machine tool, and displays the screen image; and an MDI program generation unit that calls a routine program, adds, to the routine program, industrial tool information on an industrial tool selected in the industrial tool management screen image, and generates a manual data input (MDI) program.SELECTED DRAWING: Figure 1

Description

本発明は、工作機械制御装置および工作機械制御方法に関する。 The present invention relates to a machine tool control device and a machine tool control method.

上記技術分野において、特許文献1には、MDIモード運転において、工具選択ボタン図形を操作盤の表示画面に表示して、ボタン操作で工具主軸への工具取り付けを制御する技術が開示されている。 In the above technical field, Patent Literature 1 discloses a technique for displaying a tool selection button graphic on the display screen of an operation panel in MDI mode operation and controlling attachment of the tool to the tool spindle by button operation.

特開2002-166335号公報JP-A-2002-166335

しかしながら、上記文献に記載の技術では、効率的にMDIプログラムを生成することができなかった。 However, the technique described in the above document cannot efficiently generate an MDI program.

本発明の目的は、上述の課題を解決する技術を提供することにある。 An object of the present invention is to provide a technique for solving the above problems.

上記目的を達成するため、本発明に係る工作機械制御装置は、
工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備えた。
In order to achieve the above object, a machine tool control device according to the present invention includes:
a tool management unit that generates and displays a tool management screen that displays a list of tools prepared for the machine tool;
an MDI program generation unit that calls a fixed form program, adds tool information of the tool selected on the tool management screen to the fixed form program, and generates an MDI (Manual Data Input) program;
provided.

上記目的を達成するため、本発明に係る工作機械制御方法は、
工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理ステップと、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成ステップと、
を含む。
In order to achieve the above object, a machine tool control method according to the present invention comprises:
a tool management step of generating and displaying a tool management screen displaying a list of tools prepared for the machine tool;
an MDI program generation step of calling a fixed form program and adding tool information of the tool selected on the tool management screen to the fixed form program to generate an MDI (Manual Data Input) program;
including.

上記目的を達成するため、本発明に係る工作機械制御装置は、
工作機械に用意された工具のオフセット値を表示する工具オフセット画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具オフセット画面で選択された工具のオフセット値を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備えた。
In order to achieve the above object, a machine tool control device according to the present invention includes:
a tool management unit that generates and displays a tool offset screen that displays the offset values of the tools prepared for the machine tool;
an MDI program generator that calls a fixed form program, adds the offset value of the tool selected on the tool offset screen to the fixed form program, and generates an MDI (Manual Data Input) program;
provided.

本発明によれば、効率的にMDIプログラムを生成することができる。 According to the present invention, an MDI program can be efficiently generated.

第1実施形態に係る工作機械制御装置の構成を示すブロック図である。1 is a block diagram showing the configuration of a machine tool control device according to a first embodiment; FIG. 第2実施形態に係る工作機械制御装置の表示操作部を示す図である。It is a figure which shows the display operation part of the machine tool control apparatus which concerns on 2nd Embodiment. 第2実施形態に係る工作機械制御装置の表示操作部の遷移を示す図である。It is a figure which shows the transition of the display operation part of the machine tool control apparatus which concerns on 2nd Embodiment. 第2実施形態に係る工作機械制御装置を含む工作機械の構成を示す図である。It is a figure which shows the structure of the machine tool containing the machine tool control apparatus which concerns on 2nd Embodiment. 第2実施形態に係る工作機械制御装置を含む工作機械の機能構成を説明する図である。It is a figure explaining the functional composition of the machine tool containing the machine tool control device concerning a 2nd embodiment. 第2実施形態に係る工作機械制御装置の動作概要を示す図である。It is a figure which shows the operation|movement outline|summary of the machine tool control apparatus which concerns on 2nd Embodiment. 第2実施形態に係る工作機械制御装置の工具管理モジュールの構成を示すブロック図である。FIG. 11 is a block diagram showing the configuration of a tool management module of the machine tool control device according to the second embodiment; 第2実施形態に係る工具情報テーブルと生成定義テーブルとの構成を示す図である。FIG. 10 is a diagram showing configurations of a tool information table and a generation definition table according to the second embodiment; FIG. 第2実施形態に係る工作機械制御装置のMDI転送モジュールの構成を示すブロック図である。8 is a block diagram showing the configuration of an MDI transfer module of the machine tool control device according to the second embodiment; FIG. 第2実施形態に係るプログラム生成定義保管部とスニペット保管部との構成を示す図である。FIG. 11 is a diagram showing the configuration of a program generation definition storage unit and a snippet storage unit according to the second embodiment; 第2実施形態に係る工作機械制御装置のMDI転送モジュールの処理手順を示すフローチャートである。9 is a flow chart showing a processing procedure of an MDI transfer module of the machine tool control device according to the second embodiment; 第2実施形態に係るプログラム生成処理の手順を示すフローチャートである。9 is a flowchart showing the procedure of program generation processing according to the second embodiment; 第2実施形態に係るパラメータ部分探索処理の手順を示すフローチャートである。FIG. 10 is a flowchart showing the procedure of parameter partial search processing according to the second embodiment; FIG. 第2実施形態に係る手動入力処理の手順を示すフローチャートである。9 is a flow chart showing the procedure of manual input processing according to the second embodiment; 第2実施形態に係るパラメータ部分の書式の一例を示す図である。FIG. 12 is a diagram showing an example of a format of a parameter portion according to the second embodiment; FIG. 第2実施形態に係るパラメータ部分の書式を用いたMDIプログラムの例の表を示す図である。FIG. 11 is a diagram showing a table of an example of an MDI program using the parameter part format according to the second embodiment; 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例921を示す図である。FIG. 9 is a diagram showing an example 921 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例922を示す図である。FIG. 10 is a diagram showing an example 922 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例923を示す図である。FIG. 10 is a diagram showing an example 923 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例924を示す図である。FIG. 11 is a diagram showing an example 924 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例925を示す図である。FIG. 11 is a diagram showing an example 925 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例926を示す図である。FIG. 11 is a diagram showing an example 926 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例927を示す図である。FIG. 11 is a diagram showing an example 927 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るマシニングセンタにおけるMDIプログラムの例928を示す図である。FIG. 11 is a diagram showing an example 928 of an MDI program in the machining center according to the second embodiment; FIG. 第2実施形態に係るターニングセンタにおけるMDIプログラムの例931の表示を示す図である。FIG. 11 is a diagram showing display of an example 931 of an MDI program in a turning center according to the second embodiment; 第2実施形態に係るターニングセンタにおけるMDIプログラムの例932を示す図である。FIG. 11 is a diagram showing an example 932 of an MDI program in the turning center according to the second embodiment; FIG. 第2実施形態に係るターニングセンタにおける工具管理画面の例を示す図である。FIG. 11 is a diagram showing an example of a tool management screen in the turning center according to the second embodiment; FIG. 第2実施形態に係る工具オフセットにおけるMDIプログラムの例941の表示を示す図である。FIG. 11 is a diagram showing a display of an example 941 of an MDI program in tool offset according to the second embodiment; 第2実施形態に係る工具オフセットにおけるMDIプログラムの例942を示す図である。FIG. 11 is a diagram showing an example 942 of an MDI program in tool offset according to the second embodiment; FIG. 第3実施形態に係る工作機械制御装置の表示操作部を示す図である。It is a figure which shows the display operation part of the machine tool control apparatus which concerns on 3rd Embodiment. 第3実施形態に係る工作機械制御装置の工具管理画面の例を示す図である。It is a figure which shows the example of the tool management screen of the machine tool control apparatus which concerns on 3rd Embodiment. 第3実施形態に係る工作機械制御装置のスニペット生成画面を示す図である。FIG. 12 is a diagram showing a snippet generation screen of the machine tool control device according to the third embodiment; 第3実施形態に係る工作機械制御装置のスニペット編集画面を示す図である。FIG. 12 is a diagram showing a snippet editing screen of the machine tool control device according to the third embodiment; 第3実施形態に係る工作機械制御装置のMDI転送モジュールの構成を示すブロック図である。FIG. 11 is a block diagram showing the configuration of an MDI transfer module of the machine tool control device according to the third embodiment; 第3実施形態に係るスニペット編集用データ保管部の構成を示す図である。It is a figure which shows the structure of the data storage part for snippet editing which concerns on 3rd Embodiment. 第3実施形態に係る工作機械制御装置のスニペットの生成編集処理の手順を示すフローチャートである。FIG. 12 is a flowchart showing the procedure of snippet generation and editing processing of the machine tool control device according to the third embodiment; FIG. 第3実施形態に係るパラメータ部分の記述挿入処理の手順を示すフローチャートである。FIG. 14 is a flow chart showing a procedure of a parameter part description insertion process according to the third embodiment; FIG. 第4実施形態に係る工作機械制御装置のプログラム定義の生成編集手順を示す図である。It is a figure which shows the production|generation editing procedure of the program definition of the machine tool control apparatus which concerns on 4th Embodiment. 第4実施形態に係る工作機械制御装置のMDI転送モジュールの構成を示すブロック図である。FIG. 11 is a block diagram showing the configuration of an MDI transfer module of a machine tool control device according to a fourth embodiment; 第4実施形態に係る工作機械制御装置のプログラム定義生成編集処理の手順を示すフローチャートである。FIG. 14 is a flow chart showing a procedure of program definition generation and editing processing of the machine tool control device according to the fourth embodiment; FIG. 第4実施形態に係るスニペット変更処理の手順を示すフローチャートである。FIG. 14 is a flowchart showing the procedure of snippet change processing according to the fourth embodiment; FIG.

以下に、図面を参照して、本発明の実施の形態について例示的に詳しく説明する。ただし、以下の実施の形態に記載されている構成要素は単なる例示であり、本発明の技術範囲をそれらのみに限定する趣旨のものではない。なお、本実施形態で使用する文言「スニペット」は、再利用可能な短いプログラムであり、プログラムの作成や編集に用いられる。例えば、NCプログラムでは、短いプログラムのことを言う。「スニペット」は、請求項における「定型プログラム」に相当する。 BEST MODE FOR CARRYING OUT THE INVENTION Exemplary embodiments of the present invention will be described in detail below with reference to the drawings. However, the components described in the following embodiments are merely examples, and are not intended to limit the technical scope of the present invention only to them. Note that the term “snippet” used in this embodiment is a reusable short program that is used to create and edit programs. For example, in an NC program, it refers to a short program. A "snippet" corresponds to a "fixed form program" in the claims.

[第1実施形態]
本発明の第1実施形態としての工作機械制御装置100について、図1を用いて説明する。工作機械制御装置100は、工作機械を制御する装置である。
[First embodiment]
A machine tool control device 100 as a first embodiment of the present invention will be described with reference to FIG. A machine tool control device 100 is a device that controls a machine tool.

図1に示すように、工作機械制御装置100は、工具管理部101と、MDI(Manual Data Input)プログラム生成部102と、を含む。工具管理部101は、工作機械に用意された工具のリストを表示する工具管理画面111を生成し、表示する。MDIプログラム生成部102は、定型プログラム121を呼び出し、工具管理画面111で選択された工具の工具情報112を定型プログラム121に加えて、MDIプログラム122を生成する。 As shown in FIG. 1 , the machine tool control device 100 includes a tool management section 101 and an MDI (Manual Data Input) program generation section 102 . The tool management unit 101 generates and displays a tool management screen 111 that displays a list of tools prepared for the machine tool. The MDI program generation unit 102 calls the fixed form program 121 and adds the tool information 112 of the tool selected on the tool management screen 111 to the fixed form program 121 to generate the MDI program 122 .

本実施形態によれば、効率的にMDIプログラムを生成することができる。 According to this embodiment, an MDI program can be efficiently generated.

[第2実施形態]
次に、本発明の第2実施形態に係る工作機械制御装置200について説明する。工作機械制御装置200は、作業者が指定した単一または複数の工具/ポット/ST(ステーション)の工具情報をパラメータとしてスニペットへ与えてMDI機能へ転送する。
[Second embodiment]
Next, a machine tool control device 200 according to a second embodiment of the invention will be described. The machine tool control device 200 provides a snippet with tool information of a single or a plurality of tools/pots/STs (stations) designated by the operator as parameters and transfers the snippet to the MDI function.

工作機械制御装置200は、プログラム生成定義に従って、少なくとも1つのスニペットを含むMDIプログラムを生成する。ここで、プログラム生成定義とは、スニペットによらない部分とスニペットによる部分とを用いてプログラムを生成するロジックである。 Machine tool controller 200 generates an MDI program including at least one snippet according to the program generation definition. Here, the program generation definition is logic for generating a program using a part not based on a snippet and a part based on a snippet.

スニペットは、工具情報をパラメータとして入力するためのパラメータ部分を含んでも良く、パラメータ部分に特定のフォーマットで変数を記述することで、何の情報を受け取るのかを指定する。パラメータ部分は、パラメータを自動で入力する自動入力パラメータ部分と、ユーザに手動入力させる手動入力パラメータ部分に分類することができる。手動入力パラメータ部分を含むスニペットがプログラム生成定義に指定されている場合には、MDI転送ボタンをタッチしたときにパラメータ手動入力画面が表示され、作業者がパラメータを入力することでその値を反映したMDIプログラムが生成される。工具管理画面で複数の工具/ポット/ST情報が指定された場合、それぞれの情報に基づいて複数のスニペットが合成される。その際、プログラム生成定義に応じてスニペット間にオプショナルストップなど任意の指令を挟むことができる。 A snippet may include a parameter part for inputting tool information as a parameter, and specifying what information is to be received by describing variables in a specific format in the parameter part. The parameter portion can be classified into an automatic input parameter portion for automatically inputting parameters and a manual input parameter portion for manually inputting parameters by the user. If a snippet including a manual input parameter part is specified in the program generation definition, the parameter manual input screen is displayed when the MDI transfer button is touched, and the value is reflected by the worker inputting the parameter. An MDI program is generated. When multiple pieces of tool/pot/ST information are specified on the tool management screen, multiple snippets are synthesized based on each piece of information. At that time, an arbitrary command such as an optional stop can be inserted between snippets according to the program generation definition.

ここで、3つの簡単なスニペット例について説明する。
1つ目のスニペット例は、
T?TOOL:Q1?;
G30X0.Y0.Z0.;
M6;
で記述される自動入力の例である。
ここで、1行目は、Q1番の工具をATC位置へ割り出し、2行目は、原点復帰、3行目は、ATC、を表し、全体として、選択された工具の交換位置における交換の例である。ここで、TOOLは、続くパラメータ識別子Q1で示される工具番号に置き換えられる記述である。
Here are three simple example snippets.
The first example snippet is
T?TOOL:Q1?;
G30X0.Y0.Z0.;
M6;
This is an example of automatic input described in .
Here, the first line indicates the indexing of the Q1 tool to the ATC position, the second line indicates return to origin, and the third line indicates ATC. is. Here, TOOL is a description to be replaced with the tool number indicated by the subsequent parameter identifier Q1.

2つ目のスニペット例は、
G324H#149B300.M0X?TOOL:Q1102?;
で記述される自動工具長測定(G324)における径補正形状補正値の自動入力の例である。
ここでQ1102は径補正形状補正値を示すパラメータ識別子である。
The second example snippet is
G324H#149B300.M0X?TOOL:Q1102?;
This is an example of automatic input of diameter correction shape correction value in automatic tool length measurement (G324) described in .
Here, Q1102 is a parameter identifier indicating a diameter correction shape correction value.

3つ目のスニペット例は、
G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?;
で記述される、自動工具長測定(G324)における径補正形状補正値の手動入力の例である。
A third example snippet is
G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?;
is an example of manual input of radius correction shape correction values in automatic tool length measurement (G324).

<工作機械制御装置の操作手順>
以下、図2A~図2Dを参照して、工作機械250に組み込まれた工作機械制御装置200の表示操作部について説明する。
<Operation procedure of the machine tool controller>
The display operation unit of the machine tool control device 200 incorporated in the machine tool 250 will be described below with reference to FIGS. 2A to 2D.

図2Aは、工作機械250が有する工作機械制御装置200の表示操作部201における操作手順を説明するための図である。不図示のスイッチを用いて、MDIプログラムを生成および実行させるためのMDIモードに設定されると、図2Aのように、表示操作部201に、工具管理画面210とMDI画面220とが表示される。ユーザが、工具管理画面210で工具211を選択し、次に、ボタン216、217のいずれかにタッチすることで、各ボタンに対応するMDIプログラムの生成定義が読み出される。そして、読み出された生成定義で指定されたスニペットが読み出される。読み出されたスニペットには特定のフォーマットで記述されたパラメータ部分225が含まれており、そのパラメータ部分225に工具211の工具情報(ここでは一例として工具番号10002)が加えられて、MDIプログラムが生成される。生成されたMDIプログラムはMDI画面220に表示される。ここで、工具情報とは、工具の識別情報(工具番号)の他、工具長形状、工具長摩耗、工具径形状、工具径摩耗、または補正値といったパラメータなど、工具に関する情報であればどのような情報をも含みうる概念である。 FIG. 2A is a diagram for explaining an operation procedure in the display operation unit 201 of the machine tool control device 200 of the machine tool 250. FIG. When an MDI mode for generating and executing an MDI program is set using a switch (not shown), a tool management screen 210 and an MDI screen 220 are displayed on the display operation unit 201 as shown in FIG. 2A. . When the user selects the tool 211 on the tool management screen 210 and then touches one of the buttons 216 and 217, the generation definition of the MDI program corresponding to each button is read. Then, the snippet specified in the read generation definition is read. The read snippet includes a parameter portion 225 described in a specific format, and the tool information of the tool 211 (here, as an example, tool number 10002) is added to the parameter portion 225 to execute the MDI program. generated. The generated MDI program is displayed on the MDI screen 220. FIG. Here, the tool information includes tool identification information (tool number), tool length shape, tool length wear, tool radius shape, tool radius wear, parameters such as correction values, and other information related to tools. It is a concept that can include various information.

工具管理画面210には、MDI転送ボタン216、217が表示されている。各ボタンがタッチされた場合の処理について、図2Bを用いて説明する。 MDI transfer buttons 216 and 217 are displayed on the tool management screen 210 . Processing when each button is touched will be described with reference to FIG. 2B.

MDI転送(呼出し)ボタン216がタッチされた場合、表示操作部201は、ボタン216に紐付けられたプログラム生成定義を呼出し、プログラム生成定義によって指定されたスニペットを組み合わせて生成したMDIプログラムをMDI画面226を表示する。この際、スニペットのパラメータ部分を工具管理画面210で選択された工具213の特定の工具情報(工具番号やパラメータなど)に置換する。また、複数のスニペット間には、オプショナルストップ(M機能=M01)228を自動挿入する。 When the MDI transfer (call) button 216 is touched, the display operation unit 201 calls the program generation definition linked to the button 216, and displays the MDI program generated by combining snippets specified by the program generation definition on the MDI screen. 226 is displayed. At this time, the parameter portion of the snippet is replaced with specific tool information (tool number, parameters, etc.) of the tool 213 selected on the tool management screen 210 . Also, an optional stop (M function=M01) 228 is automatically inserted between multiple snippets.

一方、MDI転送(計測)ボタン217がタッチされた場合には、表示操作部201は、MDI転送(測定)ボタン217に紐付けられたプログラム生成定義を呼び出す。MDI転送(測定)ボタン217に紐付けられたプログラム生成定義には、計測を伴うGコード(ここではG324)を含むスニペット“G324H#149B300.M0X?MANUALINPUT…?”229が指定されている。このスニペット229は、変数の手動入力を要するものであるため、MDI転送(測定)ボタン217のタッチと同時に、手動入力画面230が表示される。ユーザは、MDIプログラムのプレビュー231を参照して、手動入力欄232に数値を入力した後、MDI転送ボタン233をタッチすることで、スニペット229のパラメータの手動入力が実現する。 On the other hand, when the MDI transfer (measurement) button 217 is touched, the display operation unit 201 calls the program generation definition associated with the MDI transfer (measurement) button 217 . A snippet "G324H#149B300.M0X?MANUALINPUT...?" Since this snippet 229 requires manual input of variables, a manual input screen 230 is displayed at the same time as the MDI transfer (measurement) button 217 is touched. The user refers to the preview 231 of the MDI program, inputs numerical values in the manual input field 232, and then touches the MDI transfer button 233, thereby realizing manual input of the parameters of the snippet 229. FIG.

<工作機械の構成および動作>
図3Aに示すように、工作機械250は、工作機械制御装置200と、工作機械制御装置200により制御されるマシニングセンタ302とを備える。図3Aのマシニングセンタ302は立形マシニグセンタの例であるが、他に横形や門形などがある。立形では、図3Aのように、X軸、Y軸、Z軸が定義される。
<Configuration and operation of machine tool>
As shown in FIG. 3A, machine tool 250 includes machine tool controller 200 and machining center 302 controlled by machine tool controller 200 . The machining center 302 in FIG. 3A is an example of a vertical machining center, but there are other types such as a horizontal type and a portal type. In vertical form, the X, Y, and Z axes are defined as in FIG. 3A.

工作機械制御装置200は、表示操作部201と、入力キー群303と、制御キー群304とを有する。工作機械制御装置200は、使用する工具を管理する工具管理モジュールを有する。また、工作機械制御装置200は、MDI(Manual Data Input)モードを有し、MDIプログラムで動作するMDI機能モジュールを有する。制御キー群304のモード選択キーにはMDIモードキー305が含まれる。 The machine tool control device 200 has a display operation section 201 , an input key group 303 and a control key group 304 . The machine tool control device 200 has a tool management module that manages tools to be used. The machine tool control device 200 also has an MDI (Manual Data Input) mode and has an MDI function module that operates with an MDI program. Mode selection keys of the control key group 304 include an MDI mode key 305 .

MDIモードにおいては、図3Bのような機能命令が定義されており、かかる機能命令によりMDIプログラムが記述される。機能命令の分類や基本的な機能命令は共有されているが、一部にはオプショナルな専用機能命令も使用される。 In the MDI mode, function instructions as shown in FIG. 3B are defined, and the MDI program is described by these function instructions. Classification of function instructions and basic function instructions are shared, but some optional dedicated function instructions are also used.

(機能構成概要)
工作機械制御装置200は、図3Cに示すように、工具管理モジュール310と、MDI転送モジュール320と、MDI機能モジュール330と、を含む。工具管理モジュール310は、工具管理部311と、工具情報保管部312と、を有する。また、工具管理モジュール310は、工具管理画面210を管理する。MDI転送モジュール320は、MDIプログラム生成部321と、プログラム生成定義保管部322と、スニペット保管部323と、パラメータ手動入力部324と、を有する。また、MDI転送モジュール320は、パラメータ手動入力の場合に、パラメータ手動入力画面230を管理する。MDI機能モジュール330は、NCのMDI機能部331を有する。また、MDI機能モジュール330は、MDI画面220を管理する。
(Overview of functional configuration)
The machine tool controller 200 includes a tool management module 310, an MDI transfer module 320, and an MDI function module 330, as shown in FIG. 3C. The tool management module 310 has a tool management section 311 and a tool information storage section 312 . The tool management module 310 also manages the tool management screen 210. FIG. The MDI transfer module 320 has an MDI program generation unit 321 , a program generation definition storage unit 322 , a snippet storage unit 323 and a parameter manual input unit 324 . Also, the MDI transfer module 320 manages the parameter manual input screen 230 in the case of parameter manual input. The MDI function module 330 has an NC MDI function unit 331 . Also, the MDI function module 330 manages the MDI screen 220 .

工具管理モジュール310の工具管理部311は、工具情報保管部312に保管された工具情報を参照して、工具管理画面210に工具情報を表示すると共に、工具管理画面210に入力された工具情報を工具情報保管部312に保管する。また、工具管理部311は、工具管理画面210で選択された1つまたは複数の工具の識別子と、選択されたプログラム生成定義の識別子とをMDI転送モジュール320に送る(図3C中の(#1)参照)。 The tool management unit 311 of the tool management module 310 refers to the tool information stored in the tool information storage unit 312, displays the tool information on the tool management screen 210, and displays the tool information input to the tool management screen 210. Stored in the tool information storage unit 312 . The tool management unit 311 also sends the identifier of one or more tools selected on the tool management screen 210 and the identifier of the selected program generation definition to the MDI transfer module 320 ((#1 in FIG. 3C). )reference).

工具管理部311は、MDIプログラム生成部321からの、スニペットに記述されているパラメータ部分を置き換える工具情報の要求を待つ。工具管理部311は、パラメータ部分を置き換える工具情報を示す工具の識別子と特定の工具情報の識別子(例えばQ0)とを含む。情報送付の要求を受信すると(図3C中の(#3)参照)、工具管理部311は、選択された各工具に関する全ての工具情報(全工具情報)のうちの特定の工具情報(例えば、Q0であれば工具番号)を抽出する。工具管理部311が、抽出された特定の工具情報をMDIプログラム生成部321へ渡すことで(図3C中の(#4)参照)、MDIプログラム生成部321がスニペットの所定のパラメータ部分を抽出された特定の工具情報に置き換えてMDIプログラムを生成する。図3C中の(#3)と(#4)の特定の工具情報のやり取りは、(選択した工具の数×自動入力のパラメータ部分の数)の回数だけ繰り返される。なお、ここでは、工具管理モジュール310内で、特定の工具情報を抽出することとしたが、MDIプログラム生成部321が工具情報保管部312にアクセスして、パラメータ部分の置き換えに必要となる特定の工具情報を抽出してもよい。 The tool management unit 311 waits for a request from the MDI program generation unit 321 for tool information for replacing the parameter part described in the snippet. The tool management unit 311 includes a tool identifier indicating tool information that replaces the parameter portion and a specific tool information identifier (eg, Q0). Upon receiving a request to send information (see (#3) in FIG. 3C), the tool management unit 311 selects specific tool information (for example, If it is Q0, the tool number) is extracted. The tool management unit 311 passes the extracted specific tool information to the MDI program generation unit 321 (see (#4) in FIG. 3C), and the MDI program generation unit 321 extracts the predetermined parameter part of the snippet. The MDI program is generated by replacing with the specified tool information. The exchange of specific tool information in (#3) and (#4) in FIG. 3C is repeated the number of times (the number of selected tools×the number of automatic input parameter portions). Here, the specific tool information is extracted in the tool management module 310, but the MDI program generation unit 321 accesses the tool information storage unit 312 and extracts the specific tool information necessary for replacing the parameter part. Tool information may be extracted.

MDI転送モジュール320のMDIプログラム生成部321は、工具管理部311から受信したプログラム生成定義の識別子を用いて、プログラム生成定義保管部322から押下されたボタンに対応するプログラム生成定義を読み出す(図3C中の(#2)参照)。次に、MDIプログラム生成部321は、読み出したプログラム生成定義に記述されたスニペット識別子を探索する。そして、スニペット識別子を用いて、スニペット保管部323からスニペットを読み出す(図3C中の(#2)参照)。MDIプログラム生成部321は、読み出したスニペットに特定フォーマットのパラメータ部分を見つけると、その特定フォーマットを解析してパラメータ部分の属性を特定する。MDIプログラム生成部321は、特定されたパラメータ部分が選択された工具の工具情報の自動入力と確認されれば、スニペットに記述されているパラメータ部分を置き換える特定の工具情報を工具管理部311に要求する。すなわち、工具の識別子および特定の工具情報の識別子(例えばQ0)を含む情報送付の要求を工具管理部311に送信する(図3C中の(#3)参照)。MDIプログラム生成部321は、工具管理部311から、選択された各工具に関する全工具情報のうちの特定の工具情報(例えば、Q0であれば工具番号)を受信して(図3C中の(#4)参照)、このパラメータ部分を選択された工具の受信した特定の工具情報で置き換える。なお、図3C中の(#3)と(#4)の特定の工具情報のやり取りは、(選択した工具の数×自動入力のパラメータ部分の数)の回数だけ繰り返される。また、MDIプログラム生成部321が工具情報保管部312にアクセスして、パラメータ部分の置き換えに必要となる特定の工具情報を抽出してもよい。一方、MDIプログラム生成部321は、特定されたパラメータ部分が選択された工具の工具情報の手動入力と確認されれば、このパラメータ部分をユーザがパラメータ手動入力画面230から入力した工具情報で置き換える。このMDIプログラム生成手順をプログラム生成定義に従って実行することにより、プログラム中のパラメータ部分が特定の工具情報に置き換えられた(パラメータが確定した)、MDIプログラムが生成される。 The MDI program generation unit 321 of the MDI transfer module 320 uses the program generation definition identifier received from the tool management unit 311 to read the program generation definition corresponding to the pressed button from the program generation definition storage unit 322 (FIG. 3C). See (#2) inside). Next, the MDI program generation unit 321 searches for a snippet identifier described in the read program generation definition. Then, using the snippet identifier, the snippet is read from the snippet storage unit 323 (see (#2) in FIG. 3C). When the MDI program generation unit 321 finds a parameter part of a specific format in the read snippet, it analyzes the specific format and identifies attributes of the parameter part. When the MDI program generation unit 321 confirms that the specified parameter part is the automatic input of the tool information of the selected tool, the MDI program generation part 321 requests the tool management part 311 for the specific tool information to replace the parameter part described in the snippet. do. That is, a request for information transmission including the identifier of the tool and the identifier of the specific tool information (for example, Q0) is transmitted to the tool management section 311 (see (#3) in FIG. 3C). The MDI program generation unit 321 receives specific tool information (for example, tool number if Q0) among all tool information related to each selected tool from the tool management unit 311 ((# in FIG. 3C). 4)), replace this parameter portion with the received specific tool information for the selected tool. The exchange of specific tool information (#3) and (#4) in FIG. 3C is repeated the number of times (the number of selected tools×the number of automatic input parameter portions). Alternatively, the MDI program generation unit 321 may access the tool information storage unit 312 and extract specific tool information necessary for replacing the parameter portion. On the other hand, the MDI program generation unit 321 replaces the specified parameter portion with the tool information input by the user from the parameter manual input screen 230 when it is confirmed that the tool information of the selected tool is manually input. By executing this MDI program generation procedure according to the program generation definition, an MDI program is generated in which the parameter portion in the program is replaced with specific tool information (parameters are fixed).

生成されたMDIプログラムは、MDIプログラム生成部321からMDI機能モジュール330のNCのMDI機能部331に送られて、MDIプログラムが実行される。また、生成されたMDIプログラムやその実行状態は、MDI画面220に表示される。なお、ここではMDIプログラム生成の際にMDI画面220を表示しているが、本発明はこれに限定されない。生成したプログラムをNCのMDI機能へセットするため、その状態でMDI画面220を表示すればよい。また、MDI画面220を表示せずに内部的にMDI機能を利用してもよい。 The generated MDI program is sent from the MDI program generation unit 321 to the MDI function unit 331 of the NC of the MDI function module 330, and the MDI program is executed. Also, the generated MDI program and its execution state are displayed on the MDI screen 220 . Although the MDI screen 220 is displayed when the MDI program is generated here, the present invention is not limited to this. In order to set the generated program to the MDI function of the NC, the MDI screen 220 should be displayed in that state. Alternatively, the MDI function may be used internally without displaying the MDI screen 220 .

<工具管理モジュールの構成>
図4Aにおいて、工具管理モジュール310は、モジュールインタフェース401と、入出力インタフェース402と、工具情報取得保管部403と、表示制御部404と、操作制御部405と、を備える。また、工具管理モジュール310は、工具情報取得部406と、工具識別子送信部407と、生成定義識別子取得部408と、生成定義識別子送信部409と、工具情報用のパラメータ自動入力部411と、データベース410と、を備える。なお、図4Aにおいて、(#1),(#3),(#4)は図3Cにおける処理と同様の処理を示す。
<Configuration of tool management module>
4A, the tool management module 310 includes a module interface 401, an input/output interface 402, a tool information acquisition/storage unit 403, a display control unit 404, and an operation control unit 405. The tool management module 310 also includes a tool information acquisition unit 406, a tool identifier transmission unit 407, a generation definition identifier acquisition unit 408, a generation definition identifier transmission unit 409, an automatic parameter input unit 411 for tool information, a database 410; In FIG. 4A, (#1), (#3), and (#4) indicate the same processing as the processing in FIG. 3C.

モジュールインタフェース401は、工具管理モジュール310とMDI転送モジュール320とのデータ交換を制御するインタフェースである。入出力インタフェース402は、工具管理モジュール310と、内部および外部の周辺機器とのデータ交換を制御するインタフェースである。本実施形態においては、内部の周辺機器として記憶部としてのデータベース410を接続し、外部の周辺機器として表示操作部201を接続しているが、これに限定されない。 A module interface 401 is an interface that controls data exchange between the tool management module 310 and the MDI transfer module 320 . The input/output interface 402 is an interface that controls data exchange between the tool management module 310 and internal and external peripheral devices. In this embodiment, the database 410 as a storage unit is connected as an internal peripheral device, and the display operation unit 201 is connected as an external peripheral device, but the present invention is not limited to this.

工具情報取得保管部403は、表示操作部201から入力された工具情報を取得して、データベース410の工具情報保管部312に保管する。表示制御部404は、表示操作部201への工具情報の表示を制御する。操作制御部405は、表示操作部201からのユーザの入力操作を制御する。例えば、操作制御部405は、表示操作部201に表示された工具からユーザにより選択された工具の識別子を取得し、表示操作部201に表示されたボタンをユーザが押した場合に対応するプログラム生成定義の識別子を取得するよう制御する。 The tool information acquisition storage unit 403 acquires tool information input from the display operation unit 201 and stores it in the tool information storage unit 312 of the database 410 . A display control unit 404 controls display of tool information on the display operation unit 201 . The operation control unit 405 controls user input operations from the display operation unit 201 . For example, the operation control unit 405 acquires the identifier of the tool selected by the user from the tools displayed on the display operation unit 201, and generates a program corresponding to when the user presses the button displayed on the display operation unit 201. Control to get the definition identifier.

工具識別子送信部407は、操作制御部405が取得した工具識別子をMDI転送モジュール320に送信する(図4Aの(#1)参照)。生成定義識別子取得部408は、生成定義識別子テーブル481を有し、生成定義識別子テーブル481を用いて、操作制御部405の制御に基づき表示操作部201からユーザが指示したプログラム生成定義の識別子を取得する。なお、プログラム生成定義の識別子は、本実施形態により工具管理画面210に追加表示されたソフトウェアボタンを押すことにより入力される。生成定義識別子送信部409は、生成定義識別子取得部408が取得したプログラム生成定義の識別子をMDI転送モジュール320に送信する。また、表示操作部201からからスニペットを直接選択可能な場合は、スニペット識別子491を含んでもよい。 The tool identifier transmission unit 407 transmits the tool identifier acquired by the operation control unit 405 to the MDI transfer module 320 (see (#1) in FIG. 4A). The generation definition identifier acquisition unit 408 has a generation definition identifier table 481, and uses the generation definition identifier table 481 to acquire the identifier of the program generation definition specified by the user from the display operation unit 201 under the control of the operation control unit 405. do. The program generation definition identifier is input by pressing the software button additionally displayed on the tool management screen 210 according to the present embodiment. The generation definition identifier transmission unit 409 transmits the program generation definition identifier acquired by the generation definition identifier acquisition unit 408 to the MDI transfer module 320 . Also, if a snippet can be directly selected from the display operation unit 201, the snippet identifier 491 may be included.

工具情報用のパラメータ自動入力部411は、工具情報のパラメータテーブル412を有する。工具情報用のパラメータ自動入力部411は、MDI転送モジュール320からスニペットのパラメータ部分に加える特定の工具情報を選定するための、工具の識別子と特定の工具情報の識別子とを受信する(図4Aの(#3)参照)。そして、工具情報用のパラメータ自動入力部411は、工具の識別子を工具情報取得部406に渡して、工具の識別子に対応する全工具情報を工具情報保管部312から取得するように指示する。工具情報取得部406は、工具情報テーブル461を有し、工具情報テーブル461を用いて、工具情報用のパラメータ自動入力部411からの要求に基づき表示操作部201からユーザが指示した工具の全工具情報を取得する。 The automatic parameter input unit 411 for tool information has a parameter table 412 for tool information. The parameter automatic input unit 411 for tool information receives from the MDI transfer module 320 the identifier of the tool and the identifier of the specific tool information for selecting the specific tool information to be added to the parameter portion of the snippet (see FIG. 4A). (See #3)). Then, the tool information parameter automatic input unit 411 passes the tool identifier to the tool information acquisition unit 406 and instructs it to acquire all the tool information corresponding to the tool identifier from the tool information storage unit 312 . The tool information acquisition unit 406 has a tool information table 461, and uses the tool information table 461 to obtain all the tools specified by the user from the display operation unit 201 based on a request from the automatic parameter input unit 411 for tool information. Get information.

工具情報用のパラメータ自動入力部411は、工具情報のパラメータテーブル412を用いて、工具情報取得部406が取得した工具の識別子に対応する全工具情報から特定の工具情報の識別子に対応する特定の工具情報を抽出して、MDI転送モジュール320に返信する(図4Aの(#4)参照)。 The parameter automatic input unit 411 for tool information uses the parameter table 412 of the tool information to select the specific tool information corresponding to the identifier of the specific tool information from all the tool information corresponding to the identifier of the tool acquired by the tool information acquiring unit 406 . The tool information is extracted and sent back to the MDI transfer module 320 (see (#4) in FIG. 4A).

(工具情報テーブル)
図4Bの工具情報テーブル461は、工具情報用のパラメータ自動入力部411から要求された、工具の識別子に対応する全工具情報を工具情報保管部312から取得するために使用される。工具情報テーブル461は、工具情報用のパラメータ自動入力部411が要求する工具識別子421に対応付けて、工具情報保管部312から取得した全工具情報422として記憶する。そして、指示画面位置432のそれぞれに対応付けて工具識別子423を記憶する。
(Tool information table)
The tool information table 461 in FIG. 4B is used to acquire from the tool information storage unit 312 all tool information corresponding to the tool identifier requested by the parameter automatic input unit 411 for tool information. The tool information table 461 stores all tool information 422 acquired from the tool information storage unit 312 in association with the tool identifier 421 requested by the automatic parameter input unit 411 for tool information. Then, the tool identifier 423 is stored in association with each instruction screen position 432 .

(工具情報のパラメータテーブル)
図4Bの工具情報のパラメータテーブル412は、工具情報用のパラメータ自動入力部411がMDI転送モジュール320から要求された、スニペットのパラメータ部分に加える工具の特定の情報(パラメータ)を抽出するために使用される。工具情報のパラメータテーブル412は、MDI転送モジュール320から要求された工具の識別子441および特定の工具情報の識別子442に対応付けて、対応する工具情報から抽出した特定の工具情報443を記憶する。
(Tool information parameter table)
The tool information parameter table 412 of FIG. 4B is used by the automatic parameter input unit 411 for tool information to extract specific information (parameters) of the tool to be added to the parameter portion of the snippet requested by the MDI transfer module 320. be done. The tool information parameter table 412 stores specific tool information 443 extracted from the corresponding tool information in association with the tool identifier 441 and the specific tool information identifier 442 requested by the MDI transfer module 320 .

(生成定義識別子テーブル)
図4Bの生成定義識別子テーブル481は、生成定義識別子取得部408が工具管理画面210に表示されユーザにより選択されたボタンに対応するプログラム生成定期の識別子を取得するために使用される。生成定義識別子テーブル481は、工具の種別を示す工具管理画面210の表示画面識別子431に対応付けて、少なくとも1つのボタンをそれぞれ表示する位置を指示画面位置432として記憶する。そして、指示画面位置432のそれぞれに対応付けてボタン種類433と、1つのボタンに複数のメニューが含まれる場合(例えば、プルダウンメニュー)はメニュー位置434と、生成定義識別子435とを記憶する。
(Generation definition identifier table)
The generation definition identifier table 481 in FIG. 4B is used by the generation definition identifier acquisition unit 408 to acquire the program generation period identifier corresponding to the button displayed on the tool management screen 210 and selected by the user. The generated definition identifier table 481 stores the position where at least one button is displayed as the instruction screen position 432 in association with the display screen identifier 431 of the tool management screen 210 indicating the type of tool. A button type 433 is associated with each instruction screen position 432, and a menu position 434 and a generation definition identifier 435 when one button includes a plurality of menus (for example, a pull-down menu) are stored.

<MDI転送モジュールの構成>
図5Aにおいて、MDI転送モジュール320は、モジュールインタフェース501と、入出力インタフェース502と、工具識別子取得部503と、プログラム生成定義識別子取得部505と、プログラム生成定義取得部506と、を備える。また、MDI転送モジュール320は、スニペット取得部507と、MDIプログラム生成部321と、パラメータ手動入力部324と、データベース510と、を備える。なお、図5Aにおいて、(#1),(#3),(#4)は図3Cおよび図4Aにおける処理と同様の処理を示す。
<Configuration of MDI transfer module>
5A, the MDI transfer module 320 includes a module interface 501, an input/output interface 502, a tool identifier acquisition section 503, a program generation definition identifier acquisition section 505, and a program generation definition acquisition section 506. The MDI transfer module 320 also includes a snippet acquisition unit 507 , an MDI program generation unit 321 , a parameter manual input unit 324 and a database 510 . In FIG. 5A, (#1), (#3), and (#4) indicate the same processes as those in FIGS. 3C and 4A.

モジュールインタフェース501は、MDI転送モジュール320と、工具管理モジュール310およびMDI機能モジュール330とのデータ交換を制御するインタフェースである。入出力インタフェース502は、MDI転送モジュール320と、内部および外部の周辺機器とのデータ交換を制御するインタフェースである。本実施形態においては、内部の周辺機器として記憶部であるデータベース510を接続し、外部の周辺機器として表示操作部201を接続しているが、これに限定されない。 A module interface 501 is an interface that controls data exchange between the MDI transfer module 320 and the tool management module 310 and MDI function module 330 . The input/output interface 502 is an interface that controls data exchange between the MDI transfer module 320 and internal and external peripherals. In this embodiment, the database 510, which is a storage unit, is connected as an internal peripheral device, and the display operation unit 201 is connected as an external peripheral device, but the present invention is not limited to this.

工具識別子取得部503は、工具管理モジュール310から送られた1つまたは複数の工具の識別子を取得して(図5Aの(#1)参照)、MDIプログラム生成部321に送る。プログラム生成定義識別子取得部505は、工具管理モジュール310からボタンに対応して送られたプログラム生成定義識別子を取得する(図5Aの(#1)参照)。プログラム生成定義取得部506は、プログラム生成定義識別子を用いて、データベース510のプログラム生成定義保管部322からプログラム生成定義を取得する。 The tool identifier acquisition unit 503 acquires one or more tool identifiers sent from the tool management module 310 (see (# 1 ) in FIG. 5A) and sends them to the MDI program generation unit 321 . The program generation definition identifier acquisition unit 505 acquires the program generation definition identifier sent from the tool management module 310 corresponding to the button (see (#1) in FIG. 5A). The program generation definition acquisition unit 506 acquires the program generation definition from the program generation definition storage unit 322 of the database 510 using the program generation definition identifier.

スニペット取得部507は、プログラム生成定義で指定されたスニペットの識別子を用いて、データベース510のスニペット保管部323からスニペットを取得する。MDIプログラム生成部321は、プログラム生成定義に基づいて、パラメータ部分を工具識別子や他の工具情報で置換したスニペットを配置したMDIプログラムを生成して、MDI機能モジュール330に送る。MDIプログラム生成部321は、プログラム生成定義に基づいて、取得したスニペットのパラメータ部分のフォーマットが自動入力を示していれば、パラメータ部分を工具識別子や他の工具情報によって自動的に置換する。一方、取得したスニペットのパラメータ部分のフォーマットが手動入力を示していれば、パラメータ手動入力部324により表示操作部201に手動入力欄を表示して、手動入力データを取得する。そして、パラメータ手動入力部324は、パラメータ部分をユーザが手動入力した工具情報によって置換する。 The snippet acquisition unit 507 acquires a snippet from the snippet storage unit 323 of the database 510 using the snippet identifier specified in the program generation definition. Based on the program generation definition, the MDI program generation unit 321 generates an MDI program in which a snippet in which the parameter part is replaced with a tool identifier or other tool information is arranged, and sends it to the MDI function module 330 . Based on the program generation definition, the MDI program generation unit 321 automatically replaces the parameter portion with a tool identifier or other tool information if the format of the parameter portion of the acquired snippet indicates automatic input. On the other hand, if the format of the parameter portion of the acquired snippet indicates manual input, the parameter manual input unit 324 displays a manual input field on the display operation unit 201 to acquire manual input data. Then, the parameter manual input unit 324 replaces the parameter portion with the tool information manually input by the user.

上記パラメータ部分を工具識別子や他の工具情報によって自動的に置換する場合の処理は、以下の通りである。MDIプログラム生成部321は、スニペットのパラメータ部分のフォーマットが自動入力を示す場合、工具情報の要求を工具管理モジュール310に送信して、特定の工具情報を要求する(図5Aの(#3)参照)。工具情報の要求には、工具識別子取得部503が工具管理モジュール310から取得した1つまたは複数の工具の識別子のうちのパラメータ部分を置換する工具の識別子、および特定の工具情報の識別子を含む。そして、MDIプログラム生成部321は、工具管理モジュール310から要求した工具の識別子および特定の工具情報の識別子に対応する特定の工具情報を受信すると、パラメータ部分を受信した特定の工具情報で置換する。 The process for automatically replacing the parameter portion with the tool identifier or other tool information is as follows. When the format of the parameter portion of the snippet indicates automatic input, the MDI program generation unit 321 transmits a tool information request to the tool management module 310 to request specific tool information (see (#3) in FIG. 5A). ). The request for tool information includes the identifier of the tool that replaces the parameter portion of the one or more tool identifiers acquired by the tool identifier acquisition unit 503 from the tool management module 310, and the identifier of the specific tool information. When the MDI program generation unit 321 receives specific tool information corresponding to the requested tool identifier and the specific tool information identifier from the tool management module 310, the MDI program generation unit 321 replaces the parameter portion with the received specific tool information.

(プログラム生成定義保管部とスニペット保管部)
図3Cのプログラム生成定義保管部322は、図5Bに示すように、生成定義識別子531に対応付けてプログラム生成定義532を記憶する。プログラム生成定義532には、少なくとも1つのスニペット識別子とそのスニペットのMDIプログラム中の配置場所(スニペット位置)が紐付けられている(533)。プログラム生成定義532には、スニペット以外のプログラムとその配置場所534も紐付けられている。
(Program generation definition storage and snippet storage)
The program generation definition storage unit 322 in FIG. 3C stores the program generation definition 532 in association with the generation definition identifier 531 as shown in FIG. 5B. At least one snippet identifier and the location of the snippet in the MDI program (snippet position) are associated with the program generation definition 532 (533). The program generation definition 532 is also associated with a program other than the snippet and its placement location 534 .

図3Cのスニペット保管部323は、図5Bに示すように、スニペットを保管し、プログラム生成定義に含まれるスニペット識別子により紐付いたスニペットをMDI転送モジュール320に提供する。つまり、スニペット保管部323の各行がそれぞれスニペットを特定しており、スニペット識別子541に対応付けて、定型部分542と、自動入力パラメータ部分543と、手動入力パラメータ部分544と、を記憶する。 The snippet storage unit 323 of FIG. 3C stores the snippets and provides the MDI transfer module 320 with the snippets linked by the snippet identifier included in the program generation definition, as shown in FIG. 5B. That is, each row of the snippet storage unit 323 specifies a snippet, and stores a fixed form part 542, an automatic input parameter part 543, and a manual input parameter part 544 in association with the snippet identifier 541. FIG.

<MDI転送モジュールの処理手順>
図6は、MDI転送モジュール320の処理手順を示すフローチャートである。このフローチャートで示された処理は、工作機械制御装置200が備える不図示のCPU(Central Processing Unit)およびRAM(Random Access Memory)を使用して実行され、MDI転送モジュール320の各機能構成を実現する。
<Processing procedure of MDI transfer module>
FIG. 6 is a flow chart showing the processing procedure of the MDI transfer module 320. As shown in FIG. The processing shown in this flowchart is executed using a CPU (Central Processing Unit) and RAM (Random Access Memory) (not shown) provided in the machine tool control device 200, and implements each functional configuration of the MDI transfer module 320. .

MDI転送モジュール320は、ステップS601において、MDIモードであるか否かを判定する。MDIモードでない場合は、他の処理を実行する。MDIモードであれば、MDI転送モジュール320は、ステップS607において、工具管理画面210を用いたユーザによる工具選択を待つ。工具選択があれば、MDI転送モジュール320は、ステップS609において、工具管理画面210でのユーザによるMDI転送ボタン216、217へのタッチを待つ。MDI転送ボタン216、217へのタッチがあれば、ステップS611に進み、MDIプログラム生成部321は、タッチされたMDI転送ボタンに対応するプログラム生成定義をプログラム生成定義保管部322から取得する。そして、ステップS613に進み、MDIプログラム生成部321は、選択された工具に関して抽出された工具情報を取得する。さらに、ステップS615に進み、取得したプログラム生成定義に従うMDIプログラム生成処理を実行する。MDI転送モジュール320は、ステップS617において、生成したMDIプログラムをMDI機能モジュール330に出力する。 The MDI transfer module 320 determines in step S601 whether it is in the MDI mode. If not in MDI mode, other processing is executed. If in MDI mode, MDI transfer module 320 waits for tool selection by the user using tool management screen 210 in step S607. If there is a tool selection, the MDI transfer module 320 waits for the user to touch the MDI transfer buttons 216 and 217 on the tool management screen 210 in step S609. If the MDI transfer buttons 216 and 217 are touched, the process proceeds to step S611, and the MDI program generation unit 321 acquires the program generation definition corresponding to the touched MDI transfer button from the program generation definition storage unit 322. Then, proceeding to step S613, the MDI program generation unit 321 acquires the extracted tool information regarding the selected tool. Further, the flow advances to step S615 to execute MDI program generation processing in accordance with the acquired program generation definition. The MDI transfer module 320 outputs the generated MDI program to the MDI function module 330 in step S617.

(MDIプログラム生成処理)
図7は、図6のMDIプログラム生成処理S615における処理の流れを詳細に示すフローチャートである。MDIプログラム生成部321は、ステップS701において、プログラム生成定義で指定されたスニペットをスニペット保管部323から読み出す。次に、MDIプログラム生成部321は、ステップS703において、読み出したスニペット内のパラメータ部分探索処理を実行する。そして、MDIプログラム生成部321は、ステップS705において、見つかったパラメータ部分のフォーマットが自動入力であるか手動入力であるかを判定する。自動入力のパラメータ部分であれば、MDIプログラム生成部321は、ステップS707において、ステップS613で取得した工具情報から選定された特定の工具情報をパラメータ部分に入力する。一方、手動入力であれば、MDIプログラム生成部321は、ステップS709において、手動入力処理を実行する。スニペット内の1つのパラメータ部分へのパラメータ入力が終了すると、MDIプログラム生成部321は、ステップS711において、スニペット内のパラメータ部分探索が完了したか否かを判定する。パラメータ部分探索が完了してなければ、MDIプログラム生成部321は、ステップS703に戻ってスニペット内の残るパラメータ部分の置換処理を繰り返す。
(MDI program generation processing)
FIG. 7 is a flowchart showing in detail the flow of processing in the MDI program generation processing S615 of FIG. The MDI program generation unit 321 reads a snippet specified by the program generation definition from the snippet storage unit 323 in step S701. Next, in step S703, the MDI program generation unit 321 executes parameter partial search processing in the read snippet. Then, in step S705, the MDI program generation unit 321 determines whether the format of the found parameter portion is automatic input or manual input. If it is an automatic input parameter portion, the MDI program generator 321 inputs specific tool information selected from the tool information acquired in step S613 into the parameter portion in step S707. On the other hand, if it is manual input, the MDI program generation unit 321 executes manual input processing in step S709. When the parameter input to one parameter part in the snippet is finished, the MDI program generation unit 321 determines in step S711 whether or not the search for the parameter part in the snippet is completed. If the parameter part search is not completed, the MDI program generation unit 321 returns to step S703 and repeats the replacement process for the remaining parameter parts in the snippet.

1つのスニペットのパラメータ部分探索が完了すると、MDIプログラム生成部321は、ステップS713において、全パラメータ部分を置き換えたスニペットをプログラム生成定義に従ってMDIプログラム中に配置する。次に、MDIプログラム生成部321は、ステップS715において、プログラム生成定義で指定された次のスニペットがあるか否かを判定する。さらにスニペットが指定されていれば、MDIプログラム生成部321は、ステップS701に戻ってプログラム生成定義で指定された次のスニペット読み出して、パラメータ部分の探索を始める。 When the parameter part search for one snippet is completed, in step S713, the MDI program generator 321 arranges the snippet with all parameter parts replaced in the MDI program according to the program generation definition. Next, in step S715, the MDI program generation unit 321 determines whether or not there is the next snippet designated by the program generation definition. If another snippet is specified, the MDI program generator 321 returns to step S701, reads the next snippet specified in the program generation definition, and starts searching for the parameter part.

一方、他のスニペットが無ければ、MDIプログラム生成部321は、ステップS717において、まだ選択された工具が残っているかを判定する。まだ選択された工具が残っていれば、MDIプログラム生成部321は、ステップS719において、スニペットの後にオプショナルストップ(M機能=M01)を挿入して、ステップS701に戻る。他に選択された工具がなければ、MDIプログラム生成処理を終了する。 On the other hand, if there is no other snippet, the MDI program generator 321 determines in step S717 whether the selected tool still remains. If there are still selected tools remaining, the MDI program generator 321 inserts an optional stop (M function=M01) after the snippet in step S719, and returns to step S701. If no other tool is selected, the MDI program generation process is terminated.

(パラメータ部分探索処理)
図8Aは、図7のパラメータ部分探索処理S703における処理の流れを詳しく説明するフローチャートである。MDIプログラム生成部321は、ステップS801において、スニペット内のパラメータ部分をそのフォーマットを見付けるべく探索する。本実施形態においては、自動入力のパラメータ部分は“?TOOL”から開始して“?”で終わるパラメータ部分である。また、手動入力のパラメータ部分は“?MANUALINPUT”から開始して“?”で終わるパラメータ部分である。なお、このフォーマットに限定されるものではない。
(Parameter partial search process)
FIG. 8A is a flowchart explaining in detail the flow of processing in the parameter partial search processing S703 of FIG. The MDI program generator 321 searches the parameter part in the snippet to find its format in step S801. In this embodiment, the parameter portion of the automatic input is the parameter portion starting with "?TOOL" and ending with "?". Also, the manual input parameter portion is a parameter portion that starts with "?MANUALINPUT" and ends with "?". Note that the format is not limited to this format.

MDIプログラム生成部321は、ステップS811において、“?TOOL”が見付かったか否かを判定する。“?TOOL”が見付かれば、MDIプログラム生成部321は、ステップS813において、特定の工具情報を自動入力するパラメータ部分であることをセットする。“?TOOL”が見付からなければ、MDIプログラム生成部321は、ステップS821において、“?MANUALINPUT”が見付かったか否かを判定する。“?MANUALINPUT”が見付かれば、MDIプログラム生成部321は、ステップS823において、特定の情報を手動入力するパラメータ部分であることをセットする。“?MANUALINPUT”が見付からなければ、MDIプログラム生成部321は、ステップS831において、オプショナルとして従来のパラメータ部分目印である“??”、または、従来の機能選択目印“[[”が見付かったか否かを判定する。いずれかが見付かれば、MDIプログラム生成部321は、既存のキャラクタ単位の手動入力や機能選択を実行する。どちらでもなければ、MDIプログラム生成部321は、ステップS801に戻って、パラメータ部分探索を継続する。 The MDI program generation unit 321 determines whether or not "?TOOL" is found in step S811. If "?TOOL" is found, the MDI program generator 321 sets in step S813 that it is a parameter portion for automatically inputting specific tool information. If "? TOOL" is not found, the MDI program generator 321 determines in step S821 whether or not "? MANUALINPUT" is found. If "?MANUALINPUT" is found, the MDI program generator 321 sets in step S823 that it is a parameter part for manually inputting specific information. If “?MANUALINPUT” is not found, the MDI program generator 321 optionally determines in step S831 whether the conventional parameter part mark “?” or the conventional function selection mark “[[” was found. judge. If either is found, the MDI program generator 321 executes the existing manual character-by-character input and function selection. If neither, the MDI program generator 321 returns to step S801 to continue the parameter partial search.

(手動入力処理)
図7の手動入力処理S709においては、図8Bのフローチャートに示す処理が行われる。MDIプログラム生成部321は、ステップS843において、パラメータ手動入力画面を生成する。MDIプログラム生成部321は、ステップS845において、パラメータ手動入力画面を工具管理画面210やMDI画面220に表示する。MDI転送モジュール320は、ステップS847において、ユーザによる手動入力を待つ。ユーザによる手動入力があれば、MDIプログラム生成部321は、ステップS849において、入力された入力値(パラメータ)を取得する。そして、MDIプログラム生成部321は、ステップS851において、手動入力のパラメータ部分に入力値を追加する。なお、パラメータ入力欄の初期値として工具情報の特定の値をセットしてもよい。
(manual input processing)
In the manual input process S709 of FIG. 7, the process shown in the flowchart of FIG. 8B is performed. The MDI program generation unit 321 generates a parameter manual input screen in step S843. The MDI program generation unit 321 displays a parameter manual input screen on the tool management screen 210 or the MDI screen 220 in step S845. The MDI transfer module 320 waits for manual input by the user in step S847. If there is a manual input by the user, the MDI program generator 321 acquires the input value (parameter) in step S849. Then, in step S851, the MDI program generation unit 321 adds an input value to the parameter portion of the manual input. A specific value of the tool information may be set as the initial value of the parameter input field.

<パラメータ部分の書式>
図9Aは、パラメータ部分の書式(パラメータ部分のフォーマット)910の一例であり、本実施形態において、スニペット内のパラメータ部分は、“?”と“?”とで挟まれたキャラクタ列とする。
<Format of parameter part>
FIG. 9A shows an example of a parameter part format (parameter part format) 910. In this embodiment, the parameter part in a snippet is a character string sandwiched between "?" and "?".

パラメータ自動入力要求における書式1は、特定のパラメータの値を入力する書式であり、?<パラメータ自動入力部の識別子>:<パラメータ識別子>?で定義される。ここで、<パラメータ自動入力部の識別子>は“TOOL”と定義する。例えば、スニペット内に“T?TOOL:Q0?”との記述があれば、TOOLは工具情報用のパラメータ自動入力部の識別子、Q0は工具番号を示すとして、例えば、工具番号10001に置換されT10001となる。 Format 1 in the parameter automatic input request is a format for inputting the value of a specific parameter, and ? <Identifier of automatic parameter input part>:<Parameter identifier>? defined by Here, <identifier of parameter automatic input unit> is defined as "TOOL". For example, if there is a description "T?TOOL:Q0?" becomes.

パラメータ自動入力要求における書式2は、特定のパラメータの値に定数値を演算した値を入力する書式であり、?<パラメータ自動入力部の識別子>:<パラメータ識別子><演算子><定数値>?で定義される。例えば、スニペット内に、“G324H#149B?TOOL:Q1101+100.?M0X0.”との記述があれば、Q1101は工具長形状補正値を示すとし、例えば、当該工具の工具長形状補正値が100.だった場合、G324H#149B200.M0X0.に置換される。 Format 2 in the parameter automatic input request is a format for inputting a value obtained by calculating a constant value for the value of a specific parameter. <Identifier of automatic parameter input unit>:<Parameter identifier><Operator><Constant value>? defined by For example, if the snippet contains the description "G324H#149B?TOOL:Q1101+100.?M0X0.", Q1101 indicates the tool length correction value. If it was 100., it will be replaced with G324H#149B200.M0X0.

パラメータ手動入力要求における書式1は、手動入力の入力欄の初期値が空定義であり、?<パラメータ手動入力部の識別子>:<パラメータ識別子>?で定義される。ここで、<パラメータ手動入力部の識別子>は“MAMUALINPUT”と定義する。例えば、スニペット内に、“G324H#149B300.M0X?MANUALINPUT:G324X?”との記載があれば、パラメータ手動入力画面にてG324Xの欄が表示され(初期値は空)、“10.”を入力した場合、G324H#149B300.M0X10.に置換される。 Format 1 in the parameter manual input request has an initial value of an empty definition in the input field for manual input, and ? <Identifier of parameter manual input unit>:<Parameter identifier>? defined by Here, <identifier of parameter manual input section> is defined as "MAMUALINPUT". For example, if the snippet contains "G324H#149B300.M0X?MANUALINPUT:G324X?", the G324X field will be displayed on the parameter manual input screen (the initial value is empty) and enter "10." is replaced with G324H#149B300.M0X10.

パラメータ手動入力要求における書式2は、手動入力の入力欄の初期値が定数値であり、?<パラメータ手動入力部の識別子>:<パラメータ識別子>=<定数値>?で定義される。例えば、スニペット内に、“G324H#149B300.M0X?MANUALINPUT:G324X=0.?”との記述があれば、パラメータ手動入力画面にてG324Xの欄に初期値0.が表示され、“10.”を入力した場合、G324H#149B300.M0X10.に置換される。 Format 2 in the parameter manual input request has a constant value as the initial value in the input field for manual input, and ? <Identifier of manual parameter input unit>:<Parameter identifier>=<Constant value>? defined by For example, if the snippet contains the description "G324H#149B300.M0X?MANUALINPUT:G324X=0.?" is replaced with G324H#149B300.M0X10.

パラメータ手動入力要求における書式3は、手動入力の入力欄の初期値はパラメータ自動入力の書式1と同様に決定され、?<パラメータ手動入力部の識別子>:<パラメータ識別子>=<パラメータ自動入力部の識別子>:<パラメータ識別子>?で定義される。例えば、スニペット内に、“G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?”との記述があれば、パラメータ手動入力画面にてG324Xの欄に初期値として工具径形状補正値が表示され(Q1102は工具径形状補正値を示すとする)、“10.”を入力した場合、G324H#149B300.M0X10.に置換される。 In Form 3 in the parameter manual input request, the initial values of the input fields for manual input are determined in the same way as in Form 1 for automatic parameter input, and ? <identifier of manual parameter input unit>:<parameter identifier>=<identifier of automatic parameter input unit>:<parameter identifier>? defined by For example, if the snippet contains the description "G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?", the tool diameter shape correction value will be displayed as the initial value in the G324X column on the parameter manual input screen. (Assuming that Q1102 indicates the tool diameter shape compensation value), and if "10." is entered, it will be replaced with G324H#149B300.M0X10.

パラメータ手動入力要求における書式4は、手動入力の入力欄の初期値はパラメータ自動入力の書式2と同様に決定され、?<パラメータ手動入力部の識別子>:<パラメータ識別子>=<パラメータ自動入力部の識別子>:<パラメータ識別子><演算子><定数値>?で定義される。例えば、“G324H#149B?MANUALINPUT:G324B=TOOL:Q1101+100.?M0X0.”との記述があれば、パラメータ手動入力画面にてG324Bの欄に初期値として工具長形状補正値を+100.した値が表示され(Q1101は工具長形状補正値を示す)、“150.”を入力した場合、G324H#149B250.M0X0.と置換される。 In Form 4 in the parameter manual input request, the initial values of the input fields for manual input are determined in the same way as in Form 2 for automatic parameter input, and ? <identifier of manual parameter input unit>:<parameter identifier>=<identifier of automatic parameter input unit>:<parameter identifier><operator><constant value>? defined by For example, if there is a description of "G324H#149B?MANUALINPUT:G324B=TOOL:Q1101+100.?M0X0.", the initial value in the G324B field on the parameter manual input screen will be +100. (Q1101 indicates the tool length shape correction value), and if you enter "150.", it will be replaced with G324H#149B250.M0X0.

図9Aのパラメータ部分の書式(フォーマット)は、一例に過ぎず、種々の変更や組み合わせが可能である。 The format of the parameter portion in FIG. 9A is merely an example, and various modifications and combinations are possible.

<MDIプログラムの具体例>
図9Bは、パラメータ部分の書式910を用いたMDIプログラムの例921~942の特徴をまとめた表920を示す。具体的には、例921~928(マシニングセンタに対する)、931-932(ターニングセンタに対する)、941-942(工具オフセットにおける)のそれぞれにおいて、使用された書式、工具情報の選択対象、プログラム生成定義の複雑さ、スニペットの複雑さ、などを○で示している。
<Specific example of MDI program>
FIG. 9B shows a table 920 summarizing characteristics of example MDI programs 921-942 using the parameter part format 910. FIG. Specifically, in each of examples 921-928 (for machining centers), 931-932 (for turning centers), and 941-942 (for tool offsets), the format used, the selection of tool information, and the program generation definition Complexity, snippet complexity, etc. are indicated by circles.

≪マシニングセンタにおける例≫
(例921)
図10Aは、図9Bに示したマシニングセンタにおけるMDIプログラムの例921を説明する図である。工具管理画面210上でチェックボックス1001により、1つの工具が選択され、MDI転送ボタン216が押された場合を説明している。選択された工具は、工具番号が10001である。工具管理画面210での1つの工具選択で1つのスニペットのパラメータ部分を置換する。
<<Example in a machining center>>
(Example 921)
FIG. 10A is a diagram explaining an example 921 of the MDI program in the machining center shown in FIG. 9B. A case is explained in which one tool is selected by a check box 1001 on the tool management screen 210 and the MDI transfer button 216 is pressed. The selected tool has a tool number of 10001. A single tool selection on the tool management screen 210 replaces the parameter portion of a single snippet.

MDI転送ボタン216がタッチされると、MDIプログラム生成部321は、MDI転送ボタン216に紐付いたプログラム生成定義に従って、スニペット1を挿入する。次に、スニペット1のパラメータ部分を検索する。そして、検索された自動入力するパラメータ部分の?TOOL:Q0?に選択された工具の工具番号10001を入力し、生成されたMDIプログラム1012がMDI画面220に表示される。 When the MDI transfer button 216 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 216 . Next, search for the parameter portion of snippet 1. Then, the tool number 10001 of the selected tool is input to ?TOOL:Q0? of the retrieved parameter portion to be automatically input, and the generated MDI program 1012 is displayed on the MDI screen 220. FIG.

工具番号は10001である。
スニペット1は、
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
である。“T?TOOL:Q0?;”は、図9Aにおけるパラメータ自動入力要求の書式1に対応し、TOOLは工具情報を入力するパラメータ自動入力部を示す識別子(コード列)であり、Q0は特定の工具情報である工具番号を示す識別子である。
The tool number is 10001.
Snippet 1 is
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
is. "T?TOOL:Q0?;" corresponds to Format 1 of the parameter automatic input request in FIG. This is an identifier that indicates a tool number, which is tool information.

スニペット1のパラメータ部分“T?TOOL:Q0?;”に対して、工具管理画面210上で選択された工具番号10001が、?TOOL:Q0?の位置に挿入される。
MDIプログラム1012として、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
が生成される。
ここで、“T10001;”はマガジンで10001番の工具を割り出す命令、“G91G30Z0.;”および“G91G30X0.Y0.;”は主軸を工具交換位置へ移動する命令、“M6;”は工具交換の命令である。
For the parameter portion "T?TOOL:Q0?;" of snippet 1, the tool number 10001 selected on the tool management screen 210 is inserted at the position of ?TOOL:Q0?.
As the MDI program 1012,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
is generated.
Here, "T10001;" is a command to index the 10001st tool in the magazine, "G91G30Z0.;" and "G91G30X0.Y0.;" are commands to move the spindle to the tool change position, and "M6;" is an order.

(例922)
図10Bは、図9Bに示したマシニングセンタにおけるMDIプログラムの例922を説明する図である。工具管理画面210上でチェックボックスにより、2つの工具が選択され、MDI転送ボタン216が押された場合を説明している。1つ目の工具は、工具番号が10001である。2つ目の工具は、工具番号が10002である。
(Example 922)
FIG. 10B is a diagram illustrating an example MDI program 922 in the machining center shown in FIG. 9B. A case is explained in which two tools are selected with check boxes on the tool management screen 210 and the MDI transfer button 216 is pressed. The first tool has a tool number of 10001 . The second tool has tool number 10002 .

MDI転送ボタン216がタッチされると、MDIプログラム生成部321は、MDI転送ボタン216に紐付いたプログラム生成定義に従って、スニペット1を挿入する。複数工具が選択されているので、複数のスニペット1を並べその間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 216 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 216 . Since multiple tools are selected, multiple snippets 1 are arranged and M1 (optional stop command) is inserted between them.

具体的には、1つ目の工具に対しては、スニペット1における自動入力のパラメータ部分?TOOL:Q0?に工具番号10001を入力する(1012)。さらに、2つ目の工具があるので、オプショナルストップ(M01)1025を挿入して、同じスニペット1における自動入力のパラメータ部分?TOOL:Q0?に工具番号10002を入力する(1022)。これらを合成したMDIプログラム1021がMDI画面220に表示される。 Specifically, for the first tool, the tool number 10001 is input to the automatic input parameter ?TOOL:Q0? in snippet 1 (1012). Furthermore, since there is a second tool, an optional stop (M01) 1025 is inserted, and the tool number 10002 is input to the automatic input parameter ?TOOL:Q0? in the same snippet 1 (1022). An MDI program 1021 combining these is displayed on the MDI screen 220 .

スニペット1は、
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
が生成される。
ここで、“T10001;”はマガジンで10001番の工具を割り出す命令、“G91G30Z0.;”および“G91G30X0.Y0.;”は主軸を工具交換位置へ移動する命令、“M6;”は工具交換の命令である。オプショナルストップ(M1;)を挟んで、“T10002;”はマガジンで10002番の工具を割り出す命令、“G91G30Z0.;”および“G91G30X0.Y0.;”は主軸を工具交換位置へ移動する命令、“M6;”は工具交換の命令である。
Snippet 1 is
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
is.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
is generated.
Here, "T10001;" is a command to index the 10001st tool in the magazine, "G91G30Z0.;" and "G91G30X0.Y0.;" are commands to move the spindle to the tool change position, and "M6;" is an order. With an optional stop (M1;) in between, "T10002;" is a command to index tool number 10002 in the magazine, "G91G30Z0.;" and "G91G30X0.Y0.;" are commands to move the spindle to the tool change position, and "M6;” is a tool change command.

(例923)
図10Cは、図9Bに示したマシニングセンタにおけるMDIプログラムの例923を説明する図である。工具管理画面210上でチェックボックスにより3つの工具が選択され、MDI転送ボタン217が押された場合を説明している。1つ目の工具は、ドリル工具であり、工具番号が10001である。2つ目の工具は、エンドミル工具であり、工具番号が10002である。3つ目の工具は、エンドミル工具であり、工具番号が10003である。
(Example 923)
FIG. 10C is a diagram explaining an example 923 of the MDI program in the machining center shown in FIG. 9B. A case is described in which three tools are selected by check boxes on the tool management screen 210 and the MDI transfer button 217 is pressed. The first tool is a drill tool with tool number 10001 . The second tool is an end mill tool with tool number 10002 . The third tool is an end mill tool with a tool number of 10003.

MDI転送ボタン217がタッチされると、MDIプログラム生成部321は、MDI転送ボタン216に紐付いたプログラム生成定義に従って、スニペット1を挿入した後、工具種がドリルであれば次にスニペット2を挿入し、エンドミルであれば次にスニペット3を挿入する。複数工具が選択されている場合は、スニペット1および2の組と、スニペット1および3の組との間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 217 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 216, and then inserts snippet 2 if the tool type is a drill. , then insert snippet 3 if it is an end mill. If multiple tools are selected, insert M1 (optional stop directive) between the set of snippets 1 and 2 and the set of snippets 1 and 3.

具体的には、1つ目の選択工具については、スニペット1の自動入力パラメータ部分?TOOL:Q0?に1つ目の工具番号10001を入力する(1012)。そして、1つ目の選択工具種がドリルかエンドミルかを判定する。1つ目の選択工具種がドリルなので、スニペット2(工具長計測用マクロの自動呼出し)を挿入する(1035)。オプショナルストップ(M01)1025を挿入の後、スニペット1の自動入力パラメータ部分?TOOL:Q0?に2つ目の工具番号10002を入力する(1022)。そして、2つ目の選択工具種がドリルかエンドミルかを判定する。2つ目の選択工具種がエンドミルなので、スニペット3の自動入力パラメータ部分?TOOL:Q1102?に、選択されたエンドミルの工具径形状補正値(図10Cでは“20.”)を自動設定する(1036)。さらに、オプショナルストップ(M01)1025を挿入の後、スニペット1の自動入力パラメータ部分?TOOL:Q0?に3つ目の工具番号10003を入力する(1032)。そして、3つ目の選択工具種がドリルかエンドミルかを判定する。3つ目の選択工具種がエンドミルなので、スニペット3の自動入力パラメータ部分?TOOL:Q1102?に、選択されたエンドミルの工具径形状補正値(図10Cでは“30.”を自動設定する(1037)。これらのプログラムを合成したMDIプログラム1031がMDI画面220に表示される。 Specifically, for the first selected tool, the first tool number 10001 is input to the automatic input parameter section ?TOOL:Q0? of snippet 1 (1012). Then, it is determined whether the first selected tool type is a drill or an end mill. Since the first selected tool type is a drill, snippet 2 (automatic call of tool length measurement macro) is inserted (1035). After inserting the optional stop (M01) 1025, the second tool number 10002 is entered in the automatic input parameter section ?TOOL:Q0? of snippet 1 (1022). Then, it is determined whether the second selected tool type is a drill or an end mill. Since the second selected tool type is an end mill, automatically set the tool diameter shape correction value (“20.” in FIG. 10C) of the selected end mill in the automatic input parameter part ?TOOL:Q1102? of snippet 3 (1036) ). Furthermore, after inserting an optional stop (M01) 1025, the third tool number 10003 is entered in the automatic input parameter section ?TOOL:Q0? of snippet 1 (1032). Then, it is determined whether the third selected tool type is a drill or an end mill. Since the third selected tool type is an end mill, the automatic input parameter part ?TOOL:Q1102? of snippet 3 is automatically set to the tool diameter shape correction value of the selected end mill ("30." An MDI program 1031 combining these programs is displayed on the MDI screen 220 .

スニペット1は、
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
である。
スニペット2は、G324H#149;であり、工具長計測用マクロを呼び出す命令である。
スニペット3は、G324H#149B300.M0X?TOOL:Q1102?;であり、工具長計測用マクロを呼び出して、仮工具長を300とし、選択された工具に設定されている工具径形状補正値を、X軸シフト量として入力する命令である。ここで、Q1102は、工具径形状補正値を示すパラメータ識別子である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X20.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X30.;
が生成される。
ここで、“T10001;”から“M6;”までは、工具番号10001の工具によるスニペット1の動作命令である。“G324H#149;”は、工具長計測用マクロを呼び出す命令である。オプショナルストップ(M1;)を挟んで、“T10002;”から“M6;”までは、工具番号10002の工具によるスニペット1の動作命令である。“G324H#149B300.M0X20.;”は、工具長計測用マクロを呼び出し、工具番号10002の工具について、仮工具長をスニペット3の“300.”に指定し、X軸シフト量を工具径形状補正値として自動入力された“20.”に指定する命令である。オプショナルストップ(M1;)を挟んで、“T10003;”から“M6;”までは、工具番号10003の工具によるスニペット1の動作命令である。“G324H#149B300.M0X30.;”は、工具長計測用マクロを呼び出し、工具番号10003の工具について、仮工具長をスニペット3の“300.”に指定し、X軸シフト量を工具径形状補正値として自動入力された“30.”に指定する命令である。
Snippet 1 is
T?TOOL:Q0?;
G91G30Z0.;
G91G30X0.Y0.;
M6;
is.
Snippet 2 is G324H#149;, which is an instruction to call the tool length measurement macro.
Snippet 3 is G324H#149B300.M0X?TOOL:Q1102?;, which calls the tool length measurement macro, sets the temporary tool length to 300, and sets the tool radius shape correction value set for the selected tool to This command is input as the X-axis shift amount. Here, Q1102 is a parameter identifier indicating a tool diameter shape correction value.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X20.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X30.;
is generated.
Here, "T10001;" to "M6;" are operation instructions for snippet 1 by the tool with tool number 10001. "G324H#149;" is an instruction to call the tool length measurement macro. From "T10002;" to "M6;" with an optional stop (M1;) interposed therebetween is an operation command of snippet 1 by the tool with tool number 10002. "G324H#149B300.M0X20.;" calls the tool length measurement macro, specifies the temporary tool length to "300." This is an instruction to specify "20." automatically entered as a value. From "T10003;" to "M6;" with an optional stop (M1;) interposed therebetween is an operation command of snippet 1 by the tool with tool number 10003. "G324H#149B300.M0X30.;" calls the tool length measurement macro, specifies the temporary tool length to "300." This is an instruction to specify "30." automatically entered as a value.

(例924)
図10Dは、図9Bに示したマシニングセンタにおけるMDIプログラムの例924を説明する図である。例924は、例923において、スニペット3ではなく、パラメータ自動入力要求の図9Aに示した書式2を含むスニペット4を読み出してMDIプログラム生成する例である。スニペット4においては、工具長計測用マクロを自動に呼出して、仮工具長を自動入力する。なお、図10Dにおいて、スニペット3をスニペット4に変更する以外は図10Cと同様であるので,同じ構成要素には同じ参照番号を付して、同じ処理の説明については重複を避けるため省略する。
(Example 924)
FIG. 10D is a diagram illustrating an example MDI program 924 in the machining center shown in FIG. 9B. Example 924 is an example of generating an MDI program by reading not snippet 3 but snippet 4 including format 2 shown in FIG. 9A of the parameter automatic input request in example 923 . In snippet 4, the tool length measurement macro is automatically called to automatically input the temporary tool length. Note that FIG. 10D is the same as FIG. 10C except that snippet 3 is changed to snippet 4, so the same reference numbers are given to the same components, and the description of the same processing is omitted to avoid duplication.

MDI転送ボタン217がタッチされると、MDIプログラム生成部321は、MDI転送ボタン217に紐付いたプログラム生成定義に従って、スニペット1を挿入した後、工具種がドリルであれば次にスニペット2を挿入し、エンドミルであれば次にスニペット4を挿入する。複数工具が選択されている場合は、スニペット1および2の組と、スニペット1および4の組との間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 217 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 217, and then inserts snippet 2 if the tool type is a drill. , then insert snippet 4 if it is an end mill. If multiple tools are selected, insert M1 (optional stop directive) between the set of snippets 1 and 2 and the set of snippets 1 and 4.

具体的には、選択された2つ目および3つ目の工具がエンドミルなので、スニペット1の次にスニペット4が挿入される。そして、スニペット4の自動入力パラメータ部分?TOOL:Q1101+100.?に、選択された工具に設定されている工具長形状補正値に100を加えた値を入力する(1046,1047)。すなわち、命令1046では自動入力パラメータ部分?TOOL:Q1101+100.?に200.(=100+100)が入力され、命令1046では自動入力パラメータ部分?TOOL:Q1101+100.?に250.(=150+100)が入力される。このように生成されたMDIプログラム1041がMDI画面220に表示される。 Specifically, snippet 4 is inserted after snippet 1 because the second and third tools selected are end mills. Then, a value obtained by adding 100 to the tool length shape correction value set for the selected tool is input to the automatic input parameter portion ?TOOL:Q1101+100.? of snippet 4 (1046, 1047). That is, in the command 1046, 200.(=100+100) is input to the automatic input parameter part ?TOOL:Q1101+100.? 150+100) is entered. The MDI program 1041 generated in this manner is displayed on the MDI screen 220 .

スニペット4は、G324H#149B?TOOL:Q1101+100.?M0X0.;であり、図9Aのパラメータ自動入力要求の書式2に相当する。スニペット4は、工具長計測用マクロを呼び出して、選択された工具に設定されている工具径形状補正値に100を加算した値を仮工具長として入力し、X軸シフト量として0.を入力する命令である。ここで、Q1101は工具長形状補正値を示すパラメータ識別子である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X0.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B250.M0X0.;
が生成される。
ここで、 “G324H#149B200.M0X0.;”は、工具長計測用マクロを呼び出し、工具番号10002の工具について、仮工具長を、選択された工具の工具長形状補正値“100”を用いて“200.(=100+100)”に指定し、X軸シフト量をスニペット4の“0.”に指定する命令である。“G324H#149B250.M0X0.;”は、工具長計測用マクロを呼び出し、工具番号10003の工具について、仮工具長を、選択された工具の工具長形状補正値“150”を用いて“250.(=150+100)”に指定し、X軸シフト量をスニペット4の“0.”に指定する命令である。
Snippet 4 is G324H#149B?TOOL:Q1101+100.?M0X0.; and corresponds to format 2 of the parameter automatic input request in FIG. 9A. Snippet 4 calls the tool length measurement macro, inputs the value obtained by adding 100 to the tool diameter shape correction value set for the selected tool as the temporary tool length, and inputs 0. as the X-axis shift amount. is an instruction to Here, Q1101 is a parameter identifier indicating the tool length shape correction value.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X0.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B250.M0X0.;
is generated.
Here, "G324H#149B200.M0X0.;" calls the tool length measurement macro, and for the tool with tool number 10002, the temporary tool length is calculated using the tool length shape correction value "100" of the selected tool. This command specifies “200.(=100+100)” and specifies “0.” in snippet 4 as the X-axis shift amount. "G324H#149B250.M0X0.;" calls the tool length measurement macro, and for the tool with tool number 10003, the temporary tool length is set to "250. (=150+100)” and the X-axis shift amount to “0.” in snippet 4.

(例925)
図10Eは、図9Bに示したマシニングセンタにおけるMDIプログラムの例925を説明する図である。工具管理画面210上でチェックボックスにより3つの工具が選択され、MDI転送ボタン217が押された場合を説明している。例925は、例923において、スニペット3ではなく、パラメータ手動入力要求の図9Aに示した書式3を含むスニペット5を読み出してMDIプログラム生成する例である。スニペット5においては、工具長計測用マクロを自動に呼出して、X軸シフト量の初期値を選択された工具の工具径形状補正値に設定した後、ユーザがX軸シフト量を手動入力できる。なお、図10Eにおいて、スニペット3をスニペット5に変更する以外は図10Cと同様であるので、同じ構成要素には同じ参照番号を付して、同じ処理の説明については重複を避けるため省略する。
(Example 925)
FIG. 10E is a diagram illustrating an example MDI program 925 in the machining center shown in FIG. 9B. A case is described in which three tools are selected by check boxes on the tool management screen 210 and the MDI transfer button 217 is pressed. Example 925 is an example in which, in Example 923, instead of snippet 3, snippet 5 including format 3 of the parameter manual input request shown in FIG. 9A is read to generate an MDI program. In snippet 5, the tool length measurement macro is automatically called to set the initial value of the X-axis shift amount to the tool diameter shape correction value of the selected tool, and then the user can manually input the X-axis shift amount. Note that FIG. 10E is the same as FIG. 10C except that snippet 3 is changed to snippet 5, so the same components are given the same reference numerals, and the description of the same processing is omitted to avoid duplication.

MDI転送ボタン217がタッチされると、MDIプログラム生成部321は、MDI転送ボタン217に紐付いたプログラム生成定義に従って、スニペット1を挿入し、工具種がドリルであればスニペット2を、エンドミルであればスニペット5を次に挿入する。複数工具が選択されている場合は、スニペット1および2の組と、スニペット1および3の組との間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 217 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 217, inserts snippet 2 if the tool type is a drill, and inserts snippet 2 if the tool type is an end mill. Insert snippet 5 next. If multiple tools are selected, insert M1 (optional stop directive) between the set of snippets 1 and 2 and the set of snippets 1 and 3.

具体的には、選択された2つ目および3つ目の工具がエンドミルなので、スニペット1の次にスニペット5を挿入する。そして、スニペット5には、X軸シフト量の手動入力を求める?MANUALINPUT:G324X=TOOL:Q1102?が記述されているので、パラメータ手動入力画面230をオープンして、X軸シフト量の手動入力を待つ。スニペット5ではTOOL:Q1102が指定されているので、パラメータ手動入力画面230の手動入力欄232には選択された工具の工具径形状補正値(“20.”と“30.”)が初期値として表示される。ユーザは、パラメータ手動入力画面230中のMDIプログラムのプレビュー231を参照して、手動入力欄232の初期値を維持してもよいし変更してもよい。 Specifically, since the second and third tools selected are end mills, snippet 5 is inserted after snippet 1 . Since ?MANUALINPUT:G324X=TOOL:Q1102?, which requires manual input of the X-axis shift amount, is described in snippet 5, open the parameter manual input screen 230 and manually input the X-axis shift amount. wait. Since TOOL:Q1102 is specified in snippet 5, the tool diameter shape correction values ("20." Is displayed. The user may refer to the MDI program preview 231 in the parameter manual entry screen 230 to maintain or change the initial values of the manual entry fields 232 .

ユーザが手動入力欄232の変更を入力してMDI転送ボタン233をタッチすることで、スニペット5のパラメータ部分への手動入力が実現する。図10Eにおいては、工具番号10002の手動入力欄232に“21.”が入力されたので、スニペット5の手動入力パラメータ部分?MANUALINPUT:G324X=TOOL:Q1102?に“21.”が入力される(1056)。また、工具番号10003の手動入力欄232に“31.”が入力されたので、スニペット5の手動入力パラメータ部分?MANUALINPUT:G324X=TOOL:Q1102?に“31.”が入力される(1057)。これらを合成したMDIプログラム1051がMDI画面220に表示される。 When the user inputs changes in the manual input field 232 and touches the MDI transfer button 233, manual input to the parameter portion of the snippet 5 is realized. In FIG. 10E, "21." is input to the manual input field 232 of the tool number 10002, so "21." is input to the manual input parameter ?MANUALINPUT:G324X=TOOL:Q1102? 1056). Also, since "31." is entered in the manual input field 232 of the tool number 10003, "31." is entered in the manual input parameter portion ?MANUALINPUT:G324X=TOOL:Q1102? An MDI program 1051 combining these is displayed on the MDI screen 220 .

スニペット5は、G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?;であり、工具長計測用マクロを呼び出して、X軸シフト量として工具径形状補正値を手動入力する命令である。ここで、Q1102は、選択された工具の工具径形状補正値を示すパラメータ識別子である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X31.;
が生成される。
ここで、“G324H#149B300.M0X21.;”は、工具長計測用マクロを呼び出し、工具番号10002の工具について、仮工具長をスニペット5の“300.”に指定し、X軸シフト量を手動入力した“21.”に設定する命令である。“G324H#149B300.M0X31.;”は、工具長計測用マクロを呼び出し、工具番号10003の工具について、仮工具長をスニペット5の“300.”に指定し、X軸シフト量を手動入力した“31.”に設定する命令である。
Snippet 5 is G324H#149B300.M0X?MANUALINPUT:G324X=TOOL:Q1102?;, which is an instruction to call the tool length measurement macro and manually input the tool diameter shape correction value as the X-axis shift amount. Here, Q1102 is a parameter identifier indicating the tool radius shape correction value of the selected tool.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B300.M0X31.;
is generated.
Here, "G324H#149B300.M0X21.;" calls the tool length measurement macro, specifies the temporary tool length to "300." This is an instruction to set the input "21.". "G324H#149B300.M0X31.;" calls the tool length measurement macro, specifies the temporary tool length to "300." 31.”.

(例926)
図10Fは、図9Bに示したマシニングセンタにおけるMDIプログラムの例926を説明する図である。工具管理画面210上でチェックボックスによる3つの工具が選択され、MDI転送ボタン217が押された場合を説明している。例926は、例923において、スニペット3の代わりにスニペット6が用いられる。スニペット6においては、工具長計測用マクロを自動に呼出して、図9Aのパラメータ自動入力要求の書式2に従い仮工具長を自動入力し、パラメータ手動入力要求の書式1に従いX軸シフト量を手動入力する。なお、図10Fにおいて、スニペット3をスニペット6に変更する以外は、図10Cと同様であるので同じ構成要素には同じ参照番号を付して、同じ処理の説明については重複を避けるため省略する。
(Example 926)
FIG. 10F is a diagram illustrating an example MDI program 926 in the machining center shown in FIG. 9B. A case is described in which three tools are selected by check boxes on the tool management screen 210 and the MDI transfer button 217 is pressed. Example 926 uses snippet 6 instead of snippet 3 in example 923 . In snippet 6, the macro for measuring the tool length is automatically called, the temporary tool length is automatically input according to format 2 of the parameter automatic input request in FIG. 9A, and the X-axis shift amount is manually input according to the parameter manual input request format 1. do. FIG. 10F is the same as FIG. 10C except that snippet 3 is changed to snippet 6, so the same components are given the same reference numerals, and the description of the same processing is omitted to avoid duplication.

MDI転送ボタン217がタッチされると、MDIプログラム生成部321は、MDI転送ボタン217に紐付いたプログラム生成定義に従って、スニペット1を挿入し、工具種がドリルであればスニペット2を、エンドミルであればスニペット6を次に挿入する。複数工具が選択されている場合は、スニペト1および2の組と、スニペスト1および6の組との間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 217 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 217, inserts snippet 2 if the tool type is a drill, and inserts snippet 2 if the tool type is an end mill. Insert snippet 6 next. If multiple tools are selected, insert M1 (optional stop directive) between the set of snippets 1 and 2 and the set of snippets 1 and 6.

具体的には、選択された2つ目および3つ目の工具がエンドミルなので、スニペット1の次にスニペット6を挿入する。スニペット6には、仮工具長の自動入力を示す?TOOL:Q1101+100.?に対応して、(選択された工具の工具長形状補正値+100)が入力される。また、X軸シフト量の手動入力を求める?MANUALINPUT:G324X?が記述されているので、パラメータ手動入力画面230をオープンして、X軸シフト量の手動入力を待つ。ユーザは、パラメータ手動入力画面230中のMDIプログラムのプレビュー231を参照して、工具径形状補正値の手動入力欄232に手動入力を行ってMDI転送ボタン233をタッチすることで、スニペット6のパラメータ部分への手動入力が実現する。図10Fにおいては、工具番号10002に対して、スニペット6の自動入力パラメータ部分?TOOL:Q1101+100.?に“200.”が入力される。そして、工具番号10002の手動入力欄232に“21.”が入力されたので、手動入力パラメータ部分?MANUALINPUT:G324X?に“21.”が入力される(1066)。また、工具番号10003に対して、スニペット6の自動入力パラメータ部分?TOOL:Q1101+100.?に“200.”が入力される。そして、工具番号10003の手動入力欄232に“31.”が入力されたので、手動入力パラメータ部分?MANUALINPUT:G324X?に“31.”が入力される(1067)。これらのプログラムを合成したMDIプログラム1061がMDI画面220に表示される。 Specifically, since the second and third tools selected are end mills, snippet 6 is inserted after snippet 1 . In snippet 6, (tool length shape correction value of the selected tool+100) is input corresponding to ?TOOL:Q1101+100.? indicating automatic input of the temporary tool length. Also, since ?MANUALINPUT:G324X? for requesting manual input of the X-axis shift amount is described, the parameter manual input screen 230 is opened to wait for manual input of the X-axis shift amount. The user refers to the preview 231 of the MDI program in the parameter manual input screen 230, performs manual input in the manual input field 232 of the tool diameter shape correction value, and touches the MDI transfer button 233, so that the parameters of the snippet 6 Manual entry into parts is realized. In FIG. 10F, for tool number 10002, "200." Since "21." is entered in the manual input field 232 of the tool number 10002, "21." is entered in the manual input parameter section ?MANUALINPUT:G324X? (1066). Also, for tool number 10003, "200." is input to the automatic input parameter portion ?TOOL:Q1101+100.? Since "31." is entered in the manual input field 232 of the tool number 10003, "31." is entered in the manual input parameter section ?MANUALINPUT:G324X? (1067). An MDI program 1061 combining these programs is displayed on the MDI screen 220 .

スニペット6は、G324H#149B3?TOOL:Q1101+100.?M0X?MANUALINPUT:G324X?;であり、工具長計測用マクロを呼び出して、仮工具長を自動入力してX軸シフト量を手動入力する命令である。ここで、Q1101は、工具長形状補正値を示すパラメータ識別子であり、Q1102は、工具径形状補正値を示すパラメータ識別子である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B250.M0X31.;
が生成される。
ここで、“G324H#149B200.M0X21.;”は、工具長計測用マクロを呼び出し、工具番号10002の工具について、仮工具長を、自動入力された工具の工具長形状補正値を用いて“200.(=100+100)”に設定し、X軸シフト量を手動入力した“21.”に設定する命令である。“G324H#149B200.M0X31.;”は、工具長計測用マクロを呼び出し、工具番号10003の工具について、仮工具長を、自動入力された工具の工具長形状補正値を用いて “250.(=150+100)”に設定し、X軸シフト量を手動入力した“31.”に設定する命令である。
Snippet 6 is G324H#149B3?TOOL:Q1101+100.?M0X?MANUALINPUT:G324X?;, which calls the tool length measurement macro, automatically inputs the temporary tool length, and manually inputs the X-axis shift amount. is an order. Here, Q1101 is a parameter identifier indicating the tool length shape correction value, and Q1102 is a parameter identifier indicating the tool diameter shape correction value.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B250.M0X31.;
is generated.
Here, "G324H#149B200.M0X21.;" calls the macro for tool length measurement, and for the tool with tool number 10002, the temporary tool length is set to "200" using the automatically input tool length shape correction value of the tool. (=100+100)” and the X-axis shift amount is set to the manually input “21.”. "G324H#149B200.M0X31.;" calls the tool length measurement macro, and for the tool with tool number 10003, the temporary tool length is set to "250.(= 150+100)”, and the X-axis shift amount is set to manually input “31.”.

(例927)
図10Gは、図9Bに示したマシニングセンタにおけるMDIプログラムの例927を説明する図である。工具管理画面210上でチェックボックスによる3つの工具が選択され、MDI転送ボタン217が押された場合を説明している。例927は、例923において、スニペット3の代わりにスニペット7が用いられる。スニペット7においては、計測用マクロを自動に呼出して、図9Aのパラメータ手動入力要求の書式4に従い仮工具長を手動入力し、パラメータ手動入力要求の書式2に従いX軸シフト量を手動入力する。なお、図10Gにおいて、スニペット3をスニペット7に変更する以外は、図10Cと同様であるので同じ構成要素には同じ参照番号を付して、同じ処理の説明については重複を避けるため省略する。
(Example 927)
FIG. 10G is a diagram illustrating an example MDI program 927 in the machining center shown in FIG. 9B. A case is described in which three tools are selected by check boxes on the tool management screen 210 and the MDI transfer button 217 is pressed. Example 927 is example 923 with snippet 7 instead of snippet 3 . In snippet 7, the measurement macro is automatically called, the temporary tool length is manually input according to format 4 of the parameter manual input request shown in FIG. 9A, and the X-axis shift amount is manually input according to parameter manual input request format 2. Note that FIG. 10G is the same as FIG. 10C except that snippet 3 is changed to snippet 7, so the same components are given the same reference numerals, and the description of the same processing is omitted to avoid duplication.

MDI転送ボタン217がタッチされると、MDIプログラム生成部321は、MDI転送ボタン217に紐付いたプログラム生成定義に従って、スニペット1を挿入し、工具種がドリルであればスニペット2を、エンドミルであればスニペット7を次に挿入する。複数工具が選択されている場合は、スニペット1および2の組と、スニペット1および7の組との間にM1(オプショナルストップ指令)を挿入する。 When the MDI transfer button 217 is touched, the MDI program generation unit 321 inserts snippet 1 according to the program generation definition associated with the MDI transfer button 217, inserts snippet 2 if the tool type is a drill, and inserts snippet 2 if the tool type is an end mill. Insert snippet 7 next. If multiple tools are selected, insert M1 (optional stop command) between the set of snippets 1 and 2 and the set of snippets 1 and 7.

具体的には、選択された2つ目および3つ目の工具がエンドミルなので、スニペット1の次にスニペット7を挿入する。スニペット7には、仮工具長の手動入力を示す?MANUALINPUT:G324B=TOOL:Q1101+100.?が記述され、また、X軸シフト量の手動入力を求める?MANUALINPUT:G324X=0.?が記述されているので、パラメータ手動入力画面230をオープンして、仮工具長とX軸シフト量との手動入力を待つ。パラメータ手動入力画面230の手動入力欄1072には、工具番号10002に対して初期値として“200.(=100+100)”が入り、手動入力欄232には初期値として“0.”が入っている。また、工具番号10003に対して初期値として“250.(=150+100)”が入り、手動入力欄232には初期値として“0.”が入っている。ユーザは、パラメータ手動入力画面230中のMDIプログラムのプレビュー231を参照して、手動入力欄1072や232の初期値を維持してもよいし変更してもよい。 Specifically, since the second and third tools selected are end mills, snippet 7 is inserted after snippet 1 . Snippet 7 describes ?MANUALINPUT:G324B=TOOL:Q1101+100.? indicating manual input of temporary tool length, and ?MANUALINPUT:G324X=0.? requesting manual input of X-axis shift amount. Therefore, the parameter manual input screen 230 is opened to wait for manual input of the temporary tool length and the X-axis shift amount. The manual input field 1072 of the parameter manual input screen 230 contains "200.(=100+100)" as the initial value for the tool number 10002, and the manual input field 232 contains "0." as the initial value. ing. Also, "250.(=150+100)" is entered as the initial value for the tool number 10003, and "0." The user may refer to the MDI program preview 231 in the parameter manual input screen 230 to maintain or change the initial values of the manual input fields 1072 and 232 .

ユーザが初期値を変更して、仮工具長の手動入力欄1072とX軸シフト量の手動入力欄232とに手動入力を行ってMDI転送ボタン233をタッチすることで、スニペット7のパラメータ部分への手動入力が実現する。図10Gにおいては、工具番号10002の手動入力欄1072に“150.”が入力され手動入力欄232に“21.”が入力されたので、スニペット7の手動入力パラメータ部分?MANUALINPUT:G324B=TOOL:Q1101+100.?に“150.”が入力され、手動入力パラメータ部分?MANUALINPUT:G324X=0.?に“21.”が入力される(1076)。また、工具番号10003の手動入力欄1072に“200.”が入力され手動入力欄232に“31.”が入力されたので、スニペット7の?MANUALINPUT:G324B=TOOL:Q1101+100.?に “200”が入力され、手動入力パラメータ部分?MANUALINPUT:G324X=0.?に “31.”が入力される(1077)。これらのプログラムを合成したMDIプログラム1071がMDI画面220に表示される。 The user changes the initial values, manually inputs the manual input field 1072 for the temporary tool length and the manual input field 232 for the X-axis shift amount, and touches the MDI transfer button 233 to transfer to the parameter part of the snippet 7. manual input is realized. In FIG. 10G, "150." was entered in the manual input field 1072 of the tool number 10002 and "21." "150." is input to Q1101+100.?, and "21." is input to the manual input parameter portion ?MANUALINPUT:G324X=0.? (1076). Also, since "200." is entered in the manual input field 1072 of the tool number 10003 and "31." is entered in the manual input field 232, " 200" is entered, and "31." is entered in the manual input parameter portion ?MANUALINPUT:G324X=0.? (1077). An MDI program 1071 combining these programs is displayed on the MDI screen 220 .

スニペット7は、G324H#149B3?MANUALINPUT:G324B=TOOL:Q1101+100.?M0X?MANUALINPUT:G324X=0.?;であり、工具長計測用マクロを呼び出して、仮工具長を手動入力しX軸シフト量を手動入力する命令である。ここで、Q1101は、工具長形状補正値を示すパラメータ識別子である。
MDIプログラムとして、
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B150.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X31.;
が生成される。
ここで、“G324H#149B250.M0X21.;”は、工具長計測用マクロを呼び出し、工具番号10002の工具について、仮工具長を、手動入力した工具長形状補正値“150.”に設定し、X軸シフト量を手動入力した“21.”に設定する命令である。“G324H#149B300.M0X31.;”は、工具長計測用マクロを呼び出し、工具番号10003の工具について、仮工具長を、手動入力した工具長形状補正値“200.”に設定し、X軸シフト量を手動入力した“31.”に設定する命令である。
Snippet 7 is G324H#149B3?MANUALINPUT:G324B=TOOL:Q1101+100.?M0X?MANUALINPUT:G324X=0.?; This is an instruction for manually inputting a shift amount. Here, Q1101 is a parameter identifier indicating the tool length shape correction value.
As an MDI program,
T10001;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149;
M1;
T10002;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B150.M0X21.;
M1;
T10003;
G91G30Z0.;
G91G30X0.Y0.;
M6;
G324H#149B200.M0X31.;
is generated.
Here, "G324H#149B250.M0X21.;" calls the tool length measurement macro, sets the temporary tool length for the tool with tool number 10002 to the manually entered tool length shape correction value "150." This is an instruction to set the X-axis shift amount to the manually input "21.""G324H#149B300.M0X31.;" calls the tool length measurement macro, sets the temporary tool length of the tool with tool number 10003 to the manually entered tool length shape correction value "200." This is an instruction to set the amount to manually entered "31."

(例928)
図10Hは、図9Bに示したマシニングセンタにおけるMDIプログラムの例928を説明する図である。例928は、スニペット8を読み出してMDIプログラムを生成する例である。スニペット8では、工具径摩耗補正値をマクロ変数(#100)として読み出して変更し、変更した値を工具径摩耗補正値としてマクロ変数(#100)から書き戻す。
(Example 928)
FIG. 10H is a diagram illustrating an example MDI program 928 in the machining center shown in FIG. 9B. Example 928 is an example of reading snippet 8 and generating an MDI program. In snippet 8, the tool diameter wear correction value is read out as a macro variable (#100) and changed, and the changed value is written back from the macro variable (#100) as the tool diameter wear correction value.

MDI転送ボタン216がタッチされると、MDIプログラム生成部321は、MDI転送ボタン216に紐付いたプログラム生成定義に従って、選択された工具の工具番号をスニペット8に挿入する。具体的には、自動入力パラメータ部分?TOOL:Q0?に選択された工具の工具番号を入力する(1082)。生成されたMDIプログラム1081がMDI画面220に表示される。 When the MDI transfer button 216 is touched, the MDI program generation unit 321 inserts the tool number of the selected tool into the snippet 8 according to the program generation definition associated with the MDI transfer button 216 . Specifically, the tool number of the selected tool is entered in the automatic input parameter section ?TOOL:Q0? (1082). The generated MDI program 1081 is displayed on the MDI screen 220. FIG.

スニペット8は、
G388A100.T?TOOL:Q0?.Q1104;
#100=#100+0.1;
G389A100.T?TOOL:Q0?.Q1104;
である。ここで、G388は工具データ読み出し指令であり、G389は工具データ書き込み指令である。A100は変数番号100を表す。Q1104は工具径摩耗補正値を示すパラメータ識別子である。
MDIプログラムとしては、
G388A100.T10001.Q1104;
#100=#100+0.1;
G389A100.T10001.Q1104;
が生成される。
ここで、G388A100.T10001.Q1104;は、工具管理機能から工具番号10001の工具径摩耗補正値をマクロ変数#100へ読み出す命令である。#100=#100+0.1;は、読み出された工具径摩耗補正値に“0.1”を加える命令である。G369A100.T10001.Q1104;は、工具管理機能の工具番号10001の工具径摩耗補正値へマクロ変数#100の値(すなわち、読み出したマクロ変数#100+0.1)を書き込む命令である。
Snippet 8 is
G388A100.T?TOOL:Q0?.Q1104;
#100=#100+0.1;
G389A100.T?TOOL:Q0?.Q1104;
is. Here, G388 is a tool data read command, and G389 is a tool data write command. A100 represents variable number 100. Q1104 is a parameter identifier indicating a tool diameter wear compensation value.
As an MDI program,
G388A100.T10001.Q1104;
#100=#100+0.1;
G389A100.T10001.Q1104;
is generated.
Here, G388A100.T10001.Q1104; is a command to read the tool radius wear correction value of tool number 10001 from the tool management function to macro variable #100. #100=#100+0.1; is a command to add "0.1" to the read tool diameter wear correction value. G369A100.T10001.Q1104; is an instruction to write the value of macro variable #100 (that is, read macro variable #100+0.1) to the tool radius wear correction value of tool number 10001 in the tool management function.

≪ターニングセンタにおける例≫
(例931)
図11Aは、図9Bに示したターニングセンタにおけるMDIプログラムの例931を説明する図である。ターニングセンタにおける工具管理画面1110上で選択された工具1111は、工具情報としてステーション番号と補正番号とを有する。MDI転送ボタン1112がタッチされると、MDIプログラム生成部321は、MDI転送ボタン1112に紐付けされたMDIプログラムのプログラム生成定義に基づいて、選択された工具に対応してスニペット9を挿入する。
≪Example of a turning center≫
(Example 931)
FIG. 11A is a diagram illustrating an example MDI program 931 in the turning center shown in FIG. 9B. A tool 1111 selected on the tool management screen 1110 in the turning center has a station number and a correction number as tool information. When the MDI transfer button 1112 is touched, the MDI program generation unit 321 inserts the snippet 9 corresponding to the selected tool based on the program generation definition of the MDI program linked to the MDI transfer button 1112 .

具体的には、ステーションの割り出しと補正番号の指令を記述するスニペット9が読み出されて、工具1111の工具情報からパラメータ識別子Q1118で示されるTコードがスニペット9に入力されて、生成されたMDIプログラム1114がMDI画面220に表示される。 Specifically, the snippet 9 describing station indexing and correction number commands is read, the T code indicated by the parameter identifier Q1118 is input to the snippet 9 from the tool information of the tool 1111, and the generated MDI Program 1114 is displayed on MDI screen 220 .

スニペット9は、
T?TOOL:Q1118?;
である。ここで、Q1118はTコードを示すパラメータ識別子である。
MDIプログラムとしては、
T0121;
が生成される。
ターニングセンタのT指令では左2桁がステーション番号(01)、右2桁が補正番号(21)を表し、ステーションの割り出しと補正番号の指令とをまとめて行う。
Snippet 9 is
T?TOOL:Q1118?;
is. Here, Q1118 is a parameter identifier indicating a T code.
As an MDI program,
T0121;
is generated.
In the T command of the turning center, the left two digits represent the station number (01) and the right two digits represent the correction number (21).

(例932)
図11Bは、図9Bに示したターニングセンタにおけるMDIプログラムの例932を説明する図である。例932は、複数の工具1111、1121を選択していた場合に生成されるMDIプログラムである。MDI転送ボタン1112がタッチされると、MDIプログラム生成部321は、MDI転送ボタン1112に紐付けされたMDIプログラムのプログラム生成定義に基づいて、選択された工具のそれぞれに対応してスニペット9を挿入する。複数工具が選択されている場合はその間に、オプショナルストップ(M1)を挿入する。
(Example 932)
FIG. 11B is a diagram illustrating an example MDI program 932 in the turning center shown in FIG. 9B. An example 932 is an MDI program generated when multiple tools 1111 and 1121 are selected. When the MDI transfer button 1112 is touched, the MDI program generation unit 321 inserts a snippet 9 corresponding to each of the selected tools based on the program generation definition of the MDI program linked to the MDI transfer button 1112. do. If multiple tools are selected, insert an optional stop (M1) between them.

具体的には、ステーションの割り出しと補正番号の指令を記述するスニペット9が読み出されて、工具1111の工具情報からパラメータ識別子Q1118で示されるTコードがスニペット9に入力される(1114)。また、スニペット9が読み出されて、工具情報1121からパラメータ識別子Q1118で示されるTコードがスニペット9に入力される(1124)。表示されるMDIプログラム1123では、2つの工具1111、1121のスニペット9によるMDIプログラム1114、1124間に、オプショナルストップ(M1)1125が挿入される。 Specifically, the snippet 9 describing station indexing and correction number commands is read, and the T code indicated by the parameter identifier Q1118 is input to the snippet 9 from the tool information of the tool 1111 (1114). Also, snippet 9 is read, and the T code indicated by parameter identifier Q1118 is input to snippet 9 from tool information 1121 (1124). In the displayed MDI program 1123, an optional stop (M1) 1125 is inserted between the MDI programs 1114, 1124 by snippet 9 of the two tools 1111, 1121.

選択した複数の工具は、Tコード0121とTコード0222とである。
スニペット9は、
T?TOOL:Q1118?;
である。ここで、Q1118はTコードを示すパラメータ識別子である。
MDIプログラムとして、
T0121;
M1;
T0222;
が生成される。
ターニングセンタのT指令では左2桁がステーション番号、右2桁が補正番号を表し、ステーション01の割り出しと補正番号(21)の指令とをまとめて行った後、ステーション02の割り出しと補正番号(22)の指令とをまとめて行う。
The selected tools are T code 0121 and T code 0222.
Snippet 9 is
T?TOOL:Q1118?;
is. Here, Q1118 is a parameter identifier indicating a T code.
As an MDI program,
T0121;
M1;
T0222;
is generated.
In the T command of the turning center, the left 2 digits represent the station number and the right 2 digits represent the correction number. 22) are collectively executed.

なお、タレットのステーションに工具ホルダを付けて、2個や4個など複数の工具を付けることが可能であるが、タレットのステーションに工具ホルダを付けて2個の工具を付けた場合の工具管理画面1130は、図11Cに示すようになる。工具管理画面1130において、例えば、ST1の2本目の工具1131を選択して、MDI転送ボタン1132をタッチすることにより、MDIプログラムを自動生成することができる。 By attaching a tool holder to the turret station, it is possible to attach a plurality of tools such as 2 or 4 tools. Screen 1130 appears as shown in FIG. 11C. On the tool management screen 1130, for example, by selecting the second tool 1131 of ST1 and touching the MDI transfer button 1132, an MDI program can be automatically generated.

≪工具オフセットにおける例≫
(例941)
図12Aは、図9Bに示した工具オフセットにおけるMDIプログラムの具体例941を説明する図である。工具オフセットにおいて用いられる工具オフセット画面1210で選択された工具の工具補正情報1211は、補正番号と工具径形状補正値と工具径摩耗補正値とを有する。そして、工具オフセット画面上で工具オフセット番号が選択されてMDI転送ボタン1212がタッチされると、MDI転送ボタン1212に紐付けされたMDIプログラムのプログラム生成定義に基づいて、MDIプログラム生成部321がスニペット10を挿入する。具体的には、スニペット10が読み出されて、工具オフセットを入力して工具径摩耗補正値を一定量増やすプログラムが生成される(1214)。生成されたプログラム1214がMDIプログラム1213としてMDI画面220に表示される。
≪Example of tool offset≫
(Example 941)
FIG. 12A is a diagram illustrating a specific example 941 of the MDI program in the tool offset shown in FIG. 9B. The tool correction information 1211 of the tool selected on the tool offset screen 1210 used for tool offset has a correction number, a tool diameter shape correction value, and a tool radius wear correction value. Then, when a tool offset number is selected on the tool offset screen and the MDI transfer button 1212 is touched, the MDI program generation unit 321 generates a snippet based on the program generation definition of the MDI program linked to the MDI transfer button 1212. Insert 10. Specifically, the snippet 10 is read, and a program is generated for inputting the tool offset and increasing the tool radius wear correction value by a certain amount (1214). A generated program 1214 is displayed on the MDI screen 220 as an MDI program 1213 .

スニペット10は、
?TOOLOFFSET:DWEARVAR?=?TOOLOFFSET:DWEARVAR?+0.1;
である。ここで、TOOLOFFSETは、工具オフセット情報用のパラメータ自動入力部の識別子、DWEARVARは工具径摩耗補正値のシステム変数を示すパラメータ識別子である。
MDIプログラムとしては、
#12001=#12001+0.1;
が生成される。
ここで、選択された補正番号が1番で工具径摩耗補正値が10であり、MDIプログラム1241によって、システム変数#12001を補正番号が1番の工具径摩耗補正値とし、工具径摩耗補正値を一定量増やすことで逃がすことを行う。一般に、長方向に比べて径方向の方が一般的に加工精度を要求される。例えばネジ穴である。例えば公差が±0.01だとして、その工具・そのワークの組み合わせの初めての加工時に、一旦0.1逃がして加工してワークを計測し、計測結果に基づいて補正値を調整することで、不良品を出さずに済むことになる。
Snippet 10 is
?TOOLOFFSET:DWEARVAR?=?TOOLOFFSET:DWEARVAR?+0.1;
is. Here, TOOLOFFSET is an identifier of an automatic parameter input unit for tool offset information, and DWEARVAR is a parameter identifier indicating a system variable for tool radius wear correction value.
As an MDI program,
#12001=#12001+0.1;
is generated.
Here, the selected correction number is 1 and the tool radius wear correction value is 10, and the MDI program 1241 sets the system variable #12001 to the tool radius wear correction value with the correction number of 1, and the tool radius wear correction value By increasing a certain amount, you can escape. In general, machining accuracy is generally required more in the radial direction than in the longitudinal direction. For example, screw holes. For example, if the tolerance is ±0.01, when the combination of the tool and the workpiece is processed for the first time, the workpiece is measured after machining with a relief of 0.1, and the correction value is adjusted based on the measurement results to produce defective products. It will be done without.

(例942)
図12Bは、図9Bに示した工具オフセットにおけるMDIプログラムの例942を説明する図である。図12Aと同様に、工具オフセットにおいて用いられる工具オフセット画面1210で選択された工具の工具補正情報1211は、補正番号と工具径形状補正値と工具径摩耗補正値とを有する。そして、工具オフセット画面上で工具オフセット番号が選択されてMDI転送ボタン1212がタッチされると、MDI転送ボタン1212に紐付けされたMDIプログラムのプログラム生成定義に基づいて、MDIプログラム生成部321がスニペット11を挿入する。具体的には、スニペット11が読み出されて、工具オフセットを入力して工具径摩耗補正値を指定値だけ書き換えるプログラムが生成される(1224)。生成されたプログラム1224がMDIプログラム1223としてMDI画面220に表示される。
(Example 942)
FIG. 12B is a diagram illustrating an example MDI program 942 for the tool offsets shown in FIG. 9B. As in FIG. 12A, the tool correction information 1211 of the tool selected on the tool offset screen 1210 used for tool offset has a correction number, a tool radius shape correction value, and a tool radius wear correction value. Then, when a tool offset number is selected on the tool offset screen and the MDI transfer button 1212 is touched, the MDI program generation unit 321 generates a snippet based on the program generation definition of the MDI program linked to the MDI transfer button 1212. Insert 11. Specifically, the snippet 11 is read, and a program is generated for inputting the tool offset and rewriting the tool diameter wear compensation value by the designated value (1224). A generated program 1224 is displayed on the MDI screen 220 as an MDI program 1223 .

スニペット11は、G10G90L13P?TOOLOFFSET:NUMBER?R?TOOLOFFSET:DWEAR+0.1?;
である。ここで、NUMBERは補正番号、DWEARは工具径摩耗補正値を示すパラメータ識別子である。
MDIプログラムとして、
G10G90L13P1R10.1;
が生成される。
ここで、G10L13が工具径摩耗補正値の書き換えの指令であり、Pが補正番号、Rが補正値である。
Snippet 11 is G10G90L13P?TOOLOFFSET:NUMBER?R?TOOLOFFSET:DWEAR+0.1?;
is. Here, NUMBER is a correction number and DWEAR is a parameter identifier indicating a tool diameter wear correction value.
As an MDI program,
G10G90L13P1R10.1;
is generated.
Here, G10L13 is a command to rewrite the tool diameter wear compensation value, P is the compensation number, and R is the compensation value.

以上、本実施形態によれば、定型プログラムに記述されたパラメータ部分を、工具管理画面で選択された工具の特定の工具情報に自動的に置き換えるので、工具番号を含む特定の工具情報を、ユーザによるキー入力なしに自動的に設定してMDIプログラムを生成することができる。また、定型プログラムに記述されたパラメータ部分を、工具オフセット画面で選択された工具のオフセット値に自動的に置き換えるので、工具のオフセット値をユーザによるキー入力なしに自動的に設定してMDIプログラムを生成することができる。 As described above, according to this embodiment, the parameter portion described in the fixed form program is automatically replaced with the specific tool information of the tool selected on the tool management screen. It is possible to automatically set and generate an MDI program without key input by . In addition, since the parameter portion described in the fixed form program is automatically replaced with the offset value of the tool selected on the tool offset screen, the offset value of the tool is automatically set without key input by the user and the MDI program can be executed. can be generated.

すなわち、スニペットに記述されたパラメータ部分は特定のフォーマットにより定義されているので、ユーザによる変更修正によるスニペットの編集が簡単であり、MDIプログラムの生成編集をミスなく実現できる。 That is, since the parameter portion described in the snippet is defined by a specific format, the snippet can be easily edited by the user by changing and correcting, and the generation and editing of the MDI program can be realized without mistakes.

本実施形態の技術を用いれば、MDIプログラム生成時の手間や操作間違いの危険性を大きく低減できる。特に、複数の工具を連続的に工具主軸へ呼び出す場合に効果的である。 By using the technique of this embodiment, it is possible to greatly reduce the time and effort involved in generating an MDI program and the risk of operational errors. In particular, it is effective when a plurality of tools are continuously called to the tool spindle.

[第3実施形態]
次に、本発明の第3実施形態に係る工作機械制御装置について説明する。本実施形態に係る工作機械制御装置は、上記第2実施形態と比べると、ユーザが生成および編集したスニペットを使用できる点で異なる。本実施形態においては、ユーザによる画面での選択指示に従って、特定フォーマットを有するパラメータ部分を自動的に定型プログラムに挿入する。その他の構成および動作は、第2実施形態と同様であるため、同じ構成および動作については同じ符号を付してその詳しい説明を省略する。
[Third embodiment]
Next, a machine tool control device according to a third embodiment of the invention will be described. The machine tool control device according to this embodiment differs from the second embodiment in that snippets generated and edited by the user can be used. In this embodiment, a parameter portion having a specific format is automatically inserted into the fixed form program according to the user's selection instruction on the screen. Since other configurations and operations are similar to those of the second embodiment, the same configurations and operations are denoted by the same reference numerals, and detailed description thereof will be omitted.

<スニペット生成編集を含む構成>
図13Aに示すように、工具管理画面210において、複数の工具213が選択されて、MDI転送(ユーザ定義A)ボタン1314、MDI転送(ユーザ定義B)ボタン1315がタッチされた場合には、MDI画面1316のように、ユーザが生成し、それぞれのボタンに紐付けられたスニペットに基づいてMDIプログラムが生成される。
<Configuration including snippet generation and editing>
As shown in FIG. 13A, in the tool management screen 210, when a plurality of tools 213 are selected and an MDI transfer (user definition A) button 1314 and an MDI transfer (user definition B) button 1315 are touched, the MDI As in screen 1316, an MDI program is generated based on the snippets generated by the user and associated with each button.

図13Bは、図13Aのように、複数のMDI転送ボタンを工具管理画面210に表示せず、プルダウンメニュー1318を表示する例を示している。例えば、MDI転送(ユーザ定義)が選択されると、下位のメニュー1319が表示される。 FIG. 13B shows an example of displaying a pull-down menu 1318 without displaying a plurality of MDI transfer buttons on the tool management screen 210 as in FIG. 13A. For example, when MDI Transfer (User Defined) is selected, a subordinate menu 1319 is displayed.

<スニペット生成編集手順>
図13Cは、工作機械制御装置のスニペット生成編集画面1320を示す図である。スニペット生成編集画面1320において、まず、スニペット表示画面1321には、スニペットの第1行の最初“T(ATC(Automatic Tool Changer: 自動工具交換装置)位置へ割り出し)”が入力されている。スニペット生成編集ウィンドウ1322において、“パラメータ自動入力”を指示すると、スニペット表示画面1323には、“?TOOL:”が自動的に入力される。次に、スニペット生成編集ウィンドウ1324において、“工具番号”を指示すると、スニペット表示画面1325には、“Q0”が自動的に入力される。そして、スニペット生成編集ウィンドウ1326において、“確定”を指示すると、“T?TOOL:Q?”のスニペットの第1行の入力が完了する。なお、図13Cには、初期入力の例を示したが、既存のスニペットを読み出して編集する場合も、同様の操作で容易に入力が可能となる。
<Snippet generation and editing procedure>
FIG. 13C is a diagram showing a snippet generation edit screen 1320 of the machine tool controller. In the snippet generation/edit screen 1320, first, in the snippet display screen 1321, the beginning of the first line of the snippet "T (Index to ATC (Automatic Tool Changer) position)" is input. In the snippet generation/editing window 1322 , when “automatic parameter input” is instructed, “?TOOL:” is automatically input in the snippet display screen 1323 . Next, when the “tool number” is specified in the snippet generation/edit window 1324 , “Q0” is automatically entered in the snippet display screen 1325 . Then, in the snippet generation/edit window 1326, when "confirm" is instructed, the input of the first line of the snippet "T?TOOL:Q?" is completed. Note that FIG. 13C shows an example of initial input, but even when reading and editing an existing snippet, input can be easily performed by the same operation.

図13Dは、工作機械制御装置の他のスニペット生成編集画面1340を示す図である。スニペット生成編集画面1340においては、スニペットを各ラインの命令ごとに生成あるいは編集する。スニペット表示画面1341と、各機能(図ではG28機能)における数値の入力欄1342とを示している。Insertボタン1343のタッチにより入力欄1342の数値がスニペットに挿入される。スニペット生成編集画面1340は、スニペットの簡易な生成編集のために使用される。 FIG. 13D shows another snippet generation edit screen 1340 of the machine tool controller. On the snippet generation/editing screen 1340, a snippet is generated or edited for each command of each line. A snippet display screen 1341 and numerical input fields 1342 for each function (G28 function in the figure) are shown. Touching the Insert button 1343 inserts the numerical value in the input field 1342 into the snippet. The snippet creation/editing screen 1340 is used for simple creation/editing of snippets.

<工具管理モジュールの構成>
図14は、MDI転送モジュール1420の構成を示すブロック図である。なお、図14において、図5Aと同様の構成要素には同じ参照番号を付して、重複する説明を省略する。
<Configuration of tool management module>
FIG. 14 is a block diagram showing the configuration of the MDI transfer module 1420. As shown in FIG. In addition, in FIG. 14, the same reference numerals are given to the same components as those in FIG. 5A, and overlapping explanations are omitted.

MDI転送モジュール1420は、スニペット取得部1421と、スニペット編集用データ取得部1422と、スニペット生成編集部1423と、を備える。また、MDI転送モジュール1420は、スニペット編集用データ保管部1424を有するデータベース1410を備える。スニペット取得部1421は、編集用のスニペットをスニペット識別子によりスニペット保管部323から取得する。スニペット編集用データ取得部1422は、スニペット編集用データ保管部1424から、スニペット編集用データを取得する。スニペット生成編集部1423は、スニペット取得部1421が取得したスニペットを、スニペット編集用データを用いて編集する。なお、取得したスニペットが無い場合は、スニペットの生成を行う。生成あるいは編集されたスニペットはスニペット保管部323に検索可能に保管される。 The MDI transfer module 1420 includes a snippet acquisition unit 1421 , a snippet editing data acquisition unit 1422 , and a snippet generation/editing unit 1423 . The MDI transfer module 1420 also includes a database 1410 having a snippet editing data repository 1424 . The snippet acquisition unit 1421 acquires a snippet for editing from the snippet storage unit 323 using the snippet identifier. The snippet editing data acquisition unit 1422 acquires snippet editing data from the snippet editing data storage unit 1424 . The snippet generation/editing unit 1423 edits the snippet acquired by the snippet acquisition unit 1421 using the snippet editing data. If there is no acquired snippet, a snippet is generated. The generated or edited snippet is stored in the snippet storage unit 323 in a searchable manner.

(スニペット編集用データ保管部)
図15は、スニペット編集用データ保管部1424の構成を示す図である。スニペット編集用データ保管部1424は、入力モードテーブル1510と、書式テーブル1520と、入力データテーブル1530と、を有する。入力モードテーブル1510は、パラメータ部分の入力モードが自動入力か手動入力かのユーザ設定1511に対応して、スニペット記述子1412を記憶する。本実施形態においては、自動入力の場合は“?TOOL”が記憶され、手動入力の場合は“?MANUALINPUT”が記憶される。書式テーブル1520には、図9Aに示したような書式番号1521に対応付けて、書式の定義1522と入力記述例1523とを記憶する。入力記述例1523は、ユーザの参照のために表示される。入力データテーブル1530は、入力データ名1531に対応付けて、パラメータ識別子1532と使用する書式番号1533とを記憶する。例えば、入力データ名1531が工具番号であれば、パラメータ識別子1532には“Q0”が記憶される。また、入力データ名1531が工具長補正形状であれば、パラメータ識別子1532には“Q1101”が記憶される。また、入力データ名1531が工具径補正形状であれば、パラメータ識別子1532には“Q1102”が記憶される。
(Data storage for snippet editing)
FIG. 15 is a diagram showing the configuration of the snippet editing data storage unit 1424. As shown in FIG. The snippet editing data storage unit 1424 has an input mode table 1510 , a format table 1520 and an input data table 1530 . The input mode table 1510 stores a snippet descriptor 1412 corresponding to the user setting 1511 of whether the input mode of the parameter part is automatic input or manual input. In this embodiment, "? TOOL" is stored for automatic input, and "? MANUALINPUT" is stored for manual input. The format table 1520 stores a format definition 1522 and an input description example 1523 in association with the format number 1521 shown in FIG. 9A. An example input description 1523 is displayed for the user's reference. Input data table 1530 stores parameter identifier 1532 and format number 1533 to be used in association with input data name 1531 . For example, if the input data name 1531 is the tool number, the parameter identifier 1532 stores "Q0". Also, if the input data name 1531 is a tool length compensation shape, the parameter identifier 1532 stores “Q1101”. If the input data name 1531 is a tool radius compensation shape, the parameter identifier 1532 stores "Q1102".

<スニペットの生成編集処理手順>
図16Aは、本実施形態に係る工作機械制御装置のスニペットの生成編集処理の手順を示すフローチャートである。MDI転送モジュール1420は、ステップS1601において、スニペットの生成か編集かを判定する。スニペットの生成であれば、MDI転送モジュール1420は、ステップS1611において、新たなスニペット識別子を設定する。MDI転送モジュール1420は、ステップS1613において、スニペットの機能記述を順に入力する。そして、MDI転送モジュール1420は、ステップS1615において、入力パラメータ位置になったことを判定する。入力パラメータ位置になった場合、MDI転送モジュール1420は、ステップS1617において、パラメータ部分の記述挿入処理を実行する。そして、MDI転送モジュール1420は、ステップS1619において、スニペットの生成終了を判定する。スニペットの生成終了でなければ、MDI転送モジュール1420は、ステップS1613に戻って、スニペットの生成を継続する。
<Procedure for generating and editing snippets>
FIG. 16A is a flowchart showing the procedure of snippet generation and editing processing of the machine tool control device according to the present embodiment. The MDI transfer module 1420 determines whether to generate or edit a snippet in step S1601. For snippet generation, the MDI transfer module 1420 sets a new snippet identifier in step S1611. The MDI transfer module 1420 sequentially inputs the functional description of the snippets in step S1613. MDI transfer module 1420 then determines in step S1615 that an input parameter position has been reached. When the input parameter position has been reached, the MDI transfer module 1420 executes description insertion processing for the parameter portion in step S1617. Then, in step S1619, the MDI transfer module 1420 determines the end of snippet generation. If snippet generation is not finished, the MDI transfer module 1420 returns to step S1613 to continue snippet generation.

一方、スニペットの編集であれば、MDI転送モジュール1420は、ステップS1621において、スニペット識別子を入力する。MDI転送モジュール1420は、ステップS1623において、スニペット識別子を用いてスニペットを読み出してMDI画面に表示する。そして、MDI転送モジュール1420は、ステップS1625において、既存のスニペットのどの位置を編集するかを設定する。MDI転送モジュール1420は、ステップS1627において、編集位置がパラメータ部分編集位置であるか否かを判定する。パラメータ部分編集位置であれば、MDI転送モジュール1420は、ステップS1629において、パラメータ部分の記述挿入処理を実行する。一方、パラメータ部分編集位置でなければ、MDI転送モジュール1420は、ステップS1631において、パラメータ部分の機能記述の修正を行う。そして、MDI転送モジュール1420は、ステップS1633において、スニペットの編集終了を判定する。スニペットの編集終了でなければ、MDI転送モジュール1420は、ステップS1625に戻って、スニペットの編集を継続する。 On the other hand, for snippet editing, the MDI transfer module 1420 inputs a snippet identifier in step S1621. The MDI transfer module 1420 reads the snippet using the snippet identifier and displays it on the MDI screen in step S1623. The MDI transfer module 1420 then sets which position of the existing snippet to edit in step S1625. MDI transfer module 1420 determines in step S1627 whether the edit position is the parameter partial edit position. If it is at the parameter part edit position, the MDI transfer module 1420 executes parameter part description insertion processing in step S1629. On the other hand, if it is not at the parameter part edit position, the MDI transfer module 1420 corrects the function description of the parameter part in step S1631. Then, in step S1633, the MDI transfer module 1420 determines end of snippet editing. If editing of the snippet is not finished, the MDI transfer module 1420 returns to step S1625 to continue editing the snippet.

スニペットの生成終了またはスニペットの編集終了を判定すると、MDI転送モジュール1420は、ステップS1620において、生成した新規のスニペットあるいは編集した既存のスニペットを保管する。 Upon determining the end of snippet generation or the end of snippet editing, MDI transfer module 1420 stores the generated new snippet or the edited existing snippet in step S1620.

(パラメータ部分の記述挿入処理)
図16Bは、パラメータ部分の記述挿入処理S1617、S1629の手順を示すフローチャートである。MDI転送モジュール1420は、ステップS1641において、自動入力か手動入力かを判定する。自動入力であれば、MDI転送モジュール1420は、ステップS1643において、“?TOOL”をスニペットの入力位置に挿入する。一方、手動入力であれば、MDI転送モジュール1420は、ステップS1643において、“?MANUALINPUT”をスニペットの入力位置に挿入する。
(Description insertion processing of the parameter part)
FIG. 16B is a flow chart showing the procedure of the parameter part description insertion processing S1617 and S1629. MDI transfer module 1420 determines in step S1641 whether the input is automatic or manual. If it is automatic input, the MDI transfer module 1420 inserts "? TOOL" at the input position of the snippet in step S1643. On the other hand, if it is a manual input, the MDI transfer module 1420 inserts "?MANUALINPUT" at the snippet input position in step S1643.

次に、MDI転送モジュール1420は、ステップS1647において、次に入力するデータが入力値識別子か否かを判定する。入力値識別子であれば、MDI転送モジュール1420は、ステップS1649において、入力値識別子の入力あるいはプルダウンメニューなどからの選択をする。入力値識別子でなければ、MDI転送モジュール1420は、ステップS1651において、機能識別子か否かを判定する。機能識別子であれば、MDI転送モジュール1420は、ステップS1653において、機能識別子の入力あるいはプルダウンメニューなどからの選択をする。機能識別子でなければ、何もせずに次にすすむ。MDI転送モジュール1420は、ステップS1655において、パラメータ部分の入力終了か否かを判定する。パラメータ部分の入力終了でなければ、MDI転送モジュール1420は、ステップS1647に戻って、パタメータの完成まで処理を繰り返す。 Next, MDI transfer module 1420 determines in step S1647 whether or not the data to be input next is an input value identifier. If it is an input value identifier, MDI transfer module 1420, in step S1649, inputs the input value identifier or makes a selection from a pull-down menu or the like. If it is not an input value identifier, the MDI transfer module 1420 determines whether it is a function identifier in step S1651. If it is a function identifier, the MDI transfer module 1420, in step S1653, inputs the function identifier or makes a selection from a pull-down menu or the like. If it is not a function identifier, do nothing and proceed to the next step. The MDI transfer module 1420 determines in step S1655 whether or not the input of the parameter portion has ended. If the input of the parameter portion is not completed, MDI transfer module 1420 returns to step S1647 and repeats the process until the parameter is completed.

パラメータ部分の入力終了になれば、MDI転送モジュール1420は、ステップS1647において、パラメータ部分の最後に“?”を挿入して処理を終了する。 When the input of the parameter part is completed, the MDI transfer module 1420 inserts "?" at the end of the parameter part in step S1647 and ends the process.

本実施形態によれば、ユーザによるキー入力なしに自動的にパラメータ部分を挿入して、スニペットを生成および編集することができる。そして、ユーザが生成および編集したヅニペットを用いてMDIプログラムを効率的に生成することができる。 According to this embodiment, a snippet can be generated and edited by automatically inserting a parameter portion without key input by the user. Then, an MDI program can be efficiently generated using the user-generated and edited znippets.

[第4実施形態]
次に、本発明の第4実施形態に係る工作機械制御装置について説明する。本実施形態に係る工作機械制御装置は、上記第2実施形態および第3実施形態と比べると、プログラム生成定義の生成および編集を簡易な操作で実現する点で異なる。本実施形態においては、ユーザによる画面での選択指示に従ってプログラム生成定義内のスニペットを変更および修正して、プログラム生成定義を自動的に編集する。その他の構成および動作は、第2実施形態と同様であるため、同じ構成および動作については同じ符号を付してその詳しい説明を省略する。
[Fourth Embodiment]
Next, a machine tool control device according to a fourth embodiment of the invention will be described. The machine tool control apparatus according to the present embodiment differs from the above-described second and third embodiments in that the generation and editing of the program generation definition are realized with simple operations. In this embodiment, the program generation definition is automatically edited by changing and correcting snippets in the program generation definition according to the user's selection instructions on the screen. Since other configurations and operations are similar to those of the second embodiment, the same configurations and operations are denoted by the same reference numerals, and detailed description thereof will be omitted.

<プログラム定義の生成編集手順>
図17において、工作機械制御装置のプログラム生成定義の生成編集手順を示す。プログラム定義生成編集画面1720において、まず、プログラム定義表示画面1721には、プログラム生成定義の旧スニペットが表示されている。プログラム定義生成編集ウィンドウ1722において“変更”を指示し、次に、プログラム定義生成編集ウィンドウ1724で新しいスニペットを選定すると、プログラム定義表示画面1723には、新しいスニペットが表示される。プログラム定義生成編集ウィンドウ1722において“修正”を指示した場合は、旧スニペットを第3実施形態の記載に従って修正することによって、プログラム生成定義の内容を更新する。
<Program definition generation and editing procedure>
FIG. 17 shows the generation and editing procedure of the program generation definition of the machine tool control device. In the program definition generation and editing screen 1720, first, the program definition display screen 1721 displays the old snippet of the program generation definition. When "change" is instructed in the program definition generation and editing window 1722 and then a new snippet is selected in the program definition generation and editing window 1724, the new snippet is displayed on the program definition display screen 1723. FIG. When "correction" is instructed in the program definition generation and editing window 1722, the content of the program generation definition is updated by correcting the old snippet according to the description of the third embodiment.

<工具管理モジュールの構成>
図18は、工作機械制御装置のMDI転送モジュール1820の構成を示すブロック図である。なお、図18において、図5および図14と同様の構成要素には同じ参照番号を付して、重複する説明を省略する。
<Configuration of tool management module>
FIG. 18 is a block diagram showing the configuration of the MDI transfer module 1820 of the machine tool controller. In FIG. 18, the same reference numerals are given to the same components as in FIGS. 5 and 14, and overlapping descriptions are omitted.

MDI転送モジュール1820は、プログラム生成定義取得部1821とプログラム生成定義生成編集部1822とを備える。プログラム生成定義取得部1821は、プログラム生成定義識別子を用いて、プログラム生成定義保管部322からプログラム生成定義を取得する。プログラム生成定義生成編集部1822は、取得したプログラム生成定義を、例えばスニペットを取り替える、あるいは、スニペットを変更することにより編集する。また、プログラム生成定義が取得されてなければ、新規なプログラム生成定義を生成する。 The MDI transfer module 1820 includes a program generation definition acquisition unit 1821 and a program generation definition generation and editing unit 1822 . The program generation definition acquisition unit 1821 acquires the program generation definition from the program generation definition storage unit 322 using the program generation definition identifier. The program generation definition generation editing unit 1822 edits the acquired program generation definition by, for example, replacing the snippet or changing the snippet. Also, if the program generation definition has not been acquired, a new program generation definition is generated.

<プログラム定義生成編集処理手順>
図19Aは、プログラム定義生成編集処理の手順を示すフローチャートである。MDI転送モジュール1820は、ステップS1901において、プログラム生成定義の生成か編集かを判定する。プログラム生成定義の生成であれば、MDI転送モジュール1820は、ステップS1911において、新たなプログラム生成定義識別子を設定する。MDI転送モジュール1820は、ステップS1913において、プログラム生成定義を記述する。そして、MDI転送モジュール1820は、ステップS1915において、スニペット配置位置になったことを判定する。スニペット配置位置になった場合、MDI転送モジュール1820は、ステップS1817において、スニペットの変更処理を実行する。そして、MDI転送モジュール1820は、ステップS1919において、プログラム生成定義の生成終了を判定する。プログラム生成定義の生成終了でなければ、MDI転送モジュール1820は、ステップS1913に戻って、プログラム生成定義の生成を継続する。
<Procedure for generating and editing program definition>
FIG. 19A is a flow chart showing the procedure of program definition generation and editing processing. The MDI transfer module 1820 determines in step S1901 whether to generate or edit a program generation definition. If it is a program generation definition generation, the MDI transfer module 1820 sets a new program generation definition identifier in step S1911. The MDI transfer module 1820 writes the program generation definition in step S1913. Then, in step S1915, the MDI transfer module 1820 determines that the snippet placement position has been reached. When the snippet placement position is reached, the MDI transfer module 1820 executes snippet change processing in step S1817. Then, in step S1919, the MDI transfer module 1820 determines completion of generation of the program generation definition. If the generation of the program generation definition is not finished, the MDI transfer module 1820 returns to step S1913 to continue generation of the program generation definition.

一方、プログラム生成定義の編集であれば、MDI転送モジュール1820は、ステップS1921において、プログラム生成定義識別子を入力する。MDI転送モジュール1820は、ステップS1923において、プログラム生成定義識別子を用いてプログラム生成定義を読み出してMDI画面に表示する。そして、MDI転送モジュール1820は、ステップS1925において、既存のプログラム生成定義のどの位置を編集するかを設定する。MDI転送モジュール1820は、ステップS1827において、編集位置がスニペット編集位置であるか否かを判定する。スニペット編集位置であれば、MDI転送モジュール1820は、ステップS1929において、スニペットの変更処理を実行する。一方、スニペット編集位置でなければ、MDI転送モジュール1820は、ステップS1931において、プログラム生成定義の記述の修正を行う。そして、MDI転送モジュール1820は、ステップS1933において、プログラム生成定義の編集終了を判定する。プログラム生成定義の編集終了でなければ、MDI転送モジュール1820は、ステップS1925に戻って、プログラム生成定義の編集を継続する。 On the other hand, in the case of editing the program generation definition, the MDI transfer module 1820 inputs the program generation definition identifier in step S1921. The MDI transfer module 1820 reads the program generation definition using the program generation definition identifier and displays it on the MDI screen in step S1923. MDI transfer module 1820 then sets which position of the existing program generation definition to edit in step S1925. The MDI transfer module 1820 determines in step S1827 whether the editing position is the snippet editing position. If it is at the snippet edit position, the MDI transfer module 1820 executes snippet change processing in step S1929. On the other hand, if it is not the snippet edit position, the MDI transfer module 1820 corrects the description of the program generation definition in step S1931. Then, in step S1933, the MDI transfer module 1820 determines the end of editing of the program generation definition. If editing of the program generation definition is not finished, the MDI transfer module 1820 returns to step S1925 to continue editing the program generation definition.

プログラム生成定義の生成終了またはプログラム生成定義の編集終了を判定すると、MDI転送モジュール1820は、ステップS1920において、生成した新規のプログラム生成定義あるいは編集した既存のプログラム生成定義を保管する。 Upon determining the end of generation of the program generation definition or the end of editing of the program generation definition, the MDI transfer module 1820 stores the generated new program generation definition or the edited existing program generation definition in step S1920.

(スニペット変更処理)
図19Bは、スニペット変更処理S1917,S1929の手順を示すフローチャートである。MDI転送モジュール1820は、ステップS1941において、スニペットの変更か否かを判定する。スニペットの変更であれば、MDI転送モジュール1820は、ステップS1943において、新たなスニペット識別子を入力する。MDI転送モジュール1820は、ステップS1945において、新たなスニペットを読み出して元のスニペットと置換する。MDI転送モジュール1820は、ステップS1947において、読み出して置換したスニペットを編集するか否かを判定する。スニペットを編集する場合は、第3実施形態におけるスニペット編集を実行する。
(Snippet change processing)
FIG. 19B is a flowchart showing the procedure of snippet change processing S1917 and S1929. The MDI transfer module 1820 determines in step S1941 whether or not the snippet has been changed. If it is a snippet change, MDI transfer module 1820 inputs a new snippet identifier in step S1943. MDI transfer module 1820 reads the new snippet to replace the original snippet in step S1945. The MDI transfer module 1820 determines in step S1947 whether to edit the retrieved and replaced snippet. When editing a snippet, snippet editing in the third embodiment is performed.

スニペットの変更でなければ、MDI転送モジュール1820は、ステップS1949において、元のスニペットを編集するか否かを判定する。スニペットを編集する場合は、第3実施形態におけるスニペット編集を実行する。いずれもスニペット編集でなければ、処理を終了する。 If the snippet is not changed, MDI transfer module 1820 determines whether to edit the original snippet in step S1949. When editing a snippet, snippet editing in the third embodiment is performed. If none of them is snippet editing, the process is terminated.

本実施形態によれば、ユーザによるキー入力なしに自動的にスニペットを変更および修正して、プログラム生成定義を生成および編集することができる。 According to this embodiment, snippets can be automatically changed and modified to generate and edit program generated definitions without key input by the user.

[他の実施形態]
以上、実施形態を参照して本願発明を説明したが、本願発明は上記実施形態に限定されるものではない。本願発明の構成や詳細には、本願発明の技術的範囲で当業者が理解し得る様々な変更をすることができる。また、それぞれの実施形態に含まれる別々の特徴を如何様に組み合わせたシステムまたは装置も、本発明の技術的範囲に含まれる。
[Other embodiments]
Although the present invention has been described with reference to the embodiments, the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the technical scope of the present invention. Also, any system or apparatus that combines separate features included in each embodiment is included in the technical scope of the present invention.

また、本発明は、複数の機器から構成されるシステムに適用されてもよいし、単体の装置に適用されてもよい。さらに、本発明は、実施形態の機能を実現する情報処理プログラムが、システムあるいは装置に供給され、内蔵されたプロセッサによって実行される場合にも適用可能である。本発明の機能をコンピュータで実現するために、コンピュータにインストールされるプログラム、あるいはそのプログラムを格納した媒体、そのプログラムをダウンロードさせるサーバも、プログラムを実行するプロセッサも本発明の技術的範囲に含まれる。特に、少なくとも、上述した実施形態に含まれる処理ステップをコンピュータに実行させるプログラムを格納した非一時的コンピュータ可読媒体(non-transitory computer readable medium)は本発明の技術的範囲に含まれる。 Further, the present invention may be applied to a system composed of a plurality of devices, or may be applied to a single device. Furthermore, the present invention can also be applied when an information processing program that implements the functions of the embodiments is supplied to a system or apparatus and executed by a built-in processor. In order to realize the functions of the present invention on a computer, the technical scope of the present invention includes a program installed in a computer, a medium storing the program, a server for downloading the program, and a processor executing the program. . In particular, non-transitory computer readable media storing programs that cause a computer to perform at least the processing steps included in the above-described embodiments fall within the scope of the present invention.

上記目的を達成するため、本発明に係る工作機械制御装置は、
工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備え
前記MDIプログラム生成部は、前記工具管理画面で2つ以上の工具が選択された場合、選択された工具の工具情報を、選択された工具の数に対応する数の前記定型プログラムのそれぞれに加えて連続的に配置することにより、前記MDIプログラムを生成する
In order to achieve the above object, a machine tool control device according to the present invention includes:
a tool management unit that generates and displays a tool management screen that displays a list of tools prepared for the machine tool;
an MDI program generation unit that calls a fixed form program, adds tool information of the tool selected on the tool management screen to the fixed form program, and generates an MDI (Manual Data Input) program;
with
When two or more tools are selected on the tool management screen, the MDI program generation unit adds tool information of the selected tools to each of the fixed programs corresponding to the number of selected tools. The MDI program is generated by arranging the .

上記目的を達成するため、本発明に係る工作機械制御装置は、
工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備え、
前記MDIプログラム生成部は、連続的に配置された前記定型プログラムの間に、オプショナルストップ指令を配置することにより、前記MDIプログラムを生成する
In order to achieve the above object, a machine tool control device according to the present invention includes:
a tool management unit that generates and displays a tool management screen that displays a list of tools prepared for the machine tool;
an MDI program generation unit that calls a fixed form program, adds tool information of the tool selected on the tool management screen to the fixed form program, and generates an MDI (Manual Data Input) program;
with
The MDI program generator generates the MDI program by placing an optional stop command between the continuously arranged fixed form programs .

Claims (7)

工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備えた工作機械制御装置。
a tool management unit that generates and displays a tool management screen that displays a list of tools prepared for the machine tool;
an MDI program generation unit that calls a fixed form program, adds tool information of the tool selected on the tool management screen to the fixed form program, and generates an MDI (Manual Data Input) program;
machine tool controller with
前記定型プログラムを記憶する記憶部をさらに備え、
前記MDIプログラム生成部は、前記記憶部から前記定型プログラムを読み出して前記MDIプログラムを生成する請求項1に記載の工作機械制御装置。
further comprising a storage unit that stores the fixed form program,
2. The machine tool control device according to claim 1, wherein the MDI program generation unit reads out the fixed form program from the storage unit and generates the MDI program.
前記MDIプログラム生成部は、前記定型プログラムの記述に応じた種別の工具情報を前記工具管理部から取得して、前記定型プログラムに加える請求項1または2に記載の工作機械制御装置。 3. The machine tool control device according to claim 1, wherein the MDI program generation unit acquires the type of tool information corresponding to the description of the fixed program from the tool management unit, and adds the information to the fixed program. 前記MDIプログラム生成部は、前記工具管理画面で2つ以上の工具が選択された場合、選択された工具の工具情報を、選択された工具の数に対応する数の前記定型プログラムのそれぞれに加えて連続的に配置することにより、前記MDIプログラムを生成する請求項1から3のいずれか1項に記載の工作機械制御装置。 When two or more tools are selected on the tool management screen, the MDI program generation unit adds tool information of the selected tools to each of the fixed programs corresponding to the number of selected tools. 4. The machine tool control device according to any one of claims 1 to 3, wherein the MDI program is generated by arranging the MDI program continuously. 前記MDIプログラム生成部は、連続的に配置された前記定型プログラムの間に、オプショナルストップ指令を配置することにより、前記MDIプログラムを生成する請求項1から4のいずれか1項に記載の工作機械制御装置。 5. The machine tool according to any one of claims 1 to 4, wherein the MDI program generator generates the MDI program by placing an optional stop command between the continuously arranged fixed form programs. Control device. 工作機械に用意された工具のリストを表示する工具管理画面を生成し、表示する工具管理ステップと、
定型プログラムを呼び出し、前記工具管理画面で選択された工具の工具情報を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成ステップと、
を含む工作機械制御方法。
a tool management step of generating and displaying a tool management screen displaying a list of tools prepared for the machine tool;
an MDI program generation step of calling a fixed form program and adding tool information of the tool selected on the tool management screen to the fixed form program to generate an MDI (Manual Data Input) program;
machine tool control method including;
工作機械に用意された工具のオフセット値を表示する工具オフセット画面を生成し、表示する工具管理部と、
定型プログラムを呼び出し、前記工具オフセット画面で選択された工具のオフセット値を定型プログラムに加えて、MDI(Manual Data Input)プログラムを生成するMDIプログラム生成部と、
を備えた工作機械制御装置。
a tool management unit that generates and displays a tool offset screen that displays the offset values of the tools prepared for the machine tool;
an MDI program generator that calls a fixed form program, adds the offset value of the tool selected on the tool offset screen to the fixed form program, and generates an MDI (Manual Data Input) program;
machine tool controller with
JP2021107005A 2021-06-28 2021-06-28 Machine tool control device and machine tool control method Active JP7032596B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021107005A JP7032596B1 (en) 2021-06-28 2021-06-28 Machine tool control device and machine tool control method
PCT/JP2022/024813 WO2023276801A1 (en) 2021-06-28 2022-06-22 Machine tool control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021107005A JP7032596B1 (en) 2021-06-28 2021-06-28 Machine tool control device and machine tool control method

Publications (2)

Publication Number Publication Date
JP7032596B1 JP7032596B1 (en) 2022-03-08
JP2023005227A true JP2023005227A (en) 2023-01-18

Family

ID=81212831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021107005A Active JP7032596B1 (en) 2021-06-28 2021-06-28 Machine tool control device and machine tool control method

Country Status (2)

Country Link
JP (1) JP7032596B1 (en)
WO (1) WO2023276801A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6215607A (en) * 1985-07-12 1987-01-24 Matsushita Electric Ind Co Ltd Numerical controller
JPH04184504A (en) * 1990-11-20 1992-07-01 Okuma Mach Works Ltd Numerical controller with automatic tool offsetting amount setting function
JPH06119028A (en) * 1992-10-07 1994-04-28 Hideaki Okaya Driving method for computer control working machine
JP2000066711A (en) * 1998-08-19 2000-03-03 Mori Seiki Co Ltd Numerical controller for machine tool
JP2002166335A (en) * 2000-11-30 2002-06-11 Toyoda Mach Works Ltd Console panel of numerical control device for machine tool with tool changing function
JP2004268189A (en) * 2003-03-07 2004-09-30 Fanuc Ltd Processing program making device
JP2016186686A (en) * 2015-03-27 2016-10-27 ファナック株式会社 Numerical control device including presentation function of program depending on situation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6215607A (en) * 1985-07-12 1987-01-24 Matsushita Electric Ind Co Ltd Numerical controller
JPH04184504A (en) * 1990-11-20 1992-07-01 Okuma Mach Works Ltd Numerical controller with automatic tool offsetting amount setting function
JPH06119028A (en) * 1992-10-07 1994-04-28 Hideaki Okaya Driving method for computer control working machine
JP2000066711A (en) * 1998-08-19 2000-03-03 Mori Seiki Co Ltd Numerical controller for machine tool
JP2002166335A (en) * 2000-11-30 2002-06-11 Toyoda Mach Works Ltd Console panel of numerical control device for machine tool with tool changing function
JP2004268189A (en) * 2003-03-07 2004-09-30 Fanuc Ltd Processing program making device
JP2016186686A (en) * 2015-03-27 2016-10-27 ファナック株式会社 Numerical control device including presentation function of program depending on situation

Also Published As

Publication number Publication date
WO2023276801A1 (en) 2023-01-05
JP7032596B1 (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US5544046A (en) Numerical control unit
US7949422B1 (en) Machine tool control system
WO2015097886A1 (en) Machining-information management device and tool-path generation device
US20140172148A1 (en) Method and system for programmable numerical control
JP5802377B2 (en) Tool changer for machine tools
JP2017191541A (en) Parameter setting device, parameter setting program, and parameter setting method
JP2021142613A (en) Tool management system, tool size measurement device, and terminal
WO2023276801A1 (en) Machine tool control device
JP2020015143A (en) Tool management system, tool management device and tool management method
US20200225642A1 (en) Method For Controlling A Machine Tool And Machine Tool
EP3872588B1 (en) Nc program conversion processing method and computer for conversion
US20220342381A1 (en) Managing a machine tool method, for example method of mapping toolpath data and machine code, a control device, and a machine tool
Goncalves et al. Universal parameter language for the programming of numerical controlled machines
US6957122B2 (en) Method for generating and visualizing a task-oriented step representation
KR100959240B1 (en) Automatic tooling system for cnc machine tool
JP2020061017A (en) Control system for machine tool
WO2023153206A1 (en) Information processing device, machine tool, and information processing program
JP7218459B1 (en) Information processing equipment, machine tools and information processing programs
JP4501244B2 (en) NC device for electric discharge machining and electric discharge machining method
EP3876050A1 (en) Processing support system
Choy Peng et al. Integration of CAD/CAM and spreadsheet data processing
KR20130110746A (en) Method for position correcting of tooling ball
KR100401635B1 (en) Method for check grammer a manufacture programming of numerical control type machine tool
CN116300537A (en) Clamp control configuration method, device, computer equipment and storage medium
JPH01216746A (en) Machining simulation device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210726

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20210726

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211026

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220224

R150 Certificate of patent or registration of utility model

Ref document number: 7032596

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150