JPS58186561A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS58186561A
JPS58186561A JP6755282A JP6755282A JPS58186561A JP S58186561 A JPS58186561 A JP S58186561A JP 6755282 A JP6755282 A JP 6755282A JP 6755282 A JP6755282 A JP 6755282A JP S58186561 A JPS58186561 A JP S58186561A
Authority
JP
Japan
Prior art keywords
distribution
pulse
axis
pulse distribution
grinding wheel
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
JP6755282A
Other languages
Japanese (ja)
Other versions
JPH0220379B2 (en
Inventor
Takao Yoneda
米田 孝夫
Yasuji Sakakibara
榊原 やすじ
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP6755282A priority Critical patent/JPS58186561A/en
Publication of JPS58186561A publication Critical patent/JPS58186561A/en
Publication of JPH0220379B2 publication Critical patent/JPH0220379B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B24GRINDING; POLISHING
    • B24BMACHINES, DEVICES, OR PROCESSES FOR GRINDING OR POLISHING; DRESSING OR CONDITIONING OF ABRADING SURFACES; FEEDING OF GRINDING, POLISHING, OR LAPPING AGENTS
    • B24B49/00Measuring or gauging equipment for controlling the feed movement of the grinding tool or work; Arrangements of indicating or measuring equipment, e.g. for indicating the start of the grinding operation
    • B24B49/18Measuring or gauging equipment for controlling the feed movement of the grinding tool or work; Arrangements of indicating or measuring equipment, e.g. for indicating the start of the grinding operation taking regard of the presence of dressing tools
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34388Detect correct moment, position, advanced, delayed, then next command
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/45Nc applications
    • G05B2219/45159Dressing, sharpening, trueing tool
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/45Nc applications
    • G05B2219/45161Grinding machine

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Constituent Portions Of Griding Lathes, Driving, Sensing And Control (AREA)
  • Grinding-Machine Dressing And Accessory Apparatuses (AREA)

Abstract

PURPOSE:To shorten the time of a machining cycle, by distributing pulses for a control axis from the time when numerical control is executed up to a prescribed step in the distribution of pulses for another control axis. CONSTITUTION:After a pulse distribution speed for moving a grinding wheel G back and a first number of distributed pulses are set in a pulse generation circuit 13a and pulse distribution for an axis X is started, a pulse distribution speed for moving a grindstone correcting tool DT rapidly and a first number of distributed pulses are set in a pulse generation circuit 13b so that the backward movement of the grinding wheel and pulse distribution for an axis U is started so that the backward movement of the grinding wheel and the rapid forward movement of the grindstone correcting tool are simultaneously begun. The pulse generation circuits 13a, 13b differ from each other in the time cost until the completion of the pulse distribution, so that pulse distribution compeltion signals are sent out at different times. The pulse distribution is effected in a time division manner for the axes X, U alternately.

Description

【発明の詳細な説明】 本発明は、予めへカされた数M【制御データに従って複
数の制御軸にパルス分配を行なうことによって工作機械
の動作を制御するようにした数値制御装置に関するもの
で、その目的とするところは加工工具等の移動を制御す
る主の制御軸に対するパルス分配を主の数値制御プログ
ラムに従って行なうと同時に・主の数値制御プログラム
が所定の位置まで実行された時点から副制御軸に対する
パルス分配を主制御軸に対するノクルス分配と独立して
同時に実行する等の処理ができるようにし、加工工具の
移動工程の途中の位置がら加工工具の移動と関連のない
他の動作を開始できるようにすることにある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a numerical control device that controls the operation of a machine tool by distributing pulses to a plurality of control axes according to control data of a predetermined number M. The purpose of this is to simultaneously distribute pulses to the main control axis that controls the movement of processing tools, etc. according to the main numerical control program. It is possible to perform processes such as simultaneously executing pulse distribution for the main control axis independently and simultaneously with Nockles distribution for the main control axis, and it is possible to start other operations unrelated to the movement of the processing tool from a position in the middle of the movement process of the processing tool. It is to make it.

近年の数値制御研削盤においては、工作物に対する砥石
車の進退動作だけではなく、砥石修正のだめの砥石車に
対する砥石修正工具の進退動作、工作物テーブルの割出
し、レスト装置の送込み等の制御も数値制御で行なうよ
うになって来ているが、従来の数値制御装置では砥石車
の進退とそれ以外の動作を並行して行なうことはできず
、加工のサイクルタイムを短縮できない一因となってい
た。
In recent numerically controlled grinding machines, it is necessary to control not only the forward and backward movement of the grinding wheel relative to the workpiece, but also the forward and backward movement of the grinding wheel correction tool relative to the grinding wheel, indexing of the workpiece table, feeding of the rest device, etc. However, with conventional numerical control devices, it is not possible to advance and retreat the grinding wheel and perform other operations in parallel, which is one reason why it is not possible to shorten the machining cycle time. was.

すなわち、砥石修正のだめの修正工具の移動を例にして
考えると、この動作は加工中には行なえないものの砥石
車が後退を開始した直後から送りを開始して砥石車の後
退勤作中に砥石車を修正子ることはriJ能で、このよ
うにすると、砥石車か後退端まで戻った時には砥石修正
が完了していることになって引続く加工を直(゛に開始
することができて加工のサイクルタイムを短縮できる。
In other words, if we take the movement of the correction tool for the grinding wheel correction as an example, although this movement cannot be performed during machining, the feeding starts immediately after the grinding wheel starts moving backwards, and the grinding wheel moves during the backward movement of the grinding wheel. It is possible to correct the wheel, and in this way, by the time the grinding wheel returns to the backward end, the grinding wheel correction has been completed and the subsequent machining can be started directly. Processing cycle time can be shortened.

しかしながら、従来の数値制御装置においては、直線補
間のように移動の開始時期と完了時期が同一となるよう
な複数軸への同時パルス分配は行なえるものの、独立し
て動作する複数の軸に対して同時にパルス分配を行なう
ことは全くできないだめ、上記のように砥石車を後退さ
せるだめのパルス分配と並行して砥石修正工具を砥石修
正のだめに進退させるだめのパルス分配を71って加工
のサイクルタイムを短縮することはできなかった。
However, in conventional numerical control devices, although it is possible to simultaneously distribute pulses to multiple axes such as linear interpolation where the start and end times of movement are the same, Since it is impossible to perform pulse distribution at the same time at all, as described above, the processing cycle is performed by distributing pulses to move the grinding wheel correction tool forward and backward to and from the grinding wheel correction wheel in parallel with the pulse distribution to move the grinding wheel backward. I couldn't shorten the time.

本発明はこのような従来の問題点に鑑みてなされたもの
で、独立して動作させる必要のある複数の制御軸のそれ
ぞれに対応してプログラムされた複数の数値制御データ
を記憶手段に記憶させておくとともに、各軸筋に、互い
に独立してパルス分配のpJ能なパルス発生回路を設け
、起動指令が与えられると、前記記憶手段に記憶された
複数の数値制御データの内1つの数値制御データに基づ
くパルス分配のみを行ない、この1つの数値制御データ
が所定のステップ1で実行されたことに応答して、この
1つの数値制御データに基づくパルス分配と同時に、他
の数値制御データに基づくパルス分配を並行して行なう
ようにしたことを特徴とするものである。
The present invention has been made in view of these conventional problems, and includes storing in a storage means a plurality of numerical control data programmed corresponding to each of a plurality of control axes that need to be operated independently. At the same time, each axis muscle is provided with a pulse generation circuit capable of independently distributing pulses, and when a start command is given, one numerical control of the plurality of numerical control data stored in the storage means is provided. Performs pulse distribution only based on data, and in response to this one numerical control data being executed in a predetermined step 1, pulse distribution based on this one numerical control data and simultaneously pulse distribution based on other numerical control data. This is characterized in that pulse distribution is performed in parallel.

以下本発明の実施例を図面に基づいて説明する。Embodiments of the present invention will be described below based on the drawings.

第1図において10は、砥石車Gの工作物Wに対する進
退動作を制御して工作物Wを数値制御加工するとともに
、砥石車Gに対する砥石修正工具DTの進退動作を制御
して砥石車Gの修正を数値制御で行なう数値制御装置で
あり、演算処理装置11、メモ1J12、パルス発生回
路13a、 131)によって主に構成されている。そ
して、演算処理装置11には、7’tll! ダラム書
込装置15と、シーケンスIIJ御回M16とが回路の
インタフェイスを介して接続されている。
In FIG. 1, reference numeral 10 controls the forward and backward movement of the grinding wheel G with respect to the workpiece W to perform numerical control processing on the workpiece W, and also controls the forward and backward movement of the grinding wheel correction tool DT with respect to the grinding wheel G. This is a numerical control device that performs corrections by numerical control, and is mainly composed of an arithmetic processing device 11, a memo 1J12, and pulse generation circuits 13a and 131). Then, the arithmetic processing unit 11 receives 7'tll! The Durham writing device 15 and the sequence IIJ controller M16 are connected via a circuit interface.

前記プログラム書込装置15は工作物加工に先立って第
2図(a)に示す工作物加工用の数値制御プログラムと
第2図(b)に示す砥石修正用の数値制御プログラムと
を書込むもので、この書込まれた数値制御プログラムは
メモリ12内の主プログラムエリアMPAとサブプログ
ラムエリアSPAとにそれぞれ記憶される。前記工作物
加工用の数値制御プログラムは砥石車Gを距離Doだけ
早送り前進させた後、粗研削送り速度F1で距離D1、
精研削送り速度F2で距離D2だけ前進させて工作物W
の加工を行ない、この後、距離D3の早送り後退によっ
て砥石車Gを後退端まで戻すもので、この砥石車Gの後
退動作を指令する数値制御データがプログラムされたブ
ロックN004の前のブロックN0O3には、砥石修正
の開始を指令する補助機能コードMO3がプログラムさ
れている。
The program writing device 15 writes the numerical control program for machining the workpiece shown in FIG. 2(a) and the numerical control program for grinding wheel correction shown in FIG. 2(b) prior to machining the workpiece. The written numerical control program is stored in the main program area MPA and subprogram area SPA in the memory 12, respectively. The numerical control program for machining the workpiece moves the grinding wheel G rapidly forward by a distance Do, and then moves the grinding wheel G forward by a distance D1 at a rough grinding feed rate F1.
Fine grinding The workpiece W is advanced by a distance D2 at a feed rate F2.
After that, the grinding wheel G is returned to the backward end by fast forwarding backward by a distance D3, and the numerical control data for commanding the backward movement of the grinding wheel G is programmed in the block N0O3 before the block N004. is programmed with an auxiliary function code MO3 that commands the start of grindstone correction.

また、砥石修正用のプログラムは、前記砥石修正工具D
Tがロータリ形であるので砥石修正工具DTを早送りで
距離D5だけ前進させた後、速度F3で距離D6だけ前
進させて砥石修正を完了し、この後、修正工具DTを距
離D5だけ戻した後、砥石車Gを距離D6だけ前進させ
て砥石修正による砥石車Gの径の減少を補@−するもの
である。
In addition, the program for grinding wheel correction is the grinding wheel correction tool D.
Since T is a rotary type, the grinding wheel correction tool DT is moved forward by a distance D5 in rapid traverse, then the grinding wheel correction is completed by moving it forward by a distance D6 at a speed of F3, and after this, the correction tool DT is returned by a distance D5. , the grinding wheel G is advanced by a distance D6 to compensate for the decrease in the diameter of the grinding wheel G due to the grinding wheel correction.

一方、パルス発生回路13a、 13bは、演算処理装
置11の指令によって、砥石車G進退用のサーボモータ
17および修正工具DT進退用のサーボモータ18をそ
れぞれ駆動するドライブユニットDUX、 DUUにパ
ルスを送出するもので、パルス発生回路13a。
On the other hand, the pulse generation circuits 13a and 13b send pulses to the drive units DUX and DUU, which drive the servo motor 17 for advancing and retracting the grinding wheel G and the servo motor 18 for advancing and retracting the correction tool DT, respectively, according to instructions from the processing unit 11. This is the pulse generation circuit 13a.

13bのそれぞれには、パルス周期を設定する速度レジ
スタ20 a + 20 b sこの速度レジスタ20
a、 20bに設定された速度でパルスを発生する発振
器21a。
13b has a speed register 20 a + 20 b s for setting the pulse period.
an oscillator 21a that generates pulses at a rate set in a, 20b;

21b、この発振器21a、 21bからの出力を正、
負のパルスとして分配するゲート回路23a 、 23
b 。
21b, the output from this oscillator 21a, 21b is positive,
Gate circuits 23a, 23 that distribute as negative pulses
b.

発振器21a、 21bから出力されるパルスを計算し
その計数値がプリセット値と等しくなるとパルス分配完
了信号DKNX、 DENUを出力子るプリセットカウ
ンタ22a、 22bとによって構成されている。そし
て、演算処理装置11は、パルス発生回路13a。
It is composed of preset counters 22a and 22b which calculate the pulses output from the oscillators 21a and 21b and output pulse distribution completion signals DKNX and DENU when the counted value becomes equal to the preset value. The arithmetic processing device 11 includes a pulse generation circuit 13a.

13b内のプリセットカウンタ22a、 22bからパ
ルス分配完了信号DENX、 DENUが出力される度
に、新たな移動量をパルス分配完了信号DENX、 D
KIIが送出されたプリセットカウンタ22aもしくは
22bvCセツトすることで連続的なパルス分配を行な
うようになっている。
Every time the pulse distribution completion signals DENX, DENU are output from the preset counters 22a, 22b in the preset counters 22a, 22b in the preset counters 22a, 22b, a new movement amount is output as the pulse distribution completion signals DENX, D.
Continuous pulse distribution is performed by setting the preset counter 22a or 22bvC to which KII is sent.

さらに、シーケンス制御回路16は、第3図に示す回路
構成となっており、起動ボタン5TART ヲ抑圧干る
と、加工サイクル指令用のリレーC!RIOがオンとな
って数値制御装置10に対してメインプログラムである
第2図(a)に示す加工用プログラムの実行の開始を指
令子る。まだ、このプログラムの実行の途中で補助機能
コードMO3が読出されると数値制御装置10からシー
ケンス制御回路16に対してMO3のコードが出力され
、これに応答して接点m03が閉じられると砥石修正サ
イクル指令用のリレー0R20がオンとなって数値制御
装置10に対してサブプログラムである第2図(b)に
示す砥石修正用プログラムの実行の開始を指令する。
Furthermore, the sequence control circuit 16 has a circuit configuration shown in FIG. 3, and when the start button 5TART is pressed, the relay C! for machining cycle command is pressed! The RIO is turned on and instructs the numerical control device 10 to start executing the machining program shown in FIG. 2(a), which is the main program. If the auxiliary function code MO3 is read out during the execution of this program, the code MO3 is output from the numerical control device 10 to the sequence control circuit 16, and when the contact m03 is closed in response, the grinding wheel is corrected. The cycle command relay 0R20 is turned on and commands the numerical control device 10 to start executing the subprogram, the grindstone correction program shown in FIG. 2(b).

砥石修正の開始を指令する補助機能コードMO3は前述
したように、砥石車の後退指令の前にプログラムされて
いるだめ、第4図に示されるように、砥石車Gの後退勤
作と砥石修正動作は並行して行なわれる。
As mentioned above, the auxiliary function code MO3, which commands the start of grinding wheel correction, is programmed before the grinding wheel retraction command, so as shown in FIG. Operations are performed in parallel.

次に、前記数値制御装置10の動作、特に砥石車Gの後
退勤作と砥石車Gの修正動作を同時に行なわせる処理に
ついて説明する。
Next, the operation of the numerical control device 10, particularly the process of simultaneously performing the backward movement of the grinding wheel G and the correction operation of the grinding wheel G will be explained.

前記数値制御装置10内の演算処理装置11は、運転が
開始されると第5図(aL (b)に示すプログラムを
リアルタイムロック発生回路25からの割込み信号に応
答して一定時間毎に実行する。このプログラムの内、ス
テップ(31)〜(43)のプログラムはメモリ12の
メインプログラムエリアMPAに記憶された加工用数値
制御プログラムを実行するものであり、ステップ(51
)〜(63)のプログラムはメモリ12のサブプログラ
ムエリアSPAに記憶された砥石修正用プログラムを実
行するものであり、ステップ(30〕において、シーケ
ンス制御回路]6のリレー0RIOがオンしていること
で砥石修正指令が送出されていることが判別されるとス
テップ(31)〜(43)のプログラムを実行する。ま
だ、シーケンス制御回路16のリレー0R20がオンと
なっている場合には、ステップ(31)〜C43)によ
って加工用プログラムを実行するだめの処理が完了した
時点で、ステップ(30)もしくはステップ(33)か
らステップ(50)を介してステップ(51)へ移行し
、これに引続くステップ(51)からステップ(63)
のプログラムを実行することによってサブプログラムエ
リアSPAの砥石修正プログラムを実行するだめの処理
を行なう。
When the operation is started, the arithmetic processing unit 11 in the numerical control device 10 executes the program shown in FIG. Of this program, the program in steps (31) to (43) executes the numerical control program for machining stored in the main program area MPA of the memory 12, and the program in steps (51) to (43)
) to (63) are for executing the grinding wheel correction program stored in the subprogram area SPA of the memory 12, and in step (30), the relay 0RIO of the sequence control circuit 6 is turned on. If it is determined that a grindstone correction command has been sent in step (31) to step (43), the program in steps (31) to (43) is executed.If relay 0R20 of the sequence control circuit 16 is still on, step ( 31) to C43), the process moves from step (30) or step (33) to step (51) via step (50), and continues. Step (51) to step (63)
By executing the program , processing for executing the grindstone correction program in the subprogram area SPA is performed.

ステップ(31)〜(43)のプログラムとステップ(
51)〜(63)のプログラムの処理内容はほぼ同じで
、ステップ(31)〜(43)のプログラムでは、メイ
ンプログラムカウンタMPCの指定中るブロックの数値
制御データをメインプログラムエリアMPAから読出し
て実行するのに対し、ステップ(51)〜(63)のプ
ログラムでは、サブプログラムカウンタSPCの指定す
るブロックの数値制御データをサブプログラムエリアS
PAから読出して実行する点だけが異なっている。なお
、メインプログラムカウンタMPCおよびサブプログラ
ムカウンタSPCはメモリ12内の所定のエリアに形成
されている。
Programs and steps of steps (31) to (43) (
The processing contents of the programs in steps 51) to (63) are almost the same, and in the programs in steps (31) to (43), the numerical control data of the block specified by the main program counter MPC is read out from the main program area MPA and executed. On the other hand, in the program of steps (51) to (63), the numerical control data of the block specified by the subprogram counter SPC is transferred to the subprogram area S.
The only difference is that it is read from the PA and executed. Note that the main program counter MPC and sub-program counter SPC are formed in predetermined areas within the memory 12.

今、シーケンス制御回路16の起動スイッチ5TART
が押圧されてリレー0RIOがオンし、数値制御装置1
0に対して加工用プログラムの実行が指令されると、数
値制御装置10の演算処理装置11は、ステップ(30
)にてこれを検知し、ステップ(32)にてメインプロ
グラムカウンタMPCを零リセットするイニシャライズ
処理を実行する。そして、この後、ステップ(33)を
介してステップ(35)へ移行し、メインプログラムカ
ウンタMPCの指定するブロックNQOQの数値制御デ
ータGoo Xll0を読出し、この後、ステップ(3
6)において、パルス分配軸であるX軸が現在パルス分
配中であるか否かを後述のインタロツクテーブルエRT
を参照して判別し、分配中でなければ、ステップ(37
)以後のプログラムにより数値制御データに応じた処理
を行なう。
Now, start switch 5TART of sequence control circuit 16
is pressed, relay 0RIO turns on, and numerical control device 1
0, the arithmetic processing unit 11 of the numerical control device 10 executes step (30
) detects this, and in step (32) executes initialization processing to reset the main program counter MPC to zero. After this, the process moves to step (35) via step (33), and the numerical control data Goo Xll0 of the block NQOQ specified by the main program counter MPC is read.
6), it is determined whether or not the X-axis, which is the pulse distribution axis, is currently distributing pulses using the interlock table error RT described later.
If it is not being distributed, proceed to step (37).
) The subsequent program performs processing according to the numerical control data.

この場合には、数値制御データにGコードが含まれてい
るだめ、ステップ(37)からステップ(37a)へ移
行してGコードに応じた処理を行なった?Lステ゛ツブ
(3B)、  (40)を介してステップ(41)へ移
行し、パルス分配の処理を行なう。こご のパルス分配の処理は、ステップ(41)において、移
動量D1のデータを回路のノ寸ツ7アゾーンに形成され
た移動量カウンタX枦TOTLにセットした後、ステッ
プ(4°2)において、メモリ12の所定のエリアに形
成されたインタロツクテーブルエRTにX軸のパルス分
配を開始したことを示す情報を書込むとウンタMPOを
歩進させ、この後、第6図に示すパルス分配ルーチンP
GHのステップ(70)へ移行し、パルス分配ルーチン
を1同突行する。なお、パルス分配ルーチンが1同突行
されることでX軸に対中るパルス分配が開始されるが、
以後のパルス分配の処理はパルス分配ルーチンのみで行
なわれる。
In this case, since the numerical control data includes the G code, the process moves from step (37) to step (37a) and processing according to the G code is performed. The process moves to step (41) via L steps (3B) and (40), and pulse distribution processing is performed. The processing of pulse distribution of the motor is performed in step (41) by setting the data of the movement amount D1 in the movement amount counter When information indicating that the X-axis pulse distribution has started is written in the interlock table area RT formed in a predetermined area of the memory 12, the counter MPO is advanced, and after this, the pulse distribution shown in FIG. Routine P
The process moves to step (70) of GH, and the pulse distribution routine is run through once. Note that by running one pulse distribution routine at the same time, pulse distribution toward the X axis is started.
The subsequent pulse distribution processing is performed only by the pulse distribution routine.

すなわち、パルス分配ルーチンのステップ〔70)から
処理が開始されると、まず、ステップ(70)において
、X、U軸のそれぞれに設けられたパルス分配完了フラ
ッグDEFX、 DEFUの内、移動軸に対応したX軸
のパルス分配完了フラッグDEFXをリセットし、この
後、移動方向を表わすデータをX軸のパルス発生回路1
3a K出力してゲートの切換えを行なう。そして、こ
の後、X軸移動量カウンタXPTOTLの計数値が零で
あるか否かでX軸に対中るパルス分配が完了したか否か
を判別し、パルス分配が完了していない場合には、ステ
ップ(73)から(77)へ移行して、速度データと、
1回分のパルス分配数を表わすデータをパルス発生回路
13aに出力して、パルス分配開始指令を出力し、この
後、パルス分配数を移動量カウンタXPTOTLから減
シテベースルーチンへ移行する。
That is, when the process starts from step [70] of the pulse distribution routine, first, in step (70), one of the pulse distribution completion flags DEFX and DEFU provided for the X and U axes, which corresponds to the movement axis, is selected. The X-axis pulse distribution completion flag DEFX is reset, and then the data representing the moving direction is sent to the X-axis pulse generation circuit 1.
3a Output K to switch gates. After this, it is determined whether pulse distribution to the X-axis has been completed based on whether the count value of the X-axis movement amount counter XPTOTL is zero, and if pulse distribution has not been completed, , moving from step (73) to (77), speed data and
Data representing the number of pulse distribution for one time is outputted to the pulse generating circuit 13a, a pulse distribution start command is outputted, and thereafter, the pulse distribution number is decreased from the moving amount counter XPTOTL to the base routine.

これにより、パルス発生回路13aは指定された速度で
設定された数のパルスをX軸へ分配し、これが完了する
と、演算処理装置11に分配完了信号DENXを送出す
る。これにより、演算処理装置11は第6図に示すパル
ス分配ルーチンのステップ(72)から実行を開始し、
まず最初に、どちらのノぐルス発生回路から分配完了信
号が送出されたかによってパルス分配軸を判断した後、
ステップ(73)へ移行し、前述の場合と同様の処理を
行なう0そしてこの処理が完了するとベースルーチンへ
復帰する。以下同様の動作の繰返しにより、X軸に対す
るパルス分配が継続され、砥石車Gか早送り前進される
As a result, the pulse generation circuit 13a distributes a set number of pulses to the X-axis at a designated speed, and when this is completed, it sends a distribution completion signal DENX to the arithmetic processing unit 11. As a result, the arithmetic processing unit 11 starts executing the pulse distribution routine from step (72) shown in FIG.
First, after determining the pulse distribution axis based on which noggle generation circuit has sent out the distribution completion signal,
The process moves to step (73), where the same process as in the previous case is performed, and when this process is completed, the process returns to the base routine. Thereafter, by repeating the same operation, pulse distribution to the X axis is continued, and the grinding wheel G is moved forward in rapid traverse.

なお、このパルス分配ルーチンによるノぐルス分配動作
中も、RTO回路25からの割込信号に同期して第5図
(a)のプログラムが一定時間毎に実行されるが、X軸
のパルス分配は完了しておらず、またリレー0R20は
オフの状態のままで数値制御装置10に対して砥石修正
指令も与えられていないため、ステップ(33)からス
テップ(50〕を介してペースルーチンへ復帰し、実質
的な処理は何も行なわない。
Note that even during the noguru distribution operation by this pulse distribution routine, the program shown in FIG. 5(a) is executed at regular intervals in synchronization with the interrupt signal from the RTO circuit 25, has not been completed, relay 0R20 remains off, and no grinding wheel correction command is given to the numerical control device 10, so the process returns to the pace routine from step (33) to step (50). However, no substantive processing is performed.

上記の動作によって指令された移動量Dlに応じた数の
パルスが分配されて移動量カウンタXPTOTLの内容
が零になると、すなわち、砥石車Gの早送り前進が完了
干ると、ステップ(75)においてインタロツクテーブ
ルエRTのX軸パルス分配中を表わすデータを消去する
とともに、ステップ(76)でX軸のパルス分配完了フ
ラッグをセットし、これにより、この後で第5図(a)
のルーチンが実行されるとステップC33)によってX
軸のノぐルス分配が完了したことが判別される。
When the number of pulses corresponding to the movement amount Dl commanded by the above operation is distributed and the contents of the movement amount counter XPTOTL become zero, that is, when the rapid advance of the grinding wheel G is completed, in step (75) The data indicating that the X-axis pulse distribution is in progress is erased from the interlock table RT, and the X-axis pulse distribution completion flag is set in step (76).
When the routine is executed, step C33)
It is determined that the shaft nogle distribution is complete.

すると、ステップ(33)から(35)へ移行してステ
ップ(33)〜(43)の処理が再び行なわれ、メイン
プログラムである加ニブログラムのブロックN0OLに
プログラムされている数値制御データGOIXD工F工
が読出され、前述と同様にしてX軸にノぐルスが分配さ
れて砥石車Gの粗研削送りが行なわれる。そして、これ
に続いてプログラムされているGOI XD2 F2が
読出されると同様にしてX軸に精研削送りに応じた速度
でパルスが分配され、これが完了すると、ブロックN0
O3にプログラムされているMO3のデータが読出され
、ステップ(38a )において、このMO3のコード
をり−llスス御回路16に送出する処理を行なう。そ
して、この後、ベースルーチンへ戻った後、再び第5図
(a)に示+処理が実行されると、ステップ(35)に
おいてブロックBJQO4にプログラムされている砥石
車G後退用のプログラムGoo X −D3 F3が読
出され、砥石車G後退用のパルス分配が開始される。前
述したように、第5図(alのプログラムはRTC回路
25からの割込み信号に応答して実行されるため、この
パルス分配の開始処理は第7図に示すようにRTC回路
25からの信号が送出された時点から開始され、次の信
号が送出されるまでにその処理は完了する。
Then, the process moves from step (33) to step (35), and the processing of steps (33) to (43) is performed again, and the numerical control data GOIXD engineering F engineering programmed in block N0OL of the machine program which is the main program is is read out, and the noggles are distributed on the X-axis in the same manner as described above, and the grinding wheel G is fed for rough grinding. Then, when the programmed GOI
The data of MO3 programmed in O3 is read out, and in step (38a), a process is performed to send the code of MO3 to the controller 16. Then, after returning to the base routine, the process shown in FIG. 5(a) is executed again, and in step (35), the program for reversing the grinding wheel G programmed in block BJQO4 -D3 F3 is read out and pulse distribution for grinding wheel G retraction is started. As mentioned above, since the program shown in FIG. The process starts from the moment the signal is sent and is completed by the time the next signal is sent.

一方、M2Sのコードがシーケンス制御回路16に送出
されるとリレー0R20が付勢され、数値制御袋ると、
演算処理装置11は第7図に示すように、X軸のパルス
分配が行なわれた直後にRTCl路25から送出される
信号L・こ応答して第5図(a)に示すプログラムを実
行した時に、ステップ(33)カラステップ(50)へ
移行してステップ(50ンでこれを検知し、第5図(b
)に示すステップ(51〕以降のサブプログラム実行処
理を行なう。これにより、まず、サブプログラムの最初
のブロックN100にプログラムされている修正工具早
送り前進用の数値制御データGoo UD5のプログラ
ムが読出され、この後、ステップ(56)にて現在U軸
に対してパルス分配が行なわれているか否かをインタロ
ックテーブルエRTを参照して判別し、U軸に対してパ
ルス分配が行なわれていなければ、ステップ(57)以
後へ移行して、パルス分配の処理を行なう。この場合に
はU軸に対するパルス分配は行なわれていないため、ス
テップ(56)からステップ(57)へ移行し、ステッ
プ(5’7a)vcてGコード処理を行なった後、ステ
ップ〔61)でU軸移動量D5をU#I移動量カウンタ
UPTOTLにセットし、さらに、ステップ(62)に
てインタロツクテーブルエRTにU軸移動中のデータを
書込むとともに、ステップ(63)にてサブプログラム
カウンタspa 全歩進してパルス分配ルーチンへ移行
する。
On the other hand, when the M2S code is sent to the sequence control circuit 16, the relay 0R20 is energized, and when the numerical control circuit is activated,
As shown in FIG. 7, the arithmetic processing unit 11 executed the program shown in FIG. 5(a) in response to the signal L sent from the RTCl path 25 immediately after the X-axis pulse distribution was performed. At the same time, the process moves to step (33) and step (50), and this is detected in step (50), and as shown in FIG.
) The subprogram execution processing after step (51) shown in ) is performed.As a result, first, the program of the numerical control data Goo UD5 for the correction tool rapid forward movement programmed in the first block N100 of the subprogram is read out, After this, in step (56), it is determined whether or not pulse distribution is currently being performed for the U-axis by referring to the interlock table RT, and if pulse distribution is not being performed for the U-axis. , the process moves to step (57) and subsequent steps to perform pulse distribution processing.In this case, since pulse distribution to the U-axis is not performed, the process moves from step (56) to step (57), and then processes step (57). '7a) After performing vc and G code processing, in step [61] the U-axis movement amount D5 is set in the U#I movement amount counter UPTOTL, and further, in step (62), the U-axis movement amount D5 is set in the interlock table ERT. At the same time as writing the data during axis movement, in step (63) the subprogram counter SPA is incremented by a full step and the process moves to the pulse distribution routine.

これにより、パルス発生回路13aに、砥石車後退…の
パルス分配速度と最初の分配パルス数がセットされてX
軸に対するパルス分配が開始された後で、パルス発生回
路13bに、砥石修正工具早送り用のパルス分配速度と
最初の分配パルス数がセットされてU軸に対するパルス
分配が開始される。
As a result, the pulse distribution speed and the initial distribution pulse number for grinding wheel retraction are set in the pulse generation circuit 13a, and
After the pulse distribution to the axis is started, the pulse distribution speed and the initial distribution pulse number for rapid feed of the grindstone correction tool are set in the pulse generation circuit 13b, and the pulse distribution to the U axis is started.

これにより、砥石車Gの後退勤作と砥石修正工具DTの
早送りmT進の動作とが同時に開始されることになる。
As a result, the backward movement of the grinding wheel G and the rapid mT movement of the grinding wheel correction tool DT are started simultaneously.

そして、パルス分配回路13a、 13bに設定された
数のパルスがそれぞれX軸、U軸に分配されると、パル
ス発生回路13a、 13bから分配完了信号DENX
、DEIJUが送出され、これに応じて前記のノクルス
分配ルーチンが再び実行される。両軸の送り速度は通常
具なるため、パルス発生回路13a 、 13bがパル
ス分配を完了するまでに要する時間は相違し、このため
、通常はパルス分配完了信号DENX。
Then, when the number of pulses set in the pulse distribution circuits 13a and 13b are distributed to the X axis and the U axis, respectively, a distribution completion signal DENX is sent from the pulse generation circuits 13a and 13b.
, DEIJU are sent, and in response the Noculus distribution routine described above is executed again. Since the feed speeds of both axes are normally the same, the time required for the pulse generating circuits 13a and 13b to complete pulse distribution is different, and therefore, the pulse distribution completion signal DENX is usually the same.

DENUは異なった時期に送出され、パルス分配ルーチ
ンはX軸に対するパルス分配の処理とU軸に対するパル
ス分配の処理を交互に時分割的に行なう。
The DENU is sent out at different times, and the pulse distribution routine alternately processes pulse distribution for the X-axis and pulse distribution for the U-axis in a time-sharing manner.

なお、フローチャートでは略しであるがパルス発生回路
13a、 13bの両方からパルス分配完了信号が同時
に送出された場合には、X軸に対するパルス分配処理を
最初に行なった後、U軸に対するパルス分配処理を行な
うようになっている。
Although it is omitted in the flowchart, if pulse distribution completion signals are sent from both pulse generation circuits 13a and 13b at the same time, pulse distribution processing for the X-axis is performed first, and then pulse distribution processing for the U-axis is performed. It is supposed to be done.

このような処理が繰返されることにより、砥石車Gの後
退勤作が制御されるとともに、砥石修正用のサブプログ
ラムが順番に読出され、これに応じて砥石修正工具1)
Tが砥石修正のために、早送り前進、切込み前進、早送
り後退のパルス分配が行なわれ、これが完了中ると、サ
ブプログラムのブロックN103にプログラムされてい
る砥石車位置補正用のプログラムGOOXD6が読出さ
れ、サブプログラムに基づいてX軸に対するパルス分配
が行なわれる。しかしながら、第4図に示すようにこの
時点で砥石車Gの後退が完了しておらず、X軸に対−す
るパルス分配が継続している場合には、インタロックテ
ーブルエRTI/i:X軸がパルス分配中であることを
表わすデータが書込まれているため、このことがサブプ
ログラム実行ルーチンのステップ(56)にて判別され
、X軸のパルス分配が完了するまでは何らの処理を行な
わずにベースルーチンへ復帰する。これにより、メイン
プログラムに基づく砥石車Gの後退処理が完了するまで
、サブプログラムに基づくパルス分配処理は中断され、
砥石車Gが後退端まで後退してメインプログラムに基づ
<Xiへのパルス分配が完了し、インタロツタテーブル
エRTからX軸に封子るパルス分配を実行中であること
を表わすデータが消去されると、サブプログラムに基づ
くX軸へのパルス分配カ開始され、砥石車Gの位置補正
が行なわれる。
By repeating such processing, the backward movement of the grinding wheel G is controlled, and subprograms for grinding wheel correction are read in order, and the grinding wheel correction tool 1) is read out in order.
In order to correct the grinding wheel, T performs pulse distribution of rapid forward forward movement, forward cutting forward, and rapid backward movement, and when this is completed, the grinding wheel position correction program GOOXD6 programmed in block N103 of the subprogram is read out. , pulse distribution to the X axis is performed based on the subprograms. However, as shown in FIG. 4, if the retraction of the grinding wheel G is not completed at this point and the pulse distribution to the X axis continues, the interlock table error RTI/i:X Since data indicating that the axis is undergoing pulse distribution is written, this is determined in step (56) of the subprogram execution routine, and no processing is performed until the X-axis pulse distribution is completed. Return to the base routine without performing any operations. As a result, the pulse distribution process based on the subprogram is interrupted until the retraction process of the grinding wheel G based on the main program is completed.
The grinding wheel G has retreated to the backward end, the pulse distribution to <Xi has been completed based on the main program, and the data indicating that the pulse distribution to the X axis is being executed is erased from the interrotator table RT. Then, pulse distribution to the X axis is started based on the subprogram, and the position of the grinding wheel G is corrected.

そして、これが完了干ると、サブプログラムの実行が完
了して、数値制御装置10は時期状態となる。
When this is completed, the execution of the subprogram is completed and the numerical control device 10 enters the timing state.

以下、起動スイッチが押圧される度に上記の動作が繰返
され、工作物加工と砥石修正が行なわれるが、砥石車G
の後退動作と並行して砥石修正が行なわれるため、引続
く加工をす〈゛に開始することができ、加工能率を向上
できる。
Thereafter, each time the start switch is pressed, the above operation is repeated to process the workpiece and correct the grinding wheel, but the grinding wheel G
Since the grinding wheel is corrected in parallel with the backward movement of the grinder, subsequent machining can be started immediately, improving machining efficiency.

以上述べたように本発明においては・互いに独立して作
動させる必要のある複数の制御軸のそれぞれ毎にプログ
ラムされた数値制御プログラムを記憶する記憶手段を設
けるとともに、複数の制御軸のそれぞれに設けられ入力
されたパルス分配指令データに応答して互いに独立して
パルス分配を行ない、パルス分配完了信号を独立的に送
出可能なパルス発生回路を設け、主の起動指令が与えら
れると、1つの制御軸に対するパルス分配処理だけを対
応する数値制御データに従って行ない、この数値制御デ
ータが所定のステップまで実行された時点からは他の制
御軸に対するパルス分配も他の数値制御データに従って
同時に行なうようにしているので、予め定められた所定
の時点から互いに独立して作動する複数の制御軸に対し
て同時にパルス分配を行なわせることができ、かかる数
値制御装置を研削盤等の工作機械に用いた場合には、工
具の戻し動作中に他の動作を行なえて加工のサイクルタ
イムを大幅に短縮できる利点がある。
As described above, in the present invention, a storage means is provided for storing numerical control programs programmed for each of a plurality of control axes that need to be operated independently of each other, and a storage means is provided for each of the plurality of control axes. A pulse generation circuit is provided which can perform pulse distribution independently of each other in response to pulse distribution command data inputted by the controller, and can independently send out a pulse distribution completion signal, and when a main activation command is given, one control Only pulse distribution processing for the axes is performed according to the corresponding numerical control data, and from the point at which this numerical control data has been executed up to a predetermined step, pulse distribution to other control axes is also performed simultaneously according to other numerical control data. Therefore, it is possible to simultaneously distribute pulses to a plurality of control axes that operate independently from each other from a predetermined point in time, and when such a numerical control device is used in a machine tool such as a grinder, This has the advantage that other operations can be performed during the return operation of the tool, significantly shortening the machining cycle time.

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

図面は本発明の実施例を示すもので、栖1図は数値制御
装置の全体構成を示すブロック図に砥石台の概略構成図
を併記した図、第2図(a)、 (b)は第1図のメモ
リ12に記憶される加工用数値制御プログラムと砥石修
正用数値制御プログラムを示す図、第3図は第1図のシ
ーケンス制御回路16の詳細な回路を示す図、第4図は
研削サイクルの一例を示すサイクル線図、第5図(a)
、 (b)および第6図は第1図における演算処理装置
11の動作を示すフローチャート、第7図は各軸へのパ
ルス分配とそのパルス分配を行なわせる処理の時間的な
関係を水子タイムチャートである。 10・φ・数値制御装置、11・・・演算処理装置、1
2・・・メモリ、13a、 13b・・・パルス発生回
路、15・・・プログラム書込装N、20a、 20b
・・・速度レジスタ、21a、 21b・・・発振器、
22a。 22b @ @ @プリセットカウンタ、23a、 2
3b拳・・ゲート回路、DT・・・修正工具、G・・・
砥石車、W・・・工作物。 特許出願人 豊田工機株式会社
The drawings show an embodiment of the present invention, and Figure 1 is a block diagram showing the overall configuration of a numerical control device with a schematic configuration diagram of a grindstone head, and Figures 2 (a) and 2 (b) are a block diagram showing the overall configuration of a numerical control device. Figure 1 shows the numerical control program for machining and the numerical control program for grinding wheel correction stored in the memory 12, Figure 3 shows the detailed circuit of the sequence control circuit 16 in Figure 1, and Figure 4 shows the numerical control program for grinding. Cycle diagram showing an example of a cycle, FIG. 5(a)
, (b) and FIG. 6 are flowcharts showing the operation of the arithmetic processing unit 11 in FIG. It is a chart. 10・φ・Numerical control device, 11... Arithmetic processing device, 1
2...Memory, 13a, 13b...Pulse generation circuit, 15...Program writing device N, 20a, 20b
...speed register, 21a, 21b...oscillator,
22a. 22b @ @ @ preset counter, 23a, 2
3b fist...gate circuit, DT...correction tool, G...
Grinding wheel, W...workpiece. Patent applicant Toyota Machinery Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] (1)  複数の制御軸にパルス分配を行なうことによ
って工作機械の動作を制御するようにした数値制御装置
において、互いに独立して作動させるべき複数の制御軸
の移動をそれぞれ定義する複数の数値制御データ七を記
憶する記憶手段と、前記独\rして作動させるべき複数
の制御軸のそれぞれに設けられ人力された分配データに
従って互いに独さrしてパルス分配を行ない、分配が完
了すると7Jいに独立に分配完了信号を送出する複数の
パルス発生手段と、第1の起動指令のみが法えられた場
合にはAil記複数の制御軸の内の特定の軸に対応する
パルス発生手段から分配完了信号が送出される度にこれ
に対応する数値制御データに基づく分配データを分配完
了信号が送出された前記パルス発生手段にセットし、第
゛1の起動指令と第2の起動指令の両方が与えられた場
合には前記特定の軸とこれと異なる池の制御軸のいずれ
ががら分配完了信号が送出される度に分配完了信号゛が
送出さfした制御軸に対応する数値制御データに従った
分配データを対応するパルス分配手段にセットする処理
手段と、前記特定の制御軸に対応する数値制御プログラ
ムが所定の位Inまで実行されたことに応答してnσ記
第2の起動指令を発生するタイミング制御手段とを設け
たことを特徴とする数値制御装置。
(1) In a numerical control device that controls the operation of a machine tool by distributing pulses to multiple control axes, multiple numerical controls each define the movement of multiple control axes that are to be operated independently of each other. A storage means for storing data 7 and a plurality of control axes to be operated independently perform pulse distribution independently according to manual distribution data, and when the distribution is completed, 7J A plurality of pulse generation means that independently send out a distribution completion signal to the controller, and when only the first start command is issued, distribution is performed from the pulse generation means corresponding to a specific axis among the plurality of control axes. Each time a completion signal is sent out, distribution data based on the corresponding numerical control data is set in the pulse generating means to which the distribution completion signal was sent, and both the first start command and the second start command are In the given case, each time the distribution completion signal is sent out between the specific axis and the control axis of a different pond, the distribution completion signal ``f'' is transmitted according to the numerical control data corresponding to the control axis f. a processing means for setting the distributed distribution data to the corresponding pulse distribution means, and generating a second start command in nσ in response to the numerical control program corresponding to the specific control axis being executed to a predetermined position In. A numerical control device characterized in that it is provided with timing control means.
JP6755282A 1982-04-22 1982-04-22 Numerical controller Granted JPS58186561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6755282A JPS58186561A (en) 1982-04-22 1982-04-22 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6755282A JPS58186561A (en) 1982-04-22 1982-04-22 Numerical controller

Publications (2)

Publication Number Publication Date
JPS58186561A true JPS58186561A (en) 1983-10-31
JPH0220379B2 JPH0220379B2 (en) 1990-05-09

Family

ID=13348235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6755282A Granted JPS58186561A (en) 1982-04-22 1982-04-22 Numerical controller

Country Status (1)

Country Link
JP (1) JPS58186561A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6353663U (en) * 1986-09-25 1988-04-11
JPH01109068A (en) * 1987-10-23 1989-04-26 Toyoda Mach Works Ltd Grinding wheel correcting device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57108905A (en) * 1980-12-25 1982-07-07 Okuma Mach Works Ltd Synchronous queuing system for machine tool with plural movable members

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57108905A (en) * 1980-12-25 1982-07-07 Okuma Mach Works Ltd Synchronous queuing system for machine tool with plural movable members

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6353663U (en) * 1986-09-25 1988-04-11
JPH0641799Y2 (en) * 1986-09-25 1994-11-02 豊田工機株式会社 Numerical control grinder
JPH01109068A (en) * 1987-10-23 1989-04-26 Toyoda Mach Works Ltd Grinding wheel correcting device

Also Published As

Publication number Publication date
JPH0220379B2 (en) 1990-05-09

Similar Documents

Publication Publication Date Title
JP3671020B2 (en) Numerical controller
CN101458509B (en) Numerical controller having control mode switching function
EP0049151A2 (en) System for restoring numerically controlled machine tool to former condition
JPH0523903B2 (en)
JP3665008B2 (en) Synchronization control method and synchronization control apparatus
US4424569A (en) Method and apparatus for a numerical control device for controlling a machining device having a plurality of tools
JPS6363921B2 (en)
JPH027790B2 (en)
JPS6141002B2 (en)
JPH027792B2 (en)
US4173786A (en) Method and apparatus for cutting a thread on a rotating workpiece
JPS5968003A (en) Emergency machine origin resetting device of numerically controlled machine tool
JPS60127955A (en) Regional work
JPS58186561A (en) Numerical controller
JPH04348869A (en) Correction device for angular grinding wheel
EP0264646B1 (en) Method for grinding a non-circular workpiece
EP0310671B1 (en) Numerical control method capable of variably setting positioning precision
WO1990006545A1 (en) Interpolation method in automatic programming
JPS6232801B2 (en)
JPH0630011B2 (en) Numerical control Machining restart control method
JPH0218603A (en) Numerical controller
JPS62130412A (en) Numerical control method
JPH01109052A (en) Numeric controller
JPS6125501B2 (en)
JPS6051905A (en) Automatic generating system of working condition data