JPS6133202B2 - - Google Patents
Info
- Publication number
- JPS6133202B2 JPS6133202B2 JP53064076A JP6407678A JPS6133202B2 JP S6133202 B2 JPS6133202 B2 JP S6133202B2 JP 53064076 A JP53064076 A JP 53064076A JP 6407678 A JP6407678 A JP 6407678A JP S6133202 B2 JPS6133202 B2 JP S6133202B2
- Authority
- JP
- Japan
- Prior art keywords
- tool
- axis
- limit value
- movement
- numerical control
- 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.)
- Expired
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Numerical Control (AREA)
- Safety Devices In Control Systems (AREA)
Description
本発明は、数値制御装置によつて制御される工
具や工作物の移動範囲を制限し工具や工作物さら
には工作機械そのものが干渉によつて破損するこ
とを防止する動作領域制限装置に関するもので、
その目的とするところは、工具または工作物が位
置する領域によつて移動可能な範囲を変更できる
ようにし、数値制御装置によつて制御される工具
や工作物の動作領域が長方形や直方体で囲めない
ような形状をしている場合でも動作領域の制限が
行なえるようにすることにある。
一搬の数値制御装置は、紙テープによつて与え
られる数値制御指令や手動送り指令等によつて各
軸のサーボモータパルスを分配し、これによつて
工具や工作物を指定された方向へ所定量だけ正確
に移動させるようになつているが、誤つた数値制
御指令をプログラムしたり、手動送り装置を誤つ
て操作したりすると、工具や工作物が予想外の領
域に移動して工具が工作物や治具に干渉して工具
や工作物を損傷してしまうことがある。
このため、一般の数値制御装置においては、工
具や工作物が予め定められた動作領域を越えて移
動したことを検出して工具や工作物の移動を停止
するようにしているが、従来においては、工具や
工作物の各軸方向の移動量が各軸毎に設定された
最大移動量を越えたことによつて工具や工作物が
動作領域を越えたことを検出するようにしていた
ため、工具や工作物が移動可能な動作領域は、制
御軸が2軸の場合には長方形、制御軸が3軸の場
合には直方体で囲まれた領域となつてしまう。こ
のため、障害物の両側に位置する2つの領域に亘
つて工具や工作物を移動させて工作物を数値制御
加工する機械のように、工具や工作物の動作領域
が長方形や直方体で囲めない工作機械において
は、動作領域の制限を設けた状態で工作物の加工
を行うことができず、動作領域の制限を設けるこ
とができなかつた。
本発明はかかる従来の欠点に鑑みてなされたも
ので、2軸の内、一方の軸に沿つて複数に分割さ
れた領域のそれぞれについて各領域の境界を示す
座標値と各領域で許容される他方の軸方向の移動
範囲の制限値とを対応づけて書込んだ制限値テー
ブルを設け、工具の特定の軸に沿う座標値と制限
値テーブルに記憶された各領域毎の座標値を順次
比較することで、複数の領域のいずれの領域に工
具が位置しているかを判別し、この後、この判別
された領域における制限値を制限値テーブルから
読出して、工具が他方の軸に沿つて制限値を越え
て移動しているか否かを判別し、これに基づいて
工具の移動を制限するようにしたことを特徴とす
るものである。
以下本発明の実施例を図面に基づいて説明す
る。第1図において1は図略の工作機械に取付け
られたサーボモータで、本実施例では工具を工作
物に対してX軸およびY軸方向へ移動させるため
に2個のサーボモータ1X,1Yが設けられてい
る。そして、これらのサーボモータ1X,1Yは
駆動回路2X,2Yおよびインタフエイス3を介
して中央演算処理装置4に接続されている。
5は紙テープ6にプログラムされている数値制
御指令を読み込むテープリーダ、7は手動で数値
制御指令を入力したり移動量の制限値等を設定し
たりするデータ入力装置、8は手動で工具を移動
させる手動パルス発生器で、これらはインタフエ
ース9を介して中央演算処理装置4に接続されて
いる。
10はコアメモリ等によつて構成された記憶装
置で、この記憶装置10内には、テープリーダ5
から与えられる数値制御指令に応じて各軸へパル
スを分配する数値制御用のプログラムと、工具が
動作領域を越えたことを検出してパルス分配を停
止する動作領域制限用のモニタプログラムとが記
憶されている。また、この記憶装置10内には、
読込まれた数値制御データを一時記憶するエリ
ア、工具の現在位置を記憶する現在位置カウンタ
をなすエリア、工具の移動量の制限値を記憶する
制限値テーブルをなすエリア等のデータエリアも
設けられている。
11は一定時間毎、例えば5mS毎に中央演算
処理装置4に割入信号IRS1を発生する割込信号
発生回路で、この割込信号発生回路11から割込
信号IRS1が与えられると、中央演算処理装置4
は数値制御データ読込ルーチンNCBRを実行し、
これに続いて動作領域制限用のモニタプログラム
のルーチンMONTを実行するようになつてい
る。また、12は中央演算処理装置4からプリセ
ツトされた周期で中央演算処理装置4に割込信号
IRS2を送出するプリセツトカウンタで、このプ
リセツトカウンタ12には数値制御データの速度
指令値から演算された周期のデータがプリセツト
されるようになつており、中央演算処理装置4は
プリセツトカウンタ12からの割込みが発生する
と、パルス分配ルーチンPGENを実行するように
なつている。
第2図は数値制御データ読込ルーチンNCBRを
示すもので、数値制御装置の運転が開始されると
このルーチンが最初に実行される。まず、ステツ
プ10ではパルス分配完了フラツグDENがセツ
トされ1の状態にあるかどうかをテストし、パル
ス分配中であるのかパルス分配が完了したのかを
判別する。パルス分配が完了していない場合には
これ以後のプログラムを飛ばしてモニタルーチン
MONTへジヤンプし、パルス分配が完了してい
る場合にはステツプ11へ移行して数値制御デー
タの読込みを行う。
ステツプ12になると、読込まれた数値制御デ
ータから工具の移動軸と移動方向を判別し、移動
軸レジスタMARに記憶する。本実施例では同時
に1軸の制御のみを行うようになつているため、
移動軸および移動方向に応じて移動軸レジスタを
構成する複数ビツトの内の1つのビツトのみに
“1”が書込まれるようになつている。すなわ
ち、数値制御データで指令された移動指令がX軸
+方向であれば移動軸レジスタMARの1ビツト
目に“1”が書込まれ、移動指令がX軸−方向、
Y軸+方向、Y軸−方向である場合に、それぞれ
移動軸レジスタMARの2ビツト目、3ビツト
目、4ビツト目に“1”が書込まれる。またステ
ツプ13になると、数値制御データで指令された
移動量を移動量カウンタでプリセツトする。そし
て、ステツプ14になると数値制御データの速度
指令からパルス分配周期Tを演算し、これをデー
タエリアに記憶する。この後、ステツプ15で分
配完了フラツグDENをリセツトした後、ステツ
プ16でプリセツトカウンタ12に零をセツト
し、モニタルーチンMONTへジヤンプする。
プリセツトカウンタ12に零がセツトされる
と、プリセツトカウンタ12は直ちにカウントア
ツプして中央演算処理装置4に割込信号IRS2が
与えられる。プリセツトカウンタ12からの割込
は割込信号発生回路11からの割込よりも優先度
が高く設定されているため、中央演算処理装置4
はプリセツトカウンタ12からの割込要求に応答
しパルス分配ルーチンPGENにジヤンプする。
第3図はこのパルス分配ルーチンPGENを示す
フローチヤートで、ステツプ20ではデータエリ
アに記憶されているパルス発振周期Tを読出して
プリセツトカウンタ12にセツトする。これによ
り、プリセツトカウンタ12からは発振周期Tに
応じた時間が経過した後で再び割込信号IRS2が
出力され、中央演算処理装置4に割込みが掛けら
れる。このため、プリセツトカウンタ12にセツ
トされる周期Tに応じた時間間隔でパルス分配ル
ーチンPGENが繰返えし実行されることになる。
パルス分配ルーチンPGENの2番目のステツ
プ、ステツプ21になると、移動軸レジスタ
MARがオール零の状態にあるかどうかを判別
し、オール零の場合にはパルス分配を行わずにベ
ースルーチンへ復帰する。これは、工具が動作領
域を越えて移動した場合には、後述するモニタル
ーチンMONTで移動軸レジスタMARをクリア
し、これによつてパルス分配を停止するようにな
つているためである。
一方、移動軸レジスタMARがオール零でない
場合には、ステツプ22へ移行し、移動方向を判
別する。そして、ステツプ23で該当軸へ+のパ
ルスまたは−のパルスを送出し、ステツプ24で
該当軸の現在位置カウンタを加算または減算す
る。この後、ステツプ25で移動量カウンタを減
算し、ステツプ26で移動量カウンタの計数値が
零になつたかどうかを検出する。そして、移動量
カウンタが零になつた場合にはステツプ27でパ
ルス分配完了フラツグDENをセツトしベースル
ーチンへ復帰する。
このようなパルス分配ルーチンPGENが繰返し
行われることにより、工具がX軸またはY軸方向
に所定量だけ正確に移動される。また、これに応
じて現在位置カウンタの計数値も増減され、工具
の現在位置を表わすデータがたえず修正される。
第4図は、工具の動作領域を制限する機能を有
するモニタルーチンMONTで、以下このモニタ
ルーチンの動作について説明する。ステツプ30
は工具の位置する領域に応じた移動量の制限値を
データエリア内の制限値テーブルから選択するプ
ログラムで、本実施例ではX軸が基準軸に設定さ
れており、工具のX軸座標値に応じたY軸方向の
移動量の制限値が制限値テーブルからサーチされ
る。そして、これに続くステツプ31で工具のY
軸方向の現在位置とサーチされた制限値とを比較
し、Y軸方向の現在位置が制限値を越えている場
合にはステツプ32で現在の移動方向を記憶し、
ステツプ33で移動軸レジスタMAR内の現在の
移動方向に応じたビツトを零にリセツトする。こ
れにより移動軸レジスタMARはオール零の状態
となりパルス分配は停止される。また、これに続
くステツプ34で外部にエラー表示が行われ、ベ
ースルーチンに復帰する。
なお、この後、手動操作等によつて、現在の移
動方向と反対の方向への移動指令が与えられ、工
具が動作領域の側へ移動される場合にはパルス分
配が再開される。これは、工具が動作領域からは
みだしていることがステツプ31で判別され、ス
テツプ32,33のルーチンを通つても現在の移
動方向以外のビツトはクリアされていないためで
ある。このため、工具を容易に動作領域に戻すこ
とができる。
次に具体的な例を上げて詳細な動作を説明す
る。
今、第6図に示すように数値制御によつて砥石
GをX軸およびY軸方向に移動させ、主軸50と
心押台51との間に狭持された工作物Wの加工を
行うとともに主軸50の後方に設けられたロータ
リドレツサ52によつて砥石の修正加工を行う数
値制御研削盤において、砥石Gの動作領域を二点
鎖線で示された境界線の上側の範囲に制限する場
合を考えると、工具の動作可能な領域は、図にお
いてP点を絶対原点とすると、第1表のように表
わされる。
The present invention relates to a motion range limiting device that limits the movement range of a tool or workpiece controlled by a numerical control device and prevents the tool or workpiece, or even the machine tool itself, from being damaged due to interference. ,
The purpose of this is to make it possible to change the movable range depending on the area where the tool or workpiece is located, so that the operating area of the tool or workpiece controlled by the numerical control device is surrounded by a rectangle or rectangular parallelepiped. The object of the present invention is to make it possible to limit the operating range even when the shape is such that it does not exist. The numerical control device for one-way transport distributes servo motor pulses for each axis based on numerical control commands given by paper tape, manual feed commands, etc., and thereby moves the tool or workpiece in a specified direction. Although the system is designed to accurately move a fixed amount, if an incorrect numerical control command is programmed or the manual feeder is operated incorrectly, the tool or workpiece may move to an unexpected area and the tool may not be able to machine the tool. It may interfere with objects or jigs and damage tools or workpieces. For this reason, general numerical control devices detect that the tool or workpiece has moved beyond a predetermined operating range and stop the movement of the tool or workpiece. , it was detected that the tool or workpiece exceeded the operating range when the amount of movement of the tool or workpiece in each axis direction exceeded the maximum movement amount set for each axis. The operating area in which the workpiece can move is a rectangular area when there are two control axes, and a rectangular parallelepiped area when there are three control axes. For this reason, the operating area of the tool or workpiece cannot be surrounded by a rectangle or rectangular parallelepiped, as in machines that numerically control the workpiece by moving the tool or workpiece across two areas located on either side of an obstacle. In machine tools, it is not possible to process a workpiece with a restriction on the operating area, and it has not been possible to set a restriction on the operating area. The present invention has been made in view of such conventional drawbacks, and includes coordinate values indicating the boundaries of each region for each of the regions divided into a plurality of regions along one of the two axes, and the coordinate values allowed in each region. A limit value table is created in which the limit values of the movement range in the other axis direction are written in correspondence with each other, and the coordinate values along a specific axis of the tool are sequentially compared with the coordinate values for each area stored in the limit value table. By doing this, it is determined which of the multiple regions the tool is located in, and then the limit value in this determined region is read from the limit value table, and the tool is restricted along the other axis. This feature is characterized in that it is determined whether or not the tool is moving beyond a value, and the movement of the tool is restricted based on this. Embodiments of the present invention will be described below based on the drawings. In FIG. 1, 1 is a servo motor attached to a machine tool (not shown), and in this embodiment, two servo motors 1X and 1Y are used to move the tool relative to the workpiece in the X-axis and Y-axis directions. It is provided. These servo motors 1X, 1Y are connected to a central processing unit 4 via drive circuits 2X, 2Y and an interface 3. 5 is a tape reader that reads the numerical control commands programmed on the paper tape 6; 7 is a data input device for manually inputting numerical control commands and setting limit values for the amount of movement; and 8 is for manually moving the tool. These are connected to the central processing unit 4 via an interface 9. Reference numeral 10 denotes a storage device composed of a core memory and the like, and a tape reader 5 is included in this storage device 10.
It stores a numerical control program that distributes pulses to each axis according to numerical control commands given by the controller, and a monitor program that limits the operating range to stop pulse distribution when it detects that the tool has exceeded the operating range. has been done. Moreover, in this storage device 10,
Data areas are also provided, including an area for temporarily storing read numerical control data, an area for forming a current position counter for storing the current position of the tool, and an area for forming a limit value table for storing limit values for the amount of tool movement. There is. Reference numeral 11 denotes an interrupt signal generating circuit that generates an interrupt signal IRS1 to the central processing unit 4 at fixed time intervals, for example, every 5 mS.When the interrupt signal IRS1 is given from the interrupt signal generating circuit 11, the central processing unit 4 Device 4
executes the numerical control data reading routine NCBR,
Following this, the routine MONT of the monitor program for limiting the operating area is executed. Further, 12 is an interrupt signal sent from the central processing unit 4 to the central processing unit 4 at a preset period.
This is a preset counter that sends out the IRS2, and the preset counter 12 is preset with cycle data calculated from the speed command value of the numerical control data. When an interrupt occurs, the pulse distribution routine PGEN is executed. FIG. 2 shows the numerical control data reading routine NCBR, which is first executed when the numerical control device starts operating. First, in step 10, a pulse distribution completion flag DEN is set and tested to see if it is in the state of 1, thereby determining whether pulse distribution is in progress or pulse distribution has been completed. If pulse distribution is not completed, the subsequent program is skipped and the monitor routine is started.
Jump to MONT, and if pulse distribution is completed, proceed to step 11 to read numerical control data. At step 12, the tool movement axis and movement direction are determined from the read numerical control data and stored in the movement axis register MAR. In this embodiment, only one axis is controlled at the same time, so
"1" is written in only one bit of a plurality of bits constituting the movement axis register depending on the movement axis and movement direction. That is, if the movement command specified by the numerical control data is in the + direction of the X-axis, "1" is written to the 1st bit of the movement axis register MAR, and if the movement command is in the - direction of the X-axis,
In the case of the Y-axis + direction and the Y-axis - direction, "1" is written to the 2nd, 3rd, and 4th bits of the movement axis register MAR, respectively. At step 13, the movement amount commanded by the numerical control data is preset in the movement amount counter. Then, at step 14, the pulse distribution period T is calculated from the speed command of the numerical control data and stored in the data area. Thereafter, in step 15, the distribution completion flag DEN is reset, and in step 16, the preset counter 12 is set to zero, and the process jumps to the monitor routine MONT. When the preset counter 12 is set to zero, the preset counter 12 immediately counts up and provides the central processing unit 4 with an interrupt signal IRS2. Since the interrupt from the preset counter 12 is set to have a higher priority than the interrupt from the interrupt signal generation circuit 11, the interrupt from the central processing unit 4
jumps to the pulse distribution routine PGEN in response to an interrupt request from the preset counter 12. FIG. 3 is a flowchart showing this pulse distribution routine PGEN. In step 20, the pulse oscillation period T stored in the data area is read out and set in the preset counter 12. As a result, the preset counter 12 outputs the interrupt signal IRS2 again after a time corresponding to the oscillation period T has elapsed, and the central processing unit 4 is interrupted. Therefore, the pulse distribution routine PGEN is repeatedly executed at time intervals corresponding to the period T set in the preset counter 12. At the second step of the pulse distribution routine PGEN, step 21, the movement axis register
It is determined whether MAR is in an all-zero state, and if all is zero, the process returns to the base routine without performing pulse distribution. This is because when the tool moves beyond the operating range, the movement axis register MAR is cleared in the monitor routine MONT, which will be described later, thereby stopping pulse distribution. On the other hand, if the movement axis register MAR is not all zero, the process moves to step 22 and the movement direction is determined. Then, in step 23, a + pulse or - pulse is sent to the relevant axis, and in step 24, the current position counter of the relevant axis is added or subtracted. Thereafter, in step 25, the movement amount counter is subtracted, and in step 26, it is detected whether the count value of the movement amount counter has become zero. If the movement amount counter becomes zero, the pulse distribution completion flag DEN is set in step 27, and the process returns to the base routine. By repeating such pulse distribution routine PGEN, the tool is accurately moved by a predetermined amount in the X-axis or Y-axis direction. In addition, the count value of the current position counter is also increased or decreased accordingly, and the data representing the current position of the tool is constantly corrected. FIG. 4 shows a monitor routine MONT having a function of limiting the operating range of the tool.The operation of this monitor routine will be explained below. Step 30
is a program that selects the limit value of the movement amount according to the area where the tool is located from the limit value table in the data area. In this example, the X-axis is set as the reference axis, and the X-axis coordinate value of the tool is The corresponding limit value of the amount of movement in the Y-axis direction is searched from the limit value table. Then, in the following step 31, the Y of the tool is
The current position in the axial direction is compared with the searched limit value, and if the current position in the Y-axis direction exceeds the limit value, the current moving direction is stored in step 32.
At step 33, the bit corresponding to the current direction of movement in the movement axis register MAR is reset to zero. As a result, the movement axis register MAR becomes all zeros, and pulse distribution is stopped. Further, in the subsequent step 34, an error message is displayed externally, and the process returns to the base routine. Note that after this, a movement command in the opposite direction to the current movement direction is given by manual operation or the like, and when the tool is moved toward the operating area, pulse distribution is restarted. This is because it is determined in step 31 that the tool is out of the operating range, and bits other than the current direction of movement are not cleared even after the routines of steps 32 and 33 are passed. Therefore, the tool can be easily returned to the working area. Next, detailed operations will be explained using a specific example. Now, as shown in FIG. 6, the grindstone G is moved in the X-axis and Y-axis directions by numerical control to process the workpiece W held between the main spindle 50 and the tailstock 51. In a numerically controlled grinding machine that corrects the grinding wheel using a rotary dresser 52 provided behind the main shaft 50, when the operating range of the grinding wheel G is limited to the range above the boundary line indicated by the two-dot chain line. Considering this, the movable area of the tool is expressed as shown in Table 1, assuming that point P in the figure is the absolute origin.
【表】
このように動作可能な領域を設定する場合、本
実施例ではデータ入力装置7によつて領域番号と
その領域のX軸座標値の最大値とY軸座標値の最
大値とを入力する。これにより、データエリアの
制限値テーブルには第2表のようなデータが書込
まれる。[Table] When setting an operable area in this way, in this embodiment, the area number, the maximum value of the X-axis coordinate value, and the maximum value of the Y-axis coordinate value of that area are input using the data input device 7. do. As a result, data as shown in Table 2 is written in the limit value table of the data area.
【表】
このような制限値テーブルからX軸座標値に応
じた制限値を選択する場合には第5図に示すよう
な選択ルーチンLVASが使用される。まず、ステ
ツプ40はステツプ41,42,43とともに判
別手段をなすもので、このステツプ40で読出カ
ウンタの計数値を1にセツトし、ステツプ41
で、読出カウンタで指定されたアドレスのX軸座
標値を読出す。最初は読出カウンタの計数値が1
であるためX軸座標値として500が読出される。
ステツプ42になると、工具のX軸方向の現在座
標値と制限値テーブルから読出されたX軸座標値
とを比較する。そして、制限値テーブルから読出
されたX軸座標値よりも現在座標値の方が大きい
場合には、ステツプ43で読出カウンタを歩進
し、次のアドレスのX軸座標値を読出す。以下同
様の動作を繰返し、現在座標値が制限値テーブル
から読出されたX軸座標値よりも小さいことが判
別されると、制限値読出手段を成すステツプ44
へ移行し、読出カウンタで指定されているアドレ
スのY軸座標値のデータを読出し制限値とする。
このため、X軸座標値が変化するとこれに応じて
Y軸方向への移動量が段階的に変化され、移動可
能な範囲が最適に制限される。これにより、第6
図に示すように、主軸50の両側に位置する2つ
の領域に亘つて工具を移動させて数値制御を行う
ような場合でも動作領域の制限を設けることがで
きる。
以上述べたように、本発明の動作領域制限装置
においては、工具の特定の軸に沿う座標値と制限
値テーブルに記憶された各領域毎の座標値を順次
比較することで、複数の領域のいずれの領域に工
具が位置しているかを判別し、この後、この判別
された領域における制限値を制限値テーブルから
読出して、工具が他方の軸に沿つて制限値を越え
て移動しているか否かを判別し、これに基づいて
工具の移動を制限するようにしたので、工具の1
軸方向の位置に応じて他軸方向への移動量の制限
値を段階的に変化させることができる。このた
め、工具や工作物の動作領域を長方形や直方体で
囲むことができないような数値制御工具機械を制
御する場合でも、動作領域を制限する制御を行う
ことができ、工具や工作物が干渉によつて破壊さ
れることを未然に防止できる利点がある。
また、本発明においては、領域判定を行うのに
最大で1軸方向に沿う領域数と同数の比較を行な
い、判定された領域において制限値を越えている
かの判定で1回の比較を行えば工具が許容動作領
域内にあるかどうかを判別でき、全体で考えると
最大で領域数+1回の比較のみで、工具が動作領
域から外れているか否かを判別できる。したがつ
て、判定処理をコンピユータで行う場合には、各
軸毎に領域判定を行い、各軸の判定結果を論理演
算して動作領域外か否かを判定する方式に比べ
て、判定に要する処理時間を大幅に短縮でき、パ
ルス分配等他の処理にあまり影響を与えずに判定
処理を行うことができる利点がある。
さらに、一方の軸に沿う動作領域の分割数が増
大した場合には、これに応じて制限値テーブルの
内容を追加修正すれば良く、分割数の増大にも容
易に対応できる利点がある。[Table] When selecting a limit value corresponding to the X-axis coordinate value from such a limit value table, a selection routine LVAS as shown in FIG. 5 is used. First, step 40, together with steps 41, 42, and 43, constitutes a determination means, in which the count value of the read counter is set to 1, and step 41
Then, the X-axis coordinate value of the address specified by the read counter is read out. At first, the count value of the read counter is 1.
Therefore, 500 is read out as the X-axis coordinate value.
At step 42, the current coordinate value of the tool in the X-axis direction is compared with the X-axis coordinate value read from the limit value table. If the current coordinate value is larger than the X-axis coordinate value read from the limit value table, the read counter is incremented in step 43 and the X-axis coordinate value of the next address is read out. Thereafter, similar operations are repeated, and when it is determined that the current coordinate value is smaller than the X-axis coordinate value read from the limit value table, step 44, which constitutes the limit value reading means, is executed.
The data at the Y-axis coordinate value of the address specified by the read counter is set as the read limit value.
Therefore, when the X-axis coordinate value changes, the amount of movement in the Y-axis direction is changed in a stepwise manner, and the movable range is optimally limited. As a result, the 6th
As shown in the figure, even when the tool is moved over two areas located on both sides of the spindle 50 to perform numerical control, the operating area can be limited. As described above, in the operating area limiting device of the present invention, by sequentially comparing the coordinate values along a specific axis of the tool and the coordinate values for each area stored in the limit value table, Determine in which region the tool is located, then read the limit value in this determined region from the limit value table, and check whether the tool is moving beyond the limit value along the other axis. Since the movement of the tool is restricted based on this, the movement of the tool is
The limit value of the amount of movement in other axial directions can be changed stepwise according to the axial position. Therefore, even when controlling a numerically controlled tool machine where the operating area of the tool or workpiece cannot be surrounded by a rectangle or rectangular parallelepiped, it is possible to perform control to limit the operating area and prevent the tool or workpiece from interfering. This has the advantage of preventing damage caused by twisting. In addition, in the present invention, in order to perform region determination, at most, the same number of comparisons as the number of regions along one axis is performed, and one comparison is performed to determine whether the determined region exceeds the limit value. It is possible to determine whether the tool is within the allowable operating range, and it is possible to determine whether the tool is out of the operating range by comparing the number of regions plus one at most when considered as a whole. Therefore, when the determination process is performed by a computer, the amount of time required for the determination is lower than the method in which the area is determined for each axis and logical operations are performed on the determination results for each axis to determine whether or not it is outside the operating area. This has the advantage that processing time can be significantly shortened and determination processing can be performed without significantly affecting other processing such as pulse distribution. Furthermore, when the number of divisions of the operating region along one axis increases, the content of the limit value table may be additionally modified accordingly, and there is an advantage that the increase in the number of divisions can be easily accommodated.
第1図は本発明にかかる動作領域制限装置を内
蔵する数値制御装置の実施例を示すブロツク図、
第2図は数値制御データ読込ルーチンを示すフロ
ーチヤート、第3図はパルス分配ルーチンを示す
フローチヤート、第4図はモニタルーチンを示す
フローチヤート、第5図は制限値を選択するルー
チンを示すフローチヤート、第6図は数値制御研
削盤における動作領域の設定状態を示す図であ
る。
1X,1Y……サーボモータ、2X,2Y……
駆動回路、4……中央演算処理装置、5……テー
プリーダ、7……データ入力装置、8……手動パ
ルス発生器、10……記憶装置、11……割込信
号発生回路、12……プリセツトカウンタ、30
……制限値を選択するステツプ、31……現在位
置を制限値と比較するステツプ、33……パルス
分配を停止するステツプ。
FIG. 1 is a block diagram showing an embodiment of a numerical control device incorporating an operating area limiting device according to the present invention;
Fig. 2 is a flowchart showing the numerical control data reading routine, Fig. 3 is a flowchart showing the pulse distribution routine, Fig. 4 is a flowchart showing the monitor routine, and Fig. 5 is a flowchart showing the limit value selection routine. FIG. 6 is a diagram showing the setting state of the operating range in the numerically controlled grinding machine. 1X, 1Y... Servo motor, 2X, 2Y...
Drive circuit, 4...Central processing unit, 5...Tape reader, 7...Data input device, 8...Manual pulse generator, 10...Storage device, 11...Interrupt signal generation circuit, 12... Preset counter, 30
. . . Step for selecting a limit value, 31 . . . Step for comparing the current position with the limit value, 33 . . . Step for stopping pulse distribution.
Claims (1)
て各軸のサーボモータにパルスを分配し工作物に
対して工具を相対的に2軸方向へ移動させる数値
制御装置において、前記各軸のサーボモータへ分
配されるパルスを計数して前記工具の現在位置を
記憶するとともに、前記2軸の内、一方の軸に沿
つて複数に分割された領域のそれぞれについて各
領域の境界を示す座標値と各領域で許容される他
方の軸方向の移動範囲の制限値とを対応づけて書
込んだ制限値テーブルを記憶する手段と、一定時
間毎に作動され前記制限値テーブルに記憶された
複数の座標値を順次読出して前記一方の軸に沿う
工具の現在位置と比較し前記工具がどの領域に位
置するかを判別する判別手段と、判別された領域
に対応した制限値を前記制限値テーブルから読出
す制限値読出手段と、前記工具の前記他軸方向へ
の移動量が前記制限値読出手段によつて読出され
た制限値を越えたことを判別する判別手段と、こ
の判別手段からの指令により前記他軸方向へのパ
ルスの分配を停止させる停止手段とを設けたこと
を特徴とする数値制御装置における動作領域制限
装置。1. In a numerical control device that distributes pulses to the servo motors of each axis according to movement commands given to numerical control data to move a tool in two axial directions relative to a workpiece, the servo motors of each axis The current position of the tool is stored by counting the distributed pulses, and coordinate values indicating the boundaries of each region and each region are calculated for each of the regions divided into a plurality of regions along one of the two axes. means for storing a limit value table written in association with a limit value of the movement range in the other axial direction allowed in the axial direction; determining means for sequentially reading and comparing with the current position of the tool along the one axis to determine in which region the tool is located; and a restriction for reading a limit value corresponding to the determined region from the limit value table. a value reading means; a determining means for determining whether the amount of movement of the tool in the other axis direction exceeds the limit value read by the limit value reading means; 1. An operating area limiting device for a numerical control device, comprising: stopping means for stopping distribution of pulses in the axial direction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6407678A JPS54155378A (en) | 1978-05-29 | 1978-05-29 | Operating area limiter for numerical control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6407678A JPS54155378A (en) | 1978-05-29 | 1978-05-29 | Operating area limiter for numerical control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54155378A JPS54155378A (en) | 1979-12-07 |
| JPS6133202B2 true JPS6133202B2 (en) | 1986-08-01 |
Family
ID=13247626
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6407678A Granted JPS54155378A (en) | 1978-05-29 | 1978-05-29 | Operating area limiter for numerical control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS54155378A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58163001A (en) * | 1982-03-23 | 1983-09-27 | Toyoda Mach Works Ltd | Numerical controller equipped with interference checking function |
| JPS6093514A (en) * | 1983-10-27 | 1985-05-25 | Fanuc Ltd | Interface device of numerical controller |
-
1978
- 1978-05-29 JP JP6407678A patent/JPS54155378A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54155378A (en) | 1979-12-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4815000A (en) | Numerical controller with operation halting function for data revision | |
| US6597142B2 (en) | Apparatus and method for setting control parameters of machining apparatus | |
| US8244386B2 (en) | Machine tool system control having automatic safe repositioning | |
| JPS6141002B2 (en) | ||
| JPS59142613A (en) | Restart controller of numerical control working | |
| US4740902A (en) | Numerical control apparatus having memory storage for machine patterns, plural individually selectable remachining patterns, and control parameters | |
| JPS6133202B2 (en) | ||
| JPH0630011B2 (en) | Numerical control Machining restart control method | |
| JP2672595B2 (en) | Tool replacement method | |
| JP2676512B2 (en) | Program restart method | |
| JPH0653335B2 (en) | Numerical control program machining simulation method | |
| JPS61152351A (en) | Machine tool with function of returning to original position | |
| JP2926524B2 (en) | Numerical controller with trial cutting function | |
| JPH0412482B2 (en) | ||
| JP7748037B2 (en) | Numerical Control Device | |
| JP2685832B2 (en) | Numerically controlled grinding machine | |
| JP4261708B2 (en) | NC machining equipment | |
| JPS641269B2 (en) | ||
| JPH07253810A (en) | Numerical control processing unit | |
| JPH0634921Y2 (en) | Numerical control machine tool | |
| JP2612364B2 (en) | Numerical control unit | |
| JPS6327907Y2 (en) | ||
| JPH07334220A (en) | Automatic operating system for numerical controller | |
| JPH0790445B2 (en) | Machine Tools | |
| KR0176539B1 (en) | Cutting control method of numerical control device and device |