JPH01191902A - Numerical control system - Google Patents

Numerical control system

Info

Publication number
JPH01191902A
JPH01191902A JP63017644A JP1764488A JPH01191902A JP H01191902 A JPH01191902 A JP H01191902A JP 63017644 A JP63017644 A JP 63017644A JP 1764488 A JP1764488 A JP 1764488A JP H01191902 A JPH01191902 A JP H01191902A
Authority
JP
Japan
Prior art keywords
executing
data
time
execution
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63017644A
Other languages
Japanese (ja)
Other versions
JPH0695289B2 (en
Inventor
Yasushi Fukaya
安司 深谷
Yukinori Otsubo
大坪 幸則
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.)
Okuma Corp
Original Assignee
Okuma Machinery Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Okuma Machinery Works Ltd filed Critical Okuma Machinery Works Ltd
Priority to JP63017644A priority Critical patent/JPH0695289B2/en
Publication of JPH01191902A publication Critical patent/JPH01191902A/en
Publication of JPH0695289B2 publication Critical patent/JPH0695289B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To improve the numerical control efficiency to avoid such a case where the difference exceeds the prescribed value between the stored total time needed for execution of data of each executing form and the total time required to read out those stored times. CONSTITUTION:An NC device includes an executing time calculation part 12, an executing time reading part 13 and an executing data generating/executing part 14. The part 12 stores the data SC on the executing form received from an executing data generating part 3 into an idle buffer of a memory in its direct form SP and at the same time calculates the executing time SQ based on the moved distance and the feeding speed of said data SC to store this time SQ in 1:1 into said idle buffer. The part 13 reads the data SR on the executing form and its executing time SS out of a memory 11 every block and for each reading command ST given from a function generating part 4. Then the part 14 compares the total executing time with the prescribed reference time for output of an executing data generating command SW and an executing data generation stop command SX. Thus, the satisfactory executing data are always secured.

Description

【発明の詳細な説明】 (a業上の利用分舒) 本発明は、プログラムによって機械の駆動部を制御する
際の数値制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Usage in Business) The present invention relates to a numerical control method for controlling a drive section of a machine using a program.

(従来の技術) 第3図は、従来の数値制御方式を実現する数値制御(以
下、NCという)装置の一例を示すブロック図であり、
キーボードやテープリーダ等の入力機器1からパートプ
ログラムS^を実行データ生成部3からの読込指令SE
毎に1ブロツクずつ読込むプログラム読込部2と、(の
プログラム読込部2からの1ブロツクのデータSBを、
例えば原点オフセットデータや工具オフセットデータを
加味した目標値、送り速度及び主軸回転数等で成る実行
形式のデータSCに変換してメモリ7内のバッファ(第
4図に示す1〜N)のうち空のバッファに記憶させ、さ
らにメモリ7内のバッファに空が有るか否かを判定し、
メモリ7からの信号SDにより空のバッファが有ると判
定した場合には次の1ブロツクの読込指令SEをプログ
ラム読込部1に出力し、またメモリ7からの信号SDに
より空のバッファが無いと判定した場合には空のバッフ
ァが生じるまで実行形式のデータ変換を停止する実行デ
ータ生成部3と誉有している。そして、メモリ7内のバ
ッファ1〜Nに記憶されている実行形式のデータSCの
うち最も古い実行形式のデータSFをlブロック読出し
て関数発生を行なう関数発生部4と、この関数発生部4
からの関数SGに従って駆動部6を制御する駆動制御部
5とで構成されている。
(Prior Art) FIG. 3 is a block diagram showing an example of a numerical control (hereinafter referred to as NC) device that realizes a conventional numerical control method.
Execute part program S^ from input device 1 such as keyboard or tape reader Read command SE from data generation unit 3
A program reading section 2 reads one block at a time, and one block of data SB from the program reading section 2 of
For example, it is converted into execution format data SC consisting of target values, feed speeds, spindle rotation speeds, etc. that take into account origin offset data and tool offset data, and the buffers (1 to N shown in Fig. 4) in the memory 7 are empty. , and further determines whether there is an empty buffer in the memory 7,
If it is determined that there is an empty buffer based on the signal SD from the memory 7, a reading command SE for the next block is output to the program reading section 1, and it is determined that there is no empty buffer based on the signal SD from the memory 7. In this case, the execution data generating section 3 stops converting data into an executable format until an empty buffer is created. Then, there is a function generating section 4 which reads l blocks of the oldest executable format data SF among the executable format data SC stored in buffers 1 to N in the memory 7 and generates a function;
and a drive control section 5 that controls the drive section 6 according to a function SG from .

(発明が解決しようとする課題) 上述した従来のNC装置による数値制御方式は、メモリ
内のバッファ数をN個の多段とし、プログラム運転中は
常にN個のブロックを実行形式のデータに変換するよう
にしている。このようにすることで、実行時間の短かい
ブロックが連続して指令された場合に起る問題、即ち1
ブロツクの関数発生が終了した時点で次ブロックの実行
形式のデータがまだ生成されていないときに起こる駆動
部の停止を未然に防ぐことができる。しかし、実行時間
の長いブロック、例えば位置決め指令や固定サイクル指
令が連続して指令された場合でも常にN個の実行形式の
データに変換するため、プログラム運転中に運転を一時
中断させてオペレータが介入操作を行なった場合 (M
DI(Manual DataInput)運転機能に
よるオフセット値の変更等の指令の入力)に、N個の実
行形式のデータの実行完了まで待たなければ介入操作に
より人力した指令が実行されないという欠点があった。
(Problems to be Solved by the Invention) In the conventional numerical control method using the NC device described above, the number of buffers in the memory is N multi-stage, and N blocks are always converted into executable data during program operation. That's what I do. By doing this, you can solve the problem that occurs when blocks with short execution times are issued in succession, namely 1.
It is possible to prevent the drive unit from stopping, which occurs when data in the executable format of the next block has not yet been generated at the time when the function generation of the block is completed. However, even if a block with a long execution time, such as a positioning command or a fixed cycle command, is issued in succession, the data is always converted into N execution format data, so the program operation is temporarily interrupted and the operator intervenes. If you perform an operation (M
The DI (Manual Data Input) operation function (inputting commands such as changing offset values) has a drawback in that manual input commands cannot be executed by intervention unless the user waits until the completion of execution of data in N execution formats.

本発明は上述した事情から成されたものであり、本発明
の目的は、プログラム運転中に介入操作により入力した
指令を短時間で実行することができる数値制御方式を提
供することにある。
The present invention was made in view of the above-mentioned circumstances, and an object of the present invention is to provide a numerical control method that can execute commands input by intervention operations during program operation in a short period of time.

(課題を解決するための手段) 本発明は、プログラム上の連続するブロックを順次読込
んで実行形式のデータに変換し、変換した実行形式のデ
ータを順次記憶すると共に、記憶した実行形式のデータ
を順次読出して実行することにより駆動部を制御する数
値制御方式に関するものであり、本発明の上記目的は、
前記実行形式のデータを順次記憶して順次読出す際に、
それぞれの実行形式のデータを実行するのに要する時間
を合わせて順次記憶して順次読出すようにし、前記記憶
し、た時間の総和と前記読出した時間の総和との差が所
定の時間を越えないように前記読込。
(Means for Solving the Problems) The present invention sequentially reads consecutive blocks on a program, converts them into executable data, sequentially stores the converted executable data, and stores the stored executable data. The present invention relates to a numerical control method for controlling a drive unit by sequentially reading and executing, and the above object of the present invention is to
When sequentially storing and sequentially reading data in the executable format,
The time required to execute the data of each executable format is stored and read out sequentially, and the difference between the sum of the stored and read times exceeds a predetermined time. Not as mentioned above.

変換、記憶、読出及び実行の各動作を調整することによ
って達成される。
This is accomplished by coordinating conversion, storage, readout, and execution operations.

(作用) 本発明の数値制御方式は、実行形式データが過不足なく
常に用意されているので、ブロック毎の実行時間の長短
に左右されずに安定かつ効率良い制御を行なうことがで
ものである。
(Function) In the numerical control method of the present invention, since the execution format data is always prepared without excess or deficiency, it is possible to perform stable and efficient control regardless of the length of execution time of each block.

(実施例) 第1図は、本発明の数値制御方式を実現jるNC装置の
一例を第3図に対応させて示すブロック図であり、同一
構成箇所は同符号を付して説明を省略する。このNC装
置は、実行データ生成部3からの実行形式のデータSC
をそのままの形式SPでメモリ内のバッファ(第5図に
示す1〜N]のうち空のバッファ(例えばN)に記憶さ
せると共に、実行形式のデータSC内の移動距離及び送
り速度により実行時間SQを算出し、実行形式のデータ
SPが記憶されているバッファNに一対一で対応するバ
ッファtHに算出した実行時間SQを記憶させる実行時
間算出部12と、メモリ11から実行形式のデータSR
及びそれに対応する実行時間SSを関数発生部47>)
らの読出指令ST毎に1ブロツクずつ読出す実行時間読
出部13と、実行時間算出部12からの実行時間(実行
されていないブロックのもの)Suを逐次加算すると共
に、実行時間読出部13からの実行時間(実行されてい
るブロックのもの) SVを上記加算した実行時間から
逐次減算して総実行時間とし、この総実行時間及び所定
の基準時間の大小を比較し、総実行時間の方が小さい場
合には実行データ生成指令SWを、総実行時間の方が大
きい場合には実行データ生成停止指令SXを実行データ
生成部3に出力する実行データ生成実行判断部14とで
構成されている。
(Embodiment) Fig. 1 is a block diagram showing an example of an NC device that realizes the numerical control method of the present invention in correspondence with Fig. 3, and the same components are given the same reference numerals and explanations are omitted. do. This NC device receives execution format data SC from the execution data generation section 3.
is stored in the empty buffer (for example, N) of the buffers (1 to N shown in FIG. 5) in the memory in the format SP as it is, and the execution time SQ is calculated based on the moving distance and feed speed in the execution format data SC. an execution time calculation unit 12 that calculates the execution time SQ and stores the calculated execution time SQ in a buffer tH that corresponds one-to-one to the buffer N in which the execution format data SP is stored;
and the corresponding execution time SS to the function generator 47>)
The execution time reading unit 13 reads one block at a time for each read instruction ST from the execution time reading unit 13, and the execution time (of the block that is not executed) Su from the execution time calculation unit 12 is sequentially added. Execution time (of the block being executed) SV is successively subtracted from the execution time added above to obtain the total execution time, and this total execution time is compared with a predetermined reference time to determine whether the total execution time is better. It is comprised of an execution data generation execution determination unit 14 which outputs an execution data generation command SW to the execution data generation unit 3 when the total execution time is smaller, and outputs an execution data generation stop command SX to the execution data generation unit 3 when the total execution time is greater.

このような構成において、その動作を第2図のフローチ
ャートで説明すると、プログラム読込部2で入力機器1
からパートプログラムSAを1ブロック読込んで実行デ
ータ生成部3に出力する(ステップ51) 、そして、
実行データ生成部3で1ブロツクのケータSBを実行形
式のデータSCに変換して実行時間算出部12に出力す
る。さらに、実行時間算出部12で実行形式のデータS
Cをそのままの形式SPでメモリ11内の空のバッファ
(例えば1)に記憶させる(ステップS2)  と共に
、実行形式のデータSC内の移動距離及び送り速度によ
り実行時間SQを算出して実行形式のデータSPが記憶
されているバッファ1に一対一で対応するバッファt1
に記憶させ(ステップS3)、さらに算出した実行時間
SOを実行データ生成実行判定部14に出力する。そし
て、実行データ生成実行判定部14で実行時間Su1即
ちまだ実行されていないブロックの実行時間と所定の基
準時間との大小を比較する(ステップS4)、この場合
、まだ最初のブロックなので実行時間の方が基準時間よ
り小さいため、実行データ生成実行判定部14で実行デ
ータ生成部3に実行データ生成指令SWを出力する。そ
して、実行データ生成部3でプログラム読込部2に読込
指令SEを出力しくステップ55.56)、ステップS
】にリターンする。上述した動作(ステップ5l−56
)は逐次加算される実行時間が基準時間を越えるまで、
又は、メモリ11内のバッファに空のバッファが無くな
るまで繰返される。
In such a configuration, the operation will be explained using the flowchart shown in FIG.
reads one block of part program SA from and outputs it to the execution data generation section 3 (step 51), and
The execution data generation section 3 converts one block of data SB into execution format data SC and outputs it to the execution time calculation section 12. Furthermore, the execution time calculation unit 12 calculates the data S in the execution format.
C is stored in the empty buffer (for example, 1) in the memory 11 in the form SP as it is (step S2), and the execution time SQ is calculated from the moving distance and feed speed in the data SC of the execution form. Buffer t1 that corresponds one-to-one to buffer 1 in which data SP is stored
(step S3), and further outputs the calculated execution time SO to the execution data generation execution determination section 14. Then, the execution data generation execution determination unit 14 compares the execution time Su1, that is, the execution time of the block that has not yet been executed, with a predetermined reference time (step S4).In this case, since it is still the first block, the execution time Since the time is smaller than the reference time, the execution data generation execution determination section 14 outputs an execution data generation command SW to the execution data generation section 3. Then, the execution data generating section 3 outputs a reading command SE to the program reading section 2 (steps 55 and 56), and step S
Return to ]. The operations described above (steps 5l-56
) until the sequentially added execution time exceeds the reference time.
Alternatively, the process is repeated until there are no empty buffers in the memory 11.

一方、実行時間読出部位13でメモリ11から最とも古
い実行形式のデータSR及びそれに対応する実行時間S
S(この場合はバッファ!及びLlに記憶されているも
の)を読出して、実行形式のデータSFを関数発生部4
に出力する。そして、関数発生部4で実行形式のデータ
SFを基に関数SGを発生し、この関数SGに従って駆
動制御部5で駆動部6を制御する。そして、1ブロツク
の関数発生を終了すると、関数発生部4で実行時間読出
部13に読出指令STを出力する。上述した動作はメモ
リ11内にデータが有る限り繰返される。
On the other hand, in the execution time reading section 13, data SR of the oldest execution format and its corresponding execution time S are read from the memory 11.
S (in this case, what is stored in the buffer! and Ll) and sends the executable data SF to the function generator 4.
Output to. Then, the function generator 4 generates a function SG based on the executable data SF, and the drive controller 5 controls the drive unit 6 in accordance with this function SG. When one block of function generation is completed, the function generation section 4 outputs a read command ST to the execution time reading section 13. The above-described operation is repeated as long as there is data in the memory 11.

ところで、実行時間読出部13で読出された実行時間S
Sは実行されているブロックの実行時間であるため、実
行データ生成実行判定部14で予め逐次加算されている
実行時間からこの実行時間SVを減算して総実行時間を
求め、この総実行時間を基に第2図のステップS4以降
の動作が行なわれる。
By the way, the execution time S read out by the execution time reading unit 13
Since S is the execution time of the block being executed, this execution time SV is subtracted from the execution time that has been sequentially added in advance by the execution data generation execution determination unit 14 to obtain the total execution time, and this total execution time is Based on this, the operations from step S4 onward in FIG. 2 are performed.

しかるに、実行時間の短かいブロックが連続して指令さ
れる場合は、まだ実行していないブロックの総実行時間
が所定の基準時間よりも大きくなるまでには多段のブロ
ックが実行形式のデータに変換される為、関数発生側に
おいて1ブロック関数発生終了後は必ず次のブロックの
実行形式のデータが生成されているので、機械の駆動部
を停止させることはない、また、実行時間の長いブロッ
クが連続して指令される場合は、少数のブロックで総実
行時間が基準時間よりも大きくなる為、プログラム運転
中に介入操作を行なった場合においても少数のブロック
の実行を待つだけでオペレータによる指令が実行される
However, if blocks with short execution times are commanded consecutively, the multi-stage blocks will be converted to executable data by the time the total execution time of the blocks that have not yet been executed becomes greater than a predetermined reference time. Therefore, after one block of function generation ends on the function generation side, data in the executable format of the next block is always generated, so the machine drive unit does not stop, and blocks with long execution times are If commands are issued continuously, the total execution time will be longer than the standard time for a small number of blocks, so even if an intervention operation is performed during program operation, the operator's commands can be completed by simply waiting for the execution of a small number of blocks. executed.

(発明の効果) 以上のように本発明の数値制御方式によれば、プログラ
ムを構成するブロックの実行時間の長短に関係なくスム
ーズに制・御することが可能となるので、作業効率を高
めて生産性の向上を図ることができる。
(Effects of the Invention) As described above, according to the numerical control method of the present invention, it is possible to smoothly control the blocks that make up the program regardless of the length of execution time, thereby increasing work efficiency. Productivity can be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の数値制御方式を実現するNC装置の
一例を示すブロック図、第2図はその動作例を説明する
フローチャート、第3図は従来の数値制御方式を実現す
るNC装置の一例を示すブロック図、第4図は従来のN
C装置のメモリ内のバッファの一例を示す図、第5図は
本発明のNC装置のメそす内のバッファの一例を示す図
である。 l・・・入力機器、2・・・プログラム読込部、3・・
・実行データ生成部、4・・・関数発生部、5・・・駆
動制御部、6・・・駆動部、7.11・・・メモリ、1
2・・・実行時間算出部、13・・・実行時間読出部、
14・・・実行データ生成実行判定部。 出願人代理人  安 虐 維 三
FIG. 1 is a block diagram showing an example of an NC device that implements the numerical control method of the present invention, FIG. 2 is a flowchart explaining an example of its operation, and FIG. 3 is a block diagram of an NC device that implements the conventional numerical control method. A block diagram showing an example, FIG. 4 is a conventional N
FIG. 5 is a diagram showing an example of a buffer in the memory of the C device. FIG. 5 is a diagram showing an example of the buffer in the memory of the NC device of the present invention. l...Input device, 2...Program reading section, 3...
- Execution data generation unit, 4... Function generation unit, 5... Drive control unit, 6... Drive unit, 7.11... Memory, 1
2... Execution time calculation unit, 13... Execution time reading unit,
14... Execution data generation execution determination unit. Applicant's agent: Yasuo Yasuo

Claims (1)

【特許請求の範囲】[Claims] 1、プログラム上の連続するブロックを順次読込んで実
行形式のデータに変換し、変換した実行形式のデータを
順次記憶すると共に、記憶した実行形式のデータを順次
読出して実行することにより駆動部を制御する数値制御
方式において、前記実行形式のデータを順次記憶して順
次読出す際に、それぞれの実行形式のデータを実行する
のに要する時間を合わせて順次記憶して順次読出すよう
にし、前記記憶した時間の総和と前記読出した時間の総
和との差が所定の時間を越えないように前記読込、変換
、記憶、読出及び実行の各動作を調整するようにしたこ
とを特徴とする数値制御方式。
1. Sequentially reads consecutive blocks on the program and converts them into executable format data, sequentially stores the converted executable format data, and controls the drive unit by sequentially reading and executing the stored executable format data. In the numerical control method, when the data in the executable format is sequentially stored and read out sequentially, the time required to execute the data in each executable format is stored and read out sequentially, and The numerical control method is characterized in that each of the reading, converting, storing, reading and executing operations is adjusted so that the difference between the sum of the read times and the sum of the read times does not exceed a predetermined time. .
JP63017644A 1988-01-28 1988-01-28 Numerical control method Expired - Fee Related JPH0695289B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63017644A JPH0695289B2 (en) 1988-01-28 1988-01-28 Numerical control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63017644A JPH0695289B2 (en) 1988-01-28 1988-01-28 Numerical control method

Publications (2)

Publication Number Publication Date
JPH01191902A true JPH01191902A (en) 1989-08-02
JPH0695289B2 JPH0695289B2 (en) 1994-11-24

Family

ID=11949570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63017644A Expired - Fee Related JPH0695289B2 (en) 1988-01-28 1988-01-28 Numerical control method

Country Status (1)

Country Link
JP (1) JPH0695289B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5476785A (en) * 1977-11-29 1979-06-19 Toshiba Corp Continuously working system by computer numerical controller
JPS61117605A (en) * 1984-11-14 1986-06-05 Hitachi Ltd Robot control method
JPS61286907A (en) * 1985-06-14 1986-12-17 Toshiba Corp Robot movement control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5476785A (en) * 1977-11-29 1979-06-19 Toshiba Corp Continuously working system by computer numerical controller
JPS61117605A (en) * 1984-11-14 1986-06-05 Hitachi Ltd Robot control method
JPS61286907A (en) * 1985-06-14 1986-12-17 Toshiba Corp Robot movement control system

Also Published As

Publication number Publication date
JPH0695289B2 (en) 1994-11-24

Similar Documents

Publication Publication Date Title
US5889924A (en) Industrial robots controller
US4546443A (en) Operation control apparatus for industrial robot
JP3681972B2 (en) Acceleration / deceleration control method
US7003373B2 (en) Method and device for numerical control
JP4044105B2 (en) Numerical control device having function of switching operation means for each system
US20040236462A1 (en) Numerical control apparatus for machine tool
US20160062336A1 (en) Numerical controller for facilitating adjustment of machining motion
JPH01164280A (en) Acceleration or deceleration controlling system
EP1182524B1 (en) Programmable controller
JPH01191902A (en) Numerical control system
EP0236502B1 (en) Numerical control apparatus
JPH10301614A (en) Numeric controller
CN111324086A (en) Numerical controller
JP7469462B2 (en) CONTROL DEVICE, DATA TRANSFER SYSTEM FOR CONTROL DEVICE, AND DATA TRANSFER METHOD
JP2640456B2 (en) Numerical control method
JPS61256407A (en) Numerical controller
JP7283875B2 (en) Numerical controller
JPS6063605A (en) Numerical controller with composite skipping function
JP3636711B2 (en) Electrical equipment control system
JPH01320505A (en) Numeric value control system
JPH0863219A (en) Numerical controller with fast program check function
JP2020170470A (en) Numerical controller
JP2868527B2 (en) Numerical control unit
JPH04169907A (en) Acceleration/deceleration control system
JPH0690647B2 (en) Machining system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees