JPH0695727A - Feed speed clamping system - Google Patents

Feed speed clamping system

Info

Publication number
JPH0695727A
JPH0695727A JP24334392A JP24334392A JPH0695727A JP H0695727 A JPH0695727 A JP H0695727A JP 24334392 A JP24334392 A JP 24334392A JP 24334392 A JP24334392 A JP 24334392A JP H0695727 A JPH0695727 A JP H0695727A
Authority
JP
Japan
Prior art keywords
speed
bpt
feed
feed rate
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP24334392A
Other languages
Japanese (ja)
Inventor
Toshiaki Otsuki
俊明 大槻
Haruhiko Kozai
治彦 香西
Tomoaki Ishibe
知明 石邊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP24334392A priority Critical patent/JPH0695727A/en
Publication of JPH0695727A publication Critical patent/JPH0695727A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To most suitably clamp the feed speed in accordance with the internal processing time with respect to the feed speed clamping system for a numerical controller. CONSTITUTION:A preprocessing means 2 reads out and analyzes a working program 1 to obtain a feed speed F and outputs a command speed Fc. A BPT measuring means 3 measures BPT as the time which is required for read and analysis of one block of the working program 1 by the preprocessing means 2. A speed clasping means 4 compares the feed speed F and a limit speed Flim obtained from BPT with each other and clamps lower one and outputs it as the command speed Fc. A pulse distributing means 5 distributes a pulse (p) to a servo motor 27 based on the command speed Fc.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置の送り速度
クランプ方式に関し、特にブロックの工具移動量に応じ
て加工プログラムで指令された送り速度をクランプして
サーボモータを制御する送り速度クランプ方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a feed rate clamp system for a numerical controller, and more particularly to a feed rate clamp system for controlling a servo motor by clamping a feed rate commanded by a machining program according to a tool movement amount of a block. Regarding

【0002】[0002]

【従来の技術】従来、数値制御装置では、加工プログラ
ムによって指令された加工経路上を、指令された送り速
度に基づき工具を移動させることによって、ワークを所
望の形状に加工している。
2. Description of the Related Art Conventionally, in a numerical controller, a work is machined into a desired shape by moving a tool on a machining path designated by a machining program based on a designated feed rate.

【0003】ところで、工作機械にショックを与えた
り、サーボモータへ過大な負荷を与えたりすること等を
防ぐために、加工プログラムの各ブロックの前処理にお
いて、各ブロックにおける工具の送り速度やその速度変
化を予め求めて、その結果に基づいて実際の送り速度を
適正な値にクランプすることが行われている。
By the way, in order to prevent a shock to the machine tool, an excessive load to the servo motor, etc., in the pre-processing of each block of the machining program, the tool feed speed and its speed change in each block. Is obtained in advance, and the actual feed rate is clamped to an appropriate value based on the result.

【0004】この送り速度をクランプする方法の一つ
に、補間(パルス分配)する接線方向の速度に加減速を
かける補間前加減速がある。この方法では、実行時にブ
ロックの指令速度になるように前のブロックでスムーズ
に加速又は減速が行われるので、工作機械へのショック
等を防ぐことができた。
As one of the methods for clamping the feed rate, there is pre-interpolation acceleration / deceleration for accelerating / decelerating the tangential speed for interpolation (pulse distribution). According to this method, since the acceleration or deceleration is smoothly performed in the previous block so that the command speed of the block is achieved at the time of execution, it is possible to prevent a shock or the like to the machine tool.

【0005】[0005]

【発明が解決しようとする課題】しかし、例えば曲線経
路のように微小ブロックが連続する精密加工を行う場
合、補間前加減速による速度クランプを行うと、パルス
分配が間に合わなくなってパルスが途切れることがあ
る。こうした例として、図7に示すように、時間t72
以降では微小ブロックが連続するため、まず加工途中に
減速した後、各ブロックで指令される移動距離に応じて
加減速する。したがって、指令速度Fc がふらつくの
で、加工面が荒くなり、所望の加工精度が得られないと
いう問題点があった。
However, in the case of precision machining in which minute blocks are continuous, such as a curved path, if speed clamping is performed by acceleration / deceleration before interpolation, pulse distribution may not be in time and pulses may be interrupted. is there. As an example of this, as shown in FIG.
After that, since the minute blocks are continuous, the deceleration is first performed during the machining, and then the acceleration / deceleration is performed according to the movement distance commanded by each block. Therefore, since the commanded speed Fc fluctuates, the machined surface becomes rough and desired machining accuracy cannot be obtained.

【0006】また、送り速度Fを予め抑えると、図8に
示すように、時間t81から時間t82の間は送り速度
Fを仮想速度Fx まで上げることができるにもかかわら
ず、指令された送り速度Fでしか加工が行われないの
で、加工時間が長くなる。そして、この送り速度Fもど
れだけ抑えたらよいのかを加工プログラムの全ブロック
について調査する必要があるので、多大な労力を要し、
作業効率が低下するという問題点があった。
If the feed speed F is suppressed in advance, the feed speed F can be increased to the virtual speed Fx from time t81 to time t82 as shown in FIG. Since processing is performed only at F, processing time becomes long. Since it is necessary to investigate all the blocks of the machining program as to how much the feed rate F should be suppressed, a great deal of labor is required,
There is a problem that work efficiency is reduced.

【0007】さらに、数値制御装置内部で実行される加
工プログラムの1ブロックにおける処理時間をオペレー
タが知る手段がないため、最適な送り速度Fを設定でき
ないという問題点があった。
Further, there is a problem that the optimum feed rate F cannot be set because the operator has no means for knowing the processing time in one block of the machining program executed in the numerical controller.

【0008】本発明はこのような点に鑑みてなされたも
のであり、数値制御装置の内部処理時間に応じて最適に
送り速度をクランプする送り速度クランプ方式を、提供
することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a feed rate clamp system for optimally clamping the feed rate in accordance with the internal processing time of the numerical controller.

【0009】[0009]

【課題を解決するための手段】本発明では上記課題を解
決するために、加工プログラムで指令された送り速度を
クランプしてサーボモータを制御する送り速度クランプ
方式において、加工プログラムの読み出し及び解析を行
なって送り速度を求め、指令速度を出力する前処理手段
と、前記前処理手段が前記加工プログラムの1ブロック
を読み出して解析するのに必要な時間であるBPT(Bl
ock Processing Time )を計測するBPT計測手段と、
前記送り速度と前記BPTから求められる限界速度とを
比較していずれか小さいほうの速度にクランプし、前記
指令速度として出力する速度クランプ手段と、前記指令
速度に基づいて、サーボモータへ出力するパルスを分配
するパルス分配手段と、を有することを特徴とする送り
速度クランプ方式が提供される。
In order to solve the above-mentioned problems, the present invention solves the above-mentioned problems by reading and analyzing a machining program in a feeding speed clamp system in which a feeding speed commanded by a machining program is clamped to control a servo motor. BPT (Bl), which is the time required for the pre-processing means to go on to obtain the feed speed and output the command speed and the pre-processing means to read and analyze one block of the machining program.
BPT measuring means for measuring (ock Processing Time),
A speed clamp means for comparing the feed speed and the limit speed obtained from the BPT and clamping the smaller speed, and outputting the command speed, and a pulse output to a servo motor based on the command speed. And a pulse distributing means for distributing.

【0010】[0010]

【作用】まず、BPT計測手段は前処理手段が加工プロ
グラムの1ブロックを読み出して解析するのに必要な時
間であるBPTを計測する。次に、前処理手段は加工プ
ログラムの読み出し及び解析を行なって送り速度を求
め、速度クランプ手段によって求められる指令速度を出
力する。そして、パルス分配手段は前処理手段から出力
された指令速度に基づいて、サーボモータへパルスを分
配する。
First, the BPT measuring means measures the BPT, which is the time required for the preprocessing means to read and analyze one block of the machining program. Next, the preprocessing means reads out and analyzes the machining program to obtain the feed speed, and outputs the command speed obtained by the speed clamp means. Then, the pulse distributing means distributes the pulses to the servomotors based on the command speed output from the preprocessing means.

【0011】[0011]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図2は、本発明が適用される数値制御装置の一
つである対話形数値制御装置の構成を示すブロック図で
ある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing the configuration of an interactive numerical control device which is one of the numerical control devices to which the present invention is applied.

【0012】プロセッサ11はROM12に格納された
システムプログラムに従って数値制御装置全体を制御す
る。ROM12にはEPROMあるいはEEPROMが
使用される。RAM13にはSRAM等が使用され、B
PT(Block Processing Time )、送り速度及び指令速
度等の各種のデータあるいは入出力信号が格納される。
不揮発性メモリ14には図示されていないバッテリによ
ってバックアップされたCMOSが使用され、電源切断
後も保持すべきパラメータ、ピッチ誤差補正量及び工具
補正量等が格納されている。
The processor 11 controls the entire numerical controller according to the system program stored in the ROM 12. EPROM or EEPROM is used for the ROM 12. SRAM 13 is used as the RAM 13, and B
Various data such as PT (Block Processing Time), feed speed and command speed, or input / output signals are stored.
The non-volatile memory 14 uses a CMOS backed up by a battery (not shown), and stores parameters, pitch error correction amount, tool correction amount, and the like that should be retained even after the power is turned off.

【0013】グラフィック制御回路15はディジタル信
号を表示用の信号に変換し、表示装置16に与える。表
示装置16にはCRTあるいは液晶表示装置が使用され
る。表示装置16は対話形式で加工プログラムを作成し
ていくときに、形状、加工条件等を表示する。キーボー
ド17はシンボリックキー及び数値キー等からなり、必
要な図形データ、NCデータをこれらのキーを使用して
入力する。タイマー26は日付及び時間を刻み、プロセ
ッサ11からの指令に応じて時間データとして出力する
とともに、プロセッサ11から設定された所定の時間ご
とにプロセッサ11へ割り込み信号を出力する。
The graphic control circuit 15 converts the digital signal into a signal for display and gives it to the display device 16. A CRT or a liquid crystal display device is used as the display device 16. The display device 16 displays a shape, processing conditions, etc. when creating a processing program in an interactive form. The keyboard 17 is composed of symbolic keys, numerical keys, etc., and is used to input necessary graphic data and NC data. The timer 26 ticks the date and time, outputs the time data in response to a command from the processor 11, and outputs an interrupt signal to the processor 11 at every predetermined time set by the processor 11.

【0014】軸制御回路18は、プロセッサ11から軸
の移動指令を受けて、軸の指令をサーボアンプ19に出
力する。サーボアンプ19は軸の指令を受けて、工作機
械20に設けられた各軸のサーボモータ27を駆動す
る。
The axis control circuit 18 receives the axis movement command from the processor 11 and outputs the axis command to the servo amplifier 19. The servo amplifier 19 receives the command of the axis and drives the servo motor 27 of each axis provided in the machine tool 20.

【0015】以上の各構成要素は、バス21によって互
いに結合されている。PMC(プログラマブル・マシン
・コントローラ)22はNCプログラムの実行時に、バ
ス21経由でT機能信号(工具選択指令)等を受け取
る。そして、この信号をシーケンス・プログラムで処理
して、動作指令として信号を出力し、工作機械20を制
御する。また、工作機械20から状態信号を受けて、シ
ーケンス処理を行い、バス21を経由して、プロセッサ
11に必要な入力信号を転送する。
The above components are connected to each other by a bus 21. A PMC (Programmable Machine Controller) 22 receives a T function signal (tool selection command) and the like via the bus 21 when executing an NC program. Then, this signal is processed by the sequence program, a signal is output as an operation command, and the machine tool 20 is controlled. Further, it receives a status signal from the machine tool 20, performs a sequence process, and transfers a necessary input signal to the processor 11 via the bus 21.

【0016】さらに、バス21には、システムプログラ
ム等によって機能が変化するソフトウェアキー23、N
Cデータをフロッピーディスク、プリンタあるいは紙テ
ープリーダ(PTR)などの外部機器に送るシリアルイ
ンタフェース24が接続されている。このソフトウェア
キー23は、上記表示装置16、キーボード17ととも
に、CRT/MDIパネル25に設けられる。
Further, the bus 21 has software keys 23 and N whose functions change according to a system program or the like.
A serial interface 24 for sending C data to an external device such as a floppy disk, a printer, or a paper tape reader (PTR) is connected. The software key 23 is provided on the CRT / MDI panel 25 together with the display device 16 and the keyboard 17.

【0017】上記バス21には、NC用のCPUである
プロセッサ11とは別に、バス30を有する対話用のプ
ロセッサ31が接続される。バス30にはROM32、
RAM33及び不揮発性メモリ34が接続されている。
In addition to the processor 11 which is the CPU for NC, the bus 21 is connected with a processor 31 for interaction having a bus 30. ROM 32 on the bus 30,
The RAM 33 and the non-volatile memory 34 are connected.

【0018】上記表示装置16に表示される対話形デー
タの入力画面は、ROM32に格納されている。この対
話形データの入力画面において、NC文の作成時にバッ
クグラウンドアニメーションとして、工具の全体の動作
軌跡などが表示される。また、表示装置16にはその入
力画面により設定可能な作業又はデータが、メニュー形
式で表示される。メニューのうちどの項目を選択するか
は、メニューに対応して、画面下部に配置されたソフト
ウェアキー23により行う。ソフトウェアキー23の意
味は各画面毎に変化する。RAM33にはSRAM等が
使用され、対話用の各種データが格納される。
An input screen for interactive data displayed on the display device 16 is stored in the ROM 32. On this interactive data input screen, the entire motion trajectory of the tool and the like are displayed as a background animation when the NC sentence is created. Further, the work or data that can be set by the input screen is displayed on the display device 16 in a menu format. The item to be selected from the menu is selected by the software key 23 arranged at the bottom of the screen corresponding to the menu. The meaning of the software key 23 changes for each screen. An SRAM or the like is used as the RAM 33, and various data for dialogue are stored.

【0019】入力されたデータは対話用のプロセッサ3
1により処理されてワーク加工プログラムが作成される
とともに、対話形式で使用される表示装置16へ逐次に
バックグラウンドアニメーション表示される。また、不
揮発性メモリ34にNC文として格納されたワーク加工
プログラムは、工作機械20の加工シミュレーションの
際にも実行され、フォアグラウンドアニメーション表示
される。
The input data is the processor 3 for dialogue.
1 is processed to create a work machining program, and a background animation is sequentially displayed on the display device 16 used interactively. The work machining program stored as an NC sentence in the non-volatile memory 34 is also executed during the machining simulation of the machine tool 20, and is displayed in the foreground animation.

【0020】図1は、本発明の原理説明図である。本発
明の送り速度クランプ方式は、前処理手段2、BPT計
測手段3、速度クランプ手段4及びパルス分配手段5か
ら構成される。なお、前処理手段2、BPT計測手段3
及び速度クランプ手段4は、図2のROM12に格納さ
れたシステムプログラムをプロセッサ11が実行するこ
とによって実現される機能である。また、パルス分配手
段5は図2の軸制御回路18及びサーボアンプ19に相
当する。
FIG. 1 is a diagram for explaining the principle of the present invention. The feed rate clamping method of the present invention comprises a preprocessing unit 2, a BPT measuring unit 3, a velocity clamping unit 4 and a pulse distributing unit 5. The preprocessing unit 2 and the BPT measuring unit 3
The speed clamp means 4 is a function realized by the processor 11 executing the system program stored in the ROM 12 of FIG. The pulse distributing means 5 corresponds to the axis control circuit 18 and the servo amplifier 19 shown in FIG.

【0021】前処理手段2は、加工プログラム1の読み
出し及び解析を行なって送り速度Fを求め、指令速度F
c を出力する。BPT計測手段3は、前処理手段2が加
工プログラム1の1ブロックを読み出して解析するのに
必要な時間であるBPTを計測する。速度クランプ手段
4は、送り速度FとBPTから求められる限界速度Fli
m とを比較していずれか小さいほうの速度にクランプ
し、指令速度Fc として出力する。パルス分配手段5
は、指令速度Fc に基づいてサーボモータ27へパルス
pを分配する。
The preprocessing means 2 reads out and analyzes the machining program 1 to obtain the feed speed F, and the command speed F
Output c. The BPT measuring means 3 measures the BPT, which is the time required for the preprocessing means 2 to read and analyze one block of the machining program 1. The speed clamp means 4 has a limit speed Fli obtained from the feed speed F and BPT.
It is compared with m and clamped to the smaller speed, and output as the command speed Fc. Pulse distribution means 5
Distributes the pulse p to the servomotor 27 based on the command speed Fc.

【0022】次に、本発明の送り速度クランプ方式の動
作について説明する。まず、BPT計測手段3はシステ
ム起動時や送り速度に関連するパラメータを変更した時
等の所定の時期にのみ実行される。具体的には、オペレ
ータがBPT計測を行うためのパラメータを例えば
「1」に設定する。逆に、実加工のようにBPT計測を
行わない場合は上記パラメータを例えば「0」に設定す
る。ここで、BPT計測手段3によって計測されるBP
Tは、前処理手段2が加工プログラム1の1ブロックを
読み出して解析するのに必要な内部処理時間である。
Next, the operation of the feed rate clamp system of the present invention will be described. First, the BPT measuring means 3 is executed only at a predetermined time such as when the system is started up or when the parameter relating to the feed rate is changed. Specifically, the operator sets a parameter for BPT measurement to, for example, "1". On the contrary, when the BPT measurement is not performed as in actual machining, the above parameter is set to, for example, "0". Here, the BP measured by the BPT measuring means 3
T is an internal processing time required for the preprocessing means 2 to read and analyze one block of the machining program 1.

【0023】なお、計測されたBPTが分配周期ITP
よりも短い場合は、分配周期ITPがBPTとして前処
理手段2へ出力される。ここで、分配周期ITPはサー
ボモータ27等に応じて設定される一定の数値であっ
て、パルスpを分配する周期を示す。
The measured BPT is the distribution cycle ITP.
If it is shorter than this, the distribution cycle ITP is output to the preprocessing unit 2 as BPT. Here, the distribution cycle ITP is a constant numerical value set according to the servomotor 27 and the like, and indicates a cycle for distributing the pulse p.

【0024】その後、実加工等の加工プログラム1を読
み出してサーボモータを制御する場合は、前処理手段2
が加工プログラム1の読み出し及び解析を行なって送り
速度F等を求める。すなわち、加工プログラム1で指令
されるNC機能の字句解析、構文解析、座標計算及び補
正量計算等の数値計算を含む所定の処理を行い、移動距
離d、送り速度F及び必要な他の指令を求める。
After that, when the machining program 1 for actual machining or the like is read out to control the servomotor, the preprocessing means 2 is used.
Reads and analyzes the machining program 1 to obtain the feed rate F and the like. That is, predetermined processing including numerical calculation such as lexical analysis, syntactic analysis, coordinate calculation and correction amount calculation of the NC function instructed by the machining program 1 is performed, and the moving distance d, the feed speed F, and other necessary commands are specified. Ask.

【0025】こうして求められたBPT及び送り速度F
は、速度クランプ手段4へ出力される。速度クランプ手
段4は、まずBPT計測手段3で計測されたBPT〔ms
ec〕と、サーボモータ27等に応じて設定されるパルス
の重みCMR〔mm/sec〕と、ブロック内で指令された移
動距離d〔mm〕とから、次式によって1分配周期に最低
1パルス出力する速度を示す限界速度Flim 〔mm/sec〕
を求める。
BPT and feed rate F thus obtained
Is output to the speed clamp means 4. The speed clamp means 4 first measures the BPT [ms] measured by the BPT measuring means 3.
ec], the pulse weight CMR [mm / sec] set according to the servo motor 27, etc., and the movement distance d [mm] commanded in the block, at least one pulse per one distribution cycle according to the following equation. Limit speed Flim [mm / sec] that indicates output speed
Ask for.

【0026】 Flim =(1/BPT)×1000×60×CMR×d ・・・(1) そして、求められた限界速度Flim と送り速度Fとを比
較して、いずれか小さいほう、すなわち遅いほうの速度
にクランプし、指令速度Fc として前処理手段2へ出力
する。
Flim = (1 / BPT) × 1000 × 60 × CMR × d (1) Then, the obtained limit speed Flim and the feed speed F are compared with each other, whichever is smaller, that is, the slower one. It is clamped at the speed of and is output to the preprocessing means 2 as the command speed Fc.

【0027】前処理手段2は速度クランプ手段4から出
力された指令速度Fc をパルス分配手段5へ出力する。
パルス分配手段5はこの指令速度Fc に基づいて、サー
ボモータ27へパルスpを分配する。
The preprocessing means 2 outputs the command speed Fc output from the speed clamp means 4 to the pulse distribution means 5.
The pulse distribution means 5 distributes the pulse p to the servomotor 27 based on the command speed Fc.

【0028】したがって、対話型数値制御装置の内部処
理時間に応じてクランプされた最適な送り速度、すなわ
ち上記指令速度Fc によってサーボモータ27を制御す
ることができる。このため、加工時間を最小に抑えるこ
とができ、かつ、加工面が滑らかで所望の加工精度を得
ることができる。
Therefore, the servomotor 27 can be controlled by the optimum feed speed clamped according to the internal processing time of the interactive numerical control device, that is, the command speed Fc. For this reason, the processing time can be suppressed to the minimum, and the processing surface is smooth and desired processing accuracy can be obtained.

【0029】図3は、BPT計測手段の処理手順を示す
フローチャートである。図において、Sの後に続く数字
はステップ番号を示す。 〔S31〕カウンタの初期化を行う。すなわち、カウン
タとして使用される図2に示すRAM13又は不揮発性
メモリ14の所定のアドレス、あるいはプロセッサ11
のレジスタをゼロに初期化する。 〔S32〕タイマー割り込みの設定を行う。具体的に
は、プロセッサ11からタイマー26へ所定の指令を送
り、例えば1〔msec〕等の割込時間ごとに、割り込み信
号を発生させる。なお、タイマー26は設定された所定
の時間ごとに、プロセッサ11へ割り込み信号を出力す
る。 〔S33〕予め図2のROM12等に格納された計測用
のプログラム、又は入力された加工プログラムの1ブロ
ックを読み出す。なお、プロセッサ11が割り込み信号
を受けると、ステップS38を実行する。 〔S34〕ステップS33で読み出された1ブロックの
解析処理を行う。すなわち、ブロック内で指令されてい
るNC機能の字句解析、構文解析、座標計算及び補正量
計算等の数値計算を含む所定の処理を行い、移動距離
d、送り速度F及び必要な他の指令を求める。なお、プ
ロセッサ11が割り込み信号を受けると、ステップS3
8を実行する。 〔S35〕タイマー割り込みの解除を行う。具体的に
は、プロセッサ11からタイマー26へ所定の指令を送
り、割り込み信号の発生を停止させる。 〔S36〕送り速度Fを算出する。具体的には、まずカ
ウンタの数値からBPT〔msec〕を求める。例えば、1
〔msec〕の割込時間ならばカウンタの数値がそのままB
PTになるが、5〔msec〕の割込時間ならばカウンタの
数値を5倍した値がBPTになる。 〔S37〕送り速度F及びBPTを出力する。具体的に
は、送り速度F及びBPTをRAM13又は不揮発性メ
モリ14の所定のアドレス等の所定の領域に設定する。
その後、本処理手順を終了する。 〔S38〕カウンタの増分を行う。すなわち、カウンタ
の数値を1だけ増加させる。本ステップ終了後は割り込
み前の処理手順に復帰する。
FIG. 3 is a flow chart showing the processing procedure of the BPT measuring means. In the figure, the number following S indicates a step number. [S31] The counter is initialized. That is, a predetermined address of the RAM 13 or the non-volatile memory 14 shown in FIG.
Initialize the registers of to zero. [S32] The timer interrupt is set. Specifically, a predetermined command is sent from the processor 11 to the timer 26, and an interrupt signal is generated at every interrupt time such as 1 [msec]. The timer 26 outputs an interrupt signal to the processor 11 at each set predetermined time. [S33] One block of the measurement program stored in advance in the ROM 12 of FIG. 2 or the input machining program is read. When the processor 11 receives the interrupt signal, step S38 is executed. [S34] The analysis process of the one block read in step S33 is performed. That is, predetermined processing including numerical calculation such as lexical analysis, syntactic analysis, coordinate calculation and correction amount calculation of the NC function commanded in the block is performed, and the moving distance d, the feed speed F and other necessary commands are specified. Ask. When the processor 11 receives the interrupt signal, step S3
Execute 8. [S35] The timer interrupt is released. Specifically, the processor 11 sends a predetermined command to the timer 26 to stop the generation of the interrupt signal. [S36] The feed speed F is calculated. Specifically, first, BPT [msec] is calculated from the numerical value of the counter. For example, 1
If it is an interrupt time of [msec], the value on the counter remains B
Although it becomes PT, if the interrupt time is 5 [msec], the value obtained by multiplying the value of the counter by 5 becomes BPT. [S37] The feed speed F and BPT are output. Specifically, the feed speeds F and BPT are set in a predetermined area such as a predetermined address of the RAM 13 or the non-volatile memory 14.
Then, this processing procedure is ended. [S38] The counter is incremented. That is, the value of the counter is incremented by 1. After this step ends, the procedure returns to the procedure before the interruption.

【0030】図4は、速度クランプ手段の処理手順を示
すフローチャートである。図において、Sの後に続く数
字はステップ番号を示す。 〔S41〕限界速度Flim を算出する。具体的には、図
3の処理手順で計測されたBPT〔msec〕、パルスの重
みCMR〔mm/sec〕及び移動距離d〔mm〕から、上記式
(1)を演算する。 〔S42〕送り速度FとステップS41で算出された限
界速度Flim とを比較する。もし、送り速度Fが限界速
度Flim よりも大きい(YES)ならばステップS43
に進み、送り速度Fが限界速度Flim よりも小さい(N
O)ならばステップS43に進む。 〔S43〕限界速度Flim を指令速度Fc として出力し
た後、本処理手順を終了する。具体的には、RAM13
又は不揮発性メモリ14の所定のアドレス等の所定の領
域に設定し、本処理手順を終了する。 〔S44〕送り速度Fを指令速度Fc として出力した
後、本処理手順を終了する。具体的には、RAM13又
は不揮発性メモリ14の所定のアドレス等の所定の領域
に設定し、本処理手順を終了する。
FIG. 4 is a flow chart showing the processing procedure of the speed clamp means. In the figure, the number following S indicates a step number. [S41] The limit speed Flim is calculated. Specifically, the above equation (1) is calculated from the BPT [msec], the pulse weight CMR [mm / sec], and the moving distance d [mm] measured in the processing procedure of FIG. [S42] The feed speed F is compared with the limit speed Flim calculated in step S41. If the feed speed F is larger than the limit speed Flim (YES), step S43.
And the feed speed F is smaller than the limit speed Flim (N
If it is O), the process proceeds to step S43. [S43] After outputting the limit speed Flim as the command speed Fc, this processing procedure ends. Specifically, the RAM 13
Alternatively, it is set in a predetermined area such as a predetermined address of the non-volatile memory 14, and this processing procedure is ended. [S44] After the feed speed F is output as the command speed Fc, this processing procedure ends. Specifically, the RAM 13 or the nonvolatile memory 14 is set in a predetermined area such as a predetermined address, and the present processing procedure is ended.

【0031】図5は、本発明の送り速度クランプ方式の
全体の処理手順を示すフローチャートである。図におい
て、Sの後に続く数字はステップ番号を示す。 〔S51〕計測パラメータの設定を行う。具体的には、
まずオペレータが所定の操作を行うことによってパラメ
ータ設定画面を呼び出す。そして、パラメータ設定画面
の中のBPT計測の実行を表すパラメータのビットを、
例えば「1」に設定する。 〔S52〕BPT計測処理を行う。すなわち、図3に示
す処理手順を実行する。 〔S53〕計測パラメータの解除を行う。ステップS5
1と同様にパラメータ設定画面を呼び出し、BPT計測
の実行を表すパラメータのビットを、例えば「0」に設
定する。 〔S54〕加工プログラムの1ブロックを読み出す。 〔S55〕ステップS54で読み出された1ブロックの
解析処理を行う。すなわち、ブロック内で指令されてい
るNC機能の字句解析、構文解析、座標計算及び補正量
計算等の数値計算を含む所定の処理を行い、移動距離
d、送り速度F及び必要な他の指令を求める。 〔S56〕速度クランプ処理を行う。すなわち、図4に
示す処理手順を実行し、得られた指令速度Fc を図1に
示すパルス分配手段5へ出力する。 〔S57〕加工プログラムに他のブロックが存在するか
否かを判別する。もし、他のブロックが存在する(YE
S)ならばステップS54に戻り、他のブロックが存在
しない(NO)ならば本処理手順を終了する。
FIG. 5 is a flow chart showing the overall processing procedure of the feed rate clamp method of the present invention. In the figure, the number following S indicates a step number. [S51] Measurement parameters are set. In particular,
First, an operator calls a parameter setting screen by performing a predetermined operation. Then, in the parameter setting screen, set the bit of the parameter indicating the execution of the BPT measurement,
For example, it is set to "1". [S52] BPT measurement processing is performed. That is, the processing procedure shown in FIG. 3 is executed. [S53] The measurement parameter is canceled. Step S5
As in the case of 1, the parameter setting screen is called, and the bit of the parameter indicating the execution of the BPT measurement is set to, for example, “0”. [S54] One block of the machining program is read. [S55] The analysis process of the one block read in step S54 is performed. That is, predetermined processing including numerical calculation such as lexical analysis, syntactic analysis, coordinate calculation and correction amount calculation of the NC function commanded in the block is performed, and the moving distance d, the feed speed F and other necessary commands are specified. Ask. [S56] Speed clamp processing is performed. That is, the processing procedure shown in FIG. 4 is executed, and the obtained command speed Fc is output to the pulse distributing means 5 shown in FIG. [S57] It is determined whether or not another block exists in the machining program. If there are other blocks (YE
If S), the process returns to step S54, and if there is no other block (NO), this processing procedure ends.

【0032】上記図3から図5までの本発明の処理手順
を実施した場合における速度クランプの一例を図6に示
す。図6で明らかなように、時間t61までは速度Fl1
である限界速度Flim は、時間t61以降では微小ブロ
ックが連続するため、時間t61から時間t62までは
速度Fl2に、時間t62以降は速度Fl3に抑えられてい
る。この限界速度Flim によって、時間t61以降では
指令速度Fc も同様に、時間t61から時間t62まで
は速度Fl2に、時間t62以降は速度Fl3に、それぞれ
クランプされる。
FIG. 6 shows an example of the speed clamp when the processing procedure of the present invention shown in FIGS. 3 to 5 is carried out. As is apparent from FIG. 6, the velocity Fl1 is up to time t61.
Since the limit speed Flim is a small block continuous after the time t61, it is suppressed to the speed Fl2 from the time t61 to the time t62 and to the speed Fl3 after the time t62. By the limit speed Flim, the command speed Fc is similarly clamped to the speed Fl2 from the time t61 to the time t62 after the time t61 and to the speed Fl3 after the time t62.

【0033】したがって、対話型数値制御装置の内部処
理時間に応じて、最適にクランプされた指令速度Fc に
よってサーボモータ27を制御するので、加工時間を最
小に抑え、かつ、加工面が滑らかで所望の加工精度を得
ることができる。
Therefore, the servomotor 27 is controlled by the optimally clamped command speed Fc according to the internal processing time of the interactive numerical control device, so that the processing time is minimized and the processing surface is smooth and desired. The processing accuracy of can be obtained.

【0034】以上の説明では、本発明を対話型数値制御
装置に適用したが、加工プログラム1に基づきサーボモ
ータ27を制御する他の数値制御装置にも同様に適用す
ることができる。
In the above description, the present invention is applied to the interactive numerical control device, but the present invention can also be applied to other numerical control devices that control the servomotor 27 based on the machining program 1.

【0035】また、BPT計測手段3はオペレータが所
定のパラメータを設定することによって実行されるよう
に構成したが、システム起動時や送り速度に関連するパ
ラメータ等を常に監視する監視手段を設けて、変更等が
あった場合に自動的に実行されるように構成してもよ
い。こうすることによって、システム起動時や送り速度
に関連するパラメータを変更した時等の所定の時期にB
PT計測手段3が実行されなかったために、指令速度F
c が最適にクランプされない等の不測の事態を防止する
ことができる。
The BPT measuring means 3 is configured to be executed by the operator by setting predetermined parameters. However, a monitoring means for constantly monitoring parameters related to system start-up and feed speed is provided. It may be configured to be automatically executed when there is a change or the like. By doing this, B is set at a predetermined time such as when the system is started up or when the parameters related to the feed rate are changed.
Since the PT measuring means 3 was not executed, the command speed F
It is possible to prevent unexpected situations such as c not being optimally clamped.

【0036】[0036]

【発明の効果】以上説明したように本発明では、BPT
計測手段が加工プログラムの1ブロックを読み出して解
析するのに必要な時間であるBPTを計測し、前処理手
段が送り速度を求め、速度クランプ手段によって求めら
れる指令速度を出力するように構成したので、数値制御
装置の内部処理時間に応じてクランプされた最適な送り
速度によってサーボモータを制御することができる。
As described above, according to the present invention, the BPT
Since the measuring means measures the BPT which is the time required to read and analyze one block of the machining program, the preprocessing means calculates the feed speed and outputs the command speed calculated by the speed clamp means. The servo motor can be controlled by the optimum feed rate clamped according to the internal processing time of the numerical controller.

【0037】このため、加工時間を最小に抑えることが
でき、かつ、加工面が滑らかで所望の加工精度を得るこ
とができる。
For this reason, the processing time can be minimized, and the processing surface can be made smooth and desired processing accuracy can be obtained.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】対話形数値制御装置の構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a configuration of an interactive numerical control device.

【図3】BPT計測手段の処理手順を示すフローチャー
トである。
FIG. 3 is a flowchart showing a processing procedure of BPT measuring means.

【図4】速度クランプ手段の処理手順を示すフローチャ
ートである。
FIG. 4 is a flowchart showing a processing procedure of a speed clamp means.

【図5】本発明の送り速度クランプ方式の全体の処理手
順を示すフローチャートである。
FIG. 5 is a flowchart showing the overall processing procedure of the feed rate clamp method of the present invention.

【図6】本発明を実施した場合の速度クランプの一例を
示す図である。
FIG. 6 is a diagram showing an example of a speed clamp when the present invention is implemented.

【図7】従来の速度クランプの一例を示す図である。FIG. 7 is a diagram showing an example of a conventional speed clamp.

【図8】従来の速度クランプの一例を示す図である。FIG. 8 is a diagram showing an example of a conventional speed clamp.

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

11,31 プロセッサ 12,32 ROM 13,33 RAM 14,34 不揮発性メモリ 15 グラフィック制御回路 16 表示装置 17 キーボード 18 軸制御回路 19 サーボアンプ 23 ソフトウェアキー 26 タイマー 27 サーボモータ 11, 31 processor 12, 32 ROM 13, 33 RAM 14, 34 non-volatile memory 15 graphic control circuit 16 display device 17 keyboard 18 axis control circuit 19 servo amplifier 23 software key 26 timer 27 servo motor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 加工プログラムで指令された送り速度を
クランプしてサーボモータを制御する送り速度クランプ
方式において、 加工プログラムの読み出し及び解析を行なって送り速度
を求め、指令速度を出力する前処理手段と、 前記前処理手段が前記加工プログラムの1ブロックを読
み出して解析するのに必要な時間であるBPT(Block
Processing Time )を計測するBPT計測手段と、 前記送り速度と前記BPTから求められる限界速度とを
比較していずれか小さいほうの速度にクランプし、前記
指令速度として出力する速度クランプ手段と、 前記指令速度に基づいて、サーボモータへ出力するパル
スを分配するパルス分配手段と、 を有することを特徴とする送り速度クランプ方式。
1. A feed rate clamping method for clamping a feed rate commanded by a machining program to control a servo motor, in which a machining program is read and analyzed to obtain a feed rate, and a preprocessing means for outputting the commanded rate. And BPT (Block) which is the time required for the preprocessing means to read and analyze one block of the machining program.
Processing time), a BPT measuring unit, a speed clamping unit that compares the feed speed with a limit speed obtained from the BPT, clamps at the smaller speed, and outputs the clamped speed as the command speed, A feed speed clamp system, comprising: pulse distribution means for distributing pulses to be output to a servo motor based on speed.
【請求項2】 前記BPT計測手段は、システム起動時
や送り速度に関連するパラメータを変更した時等の所定
の時期にのみ実行するように構成したことを特徴とする
請求項1記載の送り速度クランプ方式。
2. The feed rate according to claim 1, wherein the BPT measuring means is configured to be executed only at a predetermined time such as when the system is started up or when a parameter relating to the feed rate is changed. Clamp method.
JP24334392A 1992-09-11 1992-09-11 Feed speed clamping system Pending JPH0695727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24334392A JPH0695727A (en) 1992-09-11 1992-09-11 Feed speed clamping system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24334392A JPH0695727A (en) 1992-09-11 1992-09-11 Feed speed clamping system

Publications (1)

Publication Number Publication Date
JPH0695727A true JPH0695727A (en) 1994-04-08

Family

ID=17102419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24334392A Pending JPH0695727A (en) 1992-09-11 1992-09-11 Feed speed clamping system

Country Status (1)

Country Link
JP (1) JPH0695727A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266011A (en) * 2008-04-25 2009-11-12 Fanuc Ltd Movement controller and movement control method for robot for shortening cycle time
DE102014007556A1 (en) 2013-05-23 2014-11-27 Fanuc Corporation Numerical control device for controlling a movement speed
JP2015210751A (en) * 2014-04-30 2015-11-24 パナソニック デバイスSunx株式会社 Programmable controller, control method and control program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266011A (en) * 2008-04-25 2009-11-12 Fanuc Ltd Movement controller and movement control method for robot for shortening cycle time
DE102014007556A1 (en) 2013-05-23 2014-11-27 Fanuc Corporation Numerical control device for controlling a movement speed
JP2014229134A (en) * 2013-05-23 2014-12-08 ファナック株式会社 Numerical controller for controlling feed speed
US9429931B2 (en) 2013-05-23 2016-08-30 Fanuc Corporation Numerical controller for controlling feed speed
JP2015210751A (en) * 2014-04-30 2015-11-24 パナソニック デバイスSunx株式会社 Programmable controller, control method and control program

Similar Documents

Publication Publication Date Title
JP2641797B2 (en) Interactive numerical controller
JP4847428B2 (en) Machining simulation apparatus and program thereof
US6885909B2 (en) Numerical controller
US5400260A (en) Method of creating machining conditions for NC machine tools
EP0511395A1 (en) Conversational type numerical control equipment
WO2008053601A1 (en) Working control device, and its program
JPS63182707A (en) Acceleration/deceleration control device
JPH11143514A (en) Numerical controller capable of executing working error check
JPH0695727A (en) Feed speed clamping system
JP2742172B2 (en) Feed forward control method
JPH0752365B2 (en) Numerical control device
JPH08106311A (en) Numerical controller
JP3242190B2 (en) Numerical control unit
JP4982170B2 (en) Machining control device and machining control program
JPH04114208A (en) Animation plotting system for nc program
JPH04229307A (en) Nc data generating method
JP3520142B2 (en) Quadrant projection correction parameter determination device
WO2024003972A1 (en) Program optimization device and storage medium
JP2001154719A (en) Method for interpolating free curve
JPH0566819A (en) Interactive automatic programming method
US11231699B2 (en) Program analysis device
JPH05168998A (en) Speed control system for making amount of sealing coating constant
JPH05309546A (en) Machining hour computing method for numerically controlled machine tool and its device
JPH04252307A (en) Interactive numerical controller
JPH0258106A (en) Accelerating/decelerating time constant control system