JPS62221007A - Numerical controller capable of changing distribution cycle - Google Patents

Numerical controller capable of changing distribution cycle

Info

Publication number
JPS62221007A
JPS62221007A JP6327086A JP6327086A JPS62221007A JP S62221007 A JPS62221007 A JP S62221007A JP 6327086 A JP6327086 A JP 6327086A JP 6327086 A JP6327086 A JP 6327086A JP S62221007 A JPS62221007 A JP S62221007A
Authority
JP
Japan
Prior art keywords
distribution cycle
distribution
block
routine
processor
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
JP6327086A
Other languages
Japanese (ja)
Inventor
Tomoatsu Shibata
柴田 友厚
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 JP6327086A priority Critical patent/JPS62221007A/en
Publication of JPS62221007A publication Critical patent/JPS62221007A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To change the distribution cycle in response to the working accuracy of a work and a to improve the working accuracy with a numerical controller, by applying a distribution cycle interruption to a processor from a distribution cycle interruption starting means by a distribution cycle changing instruction contained in a block of a part program. CONSTITUTION:The distribution cycle changing action is monitored by a control program stored in a ROM 2. A processor 1 checks whether a distribution cycle changing command is contained or not in a block of a part program stored in a RAM 3 based on an interpreting routine that decodes the programs of a block. If said command is contained in the block, the interpreting routine is branched into a distribution cycle processing routine. If not, the interpreting routine is branched into a normal routine, for example. In the distribution cycle processing routine, the operation is kept waiting until no acceleration/ deceleration delay is produced any more for the block under execution and then the distribution cycle change request signal REQ is produced.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、数値制御装置に関し、特に分配周期の変更が
可能な数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a numerical control device, and particularly to a numerical control device capable of changing the distribution period.

(従来の技術) 従来、数値制御1装置で制御される工作機械にてワーク
を加工する場合、まず数値制御装置に加工指令データと
してのパートプログラムが読み込まれ解読されて内部記
憶装置の適当な場所に記憶される0次いでこのパートプ
ログラムはlブロックずつ読み出され、この読み出され
た1ブロツクデータに基いて数値制御装置の中で所定の
演算が行われ、その結果をインターフェース回路を介し
てサーボユニットに送り出され、サーボモータを回転さ
せる。この際補助機能などのオン、オフ制御信号もイン
ターフェース回路を経て強電回路に送られ、所定の動作
が行われる。このような数値制御の動作において、工具
などの指令速度をf(mm/m1n) 、分配周期を?
 (ssec)、1回の分配長を1i(IIIll)と
すると、 M  (ma+)=  f(mm/m1n)*  1/
(80a  1000)  a  τ (msec)・
・・・・・・・・(1) となる、そして、従来の数値制御装置は、このように指
令移動量と指令速度の指令データのもとに作動するが、
1回の分配長当りに要する時間、即ち分配周期τは常に
一定であり、変更することができなかった。
(Prior Art) Conventionally, when machining a workpiece with a machine tool controlled by a single numerical control device, a part program as machining command data is first read into the numerical control device, decoded, and stored in an appropriate location in the internal storage device. Next, this part program is read out one block at a time, and based on the read one block data, a predetermined calculation is performed in the numerical control device, and the result is sent to the servo controller via the interface circuit. It is sent to the unit and rotates the servo motor. At this time, on/off control signals for auxiliary functions and the like are also sent to the high-power circuit via the interface circuit, and predetermined operations are performed. In such a numerical control operation, the command speed of the tool, etc. is f (mm/m1n), and the distribution cycle is ?
(ssec), and the length of one distribution is 1i (IIIll), then M (ma+) = f (mm/m1n) * 1/
(80a 1000) a τ (msec)・
・・・・・・・・・(1) And the conventional numerical control device operates based on the command data of the command movement amount and command speed in this way,
The time required for one distribution length, that is, the distribution period τ, is always constant and cannot be changed.

(発明が解決しようとする問題点) 従来の数値制御装置は、上記第(1)式からも解るよう
に、分配周期での長短は、1回の分配長が与えられた時
、数値制御装置の処理速度に影響を与え、また指令速度
fが与えられた時には処理精度に影響を与える。従って
分配周期τを変更することができない従来の数値制御装
置では、例えば1回の分配反量が小さい場合、すなわち
高精度加工が要求さえる場合には、指令速度を小さくし
なくてはならない、という欠点を有している。
(Problems to be Solved by the Invention) As can be seen from equation (1) above, in the conventional numerical control device, the length of the distribution cycle is determined by the number of times the numerical control device This affects the processing speed, and also affects the processing accuracy when the command speed f is given. Therefore, with conventional numerical control devices that cannot change the distribution cycle τ, the command speed must be reduced, for example, when the amount of distributed reaction per time is small, that is, when high-precision machining is required. It has its drawbacks.

本発明は、上述の如き従来の欠点を解消しようとするも
のであって、その目的は、ワークの加工精度に従って分
配周期を変更して数値制御装置による加工効率の向上を
図ることができるような数値制御装置を提供しようとす
るものである。
The present invention aims to eliminate the above-mentioned conventional drawbacks, and its purpose is to improve the machining efficiency using a numerical control device by changing the distribution cycle according to the machining accuracy of the workpiece. The purpose is to provide a numerical control device.

(問題点を解決するための手段) 本発明では、パートプログラムによる指令によって被制
御機器に動作指令を与えるコンピュータ構成の数値制御
装置において、前記パートプログラムに含まれる分配周
期変更指令を解読する手段と、該分配周期変更指令を前
記手段が解読した時数値制御装置内のプロセッサに対し
て分配周期割込みを掛ける分配周期割込み起動手段と、
該分配周期割込み起動手段からの指令により指令された
分配周期にて分配動作を実行する手段とを有することを
特徴とする分配周期変更可能な数値制御装置によって、
上記の如き従来の欠点を解決するものである。
(Means for Solving the Problems) In the present invention, in a computer-configured numerical control device that gives operation commands to controlled equipment according to commands from a part program, means for decoding a distribution cycle change command included in the part program is provided. , distribution cycle interrupt activating means that issues a distribution cycle interrupt to a processor in the time numerical control device when the means decodes the distribution cycle change command;
A numerical control device capable of changing the distribution cycle, characterized in that it has means for executing the distribution operation at the distribution cycle instructed by the command from the distribution cycle interrupt starting means,
This solves the conventional drawbacks as described above.

(作用) すなわち、本発明の数値制御装置では、パートプログラ
ムの1ブロツク中に含まれる分配周期変更指令により分
配周期割込み起動手段がプロセッサに対して分配周期割
込みを掛けることで、ワークの加工精度に従って分配周
期を変更することができる。
(Operation) In other words, in the numerical control device of the present invention, the distribution cycle interrupt starting means issues a distribution cycle interrupt to the processor in accordance with the distribution cycle change command included in one block of the part program, so that the processing accuracy can be adjusted according to the machining accuracy of the workpiece. The distribution cycle can be changed.

(実施例) 次に本発明の一実施例を、図面を参照しながら詳細に説
明する。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の分配周期変更可能な数値制御装置の
システム構成図、第2図は、数値制御装置の分配周期変
更動作を説明するためのフローチャートである。
FIG. 1 is a system configuration diagram of a numerical control device capable of changing the distribution period of the present invention, and FIG. 2 is a flowchart for explaining the distribution period changing operation of the numerical control device.

第1図において、プロセッサ1はリードオンリーメモリ
(ROM)2に格納されている制御プログラムにより制
御される。テープリーダ4は紙テープに穿孔記憶されて
いるパートプログラムを読み取る。読み取られたデータ
はプロセッサ1で解読され、ランダムアクセスメモリ(
RAM)3の適当な場所に記憶される。CRT5は、数
値制御装置を使用してパートプログラムを作成する時入
力データを表示したり、あるいはNC加工中、読み出さ
れたlブロック分のデータを表示したり、工具の現在位
置を表示したりする。キーボード6は、種々のデータ入
力用として使用する。7は、たとえばバブルメモリカセ
ットやCMOSカセットからなる不揮発性メモリであり
、紙テープと同様パートプログラムが記憶されており、
プロセッサlによりこのパートプログラムは読み出され
て解読され、RAM3の適当な場所に記憶される。
In FIG. 1, a processor 1 is controlled by a control program stored in a read-only memory (ROM) 2. As shown in FIG. The tape reader 4 reads the part program stored in the paper tape by punching it. The read data is decoded by processor 1 and stored in random access memory (
RAM) 3 at an appropriate location. The CRT5 can display input data when creating a part program using a numerical control device, display 1 block of read data during NC machining, or display the current position of the tool. do. The keyboard 6 is used for inputting various data. 7 is a non-volatile memory consisting of, for example, a bubble memory cassette or a CMOS cassette, in which part programs are stored in the same way as paper tape;
This part program is read out and decoded by the processor 1, and stored in an appropriate location in the RAM 3.

位置制御部8はモータの位置を制御し、速度制御部9は
モータ10の回転速度を制御するものである0位置制御
部8および速度制御部9は、RAMa内に格納された指
令データに基すいて、プロセッサ1により駆動され、モ
ータ10を所定の位置および速度に制御する。モータ1
0の回転速度および位置は、夫々タコジェネレータ11
および位置検出器12によって検出され、タコジェネレ
ータ11および位置検出器12にて検出された情報を夫
々速度制御部9および位置制御部8にフィードバックし
ている。 JOG/5TEP送リスイッチ1送線スイッ
チ14作を行うためのスイッチであり、DI/Do制御
部13を介してプロセッサ1にジ璽グ送り信号を送るよ
うになっている。また手動パルス発生器15は、手動に
てパルスを発生させて、送りの微調整を行うためのもの
であり、手動によりパルスをプロセッサlに送るように
構成されている。
The position control unit 8 controls the position of the motor, and the speed control unit 9 controls the rotational speed of the motor 10.The position control unit 8 and the speed control unit 9 control the speed based on command data stored in RAMa. The motor 10 is driven by the processor 1 to control the motor 10 to a predetermined position and speed. Motor 1
The rotational speed and position of 0 are respectively determined by the tacho generator 11.
The information detected by the tachometer generator 11 and the position detector 12 is fed back to the speed control section 9 and the position control section 8, respectively. This is a switch for performing the JOG/5TEP transmission reswitch 1 line transmission switch 14 operation, and is configured to send a jig transmission signal to the processor 1 via the DI/Do control section 13. The manual pulse generator 15 is used to manually generate pulses and finely adjust the feed, and is configured to manually send the pulses to the processor l.

分配周期割込み起動回路16は、後述する分配周期変更
要求信号REQによって駆動され、プロセッサlに割込
みを掛けるためのものである0分配周期変更要求信号R
EQは、RAM5内から次に実行する1ブロツクのデー
タが読み出され、このデータ内に分配周期変更指令があ
る場合にプロセッサ1がこれを解読して出力するもので
ある。
The distribution cycle interrupt activation circuit 16 is driven by a distribution cycle change request signal REQ, which will be described later, and receives a 0 distribution cycle change request signal R for interrupting the processor l.
The EQ is used to read one block of data to be executed next from the RAM 5, and when this data includes a distribution cycle change command, the processor 1 decodes and outputs this.

プロセッサlは前記割込みを受は付けると、位置制御部
8或いは速度制御部9に設けられているコマンドレジス
タ(図示せず)に所望の分配周期τを格納し、モータ1
0はこの分配周期τの下で指令移動量を分配周期で定め
られる所定の速度で移動する。
When the processor l accepts the interrupt, it stores the desired distribution cycle τ in a command register (not shown) provided in the position control unit 8 or the speed control unit 9, and controls the motor 1.
0 moves the commanded movement amount under this distribution period τ at a predetermined speed determined by the distribution period.

次に第2図を用いて、分配周期変更の動作を説明する。Next, the operation of changing the distribution period will be explained using FIG.

該分配周期変更動作は、ROMZ内に格納されている制
御プログラムにより監視される。そしてプロセッサ1は
RAM3に格納されているパートプログラムのうち、読
み出された次に実行する1ブロツク分のプログラムを解
読する解釈ルーチンによって、その中に分配周期変更指
令が含まれているか否かを判断する(ステップ1)。も
しその中に分配周期変更指令が含まれている場合には、
分配周期処理ルーチンに分岐し、該1ブロツク分のプロ
グラムの中に分配周期変更指令が含まれていない場合に
は、例えば通常ルーチンに分岐する(ステップ2)0分
配周期処理ルーチンでは、現在実行中のブロックの加減
速の遅れがなくなるまで待ち(ラステップ3)、次いで
分配周期変更要求信号REQを発生する(ステップ4)
。これによって分配周期割込み起動回路16はプロセッ
サlに対して割込みを掛け、プロセッサ1はこノ割込み
を受は付けて、モータ10を可変な所定の分配周期で駆
動させる。
The distribution cycle changing operation is monitored by a control program stored in the ROMZ. Processor 1 uses an interpretation routine that decodes one block of programs to be executed next among the part programs stored in RAM 3 to determine whether or not a distribution cycle change command is included therein. Make a judgment (Step 1). If it includes a distribution cycle change command,
Branches to the distribution cycle processing routine, and if the program for one block does not include a distribution cycle change command, branches to the normal routine, for example (step 2). Wait until there is no delay in acceleration/deceleration of the block (step 3), then generate a distribution cycle change request signal REQ (step 4)
. As a result, the distribution cycle interrupt activation circuit 16 issues an interrupt to the processor 1, which accepts the interrupt and drives the motor 10 at a variable predetermined distribution cycle.

(発明の効果) 以上詳細に説明したように、本発明によれば、プログラ
ム上で高精度加工が要求される部分は分配周期τを短く
することによって処理速度を落さずに高精度加工を実現
し、その他の部分では分配周期を長くすることによって
プロセッサの負担を軽減することができる。
(Effects of the Invention) As described in detail above, according to the present invention, the parts where high precision machining is required in the program can be machined with high precision without reducing the processing speed by shortening the distribution cycle τ. In other parts, the load on the processor can be reduced by lengthening the distribution cycle.

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

第1図は、本発明の分配周期変更可能な数値制御装置の
システム構成図、第2図は、数値制御装置の分配周期変
更動作を説明するためのフローチャートである。 1・・・プロセッサ、2・・・ROM、3・・・RAM
、10・・・モータ、16・・・分配周期割込み起動回
路。
FIG. 1 is a system configuration diagram of a numerical control device capable of changing the distribution period of the present invention, and FIG. 2 is a flowchart for explaining the distribution period changing operation of the numerical control device. 1...Processor, 2...ROM, 3...RAM
, 10... Motor, 16... Distribution cycle interrupt starting circuit.

Claims (1)

【特許請求の範囲】[Claims] パートプログラムによる指令によって被制御機器に動作
指令を与えるコンピュータ構成の数値制御装置において
、前記パートプログラムに含まれる分配周期変更指令を
解読する手段と、該分配周期変更指令を前記手段が解読
した時数値制御装置内のプロセッサに対して分配周期割
込みを掛ける分配周期割込み起動手段と、該分配周期割
込み起動手段からの指令により指令された分配周期にて
分配動作を実行する手段とを有することを特徴とする分
配周期変更可能な数値制御装置。
In a computer-configured numerical control device that gives operation commands to controlled equipment according to commands from a part program, means for decoding a distribution cycle change command included in the part program, and a time value when the means decodes the distribution cycle change command. It is characterized by comprising a distribution period interrupt activation means for applying a distribution period interrupt to a processor in the control device, and a means for executing a distribution operation at a distribution period instructed by a command from the distribution period interrupt activation means. A numerical control device that can change the distribution cycle.
JP6327086A 1986-03-20 1986-03-20 Numerical controller capable of changing distribution cycle Pending JPS62221007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6327086A JPS62221007A (en) 1986-03-20 1986-03-20 Numerical controller capable of changing distribution cycle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6327086A JPS62221007A (en) 1986-03-20 1986-03-20 Numerical controller capable of changing distribution cycle

Publications (1)

Publication Number Publication Date
JPS62221007A true JPS62221007A (en) 1987-09-29

Family

ID=13224436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6327086A Pending JPS62221007A (en) 1986-03-20 1986-03-20 Numerical controller capable of changing distribution cycle

Country Status (1)

Country Link
JP (1) JPS62221007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990000765A1 (en) * 1988-07-07 1990-01-25 Fanuc Ltd Numerical controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990000765A1 (en) * 1988-07-07 1990-01-25 Fanuc Ltd Numerical controller

Similar Documents

Publication Publication Date Title
US4894594A (en) Servo system speed control apparatus
JPS5968003A (en) Emergency machine origin resetting device of numerically controlled machine tool
US5004968A (en) Method for acceleration and deceleration control of servomotors
EP0294486A1 (en) Tapping controller
JP2004318762A (en) Numerical control device
KR920004080B1 (en) Numerical control device
EP0107794B1 (en) Numerical control system
US5485069A (en) Numerical control apparatus
EP0360242B1 (en) Numerical control device
US5475602A (en) Acceleration constant switching apparatus
JPS62221007A (en) Numerical controller capable of changing distribution cycle
JP2880170B2 (en) Block overlap method
JPH0457005B2 (en)
JPS63311408A (en) Numerical controller
KR970009980A (en) Work area control method of machine tool
JPH0716850B2 (en) Axis switching device
JPH02151909A (en) Control device for industrial machine
KR910009240B1 (en) Numerical controller
JPH0885044A (en) Working load monitoring system
JPH05309546A (en) Machining hour computing method for numerically controlled machine tool and its device
JPS57153307A (en) Feed speed control system in numeric controller
KR950017090A (en) External control method of spindle and servo motor speed
JP2654228B2 (en) Numerical control unit
JP2694638B2 (en) Numerical control unit
JPH03172903A (en) Feed speed control system for numerical controller