JP2013041392A - Numerical controller and processing program generation method - Google Patents

Numerical controller and processing program generation method Download PDF

Info

Publication number
JP2013041392A
JP2013041392A JP2011177473A JP2011177473A JP2013041392A JP 2013041392 A JP2013041392 A JP 2013041392A JP 2011177473 A JP2011177473 A JP 2011177473A JP 2011177473 A JP2011177473 A JP 2011177473A JP 2013041392 A JP2013041392 A JP 2013041392A
Authority
JP
Japan
Prior art keywords
axis
input
setting
rotation
machining
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.)
Pending
Application number
JP2011177473A
Other languages
Japanese (ja)
Inventor
Ryosuke Yamashita
亮輔 山下
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011177473A priority Critical patent/JP2013041392A/en
Publication of JP2013041392A publication Critical patent/JP2013041392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

PROBLEM TO BE SOLVED: To provide a numerical controller that can flexibly deal with the change of a shaft name.SOLUTION: A numerical controller accepts, in addition to the input of a processed shape through a processing setting unit, the set content for a revolving shaft to process the processed shape, in which a table selection unit for specifying the revolving shaft to be set and an auxiliary unit for describing the set content without specifying the revolving shaft to be set are accepted separately.

Description

本発明は、工作機械を動作させる指令値を出力する数値制御装置および前記指令値を生成するための加工プログラムを生成する加工プログラム生成方法に関する。   The present invention relates to a numerical controller that outputs a command value for operating a machine tool and a machining program generation method that generates a machining program for generating the command value.

数値制御装置は、一般に、ISOフォーマットに準拠して記述されたNCデータ(加工プログラム)に基づいて工作機械に内蔵されるサーボアンプに供給する指令値を生成する。一方、数値制御の対象となる工作機械の回転テーブルには各々の軸名称(A、B、C)が存在する。したがって、数値制御装置が回転テーブルを動作させるためには、軸名称をNCデータ上で指定しなければならない。例えば特許文献1に開示されている技術によれば、NCデータ上で軸を間接アドレス指定することができるようになっている。   The numerical control device generally generates a command value to be supplied to a servo amplifier built in a machine tool based on NC data (machining program) described in conformity with the ISO format. On the other hand, each axis name (A, B, C) exists in the rotary table of the machine tool to be numerically controlled. Therefore, in order for the numerical controller to operate the rotary table, the axis name must be specified on the NC data. For example, according to the technique disclosed in Patent Document 1, an axis can be indirectly addressed on NC data.

また、近年、加工形状、ツールなどを記述した入力プログラム(以下、対話プログラム)に基づいてNCデータを自動生成する対話式の数値制御装置がある。当該対話式の数値制御装置は、ユーザが軸名称に該当する設定項目に値を入力することで、動作させる軸に対するNCデータを自動的に生成することができる。   In recent years, there is an interactive numerical control apparatus that automatically generates NC data based on an input program (hereinafter referred to as an interactive program) describing a machining shape, a tool, and the like. The interactive numerical control apparatus can automatically generate NC data for the axis to be operated when a user inputs a value to a setting item corresponding to the axis name.

特開2004−185397号公報JP 2004-185397 A

ここで、ワークを加工する複数の回転テーブルが着脱可能な工作機械を駆動したい場合、回転テーブルの個数や回転テーブルの向きが変化することで、加工対象の軸名称が着脱前後で変化することがある。軸名称が変化した場合、今まで使用していた対話プログラムは、指令すべき軸名称が異なるため使用できなくなるという問題が生じる。   Here, when it is desired to drive a machine tool in which a plurality of rotary tables for machining a workpiece can be attached and detached, the name of the axis to be machined may change before and after the attachment and detachment due to changes in the number of rotary tables and the orientation of the rotary table. is there. When the axis name changes, there is a problem that the interactive program used until now cannot be used because the axis name to be commanded is different.

本発明は、上記に鑑みてなされたものであって、軸名称の変更に柔軟に対応できる対話式の数値制御装置および加工プログラム生成方法を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to obtain an interactive numerical control device and a machining program generation method that can flexibly cope with a change in axis name.

上述した課題を解決し、目的を達成するために、本発明は、対話的に加工形状の入力を受け付けて、受け付けた加工形状を加工するための加工プログラムを生成する数値制御装置であって、前記加工形状の入力のほかに、前記加工形状を加工する回転軸に対する設定内容を、前記設定内容の設定対象となる回転軸を指定する軸指定入力と、前記設定内容を前記設定対象の回転軸を指定することなく記述した軸設定入力と、に分けて受け付ける、ことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention is a numerical control device that interactively accepts an input of a machining shape and generates a machining program for machining the accepted machining shape, In addition to the input of the machining shape, the setting content for the rotation axis for machining the machining shape, the axis designation input for designating the rotation axis to be set for the setting content, and the setting content for the rotation axis for the setting target It is characterized in that it is received separately in the axis setting input described without designating.

本発明によれば、ユーザが軸指定入力を変更するだけで軸名称を変えた加工プログラムを生成することができるので、軸名称の変更に柔軟に対応できるという効果を奏する。   According to the present invention, it is possible to generate a machining program in which the axis name is changed only by changing the axis designation input by the user, so that it is possible to flexibly cope with the change of the axis name.

図1−1は、工作機械の構成例を説明する図である。FIG. 1-1 is a diagram illustrating a configuration example of a machine tool. 図1−2は、工作機械の構成例を説明する図である。FIG. 1-2 is a diagram illustrating a configuration example of a machine tool. 図1−3は、工作機械の構成例を説明する図である。FIG. 1C is a diagram illustrating a configuration example of a machine tool. 図1−4は、工作機械の構成例を説明する図である。FIG. 1-4 is a diagram illustrating a configuration example of a machine tool. 図1−5は、工作機械の構成例を説明する図である。1-5 is a diagram illustrating a configuration example of a machine tool. 図1−6は、工作機械の構成例を説明する図である。FIGS. 1-6 is a figure explaining the structural example of a machine tool. 図1−7は、工作機械の構成例を説明する図である。FIGS. 1-7 is a figure explaining the structural example of a machine tool. 図2は、本発明の実施の形態の数値制御装置の構成を示す図である。FIG. 2 is a diagram showing the configuration of the numerical controller according to the embodiment of the present invention. 図3は、ファームウェアプログラムによる処理の概要を説明する図である。FIG. 3 is a diagram for explaining an outline of processing by the firmware program. 図4は、対話プログラムを構成する機能ユニットを説明する図である。FIG. 4 is a diagram for explaining the functional units constituting the interactive program. 図5は、本発明の実施の形態の数値制御装置の動作を説明するフローチャートである。FIG. 5 is a flowchart for explaining the operation of the numerical controller according to the embodiment of the present invention. 図6は、対話プログラムの具体例を示す図である。FIG. 6 is a diagram showing a specific example of the dialogue program.

以下に、本発明にかかる数値制御装置および指令生成方法の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a numerical control device and a command generation method according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態.
図1−1〜図1−7は、本発明の実施形態の数値制御装置が接続される工作機械の構成例を説明する図である。JIS規格によれば、X軸周りの回転軸はA軸、Y軸周りの回転軸はB軸、Z軸周りの回転軸はC軸という軸名称が付くように定められている。但し、同一軸方向に回転軸が2軸以上付く場合は、予め定められている軸名称以外の名称を割り当てることができる。本発明の実施の形態の数値制御装置は、回転テーブル(軸)を所望のように着脱可能な工作機械を接続対象とする。
Embodiment.
FIGS. 1-1 to 1-7 are diagrams illustrating a configuration example of a machine tool to which a numerical control device according to an embodiment of the present invention is connected. According to the JIS standard, the rotation axis around the X axis is designated as the A axis, the rotation axis around the Y axis as the B axis, and the rotation axis around the Z axis as the C axis. However, when two or more rotation axes are attached in the same axis direction, a name other than a predetermined axis name can be assigned. The numerical control device according to the embodiment of the present invention is connected to a machine tool in which a rotary table (shaft) can be attached and detached as desired.

図1−1は、X軸(+方向)に1つだけ回転テーブルを取り付けた工作機械の構成であり、当該回転テーブルの軸名称は“A”となる。図1−2はZ軸方向に1つだけ回転テーブルを取り付けた工作機械の構成であり、当該回転テーブルの軸名称は“C”となる。図1−3はX軸(+方向)とX軸(−方向)とに夫々回転テーブルを取り付けた工作機械の構成であり、X軸(+方向)にかかる回転テーブルの軸名称は“A”、X軸(−方向)にかかる回転テーブルの軸名称は“C”としている。図1−4はZ軸方向に2つの回転テーブルを取り付けた工作機械の構成であり、軸名称を夫々“A”、“C”としている。図1−5はX軸(+方向)とZ軸方向とに夫々回転テーブルを取り付けた構成であり、図1−6はX軸(−方向)とZ軸方向とに夫々回転テーブルを取り付けた構成である。図1−5および図1−6に示す構成においては、ともに、X軸方向の回転テーブルの軸名称を“A”、Z軸方向の回転テーブルの軸名称を“C”としている。図1−7は、回転テーブルが設置されていない工作機械の構成を示している。なお、図1−1〜図1−7における軸名称“B”が付された回転軸は、工具の向きを変化させるための軸として使用される。   FIG. 1-1 shows a configuration of a machine tool in which only one rotary table is attached to the X axis (+ direction), and the axis name of the rotary table is “A”. FIG. 1-2 shows a configuration of a machine tool in which only one rotary table is attached in the Z-axis direction, and the axis name of the rotary table is “C”. FIG. 1-3 shows a configuration of a machine tool in which a rotary table is attached to each of the X axis (+ direction) and the X axis (− direction). The axis name of the rotary table related to the X axis (+ direction) is “A”. The axis name of the rotary table for the X axis (− direction) is “C”. 1-4 shows a configuration of a machine tool having two rotary tables attached in the Z-axis direction, and the axis names are “A” and “C”, respectively. 1-5 shows a configuration in which a rotary table is attached to each of the X axis (+ direction) and the Z axis direction, and FIG. 1-6 shows a configuration in which a rotary table is attached to each of the X axis (− direction) and the Z axis direction. It is a configuration. In the configurations shown in FIGS. 1-5 and 1-6, the axis name of the rotary table in the X-axis direction is “A”, and the axis name of the rotary table in the Z-axis direction is “C”. FIG. 1-7 shows a configuration of a machine tool on which no rotary table is installed. In addition, the axis of rotation with the axis name “B” in FIGS. 1-1 to 1-7 is used as an axis for changing the direction of the tool.

図2は、本発明の実施の形態の数値制御装置の構成を示す図である。図示するように、数値制御装置1は、演算装置10、揮発性メモリ20、不揮発性メモリ30、入力装置40、表示装置50および工作機械接続インタフェース(I/F)60を備えている。   FIG. 2 is a diagram showing the configuration of the numerical controller according to the embodiment of the present invention. As shown in the figure, the numerical control device 1 includes a computing device 10, a volatile memory 20, a nonvolatile memory 30, an input device 40, a display device 50, and a machine tool connection interface (I / F) 60.

不揮発性メモリ30は、ファームウェアプログラム31を記憶する。ファームウェアプログラム31は、対話的に対話プログラム21の入力を受け付けるソフトウェア環境の提供、対話プログラム21からNCコードへの変換、およびNCコードに基づくサーボアンプへの指令値の生成を実行するコンピュータプログラムである。なお、不揮発性メモリ30は、例えばFlashRAM(Flash Random Access Memory)、SDRAM(Synchronous Dynamic Random Access Memory)などが採用される。   The nonvolatile memory 30 stores a firmware program 31. The firmware program 31 is a computer program that executes provision of a software environment for interactively receiving input of the interactive program 21, conversion of the interactive program 21 into an NC code, and generation of a command value for a servo amplifier based on the NC code. . As the nonvolatile memory 30, for example, FlashRAM (Flash Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), or the like is adopted.

図3は、ファームウェアプログラム31による処理の概要を説明する図である。図示するように、ファームウェアプログラム31は、ユーザによって入力された対話プログラム21を解析し、NCデータ22を生成するための中間データとしての出力テーブル23を生成する。1つの出力テーブル23は、NCデータ22を構成する1行のNCコードに対応する。出力テーブル23には、指令値と出力フラグ(0:出力しない、1:出力する)との対が軸名称毎に登録される。ファームウェアプログラム31は、1つの出力テーブル23に登録されている出力フラグが“1”となっているエントリの組み合わせから、1行のNCコードを生成する。図3の例においては、A軸、X軸、およびY軸の出力フラグが“1”となっているため、A軸、X軸、Y軸の夫々に指令値を出力するNCコードが生成される。   FIG. 3 is a diagram for explaining an outline of processing by the firmware program 31. As shown in the figure, the firmware program 31 analyzes the interactive program 21 input by the user, and generates an output table 23 as intermediate data for generating NC data 22. One output table 23 corresponds to one line of NC code constituting the NC data 22. In the output table 23, a pair of a command value and an output flag (0: not output, 1: output) is registered for each axis name. The firmware program 31 generates one line of NC code from a combination of entries in which the output flag registered in one output table 23 is “1”. In the example of FIG. 3, since the output flags of the A axis, the X axis, and the Y axis are “1”, an NC code that outputs a command value to each of the A axis, the X axis, and the Y axis is generated. The

なお、最終的にサーボアンプに出力される指令値は、NCデータ22により指令される指令値を時間的・空間的に補間して生成される。以降、NCデータ22に記述される指令値を第1指令値、サーボアンプに出力される指令値を第2指令値と夫々区別して表記する。なお、NCデータ22は、複数の出力テーブル23から夫々生成されるNCコードを時系列順に配列して記述したものである。   The command value finally output to the servo amplifier is generated by interpolating the command value commanded by the NC data 22 in terms of time and space. Hereinafter, the command value described in the NC data 22 is distinguished from the first command value, and the command value output to the servo amplifier is distinguished from the second command value. The NC data 22 is described by arranging NC codes generated from a plurality of output tables 23 in time series.

図4は、対話プログラム21を構成する機能ユニットを説明する図である。図示するように、対話プログラム21は、テーブル選択ユニット、ワーク座標設定ユニット、加工角度設定ユニット、および加工設定ユニットを備えている。数値制御装置1は、ファームウェアプログラム31による制御の元で、対話プログラム21の入力を機能ユニット毎に受け付けて、受け付けた機能ユニットを揮発性メモリ20に逐次格納して、揮発性メモリ20内に対話プログラム21を生成する。   FIG. 4 is a diagram for explaining the functional units constituting the dialogue program 21. As shown in the figure, the dialogue program 21 includes a table selection unit, a workpiece coordinate setting unit, a machining angle setting unit, and a machining setting unit. Under the control of the firmware program 31, the numerical control device 1 accepts input of the dialogue program 21 for each functional unit, sequentially stores the accepted functional units in the volatile memory 20, and interacts in the volatile memory 20. A program 21 is generated.

加工設定ユニットは、加工条件(旋削加工かまたはミル加工か)や加工形状を指定するための機能ユニットであり、ワーク座標設定ユニットおよび加工角度設定ユニットは、加工設定ユニットを補助する役割を有する機能ユニット(補助ユニット)である。1つの加工設定ユニットと複数の補助ユニットとの組み合わせから、加工形状の加工を満たす数の出力テーブルが生成される。   The machining setting unit is a functional unit for specifying machining conditions (turning or milling) and machining shape, and the workpiece coordinate setting unit and machining angle setting unit function to assist the machining setting unit. It is a unit (auxiliary unit). From the combination of one machining setting unit and a plurality of auxiliary units, the number of output tables satisfying the machining shape machining is generated.

ワーク座標設定ユニットでは、ワーク座標系が設定される。ワーク座標系の設定は、例えば原点位置(X、Y、Zの座標値)により設定される。また、座標回転を行う際には、座標回転角度θが設定される。   In the work coordinate setting unit, a work coordinate system is set. The workpiece coordinate system is set, for example, by the origin position (X, Y, Z coordinate values). Further, when the coordinate rotation is performed, the coordinate rotation angle θ is set.

加工角度設定ユニットでは、加工角度が設定される。加工角度は、回転テーブルの角度を変化させるための機械位置を示すインデックス座標により設定される。   In the processing angle setting unit, a processing angle is set. The machining angle is set by index coordinates indicating the machine position for changing the angle of the rotary table.

ここで、補助ユニットは、共通の設定項目として、「R.T(Rotary Table)」を有している。項目R.Tにおいては、回転テーブルに対する設定内容が記述される。例えば、ワーク座標設定ユニットにおける項目R.Tでは、回転テーブルの座標値が設定される。また、加工角度設定ユニットにおける項目R.Tでは、回転テーブルの角度が設定される。項目R.Tによる設定対象となる回転テーブルは、次に説明するテーブル選択ユニットにより指定される。   Here, the auxiliary unit has “RT (Rotary Table)” as a common setting item. Item R. In T, the setting content for the rotation table is described. For example, item R. in the work coordinate setting unit. In T, the coordinate value of the rotation table is set. Also, item R. in the machining angle setting unit. At T, the angle of the rotary table is set. Item R. The rotation table to be set by T is specified by a table selection unit described below.

テーブル選択ユニットは、動作させる回転テーブルを宣言する機能ユニットである。当該ユニットによって宣言された軸は、後続の補助ユニットに含まれている項目R.Tの設定内容の適用対象となる。テーブル選択ユニットによる宣言内容は、後続の別のテーブル選択ユニットが別の回転テーブルを宣言するまで有効となる。   The table selection unit is a functional unit that declares a rotary table to be operated. The axis declared by the unit is the item R.E contained in the subsequent auxiliary unit. The setting contents of T are to be applied. The contents of the declaration by the table selection unit are valid until another subsequent table selection unit declares another rotation table.

このように、本発明の実施の形態においては、回転テーブルに対する設定内容を、設定対象の回転テーブルを指定するテーブル選択ユニットと、設定内容を回転テーブルを指定することなく記述する補助ユニットと、に分けて入力できるようにすることで、テーブル選択ユニットを変更するだけで軸名称の変更に対応したNCデータ22を生成できるようにしている。   As described above, in the embodiment of the present invention, the setting contents for the rotation table are divided into the table selection unit that specifies the rotation table to be set, and the auxiliary unit that describes the setting contents without specifying the rotation table. By enabling separate input, the NC data 22 corresponding to the change of the axis name can be generated simply by changing the table selection unit.

なお、ここでは、テーブル選択ユニットには、座標回転の回転中心軸を指定することができる。回転中心軸にかかる設定内容は、例えば、方向と座標軸とを組み合わせて記述される。例えばX軸(+方向)を回転中心軸に設定する場合には、+Xのように記述される。なお、座標回転角度は、後続のワーク座標設定ユニットに座標回転角度θを記述することによって設定される。回転中心軸の設定は、後続の別のテーブル選択ユニットにより別の回転中心軸が設定されるまで有効となる。   Here, the rotation axis of coordinate rotation can be designated for the table selection unit. The setting content relating to the rotation center axis is described by combining a direction and a coordinate axis, for example. For example, when the X axis (+ direction) is set as the rotation center axis, it is described as + X. The coordinate rotation angle is set by describing the coordinate rotation angle θ in the subsequent work coordinate setting unit. The setting of the rotation center axis is effective until another rotation center axis is set by another subsequent table selection unit.

演算装置10は、例えばCPU(Central Processing Unit)であって、ファームウェアプログラム31による制御の下で、対話プログラム21の入力受け付け、NCコードの生成、工作機械に具備されるサーボアンプに供給する第2指令値の生成を実行する。   The arithmetic unit 10 is, for example, a CPU (Central Processing Unit), and receives input of the interactive program 21, generates NC code, and supplies it to a servo amplifier provided in the machine tool under the control of the firmware program 31. Generate command values.

揮発性メモリ20は、例えばRAMにより構成される。揮発性メモリ20は、演算装置10がファームウェアプログラム31を実行する際のワークエリアとして使用され、ファームウェアプログラム31の実行の際に生成される中間データはこの揮発性メモリ20に一時記憶される。ここでは、中間データとして、機能ブロック毎に入力された対話プログラム21、NCデータ22、出力テーブル23、およびテーブル選択ユニットにより指定されている軸を示す軸指定情報24が一時的に記憶される。   The volatile memory 20 is constituted by a RAM, for example. The volatile memory 20 is used as a work area when the arithmetic device 10 executes the firmware program 31, and intermediate data generated when the firmware program 31 is executed is temporarily stored in the volatile memory 20. Here, the interactive program 21, NC data 22, output table 23, and axis designation information 24 indicating the axis designated by the table selection unit are temporarily stored as intermediate data.

工作機械接続I/F60は、工作機械に演算装置10が生成した第2指令値を送信したり、加工器機から送られてくるサンプリングデータの入力を受け付けたりするための接続インタフェースである。   The machine tool connection I / F 60 is a connection interface for transmitting the second command value generated by the arithmetic device 10 to the machine tool and receiving input of sampling data sent from the processing machine.

入力装置40は、数値制御装置1に対する操作や不揮発性メモリ30に格納されている対話プログラム21を編集する入力を受け付ける入力手段であって、例えばキーボードにより構成される。表示装置50は液晶ディスプレイなどにより構成され、演算装置10が生成した情報を表示出力する。なお、入力装置40および表示装置50をタッチパネル装置で構成するようにしてもよい。   The input device 40 is an input unit that receives an operation for the numerical control device 1 and an input for editing the interactive program 21 stored in the nonvolatile memory 30, and is configured by, for example, a keyboard. The display device 50 is configured by a liquid crystal display or the like, and displays and outputs information generated by the arithmetic device 10. In addition, you may make it comprise the input device 40 and the display apparatus 50 with a touchscreen apparatus.

図5は、本発明の実施の形態の数値制御装置1の動作を説明するフローチャートである。なお、以下に説明する動作は、演算装置10がファームウェアプログラム31を実行することにより実現される。従って、演算装置10を動作の主体として説明する。   FIG. 5 is a flowchart for explaining the operation of the numerical controller 1 according to the embodiment of the present invention. The operation described below is realized by the arithmetic device 10 executing the firmware program 31. Therefore, the arithmetic device 10 will be described as an operation subject.

図示するように、まず、演算装置10は、ファームウェアプログラムによる制御の元、対話プログラム21の入力を促して、ユーザからの対話プログラム21の入力を受け付ける(ステップS1)。ここでは、機能ブロック毎に入力を受け付けるものとする。入力された機能ブロックは対話プログラム21として揮発性メモリ20に一時記憶される。   As shown in the figure, first, the arithmetic unit 10 prompts an input of the interactive program 21 under the control of the firmware program, and accepts an input of the interactive program 21 from the user (step S1). Here, it is assumed that an input is received for each functional block. The input functional block is temporarily stored in the volatile memory 20 as the interactive program 21.

演算装置10は、入力された機能ユニットがテーブル選択ユニットであるか否かを判定する(ステップS2)。入力された機能ユニットがテーブル選択ユニットである場合(ステップS2、Yes)、演算装置10は、テーブル選択ユニットに記述されている軸名称を軸指定情報24として揮発性メモリ20に記憶しておく(ステップS3)。そして、ステップS1の処理を再度実行する。   The arithmetic device 10 determines whether or not the input functional unit is a table selection unit (step S2). When the input functional unit is a table selection unit (step S2, Yes), the arithmetic unit 10 stores the axis name described in the table selection unit in the volatile memory 20 as the axis designation information 24 ( Step S3). And the process of step S1 is performed again.

入力された機能ユニットがテーブル選択ユニットではなかった場合(ステップS2、No)、演算装置10は、当該入力された機能ユニットに従って出力テーブル23を作成する(ステップS4)。その際に、当該入力された機能ユニットに項目R.Tが含まれている場合には、演算装置10は、当該項目R.Tの設定対象を軸指定情報24により指定された回転テーブルに適用する。その後、演算装置10は、作成した出力テーブル23に基づいてNCコードを生成する(ステップS5)。生成されたNCコードは揮発性メモリ20に格納されてNCデータ22を構成する。   When the input functional unit is not the table selection unit (step S2, No), the arithmetic unit 10 creates the output table 23 according to the input functional unit (step S4). At that time, the item R.I. If T is included, the arithmetic unit 10 determines that the item R.T. The setting target of T is applied to the rotation table designated by the axis designation information 24. Thereafter, the arithmetic unit 10 generates an NC code based on the created output table 23 (step S5). The generated NC code is stored in the volatile memory 20 and constitutes NC data 22.

そして、演算装置10は、動作を終了するか否かを判定し(ステップS6)、終了しない場合には(ステップS6、No)、ステップS1に移行してさらに機能ブロックを読み出し、終了する場合には(ステップS6、Yes)、動作を終了する。動作を終了するか否かの判定は、例えば、ユーザからの終了指示入力があるか否かに基づいて行うようにしてもよい。   Then, the arithmetic unit 10 determines whether or not to end the operation (step S6). If the operation does not end (step S6, No), the process proceeds to step S1 and further reads the functional block and ends. (Step S6, Yes) ends the operation. The determination of whether or not to end the operation may be performed based on whether or not there is an end instruction input from the user, for example.

なお、対話プログラム21にテーブル選択ユニットが存在しない場合には、演算装置10は、当該対話プログラム21が駆動対象とする工作機械には回転テーブルが存在しないとして項目R.Tの設定内容を全て無効とするようにしてもよい。   When there is no table selection unit in the dialogue program 21, the arithmetic unit 10 assumes that the rotary table does not exist in the machine tool to be driven by the dialogue program 21, and item R.D. All of the setting contents of T may be invalidated.

図6は、対話プログラム21の具体例を示す図である。本例の対話プログラム21は、メインプログラム21aと当該メインプログラム21aから参照される下位のサブプログラム21b、21cとにより構成されている。具体的には、メインプログラム21aに記述されているユニット番号が“2”の機能ユニット(UNo.2)からサブプログラム21bが参照され、UNo.4の機能ユニットからサブプログラム21cが参照される。なお、サブプログラム21bとサブプログラム21cとは内容が同一となっている。サブプログラム21b、21cにおいて、WPC−1と記述されている機能ユニット(UNo.1)は、ワーク座標設定ユニットであり、INDEXと記述されている機能ユニット(UNo.2、UNo.4)は、加工角設定ユニットである。   FIG. 6 is a diagram showing a specific example of the dialogue program 21. The dialogue program 21 of this example is composed of a main program 21a and lower subprograms 21b and 21c referred to from the main program 21a. Specifically, the sub program 21b is referred to from the functional unit (UN No. 2) whose unit number is “2” described in the main program 21a. The subprogram 21c is referenced from the four functional units. The contents of the subprogram 21b and the subprogram 21c are the same. In the subprograms 21b and 21c, the functional unit (UNo. 1) described as WPC-1 is a work coordinate setting unit, and the functional units (UNo. 2 and UNo. 4) described as INDEX are It is a processing angle setting unit.

また、UNo.1の機能ユニットおよびUNo.3の機能ユニットはともにテーブル選択ユニット(ROT−TABLE)であって、UNo.1の機能ユニットは軸名称“C”を、UNo.3の機能ユニットは軸名称“A”を、夫々宣言している。   In addition, UNo. 1 functional unit and UNo. 3 functional units are both table selection units (ROT-TABLE). The functional unit 1 has the axis name “C”, UNo. The function unit 3 declares the axis name “A”.

このように、UNo.1やUNo.3のテーブル選択ユニットにおいて宣言内容を変えるだけで対話プログラム21から生成されるNCデータによる動作対象の軸を変更することができるので、回転テーブルの着脱により軸名称が変更されても、ユーザは簡単に当該変更に対応したNCデータ22を作成させることができる。   Thus, UNo. 1 and UNo. Because the axis to be operated by NC data generated from the dialogue program 21 can be changed simply by changing the declaration contents in the table selection unit 3, even if the axis name is changed by attaching or detaching the rotary table, the user can easily Can create NC data 22 corresponding to the change.

なお、この例によると、サブプログラム21bに含まれている補助ユニットに記載されている項目R.TはA軸を設定対象とし、サブプログラム21bと同じプログラムであるサブプログラム21cに含まれている項目R.TはC軸を設定対象として動作するようになっている。即ち、1つの対話プログラム21で同じサブプログラム21b、21cに夫々異なる回転テーブルを駆動することができる。また、1つの対話プログラム21で複数の回転テーブルを制御することが可能である。   In addition, according to this example, the item R.S. described in the auxiliary unit included in the subprogram 21b is described. T sets the A axis as the setting target, and the item R.T. included in the subprogram 21c which is the same program as the subprogram 21b. T operates with the C axis as a setting target. That is, a single rotary program 21 can drive different rotary tables to the same subprograms 21b and 21c. Further, it is possible to control a plurality of rotary tables with one dialogue program 21.

なお、以上の説明においては、機能ブロック毎に入力されて対話プログラム21が生成されるとして説明したが、完成した対話プログラム21が例えば外部記憶装置などを介して入力されるようにしてもよい。   In the above description, it has been described that the dialogue program 21 is generated by being input for each functional block. However, the completed dialogue program 21 may be inputted through, for example, an external storage device.

また、演算装置10は、完成した対話プログラム21を不揮発性メモリ30に保存して、後から編集できるようにしてもよい。   Further, the arithmetic unit 10 may store the completed interactive program 21 in the nonvolatile memory 30 so that it can be edited later.

また、演算装置10は、生成したNCデータ22を不揮発性メモリ30に保存して、後に当該NCデータ22を再利用できるようにしてもよい。   Further, the arithmetic unit 10 may store the generated NC data 22 in the nonvolatile memory 30 so that the NC data 22 can be reused later.

また、以上の説明においては、入力された機能ブロックから逐次NCコードを生成するとして説明したが、対話プログラム21が生成完了した後に一括してNCデータ22を生成するようにしてもよい。   In the above description, the NC code is sequentially generated from the input functional blocks. However, the NC data 22 may be generated collectively after the dialog program 21 has been generated.

以上説明したように、本発明の実施の形態によれば、数値制御装置1は、加工設定ユニットによる加工形状の入力のほかに、当該加工形状を加工する回転軸に対する設定内容を、前記設定対象の回転軸を指定するテーブル選択ユニットと、前記設定内容を前記設定対象の回転軸を指定することなく記述した補助ユニットと、に分けて受け付ける、ように構成したので、ユーザはテーブル選択ユニットを編集するだけで軸名称の変更を行うことができるので、軸名称の変更に柔軟に対応することができるようになる。   As described above, according to the embodiment of the present invention, the numerical controller 1 sets the setting content for the rotation axis for machining the machining shape in addition to the machining shape input by the machining setting unit. Since the table selection unit for designating the rotation axis and the auxiliary unit described without specifying the setting target rotation axis are received separately, the user edits the table selection unit. Since the axis name can be changed simply by doing so, it becomes possible to flexibly cope with the change of the axis name.

また、当該数値制御装置1は、補助ユニットに記述されている設定内容を、当該補助ユニットより前に入力されたテーブル選択ユニットのうちの最も新しく入力されたテーブル選択ユニットにより指定された回転軸に適用する、ように構成したので、ユーザは、テーブル選択ユニットと補助ユニットとを明示的に対応付ける必要がないので、軸名称の変更に柔軟に対応することができるようになる。また、1つの対話プログラムで複数の回転軸を駆動するNCデータを生成することができるようになる。   In addition, the numerical control device 1 applies the setting contents described in the auxiliary unit to the rotation axis specified by the most recently input table selection unit among the table selection units input before the auxiliary unit. Since the application is configured, it is not necessary for the user to explicitly associate the table selection unit with the auxiliary unit, so that it is possible to flexibly cope with the change of the axis name. In addition, NC data for driving a plurality of rotation axes can be generated by a single interactive program.

また、テーブル選択ユニットは、回転中心軸を指定する記述を含み、補助ユニットとしてのワーク座標設定ユニットは、回転中心軸を指定することなく座標回転角を指定する記述を含み、数値制御装置1は、テーブル選択ユニットにより指定された回転中心軸を中心としてワーク座標設定ユニットに記述されている座標回転角で座標回転する、ように構成したので、回転中心軸を簡単に変更できるようになる。   The table selection unit includes a description for specifying the rotation center axis, the work coordinate setting unit as an auxiliary unit includes a description for specifying the coordinate rotation angle without specifying the rotation center axis, and the numerical controller 1 Since the coordinate rotation is performed at the coordinate rotation angle described in the work coordinate setting unit around the rotation center axis designated by the table selection unit, the rotation center axis can be easily changed.

以上のように、本発明にかかる数値制御装置および加工プログラム生成方法は、工作機械を制御する数値制御装置および工作機械を制御する加工プログラムを生成する加工プログラム生成方法に適用して好適である。   As described above, the numerical control device and the machining program generation method according to the present invention are preferably applied to the numerical control device that controls the machine tool and the machining program generation method that generates the machining program that controls the machine tool.

1 数値制御装置
10 演算装置
20 揮発性メモリ
21 対話プログラム
21a メインプログラム
21b サブプログラム
22 NCデータ
23 出力テーブル
24 軸指定情報
30 不揮発性メモリ
31 ファームウェアプログラム
40 入力装置
50 表示装置
60 工作機械接続インタフェース
DESCRIPTION OF SYMBOLS 1 Numerical control apparatus 10 Arithmetic apparatus 20 Volatile memory 21 Dialog program 21a Main program 21b Subprogram 22 NC data 23 Output table 24 Axis designation information 30 Non-volatile memory 31 Firmware program 40 Input apparatus 50 Display apparatus 60 Machine tool connection interface

Claims (6)

対話的に加工形状の入力を受け付けて、受け付けた加工形状を加工するための加工プログラムを生成する数値制御装置であって、
前記加工形状の入力のほかに、前記加工形状を加工する回転軸に対する設定内容を、前記設定内容の設定対象となる回転軸を指定する軸指定入力と、前記設定内容を前記設定対象の回転軸を指定することなく記述した軸設定入力と、に分けて受け付ける、
ことを特徴とする数値制御装置。
A numerical control device that interactively accepts an input of a machining shape and generates a machining program for machining the accepted machining shape,
In addition to the input of the machining shape, the setting content for the rotation axis for machining the machining shape, the axis designation input for designating the rotation axis to be set for the setting content, and the setting content for the rotation axis for the setting target Axis setting input described without specifying
A numerical controller characterized by that.
前記軸設定入力に記述されている設定内容を、当該軸設定入力より前に入力された軸指定入力のうちの最も新しく入力された軸指定入力により指定された回転軸に適用する、
ことを特徴とする請求項1に記載の数値制御装置。
Apply the setting contents described in the axis setting input to the rotation axis specified by the axis input that is input most recently among the axis specifying inputs input before the axis setting input.
The numerical controller according to claim 1.
前記軸指定入力は、回転軸の名称または回転軸の方向により回転軸を指定する、
ことを特徴とする請求項1または請求項2に記載の数値制御装置。
The axis designation input designates the rotation axis by the name of the rotation axis or the direction of the rotation axis.
The numerical control apparatus according to claim 1 or 2, wherein
前記軸指定入力は、座標回転の中心である回転中心軸を指定する記述を含み、
前記軸設定入力は、回転中心軸を指定することなく座標回転角を指定する記述を含み、
前記軸指定入力により指定された回転中心軸を中心として前記軸設定入力に記述されている座標回転角で座標回転する、
ことを特徴とする請求項1に記載の数値制御装置。
The axis designation input includes a description for designating a rotation center axis that is a center of coordinate rotation,
The axis setting input includes a description for designating a coordinate rotation angle without designating a rotation center axis,
The coordinates rotate at the coordinate rotation angle described in the axis setting input around the rotation center axis specified by the axis specifying input.
The numerical controller according to claim 1.
前記軸設定入力に記述されている座標回転角だけの座標回転を、当該軸設定入力より前に入力された軸指定入力のうちの最も新しく入力された軸指定入力により指定された回転中心軸を中心として実行する、
ことを特徴とする請求項4に記載の数値制御装置。
The coordinate rotation of only the coordinate rotation angle described in the axis setting input is performed with the rotation center axis designated by the axis designation input newly input among the axis designation inputs inputted before the axis setting input. Run as the center,
The numerical control apparatus according to claim 4, wherein:
加工形状の入力を受け付けるステップと、
前記加工形状を加工する回転軸に対する設定内容を、前記設定対象の回転軸を指定する軸指定入力と、前記設定内容を前記設定対象の回転軸を指定することなく記述した軸設定入力と、に分けて受け付けるステップと、
前記軸設定入力に記述されている設定内容を、当該軸設定入力より前に入力された軸指定入力のうちの最も新しく入力された軸指定入力により指定された回転軸に適用して、前記入力された加工形状を加工するための加工プログラムを生成するステップと、
を備えることを特徴とする加工プログラム生成方法。
Receiving a machining shape input;
The setting contents for the rotation axis for machining the machining shape are the axis designation input for designating the setting target rotation axis, and the axis setting input for describing the setting contents without designating the setting target rotation axis. Accepting the steps separately,
Applying the setting contents described in the axis setting input to the rotation axis specified by the most recently input axis specifying input among the axis specifying inputs input before the axis setting input. Generating a machining program for machining the machined machining shape;
A machining program generation method comprising:
JP2011177473A 2011-08-15 2011-08-15 Numerical controller and processing program generation method Pending JP2013041392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011177473A JP2013041392A (en) 2011-08-15 2011-08-15 Numerical controller and processing program generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011177473A JP2013041392A (en) 2011-08-15 2011-08-15 Numerical controller and processing program generation method

Publications (1)

Publication Number Publication Date
JP2013041392A true JP2013041392A (en) 2013-02-28

Family

ID=47889741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011177473A Pending JP2013041392A (en) 2011-08-15 2011-08-15 Numerical controller and processing program generation method

Country Status (1)

Country Link
JP (1) JP2013041392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016004233A1 (en) 2015-04-16 2016-10-20 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0236404A (en) * 1988-07-26 1990-02-06 Fanuc Ltd Nc command system
JPH0695721A (en) * 1992-09-16 1994-04-08 Fanuc Ltd Numerical controller
JP2010211566A (en) * 2009-03-11 2010-09-24 Fanuc Ltd Numerical controller having axis reconfiguration function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0236404A (en) * 1988-07-26 1990-02-06 Fanuc Ltd Nc command system
JPH0695721A (en) * 1992-09-16 1994-04-08 Fanuc Ltd Numerical controller
JP2010211566A (en) * 2009-03-11 2010-09-24 Fanuc Ltd Numerical controller having axis reconfiguration function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016004233A1 (en) 2015-04-16 2016-10-20 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history
US10317883B2 (en) 2015-04-16 2019-06-11 Fanuc Corporation Numerical controller for classifying and displaying machining program recorded as history
DE102016004233B4 (en) 2015-04-16 2019-06-27 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history

Similar Documents

Publication Publication Date Title
JP2017191541A (en) Parameter setting device, parameter setting program, and parameter setting method
JP4837110B2 (en) Numerical control device with tool path display function
JP2013012051A (en) Machine control program formulating device
CN103365255A (en) Numerically controlled lathe control system and method without programming
JP2015170147A (en) Nc program creation and editing device
JP5295061B2 (en) Programmable controller
US20190012168A1 (en) Program generating apparatus
US20120109361A1 (en) Program converting module for multi-axis coordinated machines and program-converting method
JPS61288959A (en) Data input device in interactive numerically controlled grinder
JP6125123B1 (en) Numerical controller
JP2013041392A (en) Numerical controller and processing program generation method
WO1995029432A1 (en) Control system
CN114365048B (en) Numerical control device
JP2008532130A (en) Method for subprogram translation by a controller interpreter
JP2020098428A (en) Numerical value control device
JP5763352B2 (en) NC program creation device
JPS6359604A (en) Method for changing working route in numerical controller
WO2004008262A1 (en) device and method for generating Piston outline machining data and computer-readable recoding medium ON WHICH machining data generation program IS RECORDED
KR20130110746A (en) Method for position correcting of tooling ball
JP2779796B2 (en) Numerical control unit
JP2001067110A (en) Teaching device for robot device, method for teaching robot device and control device for robot device
JP2023034569A (en) Controller and file structure of program
JPS6129909A (en) Numerical controller
JPH06195211A (en) Method for constructing software system by parameter data group
JP2008287710A (en) Development control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130509

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140411

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140819