JPH06222821A - Numerical controller - Google Patents
Numerical controllerInfo
- Publication number
- JPH06222821A JPH06222821A JP1038393A JP1038393A JPH06222821A JP H06222821 A JPH06222821 A JP H06222821A JP 1038393 A JP1038393 A JP 1038393A JP 1038393 A JP1038393 A JP 1038393A JP H06222821 A JPH06222821 A JP H06222821A
- Authority
- JP
- Japan
- Prior art keywords
- data
- tool
- function
- range
- movable
- 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.)
- Withdrawn
Links
- 238000003860 storage Methods 0.000 claims abstract description 17
- 230000004044 response Effects 0.000 claims description 3
- 238000002360 preparation method Methods 0.000 claims description 2
- 239000013256 coordination polymer Substances 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 44
- 238000004364 calculation method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000000034 method Methods 0.000 description 7
- 230000002452 interceptive effect Effects 0.000 description 5
- 230000001276 controlling effect Effects 0.000 description 2
- 238000003754 machining Methods 0.000 description 2
- 238000005520 cutting process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003801 milling Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は加工プログラムを受けて
工作機械の動作を制御する数値制御装置に関し、特にス
トロークチェック機能を備えた数値制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control device for receiving a machining program and controlling the operation of a machine tool, and more particularly to a numerical control device having a stroke check function.
【0002】[0002]
【従来の技術】従来の工作機械を備えた数値制御装置で
は、工具等の可動範囲をチェックする方法として、スト
ロークチェック機能が広く採用されている。このストロ
ークチェック機能は、例えば予めパラメータ等に設定さ
れた工具の可動禁止範囲に、誤って工具が入った場合に
直ちにアラーム等の動作させるとともに、当該工具の動
作を停止させる機能である。2. Description of the Related Art In a conventional numerical control device equipped with a machine tool, a stroke check function is widely used as a method for checking the movable range of a tool or the like. This stroke check function is a function to immediately activate an alarm or the like and stop the operation of the tool when the tool is erroneously entered in the tool movement prohibited range preset in the parameters or the like.
【0003】こうして、例えば工作機械の本体部分や、
切削を行うテーブル外の領域等を上記可動禁止範囲とし
て設定することによって、ストロークチェック機能によ
り工具の破損を防止することができた。Thus, for example, the main body of a machine tool,
By setting the area outside the table where cutting is performed as the movable prohibited range, the tool can be prevented from being damaged by the stroke check function.
【0004】なお、近年では工作機械に自動工具交換装
置等が備えられたことにより、例えば加工工程ごとに一
つの工具を使用する等のように、一つの製品加工におい
て複数の工具を使用する傾向にある。In recent years, since machine tools are equipped with automatic tool changers and the like, there is a tendency to use a plurality of tools in one product processing, for example, one tool is used for each processing step. It is in.
【0005】[0005]
【発明が解決しようとする課題】しかし、複数の工具を
使用して製品加工を行う場合には、使用する工具ごとに
工具長や工具径が異なるために、上記可動禁止範囲を設
定しても使用する工具によっては可動禁止範囲に入り、
工具の破損を厳密に防止することができないという問題
点があった。However, when a product is machined using a plurality of tools, even if the movable prohibited range is set, the tool length and the tool diameter are different for each tool used. Depending on the tool used, it will be in the prohibited range,
There is a problem in that it is not possible to strictly prevent damage to the tool.
【0006】また、ストロークチェック機能では、例え
ばパラメータ等に工具の可動禁止範囲を設定すればよい
が、これを加工中に変更するには対応する設定指令を加
工プログラムに組み込む必要があるので、加工プログラ
ムの作成が煩雑になるという問題点があった。Further, in the stroke check function, for example, a tool movable prohibited range may be set in a parameter or the like, but in order to change this during machining, it is necessary to incorporate a corresponding setting command into the machining program. There is a problem that the program creation becomes complicated.
【0007】本発明はこのような点に鑑みてなされたも
のであり、加工プログラムで指令された工具ごとに可動
禁止範囲を自動的に設定する数値制御装置を、提供する
ことを目的とする。The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a numerical control device for automatically setting a movable prohibited range for each tool instructed by a machining program.
【0008】[0008]
【課題を解決するための手段】本発明では上記課題を解
決するために、加工プログラムを受けて、工作機械の動
作を制御する数値制御装置において、工具番号等の機能
番号と補正番号との対応関係を示す機能番号テーブル、
前記補正番号とオフセット値との対応関係を示す補正番
号テーブル、工具等の移動を禁止する基準領域を示す基
準禁止範囲データ及び工具ごとに移動を禁止する領域を
示す可動禁止範囲データを記憶する記憶手段と、オペレ
ータから指令された入力データを受けて、前記補正番号
テーブル及び前記基準禁止範囲データを前記記憶手段に
設定する補正値設定手段と、加工プログラムを受けて、
所定の範囲設定指令がなされた場合は前記基準禁止範囲
データ及び前記機能番号テーブルに基づいて前記可動禁
止範囲データを前記記憶手段に設定するとともに、スト
ロークチェックを行なって補間信号を出力する可動範囲
設定手段と、前記補間信号を受けて、補間パルスを出力
する補間手段と、を有することを特徴とする数値制御装
置が提供される。According to the present invention, in order to solve the above problems, in a numerical control device for receiving a machining program and controlling the operation of a machine tool, the correspondence between a function number such as a tool number and a correction number. Function number table showing the relationship,
A memory for storing a correction number table showing a correspondence relationship between the correction number and the offset value, reference prohibited range data showing a reference region for prohibiting movement of tools and the like, and movement prohibited range data showing a movement prohibited region for each tool. Means, receiving the input data instructed by the operator, receiving the correction value table and the correction value setting means for setting the reference prohibited range data in the storage means, and receiving the machining program,
When a predetermined range setting command is issued, the movable range setting data is set in the storage means based on the reference prohibited range data and the function number table, and a stroke range is checked to output an interpolation signal. There is provided a numerical control device comprising: a means and an interpolation means for receiving the interpolation signal and outputting an interpolation pulse.
【0009】[0009]
【作用】記憶手段には、工具番号等の機能番号と補正番
号との対応関係を示す機能番号テーブル、上記補正番号
とオフセット値との対応関係を示す補正番号テーブル、
工具等の移動を禁止する基準領域を示す基準禁止範囲デ
ータ及び工具ごとに移動を禁止する領域を示す可動禁止
範囲データを記憶する。In the storage means, a function number table showing the correspondence between the function numbers such as tool numbers and the correction numbers, a correction number table showing the correspondence between the correction numbers and the offset values,
The reference prohibition range data indicating the reference area in which the movement of the tool or the like is prohibited and the movement prohibition range data indicating the area in which the movement is prohibited are stored for each tool.
【0010】まず、補正値設定手段がオペレータから指
令された入力データを受けて、補正番号テーブル及び基
準禁止範囲データを記憶手段に設定する。そして、可動
範囲設定手段が加工プログラムを受けて、所定の範囲設
定指令がなされた場合は基準禁止範囲データ及び機能番
号テーブルに基づいて可動禁止範囲データを記憶手段に
設定するとともに、ストロークチェックを行なって補間
信号を出力する。この補間信号を補間手段が受けて補間
パルスを出力し、工作機械に内蔵されたサーボモータの
動作を制御することによって、工具等の移動を制御す
る。First, the correction value setting means receives the input data instructed by the operator, and sets the correction number table and the reference prohibited range data in the storage means. When the movable range setting means receives a machining program and a predetermined range setting command is issued, the movable range setting data is set in the storage means based on the reference prohibited range data and the function number table, and a stroke check is performed. And output an interpolation signal. The interpolation means receives the interpolation signal, outputs an interpolation pulse, and controls the operation of the servomotor built in the machine tool to control the movement of the tool or the like.
【0011】こうして、工具ごとに最適な可動禁止範囲
を自動的に設定するので、工具等の破損を厳密に防止す
ることができる。In this way, the optimum prohibited range is automatically set for each tool, so that damage to the tool or the like can be strictly prevented.
【0012】[0012]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の原理説明図であるとともに、実
施例を説明する図である。本発明の数値制御装置は記憶
手段1、補正値設定手段2、可動範囲設定手段3及び補
間手段4の各要素から構成される。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating the principle of the present invention and a diagram illustrating an embodiment. The numerical control device of the present invention comprises storage means 1, correction value setting means 2, movable range setting means 3 and interpolation means 4.
【0013】記憶手段1には、工具番号等の機能番号と
補正番号との対応関係を示す機能番号テーブル1a、上
記補正番号とオフセット値との対応関係を示す補正番号
テーブル1b、工具等の移動を禁止する基準領域を示す
基準禁止範囲データ1c及び工具ごとに移動を禁止する
領域を示す可動禁止範囲データ1dを記憶する。なお、
可動禁止範囲データ1dには、矩形領域の内部を禁止領
域とする内側可動禁止範囲データ又は矩形領域の外部を
禁止領域とする外側可動禁止範囲データを含む。また、
補正番号テーブル1b内のオフセット値には、工具長オ
フセット値及び工具径オフセット値等が設定される。In the storage means 1, a function number table 1a showing a correspondence relationship between a function number such as a tool number and a correction number, a correction number table 1b showing a correspondence relationship between the correction number and an offset value, and movement of a tool etc. The reference prohibition range data 1c indicating the reference area in which the movement is prohibited and the movable prohibition range data 1d indicating the area in which the movement is prohibited for each tool are stored. In addition,
The movable prohibited range data 1d includes inner movable prohibited range data in which the inside of the rectangular area is the prohibited area or outer movable prohibited range data in which the outside of the rectangular area is the prohibited area. Also,
A tool length offset value, a tool radius offset value, and the like are set as the offset values in the correction number table 1b.
【0014】補正値設定手段2は、オペレータから指令
された入力データを受けて、補正番号テーブル1b及び
基準禁止範囲データ1cを上記記憶手段1に設定する。
可動範囲設定手段3は、加工プログラムを受けて、所定
の範囲設定指令がなされた場合は基準禁止範囲データ1
c及び機能番号テーブル1aに基づいて可動禁止範囲デ
ータ1dを上記記憶手段1に設定するとともに、ストロ
ークチェックを行なって補間信号CSを出力する。な
お、可動範囲設定手段3は、NC機能の工具機能(以
下、「T機能」と呼ぶ。)又は準備機能(以下、「M機
能」と呼ぶ。)を受けて、工具等の移動方向ベクトルに
対応する可動禁止範囲データ1dを設定する。The correction value setting means 2 receives the input data instructed by the operator and sets the correction number table 1b and the reference prohibited range data 1c in the storage means 1.
The movable range setting means 3 receives the machining program, and when a predetermined range setting command is issued, the reference prohibited range data 1
Based on c and the function number table 1a, the movable range data 1d is set in the storage means 1 and the stroke check is performed to output the interpolation signal CS. The movable range setting means 3 receives the tool function (hereinafter, referred to as “T function”) or the preparation function (hereinafter, referred to as “M function”) of the NC function and determines the moving direction vector of the tool or the like. The corresponding movable prohibited range data 1d is set.
【0015】補間手段4は、可動範囲設定手段3から出
力された補間信号CSを受けて、補間パルスCPを出力
し、工作機械に内蔵されたサーボモータの動作を制御す
ることによって、工具等の移動を制御する。The interpolating means 4 receives the interpolating signal CS output from the movable range setting means 3, outputs an interpolating pulse CP, and controls the operation of a servomotor built in the machine tool, so that the tool etc. Control movement.
【0016】次に、本発明を実施する数値制御装置のハ
ードウェア構成について説明する。図2は、本発明を実
施する数値制御装置の一つである対話形数値制御装置の
全体構成を示すブロック図である。Next, the hardware configuration of the numerical controller for implementing the present invention will be described. FIG. 2 is a block diagram showing the overall configuration of an interactive numerical control device which is one of the numerical control devices embodying the present invention.
【0017】プロセッサ11はROM12に格納された
システムプログラムに従って数値制御装置全体を制御す
る。ROM12にはEPROMあるいはEEPROMが
使用される。RAM13にはSRAM等が使用され、各
種のデータあるいは入出力信号が格納される。不揮発性
メモリ14は上記記憶手段1に相当し、図示されていな
いバッテリによってバックアップされたCMOSが使用
され、電源切断後も保持すべき機能番号テーブル1a、
補正番号テーブル1b、基準禁止範囲データ1c、可動
禁止範囲データ1d及び加工プログラムやマクロ等が格
納される。The processor 11 controls the entire numerical controller according to the system program stored in the ROM 12. EPROM or EEPROM is used for the ROM 12. An SRAM or the like is used as the RAM 13, and various data or input / output signals are stored therein. The non-volatile memory 14 corresponds to the above-mentioned storage means 1, uses a CMOS backed up by a battery (not shown), and has a function number table 1a to be held even after the power is turned off.
A correction number table 1b, reference prohibited range data 1c, movable prohibited range data 1d, a machining program, a macro, etc. are stored.
【0018】なお、図1に示す補正値設定手段2、可動
範囲設定手段3及び補間手段4は、いずれも上記システ
ムプログラムの一つをプロセッサ11が実行することに
よって実現される機能である。The correction value setting means 2, the movable range setting means 3 and the interpolation means 4 shown in FIG. 1 are functions realized by the processor 11 executing one of the above system programs.
【0019】グラフィック制御回路21はディジタル信
号を表示用の信号に変換し、表示装置22に与える。表
示装置22にはCRTあるいは液晶表示装置が使用され
る。表示装置22は対話形式で加工プログラムを作成し
ていくときに、形状、加工条件等を表示する。グラフィ
ック制御回路21に送られるディジタル信号は、不揮発
性メモリ14に格納されている加工プログラムについ
て、プロセッサ11がROM12に格納された画面表示
処理プログラムを実行することによって送られる信号で
ある。キーボード23はカーソルキー、形状要素キー及
び数値キー等からなり、必要な図形データ及び加工デー
タ等をこれらのキーを使用して入力する。ソフトウェア
キー24はシステムプログラム等によって機能が変化す
るキーである。これらのグラフィック制御回路21、表
示装置22、キーボード23及びソフトウェアキー24
の各要素はCRT/MDIパネル20に備えられる。The graphic control circuit 21 converts the digital signal into a signal for display and gives it to the display device 22. A CRT or a liquid crystal display device is used as the display device 22. The display device 22 displays the shape, processing conditions, etc. when creating a processing program in an interactive manner. The digital signal sent to the graphic control circuit 21 is a signal sent by the processor 11 executing the screen display processing program stored in the ROM 12 with respect to the processing program stored in the non-volatile memory 14. The keyboard 23 is composed of cursor keys, shape element keys, numerical keys and the like, and the necessary graphic data and processing data are input using these keys. The software key 24 is a key whose function is changed by a system program or the like. These graphic control circuit 21, display device 22, keyboard 23 and software key 24
CRT / MDI panel 20.
【0020】ここで、表示装置22に表示される対話形
データの入力画面は、ROM12に格納されている。こ
の対話形データの入力画面において、加工プログラム作
成時にバックグラウンドアニメーションとして、工具の
全体の動作軌跡などが表示される。また、表示装置22
にはその入力画面により設定可能な作業又はデータが、
メニュー形式で表示される。メニューのうちどの項目を
選択するかは、メニューに対応して、画面下部に配置さ
れたソフトウェアキー24により行う。ソフトウェアキ
ー24の意味は各画面毎に変化する。なお、対話用の各
種データはRAM13又は不揮発性メモリ14に格納さ
れる。The input screen of the interactive data displayed on the display device 22 is stored in the ROM 12. On this interactive data input screen, the entire motion trajectory of the tool is displayed as a background animation when the machining program is created. In addition, the display device 22
Contains the work or data that can be set on the input screen.
Displayed in menu format. Which item in the menu is selected is selected by the software key 24 arranged at the bottom of the screen corresponding to the menu. The meaning of the software key 24 changes for each screen. Various kinds of data for dialogue are stored in the RAM 13 or the non-volatile memory 14.
【0021】軸制御回路15はプロセッサ11から軸の
移動指令を受けて、軸の指令をサーボアンプ16に出力
する。サーボアンプ16はこの軸の指令を受けて、工作
機械30内に設けられたサーボモータを駆動する。The axis control circuit 15 receives the axis movement command from the processor 11 and outputs the axis command to the servo amplifier 16. The servo amplifier 16 receives the command of this axis and drives the servo motor provided in the machine tool 30.
【0022】PMC(プログラマブル・マシン・コント
ローラ)18は加工プログラムの実行時に、T機能信号
(工具選択指令)等を受け取る。そして、この信号をシ
ーケンス・プログラムで処理するとともに動作指令を信
号で出力し、工作機械30を動作を制御する。また、工
作機械30から状態信号を受けて、シーケンス処理を行
い、プロセッサ11に必要な入力信号を転送する。A PMC (Programmable Machine Controller) 18 receives a T function signal (tool selection command) and the like when executing a machining program. Then, this signal is processed by the sequence program and an operation command is output as a signal to control the operation of the machine tool 30. Further, it receives a status signal from the machine tool 30, performs a sequence process, and transfers a necessary input signal to the processor 11.
【0023】なお、上記各構成要素はサーボアンプ16
及び表示装置22を除いて、いずれもバス19に互いに
結合されている。上記構成において、入力されたデータ
はプロセッサ11により処理され、加工プログラムが作
成される。作成されたプログラムデータは、対話形式で
使用される表示装置22に、逐次にバックグラウンドア
ニメーション表示される。また、不揮発性メモリ14に
加工プログラムとして格納された加工プログラムは、工
作機械30の加工シミュレーションの際にも実行され、
フォアグラウンドアニメーション表示される。The above-mentioned components are the servo amplifier 16
And the display device 22 are all coupled to the bus 19. In the above configuration, the input data is processed by the processor 11 to create a machining program. The created program data is sequentially background-animated on the display device 22 used interactively. The machining program stored as the machining program in the non-volatile memory 14 is also executed during the machining simulation of the machine tool 30,
Foreground animation is displayed.
【0024】図3は可動範囲を説明する概略図である。
図において、チャック100には工具101が握持され
ている。一般に、チャック100の中心が基準位置SP
となり、工作機械の基準となる面が基準面SSとなる。FIG. 3 is a schematic view for explaining the movable range.
In the figure, a tool 101 is held by a chuck 100. Generally, the center of the chuck 100 is the reference position SP.
Therefore, the reference surface of the machine tool becomes the reference surface SS.
【0025】このとき、上記基準位置SPと基準面SS
との間を可動範囲MAと呼ぶ。また、上記基準位置SP
と工具101の先端との間はZ軸のオフセット値(工具
長オフセット値)OFSz になり、工具101の先端と
上記基準面SSとの間は移動可能範囲MCとなる。ま
た、後述する補正値ベクトルデータ1ccは工具101
が図面下方向へ移動する場合を方向ベクトルV(-) と
し、逆に図示しないが図面上方向に移動する場合を方向
ベクトルV(+) とする。以降、こうした定義を基に説明
する。At this time, the reference position SP and the reference surface SS
The range between and is called the movable range MA. In addition, the reference position SP
And a tip of the tool 101 have a Z-axis offset value (tool length offset value) OFSz, and a movable range MC between the tip of the tool 101 and the reference plane SS. Further, the correction value vector data 1 cc described later is the tool 101.
Is the direction vector V (-) when it moves downward in the drawing, and conversely, it is the direction vector V (+) when it moves upward in the drawing although not shown. Hereinafter, description will be given based on these definitions.
【0026】次に、本発明の数値制御装置の動作につい
て、図4乃至図8を用いて説明する。なお、説明を簡単
にするために、所定の範囲設定指令がNC機能のT機能
であるとして説明する。Next, the operation of the numerical controller according to the present invention will be described with reference to FIGS. In addition, for simplification of description, it is assumed that the predetermined range setting command is the T function of the NC function.
【0027】図4はパラメータ設定画面の一例を示す図
である。図において、表示画面22aは図2に示す表示
装置22に表示される画面の一つであって、オペレータ
が所定の操作を行うことによって表示させたパラメータ
設定画面である。FIG. 4 is a diagram showing an example of the parameter setting screen. In the figure, a display screen 22a is one of the screens displayed on the display device 22 shown in FIG. 2, and is a parameter setting screen displayed by the operator performing a predetermined operation.
【0028】表示画面22aには、基準となる禁止範囲
を設定するための基準禁止範囲テーブル1ca、禁止領
域の内外を設定するための禁止領域データ1cb、図3
に示す工具101の移動方向をベクトルで表す補正値ベ
クトルデータ1cc、及び工具番号と補正番号との対応
関係を示す機能番号テーブル1aaがそれぞれ表示され
ている。On the display screen 22a, a standard prohibited range table 1ca for setting a standard prohibited range, prohibited area data 1cb for setting inside and outside of the prohibited area, and FIG.
The correction value vector data 1cc indicating the moving direction of the tool 101 shown in FIG. 2 and the function number table 1aa indicating the correspondence between the tool number and the correction number are displayed.
【0029】基準禁止範囲テーブル1caには、左欄に
示すX軸,Y軸,Z軸ごとに、中欄に示す最大値と右欄
に示す最小値とを設定する。このようなデータ設定は、
一般にキーボードに設けられた数値キー及びカーソルキ
ー等を用いて行う。こうして設定された最大値座標デー
タと最小値座標データとを結ぶ線分を対角線とする直方
体表面が、基準禁止範囲の境界となる。In the reference prohibited range table 1ca, the maximum value shown in the middle column and the minimum value shown in the right column are set for each of the X-axis, Y-axis and Z-axis shown in the left column. Such data settings are
Generally, this is done using the numeric keys and cursor keys provided on the keyboard. The surface of the rectangular parallelepiped whose diagonal is the line segment connecting the maximum value coordinate data and the minimum value coordinate data set in this way becomes the boundary of the reference prohibited range.
【0030】また、禁止領域データ1cbには、基準禁
止範囲テーブル1caで設定された直方体表面に対し
て、禁止範囲とする区域を内側Further, in the prohibited area data 1cb, the area to be the prohibited area is inside the rectangular parallelepiped surface set in the reference prohibited area table 1ca.
〔0〕又は外側〔1〕に
設定する。例えば、内側Set to [0] or outside [1]. For example, inside
〔0〕に設定すれば直方体内部
が基準禁止範囲となり、外側〔1〕に設定すれば直方体
外部が基準禁止範囲となる。When set to [0], the inside of the rectangular parallelepiped becomes the reference prohibited range, and when set to outside [1], the outside of the rectangular parallelepiped becomes the reference prohibited range.
【0031】さらに、補正値ベクトルデータ1ccは工
具101の移動方向を下方向Further, the correction value vector data 1cc indicates that the moving direction of the tool 101 is downward.
〔0〕又は上方向〔1〕に
設定する。例えば、下方向Set to [0] or upward [1]. For example, downward
〔0〕に設定すれば方向ベク
トルV(-) になり、上方向〔1〕に設定すれば方向ベク
トルV(+) になる。If it is set to [0], it becomes the direction vector V (-), and if it is set to [1] in the upward direction, it becomes the direction vector V (+).
【0032】そして、機能番号テーブル1aaには、左
欄に示す工具番号と右欄に示す補正番号とを設定する。
例えば、101行には、工具番号「01」に対応して補
正番号「03」が設定されている。なお、左欄には工具
番号に限ることなく、例えばNC機能のM機能に対応す
る補助番号等のように、加工プログラムで指令する所定
の範囲設定指令に応じた番号を設定してもよい。Then, the tool number shown in the left column and the correction number shown in the right column are set in the function number table 1aa.
For example, in line 101, the correction number “03” is set corresponding to the tool number “01”. It should be noted that the left column is not limited to the tool number, and a number corresponding to a predetermined range setting command instructed by the machining program may be set, such as an auxiliary number corresponding to the M function of the NC function.
【0033】図5は補正値設定画面の一例を示す図であ
る。図において、表示画面22bは図2に示す表示装置
22に表示される画面の一つであって、オペレータが所
定の操作を行うことによって表示させた補正値設定画面
である。FIG. 5 is a view showing an example of the correction value setting screen. In the figure, a display screen 22b is one of the screens displayed on the display device 22 shown in FIG. 2, and is a correction value setting screen displayed by the operator performing a predetermined operation.
【0034】表示画面22bには、補正番号とオフセッ
ト値との対応関係を示す補正番号テーブル1baが表示
されている。この補正番号テーブル1baには、左欄に
示す補正番号、中欄に示す工具長オフセット値及び右欄
に示す工具径オフセット値を、それぞれ設定する。例え
ば、201行には、補正番号「03」に対応して、工具
長オフセット値には「155」が、工具径オフセット値
には「50」がそれぞれが設定されている。On the display screen 22b, a correction number table 1ba showing the correspondence between the correction number and the offset value is displayed. The correction numbers shown in the left column, the tool length offset values shown in the middle column, and the tool radius offset values shown in the right column are set in the correction number table 1ba. For example, in line 201, “155” is set in the tool length offset value and “50” is set in the tool radius offset value, corresponding to the correction number “03”.
【0035】図6は可動禁止範囲を設定するための演算
方法を示す図であり、図6(a)には内側可動禁止範囲
の場合を演算テーブル3aに、図6(b)には外側可動
禁止範囲の場合を演算テーブル3bに、それぞれ示す。
なお、可動禁止最大値Pnb及び可動禁止最小値Pnsが図
1に示す可動禁止範囲データ1dに相当する。同様に、
基準禁止最大値Psb及び基準禁止最小値Pssが基準禁止
範囲データ1cに相当し、オフセットデータVは補正番
号テーブル1b内の工具長オフセット値及び工具径オフ
セット値に相当する。FIG. 6 is a diagram showing a calculation method for setting the movable prohibition range. In FIG. 6A, the case of the inner movable prohibition range is shown in the calculation table 3a, and in FIG. The cases of the prohibited range are shown in the calculation table 3b.
It should be noted that the maximum movement prohibition value Pnb and the minimum movement prohibition value Pns correspond to the movement prohibition range data 1d shown in FIG. Similarly,
The reference prohibition maximum value Psb and the reference prohibition minimum value Pss correspond to the reference prohibition range data 1c, and the offset data V corresponds to the tool length offset value and the tool radius offset value in the correction number table 1b.
【0036】演算式を決定する手順は次の通りである。
すなわち、まず最初に図4に示すパラメータ設定画面で
設定された禁止領域データ1cbに従って、演算テーブ
ル3a,3bのうちのいずれかの演算テーブルを選択す
る。例えば、図4では禁止領域データ1cbとして外側
〔1〕が設定されているので、外側可動禁止範囲の場合
の演算テーブル3bが選択される。The procedure for determining the arithmetic expression is as follows.
That is, first, one of the calculation tables 3a and 3b is selected according to the prohibited area data 1cb set on the parameter setting screen shown in FIG. For example, in FIG. 4, since the outside [1] is set as the prohibited area data 1cb, the calculation table 3b for the outside movable prohibited range is selected.
【0037】次に、選択された演算テーブル、すなわち
演算テーブル3bについて、上記禁止領域データ1cb
と同様に、図4に示すパラメータ設定画面で設定された
補正値ベクトルデータ1ccに従って演算式を決定す
る。例えば、図4では補正値ベクトルデータ1ccとし
て下方向Next, with respect to the selected operation table, that is, the operation table 3b, the prohibited area data 1cb is set.
Similarly, the calculation formula is determined according to the correction value vector data 1cc set on the parameter setting screen shown in FIG. For example, in FIG. 4, downward correction value vector data 1cc is used.
〔0〕、すなわち方向ベクトルV(-) が設定さ
れているので、301行に示す演算式が決定され、演算
がなされる。つまり、最大値では次式(1)が演算され
る。[0], that is, since the direction vector V (-) is set, the arithmetic expression shown in line 301 is determined and the arithmetic operation is performed. That is, the following equation (1) is calculated at the maximum value.
【0038】 Pnb=Psb ・・・(1) 同様に、最小値では次式(2)が演算される。 Pns=Pss+V ・・・(2) なお、オフセットデータVのうち、工具長オフセット値
がZ軸データとして、工具径オフセット値がX軸及びY
軸データとして演算される。Pnb = Psb (1) Similarly, the following equation (2) is calculated at the minimum value. Pns = Pss + V (2) In the offset data V, the tool length offset value is the Z axis data, and the tool radius offset value is the X axis and the Y axis.
Calculated as axis data.
【0039】例えば、加工プログラムで「T1」が指令
された場合は工具番号「01」が指令されたことになる
ので、図4に示す機能番号テーブル1aaの101行か
ら補正番号「03」が得られ、図5に示す補正番号テー
ブル1baの101行からオフセット値、すなわち工具
長オフセット値「155」及び工具径オフセット値「5
0」が得られる。したがって、図4に示す基準禁止範囲
テーブル1caに基づいて上記式(1),(2)を演算
すると、Pnb=(+3000, +3000, +3000 )及びPns=
(-2950, -2950, -2845 )になる。For example, when "T1" is commanded in the machining program, it means that the tool number "01" has been commanded, so the correction number "03" is obtained from the 101st line of the function number table 1aa shown in FIG. From the 101st row of the correction number table 1ba shown in FIG. 5, the offset value, that is, the tool length offset value “155” and the tool radius offset value “5” are set.
0 "is obtained. Therefore, when the above formulas (1) and (2) are calculated based on the reference prohibited range table 1ca shown in FIG. 4, Pnb = (+ 3000, +3000, +3000) and Pns =
(-2950, -2950, -2845).
【0040】こうして求められた式(1)に示す可動禁
止最大値Pnbと式(2)に示す可動禁止最小値Pnsとを
結ぶ線分を対角線とする直方体の外側が可動禁止範囲と
なる。逆に、この直方体の内側が図3に示す移動可能範
囲MC(Z軸のみ示す)となる。The outside of the rectangular parallelepiped whose diagonal line is the line segment connecting the maximum movement prohibition value Pnb shown in equation (1) and the minimum movement prohibition value Pns shown in equation (2) is the movement prohibition range. On the contrary, the inside of this rectangular parallelepiped is the movable range MC (only the Z axis is shown) shown in FIG.
【0041】図7は可動範囲設定手段3の処理手順を示
すフローチャートである。図において、Sの後に続く数
字はステップ番号を示す。 〔S1〕加工プログラムの指令が所定の範囲設定指令か
否かを判別する。具体的には、T機能又はM機能が指令
されたか否かを判別する。もし、T機能が指令された
(YES)ならばステップS2に進み、その他の機能指
令(NO)ならばステップS4に進む。 〔S2〕ステップS1で指令されたT機能に基づいて、
不揮発性RAM14に記憶された機能番号テーブル1a
から上記T機能に対応する補正番号を得る。その後、こ
の補正番号に基づいて、補正番号テーブル1bからオフ
セット値を得る。例えば、加工プログラムで「T1」が
指令された場合は工具番号「01」が指令されたことに
なるので、図4に示す機能番号テーブル1aaの101
行から補正番号「03」を得ることができる。同様に、
この補正番号「03」に基づいて、図5に示す補正番号
テーブル1baの101行からオフセット値、すなわち
工具長オフセット値「155」及び工具径オフセット値
「50」を得ることができる。 〔S3〕ステップS2で得られたオフセット値、図4に
示す基準禁止範囲テーブル1ca、禁止領域データ1c
b及び補正値ベクトルデータ1ccに基づいて、可動禁
止範囲データ1dを設定する。すなわち、まず禁止領域
データ1cbに従って図6に示す演算テーブル3a,3
bのうちのいずれかの演算テーブルを選択する。その
後、選択された演算テーブルについて、補正値ベクトル
データ1ccに従って演算式を決定し、その演算式に従
って基準禁止範囲テーブル1caで設定されたデータを
基に可動禁止範囲データ1dを演算して求める。 〔S4〕設定された可動禁止範囲データ1dに基づい
て、ストロークチェックを行う。もし、可動禁止範囲デ
ータ1dで規制された範囲に入っている場合は補間信号
CSを出力せず、そうでない場合には補間信号CSを出
力する。FIG. 7 is a flowchart showing the processing procedure of the movable range setting means 3. In the figure, the number following S indicates a step number. [S1] It is determined whether the command of the machining program is a predetermined range setting command. Specifically, it is determined whether the T function or the M function is commanded. If the T function is instructed (YES), the process proceeds to step S2, and if other function commands (NO), the process proceeds to step S4. [S2] Based on the T function instructed in step S1,
Function number table 1a stored in nonvolatile RAM 14
The correction number corresponding to the T function is obtained from. Then, based on this correction number, the offset value is obtained from the correction number table 1b. For example, when "T1" is instructed in the machining program, it means that the tool number "01" is instructed. Therefore, 101 in the function number table 1aa shown in FIG.
The correction number "03" can be obtained from the line. Similarly,
Based on this correction number "03", the offset value, that is, the tool length offset value "155" and the tool radius offset value "50" can be obtained from the 101st row of the correction number table 1ba shown in FIG. [S3] Offset value obtained in step S2, reference prohibited range table 1ca and prohibited area data 1c shown in FIG.
The movable prohibited range data 1d is set based on b and the correction value vector data 1cc. That is, first, according to the prohibited area data 1cb, the calculation tables 3a and 3 shown in FIG.
Select one of the calculation tables in b. After that, with respect to the selected calculation table, a calculation formula is determined according to the correction value vector data 1cc, and the movable prohibition range data 1d is calculated based on the data set in the reference prohibition range table 1ca according to the calculation formula. [S4] A stroke check is performed based on the set prohibited movement range data 1d. If it is within the range regulated by the movable prohibited range data 1d, the interpolation signal CS is not output, and if not, the interpolation signal CS is output.
【0042】こうして、工具ごとに最適な可動禁止範囲
データ1dを自動的に設定し、ストロークチェックを行
うように構成したので、工具等の破損を厳密に防止する
ことができる。In this way, since the optimum movable prohibited range data 1d is automatically set for each tool and the stroke is checked, it is possible to strictly prevent the damage of the tool and the like.
【0043】以上の説明では、本発明をフライス盤に適
用したが、旋盤等でも同様に適用することができる。ま
た、可動範囲設定手段3は、NC機能のT機能を受けて
可動禁止範囲データ1dを設定するように構成したが、
NC機能のM機能や「メタキャラクタ」と呼ばれる特定
の文字列等を受けて可動禁止範囲データ1dを設定する
ように構成してもよい。こうすることによって、オペレ
ータが分かりやすい文字列等で指令することができる。In the above description, the present invention is applied to a milling machine, but it can be applied to a lathe and the like as well. Further, the movable range setting means 3 is configured to set the movable prohibited range data 1d in response to the T function of the NC function.
The movable prohibited range data 1d may be set by receiving the M function of the NC function or a specific character string called "metacharacter". By doing so, it is possible for the operator to give an instruction with a character string or the like that is easy to understand.
【0044】さらに、基準禁止範囲データ1c及び可動
禁止範囲データ1dには、座標値の最大値と最小値とを
結ぶ線分を対角線とする直方体表面を境界として設定し
たが、中心点と半径による球面等の他の表面を境界とし
て設定してもよい。また、基準禁止範囲データ1c及び
可動禁止範囲データ1dは3軸データで構成したが、2
軸データで構成してもよい。Further, in the reference prohibited range data 1c and the movable prohibited range data 1d, a rectangular parallelepiped surface having a diagonal line connecting the maximum and minimum coordinate values is set as a boundary. You may set other surfaces, such as a spherical surface, as a boundary. Further, the reference prohibited range data 1c and the movable prohibited range data 1d are composed of three-axis data.
It may be composed of axis data.
【0045】そして、オフセットデータVとして補正番
号テーブル1b内の工具長オフセット値及び工具径オフ
セット値を適用したが、これに限ることなく工具101
の移動を禁止するための任意のオフセット値を適用して
もよい。Although the tool length offset value and the tool radius offset value in the correction number table 1b are applied as the offset data V, the tool 101 is not limited to this.
Any offset value for prohibiting the movement of the above may be applied.
【0046】[0046]
【発明の効果】以上説明したように本発明では、記憶手
段に機能番号テーブル、補正番号テーブル、基準禁止範
囲データ及び可動禁止範囲データを記憶し、補正値設定
手段が入力データを受けて補正番号テーブル及び基準禁
止範囲データを設定し、可動範囲設定手段が所定の範囲
設定指令がなされた場合に可動禁止範囲データを設定し
て補間信号を出力し、補間手段が補間パルスを出力する
ように構成したので、工具ごとに最適な可動禁止範囲を
自動的に設定することができ、工具等の破損を厳密に防
止することができる。As described above, in the present invention, the function number table, the correction number table, the reference prohibition range data and the movable prohibition range data are stored in the storage means, and the correction value setting means receives the input data and the correction number. The table and the reference prohibition range data are set, and when the movable range setting means issues a predetermined range setting command, the movable prohibition range data is set, the interpolation signal is output, and the interpolation means outputs the interpolation pulse. Therefore, the optimum prohibited range can be automatically set for each tool, and the damage of the tool or the like can be strictly prevented.
【0047】また、加工プログラムに可動禁止範囲デー
タを設定するための指令を別途に組み込む必要がないの
で加工プログラムの作成が容易であり、かつ、従来作成
された加工プログラムも適用することができる。Further, since it is not necessary to separately incorporate a command for setting the movement prohibited range data into the machining program, the machining program can be easily created, and the conventionally created machining program can be applied.
【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.
【図2】対話形数値制御装置の全体構成を示すブロック
図である。FIG. 2 is a block diagram showing an overall configuration of an interactive numerical control device.
【図3】可動範囲を説明する概略図である。FIG. 3 is a schematic diagram illustrating a movable range.
【図4】補正値設定画面の一例を示す図である。FIG. 4 is a diagram showing an example of a correction value setting screen.
【図5】パラメータ設定画面の一例を示す図である。FIG. 5 is a diagram showing an example of a parameter setting screen.
【図6】可動禁止範囲を設定するための演算方法を示す
図であり、(a)には内側可動禁止範囲の場合を、
(b)には外側可動禁止範囲の場合を、それぞれ示す。FIG. 6 is a diagram showing a calculation method for setting a movable prohibited range, wherein FIG.
(B) shows the case of the outer movable prohibited range, respectively.
【図7】可動範囲設定手段の処理手順を示すフローチャ
ートである。FIG. 7 is a flowchart showing a processing procedure of a movable range setting means.
11 プロセッサ 12 ROM 13 RAM 14 不揮発性メモリ 15 軸制御回路 16 サーボアンプ 18 PMC(プログラマブル・マシン・コントロー
ラ) 20 CRT/MDIパネル 21 グラフィック制御回路 22 表示装置 23 キーボード 24 ソフトウェアキー 30 工作機械11 Processor 12 ROM 13 RAM 14 Nonvolatile Memory 15 Axis Control Circuit 16 Servo Amplifier 18 PMC (Programmable Machine Controller) 20 CRT / MDI Panel 21 Graphic Control Circuit 22 Display Device 23 Keyboard 24 Software Key 30 Machine Tool
Claims (5)
作を制御する数値制御装置において、 工具番号等の機能番号と補正番号との対応関係を示す機
能番号テーブル、前記補正番号とオフセット値との対応
関係を示す補正番号テーブル、工具等の移動を禁止する
基準領域を示す基準禁止範囲データ及び工具ごとに移動
を禁止する領域を示す可動禁止範囲データを記憶する記
憶手段と、 オペレータから指令された入力データを受けて、前記補
正番号テーブル及び前記基準禁止範囲データを前記記憶
手段に設定する補正値設定手段と、 加工プログラムを受けて、所定の範囲設定指令がなされ
た場合は前記基準禁止範囲データ及び前記機能番号テー
ブルに基づいて前記可動禁止範囲データを前記記憶手段
に設定するとともに、ストロークチェックを行なって補
間信号を出力する可動範囲設定手段と、 前記補間信号を受けて、補間パルスを出力する補間手段
と、 を有することを特徴とする数値制御装置。1. A numerical controller for controlling the operation of a machine tool in response to a machining program, in which a function number table showing a correspondence between a function number such as a tool number and a correction number, the correction number and an offset value. A storage means for storing a correction number table indicating the correspondence, a reference prohibition range data indicating a reference area for prohibiting movement of tools, and a movement prohibition range data indicating a movement prohibition area for each tool, and an instruction from the operator. A correction value setting means for receiving the input data and setting the correction number table and the reference prohibition range data in the storage means, and a reference range prohibition data when a predetermined range setting command is given in response to a processing program. And based on the function number table, the movement prohibited range data is set in the storage means, and the stroke check is performed. A numerical control device comprising: a movable range setting means for performing an output of an interpolation signal, and an interpolation means for receiving the interpolation signal and outputting an interpolation pulse.
移動方向ベクトルに対応して前記可動禁止範囲データを
設定するように構成したことを特徴とする請求項1記載
の数値制御装置。2. The numerical controller according to claim 1, wherein the movable range setting means is configured to set the movable range data in correspondence with a moving direction vector of the tool or the like.
具機能(T機能)又は準備機能(M機能)を前記所定の
範囲設定指令として前記可動禁止範囲データを設定する
ように構成したことを特徴とする請求項1記載の数値制
御装置。3. The movable range setting means is configured to set the movable range data by using a tool function (T function) or a preparation function (M function) of an NC function as the predetermined range setting command. The numerical controller according to claim 1, which is characterized in that.
囲データは、矩形領域の内部を禁止領域とする内側可動
禁止範囲データ又は矩形領域の外部を禁止領域とする外
側可動禁止範囲データを含むように構成したことを特徴
とする請求項1記載の数値制御装置。4. The movable prohibited range data stored in the storage means includes inner movable prohibited range data in which the inside of the rectangular region is a prohibited region or outer movable prohibited range data in which the outside of the rectangular region is a prohibited region. The numerical control device according to claim 1, wherein the numerical control device is configured as described above.
ーブル内のオフセット値は、工具長補正データ又は工具
径補正データであるように構成したことを特徴とする請
求項1記載の数値制御装置。5. The numerical controller according to claim 1, wherein the offset value in the correction number table stored in the storage means is tool length correction data or tool diameter correction data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1038393A JPH06222821A (en) | 1993-01-26 | 1993-01-26 | Numerical controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1038393A JPH06222821A (en) | 1993-01-26 | 1993-01-26 | Numerical controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06222821A true JPH06222821A (en) | 1994-08-12 |
Family
ID=11748609
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1038393A Withdrawn JPH06222821A (en) | 1993-01-26 | 1993-01-26 | Numerical controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06222821A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025248592A1 (en) * | 2024-05-27 | 2025-12-04 | ファナック株式会社 | Program creation device, program creation method, and computer-readable storage medium |
-
1993
- 1993-01-26 JP JP1038393A patent/JPH06222821A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025248592A1 (en) * | 2024-05-27 | 2025-12-04 | ファナック株式会社 | Program creation device, program creation method, and computer-readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5465215A (en) | Numerical control method and apparatus | |
| JPH04176539A (en) | Interactive numerical control unit | |
| US5327350A (en) | Interactive type numerical control apparatus and method thereof | |
| JPS5833711A (en) | Numerical controller | |
| US5611032A (en) | Numerical control unit to specify movement zone of moving part | |
| EP0060039B1 (en) | Numerically controlled machine tool system | |
| JPH06222821A (en) | Numerical controller | |
| EP0604661A1 (en) | Conversational numeric control apparatus | |
| JP2771701B2 (en) | Interactive numerical controller | |
| JPH04217009A (en) | Method for teaching work program | |
| EP0509102A1 (en) | Method of working simulation | |
| JPH05297925A (en) | Interactive numerical controller | |
| JPH05204438A (en) | Screen display system for cnc | |
| EP0441977B1 (en) | Display system of numeric control apparatus | |
| JPS6252608A (en) | Interactive nc program generating method | |
| JPH06250722A (en) | Interactive numerical controller | |
| JPH0895623A (en) | Tool shift control system in cnc | |
| JPH04252307A (en) | Interactive numerical controller | |
| JPH05265532A (en) | Method for setting limit data in numerical controller | |
| JPH09146618A (en) | Limit check system for numerical controller | |
| JPH0950310A (en) | Numerical controller | |
| JPH05233050A (en) | Parameter input system for cnc | |
| WO1991007707A1 (en) | Nc program preparation method of interactive numeric controller or automatic programming apparatus | |
| JPH05341825A (en) | Cnc machining control system | |
| JPH0926810A (en) | Numerical controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20000404 |