WO2014002125A1 - Numerical control device - Google Patents
Numerical control device Download PDFInfo
- Publication number
- WO2014002125A1 WO2014002125A1 PCT/JP2012/004091 JP2012004091W WO2014002125A1 WO 2014002125 A1 WO2014002125 A1 WO 2014002125A1 JP 2012004091 W JP2012004091 W JP 2012004091W WO 2014002125 A1 WO2014002125 A1 WO 2014002125A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- variable
- arithmetic expression
- memory
- machining program
- arithmetic
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/18—Numerical 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 program data in numerical form
- G05B19/408—Numerical 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 program data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/18—Numerical 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 program data in numerical form
- G05B19/4155—Numerical 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 program data in numerical form characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35261—Use of mathematical expression, functional equation
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35263—Using variables, parameters in program, macro, parametrized instruction
Definitions
- the present invention relates to a numerical control (hereinafter referred to as NC) device, and more particularly to a setting configuration of an arithmetic expression used for a machining program.
- NC numerical control
- Patent Document 1 Japanese Unexamined Patent Publication No. 60-51906
- Patent Document 1 describes a technique that uses an arithmetic expression for a machining program of an NC apparatus.
- the conventional technology stores numerical data in variables. Further, the arithmetic expression described in the machining program is described by combining variables, four arithmetic operators (+, ⁇ , *, /), arithmetic functions (SIN, COS, TAN) and the like. In this configuration, for example, when the same calculation is performed at a plurality of locations, it is necessary to describe the same calculation formula at each location. For this reason, it takes time to input the machining program, and at the same time, there is a problem that an input error is likely to occur and the program becomes large.
- the conventional technique is configured to directly describe an arithmetic expression in a machining program and store numerical data in a variable used in the arithmetic expression, the calculation result of the arithmetic expression can be confirmed without executing the machining program. Can not.
- the machining program after inputting the arithmetic expression into the machining program, execute the machining program to check the operation result. If there is an error in the arithmetic expression, correct the program again and execute the machining program. There is a problem that it takes time to confirm the arithmetic expression.
- the present invention has been made to solve such a problem, and an object of the present invention is to obtain an NC apparatus that simplifies the description of arithmetic expressions in a machining program.
- Another object of the present invention is to obtain an NC device that can easily and reliably change an arithmetic expression in a machining program.
- An NC apparatus includes a variable edit setting mechanism for setting an arithmetic expression as a variable and an arithmetic expression set by the variable edit setting mechanism in a numerical control apparatus capable of executing a machining program in which a variable command is described. And a memory to be stored.
- variable editing setting mechanism may be configured to take out an arithmetic expression stored as a variable from the memory, rewrite a part or all of the arithmetic expression, and store the arithmetic expression in the memory again. It is a thing.
- the NC device includes an arithmetic expression analyzing mechanism that immediately calculates an arithmetic expression when the arithmetic expression is set as a variable by the variable editing setting mechanism in the NC apparatus;
- a variable display mechanism for displaying the set arithmetic expression together with a solution calculated by the arithmetic expression analysis mechanism is provided.
- the arithmetic expression corresponding to the variable is extracted from the memory and described in the machining program.
- a variable substitution mechanism that replaces the obtained variable with the arithmetic expression extracted from the memory.
- the arithmetic expression in the machining program can be substituted with a variable, so that the description of the arithmetic expression in the machining program can be simplified.
- the arithmetic expression once set to the variable can be rewritten and set again as a part or all of the arithmetic expression, so that the arithmetic expression stored in the variable can be efficiently changed. is there.
- the solution of the arithmetic expression is immediately displayed, so that it is possible to efficiently check the arithmetic expression and the calculation result of the arithmetic expression without operating the machining program. effective.
- an arithmetic expression can be set for the variable, and the variable described in the machining program is replaced with the arithmetic expression set for the variable. Therefore, when changing the arithmetic expression, the variable is set to the variable. By simply changing the calculation formula in one place, the changed calculation formula will be applied to all places where the calculation formula described in the machining program is replaced with a variable, and the calculation formula in the machining program will be changed. Can be easily and reliably performed.
- FIG. 1 is a block diagram showing a configuration of an NC apparatus according to Embodiment 1 of the present invention.
- the variable editing setting mechanism 2 stores an arithmetic expression or a numerical value input from the key input device 1 as a variable in the memory 3.
- the variable editing setting mechanism 2 also has an editing function that takes out arithmetic expressions and numerical values that are variables stored in the memory 3, rewrites a part of these arithmetic expressions and numerical values, and stores them again in the memory 3.
- the arithmetic expression analyzing mechanism 4a When the arithmetic expression is stored in the memory 3 from the variable editing setting mechanism 2, the arithmetic expression analyzing mechanism 4a immediately takes out the arithmetic expression stored in the variable in the memory 3, calculates the arithmetic expression, and calculates the solution. To do.
- the variable display mechanism 5 arranges the arithmetic expression stored in the variable of the memory 3 and the solution calculated by the arithmetic expression analysis mechanism 4 a, creates the variable display screen data 26 of FIG. 2, and displays it on the display device 6. Details of this will be described later.
- variable substitution mechanism 8 extracts the arithmetic expression corresponding to the variable from the memory 3 and extracts the variable described in the machining program from the memory 3. Then, the data is sent to the arithmetic expression analyzing mechanism 4b. If the variable described in the machining program stored in the memory 7 is a numerical value, the numerical value corresponding to the variable is extracted from the memory 3, and the variable described in the machining program is replaced with the numerical value extracted from the memory 3. The data is sent to the arithmetic expression analysis mechanism 4b.
- the arithmetic expression analysis mechanism 4b is driven through the servo control unit 10 after being sent to the pulse distribution processing unit 9.
- the data sent from the variable substitution mechanism 8 is an arithmetic expression including a numeric variable
- the numeric value corresponding to the numeric variable is extracted from the memory 3
- the data sent from the variable substitution mechanism 8 is a numeric variable.
- the key input device 1, the memories 3 and 7, the display device 6, the servo control unit 10, and the servo motor 11 are mainly configured by hardware, and the variable editing setting mechanism 2, arithmetic expression
- the analysis mechanisms 4a and 4b, the variable display mechanism 5, the pulse distribution processing unit, and the variable replacement mechanism 8 are mainly configured by software.
- variable edit setting function 2 is an area for displaying a variable number
- 21 is an area for displaying numerical data or an arithmetic expression stored in the variable
- 22 is a variable number setting unit for a variable for storing the numerical data or the arithmetic expression
- Reference numeral 23 denotes a setting unit for numerical values or arithmetic expressions stored in variables.
- a key input from the key input device 1 enters a variable number setting unit 22 and a numerical value or arithmetic expression setting unit 23.
- the numerical value or the arithmetic expression input to the setting unit 23 passes through the variable setting mechanism 2 and is stored in the data area (memory 3) of the variable number input to the setting unit 22. Is done.
- the arithmetic expression stored in the memory 3 is immediately calculated by the arithmetic expression analysis mechanism 4a, and the variable display mechanism 5 displays the variable display screen data 26 including the variable number, the arithmetic expression solution 24, and the arithmetic expression 25. It is created and displayed on the display device 6.
- the variable display mechanism 5 creates variable display screen data 28 based on the numerical data and displays it on the display device 6.
- Step 2 the operations of the variable substitution mechanism 8 and the arithmetic expression analysis mechanism 4b will be described with reference to FIG.
- the machining program stored in the memory 7 is extracted for one word at Step 1.
- # 500 + 30 corresponds.
- Step 2 the presence / absence of a variable is checked.
- the variable corresponds to # 500 in the example of FIG. 3, and indicates a portion where numerical character strings are arranged after #. If it is determined in Step 2 that there is a variable, the process proceeds to Step 3 to check whether the data of the variable stored in the memory 3 is an arithmetic expression or numerical data.
- Step 4 If the data stored in the variable of the memory 3 is an arithmetic expression, the process proceeds to Step 4, and the variable part # 500 is replaced with the arithmetic expression [# 100 * COS [# 101]] stored in the memory 3, and [# 100 * After creating a character string of COS [# 101]] + 30., Proceed to Step 5.
- Step 5 After replacing the variable parts # 100 and # 101 of [# 100 * COS [# 101]] + 30.
- the arithmetic expression is calculated in Step 6. Find the solution 39.39692.
- Step 7 an error in the arithmetic expression is determined. If there is no error, the analysis for one word is completed. If it is determined in Step 7 that there is an error, error processing is performed. Note that Step 1 to Step 4 are operations of the variable substitution mechanism 8, and Step 5 to Step 7 are operations of the arithmetic expression analysis mechanisms 4a and 4b. Thereafter, the processing for one block of the machining program is analyzed by repeating the operation flow of FIG. 3 for all the word data described in the machining program 1 block.
- the arithmetic expression can be set as a variable, and the variable in the machining program is configured to perform mathematical analysis after replacing the arithmetic expression set in the variable. It is possible to describe with one, and there is an effect that the program creation work can be reduced.
- an arithmetic expression can be set for a variable, and the arithmetic expression is calculated immediately to calculate a solution, and the arithmetic expression and the solution are displayed, so the calculation result of the arithmetic expression can be checked immediately. There is an effect that can be done.
- the calculation formula can be set as a variable, and the set calculation formula can be rewritten.
- the variable in the machining program is configured to perform mathematical analysis after replacing the calculation formula set in the variable. Therefore, even when the same arithmetic expression is used for one or more machining programs, it is possible to change the arithmetic expressions for all machining programs by simply changing the arithmetic expression set for the variable. There is an effect that the expression change work can be reduced.
- the numerical control device is suitable for use when it is desired to simplify the description of the arithmetic expression in the machining program.
- variable display mechanism 1 key input device, 2 variable setting editing mechanism, 3 memory, 4a, 4b arithmetic expression analysis mechanism, 5 variable display mechanism, 6 display device, 7 memory, 8 variable substitution mechanism, 20 variable number display area, 21 variables are set Data (numerical data or arithmetic expression) display area, 22 variable number setting section, 23 numerical value or arithmetic expression setting section, 24 arithmetic expression solution, 25 arithmetic expressions, 26, 28 variable display screen data.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
Abstract
Description
この発明は数値制御(Numerical Control;以下NCという)装置に係り、特に加工プログラムに用いる演算式の設定構成に関するものである。 The present invention relates to a numerical control (hereinafter referred to as NC) device, and more particularly to a setting configuration of an arithmetic expression used for a machining program.
NC装置の加工プログラムに演算式を用いる技術が、特開昭60-51906号公報(特許文献1)に記されている。
このNC装置の加工プログラムに演算式を用いる技術は、設定表示部から加工プログラムとして演算式(Di=DjSINDk)を入力すると、演算式処理部で、記憶部に記憶された「1000」のデータを変数Djに挿入するとともに、記憶部に記憶された「30」のデータを変数Dkに挿入して演算を行う。そしてこの演算によりDi=500の結果を得、この結果を出力部に出力して機械を動作させるものである。
Japanese Unexamined Patent Publication No. 60-51906 (Patent Document 1) describes a technique that uses an arithmetic expression for a machining program of an NC apparatus.
In this technique using an arithmetic expression for the machining program of the NC device, when an arithmetic expression (D i = D j SIND k ) is input as a machining program from the setting display section, the arithmetic expression processing section stores “1000” stored in the storage section. Is inserted into the variable D j and the data “30” stored in the storage unit is inserted into the variable D k to perform the calculation. Then, a result of D i = 500 is obtained by this calculation, and this result is output to the output unit to operate the machine.
従来技術は変数に数値データを格納する構成である。また、加工プログラムに記述する演算式は変数と四則演算子(+、-、*、/)や算術関数(SIN、COS、TAN)などを組み合わせて記述している。この構成は、例えば、同じ演算を複数の個所で行う場合、同じ演算式をそれぞれの箇所に記述する必要がある。このため、加工プログラムの入力に手間がかかると同時に、入力の間違いも起こりやすく、プログラムも大きくなるという課題があった。 The conventional technology stores numerical data in variables. Further, the arithmetic expression described in the machining program is described by combining variables, four arithmetic operators (+, −, *, /), arithmetic functions (SIN, COS, TAN) and the like. In this configuration, for example, when the same calculation is performed at a plurality of locations, it is necessary to describe the same calculation formula at each location. For this reason, it takes time to input the machining program, and at the same time, there is a problem that an input error is likely to occur and the program becomes large.
また、従来技術は演算式を加工プログラムに直接記述し、その演算式に使用する変数に数値データを格納する構成のため、演算式の計算結果は、加工プログラムを実行しなければ確認することができない。すなわち、演算式の動作を確認する場合、加工プログラムに演算式を入力した後、加工プログラムを実行して演算結果を確認し、演算式に間違いがあれば、再びプログラムの訂正、加工プログラムの実行と確認という手順が必要となり、演算式の確認に手間がかかるという課題があった。 In addition, since the conventional technique is configured to directly describe an arithmetic expression in a machining program and store numerical data in a variable used in the arithmetic expression, the calculation result of the arithmetic expression can be confirmed without executing the machining program. Can not. In other words, when checking the operation of an arithmetic expression, after inputting the arithmetic expression into the machining program, execute the machining program to check the operation result. If there is an error in the arithmetic expression, correct the program again and execute the machining program. There is a problem that it takes time to confirm the arithmetic expression.
この発明はかかる問題点を解決するためになされたもので、加工プログラムにおける演算式の記述が簡単になるNC装置を得ることを目的としている。 The present invention has been made to solve such a problem, and an object of the present invention is to obtain an NC apparatus that simplifies the description of arithmetic expressions in a machining program.
またこの発明は、加工プログラム中の演算式の変更が簡単かつ確実に行えるNC装置を得ることを目的としている。 Another object of the present invention is to obtain an NC device that can easily and reliably change an arithmetic expression in a machining program.
この発明に係るNC装置は、変数指令が記述された加工プログラムを実行可能な数値制御装置において、変数として演算式を設定する変数編集設定機構と、この変数編集設定機構により設定された演算式を記憶するメモリとを備える構成としたものである。 An NC apparatus according to the present invention includes a variable edit setting mechanism for setting an arithmetic expression as a variable and an arithmetic expression set by the variable edit setting mechanism in a numerical control apparatus capable of executing a machining program in which a variable command is described. And a memory to be stored.
またこの発明に係るNC装置は、前記変数編集設定機構を、変数として格納された演算式を前記メモリから取り出して、この演算式の一部またはすべてを書換えて、再び該メモリに格納するものとしたものである。 In the NC device according to the present invention, the variable editing setting mechanism may be configured to take out an arithmetic expression stored as a variable from the memory, rewrite a part or all of the arithmetic expression, and store the arithmetic expression in the memory again. It is a thing.
またこの発明に係るNC装置は、前記NC装置において、前記変数編集設定機構により変数として演算式が設定されたとき、この演算式を直ちに計算して解を算出する演算式解析機構と、変数として設定した演算式を、前記演算式解析機構によって算出した解とともに表示する変数表示機構とを備える構成としたものである。 Further, the NC device according to the present invention includes an arithmetic expression analyzing mechanism that immediately calculates an arithmetic expression when the arithmetic expression is set as a variable by the variable editing setting mechanism in the NC apparatus; A variable display mechanism for displaying the set arithmetic expression together with a solution calculated by the arithmetic expression analysis mechanism is provided.
更にまた、この発明に係るNC装置は、前記NC装置において、加工プログラム中に記述された変数が演算式である場合、その変数に対応する演算式を前記メモリから取り出し、前記加工プログラム中に記述された変数を、前記メモリから取り出した演算式に置き換える変数置換機構を備える構成としたものである。 Furthermore, in the NC device according to the present invention, when the variable described in the machining program is an arithmetic expression in the NC device, the arithmetic expression corresponding to the variable is extracted from the memory and described in the machining program. And a variable substitution mechanism that replaces the obtained variable with the arithmetic expression extracted from the memory.
この発明によれば、加工プログラム中の演算式が変数で代替表記できるので、加工プログラムにおける演算式の記述が簡単になるという効果がある。 According to the present invention, the arithmetic expression in the machining program can be substituted with a variable, so that the description of the arithmetic expression in the machining program can be simplified.
またこの発明によれば、一度変数に設定した演算式は、その一部またはすべてを書換えて、再び変数に設定することができるので、変数に格納した演算式の変更が効率よく行えるという効果がある。 In addition, according to the present invention, the arithmetic expression once set to the variable can be rewritten and set again as a part or all of the arithmetic expression, so that the arithmetic expression stored in the variable can be efficiently changed. is there.
またこの発明によれば、変数に演算式を設定すると、ただちに演算式の解が表示されるので、加工プログラムの運転をすることなく、演算式と演算式の計算結果の確認が効率よく行えるという効果がある。 Further, according to the present invention, when an arithmetic expression is set to a variable, the solution of the arithmetic expression is immediately displayed, so that it is possible to efficiently check the arithmetic expression and the calculation result of the arithmetic expression without operating the machining program. effective.
更にまた、この発明によれば、変数に演算式が設定でき、かつ加工プログラム中に記述された変数を、変数に設定した演算式に置き換えるので、演算式の変更を行う場合、変数に設定した演算式を1箇所変更するだけで、加工プログラム中に記述された演算式を変数で代替表記した箇所はすべてに変更後の演算式が適用されることになり、加工プログラム中の演算式の変更が簡単かつ確実に行えるという効果がある。 Furthermore, according to the present invention, an arithmetic expression can be set for the variable, and the variable described in the machining program is replaced with the arithmetic expression set for the variable. Therefore, when changing the arithmetic expression, the variable is set to the variable. By simply changing the calculation formula in one place, the changed calculation formula will be applied to all places where the calculation formula described in the machining program is replaced with a variable, and the calculation formula in the machining program will be changed. Can be easily and reliably performed.
実施例1.
以下、この発明の実施例1を図1~図3に基づいて説明する。
図1はこの発明の実施例1に係るNC装置の構成を示すブロック図である。
図1において、変数編集設定機構2は、キー入力装置1から入力された演算式や数値を変数としてメモリ3に格納する。またこの変数編集設定機構2は、メモリ3に格納された変数である演算式や数値を取り出し、これらの演算式や数値の一部を書換えて、再びメモリ3に格納する編集機能も有する。
Example 1.
A first embodiment of the present invention will be described below with reference to FIGS.
FIG. 1 is a block diagram showing a configuration of an NC apparatus according to
In FIG. 1, the variable
演算式解析機構4aは、変数編集設定機構2からメモリ3に演算式が格納されると、直ちにメモリ3の変数に格納された演算式を取り出して、演算式を計算して、その解を算出する。変数表示機構5は、メモリ3の変数に格納された演算式と演算式解析機構4aが算出した解をならべて、図2の変数表示画面データ26を作成し、表示装置6に表示する。なおこの詳細は後述する。
When the arithmetic expression is stored in the
変数置換機構8は、メモリ7に格納された加工プログラムに記述した変数が演算式である場合、その変数に対応する演算式をメモリ3から取り出し、加工プログラムに記述した変数を、メモリ3から取り出した演算式に置き換えた後、そのデータを演算式解析機構4bに送る。
またメモリ7に格納された加工プログラムに記述した変数が数値である場合、その変数に対応する数値をメモリ3から取り出し、加工プログラムに記述した変数を、メモリ3から取り出した数値に置き換えた後、そのデータを演算式解析機構4bに送る。
When the variable described in the machining program stored in the
If the variable described in the machining program stored in the
演算式解析機構4bは、変数置換機構8より送られたデータが数値の変数である場合(変数置換機構8より送られたデータが数値の変数を含む演算式でない場合)には、そのデータをパルス分配処理部9に送り、サーボ制御部10を通じてサーボモータ11を駆動する。
また変数置換機構8より送られたデータが数値の変数を含む演算式である場合、その数値の変数に対応する数値をメモリ3から取り出し、変数置換機構8より送られたデータが数値の変数を含む演算式における数値の変数を、メモリ3から取り出した数値に置き換えた後、その演算式を演算する。なおこの詳細は後述する。
そしてその結果を、パルス分配処理部9に送り、サーボ制御部10を通じてサーボモータ11を駆動する。
また、この実施例1において、キー入力装置1、メモリ3、7、表示装置6、サーボ制御部10及びサーボモータ11は主にハードウエアにより構成されており、また変数編集設定機構2、演算式解析機構4a、4b、変数表示機構5、パルス分配処理部及び変数置換機構8は主にソフトウエアにより構成されている。
When the data sent from the variable substitution mechanism 8 is a numerical variable (when the data sent from the variable substitution mechanism 8 is not an arithmetic expression including a numeric variable), the arithmetic
When the data sent from the variable substitution mechanism 8 is an arithmetic expression including a numeric variable, the numeric value corresponding to the numeric variable is extracted from the
The result is sent to the pulse distribution processing unit 9 and the
In the first embodiment, the
次に図2(この発明の実施例1に係るNC装置の変数表示画面を示す図)を用いて、変数編集設定機能2、演算式解析機構4a及び変数表示機構5の動作を説明する。
なお、図2において、20は変数番号を表示する領域、21は変数に格納されている数値データまたは演算式を表示する領域、22は数値データまたは演算式を格納する変数の変数番号設定部、23は変数に格納する数値または演算式の設定部である。
Next, the operations of the variable
In FIG. 2, 20 is an area for displaying a variable number, 21 is an area for displaying numerical data or an arithmetic expression stored in the variable, 22 is a variable number setting unit for a variable for storing the numerical data or the arithmetic expression,
キー入力装置1から入力したキーは変数番号設定部22と数値または演算式の設定部23に入る。つぎに、入力を確定するキーが押下されると、設定部23に入力した数値または演算式は変数設定機構2を通り、設定部22に入力された変数番号のデータ領域(メモリ3)に格納される。
メモリ3に格納された演算式は、演算式解析機構4aによって直ちに解が算出され、変数表示機構5で、変数番号と演算式の解24と演算式25とをならべた変数表示画面データ26を作成し、表示装置6に表示する。
メモリ3に格納されたデータが数値データのときは、変数表示機構5が数値データをもとに変数表示画面データ28を作成し、表示装置6に表示する。
A key input from the
The arithmetic expression stored in the
When the data stored in the
次に図3を用いて変数置換機構8と演算式解析機構4bの動作を説明する。
メモリ7に格納された加工プログラムは、Step1で1ワード分が取り出される。図3の例では #500+30.が相当する。
次に、Step2で変数の有無を調べる。変数は図3の例では#500 に相当し、#の後ろに数値文字列が並ぶ部分を指す。
Step2において、変数が有りと判定されると、Step3に進み、メモリ3に格納された変数のデータが演算式か数値データかを調べる。
Next, the operations of the variable substitution mechanism 8 and the arithmetic
The machining program stored in the
Next, in
If it is determined in
メモリ3の変数に格納されたデータが演算式であればStep4に進み、変数部分#500をメモリ3に格納された演算式 [#100*COS[#101]] と置き換えて、[#100*COS[#101]]+30. の文字列を作成後、Step5に進む。
Step3でメモリ3に格納された変数のデータが数値データと判定された時は、直接Step5に進む。
Step5では[#100*COS[#101]]+30. の変数部分#100、#101をそれぞれメモリ3から取り出した数値データ10.、20.に置き換えた後、Step6で演算式を計算し、解 39.39692を求める。
If the data stored in the variable of the
When it is determined in
In
Step7では演算式の誤りを判定し、誤りがなければ1ワード分の解析が終了する。また、Step7で誤りありと判定されたときはエラー処理を行う。
なお、Step1からStep4は変数置換機構8の動作、Step5からStep7は演算式解析機構4aおよび4bの動作である。
以降、加工プログラム1ブロックに記述されたすべてのワードデータに対し、図3の動作フローの処理を繰り返すことで、加工プログラム1ブロック分の解析を行う。
In
Note that
Thereafter, the processing for one block of the machining program is analyzed by repeating the operation flow of FIG. 3 for all the word data described in the
この実施例によれば、演算式を変数に設定でき、加工プログラム中の変数は、変数に設定した演算式に置換した後で数式解析を行うように構成したので、加工プログラムの演算式は変数1つで記述できるようになり、プログラム作成作業が軽減できるという効果がある。 According to this embodiment, the arithmetic expression can be set as a variable, and the variable in the machining program is configured to perform mathematical analysis after replacing the arithmetic expression set in the variable. It is possible to describe with one, and there is an effect that the program creation work can be reduced.
また変数に演算式を設定できるように構成し、かつその演算式をただちに計算して解を算出し、演算式とその解を表示するように構成したので、演算式の計算結果が即座に確認できるという効果がある。 In addition, it is configured so that an arithmetic expression can be set for a variable, and the arithmetic expression is calculated immediately to calculate a solution, and the arithmetic expression and the solution are displayed, so the calculation result of the arithmetic expression can be checked immediately. There is an effect that can be done.
更にまた、演算式を変数に設定でき、設定した演算式を書き換えができように構成し、加工プログラム中の変数は、変数に設定した演算式に置換した後で数式解析を行うように構成したので、1つ、もしくは複数の加工プログラムに同じ演算式を用いた場合においても、変数に設定した演算式を変更するだけで、すべての加工プログラムの演算式が変更できるようになり、プログラムの演算式変更作業が軽減できるという効果がある。 Furthermore, the calculation formula can be set as a variable, and the set calculation formula can be rewritten. The variable in the machining program is configured to perform mathematical analysis after replacing the calculation formula set in the variable. Therefore, even when the same arithmetic expression is used for one or more machining programs, it is possible to change the arithmetic expressions for all machining programs by simply changing the arithmetic expression set for the variable. There is an effect that the expression change work can be reduced.
この発明に係る数値制御装置は、加工プログラムにおける演算式の記述を簡単にしたい場合に使用するのに適している。 The numerical control device according to the present invention is suitable for use when it is desired to simplify the description of the arithmetic expression in the machining program.
1 キー入力装置、2 変数設定編集機構、3 メモリ、4a、4b 演算式解析機構、5 変数表示機構、6 表示装置、7 メモリ、8 変数置換機構、20 変数番号表示領域、21 変数に設定されたデータ(数値データまたは演算式)の表示領域、22 変数番号設定部、23 数値または演算式の設定部、24 演算式の解、25 演算式、26、28 変数表示画面データ。 1 key input device, 2 variable setting editing mechanism, 3 memory, 4a, 4b arithmetic expression analysis mechanism, 5 variable display mechanism, 6 display device, 7 memory, 8 variable substitution mechanism, 20 variable number display area, 21 variables are set Data (numerical data or arithmetic expression) display area, 22 variable number setting section, 23 numerical value or arithmetic expression setting section, 24 arithmetic expression solution, 25 arithmetic expressions, 26, 28 variable display screen data.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2012/004091 WO2014002125A1 (en) | 2012-06-25 | 2012-06-25 | Numerical control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2012/004091 WO2014002125A1 (en) | 2012-06-25 | 2012-06-25 | Numerical control device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014002125A1 true WO2014002125A1 (en) | 2014-01-03 |
Family
ID=49782369
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/JP2012/004091 Ceased WO2014002125A1 (en) | 2012-06-25 | 2012-06-25 | Numerical control device |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2014002125A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109918334A (en) * | 2014-03-19 | 2019-06-21 | 卡西欧计算机株式会社 | Electronic device, variable display control method, and recording medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6051906A (en) * | 1983-09-01 | 1985-03-23 | Mitsubishi Electric Corp | Numerical control device |
| JPS62256104A (en) * | 1986-04-30 | 1987-11-07 | Brother Ind Ltd | Nc data producing device for numerical control |
| JPH03168805A (en) * | 1989-11-29 | 1991-07-22 | Okuma Mach Works Ltd | Numerical controller having data operation input function |
| JPH05134734A (en) * | 1991-09-17 | 1993-06-01 | Mitsubishi Electric Corp | Numerical controller and control method therefor |
| JPH05228788A (en) * | 1992-02-18 | 1993-09-07 | Mitsubishi Electric Corp | Working machine control device and method thereof |
| JP2001166808A (en) * | 1999-12-09 | 2001-06-22 | Nisshinbo Ind Inc | Processing data creation device, creation method, and medium |
| JP2006018697A (en) * | 2004-07-02 | 2006-01-19 | Okuma Corp | Numerical control device that can call programs written in script language |
-
2012
- 2012-06-25 WO PCT/JP2012/004091 patent/WO2014002125A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6051906A (en) * | 1983-09-01 | 1985-03-23 | Mitsubishi Electric Corp | Numerical control device |
| JPS62256104A (en) * | 1986-04-30 | 1987-11-07 | Brother Ind Ltd | Nc data producing device for numerical control |
| JPH03168805A (en) * | 1989-11-29 | 1991-07-22 | Okuma Mach Works Ltd | Numerical controller having data operation input function |
| JPH05134734A (en) * | 1991-09-17 | 1993-06-01 | Mitsubishi Electric Corp | Numerical controller and control method therefor |
| JPH05228788A (en) * | 1992-02-18 | 1993-09-07 | Mitsubishi Electric Corp | Working machine control device and method thereof |
| JP2001166808A (en) * | 1999-12-09 | 2001-06-22 | Nisshinbo Ind Inc | Processing data creation device, creation method, and medium |
| JP2006018697A (en) * | 2004-07-02 | 2006-01-19 | Okuma Corp | Numerical control device that can call programs written in script language |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109918334A (en) * | 2014-03-19 | 2019-06-21 | 卡西欧计算机株式会社 | Electronic device, variable display control method, and recording medium |
| CN109918334B (en) * | 2014-03-19 | 2023-12-19 | 卡西欧计算机株式会社 | Electronic equipment, variable display control method, and recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104160345B (en) | Numerical control device | |
| TWI541622B (en) | Apparatus for supporting the compilation of a sequence program | |
| US10031512B2 (en) | Apparatus for generating and editing NC program | |
| CN106843141B (en) | Numerical control device | |
| JP2009009462A (en) | Sequence program editing apparatus | |
| JPWO2016051545A1 (en) | Machine tool controller | |
| JPWO2015097887A1 (en) | Machine tool controller | |
| US20120072777A1 (en) | Debugging device, debugging method, and computer program for sequence program | |
| US20210117186A1 (en) | Programing support device, programing support system, and programing support method | |
| US20150227348A1 (en) | Development support device and development support program | |
| JPWO2014118918A1 (en) | Numerical controller | |
| JP3805776B2 (en) | Graphical programming device and programmable display | |
| KR102357029B1 (en) | The combined process registration apparatus and method using interactive program in computer numarical control machine tools | |
| WO2014002125A1 (en) | Numerical control device | |
| US10656611B2 (en) | Programmable controller | |
| US20160179088A1 (en) | Numerical controller | |
| JPWO2019207679A1 (en) | Monitor support device, monitor support method, and monitor support program | |
| WO2010044189A1 (en) | Apparatus and method for controlling machine tool | |
| WO2015030722A1 (en) | Method and apparatus for handling multiple language representations of computer code | |
| JP2016200872A (en) | Control program creation device, control program debug method | |
| WO2020189142A1 (en) | Control system, control method, and control program | |
| JPH10247142A (en) | Process control program programming system and programming method | |
| JP6213400B2 (en) | Monitoring device | |
| JP2007133787A (en) | Processing apparatus and processing method | |
| JP5224926B2 (en) | Engineering tools |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12879746 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 12879746 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: JP |