JP2780729B2 - Numerical control unit - Google Patents
Numerical control unitInfo
- Publication number
- JP2780729B2 JP2780729B2 JP11468592A JP11468592A JP2780729B2 JP 2780729 B2 JP2780729 B2 JP 2780729B2 JP 11468592 A JP11468592 A JP 11468592A JP 11468592 A JP11468592 A JP 11468592A JP 2780729 B2 JP2780729 B2 JP 2780729B2
- Authority
- JP
- Japan
- Prior art keywords
- speed
- machining program
- buffer
- program
- 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 - Fee Related
Links
Landscapes
- Numerical Control (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、工作機械を制御する
数値制御装置に関し、より詳細には、外部のNC加工プ
ログラム作成装置,内蔵したNC自動プログラム作成装
置等から数値制御装置に与えられる加工プログラムが切
削中に途切れないようにすることにより、加工プログラ
ムが途切れて切削が一時停止してしまい、切削の停止を
原因として被加工物の切削面にカッタマークが付くとい
う事態の発生を防止できるようにした数値制御装置に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller for controlling a machine tool, and more particularly, to a machining provided to a numerical controller from an external NC machining program creating device, a built-in NC automatic program creating device, or the like. By preventing the program from being interrupted during cutting, it is possible to prevent a situation in which the machining program is interrupted and the cutting is temporarily stopped, and a cut mark is attached to the cut surface of the workpiece due to the stop of the cutting. The present invention relates to a numerical control device as described above.
【0002】[0002]
【従来の技術】図12は、数値制御装置に加工プログラ
ムを供給する方法を説明するための説明図である。図に
おいて、50は数値制御装置(以下、「NC装置」とい
う)、54はホストコンピュータと呼ばれ、NC装置5
0に供給する加工プログラムを生成する等の処理を行う
外部NC加工プログラム作成装置である。以下、この図
12に基づいて、外部NC加工プログラム作成装置54
で生成した加工プログラムをNC装置50に供給する方
法について説明する。2. Description of the Related Art FIG. 12 is an explanatory diagram for explaining a method of supplying a machining program to a numerical controller. In the figure, reference numeral 50 denotes a numerical control device (hereinafter referred to as “NC device”), 54 denotes a host computer, and the NC device 5
This is an external NC machining program creation device that performs processing such as generating a machining program to be supplied to the CPU. Hereinafter, based on this FIG.
A method for supplying the machining program generated in the step (1) to the NC device 50 will be described.
【0003】NC装置50に加工プログラムを供給する
ための第1の方法は、外部NC加工プログラム作成装置
54で加工プログラムを作成し、作成した加工プログラ
ムをNC装置50内に設けられた最大2Mbyte(通
常100Kbyte)程度のメモリ51に転送すること
により、NC装置50に加工プログラムを供給するとい
うものである。その後、NC装置50は、メモリ51か
ら加工プログラムを読み出して供給バッファ52に一時
記憶し、供給バッファ52から加工プログラムを読み出
しつつ工作機械を制御して、被加工物の切削等を行うこ
とになる。この第1の方法は、一般にメモり運転と呼ば
れている。A first method for supplying a machining program to the NC device 50 is to create a machining program in an external NC machining program creating device 54 and to copy the created machining program to a maximum of 2 Mbytes ( The processing program is supplied to the NC device 50 by transferring the data to the memory 51 of usually about 100 Kbytes. Thereafter, the NC device 50 reads the machining program from the memory 51 and temporarily stores the machining program in the supply buffer 52, controls the machine tool while reading the machining program from the supply buffer 52, and performs cutting of the workpiece. . This first method is generally called memory driving.
【0004】第2の方法は、外部NC加工プログラム作
成装置54で作成した加工プログラムをFD(フロッピ
ーディスク)55等の記憶媒体に一旦記憶し、このFD
55を介してNC装置50に加工プログラムを供給する
というものである。NC装置50は、入出力機器56を
介してFD55から加工プログラムを読み出して供給バ
ッファ52に記憶し、供給バッファ52から加工プログ
ラムを読み出しつつ工作機械を制御して、被加工物の切
削等を行うことになる。In a second method, a machining program created by an external NC machining program creating device 54 is temporarily stored in a storage medium such as an FD (floppy disk) 55,
A processing program is supplied to the NC device 50 via the CPU 55. The NC device 50 reads a machining program from the FD 55 via the input / output device 56, stores the machining program in the supply buffer 52, controls the machine tool while reading the machining program from the supply buffer 52, and performs cutting of the workpiece. Will be.
【0005】第3の方法は、外部NC加工プログラム作
成装置54で作成した加工プログラムを紙テープ57に
一旦記録し、この紙テープ57を介してNC装置50に
加工プログラムを供給するというものである。NC装置
50は、NCテープリーダ53を介して紙テープ57に
記録された加工プログラムを読み出して供給バッファ5
2に記憶し、供給バッファ52から加工プログラムを読
み出しつつ工作機械を制御して、被加工物の切削等を行
うことになる。A third method is to temporarily record the processing program created by the external NC processing program creating device 54 on a paper tape 57 and supply the processing program to the NC device 50 via the paper tape 57. The NC device 50 reads the processing program recorded on the paper tape 57 via the NC tape reader 53, and
2 to control the machine tool while reading out the machining program from the supply buffer 52, thereby cutting the workpiece.
【0006】さらに、第4の方法は、上記第1〜第3の
方法のように何らかの記憶(記録)媒体を介することな
く、外部NC加工プログラム作成装置54で作成した加
工プログラムを直接NC装置50の供給バッファ52に
転送することによって、NC装置50に加工プログラム
を供給するというものである。NC装置50は、供給バ
ッファ52から加工プログラムを読み出しつつ工作機械
を制御することになる。この第4の方法は一般にBTR
(Behind Tape Reader)運転と呼ばれ、図12に示すよ
うに外部NC加工プログラム作成装置54とNC装置5
0とを例えばRS−232−Cのような通信回線58を
介して接続し、外部NC加工プログラム作成装置54で
作成した加工プログラムをNC装置50で受信しつつ、
受信した加工プログラムに基づいて工作機械を制御して
被加工物の切削を行うようにしたものである(このと
き、図12のメモリ51に加工プログラムが記憶される
ことはない)。Further, a fourth method is that the machining program created by the external NC machining program creating device 54 is directly transferred to the NC device 50 without using any storage (recording) medium as in the first to third methods. The processing program is supplied to the NC device 50 by transferring the processing program to the supply buffer 52. The NC device 50 controls the machine tool while reading the machining program from the supply buffer 52. This fourth method is generally a BTR
(Behind Tape Reader) operation, and as shown in FIG.
0, for example, via a communication line 58 such as RS-232-C, and while the NC device 50 receives the machining program created by the external NC machining program creating device 54,
The machine tool is controlled based on the received machining program to cut the workpiece (at this time, the machining program is not stored in the memory 51 of FIG. 12).
【0007】ところで、図12に示した外部NC加工プ
ログラム作成装置54は、パーソナルコンピュータ等を
用いて構成され、a)加工プログラムを作成するための
自動プログラム作成機能,b)加工プログラムをハード
ディスク等に保管し、NC装置50に供給する機能,
c)加工プログラムを修正・コピー・マージ等する編集
および入出力機能を有している。これらの機能は用意さ
れたソフトウエアに基づいて実現される。なお、外部N
C加工プログラム作成装置54は、製品毎に仕様が異な
り、上記a)〜c)の各機能の全てを実現できる製品
や、a)の機能のみ、b)の機能のみ、a)およびc)
の機能のみを有する製品等が存在している。The external NC machining program creating device 54 shown in FIG. 12 is constructed using a personal computer or the like, and has a) an automatic program creating function for creating a machining program; Function to store and supply to NC device 50,
c) It has editing and input / output functions for modifying, copying, merging, etc., the machining program. These functions are realized based on prepared software. Note that external N
The C processing program creation device 54 has different specifications for each product, and can realize all of the above functions a) to c), only the function a), only the function b), a) and c).
There are products and the like having only the functions described above.
【0008】ここで、a)の自動プログラム作成機能と
は、対話型でデータを入力できるようにすることによ
り、プログラマによるプログラミングの負荷の軽減を図
るためのものである。より具体的に、自動プログラム作
成機能は、加工図面に基づいて人手により行われていた
ワークの取り付け方法の設定,切削手順(工程分
割,荒削り・仕上がり削りの切込量と工具通路)の設
定,切削工具・ツールホルダ・機械の取り付け位置の
選定,切削条件(主軸回転数・送り速度)の決定,
工具経路の座標値計算,加工プログラムの打ち込み,
加工プログラムの確認等の作業についての労力を軽減
するためのものである(特に、・・に関する)。The automatic program creation function a) is intended to reduce the programming load on the programmer by enabling data to be input interactively. More specifically, the automatic program creation function is used to set the work mounting method, which has been performed manually based on the machining drawing, to set the cutting procedure (process division, depth of cut for roughing / finish cutting and tool path), Selection of cutting tool / tool holder / machine mounting position, determination of cutting conditions (spindle speed / feed speed),
Calculates tool path coordinate values, inputs machining programs,
This is to reduce the labor required for operations such as confirmation of a machining program (particularly, for...).
【0009】また、上記自動プログラム作成機能を用い
て作成する1本の加工プログラムの中には、比較的短時
間で計算できる「穴明け加工形状」,「フライス加工形
状」および「輪郭加工形状」,やや時間のかかる「ポケ
ット加工形状」,長時間かかる「3次元加工形状」等の
加工が混在している。ここで、短時間で計算できる「フ
ライス加工形状」の場合は処理開始から加工プログラム
が生成されるまで1秒もかからないのに対し、長時間か
かる「3次元加工形状」の場合は30秒以上かかる場合
がある。これは「3次元加工形状」の場合の計算処理に
おいて、「フライス加工形状」に比べて非常に複雑な計
算(4倍精度フローティング・三角関数・平方根演算
等)を行わなければならないからである。[0009] One machining program created by using the automatic program creation function includes a "drilling shape", a "milling shape" and a "contouring shape" which can be calculated in a relatively short time. Processing such as "pocket processing shape" which takes a little time and "three-dimensional processing shape" which takes a long time are mixed. Here, it takes less than one second from the start of processing to the generation of a machining program in the case of a "milling shape" which can be calculated in a short time, whereas it takes 30 seconds or more in the case of a "three-dimensional shape" which requires a long time. There are cases. This is because, in the calculation processing for the “three-dimensional processing shape”, a very complicated calculation (four-fold precision floating, trigonometric function, square root operation, etc.) must be performed as compared with the “milling processing shape”.
【0010】上述した第1〜第4の方法を実現するため
には、a)の自動プログラム作成機能で加工プログラム
を作成し、b)の機能である「加工プログラムをハード
ディスク等に保管し、NC装置50に供給する機能」が
用いられることになる。ただし、上記第4の方法である
BTR運転は、外部NC加工プログラム作成装置54で
作成される加工プログラムが膨大な量で、物理的にメモ
り51の容量を超える場合、または、メモリ51に消し
たくない加工プログラムが存在しかつメモリ51の空き
領域が少なく外部NC加工プログラム作成装置54で作
成される加工プログラムの量がその空き領域を超えてし
まう場合において、オペレータがFD55等の記憶媒体
または紙テープ57を経由してNC運転を行うことが面
倒な場合に用いられる。In order to realize the above-described first to fourth methods, a machining program is created by the automatic program creating function of a), and the processing program stored in a hard disk or the like, which is the function of b) The function to supply to the device 50 "will be used. However, the BTR operation, which is the fourth method, is performed when the machining program created by the external NC machining program creating device 54 is an enormous amount and physically exceeds the capacity of the memory 51, or is erased in the memory 51. When there is a machining program that the user does not want to have and the free area of the memory 51 is small and the amount of the machining program created by the external NC machining program creating device 54 exceeds the free area, the operator can use a storage medium such as the FD 55 or a paper tape. It is used when performing the NC operation via 57 is troublesome.
【0011】一般にプレス加工の型やモールド加工の型
を製作するための金型加工において3次元自由曲面を加
工する場合には、任意の曲線を加工するためにその任意
の曲線を微小な直線に分割し、分割した直線の集合とし
て上記任意の曲線を表現した加工プログラム(微小線分
プログラム)を作成することが一般に行われている(以
下、この微小な直線の長さのことを「微小線分長」と記
述する)。この場合、任意の曲線を微小な直線の集合と
して表現するため、加工プログラムのデータ量は膨大な
ものとなり、多いものでは数Mbyte〜数十Mbyt
eにもなる。そのため、このような膨大な量の加工プロ
グラムを図12に示した最大2Mbyte(通常100
Kbyte)程度のメモリ51に記憶することはできな
い。また、このような膨大な量の加工プログラムを第2
の方法のようにFD55等の記憶媒体に記憶し、または
第3の方法のように紙テープ57に記録してNC装置5
0に供給することは非常に面倒である。そのため、BT
R運転が行われることになる。In general, when a three-dimensional free-form surface is machined in a die working for manufacturing a press working die or a mold working die, the arbitrary curve is formed into a minute straight line in order to process an arbitrary curve. It is common practice to create a machining program (small line segment program) expressing the above-mentioned arbitrary curve as a set of divided straight lines (hereinafter, the length of this minute straight line is referred to as Length)). In this case, since an arbitrary curve is represented as a set of minute straight lines, the amount of data of the machining program becomes enormous, and in many cases, several Mbytes to several tens Mbytes.
e. For this reason, such an enormous amount of machining programs are stored in a maximum of 2 Mbytes (typically 100 Mbytes) shown in FIG.
Kbyte) of memory cannot be stored. In addition, such a huge amount of machining programs are
The method is stored in a storage medium such as the FD 55 as in the method described above, or recorded on the paper tape 57 as in the third method.
Feeding to zero is very cumbersome. Therefore, BT
R operation will be performed.
【0012】また、第4の方法は、外部NC加工プログ
ラム作成装置54で作成される加工プログラムが膨大な
量で、物理的にメモり51の容量を超える場合、また
は、メモリ51に消したくない加工プログラムが存在し
かつメモリ51の空き領域が少なく外部NC加工プログ
ラム作成装置54で作成される加工プログラムの量がそ
の空き領域を超えてしまう場合において、外部NC加工
プログラム作成装置54に製品仕様として加工プログラ
ムをハードディスク等に保管する機能がない場合におい
ても用いられる。In the fourth method, the machining program created by the external NC machining program creating device 54 is enormous and physically exceeds the capacity of the memory 51 or does not want to be erased in the memory 51. When the machining program exists and the free area of the memory 51 is small and the amount of the machining program created by the external NC machining program creating device 54 exceeds the free area, the external NC machining program creating device 54 specifies the product specifications. It is used even when there is no function of storing the processing program on a hard disk or the like.
【0013】続いて、上述したように加工プログラムの
供給を受けるNC装置自体の構成および動作について説
明する。図13は、従来における工作機械を制御するた
めのNC装置の構成を示すブロック図であり、図におい
て、72は通信手段、73は受信バッファ、74はプロ
グラム解析手段、75は補間手段、76は速度計算手
段、77は駆動部であり、71は上記各手段を含むNC
装置であり、図12に示したNC装置50に対応するも
のである。Next, the configuration and operation of the NC device itself that receives the supply of the machining program as described above will be described. FIG. 13 is a block diagram showing a configuration of a conventional NC apparatus for controlling a machine tool. Speed calculating means, 77 is a drive unit, 71 is an NC including the above means
This is a device corresponding to the NC device 50 shown in FIG.
【0014】なお、図13に示す受信バッファ73は、
図12に示した供給バッファ52に対応するものであ
り、4000文字程度の加工プログラムを記憶すること
ができる。また、図13に示す通信手段72は、図12
に示した外部NC加工プログラム作成装置54やNCテ
ープリーダ53から加工プログラムを受信し、受信バッ
ファ73に転送するためのものである。すなわち、図1
3は、図12に示した外部NC加工プログラム作成装置
54(BTR運転の場合)やNCテープリーダ53から
通信手段72を介して直接NC装置71の受信バッファ
73に加工プログラムを供給する場合の構成を示したも
のである。The reception buffer 73 shown in FIG.
This corresponds to the supply buffer 52 shown in FIG. 12, and can store a processing program of about 4000 characters. The communication means 72 shown in FIG.
The processing program is received from the external NC processing program creating device 54 and the NC tape reader 53 shown in FIG. That is, FIG.
Reference numeral 3 denotes a configuration in a case where the processing program is supplied directly from the external NC processing program creating device 54 (in the case of BTR operation) or the NC tape reader 53 shown in FIG. It is shown.
【0015】次に図13および図14を用いて、このN
C装置71の動作について説明する。図14は、図13
に示したNC装置71の動作を示すフローチャートであ
る。まず、NC装置71にサイクルスタートがかけられ
るとNC装置71に接続されたNCテープリーダ(図1
3に図示せず)またはコンピュータ(外部NC加工プロ
グラム作成装置:図13において図示せず)から通信手
段72を介して受信バッファ73に加工プログラムを受
信する(S78)。次に、受信した該加工プログラムを
プログラム解析手段74が解析し(S79)、プログラ
ム解析手段74の解析結果から速度計算手段76が工具
送り(補間)速度を計算する(S80)。次に、補間手
段75がプログラム解析手段74の解析結果と速度計算
手段76の計算結果から補間処理を実行し(S81)、
補間手段75の補間データに基づいて駆動部77がモー
タを駆動して(S82)、図示していない被工作機械を
制御し、被加工物の切削等を行う。Next, referring to FIG. 13 and FIG.
The operation of the C device 71 will be described. FIG.
6 is a flowchart showing the operation of the NC device 71 shown in FIG. First, when a cycle start is applied to the NC device 71, the NC tape reader connected to the NC device 71 (FIG. 1)
3) or a computer (external NC machining program creation device: not shown in FIG. 13) receives the machining program in the reception buffer 73 via the communication means 72 (S78). Next, the program analysis means 74 analyzes the received machining program (S79), and the speed calculation means 76 calculates the tool feed (interpolation) speed from the analysis result of the program analysis means 74 (S80). Next, the interpolation means 75 executes interpolation processing from the analysis result of the program analysis means 74 and the calculation result of the speed calculation means 76 (S81),
The drive unit 77 drives the motor based on the interpolation data of the interpolation means 75 (S82), and controls a work machine (not shown) to cut the work.
【0016】また、他のNC装置として、自動プログラ
ム装置を内蔵し、この自動プログラム装置から加工プロ
グラムの供給を受けることができるように構成されたN
C装置も存在している。すなわち、このNC装置は、上
述した第1〜第4の方法に加えて、自装置に内蔵された
自動プログラム装置から加工プログラムの供給を受ける
ことができるものである。As another NC apparatus, an automatic programming device is incorporated, and the NC program is configured to be able to receive a machining program from the automatic programming device.
There is also a C device. That is, in addition to the above-described first to fourth methods, the NC device can receive a supply of a machining program from an automatic program device incorporated in the NC device.
【0017】NC装置に内蔵された自動プログラム装置
(以下、「AP」という)は、上述した外部自動プログ
ラム作成装置54の自動プログラム作成機能と同様に、
対話型でデータを入力することにより、プログラマによ
るプログラミングの負荷の軽減を図ることを目的とした
装置である。そして、NC装置に内蔵して構成されるこ
とにより、後に図を用いて説明するように、NC側部分
のハードウエア資源(CPU,ROM,RAM,表示
器,キー等)を利用することができることや、NC装置
のオペレータが自分のノウハウで加工プログラムを作成
することが可能なNC装置を構成できるという利点があ
る。The automatic program device (hereinafter referred to as "AP") built in the NC device has the same function as the automatic program creation function of the external automatic program creation device 54 described above.
This device aims to reduce the load of programming by a programmer by inputting data interactively. By being built in the NC device, hardware resources (CPU, ROM, RAM, display, keys, etc.) on the NC side can be used as described later with reference to the drawings. Also, there is an advantage that the NC device operator can configure an NC device capable of creating a machining program with its own know-how.
【0018】図15は、AP内蔵型のNC装置のハード
ウェア構成を示すブロック図である。図において、30
は装置全体の制御や演算を実行するCPU、32はNC
処理を実行するためのソフトウェアを格納するNC側R
OM、34はNC処理時のワーク領域であるNC側RA
M、36はAP処理を実行するためのソフトウェアを格
納するAP側ROM、38はAP処理時のワーク領域で
あるAP側RAMである(以下、NC側ROM32とN
C側RAM34をNC側と略し、AP側ROM36とA
P側RAM38をAP側と略す)。FIG. 15 is a block diagram showing a hardware configuration of an NC device incorporating an AP. In the figure, 30
Is a CPU for controlling and calculating the entire apparatus, and 32 is an NC
NC side R that stores software for executing processing
OM, 34 is a work area at the time of NC processing.
M and 36 are AP-side ROMs for storing software for executing the AP processing, and 38 is an AP-side RAM which is a work area for the AP processing (hereinafter, the NC-side ROM 32 and N
C side RAM 34 is abbreviated as NC side, AP side ROM 36 and A
The P-side RAM 38 is abbreviated as the AP side).
【0019】また、40は加工プログラム記憶RAMで
あり、AP側で生成されたNC用加工プログラムおよび
後述する入出力部42から入力されたNC用加工プログ
ラムの各種の記憶バッファとして機能し、NC運転時、
NC側によりプログラムが取り出され解析されて数値制
御が実行される。Reference numeral 40 denotes a machining program storage RAM, which functions as various storage buffers for the NC machining program generated on the AP side and the NC machining program input from the input / output unit 42 to be described later. Time,
The NC side fetches and analyzes the program and executes numerical control.
【0020】42は入出力部であり、NC運転起動、N
C運転休止など外部からのスイッチ、補間機能、主軸機
能を42aからの入出力、キーデータ入力部42bから
の入力、外部とのNC用加工プログラム入出力等を行
う。44は図12に示した外部NC加工プログラム作成
装置54に該当する外部NC加工プログラム作成装置で
あり、パーソナルコンピュータ等を用い、外部でNC用
加工プログラムを作成し、入出力部42に印加するもの
で、これは内蔵されたAP側ROM36、RAM38と
は異なり外部からの入出力機器である。46は表示部で
あり、NC側の運転状態の表示、AP側の自動決定デー
タの表示等をディスプレイ46a上に実行する。48は
駆動部であり、NC側で数値制御されたデータに対し増
幅処理等を実行し、サーボモータ48aを駆動する。Reference numeral 42 denotes an input / output unit for starting NC operation,
It performs input / output of switches, interpolation functions, and spindle functions from the outside such as C operation suspension from the 42a, input from the key data input section 42b, input / output of NC machining programs to / from the outside, and the like. Reference numeral 44 denotes an external NC machining program creation device corresponding to the external NC machining program creation device 54 shown in FIG. 12, which externally creates an NC machining program using a personal computer or the like, and applies it to the input / output unit 42. This is an external input / output device, unlike the built-in AP-side ROM 36 and RAM 38. Reference numeral 46 denotes a display unit, which displays on the display 46a the display of the operating state on the NC side, the display of automatically determined data on the AP side, and the like. Numeral 48 denotes a drive unit which performs amplification processing and the like on data numerically controlled on the NC side and drives the servo motor 48a.
【0021】図16は、図15に示したNC装置におい
て、AP側および外部NC加工プログラム作成装置のい
ずれかから加工プログラムを入力してNC運転を行う場
合における信号の流れを示すブロック図である。なお、
外部NC加工プログラム作成装置から加工プログラムの
供給を受ける場合は、上記BTR運転に該当する。図に
おいて、10はAP側であり、NC運転起動に際し、A
P入力モードであればNC用加工プログラムを生成供給
し、後述する供給バッファ16にセットする。12は外
部NC加工プログラム作成装置であり、一般的に外部入
出力機器と呼ばれ、NC運転起動に際しNC用加工プロ
グラムを生成供給し、後述する入出力部14に印加す
る。14は入出力部であり、NC運転起動に際し外部機
器入力モード(BTR運転)であれば外部NC加工プロ
グラム作成装置12に起動をかけ、その出力データであ
るNC用加工プログラムを入力して、パリティチェック
等を実行し、後述する供給バッファ16にセットする。FIG. 16 is a block diagram showing a flow of signals in the case of performing an NC operation by inputting a machining program from either the AP side or an external NC machining program creating device in the NC apparatus shown in FIG. . In addition,
When receiving the supply of the machining program from the external NC machining program creation device, this corresponds to the BTR operation. In the figure, reference numeral 10 denotes an AP side, and when starting NC operation, A
In the case of the P input mode, an NC machining program is generated and supplied, and set in the supply buffer 16 described later. Reference numeral 12 denotes an external NC machining program creating apparatus, which is generally called an external input / output device, generates and supplies an NC machining program when starting NC operation, and applies the NC machining program to an input / output unit 14 described later. Reference numeral 14 denotes an input / output unit which, when starting the NC operation, starts the external NC machining program creating device 12 if the external device input mode (BTR operation) is used, inputs an NC machining program as output data thereof, and outputs a parity. A check or the like is executed and set in the supply buffer 16 described later.
【0022】16は図12に示した供給バッファ52に
該当する供給バッファであり、例えば、1ブロック3〜
120文字の加工プログラムを250文字分記憶するた
めのNC用加工プログラム記憶領域を有している。この
供給バッファ16は、例えば加工プログラムが1ブロッ
ク平均15文字の場合、15ブロックの加工プログラム
を記憶することができる。そして、供給バッファ16
は、AP側10または外部NC加工プログラム作成装置
12により生成されたNC用加工プログラムを入力して
1ブロックずつ溜め、全てのNC用加工プログラム記憶
領域に加工プログラムを記憶すると(以下、NC用加工
プログラム記憶領域の全てに加工プログラムが記憶され
た状態を供給バッファ16が「満杯」になると記述す
る)、後述する消化バッファ20に全ての加工プログラ
ムを一括転送する。加工プログラムを消化バッファ20
に転送すると、供給バッファ16は空状態となるため、
AP側10または外部NC加工プログラム作成装置12
にデータの転送が要求され、再度1ブロックずつ供給バ
ッファ16中に加工プログラムが記憶されていく。な
お、供給バッファ16に記憶する1ブロック分の加工プ
ログラムは可変であるため、供給バッファ16が満杯で
あるとしてもその末尾には空き領域が生じている場合が
ある。Reference numeral 16 denotes a supply buffer corresponding to the supply buffer 52 shown in FIG.
It has an NC machining program storage area for storing 250 characters of a 120 character machining program. For example, when the processing program has an average of 15 characters per block, the supply buffer 16 can store the processing program of 15 blocks. And the supply buffer 16
When the NC machining program generated by the AP 10 or the external NC machining program creating device 12 is input, the NC machining program is stored for each block, and the machining program is stored in all NC machining program storage areas (hereinafter, NC machining). The state in which the machining programs are stored in all of the program storage areas is described as “supply buffer 16 becomes“ full ”), and all machining programs are collectively transferred to digestion buffer 20 described later. Digestion buffer 20 for processing program
, The supply buffer 16 becomes empty,
AP side 10 or external NC machining program creation device 12
Is requested, and the machining program is stored in the supply buffer 16 one block at a time. Since the processing program for one block stored in the supply buffer 16 is variable, even if the supply buffer 16 is full, an empty area may be generated at the end thereof.
【0023】20は消化バッファであり、供給バッファ
16と同様に、複数ブロックのNC用加工プログラム記
憶領域から構成されている。消化バッファ20は、供給
バッファ16からNC用加工プログラムを入力して記憶
し、後述するNC側22に1ブロックずつデータを送
り、全てのデータをNC側22に送ると空状態になり、
再度供給バッファ16にデータの転送を要求する。Reference numeral 20 denotes a digestion buffer, which, like the supply buffer 16, is composed of a plurality of blocks of NC machining program storage areas. The digestion buffer 20 inputs and stores the NC machining program from the supply buffer 16 and sends data to the NC side 22 described later one block at a time, and becomes empty when all data is sent to the NC side 22.
It requests the supply buffer 16 to transfer data again.
【0024】22はNC側であり、消化バッファ20か
らNC用加工プログラムを1ブロックずつ取り出し、解
析し、工具送り速度に対応して補間演算等を行う。ま
た、AP側10または外部NC加工プログラム作成装置
12にNC運転起動等の制御信号も通知している。24
は駆動部であり、NC側22で補間計算された数値制御
データの増幅等を行いサーボモータ24aを駆動する。Reference numeral 22 denotes an NC side, which extracts an NC machining program from the digestion buffer 20 one block at a time, analyzes the program, and performs an interpolation operation or the like corresponding to the tool feed speed. In addition, a control signal such as an NC operation start is notified to the AP side 10 or the external NC machining program creation device 12. 24
Is a drive unit, which drives the servo motor 24a by amplifying the numerical control data interpolated and calculated by the NC side 22 and the like.
【0025】次に、NC側22のNC運転時における消
化動作を図16および図17に示すフローチャートを参
照して説明する。ここで、消化動作とは、消化バッファ
20からNC用加工プログラムを1ブロック単位で取り
出し、解析し、工具送り速度に対応して補間演算等を行
うことを意味するものとし、以下の説明において単に消
化という場合もこの消化動作を意味するものとする。ま
ず、NC側22からAP側10または外部NC加工プロ
グラム作成装置12にNC運転起動を行い、AP側10
または外部NC加工プログラム作成装置12から加工プ
ログラムを入力し、供給バッファを満杯にしておく。次
に、消化バッファ20が空か否かを判断し(S40)、
空でなければAのルートを通りステップ50へジャンプ
し、反対に、空であればステップ42へ移行する。次
に、供給バッファ16が空か否かを判断し(S42)、
空であればBのルートを通り、一連の処理を終了する。
反対に、空でなければ供給バッファ16の内容を消化バ
ッファ20に転送する(S44)。Next, the digestion operation during the NC operation of the NC side 22 will be described with reference to the flowcharts shown in FIGS. Here, the digestion operation means that the NC machining program is taken out from the digestion buffer 20 in units of one block, analyzed, and interpolation calculation or the like is performed in accordance with the tool feed speed. Digestion also means this digestion operation. First, the NC operation is started from the NC side 22 to the AP side 10 or the external NC machining program creation device 12, and the AP side 10 is started.
Alternatively, a machining program is input from the external NC machining program creation device 12, and the supply buffer is filled. Next, it is determined whether the digestion buffer 20 is empty (S40),
If it is not empty, it jumps to step 50 through the route of A, and if it is empty, it proceeds to step 42. Next, it is determined whether or not the supply buffer 16 is empty (S42).
If it is empty, the process goes through the route of B, and a series of processing ends.
Conversely, if not empty, the contents of the supply buffer 16 are transferred to the digestion buffer 20 (S44).
【0026】次に、消化バッファ20からNC加工プロ
グラムを1ブロック(例えば、G01X−100.Y−
100.;)を取り出す(S50)。次に、指令された
工具送り速度(F100)に対応して移動量(X−10
0.Y−100.)に応じ補間演算を行う(S52)。
その後、補間演算したデータを駆動部24に出力して
(S54)一連の処理を終了する。その後、駆動部24
がサーボモータを動作させ、所定の速度(F100)で
所定の移動(X−100.Y−100.)をさせ、完了
すると再度ステップ40〜54に従った消化動作が繰り
返される。Next, one block (for example, G01X-100.Y-
100. ;) Is taken out (S50). Next, the moving amount (X-10) corresponding to the commanded tool feed speed (F100).
0. Y-100. ) Is performed (S52).
After that, the data subjected to the interpolation calculation is output to the drive unit 24 (S54), and a series of processes is ended. After that, the driving unit 24
Operates the servo motor to perform a predetermined movement (X-100.Y-100.) At a predetermined speed (F100), and upon completion, the digestion operation according to steps 40 to 54 is repeated again.
【0027】以上のように消化バッファ20にNC用加
工プログラムがあるときはAルートを通り、NC用加工
プログラムが無くなるとステップ44において、供給バ
ッファ16の内容を消化バッファ20に転送するように
構成されている。As described above, when there is an NC machining program in the digestion buffer 20, the program passes through the route A, and when there is no NC machining program, the contents of the supply buffer 16 are transferred to the digestion buffer 20 in step 44. Have been.
【0028】図18は、AP内蔵型NC装置においてA
P側10から加工プログラムの供給を受ける場合のAP
側10とNC側22のタイミングを示すタイミングチャ
ートである。AP内蔵形NC装置では通常1個のCPU
30(図15参照)がAP側処理とNC側処理を行う。
この場合、一般にNC側処理の優先度が高く(フォアグ
ランド処理)、その空き時間を利用してAP処理が実行
される(バックグラウンド処理)。これは、NC側22
での補間演算処理は高いリアルタイム性能が要求される
ため、NC側22の補間演算処理をAP側10の処理の
ために中断するとシステムへの影響が非常に大きいから
である。具体的には、図18に示すように、NC側(消
化側)が消化している間(A1〜An)にAP側(供給
側)がその空き時間を利用して、次のNC用加工プログ
ラム(B)を作成するようにしている。そして、NC側
の消化(An)が終わると次のタイミングからすぐ次の
データ(B1)が消化できるようになっており、バッフ
ァ間の指令の途切れが生じないよう工夫されている。同
様に、NC側がNC用加工プログラム(B)を消化して
いる間に、さらに次のNC用加工プログラム(C)をA
P側で作成する。AP内蔵型NC装置においてAP側1
0から加工プログラムの供給を受ける場合は、このよう
な処理が繰り返し実行される。FIG. 18 shows an example of the NC device with a built-in AP.
AP when receiving the supply of machining program from P side 10
6 is a timing chart showing timings of a side 10 and an NC side 22. Normally, one CPU is used for the NC device with built-in AP.
30 (see FIG. 15) performs AP-side processing and NC-side processing.
In this case, generally, the priority of the NC-side processing is high (foreground processing), and the AP processing is executed using the idle time (background processing). This is the NC side 22
The reason for this is that since the interpolation calculation processing in the above requires high real-time performance, interrupting the interpolation calculation processing on the NC side 22 for the processing on the AP side 10 greatly affects the system. Specifically, as shown in FIG. 18, while the NC side (digestion side) is digesting (A1 to An), the AP side (supply side) uses the idle time to perform the next NC processing. The program (B) is created. Then, when the digestion (An) on the NC side is completed, the next data (B1) can be digested immediately from the next timing, so that a command is not interrupted between buffers. Similarly, while the NC side is digesting the NC machining program (B), the next NC machining program (C) is further changed to A.
Create on P side. AP side 1 in NC device with built-in AP
When the machining program is supplied from 0, such processing is repeatedly executed.
【0029】なお、NC側の1ブロック(例えば、A
1)の補間時間が長い(移動量が大または工具送り速度
が小の)とき、次ブロック(A2)の起動までの時間が
長くなり、それだけAP側の走れる時間が多くなる。逆
に、NC側の1ブロックの補間時間が短い(移動量が小
または工具送り速度が大の)とき、次ブロックの起動ま
での時間が短くなり、それだけAP側の走れる時間は狭
められる。また、AP側では簡単な形状(例えば、フラ
イス四角形状)であれば単時間でNC用加工プログラム
を作成できるが、複雑な形状(例えば、ポケット非定型
形状)であれば長時間の演算時間を要する。Note that one block (for example, A
When the interpolation time of 1) is long (the moving amount is large or the tool feed speed is small), the time until the activation of the next block (A2) becomes long, and the running time on the AP side increases accordingly. Conversely, when the interpolation time of one block on the NC side is short (the moving amount is small or the tool feed speed is large), the time until the start of the next block is short, and the running time on the AP side is narrowed accordingly. On the AP side, an NC machining program can be created in a single time for a simple shape (for example, a milling square shape), but a long calculation time is required for a complex shape (for example, a pocket irregular shape). It costs.
【0030】その他、この発明に関連する参考技術文献
として、特開平1−320505号公報に開示されてい
る「数値制御方式」、特開昭59−116809号公報
に開示されている「数値制御装置」、特開昭60−93
513号公報に開示されている「数値制御装置における
アプリケーションシステムのデータ入出力器」、特開昭
62−120953号公報に開示されている「倣い加工
の同期運転方法」がある。Other reference documents relating to the present invention include a "numerical control method" disclosed in Japanese Patent Application Laid-Open No. 1-320505 and a "numerical control device" disclosed in Japanese Patent Application Laid-Open No. 59-116809. ", JP-A-60-93
No. 513 discloses a "data input / output device of an application system in a numerical control device" and Japanese Patent Application Laid-Open No. 62-120953 discloses a "synchronous operation method for copying".
【0031】[0031]
【発明が解決しようとする課題】しかしながら、上述し
た従来のNC装置においては、以下に説明する理由によ
り、外部NC加工プログラム作成装置,自動プログラム
装置等からNC装置に与えられるべき加工プログラムが
途切れて切削送り時に切削が一時停止することがあり、
この切削の一時停止により、被加工物の切削面にカッタ
マークと呼ばれる傷がつくという問題点があった。以下
に、この問題点について詳細に説明する。However, in the above-described conventional NC device, the machining program to be given to the NC device from the external NC machining program creating device, the automatic program device, or the like is interrupted for the reason described below. Cutting may be paused during cutting feed,
There is a problem in that the temporary stop of the cutting causes scratches called cutter marks on the cut surface of the workpiece. Hereinafter, this problem will be described in detail.
【0032】まず、カッタマークについて説明する。図
19は、NC装置の工具軌跡を示す説明図である。切削
処理中に加工プログラムが途切れ、NC装置中に消化す
べき加工プログラムがなくなってしまった場合において
は、前のブロックの加工プログラムに基づいて工具を移
動させて被加工物の切削を行う処理が終了した際に次の
ブロックの加工プログラムが転送されていないため、図
19に示すように切削処理の途中で工具がストップして
しまうことになる(切削処理が中断されてしまう)。こ
の時、工具は被加工物の切削のために回転しているた
め、被加工物の切削面に傷がついてしまう。この傷がカ
ッタマークと呼ばれるものである。図19に示す工具軌
跡図は、前ブロックAn(G01Xx2Yy2Ff
2;)の終点で工具が停止し、その間工具が回転してい
るため、次ブロックB1(G03Xx3Yy3Ii3J
j3;)との間にカッタマークがついてしまった様子を
示している。First, the cutter mark will be described. FIG. 19 is an explanatory diagram illustrating a tool path of the NC device. If the machining program is interrupted during the cutting process and there is no more machining program to be digested in the NC device, the process of cutting the workpiece by moving the tool based on the machining program of the previous block is performed. Since the processing program for the next block has not been transferred when the processing is completed, the tool stops during the cutting processing as shown in FIG. 19 (the cutting processing is interrupted). At this time, since the tool is rotating for cutting the workpiece, the cut surface of the workpiece is damaged. These scratches are called cutter marks. The tool trajectory diagram shown in FIG. 19 shows the previous block An (G01Xx2Yy2Ff).
Since the tool stops at the end point of 2;) and the tool is rotating during that time, the next block B1 (G03Xx3Yy3Ii3J
j3;) shows that a cutter mark has been attached.
【0033】続いて、NC装置に供給される加工プログ
ラムが途切れて切削送り時に切削(工具)が一時停止
し、上述したカッタマークが付く理由について説明す
る。上記図13および図14を用いて説明したNC装置
71においては、通信手段72を介して供給される加工
プログラム量に比べて切削によって消化される加工プロ
グラム量が多くなった場合に、そのまま切削を続けると
図13に示した受信バッファ73中の加工プログラムが
消化されてなくなってしまい、次のブロックの加工プロ
グラムが転送されてくるまで切削が一時停止することに
なる。したがって、図19を用いて説明したカッタマー
クが被加工物の切削面に付いてしまうことになる。Next, the reason why the machining program supplied to the NC device is interrupted and the cutting (tool) is temporarily stopped at the time of cutting feed and the above-mentioned cutter mark is attached will be described. In the NC device 71 described with reference to FIGS. 13 and 14, when the machining program amount to be cut by the cutting is larger than the machining program amount supplied via the communication unit 72, the cutting is performed as it is. Continuing, the machining program in the reception buffer 73 shown in FIG. 13 is not consumed, and the cutting is temporarily stopped until the machining program of the next block is transferred. Therefore, the cutter mark described with reference to FIG. 19 is attached to the cut surface of the workpiece.
【0034】供給する加工プログラムの量が消化される
加工プログラムの量に追いつかない理由としては、通信
手段72を介して加工プログラムを受信バッファ73に
供給する際における加工プログラムの転送速度が低下し
た場合がある。また、他の理由としては、図12に示し
た外部NC加工プログラム作成装置54で加工プログラ
ムを作成しつつ、NC装置71に加工プログラムを供給
している場合において、加工プログラムの供給側である
外部NC加工プログラム作成装置54が例えばボールエ
ンドミル3次元加工形状等、NC装置71に供給する加
工プログラムの作成に多大な時間を要する形状を形成す
るための加工プログラムの作成中で、NC装置71に対
する加工プログラムの供給が間に合わない場合等があ
る。The reason why the amount of the machining program to be supplied cannot keep up with the amount of the machining program to be consumed is that the transfer speed of the machining program when supplying the machining program to the reception buffer 73 via the communication means 72 is reduced. There is. Another reason is that when the machining program is supplied to the NC device 71 while the machining program is created by the external NC machining program creating device 54 shown in FIG. While the NC processing program creation device 54 is creating a machining program for forming a shape that requires a lot of time to create a machining program to be supplied to the NC device 71, such as a three-dimensional machining shape of a ball end mill, the machining of the NC device 71 is performed. There are cases where the supply of the program cannot be made in time.
【0035】また、図16〜図18に基づいて説明した
NC装置においてAP側10から加工プログラムの供給
を受ける場合には、加工プログラムの供給側であるAP
側10が例えばボールエンドミル3次元加工形状等、N
C側22に供給する加工プログラムの作成に多大な時間
を要する形状を形成するための加工プログラムの作成中
のとき、NC側22はその加工プログラムの作成が終了
するまで切削を一時停止して待っていなければならな
い。具体的には、図20に示すように、消化側であるN
C側22がブロックAnの加工プログラムに基づく切削
処理を行った後、AP側10がNC側22で次に実行さ
れるブロックBの加工プログラムの作成中である場合に
は、ブロックAnと次のブロックB1との間で切削処理
が停止し、その状態で待たされることになる(供給側時
間不足状態)。その結果、切削指令の場合、指令が完全
にとぎれ、図19に示す工具軌跡図のように前ブロック
An(G01Xx2Yy2Ff2;)の終点で工具が止
まり、その間工具が回転しているため、次ブロックB1
(G03Xx3Yy3Ii3Jj3;)との間にカッタ
マークと呼ばれる傷が付いてしまう。In the case of receiving a machining program from the AP 10 in the NC apparatus described with reference to FIGS.
The side 10 is N, for example, a ball end mill 3D machining shape.
When a machining program for forming a shape that requires a lot of time to create a machining program to be supplied to the C side 22 is being created, the NC side 22 suspends cutting and waits until the creation of the machining program is completed. Must be. Specifically, as shown in FIG.
After the C side 22 performs the cutting process based on the machining program of the block An, if the AP side 10 is creating the machining program of the block B to be executed next on the NC side 22, the block An and the next The cutting process stops with the block B1, and the cutting process is kept waiting (supply-side time shortage state). As a result, in the case of the cutting command, the command is completely interrupted, and the tool stops at the end point of the previous block An (G01Xx2Yy2Ff2;) as shown in the tool path diagram in FIG.
(G03Xx3Yy3Ii3Jj3;), there is a flaw called a cutter mark.
【0036】なお、NC側22が待たされる状態を図1
6に示したブロック図および図17に示したフローチャ
ートを用いて説明すると、NC側22の消化動作で消化
バッファ20が空で、且つ、供給バッファ16が空のた
めBルートを通って、即、完了状態がしばらく続く状態
である。The state in which the NC side 22 waits is shown in FIG.
6 and the flowchart shown in FIG. 17, the digestion buffer 20 is empty by the digestion operation on the NC side 22, and the supply buffer 16 is empty. The completion state is a state that continues for a while.
【0037】また、図16〜図18に基づいて説明した
NC装置においてAP側10でなく、外部NC加工プロ
グラム作成装置12から加工プログラムの供給を受ける
場合(BTR運転)には、上記図13および図14を用
いて説明したNC装置71の場合と同様な理由で切削が
一時停止することがあり、この場合もカッタマークが被
加工物の切削面に付いてしまうことになる。In the case of receiving the machining program from the external NC machining program creation device 12 (BTR operation) instead of the AP 10 in the NC device described with reference to FIGS. Cutting may be temporarily stopped for the same reason as in the case of the NC device 71 described with reference to FIG. 14, and also in this case, a cutter mark is attached to the cut surface of the workpiece.
【0038】この発明は上記のような問題点を解決する
ためになされたもので、NC側の消化動作によりバッフ
ァのセット完了を待つタイミングを意図的に変え、簡易
に切削送りの指令のとぎれを無くし、カッタマークの発
生を防止するNC装置を得ることを第1の目的とする。The present invention has been made in order to solve the above-mentioned problems, and the timing of waiting for the completion of buffer setting is intentionally changed by the digestion operation on the NC side to easily interrupt the cutting feed command. It is a first object of the present invention to obtain an NC device that eliminates the occurrence of cutter marks and prevents the occurrence of cutter marks.
【0039】また、切削によって消化される加工プログ
ラム量が通信手段によって供給される加工プログラム量
より多くなった場合でも、バッファ中の加工プログラム
がなくならないように切削送り速度を制御することによ
り、切削が一時停止せず、被加工物の切削面にカッタマ
ークが付かないように制御可能なNC装置を得ることを
第2の目的とする。Further, even when the amount of the machining program consumed by the cutting becomes larger than the amount of the machining program supplied by the communication means, the cutting feed rate is controlled so that the machining program in the buffer is not lost. It is a second object of the present invention to obtain an NC device which can be controlled so as not to be temporarily stopped and a cutter mark is not attached to a cut surface of a workpiece.
【0040】[0040]
【課題を解決するための手段】この発明に係わるNC装
置は、自動プログラミング装置または外部入出力機器か
ら供給される数値制御用加工プログラムを複数ブロック
記憶する供給バッファと、前記供給バッファから加工プ
ログラムを転送される中間バッファと、前記中間バッフ
ァから加工プログラムを転送される消化バッファと、前
記消化バッファから数値制御用加工プログラムを取り出
し数値制御を実行して駆動部を動作させる数値制御部と
を有するNC装置において、前記数値制御部に消化バッ
ファの最終データ判断手段と、中間バッファの空判断手
段と、早送り判断手段と、消化バッファが最終データ
外、且つ、中間バッファが空、且つ、早送り時に数値制
御用加工プログラムのブロック実行開始をインタロック
するロック手段とを具備するものである。An NC apparatus according to the present invention includes a supply buffer for storing a plurality of blocks of a numerical control machining program supplied from an automatic programming device or an external input / output device, and a machining buffer from the supply buffer. An NC including an intermediate buffer to be transferred, a digestion buffer to which a machining program is transferred from the intermediate buffer, and a numerical control unit that extracts a machining program for numerical control from the digestion buffer, executes numerical control, and operates a driving unit. In the apparatus, the numerical control unit includes a digest buffer final data judging unit, an intermediate buffer empty judging unit, a fast-forward judging unit, and a digest buffer outside the final data, the intermediate buffer is empty, and the numerical control is performed when fast-forwarding. Locking means for interlocking the start of block execution of the machining program It is intended to Bei.
【0041】また、自動プログラミング装置または外部
入出力機器から供給される数値制御用加工プログラムを
複数ブロック記憶する供給バッファと、前記供給バッフ
ァから加工プログラムを転送される中間バッファと、前
記中間バッファから加工プログラムを転送される消化バ
ッファと、前記消化バッファから数値制御用加工プログ
ラムを取り出し数値制御を実行して駆動部を動作させる
数値制御部と、オペレータが設定する切削送り低下可否
フラグ及び速度低下係数パラメータとを有するNC装置
において、前記数値制御部に消化バッファの最終データ
判断手段と、中間バッファの空判断手段と、切削送り判
断手段と、切削送り低下可否フラグの判断手段と、消化
バッファが最終データ外、且つ、中間バッファが空、且
つ、切削送り、且つ、切削送り低下可否フラグON時に
数値制御用加工プログラムの工具送り速度を速度低下係
数パラメータを乗じて低下させる制御手段とを具備する
ものである。Further, a supply buffer for storing a plurality of blocks of a numerical control processing program supplied from an automatic programming device or an external input / output device, an intermediate buffer to which a processing program is transferred from the supply buffer, and a processing from the intermediate buffer. A digestion buffer to which a program is transferred, a numerical control unit that extracts a machining program for numerical control from the digestion buffer, executes a numerical control, and operates a driving unit, a cutting feed reduction enable / disable flag and a speed reduction coefficient parameter set by an operator In the NC apparatus having the following, the numerical control unit includes a digestion buffer final data determination unit, an intermediate buffer empty determination unit, a cutting feed determination unit, a cutting feed reduction possibility flag determination unit, and a digestion buffer that stores the final data. Outside and the intermediate buffer is empty and cutting feed, and , In which and a control means for reducing by multiplying the speed reduction coefficient parameter a tool feed rate of cutting feed reduction possibility flag ON at numerical control machining program.
【0042】また、通信手段を介して加工プログラムを
受信する受信バッファと、前記受信バッファにより受信
された加工プログラムを解析するプログラム解析手段
と、前記プログラム解析手段の解析結果に基づいて制御
速度を計算する速度計算手段と、前記速度計算手段とプ
ログラム解析手段の結果から補間処理を実行する補間手
段とを備え、工作機械等を制御するNC装置において、
前記通信手段を介して受信バッファに受信した加工プロ
グラムの残量を検出し、該加工プログラムの残量が予め
設定した所定の境界値より少ない場合に、前記加工プロ
グラムで指定された送り速度を前記残量に応じて減速さ
せるためのオーバーライド情報を計算して出力する速度
オーバーライド出力手段を具備し、前記速度計算手段
が、前記速度オーバーライド出力手段からオーバーライ
ド情報を入力すると共に、前記プログラム解析手段から
加工プログラムで指令された送り速度情報を入力し、前
記入力したオーバーライド情報および送り速度情報情報
に基づいて、前記加工プログラムのオーバーライド送り
速度を計算し、前記補間手段が、前記速度計算手段から
オーバーライド送り速度を入力すると共に、前記プログ
ラム解析手段から解析結果を入力し、前記入力したオー
バーライド送り速度および解析結果に基づいて、前記補
間処理を実行するものである。Also, a receiving buffer for receiving the machining program via the communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and a control speed calculated based on the analysis result of the program analyzing means. An NC device for controlling a machine tool or the like, comprising: a speed calculating unit that performs interpolation processing based on a result of the speed calculating unit and the program analyzing unit.
The remaining amount of the machining program received in the receiving buffer via the communication means is detected, and when the remaining amount of the machining program is smaller than a predetermined boundary value, the feed rate specified by the machining program is set to the Speed override output means for calculating and outputting override information for decelerating according to the remaining amount, wherein the speed calculation means receives the override information from the speed override output means and processes the override information from the program analysis means. Feed speed information specified by a program is input, and based on the input override information and feed speed information information, an override feed speed of the machining program is calculated. And the solution from the program analysis means. Enter the results, based on the override feed rate and analysis results are the input, and executes the interpolation processing.
【0043】また、通信手段を介して加工プログラムを
受信する受信バッファと、前記受信バッファにより受信
された加工プログラムを解析するプログラム解析手段
と、前記プログラム解析手段の解析結果に基づいて制御
速度を計算する速度計算手段と、前記速度計算手段とプ
ログラム解析手段の結果から補間処理を実行する補間手
段とを備え、工作機械等を制御するNC装置において、
微小線分長、通信速度及び1ブロック当たりのキャラク
タ数等を設定するデータ設定手段を設け、前記データ設
定手段によりメモリに予め設定された該微小線分長、通
信速度及び1ブロック当たりのキャラクタ数等のデータ
に基づいてクランプ速度を計算し、該クランプ速度情報
を加工速度を制限するために前記速度計算手段に出力す
るクランプ速度計算手段を具備するものである。Also, a receiving buffer for receiving the machining program via the communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and a control speed calculated based on the analysis result of the program analyzing means. An NC device for controlling a machine tool or the like, comprising: a speed calculating unit that performs interpolation processing based on a result of the speed calculating unit and the program analyzing unit.
Data setting means for setting a minute line segment length, a communication speed, the number of characters per block, and the like are provided. And the like, and a clamp speed calculating means for calculating the clamp speed based on such data and outputting the clamp speed information to the speed calculating means in order to limit the processing speed.
【0044】また、通信手段を介して加工プログラムを
受信する受信バッファと、前記受信バッファにより受信
された加工プログラムを解析するプログラム解析手段
と、前記プログラム解析手段の解析結果に基づいて制御
速度を計算する速度計算手段と、前記速度計算手段とプ
ログラム解析手段の結果から補間処理を実行する補間手
段とを備え、工作機械等を制御するNC装置において、
前記受信バッファに受信された加工プログラムから1ブ
ロック当たりの平均キャラクタ数を検出する平均キャラ
クタ数検出手段と、前記受信バッファに受信されたキャ
ラクタ数から実効受信速度を計算する実効受信速度計算
手段と、前記プログラム解析手段の解析結果から平均微
小線分長を検出する平均微小線分長検出手段と、前記平
均キャラクタ数検出手段と実効受信速度計算手段と平均
微小線分検出手段からのデータに基づいてクランプ速度
を計算するクランプ速度計算手段を具備するものであ
る。Further, a receiving buffer for receiving the machining program via the communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and a control speed calculated based on the analysis result of the program analyzing means. An NC device for controlling a machine tool or the like, comprising: a speed calculating unit that performs interpolation processing based on a result of the speed calculating unit and the program analyzing unit.
An average character number detection unit that detects an average number of characters per block from the processing program received in the reception buffer; and an effective reception speed calculation unit that calculates an effective reception speed from the number of characters received in the reception buffer. An average minute line length detecting unit for detecting an average minute line length from the analysis result of the program analyzing unit; and It is provided with a clamp speed calculating means for calculating a clamp speed.
【0045】[0045]
【作用】この発明に係わるNC装置は、供給バッファと
消化バッファの間に中間バッファを設け、NC運転時、
常時その中間バッファの空状態をNC側で判断し、空の
場合、次に実行するブロック(例えば、図18のB1)
が早送り(G00モード)ならば、そのブロック実行開
始をインタロックし、供給バッファ経由で中間バッファ
が埋まるまで待ち、そして、埋まった後、ブロック実行
を開始するようにタイミングを調整する。即ち、早送り
(G00モード)時のブロック実行開始インタロック手
段は、まず中間バッファが埋まるまで待ち、埋まった
後、通常処理に戻すことにより、以降の切削送りブロッ
クでカッタマークが付かなくする。なお、中間バッファ
が埋まるまで待っても早送りのため切削していないため
当該ブロックにカッタマークは存在しない。In the NC apparatus according to the present invention, an intermediate buffer is provided between the supply buffer and the digestion buffer.
The NC side always determines the empty state of the intermediate buffer, and if it is empty, the block to be executed next (for example, B1 in FIG. 18)
Is fast-forward (G00 mode), interlock the start of block execution, wait until the intermediate buffer is filled via the supply buffer, and then adjust the timing to start block execution after filling. That is, the block execution start interlock means at the time of fast-forward (G00 mode) waits until the intermediate buffer is filled, and after that, returns to the normal processing so that the cutter mark is not added in the subsequent cutting feed block. Even if it waits until the intermediate buffer is filled, the cutter is not cut due to rapid traverse, so that there is no cutter mark in the block.
【0046】また、次に実行するブロック(例えば、図
18のB1)が切削送り(G01,G02,G03モー
ド)ならば、その工具送り速度を自動的に低下させる。
その結果、1ブロック補間時間を長くし、供給側が供給
バッファにNC用加工プログラムをセットに要する時間
まで実行し、供給バッファ経由で中間バッファが埋まっ
たならば、指令された工具送り速度に戻すなどの調整を
する。即ち、切削送り(G01,G02,G03モー
ド)時の補間速度を低下させる手段は、低下させられた
ブロックの補間中に中間バッファが埋まるようになり、
埋まった後、通常処理に戻すことにより、以降の切削送
りブロックでカッタマークを付かなくする。If the block to be executed next (for example, B1 in FIG. 18) is a cutting feed (G01, G02, G03 mode), the tool feed speed is automatically reduced.
As a result, the one block interpolation time is lengthened, the supply side executes the NC machining program in the supply buffer until the time required for setting, and if the intermediate buffer is filled via the supply buffer, the tool is returned to the commanded tool feed speed. Make adjustments. That is, the means for reducing the interpolation speed at the time of cutting feed (G01, G02, G03 mode) causes the intermediate buffer to be filled during the interpolation of the reduced block.
After being buried, the processing is returned to the normal processing so that the cutter mark is not attached to the subsequent cutting feed block.
【0047】また、この発明に係わるNC装置は、速度
オーバライド出力手段が、受信バッファの加工プログラ
ムの残量から、切削速度のオーバライドを計算し、速度
計算手段を介して切削速度を制御することにより、供給
される加工プログラム量より切削によって消化される加
工プログラム量が多くなった場合であっても、切削が一
時停止することなく、カッタマークの発生を防止する。Further, in the NC apparatus according to the present invention, the speed override output means calculates the override of the cutting speed from the remaining amount of the processing program in the reception buffer, and controls the cutting speed via the speed calculation means. Even when the amount of the machining program to be digested by the cutting is greater than the supplied amount of the machining program, the cutting is not stopped and the occurrence of the cutter mark is prevented.
【0048】また、データ設定手段で微小線分長及び通
信速度及び1ブロック当たりのキャラクタ数等のデータ
をメモリに予め記憶しておき、クランプ速度計算手段が
前記データをメモリから読み出して、クランプ速度を計
算し、速度計算手段を介して切削速度を制限することに
より、供給される加工プログラム量より切削によって消
化される加工プログラム量が多くなった場合であって
も、切削が一時停止することなく、カッタマークの発生
を防止する。Further, data such as minute line segment length, communication speed and the number of characters per block are previously stored in the memory by the data setting means, and the clamp speed calculation means reads out the data from the memory and sets the clamp speed. By limiting the cutting speed via the speed calculating means, even if the machining program amount to be digested by cutting is greater than the supplied machining program amount, the cutting is not temporarily stopped. To prevent the occurrence of cutter marks.
【0049】また、平均キャラクタ数検出手段が、受信
バッファに受信された加工プログラムから1ブロック当
たりの平均のキャラクタ数を検出し、実効受信速度計算
手段が、受信バッファに受信されたキャラクタ数から実
効受信速度を計算し、平均微小線分長検出手段が、プロ
グラム解析手段の解析結果から平均の微小線分長を検出
する。前記平均キャラクタ数検出手段と実効受信速度計
算手段と平均微小線分長検出手段からのデータをもとに
クランプ速度計算手段がクランプ速度を計算し、速度計
算手段を介して切削速度を制限することにより、供給さ
れる加工プログラム量より切削によって消化される加工
プログラム量が多くなった場合であっても、切削が一時
停止することなく、カッタマークの発生を防止する。Further, the average number of characters detecting means detects the average number of characters per block from the machining program received in the receiving buffer, and the effective receiving speed calculating means determines the effective number of characters from the number of characters received in the receiving buffer. The receiving speed is calculated, and the average minute line length detecting means detects the average minute line length from the analysis result of the program analyzing means. Clamp speed calculation means calculates a clamp speed based on data from the average character number detection means, effective reception speed calculation means, and average minute line length detection means, and limits the cutting speed via the speed calculation means. Accordingly, even if the machining program amount to be digested by the cutting is larger than the supplied machining program amount, the cutting is not temporarily stopped and the generation of the cutter mark is prevented.
【0050】[0050]
【実施例】〔実施例1〕 以下、この発明によるNC装置の実施例を図について説
明する。実施例1に係るNC装置のハードウェア構成は
図15に示した従来におけるAP内蔵形NC装置と全く
同一構成である。図1は、NC運転の場合における信号
の流れを示すブロック図である。図において、10はA
P側であり、NC運転起動に際し、AP入力モードであ
ればNC用加工プログラムを生成供給し、後述する供給
バッファ16にセットする。12は外部NC加工プログ
ラム作成装置であり、一般的に外部入出力機器と呼ば
れ、NC運転起動に際しNC用加工プログラムを生成供
給し、後述する入出力部14に印加する。14は入出力
部であり、NC運転起動に際し外部機器入力モードであ
れば外部NC加工プログラム作成装置12に起動をか
け、その出力データであるNC用加工プログラムを入力
し、パリティチェック等を行い、後述する供給バッファ
16にセットする。Embodiment 1 An embodiment of an NC apparatus according to the present invention will be described below with reference to the drawings. The hardware configuration of the NC device according to the first embodiment is exactly the same as the conventional NC device with a built-in AP shown in FIG. FIG. 1 is a block diagram showing a signal flow in the case of the NC operation. In the figure, 10 is A
On the P side, at the time of starting the NC operation, if it is in the AP input mode, an NC machining program is generated and supplied, and set in the supply buffer 16 described later. Reference numeral 12 denotes an external NC machining program creating apparatus, which is generally called an external input / output device, generates and supplies an NC machining program when starting NC operation, and applies the NC machining program to an input / output unit 14 described later. Reference numeral 14 denotes an input / output unit, which starts the external NC machining program creation device 12 if the external device is in the external device input mode when starting the NC operation, inputs an NC machining program as output data thereof, performs a parity check, and the like. It is set in the supply buffer 16 described later.
【0051】16は供給バッファであり、複数ブロック
のNC用加工プログラム記憶領域で、AP側10または
外部NC加工プログラム作成装置12で生成されたNC
用加工プログラムを1ブロックずつ溜め、満杯になると
後述する中間バッファ18に転送する。加工プログラム
を中間バッファ18に転送すると供給バッファ16は空
状態となり、AP側10または外部NC加工プログラム
作成装置12にデータの転送が要求され、再度1ブロッ
クずつ供給バッファ16中に加工プログラムが記憶され
ていく。Reference numeral 16 denotes a supply buffer, which is an NC machining program storage area of a plurality of blocks.
The machining program is stored for each block, and when it is full, it is transferred to an intermediate buffer 18 described later. When the machining program is transferred to the intermediate buffer 18, the supply buffer 16 becomes empty, data transfer is requested to the AP side 10 or the external NC machining program creation device 12, and the machining program is stored again in the supply buffer 16 block by block. To go.
【0052】18は中間バッファであり、この発明にお
いて新たに設けられたもので複数ブロックのNC用加工
プログラム記憶領域で供給バッファ16からNC用加工
プログラムの一括転送を受け、後述する消化バッファ2
0に転送する。加工プログラムを消化バッファ20に転
送すると中間バッファ18は空状態となるため、供給バ
ッファ16にデータ転送が要求される。また、中間バッ
ファ18の空状態情報は後述するNC側22に送られ、
ブロック実行開始のタイミング調整等に用いられる。Reference numeral 18 denotes an intermediate buffer, which is newly provided in the present invention and is an NC machining program storage area of a plurality of blocks.
Transfer to 0. When the machining program is transferred to the digestion buffer 20, the intermediate buffer 18 becomes empty, so that data transfer is requested to the supply buffer 16. Also, the empty state information of the intermediate buffer 18 is sent to the NC side 22 described later,
It is used for timing adjustment of block execution start and the like.
【0053】20は消化バッファであり、複数ブロック
のNC用加工プログラム記憶領域で中間バッファ18か
らNC用加工プログラムの転送を受けた後、後述するN
C側22に1ブロックずつデータを送り、消化してしま
うと空状態になり、再度中間バッファ18にデータを要
求する。Numeral 20 denotes a digestion buffer, which is an NC machining program storage area of a plurality of blocks, which receives an NC machining program from the intermediate buffer 18 and which is described later.
The data is sent to the C side 22 one block at a time, and when the data is digested, it becomes empty and requests the intermediate buffer 18 for the data again.
【0054】22はNC側であり、消化バッファ20か
らNC用加工プログラムを1ブロックずつ取り出し、解
析し、工具送り速度に対応して補間演算等を行う。ま
た、中間バッファ18の空状態を判断し、ブロック実行
開始のインタロックを行ったり、工具送り速度を低下さ
せ簡易に切削送りの指令におけるとぎれをなくし、カッ
タマークの発生を防止する。また、AP側10または外
部NC加工プログラム作成装置12にNC運転起動等の
制御信号も通知している。24は駆動部であり、NC側
22で補間計算された数値制御データの増幅等を実行し
てサーボモータ24aを駆動させる。Reference numeral 22 denotes an NC side, which extracts the NC machining program from the digestion buffer 20 one block at a time, analyzes the program, and performs an interpolation operation or the like corresponding to the tool feed speed. In addition, the empty state of the intermediate buffer 18 is determined, interlock for starting block execution is performed, and the tool feed speed is reduced to easily eliminate breaks in the cutting feed command, thereby preventing generation of a cutter mark. In addition, a control signal such as an NC operation start is notified to the AP side 10 or the external NC machining program creation device 12. Numeral 24 denotes a drive unit which drives the servo motor 24a by amplifying the numerical control data interpolated and calculated by the NC side 22.
【0055】26はキーデータ入力部であり、オペレー
タがNC装置の各種パラメータ設定等を行う。28は切
削送り低下パラメータであり、この発明において新たに
設けられたものでその構成は、切削送り低下可否フラグ
fgと各ブロック毎の速度低下係数k1〜knからな
り、オペレータがキーデータ入力部26を介して設定す
る。Reference numeral 26 denotes a key data input unit, where an operator sets various parameters of the NC device. Numeral 28 denotes a cutting feed reduction parameter, which is newly provided in the present invention, and has a cutting feed reduction enable / disable flag fg and a speed reduction coefficient k1 to kn for each block. Set via.
【0056】次に、NC側22のNC運転時の消化動作
を図1に示したブロック図および図2に示すフローチャ
ートを参照して説明する。まず、NC側22からAP側
10または外部NC加工プログラム作成装置12にNC
運転起動を行い、AP側10または外部NC加工プログ
ラム作成装置12から加工プログラムを入力し、供給バ
ッファを満杯にしておく。Next, the digestion operation of the NC side 22 during the NC operation will be described with reference to the block diagram shown in FIG. 1 and the flowchart shown in FIG. First, the NC side 22 sends the NC side to the AP side 10 or the external NC machining program creation device 12.
The operation is started, a machining program is input from the AP side 10 or the external NC machining program creating device 12, and the supply buffer is filled.
【0057】そこで、消化バッファ20の空判断を行い
(S10)、空でなければCルートを通ってステップ1
6へジャンプし、反対に、空であれば中間バッファ18
の空判断を行う(S12)。ここにおいて、空であれば
Cルートを通ってステップ16へジャンプし、反対に、
空でなければ中間バッファ18の内容を消化バッファ2
0に転送する(S14)。次に、中間バッファ18の空
判断を行い(S16)、空でなければDルートを通って
ステップ21へジャンプし、空であれば供給バッファ1
6の空判断を行う(S18)。ここにおいて、空であれ
ばDルートを通りステップ21へジャンプし、空でなけ
れば供給バッファ16の内容を中間バッファ18に転送
する(S20)。Then, it is determined whether the digestion buffer 20 is empty (S10).
Jump to 6, and conversely, if empty, intermediate buffer 18
Is determined (S12). Here, if it is empty, jump to step 16 through route C, and conversely,
If it is not empty, the contents of the intermediate buffer 18 are digested into the buffer 2
0 (S14). Next, it is determined whether the intermediate buffer 18 is empty (S16). If it is not empty, the process jumps to step 21 via the D route.
6 is determined (S18). Here, if empty, the process jumps to step 21 through the D route, and if not empty, the contents of the supply buffer 16 are transferred to the intermediate buffer 18 (S20).
【0058】次に、消化バッファ20の空判断を行い
(S21)、空であればEルートを通って即終了とな
り、反対に、空でなければ消化バッファ20の内容が最
終データか否かの判断をする(S22)。ここで、加工
プログラムの最終データとは、終了を示すエンド・オブ
・レコードを含んだものであり、NC用加工プログラム
の終了を示すエンドオブレコードと呼ばれるコードが消
化バッファ20にあるか否かを判断することにより、消
化バッファ20の内容が最終データであるか否かを判断
することができる。Next, it is determined whether or not the digestion buffer 20 is empty (S21). If it is empty, the processing immediately ends through the E route. A determination is made (S22). Here, the final data of the machining program includes an end of record indicating the end, and it is determined whether or not a code called an end of record indicating the end of the NC machining program exists in the digestion buffer 20. By doing so, it can be determined whether or not the content of the digestion buffer 20 is the final data.
【0059】ところで、AP側10または外部NC加工
プログラム作成装置12において、最終データであるエ
ンド・オブ・レコードが作成された後は加工プログラム
を作成する処理が行われることはない。その結果、NC
側22が最終データの消化動作を行うとき、消化バッフ
ァ20には最終データが入っているが、供給バッファ1
6および中間バッファ18は「空」の状態となることに
なる。また、実施例1においては、後述するように、中
間バッファ18が空で消化バッファ20において次に消
化される1ブロックの加工プログラムが早送り(G0
0)の場合、被加工物の切削面にカッタマークが付くこ
とを防止するため、そのブロックの実行開始をインタロ
ックする処理が行われる。したがって、ステップ22に
おいて消化バッファ20の内容が最終データか否かを判
定しないことにすると、消化バッファ20の最終データ
が早送り(G00)の場合に、ブロック開始がインタロ
ックされ、いつまでの最終データの消化動作が行われな
いことになってしまう。この最終データの消化動作が行
われない状態をデットロック状態といい、ステップ22
における判断は、中間バッファ18が空状態のとき、デ
ットロックを発生させないようにすることを目的とした
ものである。After the end-of-record, which is the final data, is created in the AP 10 or the external NC machining program creating device 12, the process for creating the machining program is not performed. As a result, NC
When the side 22 performs the digestion operation of the final data, the digestion buffer 20 contains the final data but the supply buffer 1
6 and the intermediate buffer 18 will be "empty". In the first embodiment, as described later, the machining program of one block to be digested next in the digestion buffer 20 when the intermediate buffer 18 is empty is fast-forwarded (G0
In the case of 0), a process of interlocking the execution start of the block is performed to prevent a cutter mark from being attached to the cut surface of the workpiece. Therefore, if it is not determined in step 22 whether or not the contents of the digestion buffer 20 are the last data, if the last data of the digestion buffer 20 is fast-forward (G00), the start of the block is interlocked, Digestion will not be performed. This state in which the digestion operation of the final data is not performed is called a deadlock state.
Is intended to prevent deadlock from occurring when the intermediate buffer 18 is empty.
【0060】そこで、消化バッファ20中のデータが最
終データのとき、その最終データの消化動作を行ってし
まえば処理は終了であるため、Fルートを通って通常処
理であるステップ50に分岐し、反対に、最終データで
ないときはステップ24に移行する。Therefore, when the data in the digestion buffer 20 is the final data, if the digestion operation of the final data has been performed, the processing is completed, and the flow branches to the step 50 which is the normal processing through the F route. Conversely, if it is not the final data, the process proceeds to step 24.
【0061】次に、この発明の特徴である中間バッファ
18の空判断を行い(S24)、空でなければFルート
を通って通常処理であるステップ50に分岐し、反対
に、空であれば消化バッファ20からNC用加工プログ
ラムを1ブロック(例えば、G00X−100.; ま
たは G01X−100.Y−100.F100;)取
り出す(S26)。Next, it is determined whether or not the intermediate buffer 18 is empty, which is a feature of the present invention (S24). If it is not empty, the process branches to step 50, which is a normal process, through the F route. One block (for example, G00X-100. Or G01X-100.Y-100.F100;) of the NC processing program is extracted from the digestion buffer 20 (S26).
【0062】次に、切削送りか早送りかの判断を行い
(S28)、ここにおいて、早送り(G00モード)な
らば本発明の特徴であるブロック実行開始をインタロッ
クし(S30)、Eルートを通って補間を実行しないで
処理を終了する。換言すれば、中間バッファ18中に加
工プログラムがなく(加工プログラムが途切れそうな場
合)、消化バッファ20中の次に実行するブロックの加
工プログラムが早送りの場合に、加工プログラムのブロ
ック実行開始をインタロックすることで、工具を被加工
物から離した状態で停止させ、中間バッファ18に加工
プログラムが転送されるのを待つことにしている。その
結果、加工プログラムが途切れて切削処理が一時停止し
てしまい、被加工物の切削面にカッタマークが付くとい
う事態の発生を予め防止することが可能となる。また、
工具は被加工物から離れた位置に停止しているため、被
加工物の切削面にカッタマークが付くことはない。な
お、この点については、後に図3および図4を用いて詳
細に説明する。また、ブロックの実行開始をインターロ
ックした場合には、中間バッファ18に加工プログラム
が記憶されるのを待ち、中間バッファ18に加工プログ
ラムが記憶されると、インターロックを解除して通常の
加工処理に復帰することになる。Next, it is determined whether the cutting feed or the rapid feed is performed (S28). In the case of the rapid feed (G00 mode), the block execution start which is a feature of the present invention is interlocked (S30), and the E route is performed. To end the processing without executing the interpolation. In other words, when there is no machining program in the intermediate buffer 18 (when the machining program is likely to be interrupted) and the machining program of the block to be executed next in the digestion buffer 20 is fast-forward, the block execution start of the machining program is interrupted. By locking, the tool is stopped in a state where the tool is separated from the workpiece, and waits until the machining program is transferred to the intermediate buffer 18. As a result, it is possible to prevent a situation in which the machining program is interrupted, the cutting process is temporarily stopped, and a cutter mark is attached to the cut surface of the workpiece in advance. Also,
Since the tool is stopped at a position away from the workpiece, no cutter mark is attached to the cut surface of the workpiece. This will be described later in detail with reference to FIGS. When the execution of the block is interlocked, the process waits for the machining program to be stored in the intermediate buffer 18, and when the machining program is stored in the intermediate buffer 18, the interlock is released and the normal machining process is started. Will be returned to.
【0063】一方、切削送り(G01,G02,G03
モード)であるならばオペレータが設定した切削送りパ
ラメータ28の切削送り低下可否フラグfgの内容がO
Nか否かの判断をし(S31)、ONの場合本発明の特
徴である工具送り速度低下処理を行い(S32)、反対
に、OFFの場合ステップ52に分岐し、上記工具送り
低下処理は行わない。この判断の目的は、少数であるが
加工物の材質によって工具送り速度を低下することによ
り切削条件が変わり、切削面に悪影響を与える度合いが
カッタマーク以上になる材質(例えば、延性の高いアル
ミ材)を救済するためである。On the other hand, cutting feed (G01, G02, G03)
Mode), the content of the cutting feed reduction enable / disable flag fg of the cutting feed parameter 28 set by the operator is O.
It is determined whether or not N (S31), and if it is ON, a tool feed speed reduction process which is a feature of the present invention is performed (S32). Conversely, if it is OFF, the process branches to step 52, and the tool feed reduction process is performed. Not performed. The purpose of this judgment is to reduce the cutting conditions by lowering the tool feed speed depending on the material of the work piece, and the degree of adverse effect on the cutting surface is higher than the cutter mark (for example, aluminum material with high ductility). ).
【0064】上記ステップ32では、1回通過する毎に
指令された工具送り速度を低下させる。本実施例では、
オペレータが設定した切削送り低下パラメータ28の各
ブロック毎の速度低下係数kと指令工具送り速度を乗じ
て、新たな工具送り速度を次のように求める。低下工具
送り速度=指令工具送り速度*速度低下係数k速度低下
係数kは、第1ブロック目(ステップ32通過の1回
目)はk1、第2ブロック目(ステップ32通過の2回
目)はk2、・・・・・・第nブロック以降(ステップ
32通過のn回以降)はknが用いられる。通常100
%>k1>k2>・・・・・>kn>0%の取り決めに
よりオペレータが設定する。例えば、速度低下係数k1
=50%、k2=25%ならば指令工具送り速度F10
0のとき、第1ブロック目はF50、第2ブロック目は
F25のように工具送り速度が低下する。In step 32, the commanded tool feed speed is reduced each time the sheet passes. In this embodiment,
By multiplying the speed reduction coefficient k for each block of the cutting feed reduction parameter 28 set by the operator by the commanded tool feed speed, a new tool feed speed is obtained as follows. Decreased tool feed speed = commanded tool feed speed * speed reduction coefficient k The speed reduction coefficient k is k1 for the first block (the first pass through step 32), k2 for the second block (the second pass through step 32), ... Kn is used for the n-th block and thereafter (n-th and subsequent passes of step 32). Usually 100
%>K1>k2>...>Kn> 0% set by the operator. For example, the speed reduction coefficient k1
= 50%, k2 = 25% if command tool feed rate F10
When the value is 0, the tool feed speed decreases as F50 in the first block and F25 in the second block.
【0065】上記ステップ32で工具送り速度が低下し
た後、工具送り速度に対応して補間演算を実行し(S5
2)、その結果、1ブロック補間時間が長くなり、供給
側に供給バッファ16のNC用加工プログラムをセット
するまでに時間をかけ、消化側の指令の途切れを防止す
ることができる。その結果、切削処理中に切削が停止
し、被加工物の切削面にカッタマークが付くことを防止
することができる。この処理は上記ステップ20で供給
バッファ16経由で中間バッファ18が埋まるまで繰り
返され、埋まった後、ステップ24からFルートを通過
させて、通常処理であるステップ50以降で指令された
工具送り速度に戻すためのものである。[0065] After the tool feed rate in step 32 is decreased, running Interpolation operation corresponding to the tool feed speed (S5
2) As a result, the interpolation time for one block becomes longer, and it takes time until the NC processing program of the supply buffer 16 is set on the supply side, thereby preventing interruption of the command on the digestion side. As a result, it is possible to prevent the cutting from being stopped during the cutting process and the cutter mark from being attached to the cut surface of the workpiece. This processing is repeated until the intermediate buffer 18 is filled via the supply buffer 16 in the above step 20. After the filling, the processing is passed through the F route from step 24 to the tool feed speed commanded in step 50 and subsequent steps, which is the normal processing. It is for returning.
【0066】上記ステップ50は、通常処理ルートで消
化バッファ20からNC用加工プログラムを1ブロック
取り出す(例えば、G01X−100.Y−10
0.;)。そして、次のステップ52で工具送り速度
(F100)に対応して移動量(X−100.Y−10
0.)に応じた補間演算を行う。また、上記ステップ3
2で工具送り速度を低下したブロック(例えば、指令F
100の50%のF50)の補間演算も行う。その後、
補間演算したデータを駆動部24に出力して(S54)
一連の処理を終了する。その後、駆動部24がサーボモ
ータ24aを所定の速度(F100またはF50)によ
り一定距離の移動(X−100.Y−100)を実行さ
せ、完了すると再度上記ステップ10からステップ54
の消化動作が繰り返される。In step 50, one block of the NC processing program is extracted from the digestion buffer 20 in the normal processing route (for example, G01X-100.Y-10).
0. ;). Then, in the next step 52, the moving amount (X-100.Y-10) corresponding to the tool feed speed (F100).
0. ) Is performed. Step 3 above
Block (for example, the command F
An interpolation operation of 50% of 100 (F50) is also performed. afterwards,
The interpolated data is output to the drive unit 24 (S54).
A series of processing ends. Thereafter, the drive unit 24 causes the servo motor 24a to move a predetermined distance (X-100.Y-100) at a predetermined speed (F100 or F50).
Is repeated.
【0067】以上のように、消化バッファ20にNC用
加工プログラムがあるときはCルートを通り、NC用加
工プログラムが無くなるとステップ14を通り、中間バ
ッファ18の内容を消化バッファ20に転送する。ま
た、中間バッファ18にNC用加工プログラムがあると
きはDルートを通りNC用加工プログラムがなくなると
ステップ20を通り供給バッファ16の内容を中間バッ
ファ18に転送するようになっている。また、中間バッ
ファ18が空でないときはFルートを通り、ステップ5
0以降の通常どおりの1ブロックの消化動作を行う。中
間バッファ18が空の場合、早送り(G00モード)な
らばステップ30を通り、ブロック実行開始をインタロ
ックし、被加工物を切削するための工具を被加工物から
離れた位置に停止させる。そして、中間バッファ18が
空でなくなった場合に、インタロックを解除し、通常の
切削処理に復帰する。一方、中間バッファ18が空で消
化バッファ20中の次に消化されるブロックが切削送り
(G01,G02,G03モード)ならばステップ32
を通り工具送り速度を低下させ、供給側に供給バッファ
16のNC用加工プログラムをセットするまでの時間を
かけ、消化側の指令のとぎれを無くすようにし、カッタ
マーク防止を簡易に実行している。As described above, when there is an NC machining program in the digestion buffer 20, the process goes through the route C. When there is no NC machining program, the process goes to step 14 and the contents of the intermediate buffer 18 are transferred to the digestion buffer 20. When the NC machining program is present in the intermediate buffer 18, the program passes through the route D and when there is no NC machining program, the content of the supply buffer 16 is transferred to the intermediate buffer 18 via step 20. If the intermediate buffer 18 is not empty, the process goes through the F route and the step 5
The normal operation of digesting one block after 0 is performed. If the intermediate buffer 18 is empty, if it is fast-forward (G00 mode), the flow goes to step 30 to interlock the start of block execution and stop the tool for cutting the workpiece at a position away from the workpiece. Then, when the intermediate buffer 18 is no longer empty, the interlock is released and the process returns to the normal cutting process. On the other hand, if the intermediate buffer 18 is empty and the next digested block in the digestion buffer 20 is the cutting feed (G01, G02, G03 mode), step 32 is executed.
To reduce the tool feed speed, take time to set the machining program for NC in the supply buffer 16 on the supply side, eliminate breaks in commands on the digestion side, and easily execute cutter mark prevention. .
【0068】図3は、この発明におけるAP内蔵形NC
装置のAP側10と中間バッファ18とNC側22のタ
イミングを示すタイミングチャートである。AP内蔵形
NC装置では従来装置と同様に1個のCPU30(図1
5参照)がAP側処理とNC側処理を行う。一般にNC
側処理の優先度が高く、その空き時間を利用してAP処
理が走る。FIG. 3 shows an NC with a built-in AP according to the present invention.
4 is a timing chart showing timings of an AP side 10, an intermediate buffer 18, and an NC side 22 of the device. In the NC device with a built-in AP, one CPU 30 (FIG.
5) performs the AP-side processing and the NC-side processing. Generally NC
The priority of the side process is high, and the AP process runs using the idle time.
【0069】図3(a)に示す定常状態において、NC
側(消化側)が消化している間(A1〜An)に既に中
間バッファ18に次のNC用加工プログラム(B)が入
っており、同時にAP側(供給側)が空き時間を利用し
て、次の次のNC用加工プログラム(C)を作成するよ
うにしている。そして、NC側22の消化(An)が終
わると、次のタイミングからすぐ次のデータ(B1)が
消化できるようにし、バッファ間における指令のとぎれ
が生じないように工夫されている。In the steady state shown in FIG.
While the side (digestion side) is digesting (A1 to An), the next NC processing program (B) has already been stored in the intermediate buffer 18, and at the same time, the AP side (supply side) utilizes the idle time. The next NC machining program (C) is created. Then, when the digestion (An) of the NC side 22 is completed, the next data (B1) can be digested immediately from the next timing, so that the command is not interrupted between the buffers.
【0070】なお、NC側の1ブロック(例えば、A
1)の補間時間が長い(移動量が大または工具送り速度
が小の)とき、次ブロック(A2)の起動までの時間が
長くなり、それだけAP側の走れる時間が多くなる。逆
に、NC側の1ブロックの補間時間が短い(移動量が小
または工具送り速度が大の)とき、次ブロックの起動ま
での時間が短くなり、それだけAP側の走れる時間は狭
められる。また、AP側では簡単な形状(例えば、フラ
イス四角形状)であれば単時間でNC用加工プログラム
を作成できるが、複雑な形状(例えば、ポケット非定型
形状)であれば長時間の演算時間を要する。Note that one block (for example, A
When the interpolation time of 1) is long (the moving amount is large or the tool feed speed is small), the time until the activation of the next block (A2) becomes long, and the running time on the AP side increases accordingly. Conversely, when the interpolation time of one block on the NC side is short (the moving amount is small or the tool feed speed is large), the time until the start of the next block is short, and the running time on the AP side is narrowed accordingly. On the AP side, an NC machining program can be created in a single time for a simple shape (for example, a milling square shape), but a long calculation time is required for a complex shape (for example, a pocket irregular shape). It costs.
【0071】図3(b)に示す供給側時間不足状態G0
0モード時において、中間バッファ18が空、且つ、A
P側10が次のNC用加工プログラム(B)を作成中の
ままのとき、t1の部分で、もしNC側22がA1〜A
nを実行してしまうと、切削送りAnと切削送りB1と
の間で指令のとぎれが発生し、カッタマークが生ずる可
能性がある。その防止策として、A1が早送り(G00
モード)の場合、AP側10が次のNC用加工プログラ
ム(B)を作成完了し、中間バッファ18にNC用加工
プログラム(B)が転送されるt2部分までNC側22
がA1実行をインタロックしておき、中間バッファ18
に次のNC用加工プログラム(B)が入ったt2部分で
A1の消化動作を開始し、切削送りAnと切削送りB1
との間で指令のとぎれを発生させないようにし、カッタ
マークを防止している。なお、早送り(G00)ブロッ
クは中間バッファ18が埋まるまで待っても図4(a)
G00ブロックの工具軌跡図のように切削していないの
で、当該ブロックにカッタマークは存在しない。The supply-side time shortage state G0 shown in FIG.
In the 0 mode, the intermediate buffer 18 is empty and A
When the P side 10 is still creating the next machining program (B) for NC, if the NC side 22 is A1 to A at t1,
If n is executed, a command break occurs between the cutting feed An and the cutting feed B1, and a cutter mark may be generated. As a preventive measure, A1 is fast-forward (G00
In the case of (mode), the AP side 10 completes the creation of the next NC machining program (B), and the NC side 22 until t2 at which the NC machining program (B) is transferred to the intermediate buffer 18.
Has interlocked the execution of A1, and
The digestion operation of A1 is started at t2 where the next machining program (B) for NC is entered, and the cutting feed An and the cutting feed B1 are performed.
In order to prevent a break in the command, a cutter mark is prevented. It should be noted that the fast-forward (G00) block does not need to wait until the intermediate buffer 18 is filled.
Since cutting is not performed as in the tool path diagram of the G00 block, there is no cutter mark in the block.
【0072】図3(c)に示す供給側時間不足状態G0
1,G02,G03モード時において、中間バッファ1
8が空、且つ、AP側10が次のNC用加工プログラム
(B)を作成中のとき、t3の部分で、もしNC側22
がA1〜Anを指令速度どおり補間演算すると、切削送
りAnと切削送りB1との間で指令のとぎれが生じ、カ
ッタマークが発生する可能性がある。その防止策として
A1が切削送り(G01,G02,G03モード)の場
合、AP側10が次のNC用加工プログラム(B)を作
成完了し、中間バッファ18にNC用加工プログラム
(B)が転送されるt4部分までNC側22が工具送り
速度を低下させることにより、その分補間時間が長くな
る。その結果、AP側10に次のNC用加工プログラム
(B)作成完了したときには、まだ、NC側22がAの
補間処理を実行している。そして、t4部分で中間バッ
ファ18に転送することにより定常状態となり、切削送
りAnと切削送りB1との間で指令のとぎれを発生させ
ないようにし、カッタマークを防止している。The supply side time shortage state G0 shown in FIG.
1, G02, G03 mode, the intermediate buffer 1
When the NC side 22 is empty and the AP side 10 is creating the next NC machining program (B), if the NC side 22
When the interpolation calculation is performed for A1 to An according to the command speed, the command is interrupted between the cutting feed An and the cutting feed B1, and a cutter mark may be generated. As a preventive measure, when A1 is the cutting feed (G01, G02, G03 mode), the AP side 10 completes the creation of the next NC machining program (B) and transfers the NC machining program (B) to the intermediate buffer 18. Since the NC side 22 lowers the tool feed speed until the time t4, the interpolation time becomes longer. As a result, when the creation of the next NC machining program (B) has been completed on the AP side 10, the NC side 22 is still executing the interpolation processing of A. Then, the data is transferred to the intermediate buffer 18 at the time t4 to be in a steady state, so that the command is not interrupted between the cutting feed An and the cutting feed B1, thereby preventing the cutter mark.
【0073】この工具送り速度を低下させることにより
図4(b)G01,G02,G03ブロックの工具軌跡
図のように途中で工具送り速度が低下するだけで、切削
送りAnと切削送りB1との間で指令のとぎれが発生せ
ずカッタマークは付かない。なお、図3(c)に示した
t3部分で図3(b)のG00モードのように、A1実
行をインタロックすると、切削送りZnと切削送りA1
との間で指令のとぎれが発生しカッタマークが付くの
で、A1が早送りと切削送りでは処理が異なってくる。By reducing the tool feed speed, only the tool feed speed is reduced halfway as shown in the tool trajectory diagram of the blocks G01, G02 and G03 in FIG. There is no command break between them and no cutter mark is attached. When the execution of A1 is interlocked at time t3 shown in FIG. 3C as in the G00 mode of FIG. 3B, the cutting feed Zn and the cutting feed A1 are interlocked.
Since the command is interrupted and a cutter mark is added, the processing differs between A1 in rapid feed and cutting feed.
【0074】なお、図3および図4を用いてAP側10
の処理が遅れた場合における本発明の有効性について説
明したが、AP側10の処理が遅れた場合に限らず、外
部NC加工プログラム作成装置12の処理が遅れた場合
等、外部入出力機器からの加工プログラムの供給が遅れ
た場合においても本発明が有効に作用することは明らか
である。It should be noted that FIG. 3 and FIG.
Although the effectiveness of the present invention in the case where the processing of (1) is delayed has been described, the present invention is not limited to the case where the processing of the AP side 10 is delayed, and the case where the processing of the external NC machining program creating device 12 is delayed. It is clear that the present invention works effectively even when the supply of the machining program is delayed.
【0075】このように、実施の形態1に係るNC装置
においては、中間バッファ18が空で消化バッファ20
中の次に実行するブロックの加工プログラムが早送り
(G00)の場合に、加工プログラムのブロック実行開
始をインタロックし、中間バッファ18に加工プログラ
ムが転送されるのを待つことにより、工具を被加工物か
ら離した状態で停止させて加工プログラムの転送を待つ
ことができるため、被加工物の切削面にカッタマークが
付かない状態で切削を中断し、加工プログラムの転送を
待つことができる。したがって、加工プログラムが途切
れて切削が一時停止して被加工物の切削面にカッタマー
クが付くという事態の発生を未然に防止することができ
る。As described above, in the NC device according to the first embodiment, the intermediate buffer 18 is empty and the digestion buffer 20
When the machining program of the next block to be executed is fast-forward (G00), the block execution start of the machining program is interlocked and the tool is processed by waiting for the machining program to be transferred to the intermediate buffer 18. Since the cutting can be stopped in a state of being separated from the object and waiting for the transfer of the machining program, the cutting can be interrupted in a state where the cutting surface of the workpiece does not have a cutter mark, and the transfer of the machining program can be waited. Therefore, it is possible to prevent a situation in which the machining program is interrupted, the cutting is temporarily stopped, and a cutter mark is attached to the cut surface of the workpiece.
【0076】また、中間バッファ18が空で消化バッフ
ァ20中の次に実行するブロックの加工プログラムが切
削送り(G01,G02,G03)の場合に、速度低下
係数パラメータを乗じて工具送り速度を低下させること
により、NC側22の1ブロックの実行時間が長くな
り、供給側が供給バッファ16に加工プログラムを転送
するまでの時間を稼ぐことができるため、切削中に工具
が停止し、被加工物の切削面にカッタマークが付くこと
を防止することができる。If the intermediate buffer 18 is empty and the machining program of the block to be executed next in the digestion buffer 20 is cutting feed (G01, G02, G03), the tool feed speed is reduced by multiplying by the speed reduction coefficient parameter. By doing so, the execution time of one block on the NC side 22 is lengthened, and the time required for the supply side to transfer the machining program to the supply buffer 16 can be gained. The cutter mark can be prevented from being attached to the cutting surface.
【0077】〔実施例2〕 図5は、この発明に係るNC装置(実施例2)の構成を
示すブロック図である。同図において、71〜75及び
77は、図13に示した従来装置と全く同一のものを示
し、同様の動作を行う。ここで、83は受信バッファ7
3の加工プログラムの残量から切削速度のオーバライド
を計算し、オーバライド情報を速度計算手段76aに出
力する速度オーバライド出力手段である。76aはプロ
グラム解析手段74の結果と速度オーバライド出力手段
83の結果から切削速度を計算する速度計算手段であ
る。Embodiment 2 FIG. 5 is a block diagram showing a configuration of an NC apparatus (Embodiment 2) according to the present invention. In the figure, reference numerals 71 to 75 and 77 denote the same components as those of the conventional device shown in FIG. 13 and perform the same operations. Here, 83 is the reception buffer 7
3 is a speed override output unit that calculates the override of the cutting speed from the remaining amount of the machining program and outputs the override information to the speed calculation unit 76a. Reference numeral 76a is a speed calculating means for calculating a cutting speed from the result of the program analyzing means 74 and the result of the speed override output means 83.
【0078】次に、図5および図6を参照しつつ、実施
例2に係るNC装置71の動作を説明する。図6は、図
5に示したNC装置71の動作を示すフローチャートで
ある。同図において、NC装置71にサイクルスタート
がかけられるとNC装置71に接続されたテープリーダ
またはコンピュータ(図示せず)から通信手段72を介
して受信バッファ73に加工プログラムを受信する(S
84)。次に、受信した該加工プログラムをプログラム
解析手段74が解析し(S85)、速度オーバライド手
段83が、受信バッファ73の加工プログラムの残量か
ら、下記の数1に従って切削速度のオーバライドを計算
する(S86)。Next, the operation of the NC unit 71 according to the second embodiment will be described with reference to FIGS. FIG. 6 is a flowchart showing the operation of the NC device 71 shown in FIG. In the figure, when a cycle start is applied to the NC device 71, a processing program is received from the tape reader or a computer (not shown) connected to the NC device 71 to the reception buffer 73 via the communication means 72 (S).
84). Next, the program analyzing means 74 analyzes the received machining program (S85), and the speed override means 83 calculates an override of the cutting speed from the remaining amount of the machining program in the receiving buffer 73 according to the following equation (1) (S85). S86).
【0079】[0079]
【数1】 (Equation 1)
【0080】ここで、Aはオーバライド、Bは加工プロ
グラムの残量の現在値、Cはオーバライドが有効となる
加工プログラムの残量の境界値であり、これらは予め決
めておく。例えば、加工プログラムの残量の現在値Bが
100バイトで加工プログラムの残量の境界値Cが20
0バイトとすると、オーバライドAは50%となる。ま
た、加工プログラムの残量の現在値Bが300バイトで
加工プログラムの残量の境界値Cが200バイトとする
と、オーバライドAは150%となるが、100%を越
えるときはオーバライドAは100%とする。Here, A is the override, B is the current value of the remaining amount of the machining program, and C is the boundary value of the remaining amount of the machining program for which the override is valid, and these are determined in advance. For example, the current value B of the remaining amount of the machining program is 100 bytes, and the boundary value C of the remaining amount of the machining program is 20 bytes.
Assuming 0 bytes, override A is 50%. Also, if the current value B of the remaining amount of the machining program is 300 bytes and the boundary value C of the remaining amount of the machining program is 200 bytes, the override A is 150%, but if it exceeds 100%, the override A is 100%. And
【0081】すなわち、オーバライドAが100%未満
の場合、供給バッファ73中の加工プログラムの量が減
少していることを意味し、後述するように、求めたオー
バライドAの値を用いて切削送り速度を減少させて、供
給バッファ73中の加工プログラムが消化される速度を
減少させる。換言すれば、供給バッファ73中の加工プ
ログラムの量が減少しているということは、NC装置7
1に供給される加工プログラムの量に比べて消化されて
いる加工プログラムの量が上回っていることを意味して
いるため、このままの切削送り速度で切削を続けると、
供給バッファ73中の加工プログラムがなくなってしま
い、切削が一時停止して被加工物の切削面にカッタマー
クが付いてしまうことになってしまう。そのため、実施
例2のNC装置71においては、オーバライドAを求
め、その値に応じて切削送り速度を減少することにし、
通信手段72を介して受信している加工プログラムの量
と消化している加工プログラムの量とをバランスさせる
ように制御することにより、供給バッファ73から加工
プログラムがなくなってしまわないようにして、被加工
物の切削面にカッタマークが付かないようにするもので
ある。That is, when the override A is less than 100%, it means that the amount of the machining program in the supply buffer 73 has decreased, and as described later, the cutting feed speed is determined using the obtained value of the override A. To reduce the rate at which the machining program in the supply buffer 73 is digested. In other words, the fact that the amount of the machining program in the supply buffer 73 has decreased means that the NC device 7
Since it means that the amount of the processing program being digested is greater than the amount of the processing program supplied to 1, if cutting is continued at the same cutting feed rate,
Since the machining program in the supply buffer 73 is lost, the cutting is temporarily stopped and a cutter mark is attached to the cut surface of the workpiece. Therefore, in the NC device 71 of the second embodiment, the override A is obtained, and the cutting feed speed is reduced according to the obtained value.
By controlling the balance between the amount of the machining program received through the communication means 72 and the amount of the machining program being digested, the machining program is prevented from being lost from the supply buffer 73, and This is to prevent the cutter mark from being attached to the cut surface of the workpiece.
【0082】一方、オーバーライドAが100%以上の
場合は、供給バッファ73中に十分な量の加工プログラ
ムが存在していることを意味しており、予め定めた切削
送り速度で切削を進めても供給バッファ73から加工プ
ログラムがなくなってしまうような心配がないため、通
常の切削送り速度で処理を行うことにしている。On the other hand, if the override A is 100% or more, it means that a sufficient amount of the machining program exists in the supply buffer 73, and even if the cutting is advanced at a predetermined cutting feed speed. Since there is no fear that the machining program is lost from the supply buffer 73, the processing is performed at a normal cutting feed speed.
【0083】次に、速度計算手段76aが、プログラム
解析手段74の結果から工具送り速度を計算し(S8
7)、速度計算手段76aが、速度オーバライド出力手
段83の出力結果であるオーバライドが100%か否か
を判定する(S88)。オーバライドが100%であれ
ば、上記ステップ87で計算した工具送り速度を補間手
段75に出力する。すなわち、オーバライドが100%
である場合は、NC装置71に供給されている加工プロ
グラムの量とNC装置71で消化されている加工プログ
ラムの量とのバランスがとれており、加工プログラムに
よって与えられる切削送り速度で切削を進めることにす
る。Next, the speed calculating means 76a calculates the tool feed speed from the result of the program analyzing means 74 (S8).
7) The speed calculating means 76a determines whether or not the override as the output result of the speed override output means 83 is 100% (S88). If the override is 100%, the tool feed speed calculated in step 87 is output to the interpolation means 75. That is, 100% override
In the case of, the amount of the machining program supplied to the NC device 71 and the amount of the machining program digested by the NC device 71 are balanced, and the cutting is advanced at the cutting feed speed given by the machining program. I will.
【0084】反対に、オーバライドが100%未満の場
合は、下記の数2に従ってオーバライド速度を計算する
(S89)。すなわち、オーバライドが100%未満の
場合は、NC装置71に供給されている加工プログラム
の量とNC装置71で消化されている加工プログラムの
量とのバランスがとれておらず、NC装置71で消化さ
れている加工プログラムの量が多いということを意味し
ているため、加工プログラムによって与えられる切削送
り速度に求めたオーバライドAを乗算して、切削送り速
度を減少させるための送り速度を演算する。On the other hand, if the override is less than 100%, the override speed is calculated according to the following equation (2) (S89). That is, when the override is less than 100%, the amount of the machining program supplied to the NC device 71 and the amount of the machining program digested by the NC device 71 are not balanced, and the NC device 71 digests the amount. Since it means that the amount of the machining program executed is large, the feed rate for reducing the cut feed rate is calculated by multiplying the obtained feed A by the machining program by the obtained override A.
【0085】[0085]
【数2】 (Equation 2)
【0086】ここで、Aはオーバライド、Dはオーバラ
イド速度、Eは工具送り速度である。次に、補間手段7
5がプログラム解析手段74の解析結果と速度計算手段
76aの計算結果から補間処理を実行し(S90)、補
間手段75の補間データに基づいて駆動部77がモータ
を駆動して(S91)、図示していない被工作機械を制
御する。Here, A is an override, D is an override speed, and E is a tool feed speed. Next, the interpolation means 7
5 executes an interpolation process based on the analysis result of the program analysis unit 74 and the calculation result of the speed calculation unit 76a (S90), and the driving unit 77 drives the motor based on the interpolation data of the interpolation unit 75 (S91). Control a machine tool not shown.
【0087】このように、実施例2に係るNC装置71
によれば、受信バッファ73中の加工プログラムの残量
に基づいて切削送り速度を制御することにより、NC装
置71に供給される加工プログラム量とNC装置71で
消化される加工プログラム量とをバランスさせることに
したため、切削によって消化される加工プログラム量が
通信手段72を介して供給される加工プログラム量より
多くなった場合に、切削送り速度を制御して切削によっ
て消化される加工プログラム量を減少させることができ
る。したがって、供給バッファ73中の加工プログラム
がなくなってしまい、切削が一時停止して被加工物の切
削面にカッタマークが付くという事態の発生を防止する
ことができる。As described above, the NC device 71 according to the second embodiment
According to the above, by controlling the cutting feed rate based on the remaining amount of the machining program in the reception buffer 73, the machining program amount supplied to the NC device 71 and the machining program amount digested by the NC device 71 are balanced. Therefore, when the amount of the machining program digested by the cutting is larger than the amount of the machining program supplied via the communication means 72, the cutting feed rate is controlled to reduce the amount of the machining program digested by the cutting. Can be done. Therefore, it is possible to prevent a situation in which the machining program in the supply buffer 73 is lost, and the situation where the cutting is temporarily stopped and a cutter mark is attached to the cut surface of the workpiece is generated.
【0088】なお、消化される加工プログラム量より供
給される加工プログラム量が増加した場合は、切削送り
速度を減少させる量を徐々に少なくしていき、通常の処
理に戻ることになる。When the supplied machining program amount is larger than the digested machining program amount, the amount by which the cutting feed speed is reduced is gradually reduced, and the process returns to the normal processing.
【0089】また、供給バッファ73に受信した加工プ
ログラムの残量に応じてオーバーライド送り速度を求
め、求めたオーバーライド送り速度で駆動部77を制御
するため、送り速度が極端に変化することなく滑らかに
変化し、その結果、工具に一時的に大きな負荷がかかる
ような事態の発生を防止することができるという効果も
ある。因みに、加工プログラムの残量が予め設定した所
定の境界値より少ない場合に、固定値のオーバーライ
ド、例えば50%のオーバーライドに設定することも可
能であるが、オーバーライドを固定値とした場合には、
送り速度が極端に変化し、工具に一時的に大きな負担が
かかるという問題がある。Further, since the override feed speed is obtained in accordance with the remaining amount of the machining program received in the supply buffer 73 and the driving unit 77 is controlled at the obtained override feed speed, the feed speed is smoothly changed without extremely changing. As a result, it is possible to prevent a situation in which a large load is temporarily applied to the tool. Incidentally, when the remaining amount of the machining program is smaller than a predetermined boundary value set in advance, it is possible to set a fixed value override, for example, 50% override.
There is a problem that the feed rate changes extremely and a heavy load is temporarily applied to the tool.
【0090】さらに、上記実施例では、加工プログラム
の残量の境界値Cが固定であったが、NC装置71の操
作により値を変更できるようにしてもよく、そのような
変更があっても上記実施例と同様の効果を奏する。Further, in the above-described embodiment, the boundary value C of the remaining amount of the machining program is fixed. However, the value may be changed by operating the NC unit 71. The same effects as in the above embodiment can be obtained.
【0091】〔実施例3〕 図7は、この発明に係るNC装置(実施例3)の構成を
示すブロック図である。同図において、71〜75及び
77は、図13に示した従来装置と全く同一のものを示
し、同様の動作を行う。ここで、92は微小線分長及び
通信速度及び1ブロック当たりのキャラクタ数等を設定
するデータ設定手段、93は微小線分長及び通信速度及
び1ブロック当たりのキャラクタ数等のデータを記憶し
ておくメモリ、94はメモリ93に記憶された微小線分
長及び通信速度及び1ブロック当たりのキャラクタ数を
もとに切削速度の上限値であるクランプ速度を計算する
クランプ速度計算手段、76bはプログラム解析手段7
4の結果とクランプ速度計算手段94の結果から切削速
度を計算する速度計算手段である。[Embodiment 3] FIG. 7 is a block diagram showing a configuration of an NC apparatus (Embodiment 3) according to the present invention. In the figure, reference numerals 71 to 75 and 77 denote the same components as those of the conventional device shown in FIG. 13 and perform the same operations. Here, 92 is a data setting means for setting the minute line segment length, the communication speed, the number of characters per block, and the like. 93 is stored with data such as the minute line segment length, the communication speed, the number of characters per block, and the like. Memory 94, a clamp speed calculating means for calculating a clamp speed which is an upper limit value of a cutting speed based on a minute line segment length, a communication speed and the number of characters per block stored in the memory 93, and 76b a program analysis Means 7
4 is a speed calculating means for calculating a cutting speed from the result of No. 4 and the result of the clamp speed calculating means 94.
【0092】図8は、図7に示したNC装置71の表示
装置における画面表示例である。図において、101は
表示枠、102は入出力装置パラメータ表示画面、10
3はデータ設定部、104は「入力」「出力」「コピ
ー」などの操作メニューを表示するメニュー表示部とメ
ニューキー、105は通信速度、106は1ブロック当
たりのキャラクタ数、107は微小線分長、108はス
トップbit、109はキャラクタ長の設定項目を各々
表している。FIG. 8 is an example of a screen display on the display device of the NC device 71 shown in FIG. In the figure, 101 is a display frame, 102 is an input / output device parameter display screen, 10
Reference numeral 3 denotes a data setting unit; 104, a menu display unit and menu keys for displaying operation menus such as "input", "output", and "copy"; 105, communication speed; 106, the number of characters per block; Length, stop bit 108, and character length setting items 109, respectively.
【0093】次に、図7〜図9を参照しつつ実施例3の
NC装置71の動作を説明する。図9は、図7に示した
NC装置71の動作を示すフローチャートである。ま
ず、オペレータがNC装置71を操作して、図8に示し
た表示画面の通信速度(105)、キャラクタ数/ブロ
ック(106)、微小線分長(mm)(107)、スト
ップbit(108)、キャラクタ長(109)を各々
設定する(S110)とデータ設定手段92は、各設定
データをメモリ93に記憶する。次に、NC装置71に
サイクルスタートがかけられるとNC装置71に接続さ
れたテープリーダまたはコンピュータ(図示せず)から
通信手段72を介して受信バッファ73に加工プログラ
ムを受信し(S111)、受信した該加工プログラムを
プログラム解析手段74が解析し(S112)、次に、
クランプ速度計算手段94がメモリ93から通信速度及
びストップbit及びキャラクタ長及び1ブロック当た
りのキャラクタ数及び微小線分長のデータを読み出し
て、下記の数3に従ってクランプ速度を計算する(S1
13)。Next, the operation of the NC unit 71 according to the third embodiment will be described with reference to FIGS. FIG. 9 is a flowchart showing the operation of the NC device 71 shown in FIG. First, the operator operates the NC device 71 to display the communication speed (105), number of characters / block (106), minute line segment length (mm) (107), and stop bit (108) of the display screen shown in FIG. When the character length (109) is set (S110), the data setting means 92 stores each set data in the memory 93. Next, when a cycle start is applied to the NC device 71, a processing program is received from the tape reader or a computer (not shown) connected to the NC device 71 to the reception buffer 73 via the communication means 72 (S111). The program analyzing means 74 analyzes the processed machining program (S112).
The clamp speed calculating means 94 reads the data of the communication speed, the stop bit, the character length, the number of characters per block, and the minute line segment length from the memory 93, and calculates the clamp speed according to the following equation 3 (S1).
13).
【0094】[0094]
【数3】 (Equation 3)
【0095】ここで、Jはクランプ速度、Fは微小線分
長、Gは通信速度、Hは1ブロック当たりのキャラクタ
数、Lはキャラクタ長、Mはストップbit、Kは係数
である。(L+M+1)は1キャラクタの通信路上での
bit数を表している。Here, J is the clamping speed, F is the minute line segment length, G is the communication speed, H is the number of characters per block, L is the character length, M is the stop bit, and K is the coefficient. (L + M + 1) represents the number of bits of one character on the communication path.
【0096】なお、以下に上記数3の根拠について説明
する。1ブロックの加工プログラムに基づく工具の移動
距離(切削距離:微小線分長)をF(mm/bloc
k),1ブロック当たりの加工プログラムの文字数をH
(byte/block)とする。また、プログラム解
析手段74が処理する加工プログラム(文字数)をCp
(byte/秒)とし、切削送り速度をV(mm/分)
とすると、VとCpの関係を以下の数4のように表すこ
とができる。The basis of the above equation (3) will be described below. The moving distance (cutting distance: minute line segment length) of the tool based on the machining program of one block is represented by F (mm / bloc).
k), the number of characters of the machining program per block is H
(Byte / block). In addition, the machining program (the number of characters) processed by the program
(Bytes / sec) and the cutting feed rate is V (mm / min)
Then, the relationship between V and Cp can be expressed as in the following Expression 4.
【0097】[0097]
【数4】 (Equation 4)
【0098】ここで、Cp/Hはプログラム解析手段7
4が1秒間に処理するブロック数を示し、F×(Cp/
H)は工具が1秒間に移動する距離(速度)を表してい
る。Here, Cp / H is the program analysis means 7.
4 indicates the number of blocks to be processed in one second, and F × (Cp /
H) represents the distance (speed) that the tool moves in one second.
【0099】したがって、Cpは、Therefore, Cp is
【数5】 と表すことができる。(Equation 5) It can be expressed as.
【0100】すなわち、通信手段72を介して供給され
る加工プログラム(文字数)がプログラム解析手段74
で処理される加工プログラム(文字数)より多ければ、
受信バッファ73中の加工プログラムがなくなって切削
が一時停止し、被加工物の加工面にカッタマークが付く
ということはないため、供給される加工プログラム(文
字数)をN(byte/秒)とすれば、That is, the machining program (the number of characters) supplied via the communication means 72 is
If it is more than the machining program (number of characters) processed by
Since the machining program in the reception buffer 73 disappears and cutting is temporarily stopped and a cutter mark is not attached to the machining surface of the workpiece, the supplied machining program (the number of characters) is set to N (bytes / second). If
【数6】 となり、クランプ速度Jは、(Equation 6) And the clamping speed J is
【数7】 と表すことができる。(Equation 7) It can be expressed as.
【0101】そして、通信が理想的な状態、即ち、通信
手段72が途切れなく加工プログラムを受信して受信バ
ッファ73に加工プログラムが転送されている場合、N
は次のように表され、When the communication is in an ideal state, that is, when the communication means 72 receives the machining program without interruption and the machining program is transferred to the reception buffer 73, N
Is represented as
【数8】 この数8を数7に代入すると、上記数3を得ることがで
きる。(Equation 8) By substituting Equation 8 into Equation 7, Equation 3 can be obtained.
【0102】続いて、図9の説明に戻り、速度計算手段
76bが従来装置と同様に工具送り速度を計算する(S
114)。そして、速度計算手段76bがクランプ速度
計算手段94の計算結果であるクランプ速度と工具送り
速度を比較(補間速度>クランプ速度)し(S11
5)、工具送り速度がクランプ速度以下の場合は、工具
送り速度を補間手段75に出力する。反対に、工具送り
速度がクランプ速度より大きい場合は、工具送り速度を
クランプ速度に置き換えて(S116)補間手段75に
出力する。次に、補間手段75がプログラム解析手段7
4の解析結果と速度計算手段76bの計算結果から補間
処理を実行し(S117)、補間手段75の補間データ
に基づいて駆動部77がモータを駆動して(S11
8)、図示していない被工作機械を制御する。Subsequently, returning to the description of FIG. 9, the speed calculating means 76b calculates the tool feed speed in the same manner as in the conventional device (S
114). Then, the speed calculator 76b compares the clamp speed, which is the calculation result of the clamp speed calculator 94, with the tool feed speed (interpolation speed> clamp speed) (S11).
5) If the tool feed speed is equal to or less than the clamp speed, the tool feed speed is output to the interpolation means 75. Conversely, if the tool feed speed is higher than the clamp speed, the tool feed speed is replaced with the clamp speed (S116) and output to the interpolation means 75. Next, the interpolation means 75 is used by the program analysis means 7.
An interpolation process is executed based on the analysis result of Step 4 and the calculation result of the speed calculation unit 76b (S117), and the driving unit 77 drives the motor based on the interpolation data of the interpolation unit 75 (S11).
8) Control a machine tool (not shown).
【0103】このように、実施例3のNC装置71によ
れば、微小線分長、通信速度及び1ブロック当たりのキ
ャラクタ数等を設定するデータ設定手段92を設け、デ
ータ設定手段92によりメモリ93に予め設定された微
小線分長、通信速度及び1ブロック当たりのキャラクタ
数等のデータに基づいてクランプ速度を計算し、クラン
プ速度情報を加工速度を制限するために速度計算手段7
6bに出力するクランプ速度計算手段94を具備するこ
とにより、速度計算手段76bがクランプ速度計算手段
94の計算結果であるクランプ速度と工具送り速度を比
較(補間速度>クランプ速度)し、工具送り速度がクラ
ンプ速度以下の場合は、工具送り速度を補間手段75に
出力し、工具送り速度がクランプ速度より大きい場合
は、工具送り速度をクランプ速度に置き換えて補間手段
75に出力するため、NC装置71に供給される加工プ
ログラムの量がNC装置71で消化される加工プログラ
ムの量を上回ったとしても、工具送り速度がクランプ速
度より大きくならないように制御して消化される加工プ
ログラムの量を減少させることから、受信バッファ73
中の加工プログラムが切削中になくなって切削が一時停
止し、被加工物の切削面にカッタマークが付くという事
態の発生を防止することができる。As described above, according to the NC device 71 of the third embodiment, the data setting means 92 for setting the minute line segment length, the communication speed, the number of characters per block, and the like are provided. The speed calculation means 7 calculates a clamp speed based on data such as a minute line segment length, a communication speed, and the number of characters per block, which are set in advance, and limits the clamp speed information to the processing speed.
6b, the speed calculating means 76b compares the clamping speed, which is the calculation result of the clamping speed calculating means 94, with the tool feed speed (interpolation speed> clamp speed), and outputs the tool feeding speed. Is smaller than or equal to the clamp speed, the tool feed speed is output to the interpolation means 75. If the tool feed speed is higher than the clamp speed, the tool feed speed is replaced with the clamp speed and output to the interpolation means 75. Even if the amount of the machining program supplied to the controller exceeds the amount of the machining program to be digested by the NC device 71, the amount of the machining program to be digested is reduced by controlling the tool feed speed so as not to be higher than the clamping speed. Therefore, the reception buffer 73
It is possible to prevent the occurrence of a situation in which the middle processing program disappears during the cutting, the cutting is temporarily stopped, and a cutter mark is attached to the cut surface of the workpiece.
【0104】換言すれば、NC装置71に供給される加
工プログラムの量とNC装置71で消化される加工プロ
グラムの量とをバランスさせることにより、切削中に受
信バッファ73中の加工プログラムがなくならないよう
に制御できるため、受信バッファ73中の加工プログラ
ムがなくなることを原因として切削が一時停止するとい
うことを防止でき、その結果、被加工物の切削面にカッ
タマークが付かないようにすることができる。In other words, by balancing the amount of the machining program supplied to the NC device 71 with the amount of the machining program digested by the NC device 71, the machining program in the reception buffer 73 does not run out during cutting. As a result, it is possible to prevent the cutting from being temporarily stopped due to the absence of the machining program in the reception buffer 73, and as a result, it is possible to prevent the cutter mark from being attached to the cut surface of the workpiece. it can.
【0105】〔実施例4〕 図10は、この発明に係るNC装置(実施例4)の構成
を示すブロック図である。同図において、71〜75及
び77は、図13に示した従来装置と全く同一のものを
示し、同様の動作を行う。ここで、93aはクランプ速
度計算手段94aで計算されたクランプ速度を記憶する
ためのメモリ、120は受信バッファ73に受信された
加工プログラムから1ブロック当たりの平均キャラクタ
数を検出する平均キャラクタ数検出手段、121は受信
バッファ73に受信されたキャラクタ数から実効受信速
度を計算する実効受信速度計算手段、122はプログラ
ム解析手段74の解析結果から平均の微小線分長を検出
する平均微小線分長検出手段である。94aは前記平均
キャラクタ数検出手段120及び実効受信速度計算手段
121及び平均微小線分長検出手段122の結果からク
ランプ速度を計算するクランプ速度計算手段、76bは
速度計算手段であり、図7に示したものと全く同一の構
成であり、同様の動作を行う。Fourth Embodiment FIG. 10 is a block diagram showing a configuration of an NC apparatus (fourth embodiment) according to the present invention. In the figure, reference numerals 71 to 75 and 77 denote the same components as those of the conventional device shown in FIG. 13 and perform the same operations. Here, 93a is a memory for storing the clamp speed calculated by the clamp speed calculation means 94a, and 120 is an average character number detection means for detecting the average number of characters per block from the processing program received in the reception buffer 73. And 121, an effective receiving speed calculating means for calculating an effective receiving speed from the number of characters received in the receiving buffer 73, and 122, an average minute line length detecting means for detecting an average minute line length from the analysis result of the program analyzing means 74. Means. Reference numeral 94a denotes a clamp speed calculating means for calculating a clamp speed from the results of the average character number detecting means 120, the effective receiving speed calculating means 121, and the average minute line length detecting means 122, and 76b denotes a speed calculating means. The configuration is exactly the same as that described above, and the same operation is performed.
【0106】次に、図10および図11を参照しつつ、
実施例4に係るNC装置71の動作を説明する。図11
は、図10に示したNC装置71の動作を示すフローチ
ャートである。NC装置71にサイクルスタートがかけ
られるとNC装置71に接続されたテープリーダまたは
コンピュータ(図示せず)から通信手段72を介して受
信バッファ73に加工プログラムを受信する(S12
3)。次に、受信した該加工プログラムをプログラム解
析手段74が解析し(S124)、平均キャラクタ数検
出手段120が受信バッファ73に受信された加工プロ
グラムの1ブロック当たりのキャラクタ数をカウントし
て、例えば、100ブロック毎の平均キャラクタ数を算
出して(S125)、クランプ速度計算手段94aに通
知する。Next, referring to FIGS. 10 and 11,
An operation of the NC device 71 according to the fourth embodiment will be described. FIG.
11 is a flowchart showing an operation of the NC device 71 shown in FIG. When the cycle start is performed on the NC device 71, the processing program is received in the reception buffer 73 via the communication means 72 from a tape reader or a computer (not shown) connected to the NC device 71 (S12).
3). Next, the program analysis means 74 analyzes the received processing program (S124), and the average character number detection means 120 counts the number of characters per block of the processing program received by the reception buffer 73, for example, The average number of characters for each 100 blocks is calculated (S125), and the calculated number is notified to the clamp speed calculation means 94a.
【0107】次に、実効受信速度計算手段121が、例
えば、100ブロック毎に受信するキャラクタ数と受信
時間をカウントして1秒間に受信するキャラクタ数であ
る受信速度の実効値を計算して(S126)、クランプ
速度計算手段94aに通知する。次に、平均微小線分長
検出手段122がプログラム解析手段74の解析結果か
ら1ブロック間の微小線分長を検出して、例えば、10
0ブロック毎の平均微小線分長を算出して(S12
7)、クランプ速度計算手段94aに通知する。その
後、クランプ速度計算手段94aが平均キャラクタ数検
出手段120の出力結果である1ブロック当たりの平均
キャラクタ及び実効受信速度計算手段121の出力結果
である実効受信速度及び平均微小線分長検出手段122
の出力結果である平均微小線分長から下記の数9に従っ
てクランプ速度を計算する(S128)。Next, the effective receiving speed calculating means 121 calculates the effective value of the receiving speed, which is the number of characters received in one second, by counting the number of characters received and the receiving time for every 100 blocks, for example. S126) Notify to the clamp speed calculation means 94a. Next, the average minute line segment length detecting unit 122 detects the minute line segment length between one block from the analysis result of the program
The average minute line segment length for each 0 block is calculated (S12
7) Notify the clamp speed calculation means 94a. Thereafter, the clamp speed calculation means 94 a outputs the average character per block, which is the output result of the average character number detection means 120, and the effective reception speed and average minute line length detection means 122, which is the output result of the effective reception speed calculation means 121.
The clamping speed is calculated from the average minute line segment length as the output result according to the following equation 9 (S128).
【0108】[0108]
【数9】 (Equation 9)
【0109】ここで、Jはクランプ速度、Fは微小線分
長、Gは通信速度、Hは1ブロック当たりのキャラクタ
数、Nは受信速度である。なお、この数9は、実施例3
で説明した数7と同一であり、数9が導き出される根拠
は実施例3で説明した通りである。Here, J is the clamping speed, F is the minute line segment length, G is the communication speed, H is the number of characters per block, and N is the receiving speed. It should be noted that Equation 9 is used in Example 3.
The equation is the same as the equation 7 described above, and the basis for deriving the equation 9 is as described in the third embodiment.
【0110】次に、クランプ速度計算手段94aは、メ
モリ93aに記憶されている前回の計算結果のクランプ
速度を読み出して、上記数9の計算結果であるクランプ
速度と比較し(S129)、今回の計算結果であるクラ
ンプ速度が前回の計算結果であるクランプ速度より小さ
い場合は、今回のクランプ速度をメモリ93aに記憶す
る(S130)。以上の動作によりクランプ速度の最小
値が速度計算手段76bに出力される。Next, the clamp speed calculating means 94a reads out the clamp speed of the previous calculation result stored in the memory 93a and compares it with the clamp speed which is the calculation result of Equation 9 (S129). If the calculated clamping speed is lower than the previous calculated clamping speed, the current clamping speed is stored in the memory 93a (S130). With the above operation, the minimum value of the clamp speed is output to the speed calculating means 76b.
【0111】その後、速度計算手段76bが従来装置と
同様に工具送り速度を計算し(S131)、速度計算手
段76bがクランプ速度計算手段94aの計算結果であ
るクランプ速度と工具送り速度を比較(補間速度>クラ
ンプ速度)し(S132)、工具送り速度がクランプ速
度以下の場合は、工具送り速度を補間手段75に出力す
る。反対に、工具送り速度がクランプ速度より大きい場
合は、工具送り速度をクランプ速度に置き換えて(S1
33)補間手段75に出力する。次に、補間手段75が
プログラム解析手段74の解析結果と速度計算手段76
bの計算結果から補間処理を実行し(S134)、補間
手段75の補間データに基づいて駆動部77がモータを
駆動して(S135)、図示していない被工作機械を制
御する。Thereafter, the speed calculating means 76b calculates the tool feed speed in the same manner as in the conventional apparatus (S131), and the speed calculating means 76b compares the clamp speed calculated by the clamp speed calculating means 94a with the tool feed speed (interpolation). (Speed> clamp speed) (S132). If the tool feed speed is equal to or lower than the clamp speed, the tool feed speed is output to the interpolation means 75. Conversely, if the tool feed speed is higher than the clamp speed, the tool feed speed is replaced with the clamp speed (S1).
33) Output to the interpolation means 75. Next, the interpolation means 75 calculates the analysis result of the program analysis means 74 and the speed calculation means 76.
An interpolation process is executed based on the calculation result of b (S134), and the driving unit 77 drives a motor based on the interpolation data of the interpolation means 75 (S135) to control a work machine (not shown).
【0112】このように、実施例4のNC装置71によ
れば、受信バッファ73に受信された加工プログラムか
ら1ブロック当たりの平均キャラクタ数を検出する平均
キャラクタ数検出手段120と、受信バッファ73に受
信されたキャラクタ数から実効受信速度を計算する実効
受信速度計算手段121と、プログラム解析手段74の
解析結果から平均微小線分長を検出する平均微小線分長
検出手段122と、平均キャラクタ数検出手段120と
実効受信速度計算手段121と平均微小線分検出手段1
22からのデータに基づいてクランプ速度を計算するク
ランプ速度計算手段94aを具備することにより、速度
計算手段76bがクランプ速度計算手段94aの計算結
果であるクランプ速度と工具送り速度を比較(補間速度
>クランプ速度)し、工具送り速度がクランプ速度以下
の場合は、工具送り速度を補間手段75に出力し、工具
送り速度がクランプ速度より大きい場合は、工具送り速
度をクランプ速度に置き換えて補間手段75に出力する
ため、NC装置に供給される加工プログラムの量がNC
装置71で消化される加工プログラムの量を上回ったと
しても、工具送り速度がクランプ速度より大きくならな
いように制御して消化される加工プログラムの量を減少
させることから、受信バッファ73中の加工プログラム
が切削中になくなって切削が一時停止し、被加工物の切
削面にカッタマークが付くという事態の発生を防止する
ことができる。As described above, according to the NC device 71 of the fourth embodiment, the average character number detecting means 120 for detecting the average number of characters per block from the processing program received by the reception buffer 73 and the reception buffer 73 An effective receiving speed calculating means 121 for calculating an effective receiving speed from the number of characters received; an average minute line length detecting means 122 for detecting an average minute line length from the analysis result of the program analyzing means 74; Means 120, effective receiving speed calculating means 121, and mean minute line segment detecting means 1
By providing the clamp speed calculating means 94a for calculating the clamp speed based on the data from the CPU 22, the speed calculating means 76b compares the clamp speed, which is the calculation result of the clamp speed calculating means 94a, with the tool feed speed (interpolation speed> If the tool feed speed is equal to or lower than the clamp speed, the tool feed speed is output to the interpolating means 75. If the tool feed speed is higher than the clamp speed, the tool feed speed is replaced with the clamp speed and the interpolation means 75 is used. Output to the NC device, the amount of the machining program supplied to the NC
Even if the amount of the machining program to be extinguished by the device 71 is exceeded, the amount of the machining program to be extinguished is reduced by controlling the tool feed speed not to be higher than the clamping speed. Can be prevented from occurring during the cutting, the cutting is temporarily stopped, and a cutter mark is attached to the cut surface of the workpiece.
【0113】換言すれば、NC装置71に供給される加
工プログラムの量とNC装置71で消化される加工プロ
グラムの量とをバランスさせることにより、切削中に受
信バッファ73中の加工プログラムがなくならないよう
に制御できるため、受信バッファ73中の加工プログラ
ムがなくなることを原因として切削が一時停止するとい
うことを防止でき、その結果、被加工物の切削面にカッ
タマークが付かないようにすることができる。In other words, by balancing the amount of the machining program supplied to the NC device 71 and the amount of the machining program digested by the NC device 71, the machining program in the reception buffer 73 does not run out during cutting. As a result, it is possible to prevent the cutting from being temporarily stopped due to the lack of the machining program in the reception buffer 73, and as a result, it is possible to prevent the cutter mark from being attached to the cut surface of the workpiece. it can.
【0114】[0114]
【発明の効果】以上のように、この発明によれば、NC
装置の供給バッファと消化バッファとの間に中間バッフ
ァを設け、NC側処理に消化バッファの最終データ判断
手段と、中間バッファの空判断手段と、早送り(G00
モード)判断手段と、早送り時、ブロック実行開始をイ
ンタロックする手段とを設けたことにより、中間バッフ
ァが空で消化バッファ中の次に実行するブロックの加工
プログラムが早送り(G00モード)の場合に、加工プ
ログラムのブロック実行開始をインタロックし、工具を
被加工物から離した状態で停止させて中間バッファに加
工プログラムが転送されるのを待つことができるため、
ブロック実行開始調整ができ、NC用加工プログラムを
供給する供給側の指令とぎれのため、切削送り時、切削
面に発生するカッタマークを簡易に防止できる効果があ
る。As described above, according to the present invention, the NC
An intermediate buffer is provided between the supply buffer and the digestion buffer of the apparatus, and the NC-side processing includes a digestion buffer final data determination unit, an intermediate buffer empty determination unit, and a fast forward (G00)
Mode) By providing a judgment means and a means for interlocking the start of block execution at the time of rapid traverse, when the intermediate buffer is empty and the machining program of the next block to be executed in the digestion buffer is fast traverse (G00 mode). Since it is possible to interlock the start of block execution of the machining program, stop the tool away from the workpiece, and wait for the machining program to be transferred to the intermediate buffer,
Since the start of block execution can be adjusted and the command on the supply side that supplies the machining program for NC is interrupted, there is an effect that a cutter mark generated on a cutting surface during cutting feed can be easily prevented.
【0115】また、NC装置の供給バッファと消化バッ
ファとの間に中間バッファと、オペレータが設定する速
度低下係数パラメータを設け、NC側処理に中間バッフ
ァの空判断手段と、切削送り(G01,G02,G03
モード)判断手段と、切削送り時に工具送り速度を速度
低下係数パラメータを乗じて速度を低下させる手段とを
設けたことにより、中間バッファが空で消化バッファ中
の次に実行するブロックの加工プログラムが切削送り
(G01,G02,G03モード)の場合に、速度低下
係数パラメータを乗じて工具送り速度を低下させること
により、NC側の1ブロックの実行時間が長くなり、供
給側が供給バッファに加工プログラムを転送するまでの
時間を稼ぐことができるため、補間時間調整ができ、N
C用加工プログラムを供給する供給側の指令とぎれのた
め、切削送り時、切削面に発生するカッタマークを簡易
に防止できる効果がある。Further, an intermediate buffer and a speed reduction coefficient parameter set by an operator are provided between the supply buffer and the digestion buffer of the NC unit, and the NC side processing includes an intermediate buffer empty determination unit and cutting feed (G01, G02). , G03
Mode) By providing a judgment means and a means for reducing the speed by multiplying the tool feed speed by a speed reduction coefficient parameter at the time of cutting feed, the machining program of a block to be executed next in the digestion buffer is empty when the intermediate buffer is empty. In the case of cutting feed (G01, G02, G03 mode), the execution time of one block on the NC side becomes longer by lowering the tool feed speed by multiplying by the speed reduction coefficient parameter, and the supply side stores the machining program in the supply buffer. Since the time until the transfer can be gained, the interpolation time can be adjusted, and N
There is an effect that the cutter mark generated on the cutting surface at the time of cutting feed can be easily prevented because the supply side command for supplying the machining program for C is interrupted.
【0116】また、速度オーバライド出力手段が、受信
バッファの加工プログラムの残量から、切削速度のオー
バライドを計算し、速度計算手段を介して切削速度を制
御するようにしたので、切削によって消化される加工プ
ログラム量が通信手段によって供給される加工プログラ
ム量より多くなった場合でも、非常に簡単な構成で、切
削が一時停止して被加工物にカッタマークが付くことを
防止できる効果がある。換言すれば、受信バッファ中の
加工プログラムの残量に基づいて切削送り速度を制御す
ることにより、NC装置に供給される加工プログラム量
とNC装置で消化される加工プログラム量とをバランス
させることにしたため、切削によって消化される加工プ
ログラム量が通信手段を介して供給される加工プログラ
ム量より多くなった場合に、切削送り速度を制御して切
削によって消化される加工プログラム量を減少させるこ
とができる。したがって、供給バッファ中の加工プログ
ラムがなくなってしまい、切削が一時停止して被加工物
の切削面にカッタマークが付くという事態の発生を防止
することができる。Further, the speed override output means calculates the cutting speed override from the remaining amount of the processing program in the receiving buffer and controls the cutting speed via the speed calculating means, so that the cutting can be performed. Even when the machining program amount is larger than the machining program amount supplied by the communication means, there is an effect that it is possible to prevent cutting to be temporarily stopped and a cutter mark from being attached to the workpiece with a very simple configuration. In other words, by controlling the cutting feed rate based on the remaining amount of the machining program in the reception buffer, the machining program amount supplied to the NC device and the machining program amount digested by the NC device can be balanced. Therefore, when the machining program amount processed by the cutting is larger than the processing program amount supplied via the communication means, the cutting feed rate is controlled to reduce the processing program amount processed by the cutting. . Therefore, it is possible to prevent a situation in which the machining program in the supply buffer is lost, and the situation where the cutting is temporarily stopped and a cutter mark is attached to the cut surface of the workpiece is generated.
【0117】また、データ設定手段で微小線分長及び通
信速度及び1ブロック当たりのキャラクタ数等のデータ
をメモリに予め記憶しておき、クランプ速度計算手段が
前記データをメモリから読み出して、クランプ速度を計
算し、速度計算手段がクランプ速度計算手段の計算結果
であるクランプ速度と工具送り速度を比較(補間速度>
クランプ速度)し、工具送り速度がクランプ速度以下の
場合は、工具送り速度を補間手段に出力し、工具送り速
度がクランプ速度より大きい場合は、工具送り速度をク
ランプ速度に置き換えて補間手段に出力するため、NC
装置に供給される加工プログラムの量がNC装置で消化
される加工プログラムの量を上回ったとしても、工具送
り速度がクランプ速度より大きくならないように制御し
て消化される加工プログラムの量を減少させることか
ら、受信バッファ中の加工プログラムが切削中になくな
って切削が一時停止し、被加工物の切削面にカッタマー
クが付くという事態の発生を防止することができる。ま
た、データ設定手段で微小線分長及び通信速度及び1ブ
ロック当たりのキャラクタ数等のデータをメモリに予め
記憶しておき、クランプ速度計算手段が前記データをメ
モリから読み出して、クランプ速度を計算するのでオペ
レータは、BTR運転加工に最適なクランプ速度を考え
なくてもよく、運転条件や通信条件だけを意識すればよ
い。さらに、クランプ速度で切削速度を制限するため切
削中減速しないので、切削中減速してはいけない被加工
物を切削する場合には特に有効である。Further, data such as minute line segment length, communication speed, and the number of characters per block are previously stored in the memory by the data setting means, and the clamp speed calculation means reads out the data from the memory, and sets the clamp speed. Is calculated, and the speed calculating means compares the clamping speed, which is the calculation result of the clamping speed calculating means, with the tool feed speed (interpolation speed>
If the tool feed speed is lower than the clamp speed, the tool feed speed is output to the interpolation means. If the tool feed speed is higher than the clamp speed, the tool feed speed is replaced with the clamp speed and output to the interpolation means. NC
Even if the amount of the machining program supplied to the machine exceeds the amount of the machining program to be digested by the NC device, the amount of the machining program to be digested is reduced by controlling the tool feed speed not to be higher than the clamping speed. Therefore, it is possible to prevent a situation in which the machining program in the reception buffer is lost during the cutting, the cutting is temporarily stopped, and a cutter mark is attached to the cut surface of the workpiece. Further, data such as a minute line segment length, a communication speed, and the number of characters per block are previously stored in a memory by a data setting unit, and a clamp speed calculation unit reads the data from the memory and calculates a clamp speed. Therefore, the operator does not need to consider the optimum clamping speed for the BTR operation processing, and need only be aware of the operating conditions and communication conditions. Further, since the cutting speed is limited by the clamp speed, the speed is not reduced during the cutting, which is particularly effective when cutting a workpiece that cannot be reduced during the cutting.
【0118】また、平均キャラクタ数検出手段が受信バ
ッファに受信された加工プログラムから1ブロック当た
りの平均のキャラクタ数を検出し、実効受信速度計算手
段が受信バッファに受信されたキャラクタ数から実効受
信速度を計算し、平均微小線分長検出手段がプログラム
解析手段の解析結果から平均の微小線分長を検出し、前
記平均キャラクタ数検出手段と実効受信速度計算手段と
平均微小線分長検出手段からのデータをもとにクランプ
速度計算手段がクランプ速度を計算し、速度計算手段が
クランプ速度計算手段の計算結果であるクランプ速度と
工具送り速度を比較(補間速度>クランプ速度)し、工
具送り速度がクランプ速度以下の場合は、工具送り速度
を補間手段に出力し、工具送り速度がクランプ速度より
大きい場合は、工具送り速度をクランプ速度に置き換え
て補間手段に出力するため、NC装置に供給される加工
プログラムの量がNC装置で消化される加工プログラム
の量を上回ったとしても、工具送り速度がクランプ速度
より大きくならないように制御して消化される加工プロ
グラムの量を減少させることから、受信バッファ中の加
工プログラムが切削中になくなって切削が一時停止し、
被加工物の切削面にカッタマークが付くという事態の発
生を防止することができる。また、平均キャラクタ数検
出手段が受信バッファに受信された加工プログラムから
1ブロック当たりの平均のキャラクタ数を検出し、実効
受信速度計算手段が受信バッファに受信されたキャラク
タ数から実効受信速度を計算し、平均微小線分長検出手
段がプログラム解析手段の解析結果から平均の微小線分
長を検出し、前記平均キャラクタ数検出手段と実効受信
速度計算手段と平均微小線分長検出手段からのデータを
もとにクランプ速度計算手段がクランプ速度を計算し、
その最小値を使って切削速度を制限するようにしたの
で、実際の運転条件及び通信条件によって切削速度を制
限できるという効果がある。The average character number detecting means detects the average number of characters per block from the processing program received in the receiving buffer, and the effective receiving speed calculating means calculates the effective receiving speed from the number of characters received in the receiving buffer. The average minute line length detecting means detects the average minute line length from the analysis result of the program analyzing means, and the average minute line length detecting means, the effective reception speed calculating means, and the average minute line length detecting means The clamp speed calculation means calculates the clamp speed based on the data of (1), and the speed calculation means compares the clamp speed calculated by the clamp speed calculation means with the tool feed speed (interpolation speed> clamp speed). If the tool feed speed is lower than the clamp speed, the tool feed speed is output to the interpolation means. Since the feed speed is replaced with the clamp speed and output to the interpolation means, even if the amount of the machining program supplied to the NC device exceeds the amount of the machining program digested by the NC device, the tool feed speed is higher than the clamp speed. Since the amount of the machining program to be digested is reduced by controlling so that it does not become, the machining program in the reception buffer disappears during cutting and cutting is paused,
It is possible to prevent a situation in which a cutter mark is attached to the cut surface of the workpiece. Further, the average character number detecting means detects the average number of characters per block from the machining program received in the receiving buffer, and the effective receiving speed calculating means calculates the effective receiving speed from the number of characters received in the receiving buffer. The average minute line length detecting means detects the average minute line length from the analysis result of the program analyzing means, and the data from the average character number detecting means, the effective receiving speed calculating means, and the average minute line length detecting means Based on the clamp speed calculation means to calculate the clamp speed,
Since the cutting speed is limited using the minimum value, there is an effect that the cutting speed can be limited according to the actual operating conditions and communication conditions.
【図1】 この発明によるNC装置における運転時の信
号の流れを示すブロック図である。FIG. 1 is a block diagram showing a signal flow during operation in an NC device according to the present invention.
【図2】 この発明によるNC装置の運転時における消
化処理動作を示すフローチャートである。FIG. 2 is a flowchart showing a digestion processing operation during operation of the NC device according to the present invention.
【図3】 この発明によるNC装置の運転時における消
化処理動作を示すタイミングチャートである。FIG. 3 is a timing chart showing the digestion processing operation during the operation of the NC device according to the present invention.
【図4】 この発明によるNC装置の工具軌跡を示す説
明図である。FIG. 4 is an explanatory diagram showing a tool path of the NC device according to the present invention.
【図5】 この発明によるNC装置の構成(実施例2)
を示すブロック図である。FIG. 5 shows the configuration of an NC apparatus according to the present invention (second embodiment).
FIG.
【図6】 図5に示したNC装置の動作を示すフローチ
ャートである。6 is a flowchart showing an operation of the NC device shown in FIG.
【図7】 この発明によるNC装置の構成(実施例3)
を示すブロック図である。FIG. 7 shows a configuration of an NC apparatus according to the present invention (third embodiment).
FIG.
【図8】 図7に示したNC装置の表示画面例を示す説
明図である。FIG. 8 is an explanatory diagram showing an example of a display screen of the NC device shown in FIG. 7;
【図9】 図7に示したNC装置の動作を示すフローチ
ャートである。9 is a flowchart showing an operation of the NC device shown in FIG.
【図10】 この発明によるNC装置の構成(実施例
4)を示すブロック図である。FIG. 10 is a block diagram showing a configuration (Example 4) of an NC apparatus according to the present invention.
【図11】 図10に示したNC装置の動作を示すフロ
ーチャートである。11 is a flowchart showing an operation of the NC device shown in FIG.
【図12】 NC装置に加工プログラムを供給する方法
を説明するための説明図である。FIG. 12 is an explanatory diagram for describing a method of supplying a machining program to an NC device.
【図13】 従来におけるNC装置の構成を示すブロッ
ク図である。FIG. 13 is a block diagram showing a configuration of a conventional NC device.
【図14】 従来におけるNC装置の動作を示すフロー
チャートである。FIG. 14 is a flowchart showing the operation of a conventional NC device.
【図15】 この発明および従来におけるNC装置のハ
ードウェア構成を示すブロック図である。FIG. 15 is a block diagram showing a hardware configuration of the present invention and a conventional NC device.
【図16】 従来におけるNC装置の運転時の信号の流
れを示すブロック図である。FIG. 16 is a block diagram showing a signal flow during operation of a conventional NC device.
【図17】 従来におけるNC装置の運転時の消化処理
動作を示すフローチャートである。FIG. 17 is a flowchart showing a digestion processing operation during operation of a conventional NC device.
【図18】 従来におけるNC装置の運転時の消化処理
動作を示すタイミングチャートである。FIG. 18 is a timing chart showing a digestion processing operation during operation of a conventional NC device.
【図19】 従来におけるNC装置の工具軌跡を示す説
明図である。FIG. 19 is an explanatory diagram showing a tool path of a conventional NC device.
【図20】 従来におけるNC装置の運転時の消化処理
動作を示すタイミングチャートである。FIG. 20 is a timing chart showing a digestion processing operation during the operation of the conventional NC apparatus.
10 自動プログラミング側(AP側),12 外部N
C加工プログラム作成装置,14 入出力部,16 供
給バッファ,18 中間バッファ,20 消化バッフ
ァ,22 数値制御側(NC側),24 駆動部,26
キーデータ入力部,28 切削送り低下パラメータ,
30 CPU,32 NC側ROM,34NC側RA
M,36 AP側ROM,38 AP側RAM,40
加工プログラム記憶RAM,42 入出力部,44 外
部NC加工プログラム作成装置,46表示部,48 駆
動部,50 NC装置,51 メモリ,52 供給バッ
ファ,53 NCテープリーダ,54 外部NC加工プ
ログラム作成装置,55 フロッピーディスク,56
入出力機器,57 紙テープ,58 通信回線,71N
C装置,72 通信手段,73 受信バッファ,74
プログラム解析手段,75 補間手段,76 速度計算
手段,76a 速度計算手段,76b 速度計算手段,
77 駆動部,78 速度オーバライド出力手段,79
データ設定手段,83 速度オーバーライド出力手
段,92 データ設定手段,93 メモリ,94 クラ
ンプ速度計算手段,94a クランプ速度計算手段,1
01 表示枠,102 入出力装置パラメータ表示画
面,103 データ設定部,104メニュー表示部/メ
ニューキー,105 通信速度,106 キャラクタ
数,107 微小線分長,108 ストップbit,1
09 キャラクタ長設定項目,120 平均キャラクタ
数検出手段,121 実効受信速度計算手段,122平
均微小線分長検出手段10 Automatic programming side (AP side), 12 External N
C processing program creation device, 14 input / output unit, 16 supply buffer, 18 intermediate buffer, 20 digestion buffer, 22 numerical control side (NC side), 24 drive unit, 26
Key data input section, 28 Cutting feed drop parameter,
30 CPU, 32 NC ROM, 34 NC RA
M, 36 AP side ROM, 38 AP side RAM, 40
RAM for processing program storage, 42 input / output unit, 44 external NC processing program creation device, 46 display unit, 48 drive unit, 50 NC device, 51 memory, 52 supply buffer, 53 NC tape reader, 54 external NC processing program creation device, 55 floppy disk, 56
I / O device, 57 paper tape, 58 communication line, 71N
C device, 72 communication means, 73 reception buffer, 74
Program analysis means, 75 interpolation means, 76 speed calculation means, 76a speed calculation means, 76b speed calculation means,
77 drive unit, 78 speed override output means, 79
Data setting means, 83 speed override output means, 92 data setting means, 93 memory, 94 clamp speed calculation means, 94a clamp speed calculation means, 1
01 display frame, 102 input / output device parameter display screen, 103 data setting section, 104 menu display section / menu key, 105 communication speed, 106 character count, 107 minute line segment length, 108 stop bit, 1
09 character length setting item, 120 average character number detecting means, 121 effective receiving speed calculating means, 122 average minute line segment length detecting means
Claims (5)
力機器から供給される数値制御用加工プログラムを複数
ブロック記憶する供給バッファと、前記供給バッファか
ら加工プログラムを転送される中間バッファと、前記中
間バッファから加工プログラムを転送される消化バッフ
ァと、前記消化バッファから数値制御用加工プログラム
を取り出し数値制御を実行して駆動部を動作させる数値
制御部とを有する数値制御装置において、前記数値制御
部に消化バッファの最終データ判断手段と、中間バッフ
ァの空判断手段と、早送り判断手段と、消化バッファが
最終データ外、且つ、中間バッファが空、且つ、早送り
時に数値制御用加工プログラムのブロック実行開始をイ
ンタロックするロック手段とを具備することを特徴とす
る数値制御装置。1. A supply buffer for storing a plurality of blocks of a numerical control machining program supplied from an automatic programming device or an external input / output device, an intermediate buffer to which a machining program is transferred from the supply buffer, and machining from the intermediate buffer. In a numerical control device having a digestion buffer to which a program is transferred and a numerical control unit that extracts a numerical control processing program from the digestion buffer and executes a numerical control to operate a driving unit, the numerical control unit includes a digestion buffer. The final data determination means, the intermediate buffer empty determination means, the fast forward determination means, and the digestion buffer is out of the final data, the intermediate buffer is empty, and the block execution start of the numerical control machining program is interlocked at the time of fast forward. A numerical control device comprising: a lock unit.
力機器から供給される数値制御用加工プログラムを複数
ブロック記憶する供給バッファと、前記供給バッファか
ら加工プログラムを転送される中間バッファと、前記中
間バッファから加工プログラムを転送される消化バッフ
ァと、前記消化バッファから数値制御用加工プログラム
を取り出し数値制御を実行して駆動部を動作させる数値
制御部と、オペレータが設定する切削送り低下可否フラ
グ及び速度低下係数パラメータとを有する数値制御装置
において、前記数値制御部に消化バッファの最終データ
判断手段と、中間バッファの空判断手段と、切削送り判
断手段と、切削送り低下可否フラグの判断手段と、消化
バッファが最終データ外、且つ、中間バッファが空、且
つ、切削送り、且つ、切削送り低下可否フラグON時に
数値制御用加工プログラムの工具送り速度を速度低下係
数パラメータを乗じて低下させる制御手段とを具備する
ことを特徴とする数値制御装置。2. A supply buffer for storing a plurality of blocks of a numerical control machining program supplied from an automatic programming device or an external input / output device, an intermediate buffer to which a machining program is transferred from the supply buffer, and machining from the intermediate buffer. A digestion buffer to which a program is transferred, a numerical control unit for taking out a numerical control machining program from the digestion buffer and executing a numerical control to operate a drive unit, a cutting feed reduction enable / disable flag and a speed reduction coefficient parameter set by an operator In the numerical control device having the following, the numerical control unit includes a digestion buffer final data determination unit, an intermediate buffer empty determination unit, a cutting feed determination unit, a cutting feed reduction possibility flag determination unit, Outside the data, the intermediate buffer is empty, and cutting feed, and A control means for reducing the tool feed speed of the numerical control machining program by a speed reduction coefficient parameter when the cutting feed reduction enable / disable flag is ON.
する受信バッファと、前記受信バッファにより受信され
た加工プログラムを解析するプログラム解析手段と、前
記プログラム解析手段の解析結果に基づいて制御速度を
計算する速度計算手段と、前記速度計算手段とプログラ
ム解析手段の結果から補間処理を実行する補間手段とを
備え、工作機械等を制御する数値制御装置において、前
記通信手段を介して受信バッファに受信した加工プログ
ラムの残量を検出し、該加工プログラムの残量が予め設
定した所定の境界値より少ない場合に、前記加工プログ
ラムで指定された送り速度を前記残量に応じて減速させ
るためのオーバーライド情報を計算して出力する速度オ
ーバーライド出力手段を具備し、前記速度計算手段が、
前記速度オーバーライド出力手段からオーバーライド情
報を入力すると共に、前記プログラム解析手段から加工
プログラムで指令された送り速度情報を入力し、前記入
力したオーバーライド情報および送り速度情報情報に基
づいて、前記加工プログラムのオーバーライド送り速度
を計算し、前記補間手段が、前記速度計算手段からオー
バーライド送り速度を入力すると共に、前記プログラム
解析手段から解析結果を入力し、前記入力したオーバー
ライド送り速度および解析結果に基づいて、前記補間処
理を実行することを特徴とする数値制御装置。3. A receiving buffer for receiving a machining program via communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and calculating a control speed based on an analysis result of the program analyzing means. Speed calculation means, and an interpolation means for executing interpolation processing from the results of the speed calculation means and the program analysis means, and in a numerical control device for controlling a machine tool or the like, a numerical value received by a reception buffer via the communication means. Override information for detecting the remaining amount of the machining program and, when the remaining amount of the machining program is smaller than a predetermined boundary value set in advance, reducing the feed rate specified by the machining program according to the remaining amount. Comprising speed override output means for calculating and outputting
Inputting override information from the speed override output means, inputting feed speed information instructed by a machining program from the program analysis means, and overriding the machining program based on the input override information and feed speed information information. A feed speed is calculated, and the interpolation means inputs an override feed speed from the speed calculation means and an analysis result from the program analysis means, and performs the interpolation based on the input override feed speed and the analysis result. A numerical control device for performing processing.
する受信バッファと、前記受信バッファにより受信され
た加工プログラムを解析するプログラム解析手段と、前
記プログラム解析手段の解析結果に基づいて制御速度を
計算する速度計算手段と、前記速度計算手段とプログラ
ム解析手段の結果から補間処理を実行する補間手段とを
備え、工作機械等を制御する数値制御装置において、微
小線分長、通信速度及び1ブロック当たりのキャラクタ
数等を設定するデータ設定手段を設け、前記データ設定
手段によりメモリに予め設定された該微小線分長、通信
速度及び1ブロック当たりのキャラクタ数等のデータに
基づいてクランプ速度を計算し、該クランプ速度情報を
加工速度を制限するために前記速度計算手段に出力する
クランプ速度計算手段を具備することを特徴とする数値
制御装置。4. A receiving buffer for receiving a machining program via communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and calculating a control speed based on an analysis result of the program analyzing means. A numerical control device for controlling a machine tool or the like, comprising: a speed calculating means for performing the interpolation processing based on a result of the speed calculating means and the program analyzing means; Data setting means for setting the number of characters and the like, and calculating the clamp speed based on the data such as the minute line segment length, the communication speed and the number of characters per block preset in the memory by the data setting means. A clamp speed calculating means for outputting the clamp speed information to the speed calculating means for limiting a machining speed. A numerical control device comprising a step.
する受信バッファと、前記受信バッファにより受信され
た加工プログラムを解析するプログラム解析手段と、前
記プログラム解析手段の解析結果に基づいて制御速度を
計算する速度計算手段と、前記速度計算手段とプログラ
ム解析手段の結果から補間処理を実行する補間手段とを
備え、工作機械等を制御する数値制御装置において、前
記受信バッファに受信された加工プログラムから1ブロ
ック当たりの平均キャラクタ数を検出する平均キャラク
タ数検出手段と、前記受信バッファに受信されたキャラ
クタ数から実効受信速度を計算する実効受信速度計算手
段と、前記プログラム解析手段の解析結果から平均微小
線分長を検出する平均微小線分長検出手段と、前記平均
キャラクタ数検出手段と実効受信速度計算手段と平均微
小線分検出手段からのデータに基づいてクランプ速度を
計算するクランプ速度計算手段を具備することを特徴と
する数値制御装置。5. A receiving buffer for receiving a machining program via a communication means, a program analyzing means for analyzing the machining program received by the receiving buffer, and calculating a control speed based on an analysis result of the program analyzing means. A numerical control device for controlling a machine tool or the like, comprising: a speed calculating means for performing interpolation processing based on a result of the speed calculating means and the program analyzing means; Average character number detection means for detecting an average number of characters per block; effective reception speed calculation means for calculating an effective reception speed from the number of characters received in the reception buffer; and an average minute line based on an analysis result of the program analysis means. An average minute line length detecting means for detecting a length, and a means for detecting the average number of characters. A numerical control device comprising a clamp speed calculating means for calculating a clamp speed based on data from a step, an effective receiving speed calculating means and an average minute line segment detecting means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11468592A JP2780729B2 (en) | 1992-05-07 | 1992-05-07 | Numerical control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11468592A JP2780729B2 (en) | 1992-05-07 | 1992-05-07 | Numerical control unit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05313726A JPH05313726A (en) | 1993-11-26 |
JP2780729B2 true JP2780729B2 (en) | 1998-07-30 |
Family
ID=14644082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11468592A Expired - Fee Related JP2780729B2 (en) | 1992-05-07 | 1992-05-07 | Numerical control unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2780729B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6068401B2 (en) * | 2014-07-30 | 2017-01-25 | ファナック株式会社 | Numerical control device with DNC operation means independent of machining program read time |
-
1992
- 1992-05-07 JP JP11468592A patent/JP2780729B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH05313726A (en) | 1993-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4398044B2 (en) | Numerical control device and control method for machine tool | |
US6266572B1 (en) | Apparatus for generating a numerical control command according to cut resistance value and cut torque value of machining simulation | |
US7155303B2 (en) | Numeric control method and numeric control system | |
EP0740237B1 (en) | Numerical control unit | |
US20180032054A1 (en) | Machining Status Display Apparatus, and NC Program Generating Apparatus and NC Program Editing Apparatus Provided with the Same | |
JPS624551A (en) | Automatic drawing system of tool configuration | |
US10824136B2 (en) | Setting device and computer readable medium | |
JP4059411B2 (en) | NC machine tool controller | |
JP2780729B2 (en) | Numerical control unit | |
EP1909153B1 (en) | Apparatus for creating a turning program | |
JP2849168B2 (en) | Numerical control information creation device | |
JPH11202926A (en) | Feed rate control method and apparatus in numerical control | |
KR100898035B1 (en) | How to modify toolpath | |
JP2020003958A (en) | Numerical control device | |
JPH06119031A (en) | Nc data generating method for working of cut remaining part | |
JP2606714B2 (en) | Numerical control unit | |
JPH06102923A (en) | Cutter feed speed control method in nc working | |
JP2992163B2 (en) | Numerical control method and device | |
JP3520142B2 (en) | Quadrant projection correction parameter determination device | |
JP3152053B2 (en) | Cutting condition setting method and apparatus | |
JP3189829B2 (en) | Numerical control unit | |
JPS60228056A (en) | Method of control for determining tool approach position in milling work | |
JPH0682295B2 (en) | Numerically controlled machine tool | |
JP2685328B2 (en) | Shape definition method in numerical control information creation device | |
JPH01246042A (en) | Numerically controlling device for composite machining machine tool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |