JPH0746287B2 - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH0746287B2
JPH0746287B2 JP62147214A JP14721487A JPH0746287B2 JP H0746287 B2 JPH0746287 B2 JP H0746287B2 JP 62147214 A JP62147214 A JP 62147214A JP 14721487 A JP14721487 A JP 14721487A JP H0746287 B2 JPH0746287 B2 JP H0746287B2
Authority
JP
Japan
Prior art keywords
command
motor
instructions
executed
parallel
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 - Fee Related
Application number
JP62147214A
Other languages
Japanese (ja)
Other versions
JPS63311408A (en
Inventor
商基 安田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP62147214A priority Critical patent/JPH0746287B2/en
Publication of JPS63311408A publication Critical patent/JPS63311408A/en
Publication of JPH0746287B2 publication Critical patent/JPH0746287B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は工作機械の数値制御装置(以下NC装置という)
に関する。
DETAILED DESCRIPTION OF THE INVENTION "Industrial application field" The present invention relates to a numerical control device for machine tools (hereinafter referred to as NC device).
Regarding

「従来の技術」 NC装置の命令には、テーブルあるいは工具を移動させる
軸移動命令(X,Y,Z命令)と、補助機能命令(M命
令)、主軸機能命令(S命令)、及び工具命令(T命
令)のMST命令とがある。たとえば、T機能命令により
自動工具交換装置(以下ATC装置という)を作動させて
所望の工具を選択交換し、S機能命令により主軸の回転
数を指令された回転数に変更する。これら、工具の交換
や主軸回転数の変更に要する作動時間は被加工物の切削
に寄与しない非切削時間である。
"Conventional technology" NC device commands include axis movement commands (X, Y, Z commands) to move a table or tool, auxiliary function commands (M commands), spindle function commands (S commands), and tool commands. There is an MST instruction of (T instruction). For example, an automatic tool changer (hereinafter referred to as an ATC device) is operated by a T function command to selectively replace a desired tool, and the S function command changes the rotational speed of the spindle to a commanded rotational speed. The operation time required for exchanging tools and changing the spindle rotational speed is the non-cutting time that does not contribute to the cutting of the workpiece.

上記非切削時間を短縮するため、機械の動作が干渉しな
い二つの命令を並行実行するようにした数値制御方式及
び数値制御装置が、それぞれ特開昭57−90705号公報及
び特開昭63−143607号公報により開示されている。
In order to reduce the non-cutting time, a numerical control system and a numerical control device that execute two instructions in parallel without interfering with the operation of a machine are disclosed in JP-A-57-90705 and JP-A-63-143607, respectively. It is disclosed by the publication.

「発明が解決しようとする問題点」 上記数値制御方式は、所定のブロックの指令によって引
起される機械の動作が完了してから次のブロックの実行
に移行するか、或いは該動作の完了を待たずに次のブロ
ックの実行に移行するかを指示する特別の指令をプログ
ラム中に入れておき、該特別の指令を判別して1ブロッ
クの単独動作或いは複数ブロックの並行動作を機械に実
行せしめるようにしたものである。この場合、二つの命
令が並行実行可能かどうかをオペレータが判別して、並
行実行を指示する特別の指令をプログラム中に挿入しな
ければならず、プログラム中に人為的なミスを生じ易い
という問題点がある。
[Problems to be Solved by the Invention] In the above numerical control method, after the operation of the machine caused by the command of a predetermined block is completed, the operation is shifted to the execution of the next block, or the completion of the operation is waited for. Instead, a special command for instructing whether to shift to the execution of the next block is put in the program, and the special command is discriminated to allow the machine to execute a single operation of one block or a parallel operation of a plurality of blocks. It is the one. In this case, the operator must determine whether two instructions can be executed in parallel, and insert a special command instructing parallel execution into the program, which is likely to cause human error in the program. There is a point.

また、上記数値制御装置は、RAM又はROMに、数値制御コ
ードのブロック(命令)の終了を待たずに次のブロック
を実行する数値制御コードのテーブルと、終了していな
いブロックがある時にそのブロックの終了を待つ数値制
御コードのテーブルを有し、実行すべきブロックが、ブ
ロックの終了を待たずに次のブロックを実行するブロッ
クに該当するときには、この実行すべきブロックと次の
ブロックとが並行して実行される。この場合、二つのブ
ロックが並行実行されるかどうかは、先の一つのブロッ
クのみを判別することにより決定される。
Further, the numerical control device has a table of numerical control codes for executing the next block in the RAM or ROM without waiting for the end of the block (instruction) of the numerical control code, and a block when there is a block which is not completed. When the block to be executed corresponds to the block that executes the next block without waiting for the end of the block, the block to be executed and the next block are parallel. And then executed. In this case, whether two blocks are executed in parallel is determined by discriminating only the preceding one block.

従って、例えば工具交換命令を、終了を待たずに次のブ
ロックを実行するテーブルに登録すると、該工具交換命
令にテーブルの位置決め命令が連続する場合は、当該二
つの命令が並行実行されてしまう。ところが、工具交換
命令にテーブルの切削送り命令が連続する場合は、本来
並行実行されるべきでない当該二つの命令が並行実行さ
れてしまう。また、工具交換命令を、終了していないブ
ロックがある時にそのブロックの終了を待つテーブルに
登録すると、工具交換命令に本来並行実行可能なテーブ
ルの位置決め命令が連続しても並行実行されない。さら
に、工具交換命令を上記テーブルの何れにも登録しない
場合は、工具交換命令とテーブルの位置決め命令が連続
しても並行実行をされないという問題点がある。
Therefore, for example, if a tool change instruction is registered in a table that executes the next block without waiting for the end, if the tool change instruction is followed by a table positioning instruction, the two instructions will be executed in parallel. However, when the cutting feed command of the table follows the tool change command, the two commands that should not be executed in parallel are executed in parallel. Further, if the tool change instruction is registered in the table that waits for the end of the block when there is an unfinished block, the tool change instruction will not be executed in parallel even if the positioning instructions of the table which can be originally executed in parallel are consecutive. Further, if the tool change command is not registered in any of the above tables, there is a problem that the tool change command and the table positioning command are not executed in parallel even if they are consecutive.

本発明は、上記各従来技術が包含する問題点を解決する
ためになされたもので、連続する特定の二つの命令につ
いて並行実行可能かどうかを確実に判別して動作させる
ことができる数値制御装置を提供することを目的とす
る。
The present invention has been made in order to solve the problems included in the above-mentioned respective prior arts, and can numerically operate by surely determining whether or not two consecutive specific instructions can be executed in parallel. The purpose is to provide.

「問題点を解決するための手段」 上記目的を達成するための本発明の数値制御装置は、加
工位置、加工条件等の入力された加工データからNC言語
による加工プログラムを生成し、その加工プログラムの
命令に従って機械の動作を順次制御する数値制御装置に
おいて、前記加工プログラム内に同時に実行してもその
動作が干渉しない特定の二つの命令が連続して存在する
かどうかを、連続する二つの命令の組み合わせに基づい
て判別する判別手段と、その判別結果に従って、その連
続した二つの命令を並行して機械に動作せしめる手段
と、を備えることを特徴とする。
"Means for Solving Problems" The numerical control device of the present invention for achieving the above-mentioned object generates a machining program in NC language from machining data in which a machining position, machining conditions, etc. are input, and the machining program is generated. In a numerical control device for sequentially controlling the operation of a machine in accordance with the command, whether or not there are two specific commands in succession that do not interfere with the operation even if they are executed simultaneously in the machining program. And a means for causing the machine to operate the two consecutive instructions in parallel according to the result of the determination.

「作用」 上記の構成によれば、内部的に生成されたNC言語による
加工プログラム内に同時に実行してもその動作が干渉し
ない特定の二つの命令が連続して存在するかどうかを、
連続する二つの命令の組み合わせに基づいて判別し、そ
の判別結果に従ってその連続した二つの命令が並行して
実行される。
[Operation] According to the above configuration, whether or not there are two specific instructions that do not interfere with the operation even if they are executed simultaneously in the internally generated machining program in NC language,
It discriminates based on the combination of two consecutive instructions, and the two consecutive instructions are executed in parallel according to the discrimination result.

「実施例」 本発明の実施例について図面に従って具体的に説明す
る。
[Examples] Examples of the present invention will be specifically described with reference to the drawings.

第2図は本発明に係るNC装置を適用したマシニングセン
タの正面図、第3図は側面図である。
FIG. 2 is a front view of a machining center to which the NC device according to the present invention is applied, and FIG. 3 is a side view.

基台21上に直立配置されたコラム22の前面には、主軸台
23が昇降可能に取付けられている。主軸台23はコラム22
上に設けられたZ軸送りモータ9により上下動される。
主軸台23には主軸25が回転自在に支持され主軸モータ10
により回転駆動される。一方、基台21上には被加工物を
載置するテーブル27が設けられている。テーブル27はサ
ドル28上に摺動自在に取付けられ、水平な面内において
左右方向のX軸方向及び前後方向のY軸方向に移動可能
である。テーブル27はX軸送りモータ7及びY軸送りモ
ータ8により水平移動される。
On the front of the column 22 that is placed upright on the base 21, the headstock
23 is mounted so that it can be raised and lowered. Headstock 23 is column 22
It is moved up and down by the Z-axis feed motor 9 provided above.
A spindle 25 is rotatably supported on a spindle headstock 23 and a spindle motor 10
Is driven to rotate. On the other hand, on the base 21, a table 27 on which a workpiece is placed is provided. The table 27 is slidably mounted on the saddle 28 and is movable in the horizontal X-axis direction and the front-back Y-axis direction in a horizontal plane. The table 27 is horizontally moved by the X-axis feed motor 7 and the Y-axis feed motor 8.

コラム22の前面には、主軸台23とは独立に、工具交換装
置30(ATC装置)が取付けられている。ATC装置30は回転
可能な工具マガジン31上に12個の工具32を放射状に把持
し、工具マガジン31の割出位置により工具32を選択し、
主軸25と工具マガジン31との間で工具32の交換を行う。
工具マガジン31は工具マガジン31裏面に配置されたATC
モータ11により回動駆動される。
A tool changing device 30 (ATC device) is attached to the front surface of the column 22 independently of the headstock 23. The ATC device 30 radially holds 12 tools 32 on a rotatable tool magazine 31, and selects the tools 32 according to the index position of the tool magazine 31,
The tool 32 is exchanged between the spindle 25 and the tool magazine 31.
The tool magazine 31 is an ATC located on the back of the tool magazine 31.
It is rotationally driven by the motor 11.

各軸の送りモータ7,8,9、主軸モータ10及びATCモータ11
は、それぞれACサーボモータが用いられ、コラム22に取
付けられたNC装置35により制御される。NC装置35は前方
に配置された操作パネル36に接続されている。操作パネ
ル36はキーボード37及びCRTディスプレイ38を備え、作
業者は対話型式で加工データをNC装置35に入力すること
ができる。
Feed motor 7,8,9 for each axis, spindle motor 10 and ATC motor 11
AC servomotors are used for each of these and are controlled by the NC device 35 attached to the column 22. The NC device 35 is connected to an operation panel 36 arranged in the front. The operation panel 36 includes a keyboard 37 and a CRT display 38, and an operator can interactively input machining data to the NC device 35.

第1図は本発明に係るNC装置35を示すブロック図であ
る。NC装置35は、運転データメモリ部1、運転データバ
ッファ部2、運転実行部3、モータ指令用バッファ部
4、及びモータ制御部5を備え、運転実行部3にはキー
ボード37、CRTディスプレイ38、その他M指令用機器等
の外部入出力機器6が接続され、モータ制御部5には各
軸の送りモータ7,8,9、主軸モータ10、及びATCモータ11
等のサーボモータが接続されている。
FIG. 1 is a block diagram showing an NC device 35 according to the present invention. The NC device 35 includes an operation data memory unit 1, an operation data buffer unit 2, an operation execution unit 3, a motor command buffer unit 4, and a motor control unit 5, and the operation execution unit 3 includes a keyboard 37, a CRT display 38, In addition, an external input / output device 6 such as an M command device is connected, and the motor control unit 5 has feed motors 7, 8, 9 for each axis, a spindle motor 10, and an ATC motor 11
, Etc. are connected to the servo motor.

運転データメモリ部1には、プログラム番号により管理
される各種加工プログラムがファイルとして格納され
る。運転データバッファ部2は、運転に必要なNC言語に
よる命令コード群が格納される部分であり、運転実行部
3からの指令に従って運転データメモリ部1の加工プロ
グラムの一部がNC言語にコンパイルされ格納される。運
転データバッファ部2の内容は、命令コードの実行終了
に応じて順次更新される。
The operation data memory unit 1 stores various machining programs managed by program numbers as files. The operation data buffer unit 2 is a part in which a command code group in NC language necessary for operation is stored, and a part of the machining program of the operation data memory unit 1 is compiled into NC language according to a command from the operation execution unit 3. Is stored. The contents of the operation data buffer unit 2 are sequentially updated according to the end of execution of the instruction code.

運転実行部3は、プロセッサユニット(CPU)を備え、
運転データバッファ部2の命令コード及び入力機器6か
らの命令に従ってM指令等を出力すると共に、モータ指
令用バッファ部4にデータを設定してモータ制御部5に
指令を与える。モータ指令用バッファ部4は送りモータ
7,8,9、主軸モータ10、及びATCモータ11の制御のための
指令データが格納される部分である。
The operation execution unit 3 includes a processor unit (CPU),
The M command and the like are output according to the command code of the operation data buffer unit 2 and the command from the input device 6, and data is set in the motor command buffer unit 4 to give a command to the motor control unit 5. The motor command buffer unit 4 is a feed motor
This is a part in which command data for controlling the 7, 8, 9, the spindle motor 10, and the ATC motor 11 is stored.

モータ制御部5は、プロセッサユニット(CPU)を備
え、モータ指令用バッファ部4に設定された指令データ
に従って各種のサーボモータ7,8,9,10,11を制御する。
The motor control unit 5 includes a processor unit (CPU) and controls various servomotors 7, 8, 9, 10, 11 according to command data set in the motor command buffer unit 4.

第4図はモータ指令用バッファ部4の内部構成を示す図
である。モータ指令用バッファ部4に設定される指令デ
ータは、X軸,Y軸及びZ軸のモータ移動量指令値44,45,
46、主軸25の正逆転、停止を指令する主軸指令データ4
7、主軸25の回転数指令値48などの他に、ATCモータ11の
回転を指令し工具マガジン31の割出位置を指令する工具
交換指令値43が含まれる。
FIG. 4 is a diagram showing an internal configuration of the motor command buffer unit 4. The command data set in the motor command buffer unit 4 includes X-axis, Y-axis, and Z-axis motor movement command values 44, 45,
46, spindle command data 4 to command forward / reverse rotation of spindle 25, stop
7. In addition to the rotation speed command value 48 of the spindle 25, a tool replacement command value 43 that commands the rotation of the ATC motor 11 and commands the index position of the tool magazine 31 is included.

これらの各指令データが運転実行部3のCPUにより設定
され、スタートフラグ41に「1」が設定されると、モー
タ制御部5はその指令データに従って各軸のモータ7,8,
9、主軸モータ10、及びATCモータ11の回転を開始するよ
うに構成されている。このとき、モータ制御部5は指令
データが設定されているモータの駆動を同時に開始す
る。たとえば、Z軸移動量指令値46のみが設定されてい
れば、Z軸モータ9が駆動され、主軸台23のみが上下動
される。また、X軸移動量指令値44、Y軸移動量指令値
45、及び工具交換指令値43が設定されていれば、X軸,Y
軸モータ7,8、及びATCモータ11が駆動され、テーブル27
の移動と工具交換が並行して実行される。そして、指令
データにより指示された動作をすべて完了するとモータ
制御部5は終了フラグ42を「1」に設定し、運転実行部
3に指示された動作の終了を知らせる。運転実行部3は
終了フラグ42を受けて実行ポインタを更新し、次に実行
すべき命令の指命データを生成してモータ指令用バッフ
ァ部4に設定更新することにより、次々に一連の命令を
モータ制御部5に実行させるようになっている。
When each of these command data is set by the CPU of the operation execution unit 3 and the start flag 41 is set to "1", the motor control unit 5 follows the command data and sets the motors 7, 8,
9, the spindle motor 10 and the ATC motor 11 are started to rotate. At this time, the motor control unit 5 simultaneously starts driving the motor for which the command data is set. For example, if only the Z-axis movement amount command value 46 is set, the Z-axis motor 9 is driven and only the headstock 23 is moved up and down. Also, X-axis movement amount command value 44, Y-axis movement amount command value
If 45 and tool change command value 43 are set, X axis, Y
The axis motors 7 and 8 and the ATC motor 11 are driven, and the table 27
And the tool change are executed in parallel. Then, when all the operations instructed by the command data are completed, the motor control unit 5 sets the end flag 42 to "1" and notifies the operation execution unit 3 of the end of the instructed operation. The operation executing unit 3 receives the end flag 42, updates the execution pointer, generates instruction data of an instruction to be executed next, and sets and updates the instruction data in the motor command buffer unit 4, thereby sequentially executing a series of instructions. The motor control unit 5 is made to execute it.

運転実行部3は、運転データバッファ部2のNC言語にコ
ンパイルされた命令コードに従ってモータ指令用バッフ
ァ4に指令データを設定する際に、通常は実行ポインタ
により指示された一つの命令コードずつ指令データを設
定する。しかし、工具交換指令(T△△)とテーブル27
の位置決め命令(G00X△△△△Y△△△△)とが連続す
る場合には、その二つの命令の指令データを同時にモー
タ指令用バッファ部4に書き込み、スタートフラグを
「1」に設定してモータ制御部5に工具交換動作とテー
ブル27の位置決めとの二つの動作を同時に開始させる。
When setting the command data in the motor command buffer 4 in accordance with the instruction code compiled into the NC language of the operation data buffer unit 2, the operation executing unit 3 normally outputs one instruction code for each instruction code designated by the execution pointer. To set. However, the tool change command (T △△) and table 27
If the positioning command (G00X △△△△ Y △△△△) continues, the command data of the two instructions are written in the motor command buffer section 4 at the same time and the start flag is set to "1". Then, the motor control unit 5 is caused to simultaneously start two operations of the tool exchange operation and the positioning of the table 27.

これは、工具交換命令(T△△)の前には必ずZ軸原点
復帰命令(G28Z)が挿入され、主軸台23が上昇端付近に
上昇した位置で工具交換が行われるから、工具交換動作
とテーブル27の移動動作とが干渉するおそれがなく、二
つの動作を並行して実行させ非切削時間を短縮しようと
するのである。
This is because the Z-axis origin return command (G28Z) is always inserted before the tool exchange command (T △△), and the tool exchange is performed at the position where the headstock 23 is raised near the ascending end. There is no risk that the movement of the table 27 interferes with the movement of the table 27, and two operations are executed in parallel to reduce the non-cutting time.

同じテーブル27の移動命令であっても、工具交換命令
(T△△)とテーブル27の切削送り命令(G01X△△△△
Y△△△△)とが連続した場合には、並行動作を行わな
い。
Even if it is a movement command of the same table 27, a tool change command (T △△) and a cutting feed command of table 27 (G01X △△△△
If Y.DELTA..DELTA..DELTA.) Continues, the parallel operation is not performed.

第5図は以上述べた制御思想を実現するための運転実行
部3における処理を示すフローチャートである。
FIG. 5 is a flow chart showing the processing in the operation execution unit 3 for realizing the above-mentioned control concept.

処理100が開始されると、まずステップ101では、運転デ
ータバッファ部2に命令コード群が格納されているか否
かを調べる。運転データバッファ部2が空であればステ
ップ102に進み、運転データメモリ部1から運転データ
バッファ部2にプログラムの一部が転送される。ステッ
プ103では、運転データバッファ部2の命令コード群の
うち、実行ポインタにより指示され今回実行が予定され
る命令コードが、工具交換命令(T△△)であるか否か
が調べられる。工具交換命令であればステップ104に進
む。ステップ104では、次の命令がテーブル27の位置決
め命令(G00X△△△△Y△△△△)であるか否かが調べ
られる。テーブル27の位置決め命令であればステップ10
5に進み、モータ指令用バッファ部4のX軸移動量指令
値44及びY軸移動量指令値45にその命令に対応した指令
値を設定する。次の命令がテーブル位置決め命令でなけ
ればステップ105を実行せず直接ステップ106に進む。ス
テップ106ではモータ指令用バッファ部4の工具交換指
令値43に、今回の工具交換命令に対応した指令値を設定
する。
When the process 100 is started, first, at step 101, it is checked whether or not an operation code buffer unit 2 stores an instruction code group. If the operation data buffer unit 2 is empty, the routine proceeds to step 102, where a part of the program is transferred from the operation data memory unit 1 to the operation data buffer unit 2. In step 103, it is checked whether the instruction code designated by the execution pointer and scheduled to be executed this time out of the instruction code group of the operation data buffer unit 2 is the tool change instruction (TΔΔ). If it is a tool change command, the process proceeds to step 104. In step 104, it is checked whether or not the next command is the positioning command of table 27 (G00XΔΔΔΔYΔΔΔΔ). If it is a positioning command for table 27, step 10
In step 5, the X-axis movement amount command value 44 and the Y-axis movement amount command value 45 of the motor command buffer unit 4 are set to the command values corresponding to the command. If the next command is not a table positioning command, step 105 is not executed and the process proceeds directly to step 106. In step 106, the command value corresponding to the current tool replacement command is set in the tool replacement command value 43 of the motor command buffer unit 4.

一方、ステップ103において、今回の命令コードが工具
交換命令でなければステップ107に進む。ステップ107で
は今回の命令コードが主軸命令(M03S1000など)である
か否かが調べられ、主軸命令であればステップ108に進
みモータ指令用バッファ部4の主軸指令47、又は主軸回
転数指令値48に対応した指令値を設定する。
On the other hand, in step 103, if the instruction code this time is not the tool change instruction, the process proceeds to step 107. In step 107, it is checked whether or not the command code this time is a spindle command (M03S1000, etc.), and if it is a spindle command, the process proceeds to step 108 and the spindle command 47 of the motor command buffer unit 4 or the spindle speed command value 48. Set the command value corresponding to.

このようにして、ステップ103乃至108の処理200によ
り、命令コードに対応した指令データがモータ指令用バ
ッファ部4に設定される。このとき、工具交換命令とテ
ーブル27の位置決め命令が連続するときは、両者の指令
データがモータ指令用バッファ部4に同時に設定される
ことになる。
In this way, the command data corresponding to the command code is set in the motor command buffer unit 4 by the processing 200 of steps 103 to 108. At this time, when the tool exchange command and the positioning command of the table 27 are continuous, both command data are set in the motor command buffer unit 4 at the same time.

次に、ステップ110では、命令コードがクーラントのオ
ン/オフ等の補助的な外部入出力命令か否かが調べられ
る。これらの命令ではモータ指令用バッファ部4には指
令データが設定されず、ステップ110からステップ111に
進み、運転実行部3から直接信号を出力して外部入出力
機器6を作動させ、ステップ112で動作の完了を待って
ステップ115に進む。一方、命令が外部入出力命令でな
ければ、ステップ110からステップ113に進む。
Next, at step 110, it is checked whether or not the instruction code is a supplementary external input / output instruction such as coolant on / off. No command data is set in the motor command buffer unit 4 with these commands, and the process proceeds from step 110 to step 111, in which a signal is directly output from the operation executing unit 3 to operate the external input / output device 6, and in step 112. Wait for the operation to complete and proceed to step 115. On the other hand, if the instruction is not the external input / output instruction, the process proceeds from step 110 to step 113.

ステップ113では、モータ指令用バッファ部4のスター
トフラグ41に「1」を設定し、ステップ103乃至108の処
理200で設定した指令データに従って各モータ7〜11の
駆動を開始する。ステップ114ではモータ制御部5での
動作が終了し、モータ指令用バッファ部4の終了フラグ
42が「1」になるのを待つ。終了フラグ42が「1」にな
ったならばステップ115に進み、実行ポインタを更新し
て次に実行すべき命令を指定する。そして、ステップ10
1に戻り、上述の処理を繰り返す。
In step 113, the start flag 41 of the motor command buffer unit 4 is set to "1", and the driving of the motors 7 to 11 is started according to the command data set in the process 200 of steps 103 to 108. In step 114, the operation of the motor control unit 5 is completed, and the end flag of the motor command buffer unit 4 is completed.
Wait until 42 becomes "1". If the end flag 42 becomes "1", the flow advances to step 115 to update the execution pointer to specify the next instruction to be executed. And step 10
Return to 1 and repeat the above processing.

以上述べた実施例では、工具交換命令とテーブル27の位
置決め命令との二つが連続して存在した場合に、その二
つの命令を並行して実行させることとした。これは、第
2図及び第3図に示す機械の構造から、ATC装置30の工
具交換動作とテーブル27の移動動作が互いに干渉するこ
とがないことを利用している。また、第5図に示すフロ
ーチャートでは、工具交換命令の後にテーブル位置決め
命令がきた場合のみを判別し、その逆の場合は判別して
いない。これは、本実施例機械では工具交換命令の前に
は必ずZ軸原点復帰命令(G28Z)が挿入されるため、工
具交換命令(T△△)の直前に位置決め命令(G00X△△
△△Y△△△△)が存在することがあり得ないので省略
したのである。しかし、適用する工作機械の構造、特に
ATC装置30の構造によっては、命令の順序に関係なく、
上記二つの命令が連続したときに並行動作を行わせるこ
とが望ましく、また、容易に可能である。
In the embodiment described above, when the tool change command and the positioning command of the table 27 exist in succession, the two commands are executed in parallel. This utilizes the fact that the tool changing operation of the ATC device 30 and the moving operation of the table 27 do not interfere with each other due to the structure of the machine shown in FIGS. 2 and 3. Further, in the flow chart shown in FIG. 5, only when the table positioning command comes after the tool change command, it is determined, and in the opposite case, it is not determined. This is because the Z axis origin return command (G28Z) is always inserted before the tool change command in the machine of this embodiment, so the positioning command (G00XΔΔ) is immediately before the tool change command (TΔΔ).
Since ΔΔYΔΔΔΔ) cannot exist, it is omitted. However, the structure of the applied machine tool, especially
Depending on the structure of the ATC device 30, regardless of the order of instructions,
It is desirable and easy to perform a parallel operation when the above two instructions are consecutive.

また、前記実施例では、特定の二つの命令が連続した場
合には必ず並行動作を行わせることとしたが、操作パネ
ル36から設定されるパラメータに応じ、並行動作と逐次
動作を作業者が選択できるようにすることも可能であ
る。
Further, in the above embodiment, the parallel operation is always performed when the two specific instructions are consecutive, but the operator selects the parallel operation or the sequential operation according to the parameter set from the operation panel 36. It is also possible to enable it.

前記実施例では、同時に実行してもその動作が干渉しな
い特定の二つの命令として、工具交換命令と、X軸又は
Y軸の位置決め命令とを用いたが、本発明はこれに限定
されるものではない。たとえば、主軸の回転命令(M△
△S△△)とX軸又はY軸の位置決め命令(G00X△△△
△Y△△△△)、若しくはZ軸の位置決め命令(G00Z△
△△△)とを並行動作させることも、第1図に示すNC装
置においては同様の処理を行うことにより容易に実現可
能である。主軸の回転数の変更には、立上り時間として
0.1〜0.2秒程度の時間を要し、この間にテーブル27等の
移動を行うことにより、非切削時間を短縮することがで
きる。0.2秒程度の並行動作では僅かなようであるが、
穴明、タップ加工等を多用する被加工物では、主軸の回
転数変更の頻度が高く、かなりの加工時間の削減が期待
できる。
In the above-described embodiment, the tool change command and the X-axis or Y-axis positioning command are used as the two specific commands that do not interfere with each other even if they are executed at the same time, but the present invention is not limited to this. is not. For example, the spindle rotation command (MΔ
△ S △△) and X-axis or Y-axis positioning command (G00X △△△
△ Y △△△△) or Z axis positioning command (G00Z △
The parallel operation of ΔΔΔ) can be easily realized by performing the same processing in the NC device shown in FIG. To change the rotation speed of the spindle,
It takes about 0.1 to 0.2 seconds, and the non-cutting time can be shortened by moving the table 27 or the like during this time. It seems to be a little in parallel operation for about 0.2 seconds,
In the case of a work piece that frequently uses drilling, tapping, etc., the rotation speed of the spindle is frequently changed, and a considerable reduction in processing time can be expected.

「発明の効果」 以上述べたように本発明は上記の構成を有し、加工プロ
グラム内に同時に実行してもその動作が干渉しない特定
の二つの命令が連続して存在するかどうかを、連続する
二つの命令の組み合わせに基づいて判別し、その判別結
果に従ってその連続した二つの命令が並行して実行され
るものであるから、本来並行実行されるべきでない命令
が並行実行されてしまったり、並行実行されるべき命令
が並行実行されないという不具合を確実に阻止できると
いう優れた効果がある。
"Effects of the Invention" As described above, the present invention has the above-described configuration, and determines whether or not two specific instructions, whose operations do not interfere even if they are executed simultaneously in a machining program, continuously exist. It is determined based on the combination of two instructions, and the two consecutive instructions are executed in parallel according to the result of the determination, so an instruction that should not be executed in parallel may be executed in parallel, There is an excellent effect that it is possible to surely prevent a problem that an instruction to be executed in parallel is not executed in parallel.

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

図面は本発明の一実施例を示し、第1図は数値制御装置
のブロック図、第2図は本発明装置を適用した工作機械
の正面図、第3図は側面図、第4図はモータ指令用バッ
ファ部の構成を示す図、第5図は運転実行部での処理を
示すフローチャートである。 2…運転データバッファ部、3…運転実行部、4…モー
タ指令用バッファ部、5…モータ制御部、7…X軸送り
モータ、8…Y軸送りモータ、9…Z軸送りモータ、10
…主軸モータ、11…ATCモータ、23…主軸台、25…主
軸、27…テーブル、30…ATC装置、31…工具マガジン。
The drawings show one embodiment of the present invention. Fig. 1 is a block diagram of a numerical control device, Fig. 2 is a front view of a machine tool to which the present invention device is applied, Fig. 3 is a side view, and Fig. 4 is a motor. FIG. 5 is a diagram showing the configuration of the command buffer unit, and FIG. 5 is a flowchart showing the processing in the operation executing unit. 2 ... Operation data buffer section, 3 ... Operation execution section, 4 ... Motor command buffer section, 5 ... Motor control section, 7 ... X-axis feed motor, 8 ... Y-axis feed motor, 9 ... Z-axis feed motor, 10
… Spindle motor, 11… ATC motor, 23… Spindle base, 25… Spindle, 27… Table, 30… ATC device, 31… Tool magazine.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】加工位置、加工条件等の入力された加工デ
ータからNC言語による加工プログラムを生成し、その加
工プログラムの命令に従って機械の動作を順次制御する
数値制御装置において、 前記加工プログラム内に同時に実行してもその動作が干
渉しない特定の二つの命令が連続して存在するかどうか
を、連続する二つの命令の組み合わせに基づいて判別す
る判別手段と、 その判別結果に従って、その連続した二つの命令を並行
して機械に動作せしめる手段と、 を備えることを特徴とする数値制御装置。
1. A numerical control device for generating a machining program in NC language from machining data inputted such as machining position and machining condition, and sequentially controlling the operation of a machine in accordance with the instructions of the machining program, wherein the machining program includes: A discriminating means for discriminating whether or not there are two specific instructions that do not interfere with each other even if they are executed at the same time, based on the combination of two consecutive instructions, and the consecutive two instructions according to the discrimination result. A numerical control device comprising: means for operating a machine to execute one command in parallel.
【請求項2】前記特定の二つの命令は、工具交換命令
と、工具交換動作に干渉しない軸の移動命令とであるこ
とを特徴とする特許請求の範囲第1項記載の数値制御装
置。
2. The numerical controller according to claim 1, wherein the two specific instructions are a tool change instruction and an axis movement instruction that does not interfere with the tool change operation.
【請求項3】前記特定の二つの命令は、主軸の回転命令
と、軸の移動命令とであることを特徴とする特許請求の
範囲第1項記載の数値制御装置。
3. The numerical controller according to claim 1, wherein the two specific commands are a spindle rotation command and a shaft movement command.
JP62147214A 1987-06-12 1987-06-12 Numerical control device Expired - Fee Related JPH0746287B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62147214A JPH0746287B2 (en) 1987-06-12 1987-06-12 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62147214A JPH0746287B2 (en) 1987-06-12 1987-06-12 Numerical control device

Publications (2)

Publication Number Publication Date
JPS63311408A JPS63311408A (en) 1988-12-20
JPH0746287B2 true JPH0746287B2 (en) 1995-05-17

Family

ID=15425150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62147214A Expired - Fee Related JPH0746287B2 (en) 1987-06-12 1987-06-12 Numerical control device

Country Status (1)

Country Link
JP (1) JPH0746287B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2636044B2 (en) * 1989-05-24 1997-07-30 オ−クマ株式会社 Numerical control method and apparatus
US5097587A (en) * 1989-09-04 1992-03-24 Brother Kogyo Kabushiki Kaisha Numerically controlled machine tool with automatic tool exchange device and indexing device
US5144740A (en) * 1989-09-04 1992-09-08 Brother Kogyo Kabushiki Kaisha Numerically controlled machine tool with automatic tool exchange device and indexing device
JP3959415B2 (en) * 2004-08-09 2007-08-15 ファナック株式会社 Servo tool separation / coupling method and robot controller
JP5210070B2 (en) * 2008-07-25 2013-06-12 オークマ株式会社 Numerically controlled machine tool
JP5555422B2 (en) * 2008-12-26 2014-07-23 株式会社アマダ Numerical control apparatus and numerical control method
CN104115079B (en) * 2012-02-06 2015-12-23 三菱电机株式会社 Numerical control device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61249109A (en) * 1985-04-26 1986-11-06 Okuma Mach Works Ltd Interactive program generating system for numerical control device
JPS6266306U (en) * 1985-10-12 1987-04-24
JPS63143607A (en) * 1986-12-08 1988-06-15 Matsushita Electric Ind Co Ltd Numerical controller

Also Published As

Publication number Publication date
JPS63311408A (en) 1988-12-20

Similar Documents

Publication Publication Date Title
US5127140A (en) Numerically-controlled lathe, numerically-controlled device therefor and processing procedure thereby
EP0002750A1 (en) Computerized numerical controller for a machine tool
EP1195665B1 (en) Apparatus and method for setting control parameters of machining apparatus
EP0104503B1 (en) Numerical control processing system and machine tool including the system
KR850000328B1 (en) Numerical control method
JPH046001B2 (en)
US5315503A (en) Numerical control apparatus having a teaching function and a method of teaching a machining program thereby
EP0415445B1 (en) Sequence control apparatus having separate sequence memory and interlock condition memory
EP0230471B1 (en) Manual operation system for machine controlled by numerical control unit
JP4059411B2 (en) NC machine tool controller
JPH0746287B2 (en) Numerical control device
JP4216808B2 (en) Numerical controller
JP3199319B2 (en) Multi-axis / multi-path numerical control method
GB2083247A (en) A programmable machine
EP0107794A1 (en) Numerical control system
GB2117929A (en) A numerical controller
JP3893334B2 (en) Multi-system numerical controller
US20060052900A1 (en) Numerical control apparatus
JPS61173842A (en) Numerical control device
JP2002273601A (en) Multispindle machine tool
EP0331754A1 (en) Cnc program execution apparatus
JPH06126474A (en) Controller in laser beam composite machine
KR910009240B1 (en) Numerical controller
JPS6147652B2 (en)
JPH0563749U (en) Numerical control device with processing time calculation function

Legal Events

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