JPH09160620A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH09160620A
JPH09160620A JP31996095A JP31996095A JPH09160620A JP H09160620 A JPH09160620 A JP H09160620A JP 31996095 A JP31996095 A JP 31996095A JP 31996095 A JP31996095 A JP 31996095A JP H09160620 A JPH09160620 A JP H09160620A
Authority
JP
Japan
Prior art keywords
machining
range
command data
axis movement
program
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
JP31996095A
Other languages
Japanese (ja)
Other versions
JP3660038B2 (en
Inventor
Shingo Suzuki
木 進 吾 鈴
Tomoo Matsumoto
本 倫 雄 松
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.)
Shibaura Machine Co Ltd
Original Assignee
Toshiba Machine 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 Toshiba Machine Co Ltd filed Critical Toshiba Machine Co Ltd
Priority to JP31996095A priority Critical patent/JP3660038B2/en
Publication of JPH09160620A publication Critical patent/JPH09160620A/en
Application granted granted Critical
Publication of JP3660038B2 publication Critical patent/JP3660038B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a numerical controller capable of executing a machining program within a set machining range in real time while performing program analytic processing without modifying or correcting the program, and facilitating partial machining and remachining by limiting an arbitrary area in the machining program. SOLUTION: This controller 1 is provided with a setting table 4 for machining ranges by axes and when the machining program is executed according to respective command data in an NC machining program storage part 1, an NC machining program analysis execution part 3 compares respective axis movement ranges with machining ranges stored in the machining range setting table 4 by the command data at all times to execute the program. When the axis movement range of the command data is all included in the machining range, axis movement is performed as it is, but when part of it is included, namely, when the execution is carried out from inside to outside the machining range or vice versa, the command data in the machining range are converted to perform axis movement and when the movement range is not included, the shaft movement is not performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、数値制御装置に
係り、特にNC工作機械のプログラム実行に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control device, and more particularly to program execution of an NC machine tool.

【0002】[0002]

【従来の技術】数値制御装置では、一旦加工が終了した
後に部分的に再加工する必要のある場合や、加工範囲を
限定して部分加工する場合がある。図9に、このような
再加工又は部分加工を行なう際の説明図を示す。例え
ば、金型加工等において、加工対象物91の斜線箇所9
2を再加工又は部分加工したい場合を想定する。その
際、例えば、斜線箇所92に部分的に肉盛り修正を行
い、その箇所だけを加工するという方策をとる。
2. Description of the Related Art In a numerical control apparatus, there is a case where it is necessary to partially re-process after the processing is once completed, or a case where a processing range is limited to carry out partial processing. FIG. 9 shows an explanatory diagram for performing such reworking or partial working. For example, in die processing or the like, the shaded portion 9 of the object 91 to be processed
Suppose that 2 is to be reprocessed or partially processed. At that time, for example, a measure is taken such that the build-up is partially corrected at the shaded portion 92 and only that portion is processed.

【0003】現在、一般的に用いられているNC加工プ
ログラムでは、このように加工範囲を限定して行なおう
とした場合、全体のプログラムを実行させる必要があ
る。この方法では、加工プログラムをはじめから実行し
て全体を加工するので、必要な加工範囲以外も含み、非
常に時間がかかる。
In the NC machining program generally used at present, when the machining range is limited in this way, it is necessary to execute the entire program. In this method, since the machining program is executed from the beginning to machine the whole, it takes a very long time including a range other than the necessary machining range.

【0004】そこで、従来の他の方法によると、加工範
囲の限定方法としては、シーケンス番号サーチ機能やプ
ログラムリスタート機能等により、加工プログラムの途
中工程から実行する方法がある。また、プログラムのブ
ロック中に読み飛ばしを指定するための判断記号(例え
ば、フラグ「1」)を付加しておき、プログラム実行時
にこの該当ブロックを無視するようにしたオプショナル
ブロックスキップと呼ばれる方法等が採用された。
Therefore, according to another conventional method, as a method of limiting the machining range, there is a method of executing the machining program from an intermediate step using a sequence number search function, a program restart function, or the like. Further, there is a method called an optional block skip in which a judgment symbol (for example, a flag “1”) for designating skip skip is added in a block of a program and the corresponding block is ignored when the program is executed. Was adopted.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述の
ような従来技術では、プログラムの途中工程から実行す
るため又は判断記号を付加するため等に、加工プログラ
ムそのものを編集又は修正することが不可欠である。そ
のため、データ作成に時間がかかるという問題があっ
た。
However, in the prior art as described above, it is indispensable to edit or modify the machining program itself in order to execute it from an intermediate step of the program or add a judgment symbol. . Therefore, there is a problem that it takes time to create the data.

【0006】本発明は、上記問題を解決しようとするも
のであり、加工プログラム中の任意の領域を限定した部
分加工・再加工が容易に実現することのできる数値制御
装置を提供することを目的とする。
The present invention is intended to solve the above problems, and an object of the present invention is to provide a numerical controller capable of easily realizing partial machining / remachining in which an arbitrary region in a machining program is limited. And

【0007】[0007]

【課題を解決するための手段】本発明の数値制御装置に
よると、指令データを記憶した加工プログラム記憶手段
と、加工範囲を設定した加工範囲設定テーブル記憶手段
と、前記指令データを前記加工範囲と比較して、前記加
工範囲内の場合には該指令データによる命令を実行し、
前記加工範囲外の場合には該命令を不実行とする制御手
段と、前記制御手段により制御される駆動手段とを備え
るようにした。
According to the numerical controller of the present invention, a machining program storage means for storing command data, a machining range setting table storage means for setting a machining range, and the command data for the machining range. By comparison, if it is within the processing range, the command by the command data is executed,
A control means for not executing the command when the processing range is out of the processing range and a driving means controlled by the control means are provided.

【0008】また、前記制御手段は、前記加工プログラ
ム記憶手段の前記指令データによるプログラム実行の
際、前記指令データによる軸移動範囲と前記加工範囲と
を比較し、前記軸移動範囲が、前記加工範囲内に全て含
まれる場合はそのまま軸移動を実行し、一部だけ含まれ
る場合は加工範囲内の指令データに変換して軸移動を実
行し、一方、加工範囲内に全く含まれない場合はその軸
移動を不実行にすることを特徴とする。
Further, the control means, when executing the program according to the command data in the machining program storage means, compares the axis movement range according to the command data with the machining range, and the axis movement range is the machining range. If all are included in the machining range, the axis movement is executed as it is, if only part of it is included, it is converted to command data within the machining range and the axis movement is executed. The feature is that the axis movement is not executed.

【0009】さらに、本発明の数値制御装置によると、
部分加工又は再加工ために、加工範囲を入力する入力手
段、開始点を入力する入力手段、又は、開始点を自動的
に設定する設定手段とをさらに備えたことを特徴とす
る。
Further, according to the numerical controller of the present invention,
The present invention is characterized by further comprising input means for inputting a processing range, input means for inputting a starting point, or setting means for automatically setting a starting point for partial processing or reprocessing.

【0010】本発明の数値制御装置においては、各軸毎
の加工範囲設定テーブルを設け、各指令データによる加
工プログラム実行の際、各軸移動範囲と加工範囲設定テ
ーブルに記憶された加工範囲とを各指令データ毎に常時
比較して実行する。そして、指令データによる軸移動範
囲が、加工範囲に全て含まれる場合はそのまま軸移動を
実行し、一部だけ含まれる場合、即ち加工範囲内外にま
たがった場合は加工範囲内の指令データに変換して軸移
動を実行し、一方、加工範囲外に含まれる場合はその軸
移動を不実行にすることにより、プログラムを変更修正
せずにプログラム解析処理を実行しながら、設定された
加工範囲内の加工プログラムをリアルタイム的に実行す
ることができ、加工プログラム中の任意の領域を限定し
た部分加工・再加工が容易に実現することができる。
In the numerical controller of the present invention, a machining range setting table for each axis is provided, and when the machining program is executed by each command data, each axis movement range and the machining range stored in the machining range setting table are set. The command data is constantly compared and executed. Then, if the axis movement range according to the command data is all included in the machining range, the axis movement is executed as it is, and if only part of it is included, that is, if it extends outside the machining range, it is converted into command data within the machining range. Axis movement is performed on the other hand, and when it is outside the machining range, the axis movement is not executed, so that the program analysis processing is executed without changing and modifying the program and The machining program can be executed in real time, and partial machining / re-machining in which an arbitrary region in the machining program is limited can be easily realized.

【0011】[0011]

【発明の実施の形態】以下本発明の実施の形態のいくつ
かを詳述する。
BEST MODE FOR CARRYING OUT THE INVENTION Some embodiments of the present invention will be described in detail below.

【0012】図1は本発明による実施の一形態にかかる
数値制御装置の構成図を示す。
FIG. 1 is a block diagram of a numerical controller according to an embodiment of the present invention.

【0013】数値制御装置1は、NC加工プログラム記
憶部2、NC加工プログラム解析実行部3、加工範囲設
定テーブル記憶部4、出力制御部5、及び出力インター
フェース部6を備えている。出力インターフェース部6
には、駆動部7が接続されている。また、各種プログラ
ム及びデータを入力する入力部8及び表示する表示部9
が設けられている。
The numerical controller 1 comprises an NC machining program storage unit 2, an NC machining program analysis execution unit 3, a machining range setting table storage unit 4, an output control unit 5, and an output interface unit 6. Output interface unit 6
The drive unit 7 is connected to the. Further, an input unit 8 for inputting various programs and data and a display unit 9 for displaying
Is provided.

【0014】NC加工プログラム記憶部2には、1ブロ
ック毎に機械の動作を命令する情報である指令データが
記憶されている。これらの指令データは、通常は、JI
SB 6311で規定されたISOコードとEIAコー
ドのいずれかが用いられる。例えば、NC工作装置の指
令データとしては、G機能(制御機能、準備機能)、M
機能(補助機能)、F機能(送り機能)、寸法語X、
Y、Z(X軸、Y軸、Z軸の運動ディメンジョン)等が
ある。
The NC machining program storage unit 2 stores command data which is information for instructing the operation of the machine for each block. These command data are usually JI
Either the ISO code or the EIA code specified in SB 6311 is used. For example, as the command data of the NC machine tool, G function (control function, preparation function), M function
Function (auxiliary function), F function (feed function), dimension word X,
There are Y, Z (motion dimensions of X axis, Y axis, Z axis) and the like.

【0015】NC加工プログラム解析実行部3は、マイ
クロコンピュータ等で構成され、NC加工プログラム記
憶部2に記憶された指令データを1ブロックずつ順次読
み出し解析し、さらに、加工範囲設定テーブル記憶部4
に記憶されているデータを参照して所定の動作を行う。
The NC machining program analysis execution unit 3 is composed of a microcomputer or the like, sequentially reads and analyzes the command data stored in the NC machining program storage unit 1 block by block, and further, the machining range setting table storage unit 4
A predetermined operation is performed with reference to the data stored in.

【0016】加工範囲設定テーブル記憶部4には、加工
範囲を限定するために必要なデータを記憶している。こ
れら加工範囲データの設定は、入力装置8により適宜入
力することができる。
The processing range setting table storage unit 4 stores data necessary for limiting the processing range. The setting of these processing range data can be appropriately input by the input device 8.

【0017】出力制御部5では、NC加工プログラム解
析実行部3の指令により、所定の駆動部7の回転数、回
転角度、回転速度、移動幅、移動速度等を指示する。
In the output control unit 5, the rotation number, the rotation angle, the rotation speed, the moving width, the moving speed and the like of the predetermined driving unit 7 are instructed by the instruction of the NC machining program analysis executing unit 3.

【0018】出力インターフェース部6は、送り速度位
置制御部5の指令を所定の駆動部7に分配する。
The output interface section 6 distributes the command from the feed speed position control section 5 to predetermined driving sections 7.

【0019】駆動部7は、送りモータ等によるNC工作
機の回転部又は移動部等から構成される。駆動部7は、
通常、サーボ機構を有し、複数の駆動装置により構成さ
れている。出力インターフェース部6を介して送られて
きた指令信号により、所定の駆動部7が駆動され、NC
工作機の位置決め、移動幅、移動速度又は回転速度等が
制御される。
The drive unit 7 is composed of a rotating unit or a moving unit of an NC machine tool using a feed motor or the like. The drive unit 7 is
Usually, it has a servo mechanism and is composed of a plurality of drive devices. A predetermined drive unit 7 is driven by the command signal sent through the output interface unit 6, and NC
The positioning, movement width, movement speed or rotation speed of the machine tool are controlled.

【0020】入力部8は、キーボード、マウス等周知の
入力装置であり、NC加工プログラム記憶部2、加工範
囲設定テーブル記憶部4のプログラム又はデータの入力
を行う。また、メインテナンス、障害対策等のための入
力も行うことができる。
The input unit 8 is a well-known input device such as a keyboard and a mouse, and inputs programs or data from the NC machining program storage unit 2 and the machining range setting table storage unit 4. In addition, it is possible to perform input for maintenance, troubleshooting, etc.

【0021】表示部9は、CRT、液晶ディスプレー等
の表示装置により構成され、各種のデータ、プログラム
等を表示できる。また、2次元又は3次元のグラフィッ
ク機能を備えることにより、全体加工図又は部分加工図
等により、必要に応じて加工範囲、加工状況等を表示す
ることができる。
The display unit 9 is composed of a display device such as a CRT and a liquid crystal display, and can display various data, programs and the like. Further, by providing a two-dimensional or three-dimensional graphic function, it is possible to display a machining range, a machining situation, etc., as necessary, on the whole machining diagram or the partial machining diagram.

【0022】次にこのような数値制御装置の動作概要を
説明する。NC加工プログラム解析実行部3は、NC加
工プログラム記憶部2のデータに基づき、また、加工範
囲設定テーブル記憶部4を参照して、指令信号を出力す
る。すなわち、各指令データによる加工プログラム実行
の際、各軸移動範囲と加工範囲設定テーブルに記憶され
た加工範囲とを各指令データ毎に常時比較して実行す
る。そして、指令データによる軸移動範囲が、加工範囲
に全て含まれる場合はそのまま軸移動を実行し、一部だ
け含まれる場合、即ち加工範囲内外にまたがった場合は
加工範囲内の指令データに変換して軸移動を実行し、一
方、加工範囲外に含まれる場合はその軸移動を不実行に
する。加工範囲内か加工範囲外かの判断及び実行する際
の変換処理については、後に詳述する。この指令信号を
受けて、送り速度位置制御部5は、出力インターフェー
ス部6を介して、送りモータ7の回転数、回転角度及び
回転速度等を指令することにより、NC工作機の位置決
め及び移動速度等を制御する。
Next, an outline of the operation of such a numerical controller will be described. The NC machining program analysis execution unit 3 outputs a command signal based on the data in the NC machining program storage unit 2 and with reference to the machining range setting table storage unit 4. That is, when the machining program is executed by each command data, each axis movement range and the machining range stored in the machining range setting table are constantly compared and executed for each command data. Then, if the axis movement range according to the command data is all included in the machining range, the axis movement is executed as it is, and if only part of it is included, that is, if it extends outside the machining range, it is converted into command data within the machining range. The axis movement is executed by means of this, and when it is outside the machining range, the axis movement is not executed. The conversion processing when determining whether it is within the processing range or outside the processing range and executing it will be described in detail later. In response to this command signal, the feed speed position control unit 5 commands the rotation speed, rotation angle, rotation speed, etc. of the feed motor 7 via the output interface unit 6, thereby positioning and moving speed of the NC machine tool. Etc.

【0023】このようにして、NC加工プログラム記憶
部2のデータの内、加工範囲設定テーブル記憶部4で設
定された任意の加工範囲内のみの部分加工・再加工を、
容易に行うことができる。
In this way, partial machining / re-machining only within the arbitrary machining range set in the machining range setting table storage section 4 of the data in the NC machining program storage section 2 is performed.
It can be done easily.

【0024】図2に、NC加工プログラム記憶部2に記
憶されたNC加工プログラムの一例を示す。ここで、ブ
ロック番号00では、準備機能として、初期状態がX座
標2500及びY座標−2000に移動することを示
す。ブロック番号01では、直線補間で所定の移動速度
を設定している。ブロック番号03は、X座標2500
及びY座標2500に移動することを示す。ブロック番
号04は、X座標2000及びY座標変化なし、で移動
することを示す。以後ブロック番号22まで、X座標、
Y座標の所定値にそれぞれ移動する。最後にブロック番
号23では、プログラムの終了を示す。
FIG. 2 shows an example of the NC machining program stored in the NC machining program storage unit 2. Here, the block number 00 indicates that the initial state moves to the X coordinate 2500 and the Y coordinate −2000 as a preparation function. In block number 01, a predetermined moving speed is set by linear interpolation. Block number 03 is X coordinate 2500
And the Y coordinate 2500. The block number 04 indicates that the movement is performed with the X coordinate 2000 and the Y coordinate unchanged. After that, up to block number 22, X coordinate,
Move to the predetermined value of the Y coordinate. Finally, block number 23 indicates the end of the program.

【0025】また、図3に、加工範囲設定テーブル記憶
部4に設定された加工範囲設定テーブルにおいて、長方
形の加工範囲を設定する場合の一例を示す。ここでは、
長方形の4隅の各座標値データを記憶することにより、
加工範囲を設定したデータテーブル形式を示している。
Further, FIG. 3 shows an example of setting a rectangular machining range in the machining range setting table set in the machining range setting table storage unit 4. here,
By storing the coordinate value data of the four corners of the rectangle,
The data table format in which the processing range is set is shown.

【0026】図4に、本願発明に係る加工動作の詳細な
フローチャートを示す。まず、NC加工プログラム中の
ブロック番号00、01の指令データを順次入力し、初
期設定を行う(S10)。次に加工範囲設定テーブルの
加工範囲データを入力する(S20)。次に、順次NC
加工プログラムを1ブロックずつ入力する(S30)。
ここで、ブロック番号23の指令データのようにプログ
ラムエンド指令が入力されると(S40)、実行終了に
なる。次に、指令データによる軸移動範囲が、加工範囲
設定テーブルで設定された加工範囲に全て含まれるか否
かが解析される(S50)。例えば、この解析は、前回
の座標値と今回入力された座標値の両方から移動範囲を
求め、その移動範囲と加工範囲設定テーブル中の加工範
囲データとを比較して、加工範囲内であるか否かを判断
することにより解析できる。解析の結果、今回入力され
た指令データによる軸移動範囲が加工範囲に全て含まれ
る場合、そのまま実行する(S60)。一方、軸移動範
囲が加工範囲に全て含まれるとは限らない場合は、一部
のみ加工範囲内に含まれるか、即ち、加工範囲内と加工
範囲外とにまたがるものなのか、又は、全く加工範囲内
に含まれない場合、即ち、加工範囲外であるのかが解析
される(S70)。ここで、軸移動範囲が一部だけ加工
範囲内に含まれる場合は、その軸移動範囲が加工範囲内
におさまるよう指令データを一時的に変換する。この具
合的な変換の方法としては、例えば、NC加工プログラ
ム解析実行部3等により、加工範囲設定テーブルで設定
された加工範囲の端部まで又はその近辺までしか移動し
ないように、適宜計算して変換することができる。一
方、移動範囲が、全く加工範囲内に含まれない場合は、
指令データを無効とし不実行のままとして次のNC加工
プログラムを入力する(S30)。
FIG. 4 shows a detailed flowchart of the machining operation according to the present invention. First, command data of block numbers 00 and 01 in the NC machining program are sequentially input to perform initial setting (S10). Next, the processing range data of the processing range setting table is input (S20). Next, NC
A machining program is input block by block (S30).
Here, when the program end command is input like the command data of the block number 23 (S40), the execution ends. Next, it is analyzed whether or not the axis movement range according to the command data is all included in the machining range set in the machining range setting table (S50). For example, in this analysis, the moving range is obtained from both the previous coordinate value and the coordinate value input this time, and the moving range is compared with the working range data in the working range setting table to determine whether it is within the working range. It can be analyzed by judging whether or not. As a result of the analysis, if the axis movement range based on the command data input this time is included in the machining range, the processing is executed as it is (S60). On the other hand, when the axis movement range is not all included in the machining range, only a part of the axis movement range is included in the machining range, that is, whether the axis movement range extends within the machining range and outside the machining range, or is machining not performed at all. If it is not included in the range, that is, if it is outside the processing range, it is analyzed (S70). If only a part of the axial movement range is included in the machining range, the command data is temporarily converted so that the axial movement range is within the machining range. As a method of this kind of conversion, for example, the NC machining program analysis executing unit 3 or the like appropriately calculates so as to move only to or near the end of the machining range set in the machining range setting table. Can be converted. On the other hand, if the movement range is not included in the machining range at all,
The next NC machining program is input while invalidating the command data and leaving it unexecuted (S30).

【0027】このような、フローチャートにより、図2
のプログラムは、次のように具体的に実行される。 (1)全加工範囲の工程実行 加工範囲設定テーブルにデータが設定されていない場合
は、全加工範囲の工程が行われる。すなわち、ステップ
S50において、各々の指令データは加工範囲内であ
り、YESと判断される。よって、次のステップS60
により全指令データが実行されることになる。このよう
にして、図2のNC加工プログラムの各ブロックの指令
データにより、図5に示す位置B00〜B23のような
軌跡で軸移動が実行される。ここで、位置Bnmは、図
2のブロック番号nmによる指令データに相当する。ま
た、ソフトストロークリミットとは、指令データにより
加工する際の限界範囲である。 (2)加工範囲指定による工程実行 加工範囲設定テーブルにデータが設定されている場合
は、部分加工工程が行われる。図6に、加工範囲を設定
した場合のNC加工プログラムの指令データの自動変換
の説明図を示し、また、図7に、軸移動の軌跡を表す説
明図を示す。
According to such a flow chart, FIG.
The program is specifically executed as follows. (1) Process execution in the entire processing range If no data is set in the processing range setting table, the processes in the entire processing range are performed. That is, in step S50, each command data is within the processing range, and YES is determined. Therefore, the next step S60
Will execute all command data. In this way, the axis movement is executed in a locus such as the positions B00 to B23 shown in FIG. 5 by the command data of each block of the NC machining program of FIG. Here, the position Bnm corresponds to the command data by the block number nm in FIG. Further, the soft stroke limit is a limit range when processing is performed according to command data. (2) Process execution by designating machining range When data is set in the machining range setting table, a partial machining process is performed. FIG. 6 is an explanatory diagram of automatic conversion of the command data of the NC machining program when the machining range is set, and FIG. 7 is an explanatory diagram showing the locus of axis movement.

【0028】図2におけるブロック番号00、02〜0
9の指令データが入力されたときは、ステップS50及
びS70により、加工範囲設定テーブルの加工範囲外と
判断され、不実行となる。なお、ブロック番号01の指
令データは、軸移動の命令を含まないので、適宜移動速
度等が設定される。次に、ステップS30に戻り、次の
ブロック番号10の指令データから順次入力する。ブロ
ック番号10の指令データが入力されると、ステップS
50及びS70によると、位置B09から位置B10へ
の軸移動範囲は、加工範囲内に一部含まれる、即ち、加
工範囲内外にまたがるものであると判断される。従っ
て、ステップS80により、ブロック番号10の指令デ
ータは、位置B10まで移動せずに加工範囲内の外周端
まで移動するよう指示する指令データ(X500、Y2
000)に自動変換されることにより、加工範囲内の位
置B’10への軸移動となる。次に、ブロック番号11
の指令データが入力されると、この変換された指令デー
タによる位置B’10をもとにしたX座標0へのX方向
移動の指令データであり、この軸移動範囲は加工範囲内
に全て含まれるため、ステップS60により、そのまま
実行される。以下、同様にブロック番号12の指令デー
タは(X0、Y500)に変換され、位置B’12に移
動し、同様に、位置B’13、B’14、〜B’15の
ように自動変換又はそのまま実行され、加工範囲内を軸
移動する。ブロック番号17〜22の指令データは、軸
移動範囲が加工範囲内に全く含まれない、即ち加工範囲
外であるため、不実行となる。最後にブロック番号23
のプログラムエンド指令により、NC加工プログラムが
終了する。
Block numbers 00, 02 to 0 in FIG.
When the command data of No. 9 is input, it is determined to be outside the processing range of the processing range setting table in steps S50 and S70, and the processing is not executed. Since the command data of block number 01 does not include a command for axis movement, the movement speed or the like is set appropriately. Next, returning to step S30, the command data of the next block number 10 are sequentially input. When the command data of block number 10 is input, step S
According to 50 and S70, it is determined that the axial movement range from the position B09 to the position B10 is partially included in the machining range, that is, it extends outside the machining range. Therefore, in step S80, the command data of the block number 10 is command data (X500, Y2) for instructing to move to the outer peripheral end within the processing range without moving to the position B10.
000) is automatically converted into axial movement to position B'10 within the processing range. Next, block number 11
Command data is input, it is command data for moving in the X direction to the X coordinate 0 based on the position B'10 by this converted command data, and this axis movement range is all included in the machining range. Therefore, the processing is directly executed in step S60. Hereinafter, similarly, the command data of the block number 12 is converted to (X0, Y500), moved to the position B'12, and similarly, automatically converted to the positions B'13, B'14, ~ B'15 or the like. It is executed as it is, and the axis is moved within the machining range. The command data of block numbers 17 to 22 are not executed because the axis movement range is not included in the machining range at all, that is, outside the machining range. Finally block number 23
The NC machining program is ended by the program end command of.

【0029】なお、NC加工プログラムの加工範囲指定
によるプログラム実行を行う場合、NC加工プログラム
実行前に、加工範囲指定メニュー又はキースイッチ等の
入力部の操作により、加工プログラム実行前に位置決め
をしておきたい各軸座標値を入力することもできる。ま
た、この各軸座標値として、加工範囲設定テーブルの加
工範囲データの一つを用いるようにしても良い。この場
合、例えば、先に任意の位置に開始位置を設定した後
に、加工範囲内のプログラム実行することができる。図
8は、その一例を示したものであり、ここでは、部分加
工又は再加工のための開始点として位置P1を用いるよ
うにした。
When executing the program by designating the machining range of the NC machining program, positioning is performed before the machining program is executed by operating the machining range designation menu or an input unit such as a key switch before executing the NC machining program. You can also enter the coordinate values of each axis that you want. Further, one of the machining range data in the machining range setting table may be used as the coordinate value of each axis. In this case, for example, the program within the machining range can be executed after the start position is set at an arbitrary position first. FIG. 8 shows an example thereof, and here, the position P1 is used as a starting point for partial processing or reprocessing.

【0030】また、自動的に開始点を設定する方法とし
ては、まず、指令データによる軸移動が、加工範囲外か
ら加工範囲内への軸移動であるかを判断する。つぎに、
このような軸移動であると判断された場合、その軸移動
線と加工範囲の境界との交点又はその近傍を求め、その
交点又は近傍を開始点として設定することができる。例
えば、図8のように、位置P1又はその近傍を自動的に
開始点として設定するためには、まず、位置B09から
位置B10への軸移動が、加工範囲外から範囲内への軸
移動であることを判断する。つぎに、この軸移動が加工
範囲領域に入る交点を求めて、その交点又は近傍を開始
点として設定することにより実施することができる。
As a method of automatically setting the starting point, it is first determined whether the axis movement based on the command data is an axis movement from outside the machining range to within the machining range. Next,
When it is determined that the movement is such an axis movement, the intersection or the vicinity thereof between the axis movement line and the boundary of the processing range is obtained, and the intersection or the vicinity can be set as the start point. For example, as shown in FIG. 8, in order to automatically set the position P1 or the vicinity thereof as the start point, first, the axial movement from the position B09 to the position B10 is the axial movement from outside the machining range to within the range. Judge that there is. Next, it can be carried out by obtaining an intersection point where this axial movement enters the machining range area and setting the intersection point or the vicinity thereof as a start point.

【0031】以上の実施の態様ではX、Y座標値のみで
説明を行ったが、X,Y,Z座標をもつ三次元に適応す
ることも可能である。軸移動指令のみならず、また、N
C加工プログラム以外にも、あらゆるプログラム実行の
部分的な実行に適用することが可能である。
In the above embodiment, the explanation has been made only with the X and Y coordinate values, but it is also possible to apply it to three dimensions having X, Y and Z coordinates. Not only axis movement command but also N
Besides the C machining program, it can be applied to partial execution of every program execution.

【0032】[0032]

【発明の効果】以上のように、本発明の数値制御装置に
よれば、各軸毎の加工範囲設定テーブルを設け、各指令
データによる加工プログラム実行の際、各軸移動範囲と
加工範囲設定テーブルに記憶された加工範囲とを各指令
データ毎に常時比較して実行し、指令データによる軸移
動範囲が、加工範囲に全て含まれる場合はそのまま軸移
動を実行し、一部だけ含まれる場合、即ち加工範囲内外
にまたがった場合は加工範囲内の指令データに変換して
軸移動を実行し、一方、加工範囲外に含まれる場合はそ
の軸移動を不実行にすることにより、プログラムを変更
修正せずにプログラム解析処理を実行しながら、設定さ
れた加工範囲内の加工プログラムをリアルタイム的に実
行することができ、加工プログラム中の任意の領域を限
定した部分加工・再加工が容易に実現することが可能と
なる。
As described above, according to the numerical controller of the present invention, the machining range setting table for each axis is provided, and when the machining program is executed by each command data, each axis moving range and machining range setting table are set. The machining range stored in is constantly compared and executed for each command data.When the axis movement range according to the command data is all included in the machining range, the axis movement is executed as it is. In other words, if it extends outside the machining range, it is converted into command data within the machining range and the axis movement is executed, while if it falls outside the machining range, the axis movement is disabled and the program is modified. Without executing the program analysis process, it is possible to execute the machining program within the set machining range in real time. Processing can be easily realized.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明にかかる数値制御装置の構成図。FIG. 1 is a configuration diagram of a numerical control device according to the present invention.

【図2】NC加工プログラム記憶部2に記憶されたNC
加工プログラムの説明図。
FIG. 2 is an NC stored in an NC machining program storage unit 2.
Explanatory drawing of a processing program.

【図3】加工範囲設定テーブル記憶部4で設定された加
工範囲設定テーブル。
FIG. 3 is a processing range setting table set in a processing range setting table storage unit 4.

【図4】加工範囲動作のフローチャート。FIG. 4 is a flowchart of a processing range operation.

【図5】全加工範囲の工程実行の軸移動説明図。FIG. 5 is an explanatory diagram of axis movement for executing processes in the entire processing range.

【図6】加工範囲指定による加工プログラム変換の説明
図。
FIG. 6 is an explanatory view of a machining program conversion by designating a machining range.

【図7】加工範囲指定による工程実行の軸移動説明図。FIG. 7 is an explanatory diagram of axis movement for executing a process by designating a machining range.

【図8】開始点を設定したときの加工範囲指定による工
程実行の軸移動説明図。
FIG. 8 is an explanatory diagram of axis movement for process execution by designating a machining range when a start point is set.

【図9】再加工・部分加工の概略図。FIG. 9 is a schematic view of reprocessing / partial processing.

【符号の説明】[Explanation of symbols]

1 数値制御装置 2 NC加工プログラム記憶部 3 NC加工プログラム解析実行部 4 加工範囲設定テーブル記憶部 5 出力制御部 6 出力インターフェース部 7 駆動部 8 入力部 1 Numerical Control Device 2 NC Machining Program Storage Section 3 NC Machining Program Analysis Execution Section 4 Machining Range Setting Table Storage Section 5 Output Control Section 6 Output Interface Section 7 Drive Section 8 Input Section

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】指令データを記憶した加工プログラム記憶
手段と、 加工範囲を設定した加工範囲設定テーブル記憶手段と、 前記指令データを前記加工範囲と比較して、前記加工範
囲内の場合には該指令データによる命令を実行し、前記
加工範囲外の場合には該命令を不実行とする制御手段
と、 前記制御手段により制御される駆動手段とを備えた数値
制御装置。
1. A machining program storage means for storing command data, a machining range setting table storage means for setting a machining range, comparing the command data with the machining range, and if the command data is within the machining range, A numerical control device comprising: a control unit that executes a command based on command data and that does not execute the command when it is outside the processing range; and a drive unit that is controlled by the control unit.
【請求項2】前記制御手段は、前記加工プログラム記憶
手段の前記指令データによるプログラム実行の際、前記
指令データによる軸移動範囲と前記加工範囲とを比較
し、前記軸移動範囲が、前記加工範囲内に全て含まれる
場合はそのまま軸移動を実行し、一部だけ含まれる場合
は加工範囲内の指令データに変換して軸移動を実行し、
一方、加工範囲内に全く含まれない場合はその軸移動を
不実行にすることを特徴とする請求項1に記載の数値制
御装置。
2. The control means, when executing a program according to the command data of the machining program storage means, compares the axis movement range according to the command data with the machining range, and the axis movement range is the machining range. If all are included, the axis movement is executed as it is, and if only part is included, it is converted to command data within the processing range and axis movement is executed.
On the other hand, when it is not included in the machining range at all, the axial movement is not executed, and the numerical controller according to claim 1.
【請求項3】前記制御手段は、前回の前記指令データの
座標値と今回の前記指令データの座標値とから前記軸移
動範囲を求めることを特徴とする請求項1又は2に記載
の数値制御装置。
3. The numerical control according to claim 1, wherein the control means obtains the axial movement range from a coordinate value of the previous command data and a coordinate value of the current command data. apparatus.
【請求項4】部分加工又は再加工ための前記加工範囲を
入力する入力手段とをさらに備えたことを特徴とする請
求項1又は2に記載の数値制御装置。
4. The numerical controller according to claim 1, further comprising input means for inputting the machining range for partial machining or remachining.
【請求項5】部分加工又は再加工ための開始点を入力す
る入力手段とをさらに備えたことを特徴とする請求項1
又は2に記載の数値制御装置。
5. An input means for inputting a starting point for partial processing or reprocessing is further provided.
Or the numerical controller according to 2.
【請求項6】前記指令データによる軸移動が、前記加工
範囲外から前記加工範囲内への軸移動であるかを判断
し、このような軸移動であると判断された場合、その軸
移動線と前記加工範囲の境界との交点又はその近傍を求
め、その交点又は近傍を開始点として設定する設定手段
とをさらに備えたことを特徴とする請求項1又は2に記
載の数値制御装置。
6. It is determined whether or not the axis movement according to the command data is an axis movement from outside the machining range to within the machining range, and if such axis movement is determined, the axis movement line is determined. 3. The numerical controller according to claim 1, further comprising: a setting unit that obtains an intersection point of the boundary of the machining range or its vicinity and sets the intersection point or the vicinity thereof as a start point.
【請求項7】部分加工又は再加工ための前記加工範囲又
は加工状況を表示するための表示手段とをさらに備えた
ことを特徴とする請求項1乃至5のいずれかに記載の数
値制御装置。
7. The numerical controller according to claim 1, further comprising display means for displaying the machining range or machining status for partial machining or remachining.
JP31996095A 1995-12-08 1995-12-08 Numerical controller Expired - Fee Related JP3660038B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31996095A JP3660038B2 (en) 1995-12-08 1995-12-08 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31996095A JP3660038B2 (en) 1995-12-08 1995-12-08 Numerical controller

Publications (2)

Publication Number Publication Date
JPH09160620A true JPH09160620A (en) 1997-06-20
JP3660038B2 JP3660038B2 (en) 2005-06-15

Family

ID=18116177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31996095A Expired - Fee Related JP3660038B2 (en) 1995-12-08 1995-12-08 Numerical controller

Country Status (1)

Country Link
JP (1) JP3660038B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226648A (en) * 2006-02-24 2007-09-06 Brother Ind Ltd Numerical controller, numerical control method and computer program
JP2013114425A (en) * 2011-11-28 2013-06-10 Jtekt Corp Numerical controller
DE102013010853A1 (en) 2012-07-05 2014-01-09 Fanuc Corporation Numerical control device having a program restart function

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226648A (en) * 2006-02-24 2007-09-06 Brother Ind Ltd Numerical controller, numerical control method and computer program
JP4654937B2 (en) * 2006-02-24 2011-03-23 ブラザー工業株式会社 Numerical control apparatus, numerical control method, and computer program
JP2013114425A (en) * 2011-11-28 2013-06-10 Jtekt Corp Numerical controller
DE102013010853A1 (en) 2012-07-05 2014-01-09 Fanuc Corporation Numerical control device having a program restart function
CN103529753A (en) * 2012-07-05 2014-01-22 发那科株式会社 Restart function with numerical program control device
CN103529753B (en) * 2012-07-05 2016-03-23 发那科株式会社 Possesses the numerical control device that program restarts function
US9494929B2 (en) 2012-07-05 2016-11-15 Fanuc Corporation Numerical controller having program restart function
DE102013010853B4 (en) 2012-07-05 2021-11-11 Fanuc Corporation Numerical control device having a program restart function

Also Published As

Publication number Publication date
JP3660038B2 (en) 2005-06-15

Similar Documents

Publication Publication Date Title
JP4119372B2 (en) Numerical control method and numerical control system
JP2641797B2 (en) Interactive numerical controller
JP2002373008A (en) Numerical controller
JP3660038B2 (en) Numerical controller
JPH05100733A (en) Working method of punch press machine
JP4059614B2 (en) Control device for 3D laser processing machine
JPH04114208A (en) Animation plotting system for nc program
JPH04252307A (en) Interactive numerical controller
JP3460747B2 (en) Numerical control unit
JPH06282318A (en) Mumerically controlled machine tool
JPH10124124A (en) Working program drawing method for numerical controller, and numerical controller provided with drawing function
JP2001154719A (en) Method for interpolating free curve
JPH09258808A (en) Motion controller programming system
JPH0566819A (en) Interactive automatic programming method
JPH0392907A (en) Numerical controller
JPH08328630A (en) Working locus display system
JP2005085095A (en) Numerical controller, parameter setting method for numerical controller, and numerical control program
JP2642451B2 (en) Numerical control unit
JP2537418B2 (en) Control program generator
JP2538391Y2 (en) Tool path display device for NC equipment
JP2005115669A (en) Numerical control device
JPH02256446A (en) Control method for machine tool with ic card
JP2533374B2 (en) Control program creation method
JPH04148306A (en) C axis working program preparing system
JPH04305703A (en) Method for starting working program for interactive numerical controller

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Effective date: 20040302

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040604

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040803

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: 20050215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050316

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20080325

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080325

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080325

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090325

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20100325

LAPS Cancellation because of no payment of annual fees