JPH0220379B2 - - Google Patents

Info

Publication number
JPH0220379B2
JPH0220379B2 JP57067552A JP6755282A JPH0220379B2 JP H0220379 B2 JPH0220379 B2 JP H0220379B2 JP 57067552 A JP57067552 A JP 57067552A JP 6755282 A JP6755282 A JP 6755282A JP H0220379 B2 JPH0220379 B2 JP H0220379B2
Authority
JP
Japan
Prior art keywords
distribution
grinding wheel
numerical control
pulse distribution
axis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP57067552A
Other languages
Japanese (ja)
Other versions
JPS58186561A (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)
  • Grinding-Machine Dressing And Accessory Apparatuses (AREA)
  • Constituent Portions Of Griding Lathes, Driving, Sensing And Control (AREA)

Description

【発明の詳細な説明】 本発明は、予め入力された数値制御データに従
つて複数の制御軸にパルス分配を行なうことによ
つて工作機械の動作を制御するようにした数値制
御装置に関するもので、その目的とするところは
加工工具等の移動を制御する主の制御軸に対する
パルス分配を主の数値制御プログラムに従つて行
なうと同時に、主の数値制御プログラムが所定の
位置まで実行された時点から副制御軸に対するパ
ルス分配を主制御軸に対するパルス分配と独立し
て同時に実行する等の処理ができるようにし、加
工工具の移動工程の途中の位置から加工工具の移
動と関連のない他の動作を開始できるようにする
ことにある。
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 numerical control data input in advance. The purpose of this is to distribute pulses to the main control axis that controls the movement of processing tools, etc. according to the main numerical control program, and at the same time to distribute pulses from the time when the main numerical control program has been executed to a predetermined position. Processes such as pulse distribution to the sub-control axis can be executed independently and simultaneously with pulse distribution to the main control axis, and other operations unrelated to the movement of the machining tool can be performed from a position in the middle of the machining tool movement process. The goal is to help you get started.

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

すなわち、砥石修正のための修正工具の移動を
例にして考えると、この動作は加工中には行なえ
ないものの砥石車が後退を開始した直後から送り
を開始して砥石車の後退動作中に砥石車を修正す
ることは可能で、このようにすると、砥石車が後
退端まで戻つた時には砥石修正が完了しているこ
とになつて引続く加工を直ぐに開始することがで
きて加工のサイクルタイムを短縮できる。しかし
ながら、従来の数値制御装置においては、直線補
間のように移動の開始時間と完了時期が同一とな
るような複数軸への同時パルス分配は行なえるも
のの、独立して動作する複数の軸に対して同時に
パルス分配を行なうことは全くできないため、上
記のように砥石車を後退させるためのパルス分配
と並行して砥石修正工具を砥石修正のために進退
させるためのパルス分配を行つて加工のサイクル
タイムを短縮することはできなかつた。
In other words, if we consider moving the correction tool for grinding wheel correction as an example, although this movement cannot be performed during machining, the feed starts immediately after the grinding wheel starts moving backward, 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 subsequent machining can be started immediately, reducing the machining cycle time. Can be shortened. However, in conventional numerical control devices, although it is possible to simultaneously distribute pulses to multiple axes such that the start time and completion time of movement are the same as in linear interpolation, Since it is impossible to perform pulse distribution at the same time at all, as described above, in parallel with the pulse distribution for retracting the grinding wheel, pulse distribution for moving the grinding wheel correction tool forward and backward for grinding wheel correction is performed to complete the machining cycle. I couldn't shorten the time.

本発明はこのような従来の問題点に鑑みてなれ
たもので、独立して動作させる必要のある複数の
制御軸のそれぞれに対応してプログラムされた複
数の数値制御データを記憶手段に記憶させておく
とともに、各軸毎に、互いに独立してパルス分配
の可能なパルス発生回路を設け、起動指令が与え
られると、前記記憶手段に記憶された複数の数値
制御データの内1つの数値制御データに基づくパ
ルス分配のみを行ない、この1つの数値制御デー
タが所定のステツプまで実行されたことに応答し
て、この1つの数値制御データに基づくパルス分
配と同時に、他の数値制御データに基づくパルス
分配並行して行なうようにしたことを特徴とする
ものである。
The present invention has been developed 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. In addition, a pulse generation circuit capable of distributing pulses independently is provided for each axis, and when a start command is given, one numerical control data among the plurality of numerical control data stored in the storage means is provided. In response to this one numerical control data being executed up to a predetermined step, pulse distribution based on this one numerical control data and pulse distribution based on other numerical control data is performed simultaneously. This feature is characterized by the fact that they are performed in parallel.

以下本発明の実施例を図面に基づいて説明す
る。第1図において10は、砥石車Gの工作物W
に対する進退動作を制御して工作物Wを数値制御
加工するととに、砥石車Gに対する砥石修正工具
DTの進退動作を制御して砥石車Gの修正を数値
制御で行なう数値制御装置であり、演算処理装置
11、メモリ12、パルス発生回路13a,13
bによつて主に構成されている。そして、演算処
理装置11には、プログラム書込装置15と、シ
ーケンス制御回路16とが図略のインタフエイス
を介して接続されている。
Embodiments of the present invention will be described below based on the drawings. In FIG. 1, 10 is the workpiece W of the grinding wheel G.
In addition to numerically controlled machining of the workpiece W by controlling the forward and backward movements of the grinding wheel G, a grinding wheel correction tool is attached to the grinding wheel G.
This is a numerical control device that controls the forward and backward movement of the DT and corrects the grinding wheel G by numerical control, and includes an arithmetic processing device 11, a memory 12, and pulse generation circuits 13a, 13.
It is mainly composed of b. A program writing device 15 and a sequence control circuit 16 are connected to the arithmetic processing device 11 via an unillustrated interface.

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

また、砥石修正用のプログラムは、前記砥石修
正工具DTがロータリ形であるので砥石修正工具
DTを早送りで距離D5だけ前進させた後、速度
F3で距離D6だけ前進させて砥石修正を完了
し、この後、修正工具DTを距離D5だけ戻した
後、砥石車Gを距離D6だけ前進させて砥石修正
による砥石車Gの径の減少を補償するものであ
る。
In addition, since the grinding wheel correction tool DT is a rotary type, the program for grinding wheel correction is
After moving the DT forward by a distance D5 in rapid traverse, the grinding wheel correction is completed by moving the DT forward by a distance D6 at a speed F3, and after this, after returning the correction tool DT by a distance D5, the grinding wheel G is moved forward by a distance D6. This is 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,13bのそれぞれには、パ
ルス周期を設定する速度レジスタ20a,20
b、この速度レジスタ20a,20bに設定され
た速度でパルスを発生する発振器21a,21
b、この発振器21a,21bからの出力を正、
負のパルスとして分配するゲート回路23a,2
3b、発振器21a,21bから出力されるパル
スを計算しその計数値がプリセツト値と等しくな
るとパルス分配完了信号DENX,DENUを出力
するプリセツトカウンタ22a,22bとによつ
て構成されている。そして、演算処理装置11
は、パルス発生回路13a,13b内のプリセツ
トカウンタ22a,22bからパルス分配完了信
号DENX,DENUが出力される度に、新たな移
動量をパルス分配完了信号DENX,DENUが送
出されたプリセツトカウンタ22aもしくは22
bにセツトすることで連続的なパルス分配を行な
うようになつている。
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 commands from the arithmetic processing unit 11. The pulse generation circuits 13a and 13b each include speed registers 20a and 20 for setting the pulse period.
b, oscillators 21a and 21 that generate pulses at the speed set in the speed registers 20a and 20b;
b, the output from these oscillators 21a and 21b is positive,
Gate circuits 23a, 2 that distribute as negative pulses
3b, and preset counters 22a and 22b which calculate the pulses output from the oscillators 21a and 21b and output pulse distribution completion signals DENX and DENU when the counted value becomes equal to the preset value. Then, the arithmetic processing unit 11
Each time the pulse distribution completion signals DENX and DENU are output from the preset counters 22a and 22b in the pulse generation circuits 13a and 13b, a new movement amount is calculated from the preset counter to which the pulse distribution completion signals DENX and DENU were sent. 22a or 22
By setting it to b, continuous pulse distribution is performed.

さらに、シーケンス制御回路16は、第3図に
示す回路構成となつており、起動ボタンSTART
を押圧すると、加工サイクル指令用のリレーCR
10がオンとなつて数値制御装置10に対してメ
インプログラムである第2図aに示す加工用プロ
グラムの実行の開始を指令する。また、このプロ
グラムの実行の途中で補助機能コードMO3が読
出されると数値制御装置10からシーケンス制御
回路16に対してM03のコードが出力され、こ
れに応答して接点m03が閉じられると砥石修正
サイクル指令用のリレーCR20がオンとなつて
数値制御装置10に対してサブプログラムである
第2図bに示す砥石修正用プログラムの実行の開
始を指令する。
Furthermore, the sequence control circuit 16 has a circuit configuration shown in FIG.
When pressed, relay CR for machining cycle command is activated.
10 is turned on, instructing the numerical control device 10 to start executing the machining program shown in FIG. 2a, which is the main program. In addition, when the auxiliary function code MO3 is read out during the execution of this program, the code M03 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 CR20 is turned on and commands the numerical control device 10 to start executing the subprogram, the grindstone correction program shown in FIG. 2b.

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

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

前記数値制御装置10内の演算処理装置11
は、運転が開始されると第5図a,bに示すプロ
グラムをリアルタイムロツク発生回路25からの
割込み信号に応答して一定時間毎に実行する。こ
のプログラムの内、ステツプ(31)〜(43)のプ
ログラムはメモリ12のメインプログラムエリア
MPAに記憶された加工用数値制御プログラムを
実行するものであり、ステツプ(51)〜(63)の
プログラムはメモリ12のサブプログラムエリア
SPAに記憶された砥石修正用プログラムを実行
するものであり、ステツプ(30)において、シー
ケンス制御回路16のリレーCR10がオンして
いることで砥石修正指令が送出されていることが
判別されるとステツプ(31)〜(43)のプログラ
ムを実行する。また、シーケンス制御回路16の
リレーCR20がオンとなつている場合には、ス
テツプ(31)〜(43)によつて加工用プログラム
を実行するための処理が完了した時点で、ステツ
プ(30)もしくはステツプ(33)からステツプ
(50)を介してステツプ(51)へ移行し、これに
引続くステツプ(51)からステツプ(63)のプロ
グラムを実行することによつてサブプログラムエ
リアSPAの砥石修正プログラムを実行するため
の処理を行なう。
Arithmetic processing device 11 in the numerical control device 10
When operation is started, the program shown in FIGS. 5a and 5b is executed at regular intervals in response to an interrupt signal from the real-time lock generation circuit 25. Of this program, the programs in steps (31) to (43) are stored in the main program area of memory 12.
It executes the numerical control program for machining stored in the MPA, and the programs in steps (51) to (63) are stored in the subprogram area of memory 12.
It executes the grinding wheel correction program stored in the SPA, and in step (30), when it is determined that the grinding wheel correction command is being sent by relay CR10 of the sequence control circuit 16 being on. Execute the program in steps (31) to (43). Furthermore, if the relay CR20 of the sequence control circuit 16 is turned on, when the processing for executing the machining program is completed in steps (31) to (43), step (30) or By moving from step (33) to step (51) via step (50) and executing the program from step (51) to step (63), the grindstone repair program in subprogram area SPA is executed. Perform processing to execute.

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

今、シーケンス制御回路16の起動スイツチ
STARTが押圧されてリレーCR10がオンし、
数値制御装置10に対して加工用プログラムの実
行が指令されると、数値制御装置10の演算処理
装置11は、ステツプ(30)にてこれを検知し、
ステツプ(32)にてメインプログラムカウンタ
MPCを零リセツトするイニシヤライズ処理を実
行する。そして、この後、ステツプ(33)を介し
てステツプ(35)へ移行し、メインプログラムカ
ウンタMPCの指定するブロツクN000の数値
制御データG00 XD0を読出し、この後、ス
テツプ(36)において、パルス分配軸であるX軸
が現在パルス分配中であるか否かを後述のインタ
ロツクテーブルIRTを参照して判別し、分配中で
なければ、ステツプ(37)以後のプログラムによ
り数値制御データに応じた処理を行なう。
Now, start switch of sequence control circuit 16
When START is pressed, relay CR10 turns on,
When the numerical control device 10 is instructed to execute the machining program, the arithmetic processing device 11 of the numerical control device 10 detects this in step (30),
Main program counter at step (32)
Executes initialization processing to reset the MPC to zero. After this, the process moves to step (35) via step (33), and the numerical control data G00XD0 of block N000 specified by the main program counter MPC is read out. It is determined whether or not the X-axis is currently distributing pulses by referring to the interlock table IRT described later. If it is not distributing, the program after step (37) performs processing according to the numerical control data. Let's do it.

この場合には、数値制御データにGコードが含
まれているため、ステツプ(37)からステツプ
(37a)へ移行してGコードに応じた処理を行な
つた後、ステツプ(38),(40)を介してステツプ
(41)へ移行し、パルス分配の処理を行なう。こ
のパルス分配の処理では、ステツプ(41)におい
て、移動量D1のデータを図略のバツフアゾーン
に形成された移動量カウンタXPTOTLにセツト
した後、ステツプ(42)において、メモリ12の
所定のエリアに形成されたインタロツクテーブル
IRTにX軸のパルス分配を開始したことを示す情
報を書込むとともに、ステツプ(43)にてメイン
プログラムカウンタMPCを歩進させ、この後、
第6図に示すパルス分配ルーチンPGRのステツ
プ(70)へ移行し、パルス分配ルーチン1回実行
する。なお、パルス分配ルーチンが1回実行され
ることでX軸に対するパルス分配が開始される
が、以後のパルス分配の処理はパルス分配ルーチ
ンのみで行なわる。
In this case, since the numerical control data includes the G code, the step moves from step (37) to step (37a) to perform processing according to the G code, and then steps (38) and (40) ) to step (41), where pulse distribution processing is performed. In this pulse distribution process, in step (41), the data of the movement amount D1 is set in the movement amount counter XPTOTL formed in a buffer zone (not shown), and then in step (42), interlock table
Information indicating that X-axis pulse distribution has started is written to the IRT, and the main program counter MPC is incremented at step (43).
The process moves to step (70) of the pulse distribution routine PGR shown in FIG. 6, and the pulse distribution routine is executed once. Note that pulse distribution for the X-axis is started by executing the pulse distribution routine once, but subsequent pulse distribution processing is performed only by the pulse distribution routine.

すなわち、パルス分配ルーチンのステツプ
(70)から処理が開始されると、まず、ステツプ
(70)において、X,U軸のそれぞれに設けられ
たパルス分配完了フラツグDEFX,DEFUの内、
移動軸に対応したX軸のパルス分配完了フラツグ
DEFXをリセツトし、この後、移動方向を表わす
データをX軸のパルス発生回路13aに出力して
ゲートの切換えを行なう。そして、この後、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 on each of the X and U axes is set.
X-axis pulse distribution completion flag corresponding to the moving axis
After resetting DEFX, data representing the moving direction is output to the X-axis pulse generation circuit 13a to switch the gate. Then, it is determined whether the pulse distribution to the X-axis is completed based on whether the count value of the X-axis movement amount counter XPTOTL is zero or not. If the pulse distribution is not completed, step ( 73) to (77), outputs the speed data and data representing the number of pulse distribution for one time to the pulse generation circuit 13a, outputs a pulse distribution start command, and then moves the number of pulse distribution. The amount counter XPTOTL is decremented and the process proceeds to the base routine.

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

なお、このパルス分配ルーチンによるパルス分
配動作中も、RTC回路25からの割込信号に同
期して第5図aのプログラムが一定時間毎に実行
されるが、X軸のパルス分配は完了しておらず、
またリレーCR20はオフの状態のままで数値制
御装置10に対して砥石修正指令も与えられてい
ないため、ステツプ(33)からステツプ(50)を
介してベースルーチンへ復帰し、実質的な処理は
何も行なわない。
Note that even during the pulse distribution operation according to this pulse distribution routine, the program shown in FIG. Not there,
Furthermore, since the relay CR20 remains in the OFF state and no grinding wheel correction command is given to the numerical control device 10, the process returns to the base routine from step (33) via step (50), and the actual processing is carried out. do nothing.

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

すると、ステツプ(33)から(35)へ移行して
ステツプ(33)〜(43)の処理が再び行なわれ、
メインプログラムである加工プログラムのブロツ
クN001にプログラムされている数値制御デー
タG01 XDI FIが読出され、前述と同様にし
てX軸にパルスが分配されて砥石車Gの粗研削送
りが行なわれる。そして、これに続いてプログラ
ムされているG0 XD2 F2が読出されると
同様にしてX軸に粗研削送りに応じた速度でパル
スが分配され、これが完了すると、ブロツクN0
03にプログラムされているM03のデータが読
出され、ステツプ(38a)において、このM03
のコードをシーケンス制御回路16に送出する処
理を行なう。そして、この後、ベースルーチンへ
戻つた後、再び第5図aに示す処理が実行される
と、ステツプ(35)においてブロツクN004に
プログラムされている砥石車G後退用のプログラ
ムGOOX―D3F3が読出され、砥石車Gの後
退用のパルス分配が開始される。前述したよう
に、第5図aのプログラムはRTC回路25から
の割込み信号に応答して実行されるため、このパ
ルス分配の開始処理は第7図に示すようにRTC
回路25からの信号が送出された時点から開始さ
れ、次の信号が送出されるまでにその処理は完了
する。
Then, the process moves from step (33) to (35), and the processing of steps (33) to (43) is performed again.
Numerical control data G01 Then, when the programmed G0
The data of M03 programmed in 03 is read out, and in step (38a) this M03 data is
The code is sent to the sequence control circuit 16. Then, after returning to the base routine, when the process shown in FIG. Then, pulse distribution for retracting the grinding wheel G is started. As mentioned above, since the program shown in FIG.
The process starts from the moment the signal from the circuit 25 is sent out, and is completed by the time the next signal is sent out.

一方、M03作コードがシーケンス制御回路1
6に送出されるとリレーCR20が付勢され、数
値制御装置10にサブプログラム実行指令が送出
される。すると、演算処理装置11は第7図に示
すように、X軸のパルス分配がが行なわれた直後
にRTC回路25から送出される信号に応答して
第5図aに示すプログラムを実行した時に、ステ
ツプ(33)からステツプ(50)へ移行してステツ
プ(50)でこれを検知し、第5図bに示すステツ
プ(51)以降のサブプログラム実行処理を行な
う。これにより、まず、サブプログラムの最初の
ブロツクN100にプログラムされている修正工
具早送り前進用の数値制御データG00 UD5
のプログラムが読出され、この後、プリセツト
(56)にて現在U軸に対してパルス分配が行なわ
れているか否かをインタロツクテーブルIRTを参
照して判別し、U軸に対してパルス分配が行なわ
れていなければ、ステツプ(57)以後へ移行し
て、パルス分配の処理を行なう。この場合にはU
軸に対するパルス分配は行なわれていないため、
ステツプ(56)からステツプ(57)へ移行し、ス
テツプ(57a)にてGコード処理を行なつた後、
ステツプ(61)でU軸移動量D5をU軸移動量カ
ウンタUPTOTLにセツトし、さらに、ステツプ
(62)にてインタロツクテーブルIRTにU軸移動
中のデータを書込むとともに、ステツプ(63)に
てサブプログラムカウンタPSCを歩進してパルス
分配ルーチンへ移行する。
On the other hand, the M03 code is sequence control circuit 1
6, relay CR20 is energized and a subprogram execution command is sent to numerical control device 10. Then, as shown in FIG. 7, when the processing unit 11 executes the program shown in FIG. 5a in response to the signal sent from the RTC circuit 25 immediately after the X-axis pulse distribution is performed, , the program moves from step (33) to step (50), detects this in step (50), and performs the subprogram execution process starting from step (51) shown in FIG. 5B. As a result, first, the numerical control data G00 UD5 for the correction tool rapid traverse advance programmed in the first block N100 of the subprogram is
The program is read out, and then, in preset (56), it is determined whether or not pulse distribution is currently being performed for the U-axis by referring to the interlock table IRT, and the pulse distribution for the U-axis is determined. If not, the process moves to step (57) and subsequent steps to perform pulse distribution processing. In this case, U
Since there is no pulse distribution to the axis,
After moving from step (56) to step (57) and performing G code processing in step (57a),
In step (61), the U-axis movement amount D5 is set in the U-axis movement amount counter UPTOTL, and in step (62), the data during U-axis movement is written to the interlock table IRT, and at the same time, in step (63) Then, the subprogram counter PSC is incremented and the process moves to the pulse distribution routine.

これにより、パルス発生回路13aに、砥石車
後退用のパルス分配速度と最初の分配パルス数が
セツトされてX軸に対するパルス分配が開始され
た後で、パルス発生回路13bに、砥石修正工具
早送り用のパルス分配速度と最初の分配パルス数
がセツトされてU軸に対するパルス分配が開始さ
れる。これにより、砥石車Gの後退動作と砥石修
正工具DTの早送り前進の動作とが同時に開始さ
れることになる。
As a result, after the pulse distribution speed and the initial distribution pulse number for grinding wheel retraction are set in the pulse generation circuit 13a and pulse distribution for the The pulse distribution speed and the initial number of distributed pulses are set, and pulse distribution to the U axis is started. As a result, the backward movement of the grinding wheel G and the rapid forward movement of the grinding wheel correction tool DT are started simultaneously.

そして、パルス分配回路13a,13bに設定
された数のパルスがそれぞれX軸、U軸に分配さ
れると、パルス発生回路13a,13bから分配
完了信号DENX,DENUが送出され、これに応
じて前記のパルス分配ルーチンが再び実行され
る。両軸の送り速度は通常異なるため、パルス発
生回路13a,13bがパルス分配を完了するま
でに要する時間は相違し、このため、通常はパル
ス分配完了信号DENX,DENUは異なつた時期
に送出され、パルス分配ルーチンはX軸に対する
パルス分配の処理とU軸に対するパルス分配の処
理を交互に時分割的に行なう。なお、フローチヤ
ートでは略してあるがパルス発生回路13a,1
3bの両方からパルス分配完了信号が同時に送出
された場合には、X軸に対するパルス分配処理を
最初に行なつた後、U軸に対するパルス分配処理
行なうようになつている。
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, distribution completion signals DENX and DENU are sent from the pulse generation circuits 13a and 13b, and in response, the The pulse distribution routine is executed again. Since the feed speeds of the two axes are usually different, the time required for the pulse generation circuits 13a and 13b to complete pulse distribution is different, and therefore the pulse distribution completion signals DENX and DENU are usually sent out at different times. The pulse distribution routine alternately performs pulse distribution processing for the X-axis and pulse distribution processing for the U-axis in a time-division manner. Although omitted in the flowchart, the pulse generation circuits 13a, 1
When the pulse distribution completion signals are sent from both of 3b at the same time, the pulse distribution process for the X axis is performed first, and then the pulse distribution process for the U axis is performed.

このような処理が繰返されることにより、砥石
車Gの後退動作が制御されるとともに、砥石修正
用のサブプログラムが順番に読出され、これに応
じて砥石修正工具DTが砥石修正のために、早送
り前進、切込み前進、早送り後退のパルス分配が
行なわれ、これが完了すると、サブプログラムの
ブロツクN103にプログラムされている砥石車
位置補正用のプログラムG00 XD6が読出さ
れ、サブプログラムに基づいてX軸に対するパル
ス分配が行なわれる。しかしながら、第4図に示
すようにこの時点で砥石車Gの後退が完了してお
らず、X軸に対するパルス分配が継続している場
合には、インタロツクテーブルIRTにX軸がパル
ス分配中であることを表わすデータが書込まれて
いるため、このことがサブプログラム実行ルーチ
ンのステツプ(56)にて判別され、X軸のパルス
分配が完了するまでは何らの処理を行なわずにベ
ースルーチンへ復帰する。これにより、メインプ
ログラムに基づく砥石車Gの後退処理が完了する
まで、サブプログラムに基づくパルス分配処理は
中断され、砥石車Gが後退端まで後退してメイン
プログラムに基づくX軸へのパルス分配が完了
し、インタロツクテーブルIRTからX軸に対する
パルス分配を実行中であることを表わすデータが
消去されると、サブプログラムに基づくX軸への
パルス分配が開始され、砥石車Gの位置補正が行
なわれる。
By repeating such processing, the backward movement of the grinding wheel G is controlled, and the subprograms for grinding wheel correction are read in order, and in response to this, the grinding wheel correction tool DT is fast-forwarded for grinding wheel correction. Pulse distribution for forward movement, forward cutting forward, and rapid backward movement is performed, and when this is completed, the grinding wheel position correction program G00XD6 programmed in subprogram block N103 is read out, and pulses for the Distribution takes place. 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 IRT shows that the Since data indicating something has been written, this is determined at step (56) of the subprogram execution routine, and the process returns to the base routine without performing any processing until the X-axis pulse distribution is completed. Return. 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, and the pulse distribution process to the When the process is completed and the data indicating that pulse distribution to the X-axis is being executed is cleared from the interlock table IRT, pulse distribution to the X-axis based on the subprogram is started, and the position of the grinding wheel G is corrected. It will be done.

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

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

以上述べたように本発明においては、互いに独
立して作動させる必要のある複数の制御軸のそれ
ぞれ毎にプログラムされた数値制御プログラムを
記憶する記憶手段を設けるとともに、複数の制御
軸のそれぞれに設けられ入力されたパルス分配指
令データに応答して互いに独立してパルス分配を
行ない、パルス分配完了を独立的に送出可能なパ
ルス発生回路を設け、主の起動指令が与えられる
と、1つの制御軸に対するパルス分配処理だけを
対応する数値制御データに従つて行ない、この数
値制御データが所定のステツプまで実行された時
点からは他の制御軸に対するパルス分配も他の数
値制御データに従つて同時に行なうようにしてい
るので、予め定められた所定の時点から互いに独
立して作動する複数の制御軸に対して同時にパル
ス分配を行なわせることができ、かかる数値制御
装置を研削盤等の工作機械に用いた場合には、工
具の戻し動作中に他の動作を行なえて加工のサイ
クルタイムを大幅に短縮できる利点がある。
As described above, in the present invention, a storage means is provided for storing a numerical control program 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 a plurality of control axes. A pulse generation circuit is provided that can perform pulse distribution independently of each other in response to pulse distribution command data inputted by the controller, and can independently send out the completion of pulse distribution, and when a main start command is given, one control axis Only the pulse distribution process for the axis is performed according to the corresponding numerical control data, and from the time this numerical control data is executed up to a predetermined step, the pulse distribution for other control axes is also performed simultaneously according to the other numerical control data. This makes it possible to simultaneously distribute pulses to a plurality of control axes that operate independently from each other from a predetermined point in time, making it possible to use such a numerical control device in machine tools such as grinders. In some cases, there is an 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……演算処理装
置、12……メモリ、13a,13b……パルス
発生回路、15……プログラム書込装置、20
a,20b……速度レジスタ、21a,21b…
…発振器、22a,22b……プリセツトカウン
タ、23a,23b……ゲート回路、DT……修
正工具、G……砥石車、W……工作物。
The drawings show an embodiment of the present invention, and FIG. 1 is a block diagram showing the overall configuration of a numerical control device together with a schematic configuration diagram of a grindstone head, and FIGS. FIG. 3 is a diagram showing a detailed circuit of the sequence control circuit 16 of FIG. 1, and FIG. 4 is an example of a grinding cycle. Cycle diagrams shown in Figures 5a, b and 6
This figure is a flowchart showing the operation of the arithmetic processing unit 11 in FIG. 1, and FIG. 7 is a time chart showing the temporal relationship between pulse distribution to each axis and processing for performing the pulse distribution. 10... Numerical control device, 11... Arithmetic processing device, 12... Memory, 13a, 13b... Pulse generation circuit, 15... Program writing device, 20
a, 20b...Speed register, 21a, 21b...
...oscillator, 22a, 22b...preset counter, 23a, 23b...gate circuit, DT...correction tool, G...grinding wheel, W...workpiece.

Claims (1)

【特許請求の範囲】[Claims] 1 複数の制御軸にパルス分配を行なうことによ
つて工作機械の動作を制御すようにした数値制御
装置において、互いに独立して作動させるべき複
数の制御軸の移動をそれぞれ定義する複数の数値
制御データを記憶する記憶手段と、前記独立して
作動させるべき複数の制御軸のそれぞれに設けら
れ入力された分配データに従つて互いに独立して
パルス分配を行ない、分配が完了すると互いに独
立に分配完了信号を送出する複数のパルス発生手
段と、第1の起動指令のみが与えられた場合には
前記複数の制御軸の内の特定の軸に対応するパル
ス発生手段から分配完了信号が送出される度にこ
れに対応する数値制御データに基づく分配データ
を分配完了信号が送出された前記パルス発生手段
にセツトし、第1の起動指令と第2の起動指令の
両方が与えられた場合には前記特定の軸とこれと
異なる他の制御軸のいずれかから分配完了信号が
送出される度に分配完了信号が送出された制御軸
に対応する数値制御データに従つた分配データを
対応するパルス分配手段にセツトする処理手段
と、前記特定の制御軸に対応する数値制御プログ
ラムが所定の位置まで実行されたことに応答して
前記第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 should be operated independently of each other. A storage means for storing data and a plurality of control axes to be operated independently perform pulse distribution independently from each other according to the input distribution data, and when the distribution is completed, the distribution is completed independently from each other. Each time a distribution completion signal is sent from a plurality of pulse generation means for sending signals, and from a pulse generation means corresponding to a specific axis among the plurality of control axes when only the first start command is given. Then, distribution data based on the corresponding numerical control data is set in the pulse generating means to which the distribution completion signal is sent, and when both the first start command and the second start command are given, the specified Each time a distribution completion signal is sent from either the axis of and timing control means for generating the second start command in response to execution of the numerical control program corresponding to the specific control axis to a predetermined position. numerical control device.
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 JPS58186561A (en) 1983-10-31
JPH0220379B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0641799Y2 (en) * 1986-09-25 1994-11-02 豊田工機株式会社 Numerical control grinder
JP2687997B2 (en) * 1987-10-23 1997-12-08 豊田工機株式会社 Whetstone repair device

Family Cites Families (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

Also Published As

Publication number Publication date
JPS58186561A (en) 1983-10-31

Similar Documents

Publication Publication Date Title
US4055787A (en) Interruptable numerical contouring control system with return to path safeguards
US4424569A (en) Method and apparatus for a numerical control device for controlling a machining device having a plurality of tools
JPH0523903B2 (en)
JPH027790B2 (en)
US4513380A (en) Method of tool recovery in threadcutting apparatus
JPH027792B2 (en)
JPH02155004A (en) Working program correcting system
KR930011227B1 (en) Numerical controller
JPH0693208B2 (en) Servo delay correction method
JPH0220379B2 (en)
JPS6232801B2 (en)
JPS6355431B2 (en)
JPS59152050A (en) Restart of profiling operation
JPH0218603A (en) Numerical controller
JPH0630011B2 (en) Numerical control Machining restart control method
JPH055123B2 (en)
JPH0641799Y2 (en) Numerical control grinder
JP2568171B2 (en) Numerical control device with numerical control data correction function
JPS6119380B2 (en)
JPS6232802B2 (en)
JP2940975B2 (en) Numerically controlled grinding machine
JPS62130412A (en) Numerical control method
JPH11242511A (en) Numeric controller for simultaneously controlling two movable bodies on comomon path
JP3009216B2 (en) Automatic grinding wheel correction device for numerically controlled grinding machines
JPS6133202B2 (en)