Nothing Special   »   [go: up one dir, main page]

JPH06282318A - Mumerically controlled machine tool - Google Patents

Mumerically controlled machine tool

Info

Publication number
JPH06282318A
JPH06282318A JP6662693A JP6662693A JPH06282318A JP H06282318 A JPH06282318 A JP H06282318A JP 6662693 A JP6662693 A JP 6662693A JP 6662693 A JP6662693 A JP 6662693A JP H06282318 A JPH06282318 A JP H06282318A
Authority
JP
Japan
Prior art keywords
command
auxiliary
executed
completion
test mode
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
JP6662693A
Other languages
Japanese (ja)
Other versions
JP2973770B2 (en
Inventor
Tomomitsu Niwa
友光 丹羽
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to JP5066626A priority Critical patent/JP2973770B2/en
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to EP96119191A priority patent/EP0766153A1/en
Priority to DE69330144T priority patent/DE69330144T2/en
Priority to DE69317540T priority patent/DE69317540T2/en
Priority to EP97103235A priority patent/EP0782056B1/en
Priority to EP96119192A priority patent/EP0766154B1/en
Priority to EP93121024A priority patent/EP0606649B1/en
Priority to DE69328266T priority patent/DE69328266T2/en
Publication of JPH06282318A publication Critical patent/JPH06282318A/en
Priority to US08/429,783 priority patent/US6202003B1/en
Priority to US08/625,076 priority patent/US5793635A/en
Priority to US08/668,718 priority patent/US6397111B1/en
Priority to HK98109240A priority patent/HK1008445A1/en
Application granted granted Critical
Publication of JP2973770B2 publication Critical patent/JP2973770B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To quickly execute the processing of an M command by instantaneously shifting the processing of the M command to the execution of the succeeding command when the waiting of the completion of the M command is unnecessary. CONSTITUTION:When an M command is generated, whether the M command is in execution or not is judged (step 1201). When the M command is being executed, the output of the M command is allowed to incompletely end (step 1209). When the M command is not being executed, the specified M command is stored (step 1202) and outputted (step 1203) and then whether the waiting of the completion of the M command is unnecessary or not is checked (step 1205). When the waiting of M command completion is necessary, the execution of the succeeding instruction is not allowed (step 1206). In this case, the succeeding instruction is executed after the completion of the M command. When the waiting of the M command completion is unnecessary, the execution of the succeeding instruction is allowed (step 1207). In this case, the succeeding instruction is executed without waiting the completion of the M command. Consequently the M command processing can quickly be executed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、補助指令処理を迅速
に行うとともに、加工プログラムのチェックを容易にし
た数値制御工作機械に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerically controlled machine tool that facilitates auxiliary command processing and facilitates checking of machining programs.

【0002】[0002]

【従来の技術】近年計算機内蔵の数値制御装置(以後、
CNCと記す)を用いた工作機械(以後、数値制御工作
機械と記す)が普及し、加工分野における自動化、省力
化が推進されている。数値制御工作機械は、CNC、強
電シーケンス回路及び工作機械から構成されている。強
電シーケンス回路は、CNCと工作機械との間にあっ
て、種々の補助的な仕事を行うもので、機械の規模にも
よるが従来は通常200個から300個のリレー回路に
よってつくられていた。数値制御装置(以後、NCと記
す)が配線ロジックNCからCNCに移ったように、強
電シーケンス回路もリレー回路からマイクロプロセッサ
を用いたプログラマブルコントローラ(以後、PCと記
す)が主流になってきた。
2. Description of the Related Art In recent years, a numerical control device with a built-in computer (hereinafter,
Machine tools using CNC (hereinafter referred to as numerically controlled machine tools) have become widespread, and automation and labor saving in the machining field have been promoted. The numerically controlled machine tool is composed of a CNC, a high voltage sequence circuit and a machine tool. The heavy-duty sequence circuit is located between the CNC and the machine tool and performs various auxiliary tasks. Conventionally, the heavy-duty sequence circuit is normally made up of 200 to 300 relay circuits, depending on the scale of the machine. Just as a numerical control device (hereinafter referred to as NC) has moved from the wiring logic NC to the CNC, a programmable controller using a microprocessor (hereinafter referred to as PC) has become the mainstream from the relay circuit to the high voltage sequence circuit.

【0003】PCには汎用PCとCNC専用の内蔵型P
Cがある。数百本の工具やオートローダを有し、複雑な
シーケンスと入出力信号を必要とする工作機械では汎用
PCが用いられるが、大部分の工作機械では内蔵型PC
で十分である。旋盤や小型マシニングセンタ用の内蔵型
PCでは、特にPCのために独立したマイクロプロセッ
サを準備せず、CNC用のマイクロプロセッサの余力を
利用してPC機能を発揮せしめることができる。この場
合、PCのための部品点数は極めて少なくて済み、信頼
性、コストともに優れたものが実現できる。
The PC includes a general-purpose PC and a built-in P dedicated to the CNC.
There is C. A general-purpose PC is used in machine tools that have hundreds of tools and autoloaders and require complicated sequences and input / output signals, but most machine tools have built-in PCs.
Is enough. In a built-in PC for a lathe or a small machining center, an independent microprocessor for the PC is not prepared, and the PC function can be exerted by utilizing the spare capacity of the CNC microprocessor. In this case, the number of parts for the PC is extremely small, and it is possible to realize the one excellent in reliability and cost.

【0004】CNC内蔵のPCは、CNC内に内蔵され
るため、機械側にPCを設置するスペースを取らなくて
済むというメリットも有する。内蔵型PCとCNCとの
間のデータの授受は特別なドライバ/レシーバを必要と
せず、共通バス(あるいはそれ相当)で済むため、PC
に必要な入出力点数は汎用PCを使用する場合に比べて
約半分となる。
Since a PC with a built-in CNC is built in the CNC, there is also an advantage that a space for installing the PC on the machine side is not required. Data transfer between the built-in PC and the CNC does not require a special driver / receiver and can be done with a common bus (or equivalent).
The number of input / output points required for is about half that in the case of using a general-purpose PC.

【0005】PCに関するタイマ、カウンタなどの各種
設定とか、状態表示やアラームメッセージの表示など
は、CNCの操作盤を利用して行うことができ、他に別
の操作盤を必要としない。図15は、内蔵型PC付きの
CNCを使用したCNC工作機械の概要構成図であり、
図において、10はCNC部、20は工作機械部であ
る。CNC部10は、NC部1、PC部2、入出力回路
3から構成されており、NC部1はオペレータとCNC
工作機械とのマンマシンインターフェースで制御するマ
ンマシン制御部4、M指令,S指令,T指令等の補助指
令を制御する補助指令制御部5、サーボ軸の制御を行う
軸移動制御部6から構成される。
Various settings such as timers and counters for the PC, status display and alarm message display can be performed using the CNC operation panel, and no other operation panel is required. FIG. 15 is a schematic configuration diagram of a CNC machine tool using a CNC with a built-in PC,
In the figure, 10 is a CNC section, and 20 is a machine tool section. The CNC unit 10 is composed of an NC unit 1, a PC unit 2, and an input / output circuit 3. The NC unit 1 includes an operator and a CNC.
It is composed of a man-machine control unit 4 which controls by a man-machine interface with a machine tool, an auxiliary command control unit 5 which controls auxiliary commands such as M command, S command and T command, and an axis movement control unit 6 which controls servo axes. To be done.

【0006】PC部2は、シーケンスプログラムを格納
する部分で、図示しないがコンピュータと同様な構造を
もったシーケンス制御装置であり、CPUと、主として
ROM,RAMの半導体メモリからなるプログラム記憶
装置等で構成されている。入出力回路3は機械側とのイ
ンターフェース部分で、ドライバやレシーバで構成され
ており、工作機械部20の機械操作盤12や強電回路1
3、スピンドルアンプ15等に接続される。
The PC section 2 is a section for storing a sequence program, and is a sequence control device having a structure similar to that of a computer (not shown), and includes a CPU and a program storage device mainly composed of a semiconductor memory such as ROM and RAM. It is configured. The input / output circuit 3 is an interface portion with the machine side, and is composed of a driver and a receiver, and is provided with the machine operation panel 12 of the machine tool section 20 and the high voltage circuit 1.
3, connected to the spindle amplifier 15 and the like.

【0007】工作機械部20には、オペレータとCNC
工作機械のマンマシンインターフェースの中心となるN
C操作盤11があり、通常CRT装置やテンキー等で構
成され、NC部1のデータをCRT装置上に表示させた
り、テンキーよりデータを入力させたりする。
The machine tool section 20 includes an operator and a CNC.
N, which is the center of the man-machine interface of machine tools
There is a C operation panel 11, which is usually composed of a CRT device, a numeric keypad, etc., and is used to display the data of the NC unit 1 on the CRT device or to input the data from the numeric keypad.

【0008】その他、機械操作盤12は主に工作機械を
オペレータがマニュアル操作するためのもの、強電回路
13は機械各部14のアクチュータ等を制御するもの、
スピンドルアンプ15はスピンドルモータ16を制御す
るもの、速度制御ユニット17は18の送りモータを制
御するものである。
In addition, the machine operation panel 12 is mainly for the operator to manually operate the machine tool, and the high-power circuit 13 is for controlling the actuators of the machine parts 14.
The spindle amplifier 15 controls the spindle motor 16, and the speed control unit 17 controls the 18 feed motors.

【0009】工作機械の本来の仕事は切削や研削などの
加工であるが、この加工を行うための補助的な仕事が多
くある。例えば、加工物の着脱、主軸モータの起動/停
止、切削油のオン/オフ、工具の選択などである。これ
らの補助的な仕事はNC部1から送られてくる補助機能
信号(M指令)、工具選択信号(T指令)などを受けて
PC部2により処理される。
The original work of the machine tool is machining such as cutting and grinding, but there are many auxiliary jobs for performing this machining. For example, attachment / detachment of a workpiece, start / stop of a spindle motor, turning on / off of cutting oil, selection of a tool, and the like. These auxiliary jobs are processed by the PC unit 2 in response to the auxiliary function signal (M command), tool selection signal (T command), etc. sent from the NC unit 1.

【0010】図16は従来の補助機能信号のインターフ
ェースの説明図である。NC部1からBCD2桁のMコ
ード信号(M11〜M28)とコード読取り用信号(以
後、MFと記す)がPC部2に送られ、この送られたコ
ード信号はPC部2によって解読され、必要なアクチュ
ータが、決められたシーケンスで駆動され、指令された
動作が行われる。
FIG. 16 is an explanatory diagram of a conventional auxiliary function signal interface. The NC unit 1 sends a 2-digit BCD M code signal (M11 to M28) and a code reading signal (hereinafter referred to as MF) to the PC unit 2, and the sent code signal is decoded by the PC unit 2 and required. The actuator is driven in a predetermined sequence and the commanded operation is performed.

【0011】動作が完了すると完了信号(以後、FIN
と記す)がNC部1に送られる。NC部1はこれによっ
てMFをオフにする。引きつづいてFINをオフ、Mコ
ード信号をオフという順序を経て、次のブロックの指令
に進む。この動作のタイームチャートが図17に示され
る。
When the operation is completed, a completion signal (hereinafter referred to as FIN
Will be sent to the NC unit 1. This causes the NC unit 1 to turn off the MF. Then, the FIN is turned off and the M code signal is turned off, and the next block is commanded. A time chart of this operation is shown in FIG.

【0012】図18は、加工プログラムの作成から加工
物の検査までの流れを示す図である。加工図面100を
見ながら、プログラマ101はNCの加工プログラムを
作成する(ステップ102)。加工プログラムは通常の
EIAフォーマットや近年多用されるようになって来た
CNCに搭載されている自動プログラム、あるいはオフ
ラインのCAM等で作成される。103はこうして作成
されたNC加工プログラムである。
FIG. 18 is a diagram showing a flow from creation of a machining program to inspection of a workpiece. The programmer 101 creates an NC machining program while looking at the machining drawing 100 (step 102). The processing program is created by a normal EIA format, an automatic program mounted on a CNC which has been widely used in recent years, or an off-line CAM. Reference numeral 103 is an NC machining program created in this way.

【0013】加工プログラム103の作成が完了した
ら、加工プログラム103のチェックを行う(ステップ
104)。これは、近年のCNCにはグラフィック表示
等が可能なものが多いので、加工パスの軌跡を画面上に
表示させるなどして行うことが可能である。加工プログ
ラム103が正しいと思われたら、実際に空切削で工作
機械を動かし、工作機械の動作を確認しながら加工プロ
グラム103のチェックを行う(ステップ105)。正
しく切削できると思われたら、実際にワークを取付け試
し加工を行う(ステップ106)。正しく切削できた場
合には、本格的な切削加工に入り(ステップ107)、
必要に応じて加工物を検査する(ステップ108)。ス
テップ104〜108の各段階において、加工プログラ
ムの不具合が発見された場合、加工プログラム103を
修正し(ステップ109)、ステップ104〜108の
必要な段階から再チェックする。
When the creation of the machining program 103 is completed, the machining program 103 is checked (step 104). This can be done by displaying the path of the machining path on the screen, etc., because many recent CNCs can display graphics. If the machining program 103 is considered to be correct, the machine tool is actually moved by blank cutting and the machining program 103 is checked while confirming the operation of the machine tool (step 105). If it seems that the cutting can be performed correctly, the work is actually attached and trial machining is performed (step 106). If it can be cut correctly, full-scale cutting is started (step 107),
The workpiece is inspected if necessary (step 108). When a defect of the machining program is found in each step of steps 104 to 108, the machining program 103 is corrected (step 109), and rechecking is performed from the necessary step of steps 104 to 108.

【0014】[0014]

【発明が解決しようとする課題】従来の数値制御工作機
械は以上のように構成されているので、わざわざ完了を
待つ必要もないような補助指令に関しても、各補助指令
の完了を待って次のステップに進んでいたので、加工時
間に無駄を生じるという第1の問題があった。
Since the conventional numerically controlled machine tool is constructed as described above, even for an auxiliary command that does not need to wait for completion, the next numerical command is waited for after completion of each auxiliary command. There was a first problem that the processing time wasted because it proceeded to the step.

【0015】この問題を解決するため、特開昭62−1
89506号公報に示されるように、M指令の完了を待
つ必要のないM指令については、FINを待たずに次の
ブロックの処理を行う方法が示されているが、単にM指
令のFINを待たずに次のブロックの処理を行った場
合、次のようなケースで不具合を生じ、正しくM指令の
実行が行えなくなる。
To solve this problem, JP-A-62-1
As disclosed in Japanese Patent Publication No. 89506, for the M command that does not need to wait for the completion of the M command, a method of processing the next block without waiting for the FIN is shown, but simply waiting for the FIN of the M command. If the next block is processed without doing so, a problem occurs in the following case, and the M command cannot be correctly executed.

【0016】すなわち、第1のM指令のFINを待たず
に次のブロックを実行させ、次のブロックで第2のM指
令が存在した場合、そのまま第2のM指令をPCに出力
すれば、PCは第1のM指令を実行中であるから、第2
のM指令は無視されるとか、または第1のM指令を中断
して第2のM指令を実行してしまうといったPC内部に
おいて不具合を生じる原因となる。前記の先行技術では
特にPCとのインターフェースを変更するようなことは
記述されておらず、PCとのインターフェースは従来の
ままであるとすれば、PCがM指令を処理中に次のM指
令を出力することは許されない。
That is, if the next block is executed without waiting for the FIN of the first M command and the second M command is present in the next block, if the second M command is output as it is to the PC, Since the PC is executing the first M command, the second
The M command is ignored, or a problem occurs in the PC such that the first M command is interrupted and the second M command is executed. In the above-mentioned prior art, it is not particularly described that the interface with the PC is changed, and if the interface with the PC remains the same as before, the next M command is processed while the PC is processing the M command. It is not allowed to output.

【0017】また、工作機械を動作させながら加工プロ
グラムのチェックを行う空切削時等に、補助指令を全て
実行させるか、補助指令ロック機能により補助指令を全
て実行させないかの二通りしか選択できなかったため、
チェックが不十分になるという第2の問題があった。
In addition, when the machining program is checked while operating the machine tool, it is possible to select only two options, that is, all the auxiliary commands are executed at the time of idle cutting or the auxiliary commands are not executed by the auxiliary command lock function. Because
There was the second problem of insufficient checks.

【0018】また、実際に機械を動かしながら加工プロ
グラムをチェックする場合、機械が干渉しそうな部分で
機械を少しずつ動かしてチェックさせるのに好適な機能
が無いという第3の問題があった。
Further, when the machining program is checked while actually moving the machine, there is a third problem that there is no function suitable for checking the machine by moving the machine little by little in a portion where the machine is likely to interfere.

【0019】第1の発明は、前記第1の問題を解決する
ためになされたものであり、補助指令の完了を待つ必要
の無い補助指令に関して補助指令の完了を待たずに次の
ステップを実行する数値制御工作機械を得ることを目的
とする。
The first invention is made to solve the above-mentioned first problem, and executes the following steps without waiting for the completion of the auxiliary command for the auxiliary command which does not need to wait for the completion of the auxiliary command. The purpose is to obtain a numerically controlled machine tool.

【0020】第2の発明は、前記第2の問題を解決する
ためになされたものであり、特定の補助指令のみ、指定
されても実行しないようにすることで加工プログラムの
チェックを容易に行える数値制御工作機械を得ることを
目的とする。
The second invention is made to solve the second problem, and the machining program can be easily checked by not executing only a specific auxiliary command even if specified. The purpose is to obtain a numerically controlled machine tool.

【0021】第3の発明は、前記第2の問題を解決する
ためになされたものであり、特定の補助指令のみ補助指
令ロック中でも実行するようにすることで加工プログラ
ムのチェックを容易に行える数値制御工作機械を得るこ
とを目的とする。
A third aspect of the present invention has been made to solve the second problem, and a numerical value that allows a machining program to be easily checked by executing only a specific auxiliary command even while the auxiliary command is locked. The purpose is to obtain a controlled machine tool.

【0022】第4の発明は、前記第3の問題を解消する
ためになされたものであり、加工プログラムによって指
定された工具経路上を移動距離が指定される度に指定距
離分だけ移動して停止することの可能な数値制御工作機
械を得ることを目的とする。
A fourth aspect of the present invention has been made to solve the above-mentioned third problem. The fourth aspect of the present invention is to move the tool path designated by the machining program by the designated distance each time the movement distance is designated. The object is to obtain a numerically controlled machine tool that can be stopped.

【0023】[0023]

【課題を解決するための手段】第1の発明は、複数の指
令ブロツクで構成される加工プログラムに基づいて、加
工を行うための補助的な作業をプログラマブルコントロ
ーラ部を介して行なう数値制御工作機械において、前記
補助的な作業を指令する補助指令で前記補助指令の完了
を待たずに次の指令ブロツクを実行させても差し支えの
ない完了待不要補助指令を区別指定する完了待不要補助
指令指定手段と、前記補助指令の実行時に実行する前記
補助指令を書き込み、前記補助指令の完了時に前記補助
指令を消去する実行補助指令登録手段と、前記実行補助
指令登録手段が登録した結果を記憶する実行補助指令記
憶手段と、実行中の第1の指令ブロツクに対して第2の
指令ブロツクが補助指令を含んでいる場合に前記実行補
助指令記憶手段を確認することにより、前記第1の指令
ブロツクに於て補助指令を実行中であるか否かを判定
し、補助指令を実行中であれば前記第2の指令ブロツク
の補助指令の実行を待機させる補助指令実行可否判定手
段と、前記第2の指令ブロツクの補助指令の実行時に、
前記補助指令が完了待不要補助指令前記補助指令の完了
を待たずに第3の指令ブロツクを実行させ、前記補助指
令が完了待が必要な補助指令の場合には前記補助指令の
完了を待って第3の指令ブロツクを実行させる次指令ブ
ロツク実行可否判定手段とを備えたものである。
A first aspect of the present invention is a numerically controlled machine tool for performing auxiliary work for machining through a programmable controller section based on a machining program composed of a plurality of command blocks. In the above, in the auxiliary command for instructing the auxiliary work, there is no problem even if the next command block is executed without waiting for the completion of the auxiliary command. And an execution assistance command registration unit that writes the assistance command to be executed when the assistance command is executed, and erases the assistance command when the assistance command is completed, and an execution assistance that stores the result registered by the execution assistance command registration unit. The command storage means and the execution auxiliary command storage means when the second command block contains an auxiliary command for the first command block being executed. By recognizing it, it is determined whether or not the auxiliary command is being executed in the first command block, and if the auxiliary command is being executed, execution of the auxiliary command in the second command block is waited. Auxiliary command executability determining means, and when executing the auxiliary command of the second command block,
Auxiliary command is not required to wait for completion Auxiliary command The third command block is executed without waiting for completion of the auxiliary command, and if the auxiliary command is an auxiliary command requiring completion, wait for completion of the auxiliary command. And a next command block executability determining means for executing the third command block.

【0024】第2の発明は、加工プログラムをテストす
るテストモードを有する数値制御工作機械において、前
記テストモード時には実行しない補助指令を指定するテ
ストモード時ロック指定手段と、前記テストモード時ロ
ック指定手段で指定された前記補助指令を記憶するテス
トロック記憶手段と、前記テストモード時に前記テスト
ロック記憶手段を確認し、前記加工プログラムで指定さ
れた補助指令の実行の可否を判定するテストロック判定
手段とを備えたものである。
A second aspect of the present invention is, in a numerically controlled machine tool having a test mode for testing a machining program, a test mode lock designating means for designating an auxiliary command which is not executed in the test mode, and the test mode lock designating means. And a test lock storage means for storing the auxiliary command designated by the above, and a test lock determination means for checking the test lock storage means in the test mode and determining whether or not the auxiliary command designated by the machining program can be executed. It is equipped with.

【0025】第3の発明は、加工プログラムのテストモ
ードを有するとともに補助指令を実行しないようにロッ
クするロック手段とを有する数値制御工作機械におい
て、前記ロック手段により補助指令をロックしている状
態にあっても実行を可能とする補助指令を指定するテス
トモード時強制出力指定手段と、前記テストモード時強
制出力指定手段で指定された前記補助指令を記憶する強
制出力記憶手段と、前記テストモード時には前記ロック
手段により補助指令をロックしている状態であっても、
前記強制出力記憶手段を確認し、前記加工プログラムで
指定された補助指令の実行の可否を判定する強制出力判
定手段とを備えたものである。
According to a third aspect of the present invention, in a numerically controlled machine tool having a machining program test mode and lock means for locking the auxiliary instruction so that it is not executed, the auxiliary instruction is locked by the lock means. In the test mode, a forced output designating unit that designates an auxiliary command that enables execution even if there is any, a forced output storage unit that stores the auxiliary command designated by the forced output designating unit in the test mode, and in the test mode, Even when the auxiliary command is locked by the locking means,
Forced output determination means for checking the forced output storage means and determining whether or not the auxiliary command designated by the machining program can be executed.

【0026】第4の発明は、加工プログラムのテストモ
ードを有する数値制御工作機械において、テストモード
時における工具の移動量を指定するテスト時移動量指定
手段と、前記テストモード時に加工プログラムで指定さ
れた工具軌跡上を前記テスト時移動量指定手段で指定さ
れた移動量ずつ工具を移動させて実行する指定移動距離
抽出部手段とを備えたものである。
According to a fourth aspect of the present invention, in a numerically controlled machine tool having a machining program test mode, a test movement amount designating means for designating a tool movement amount in the test mode and a machining program designated in the test mode. And a designated movement distance extraction unit that executes the tool by moving the tool on the tool locus by the movement amount designated by the test movement amount designating unit.

【0027】[0027]

【作用】第1の発明に係る数値制御工作機械によれば、
従来からのNC部、PC部間のインターフェースを何ら
変更すること無しに、完了待ち不要の補助指令に対して
不要な完了待ちによって生じる無駄時間が除去可能とな
る。
According to the numerically controlled machine tool of the first invention,
Without changing the interface between the NC unit and the PC unit in the related art, it is possible to eliminate dead time caused by unnecessary completion waiting for auxiliary commands that do not require completion waiting.

【0028】第2の発明に係る数値制御工作機械によれ
ば、テストモード時に特定の補助指令のみを実行させな
いようにすることで、工作機械を実際に動かしてNC加
工プログラムをテストする際、テストの妨げとなるよう
な補助指令を実行させないため、テストが容易になる。
According to the numerically controlled machine tool of the second aspect of the present invention, by executing only the specific auxiliary command in the test mode, the machine tool is actually moved to test the NC machining program. The test becomes easy because the auxiliary command that hinders the execution of the command is not executed.

【0029】第3の発明に係る数値制御工作機械によれ
ば、テストモード時に補助指令ロック状態でも特定の補
助指令のみを実行させることで、工作機械を実際に動か
してNC加工プログラムをテストする際、必要な加工動
作のみを行わせることが可能となり、テストが容易にな
る。
According to the numerically controlled machine tool of the third aspect of the present invention, when only the specific auxiliary command is executed even in the auxiliary command locked state in the test mode, when actually operating the machine tool to test the NC machining program. , It becomes possible to perform only the necessary machining operation, and the test becomes easy.

【0030】第4の発明に係る数値制御工作機械によれ
ば、テストモード時に工具の移動距離を指定し、指定距
離分動けば停止するので、工作機械を実際に動かしてN
C加工プログラムをテストする際、オペレータの思い通
りの移動量ずつ工具を移動させることが可能となり、テ
ストが容易になる。
According to the numerically controlled machine tool of the fourth aspect of the invention, the moving distance of the tool is specified in the test mode, and the machine stops after moving by the specified distance.
When testing the C machining program, the tool can be moved by the amount of movement as desired by the operator, facilitating the test.

【0031】[0031]

【実施例】【Example】

実施例1.第1の発明に係る数値制御工作機械について
説明する。図1はこの発明の一実施例による内蔵型PC
付きのCNCを使用したCNC工作機械の概要構成図で
ある。図において、1AはNC部、1OAはCNC部、
51は完了待不要の補助指令を指定する完了待不要補助
指令指定部、52は実行する補助指令を登録する実行補
助指令登録部、53は実行補助指令登録部52で登録す
る実行補助指令を格納する実行中補助指令記憶部、54
は補助指令が指令された場合に実行中補助指令記憶部5
3をチェックし、指令された補助指令を実行出来るか否
かを判定する補助指令実行可否判定部、55は実行中の
補助指令の完了を待つことなしに次ブロックを実行出来
るか否かを判定する次ブロック実行可否判定部である。
また、図15と同一符号のものは同一内容であり、説明
は省略する。
Example 1. A numerically controlled machine tool according to the first invention will be described. FIG. 1 shows a built-in PC according to an embodiment of the present invention.
It is a general | schematic block diagram of the CNC machine tool which used CNC with. In the figure, 1A is an NC part, 1OA is a CNC part,
Reference numeral 51 denotes a completion waiting unnecessary auxiliary instruction designating section for designating an auxiliary instruction not requiring completion waiting, 52 is an execution auxiliary instruction registering section for registering an auxiliary instruction to be executed, and 53 stores an execution auxiliary instruction registered by the execution auxiliary instruction registering section 52. Executing auxiliary command storage unit, 54
Is executing the auxiliary instruction storage unit 5 when the auxiliary instruction is issued.
3, the auxiliary command executability determination unit that determines whether the commanded auxiliary command can be executed, 55 determines whether the next block can be executed without waiting for the completion of the auxiliary command that is being executed This is a next block executability determining unit.
Further, the same reference numerals as those in FIG. 15 have the same contents, and the description thereof will be omitted.

【0032】図2はこの発明の一実施例を示すM指令の
指定を行う画面表示例である。NC操作盤11上の画面
で設定可能である。図において、161がM指令値、1
63は完了待不要のM指令を指定するテーブルである
(以後、「完了待不要」部と記す)。「完了待不要」部
163に「*」が付加されたM指令に関しては、M指令
が実行中であってもM指令の完了を待つことなしに、次
の指令を実行することが出来る。「*」の指定は該当す
るM指令の「完了待不要」部163にカーソルを移動さ
せ、完了待不要で有れば数値の「1」をキーインする。
「1」がキーインされると画面上では「*」のマークが
表示され、該当するM指令が完了待不要のM指令として
指定されたことを示す。完了待が必要のM指令であれ
ば、「0」をキーインすればよい。「0」がキーインさ
れた場合は、画面上では該当部分が空欄となる。
FIG. 2 is an example of a screen display for designating an M command according to an embodiment of the present invention. It can be set on the screen on the NC operation panel 11. In the figure, 161 is the M command value, 1
Reference numeral 63 is a table for designating an M command which does not require completion waiting (hereinafter referred to as "completion waiting unnecessary" section). Regarding the M command to which “*” is added in the “no need for waiting for completion” section 163, the next command can be executed without waiting for the completion of the M command even if the M command is being executed. To specify “*”, the cursor is moved to the “necessary for waiting for completion” portion 163 of the corresponding M command, and if there is no need for waiting for completion, the numerical value “1” is keyed in.
When "1" is keyed in, an "*" mark is displayed on the screen, indicating that the corresponding M command has been designated as an M command that does not require completion waiting. If it is an M command that requires waiting for completion, "0" may be keyed in. When "0" is keyed in, the corresponding part becomes blank on the screen.

【0033】図3はこの発明の一実施例のM指令の状態
をしめすテーブルである。このテーブル150には、P
C部2が実行中のM指令値(以後、MDと記す)151
が格納される。このMD151には、PC部2でM指令
を実行している場合には実行中のM指令が、M指令を実
行していない場合には「−1」の値が格納されている。
FIG. 3 is a table showing the state of the M command according to the embodiment of the present invention. In this table 150, P
M command value (hereinafter referred to as MD) 151 being executed by the C unit 151
Is stored. The MD 151 stores the M command being executed when the PC unit 2 is executing the M command, and stores a value of "-1" when the M command is not being executed.

【0034】図4はこの発明の一実施例のM指令の出力
処理を示すフローチャートである。M指令が指令された
場合、NC部1では図3で示したMD151の値が「−
1」か否かをチェックすることでPC部2においてM指
令が実行中であるかどうかを判別する(ステップ120
1)。M指令がPC部2において実行中であれば、PC
部2に対して次のM指令を実行させることはできないた
め、M指令の出力を未完了として終了する(ステップ1
209)。この場合、M指令が未処理であるから次の指
令の実行には移らず、後から再度図4に示すM指令の出
力処理を行うことになる。
FIG. 4 is a flow chart showing the output processing of the M command according to the embodiment of the present invention. When the M command is issued, the value of MD 151 shown in FIG.
1 "to determine whether the M command is being executed in the PC unit 2 (step 120).
1). If the M command is being executed in the PC section 2, the PC
Since it is not possible to execute the next M command to the part 2, the output of the M command is incomplete and the process ends (step 1).
209). In this case, since the M command has not been processed, the next command is not executed and the M command output process shown in FIG. 4 is performed again later.

【0035】M指令がPC部2において実行中でなけれ
ば、MD151に指定されたM指令値を格納する(ステ
ップ1202)。次に、M指令値をPC部2へ出力し
(ステップ1203)、MF信号をONする(ステップ
1204)。続いて、M指令の完了待が不要のM指令か
どうかを確認する(ステップ1205)。これは、図2
において、「完了待不要」部163に「*」の指定がな
されているM指令かどうかを判別することである。
If the M command is not being executed in the PC section 2, the M command value specified in the MD 151 is stored (step 1202). Next, the M command value is output to the PC unit 2 (step 1203), and the MF signal is turned on (step 1204). Subsequently, it is confirmed whether or not the waiting for completion of the M command is an unnecessary M command (step 1205). This is shown in Figure 2.
In the above, it is to determine whether or not it is an M command for which "*" is designated in the "no need for completion waiting" section 163.

【0036】M指令の完了待が必要なM指令であれば、
次命令実行不許可とする(ステップ1206)。この
「次指令実行不許可」となった場合、次指令の実行はM
指令の完了を待ってから行うものとする。M指令の完了
待が不要なM指令であれば、次命令実行許可とする(ス
テップ1207)。この「次指令実行許可」となった場
合、次指令の実行はM指令の完了を待つことなしに行う
ものとする。M指令のPC部2への出力は完了したた
め、M指令の出力完了として終了する(ステップ120
8)。
If the M command requires waiting for completion of the M command,
Next command execution is not permitted (step 1206). If this "Next command execution is not permitted", the next command is executed by M
It shall be done after waiting for the completion of the order. If the M command does not need to wait for the completion of the M command, execution of the next command is permitted (step 1207). When the "execution of next command is permitted", the next command is executed without waiting for the completion of the M command. Since the output of the M command to the PC unit 2 is completed, the output of the M command is completed (step 120).
8).

【0037】なお、図4の処理は一定周期毎に実行され
るプログラム中で、M指令の処理が必要な場合に起動さ
れる部分であり、図において、M指令の出力が未完了
(ステップ1209)の場合、次の周期で再度図4の処
理が行われ、M指令の出力が完了(ステップ1208)
となるまで繰り返し実行される。
The process of FIG. 4 is a part which is activated in the program executed at regular intervals when the process of the M command is required. In the figure, the output of the M command is incomplete (step 1209). 4) is performed again in the next cycle, the output of the M command is completed (step 1208).
It is repeatedly executed until.

【0038】図5はM指令の完了処理を示すフローチャ
ートである。PC部2において、指令されたM指令が完
了した場合、完了信号(FIN)がNC部1に対して送
られる。これを受けて、NC部1は以下の処理を行う。
まず、PC部2において実行されているM指令は存在し
ないので、MD151の値を「−1」に設定する(ステ
ップ1301)。次に、MF信号をOFFにし(ステッ
プ1302)、FIN信号をOFFにする(ステップ1
303)、最後にM指令BCD出力をOFFにして(ス
テップ1304)終了する。
FIG. 5 is a flow chart showing the completion processing of the M command. When the commanded M command is completed in the PC unit 2, a completion signal (FIN) is sent to the NC unit 1. In response to this, the NC unit 1 performs the following processing.
First, since there is no M command being executed in the PC unit 2, the value of MD 151 is set to "-1" (step 1301). Next, the MF signal is turned off (step 1302) and the FIN signal is turned off (step 1).
303), and finally, the M command BCD output is turned off (step 1304), and the process ends.

【0039】図7は、NC部1とPC部2の処理を説明
する説明図である。201〜203はNC部1からPC
部2へ出力されようとするM指令値であり、211〜2
17はMD151の値であり、221〜226はPC部
2の内部状態である。いま、Maが指令された場合(2
01)、MD151の値が「−1」であるから(21
1)そのままPC部2へデータを出力し、MD151の
値を「a」に変更する。ここでaはMの指令値とする。
FIG. 7 is an explanatory diagram for explaining the processing of the NC unit 1 and the PC unit 2. 201 to 203 are PCs from the NC unit 1
M command value that is about to be output to the unit 2,
17 is a value of MD 151, and 221 to 226 are internal states of the PC unit 2. If Ma is instructed now (2
01), the value of MD 151 is “−1” (21
1) The data is directly output to the PC unit 2 and the value of MD 151 is changed to "a". Here, a is a command value of M.

【0040】PC部2はこれを受けてMaの実行を行う
(221)。Maの実行が終了した時点(222)でM
D151の値は「−1」となる(213)。次のM指令
Mbが指令された場合(202)、MD151の値が
「−1」であるから(213)そのままPC部2へデー
タを出力し、MD151の値を「b」に変更する。ここ
でbはMの指令値である。
In response to this, the PC section 2 executes Ma (221). When the execution of Ma ends (222), M
The value of D151 becomes "-1" (213). When the next M command Mb is commanded (202), since the value of MD 151 is "-1" (213), the data is directly output to the PC unit 2 and the value of MD 151 is changed to "b". Here, b is the command value of M.

【0041】PC部2はこれを受けてMbの実行を行う
(223)。次のM指令Mcが指令された場合(20
3)、MD151の値はPC部2がまだMbの実行中で
あるので「b」のままであるので、PC部2へのデータ
出力を中止し、MD151の値が「−1」になるまで待
つ。
In response to this, the PC unit 2 executes Mb (223). When the next M command Mc is commanded (20
3), the value of MD151 remains "b" because the PC unit 2 is still executing Mb, so the data output to the PC unit 2 is stopped and the value of MD151 becomes "-1". wait.

【0042】PC部2はMbの実行が終了した時点でM
D151の値を「−1」とする(224)。これにより
NC部1はM指令McをPC部2へ出力し、MD151
の値を「c」に変更する。ここでcはMの指令値であ
る。PC部2はこれを受けてMcの実行を行う(22
5)。Mcの実行が終了した時点(226)でMD15
1の値を「−1」とする(226)。なお、図7の例に
おいて、Ma,Mb,McはすべてM指令の完了を待た
なくてもよいM指令であるとする。
When the execution of Mb is completed, the PC unit 2 executes M
The value of D151 is set to "-1" (224). As a result, the NC unit 1 outputs the M command Mc to the PC unit 2 and the MD 151
Change the value of to "c". Here, c is the command value of M. In response to this, the PC unit 2 executes Mc (22).
5). At the time when the execution of Mc is completed (226), MD15
The value of 1 is set to "-1" (226). In the example of FIG. 7, it is assumed that Ma, Mb, and Mc are all M commands that do not have to wait for the completion of the M command.

【0043】また、上記実施例は、従来のNC部1とP
C部2とのインターフェースそのままの場合を示した
が、近年多くなってきている内蔵型PCの場合には、N
C部1とPC部2とは共通メモリを有して互いにデータ
を交換できるような構造になっているものが多いため、
従来のNC部1とPC部2とのインターフェースをとる
必要が無くなってきている。
In addition, the above-described embodiment is similar to the conventional NC unit 1 and P.
The case where the interface with the C unit 2 is left as is is shown, but in the case of the built-in PC which has been increasing in number in recent years, N
Since the C section 1 and the PC section 2 often have a common memory and are configured to exchange data with each other,
It is no longer necessary to interface with the conventional NC unit 1 and PC unit 2.

【0044】例えば、MFとかFINとかの信号は、N
C部1とPC部2とがビット単位のデータの送受信しか
行えない場合に必要であり、内蔵型のPCを有するシス
テムで、NC部1とPC部2とが共通メモリを有してお
り、互いに自由にデータを交換できるなら、MD151
だけでM指令の処理が可能である。即ち、M指令値をN
C部1からPC部2へ送る場合には、MD151にM指
令値を設定するだけでよく、PC部2からNC部1へ完
了を通知する場合には、MD151を「−1」にするだ
けでよい。
For example, signals such as MF and FIN are N
This is necessary when the C section 1 and the PC section 2 can only transmit and receive bit-unit data, and in a system having a built-in PC, the NC section 1 and the PC section 2 have a common memory, If you can exchange data freely with each other, MD151
It is possible to process the M command only by itself. That is, M command value is set to N
When sending from the C section 1 to the PC section 2, it is only necessary to set the M command value in the MD 151, and when notifying the completion from the PC section 2 to the NC section 1, simply setting MD 151 to "-1". Good.

【0045】NC部1はM指令の完了をMD151が
「−1」になることで確認可能であるし、PC部2はN
C部1からM指令が送られたことをMD151が「−
1」以外の数値になることで確認できる。このような内
蔵型のPCを有するシステムの場合、図6で示したよう
に図4の処理中ステップ1203、1204を省略する
ことが可能となる。
The NC unit 1 can confirm the completion of the M command by the MD 151 becoming "-1", and the PC unit 2 can confirm the completion of the N command.
MD 151 indicates that the M command has been sent from C section 1.
It can be confirmed by setting a value other than 1 ”. In the case of a system having such a built-in PC, it is possible to omit the processing steps 1203 and 1204 of FIG. 4 as shown in FIG.

【0046】実施例2.第1の発明に係る他の実施例の
数値制御工作機械について説明する。実施例1ではM指
令の完了を待つ必要の無いM指令を画面から設定させる
のに対して、この実施例では加工プログラム中でM指令
の完了を待つ/待たないの区別を指定するようにしたも
のである。例えば、M指令の完了を待つ必要のあるM指
令は M123;のように大文字の「M]でM指令値を定義
し、M指令の完了を待つ必要のないM指令は m123;のように小文字の「m」でM指令値を定義
し、図4及び図6のステップ1205の判定を、指定さ
れたM指令が「M」で指令されたか「m」で指令された
かを判別するようにすればよい。
Example 2. A numerically controlled machine tool according to another embodiment of the first invention will be described. In the first embodiment, the M command that does not need to wait for the completion of the M command is set from the screen, whereas in this embodiment, the distinction of waiting / not waiting for the completion of the M command is specified in the machining program. It is a thing. For example, an M command that needs to wait for the completion of the M command defines the M command value with a capital "M", such as M123 ;, and an M command that does not need to wait for the completion of the M command has a lowercase character such as m123 ;. M command value is defined by "m" of the above, and the determination in step 1205 of FIGS. 4 and 6 is made to determine whether the specified M command is commanded by "M" or by "m". Good.

【0047】また、Mの区別は上記に限るものではな
く、M指令の完了を待つ必要のあるM指令は M123;のようにM指令値を従来通り「+」の値で定
義し、M指令の完了を待つ必要のないM指令は M−123;のように「−」の値でM指令値を定義する
ようにしてもよい。この他、加工プログラム中で両者を
区分する方法として、 「M123;」 , 「Mw123;」 のようにM指令の完了を待つ必要のないM指令に小文字
を付加したり、 「M123;」 , 「M$123;」 のようにM指令の完了を待つ必要のないM指令に特殊文
字を付加したりする事も可能である。前記実施例1にお
いて完了待不要補助指令指定手段で完了待不要補助指令
を区別指定する代りに、この実施例では完了待不要補助
指令を加工プログラム中で大文字/小文字或は符号の有
無等により区別指定可能とした。従って、実施例2では
次指令ブロツク実行可否判定部55は、加工プログラム
中での補助指令の区別指定により完了待要補助指令と完
了待不要補助指令との判定をする。
Further, the distinction of M is not limited to the above, and the M command which needs to wait for the completion of the M command is defined by the value of "+" as in the conventional M command value such as M123; For the M command that does not need to wait for the completion of, the M command value may be defined by a value of "-" like M-123 ;. In addition, as a method of distinguishing the two in the machining program, a lowercase letter is added to the M command that does not need to wait for the completion of the M command, such as "M123;" and "Mw123;", or "M123;" It is also possible to add a special character to an M command that does not need to wait for the completion of the M command, such as "M $ 123;". Instead of specifying the completion waiting unnecessary auxiliary command by the completion waiting unnecessary auxiliary command designating means in the first embodiment, in this embodiment, the completion waiting unnecessary auxiliary command is distinguished by upper / lower case or presence / absence of a sign in the machining program. It was possible to specify. Therefore, in the second embodiment, the next command block executability determining unit 55 determines the completion-necessary auxiliary command and the completion-waitless auxiliary command by distinguishing the auxiliary commands in the machining program.

【0048】実施例3.第2の発明に係る一実施例の数
値制御工作機械について説明する。図1において、56
はテストモード中には実行しない補助指令を指定するテ
ストモード時ロック指定手段、57は前記テストモード
時ロック指定手段で指定された前記補助指令を記憶する
テストロック記憶手段、58は前記テストモード時に前
記テストロック記憶手段を確認し、前記加工プログラム
で指定された補助指令の実行の可否を判定するテストロ
ック判定手段である。また、図2において、164はテ
スト・モード時にM指令の出力をロックするM指令を指
定するテーブルであり(以後、「テストロック」部と記
す)、「テストロック」部164に「*」が付加された
M指令に関してはテスト・モード時にこのM指令が指令
されてもM指令の出力を行わないようにするものであ
る。
Example 3. A numerically controlled machine tool according to an embodiment of the second invention will be described. In FIG. 1, 56
Is a test mode lock designating means for designating an auxiliary command which is not executed in the test mode, 57 is a test lock storing means for storing the auxiliary command designated by the test mode locking designating means, and 58 is a test mode during the test mode. It is a test lock determination means that confirms the test lock storage means and determines whether or not the auxiliary instruction designated by the machining program can be executed. Further, in FIG. 2, reference numeral 164 is a table for designating the M command that locks the output of the M command in the test mode (hereinafter referred to as “test lock” part), and “*” is indicated in the “test lock” part 164. Regarding the added M command, the M command is not output even if this M command is commanded in the test mode.

【0049】図2において、「*」の指定は該当するM
指令の「テストロック」部164にカーソルを移動さ
せ、テスト・モード時にM指令の出力をロックするM指
令であれば数値の「1」をキーインする。「1」がキー
インされると画面上では「*」のマークが表示され、該
当するM指令がテスト・モード時にM指令の出力をロッ
クするM指令として指定されたことを示す。テスト・モ
ード時にM指令の出力をロックしない通常のM指令であ
れば、「0」をキーインする。「0」がキーインされた
場合は、画面上では該当部分が空欄となる。
In FIG. 2, "*" is designated by the corresponding M.
The cursor is moved to the "test lock" portion 164 of the command, and if it is the M command that locks the output of the M command in the test mode, the numerical value "1" is keyed in. When "1" is keyed in, an "*" mark is displayed on the screen, indicating that the corresponding M command is designated as the M command that locks the output of the M command in the test mode. If it is a normal M command which does not lock the output of the M command in the test mode, "0" is keyed in. When "0" is keyed in, the corresponding part becomes blank on the screen.

【0050】図8はM指令の出力処理を示すフローチャ
ートである。M指令が指令された場合、テスト・モード
時であるかどうかを判別する(ステップ1401)。こ
のテスト・モードの指定は、NC操作盤11上の選択ス
イッチ(図示せず)で行う。
FIG. 8 is a flow chart showing the output process of the M command. When the M command is issued, it is determined whether or not the test mode is set (step 1401). The designation of the test mode is performed by a selection switch (not shown) on the NC operation panel 11.

【0051】テスト・モード時でなければ、通常通りに
M指令の出力処理を行う(ステップ1403)。テスト
・モード時であれば、指定されたM指令がテスト・モー
ド時にM指令の出力をロックするM指令かどうかを確認
する(ステップ1402)。これは、図2において、
「テストロック」部164に「*」の指定がなされてい
るM指令かどうかを判別することである。テスト・モー
ド時にM指令の出力をロックするM指令であれば、M指
令の出力を行わずに終了する。これは指定されたM指令
を無視したことを意味する。
If not in the test mode, the output process of the M command is performed as usual (step 1403). In the test mode, it is confirmed whether the designated M command is the M command that locks the output of the M command in the test mode (step 1402). This is shown in FIG.
This is to determine whether or not it is an M command for which "*" is designated in the "test lock" section 164. If the M command locks the output of the M command in the test mode, the process ends without outputting the M command. This means that the specified M command was ignored.

【0052】実施例4.第3の発明に係る一実施例の数
値制御工作機械について説明する。図1において、59
は図示しない補助指令を実行しないようにロックするロ
ック手段により補助指令をロックしている状態にあって
も実行を可能とする補助指令を指定するテストモード時
強制出力指定手段、60は前記テストモード時強制出力
指定手段で指定された前記補助指令を記憶する強制出力
記憶手段、61は前記テストモード時には前記ロック手
段により補助指令をロックしている状態であっても、前
記強制出力記憶手段を確認し、前記加工プログラムで指
定された補助指令の実行の可否を判定する強制出力判定
手段である。また、図2において165は補助指令ロッ
ク時にもM指令の出力を行うM指令を指定するテーブル
であり(以後、「強制出力」部と記す)、「強制出力」
部165に「*」が付加されたM指令に関しては補助指
令ロック時にもM指令の出力を行うようにするものであ
る。
Example 4. A numerically controlled machine tool according to an embodiment of the third invention will be described. In FIG. 1, 59
Is a forced output designating means in the test mode for designating an auxiliary instruction that enables execution even if the auxiliary instruction is locked by a locking means for locking the auxiliary instruction (not shown), and 60 is the test mode The forced output storage means for storing the auxiliary command designated by the forced output designation means, 61 confirms the forced output storage means even when the auxiliary command is locked by the lock means in the test mode. Then, the forced output determination means determines whether or not the auxiliary command designated by the machining program can be executed. Further, in FIG. 2, reference numeral 165 denotes a table for designating the M command that outputs the M command even when the auxiliary command is locked (hereinafter referred to as “forced output” section).
Regarding the M command to which “*” is added to the section 165, the M command is output even when the auxiliary command is locked.

【0053】図2において、「*」の指定は該当するM
指令の「強制出力」部165にカーソルを移動させ、補
助指令ロック時にもM指令の出力を行うM指令であれば
数値の「1」をキーインする。「1」がキーインされる
と画面上では「*」のマークが表示され、該当するM指
令が補助指令ロック時にもM指令の出力を行うM指令と
して指定されたことを示す。補助指令ロック時にはM指
令の出力を行わない通常のM指令であれば、「0」をキ
ーインする。「0」がキーインされた場合は、画面上で
は該当部分が空欄となる。
In FIG. 2, "*" is designated by the corresponding M.
The cursor is moved to the "forced output" portion 165 of the command, and if the command is the M command that outputs the M command even when the auxiliary command is locked, the numerical value "1" is keyed in. When "1" is keyed in, a mark "*" is displayed on the screen, indicating that the corresponding M command is designated as the M command that outputs the M command even when the auxiliary command is locked. If it is a normal M command that does not output the M command when the auxiliary command is locked, "0" is keyed in. When "0" is keyed in, the corresponding part becomes blank on the screen.

【0054】図9はM指令の出力処理を示すフローチャ
ートである。M指令が指令された場合、補助指令ロック
時であるかどうかを判別する(ステップ1501)。こ
の補助指令ロックの指定は、NC操作盤11上の選択ス
イッチ(図示せず)で行う。
FIG. 9 is a flowchart showing the output processing of the M command. When the M command is issued, it is determined whether or not the auxiliary command is locked (step 1501). The designation of the auxiliary command lock is performed by a selection switch (not shown) on the NC operation panel 11.

【0055】補助指令ロック時でなければ、通常通りに
M指令の出力処理を行う(ステップ1503)。補助指
令ロック時であれば、指定されたM指令が補助指令ロッ
ク時にもM指令の出力を行うM指令かどうかを確認する
(ステップ1502)。これは、図2において、「強制
出力」部165に「*」の指定がなされているM指令か
どうかを判別することである。
If the auxiliary command is not locked, the output process of the M command is performed as usual (step 1503). If the auxiliary command is locked, it is confirmed whether the specified M command is the M command that outputs the M command even when the auxiliary command is locked (step 1502). This is to determine whether or not it is an M command for which "*" is designated in the "forced output" section 165 in FIG.

【0056】補助指令ロック時にM指令の出力を行うM
指令でなければ、M指令の出力を行わずに終了する。こ
れは指定されたM指令を無視したことを意味する。補助
指令ロック時にM指令の出力を行うM指令であれば、補
助指令ロック時であってもM指令の出力を行う(ステッ
プ1503)。
M for outputting an M command when the auxiliary command is locked
If it is not a command, the process ends without outputting the M command. This means that the specified M command was ignored. If the M command outputs the M command when the auxiliary command is locked, the M command is output even when the auxiliary command is locked (step 1503).

【0057】実施例5.第4の発明に係る一実施例の数
値制御工作機械について説明する。図10は移動距離を
指定する要部ブロック図である。これらの各ブロックの
処理は数値制御装置のソフトウェアによって実行される
ものである。図において、前処理演算部43は、NC部
1、1Aに存在し、加工プログラム103を読み取り、
移動指令を補間部45へ送る。加工プログラム103
は、通常のEIA加工プログラムでも近年多用されてい
る自動プログラムでも差し支えない。40はテスト・モ
ード中における工具の移動距離を指定するテスト時移動
距離指定部、44はNC部1、1Aのマンマシン制御部
4に存在し、テスト時移動距離指定部40から入力され
たデータをもとに、工具の指定された移動距離を算出す
る指定移動距離抽出部である。
Example 5. A numerically controlled machine tool according to an embodiment of the fourth invention will be described. FIG. 10 is a block diagram of an essential part for designating a moving distance. The processing of each of these blocks is executed by the software of the numerical controller. In the figure, the pre-processing operation unit 43 exists in the NC units 1 and 1A, reads the machining program 103,
The movement command is sent to the interpolation unit 45. Machining program 103
Can be either a normal EIA processing program or an automatic program which has been widely used in recent years. Reference numeral 40 is a test movement distance designating unit that designates a movement distance of the tool in the test mode, and 44 is data existing in the man-machine control unit 4 of the NC units 1 and 1A and input from the test movement distance designating unit 40. It is a designated movement distance extraction unit that calculates the designated movement distance of the tool based on.

【0058】テスト・モードの指定は、NC操作盤11
上のスイッチ(図示せず)で行い、指定移動距離抽出部
44はテスト・モード中で無ければ無限大の移動距離を
補間部45に出力するものとする。例えば、テンキー4
1からの入力であれば、入力された数値が予め定められ
た単位で指定される移動距離を指定したものとみなし、
これを指定された移動距離とする。同様に、ハンドル4
2からの入力であれば、入力されたパルス数が予め1パ
ルス当り定められた単位で指定される移動距離を指定し
たものとみなし、これを指定された移動距離とするもの
である。
The test mode is designated by the NC operation panel 11
It is assumed that the upper switch (not shown) is used, and the designated movement distance extraction unit 44 outputs an infinite movement distance to the interpolation unit 45 unless in the test mode. For example, numeric keypad 4
If it is input from 1, it is considered that the input numerical value specifies the movement distance specified in a predetermined unit,
This is the specified movement distance. Similarly, handle 4
If it is an input from 2, it is considered that the input pulse number specifies a moving distance specified in advance for each pulse, and this is set as the specified moving distance.

【0059】補間部45、加減速制御部46は、NC部
1、1Aの軸移動制御部6に存在し、補間手段45は前
処理演算部43から渡されたデータから1ブロック分の
移動量Lを求め、これを指定移動距離抽出部44から渡
された移動距離分だけ補間する。
The interpolation unit 45 and the acceleration / deceleration control unit 46 are present in the axis movement control unit 6 of the NC units 1 and 1A, and the interpolation unit 45 uses the data transferred from the preprocessing operation unit 43 to move one block. L is obtained, and this is interpolated by the moving distance passed from the designated moving distance extracting unit 44.

【0060】補間された分配パルスは加減速制御部46
で加減速処理が施され、軸制御回路47に送られる。軸
制御回路47は、分配パルスを速度制御信号に変換し、
サーボアンプ48に送る。サーボアンプ48は、速度制
御信号を増幅し、サーボモータ18を駆動する。サーボ
モータ18には位置検出用のパルスコーダ(図示せず)
が内蔵されており、軸制御回路47に位置帰還パルスを
帰還する。軸制御回路47、サーボアンプ48は、速度
制御ユニット17に存在する。
The interpolated distribution pulse is applied to the acceleration / deceleration control unit 46.
Then, the acceleration / deceleration process is performed and the result is sent to the axis control circuit 47. The axis control circuit 47 converts the distributed pulse into a speed control signal,
It is sent to the servo amplifier 48. The servo amplifier 48 amplifies the speed control signal and drives the servo motor 18. The servo motor 18 has a pulse coder (not shown) for position detection.
Is incorporated, and the position feedback pulse is fed back to the axis control circuit 47. The axis control circuit 47 and the servo amplifier 48 are present in the speed control unit 17.

【0061】図10においては、軸制御回路47、サー
ボアンプ48、サーボモータ18は1軸分のみしか表わ
していない。実際には複数軸分必要であるが、他の軸の
要素も同じであるので省略してある。図11は補間部4
5が指定移動距離抽出部44からデータを受け取る度に
行う処理を表わしたフローチャートである。図13は補
間45で行う処理の説明図であり、Lは実行中のブロッ
クの全移動距離であり、現在実行中のブロックがP1点
からP2点まで直線的に移動するブロックであれば、P
1−P2点間の距離がLである。P3点は次のブロック
の終点であり、現在補間中の点がPN点である。
In FIG. 10, the axis control circuit 47, the servo amplifier 48, and the servo motor 18 show only one axis. Actually, a plurality of axes are required, but the elements of the other axes are the same, and are therefore omitted. FIG. 11 shows the interpolation unit 4
5 is a flowchart showing a process performed every time data is received from the designated movement distance extraction unit 44. FIG. 13 is an explanatory diagram of the processing performed by the interpolation 45, where L is the total movement distance of the block being executed, and if the block currently being executed is a block that moves linearly from point P1 to point P2, then P
The distance between the 1-P2 points is L. Point P3 is the end point of the next block, and the point currently being interpolated is the PN point.

【0062】現在処理中のブロックの残距離をLAとし
(ステップ1601)、指定移動距離抽出部44から渡
された移動距離をLBとする(ステップ1602)。図
13ではPN−P2間の距離がLAであり、PN−PS
間の距離がLBである。PS点は、指定移動距離抽出部
44から渡された移動距離LBだけ移動して停止する点
である。
The remaining distance of the block currently being processed is LA (step 1601), and the moving distance passed from the designated moving distance extracting unit 44 is LB (step 1602). In FIG. 13, the distance between PN-P2 is LA, and PN-PS
The distance between them is LB. The PS point is a point which moves by the moving distance LB passed from the designated moving distance extracting unit 44 and stops.

【0063】この時点で指定移動距離抽出部44から渡
された移動距離の総和をLCとし、LBをLCに加算す
る(ステップ1603)。これは、指定移動距離抽出部
44から渡された移動距離LB分だけ移動しきらない内
に、移動距離抽出部44から再び移動指令値を渡された
場合の処理である。指定移動距離抽出部44から渡され
た移動距離LBは処理したので、LBの値を0クリアす
る(ステップ1604)。
At this point, the total sum of the moving distances passed from the designated moving distance extracting unit 44 is set as LC, and LB is added to LC (step 1603). This is a process in the case where the movement command value is passed again from the movement distance extraction unit 44 before the movement distance LB passed from the designated movement distance extraction unit 44 is reached. Since the moving distance LB passed from the designated moving distance extracting unit 44 has been processed, the value of LB is cleared to 0 (step 1604).

【0064】現在実行中のブロックの残距離LAと指定
された移動距離の総和LCとを比較し、LAの方が大き
ければステップ1606から実行し、LAの方が小さけ
ればステップ1608から実行を行う(ステップ160
5)。LAの方が大きいとは、図13に示したように指
定された移動距離LB分移動しても現在実行中のブロッ
クに残距離がある場合であり、LAの方が小さいとは、
図14に示すように指定された移動距離LB分移動する
と、現在実行中のブロックの残距離を超えてしまう場合
である。
The remaining distance LA of the currently executed block is compared with the total sum LC of the designated movement distances. If LA is larger, the processing is executed from step 1606, and if LA is smaller, the processing is executed from step 1608. (Step 160
5). LA is larger when LA has a smaller remaining distance even if it is moved by the designated movement distance LB as shown in FIG. 13, and LA is smaller than LA is smaller.
This is a case where, as shown in FIG. 14, when the movement is performed by the designated movement distance LB, the remaining distance of the currently executed block is exceeded.

【0065】LAの方が大きい場合には、補間する残距
離LLをLCとし(ステップ1606)、LC分移動さ
せる処理を行ったのでLCの値を0クリアする(ステッ
プ1607)。これは、指定された総移動距離分移動さ
せて現在実行中のブロックの途中で停止させなければな
らないため、停止させるまでの距離LLを指定された移
動距離LCに設定するものである。
When LA is larger, the remaining distance LL to be interpolated is set to LC (step 1606), and the value of LC is cleared to 0 because the processing for moving by LC is performed (step 1607). This is to set the distance LL until the block is stopped to the specified moving distance LC because it has to be moved by the specified total moving distance and stopped in the middle of the block currently being executed.

【0066】LAの方が小さい場合には、補間する残距
離LLをLAとし(ステップ1608)、LA分移動さ
せる処理を行ったのでLCの値をLA分だけ減算する
(ステップ1609)。これは、指定された総移動距離
分移動させると現在実行中のブロック残距離を超えてし
まうので、現在実行中の残距離分移動させるために距離
LLを現在実行中のブロックの残距離LAとし、残った
指定移動量分の値をLCに設定するものである。
If LA is smaller than LA, the remaining distance LL to be interpolated is set to LA (step 1608), and since the processing for moving by LA has been performed, the value of LC is subtracted by LA (step 1609). This is because the block remaining distance currently being executed will be exceeded if moved by the specified total movement distance, so the distance LL is set as the remaining distance LA of the block currently being executed in order to move the remaining distance currently being executed. The value of the remaining designated movement amount is set in LC.

【0067】図12は、補間部45が行う補間処理に関
するフローチャートである。移動距離LLと単位時間当
りの移動距離DFとを比較する(ステップ1701)。
単位時間当りの移動距離DFとは、指定された工具の送
り速度を補間する単位時間当りの移動量に変換した値で
ある。LLがDFより大きかった場合は、補間する移動
量DLをDFとする(ステップ1702)。通常LLの
方がDFより大きいが、LLがDFより小さかった場合
は、補間する移動量DLをLLとする(ステップ170
3)。これは、移動距離LL分移動させる補間の内、最
後の回の補間となる。
FIG. 12 is a flowchart relating to the interpolation processing performed by the interpolation unit 45. The moving distance LL is compared with the moving distance DF per unit time (step 1701).
The moving distance DF per unit time is a value converted into a moving amount per unit time that interpolates the feed speed of the designated tool. If LL is larger than DF, the movement amount DL to be interpolated is set to DF (step 1702). Normally LL is larger than DF, but when LL is smaller than DF, the movement amount DL to be interpolated is set to LL (step 170).
3). This is the last interpolation among the interpolations for moving the moving distance LL.

【0068】現在実行中のブロックを移動距離DL分移
動するような各軸の移動成分を算出する(ステップ17
04)。これは従来から行われているCNCの補間と同
様である。DL分移動させたので、移動距離LLをDL
分減算し(ステップ1705)、現在実行中のブロック
の残距離LAもDL分減算する(ステップ1706)。
指定された移動距離LLが0になったかどうか判別する
(ステップ1707)。これは、指定された移動距離分
の移動が完了したかどうかを判別するものである。0で
あれば、次にLCが0になったかどうか判別する(ステ
ップ1708)。これは、指定移動距離抽出部44から
渡された移動距離の総和分の移動が完了したかどうかを
判別するものである。0であれば、指定移動距離抽出部
44から渡された移動距離分の移動が完了したとみな
し、フィードホールド状態で工具の移動を停止させる
(ステップ1709)。
A movement component of each axis that moves the currently executed block by the movement distance DL is calculated (step 17).
04). This is similar to the conventional interpolation of CNC. Since it has been moved by DL, the moving distance LL is DL
Minute subtraction is performed (step 1705), and the remaining distance LA of the currently executed block is also subtracted by DL (step 1706).
It is determined whether or not the designated movement distance LL has become 0 (step 1707). This is to determine whether or not the movement of the designated movement distance has been completed. If it is 0, it is then determined whether LC has become 0 (step 1708). This is to determine whether or not the movement of the total sum of the movement distances passed from the designated movement distance extraction unit 44 has been completed. If it is 0, it is considered that the movement for the movement distance passed from the designated movement distance extraction unit 44 is completed, and the movement of the tool is stopped in the feed hold state (step 1709).

【0069】この後、指定移動距離抽出部44から移動
指令が出される度にその分移動し、指定された移動量分
移動が完了すると再びフィードホールド状態で工具の移
動を停止させるサイクルを実行中の加工プログラムが終
了するまで繰り返す。
After that, every time a movement command is issued from the designated movement distance extraction unit 44, the movement is moved by that amount, and when the movement by the designated movement amount is completed, the cycle of stopping the movement of the tool in the feed hold state is being executed again. Repeat until the machining program of is completed.

【0070】実施例6.第4の発明において、テスト・
モード中における工具の移動距離を指定するテスト時移
動距離指定部40として、NC操作盤11上のテンキー
41を使用したもので、指定移動距離抽出部44はテン
キー41から入力された数値データをもとに、工具の指
定された移動距離を算出する。指定移動距離抽出部44
以降の動作は第4の発明と同様であり、説明は省略す
る。
Example 6. In the fourth invention, the test
The numeric keypad 41 on the NC operation panel 11 is used as the test movement distance designation unit 40 for designating the movement distance of the tool in the mode, and the designated movement distance extraction unit 44 also stores the numerical data input from the numeric keypad 41. Then, the designated movement distance of the tool is calculated. Designated moving distance extraction unit 44
The subsequent operation is similar to that of the fourth aspect of the invention, and the description thereof is omitted.

【0071】実施例7.第4の発明において、テスト・
モード中における工具の移動距離を指定するテスト時移
動距離指定部40として、機械操作盤12上のハンドル
42を使用したもので、指定移動距離抽出部44はハン
ドル42から入力されたパルスデータをもとに、工具の
指定された移動距離を算出する。指定移動距離抽出部4
4以降の動作は第4の発明と同様であり、説明は省略す
る。
Example 7. In the fourth invention, the test
A handle 42 on the machine operation panel 12 is used as the test movement distance designating unit 40 for designating the movement distance of the tool in the mode, and the designated movement distance extracting unit 44 also stores the pulse data input from the handle 42. Then, the designated movement distance of the tool is calculated. Designated moving distance extraction unit 4
The operations after 4 are the same as in the fourth aspect of the invention, and the description thereof will be omitted.

【0072】[0072]

【発明の効果】第1の発明に係る数値制御工作機械によ
れば、M指令の完了を待つ必要の無いM指令に関して
は、すぐ次の指令の実行に移るため、M指令の完了を待
つ必要の無いM指令処理を高速に行うことができる。ま
た、次のM指令が指定された場合には、必ず前に指令さ
れたM指令の完了を待ってからPC部2へM指令を出力
するため、従来のNC部1とPC部2とのインターフェ
ースを変更すること無しに適応することが可能である。
According to the numerically controlled machine tool of the first aspect of the present invention, with respect to the M command which does not need to wait for the completion of the M command, it is necessary to wait for the completion of the M command in order to immediately execute the next command. It is possible to perform M command processing without any error at high speed. When the next M command is designated, the M command is always output to the PC unit 2 after waiting for the completion of the previously commanded M command. It is possible to adapt without changing the interface.

【0073】第2の発明に係る数値制御工作機械によれ
ば、テスト・モード時には実行させたくないM指令を加
工プログラムを変更することなしに、実行させないよう
にすることが可能となったため、加工プログラムの実機
でのテストが安全にかつ容易に行えるようになった。
With the numerically controlled machine tool according to the second aspect of the present invention, it is possible to prevent the M command, which is not desired to be executed in the test mode, from being executed without changing the machining program. Testing of real-world programs has become safe and easy.

【0074】第3の発明に係る数値制御工作機械によれ
ば、補助指令ロック時にも実行させたいM指令を加工プ
ログラムを変更することなしに、実行させるようにする
ことが可能となったため、加工プログラムの実機動作の
確認が容易に行えるようになった。
With the numerically controlled machine tool according to the third aspect of the present invention, it becomes possible to execute the M command to be executed even when the auxiliary command is locked, without changing the machining program. You can now easily check the actual operation of the program.

【0075】第4の発明の発明に係る数値制御工作機械
によれば、指定した移動距離だけ工具を移動させ、停止
させられるので、加工プログラムの工具の移動に関する
チェックが容易に行える。例えば、工具がワークもしく
はテールストック等に干渉しそうな場合、少しずつ工具
を移動させて干渉しないかどうかテストするが、このよ
うな場合に、実際に移動する移動量を任意に指定できる
のでオペレータが安心してテストすることが可能とな
る。
According to the numerically controlled machine tool of the fourth aspect of the present invention, the tool can be moved by the designated movement distance and stopped, so that the check regarding the movement of the tool in the machining program can be easily performed. For example, if the tool is likely to interfere with the work or tailstock, move the tool little by little to test whether or not it interferes.In such a case, the operator can arbitrarily specify the amount of movement, so the operator can It is possible to test with confidence.

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

【図1】この発明の一実施例を示す内蔵型PC付きCN
Cを使用したCNC工作機械の概要構成図である。
FIG. 1 is a CN with a built-in PC showing an embodiment of the present invention.
It is a schematic block diagram of the CNC machine tool which used C.

【図2】この発明の一実施例を示すM指令の指定をおこ
なう画面表示例である。
FIG. 2 is a screen display example for designating an M command according to an embodiment of the present invention.

【図3】この発明の一実施例を示すM指令の状態を示す
テーブルの説明図である。
FIG. 3 is an explanatory diagram of a table showing a state of an M command showing an embodiment of the present invention.

【図4】この発明の実施例1、2を示すM指令の出力処
理を示すフローチャートである。
FIG. 4 is a flowchart showing an M command output process showing the first and second embodiments of the present invention.

【図5】この発明の実施例1、2を示すM指令の完了処
理を示すフローチャートである。
FIG. 5 is a flowchart showing an M command completion process according to the first and second embodiments of the present invention.

【図6】この発明の実施例1、2を示すM指令の出力処
理を示すフローチャートである。
FIG. 6 is a flowchart showing an M command output process showing the first and second embodiments of the present invention.

【図7】この発明の実施例1、2を示すNC部とPC部
の処理を説明する説明図である。
FIG. 7 is an explanatory diagram illustrating processing of the NC unit and the PC unit according to the first and second embodiments of the present invention.

【図8】この発明の実施例3を示すM指令の出力処理を
示すフローチャートである。
FIG. 8 is a flowchart showing an M command output process according to the third embodiment of the present invention.

【図9】この発明の実施例4を示すM指令の出力処理を
示すフローチャートである。
FIG. 9 is a flow chart showing an M command output process showing a fourth embodiment of the present invention.

【図10】この発明の実施例5〜7を示す移動距離を指
定する要部ブロック図である。
FIG. 10 is a block diagram of essential parts for designating a moving distance, showing Embodiments 5 to 7 of the present invention.

【図11】この発明の実施例5〜7を示す補間手段にお
ける補間前処理のフローチャートである。
FIG. 11 is a flowchart of pre-interpolation processing in the interpolating means showing the fifth to seventh embodiments of the present invention.

【図12】この発明の実施例5〜7を示す補間手段にお
ける補間処理のフローチャートである。
FIG. 12 is a flowchart of interpolation processing in the interpolation means showing the fifth to seventh embodiments of the present invention.

【図13】この発明の実施例5〜7を示す補間手段で行
う処理の説明図である。
FIG. 13 is an explanatory diagram of processing performed by the interpolation means according to the fifth to seventh embodiments of the present invention.

【図14】この発明の実施例5〜7を示す補間手段で行
う処理の説明図である。
FIG. 14 is an explanatory diagram of processing performed by the interpolation means according to the fifth to seventh embodiments of the present invention.

【図15】内蔵型PC付きCNCを使用したCNC工作
機械の概要図である。
FIG. 15 is a schematic diagram of a CNC machine tool using a CNC with a built-in PC.

【図16】補助機能信号のインターフェースの説明図で
ある。
FIG. 16 is an explanatory diagram of an interface for an auxiliary function signal.

【図17】M指令処理動作のタイームチャートである。FIG. 17 is a time chart of an M command processing operation.

【図18】加工プログラムの作成から加工物の検査まで
の流れを示す図である。
FIG. 18 is a diagram showing a flow from creation of a machining program to inspection of a workpiece.

【符号の説明】[Explanation of symbols]

1 NC部 1A NC部 2 PC部 3 入出力回路 4 マンマシン制御部 5 補助指令制御部 6 軸移動制御部 10 CNC部 10A CNC部 11 NC操作盤 12 機械操作盤 13 強電回路 14 機械各部 15 スピンドルアンプ 16 スピンドルモータ 17 速度制御ユニット 18 送りモータ 20 工作機械部 41 テンキー 42 ハンドル 43 前処理演算部 44 指定移動距離抽出部 45 補間部 46 加減速制御部 47 軸制御回路 48 サーボアンプ 51 完了待不要補助指令指定部 52 実行補助指令登録部 53 実行中補助指令記憶部 54 補助指令実行可否判定部 55 次ブロック実行可否判定部 56 テストモード時ロック指定部 57 テストロック記憶部 58 テストロック判定部 59 テストモード時強制出力指定部 60 強制出力記憶部 61 強制出力判定部 151 実行中のM指令値 161 M指令値 163 「完了待不要」部 164 「テストロック」部 165 「強制出力」部 1 NC part 1A NC part 2 PC part 3 Input / output circuit 4 Man-machine control part 5 Auxiliary command control part 6 Axis movement control part 10 CNC part 10A CNC part 11 NC operation panel 12 Machine operation panel 13 High-voltage circuit 14 Machine parts 15 Spindle Amplifier 16 Spindle motor 17 Speed control unit 18 Feed motor 20 Machine tool section 41 Numeric keypad 42 Handle 43 Pre-processing calculation section 44 Designated movement distance extraction section 45 Interpolation section 46 Acceleration / deceleration control section 47 Axis control circuit 48 Servo amplifier 51 No need to wait completion auxiliary Command designation unit 52 Execution auxiliary command registration unit 53 Execution auxiliary command storage unit 54 Auxiliary command execution availability determination unit 55 Next block execution availability determination unit 56 Test mode lock specification unit 57 Test lock storage unit 58 Test lock determination unit 59 Test mode Hour forced output specification section 60 forced output description Part 61 forced output determination unit 151 running the M command value 161 M command value 163 "Complete waiting unnecessary" 164 "Test Lock" section 165 "Force output" section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の指令ブロツクで構成される加工プ
ログラムに基づいて、加工を行うための補助的な作業を
プログラマブルコントローラ部を介して行なう数値制御
工作機械において、前記補助的な作業を指令する補助指
令で前記補助指令の完了を待たずに次の指令ブロツクを
実行させても差し支えのない完了待不要補助指令を区別
指定する完了待不要補助指令指定手段と、前記補助指令
の実行時に実行する前記補助指令を書き込み、前記補助
指令の完了時に前記補助指令を消去する実行補助指令登
録手段と、前記実行補助指令登録手段が登録した結果を
記憶する実行補助指令記憶手段と、実行中の第1の指令
ブロツクに対して第2の指令ブロツクが補助指令を含ん
でいる場合に前記実行補助指令記憶手段を確認すること
により、前記第1の指令ブロツクに於て補助指令を実行
中であるか否かを判定し、補助指令を実行中であれば前
記第2の指令ブロツクの補助指令の実行を待機させる補
助指令実行可否判定手段と、前記第2の指令ブロツクの
補助指令の実行時に、前記補助指令が完了待不要補助指
令の場合には前記補助指令の完了を待たずに第3の指令
ブロツクを実行させ、前記補助指令が完了待が必要な補
助指令の場合には前記補助指令の完了を待って第3の指
令ブロツクを実行させる次指令ブロツク実行可否判定手
段とを備えたことを特徴とする数値制御工作機械。
1. A numerically controlled machine tool that performs an auxiliary work for machining via a programmable controller section based on a machining program composed of a plurality of command blocks, and commands the auxiliary work. There is no problem even if the next command block is executed without waiting for the completion of the auxiliary command by the auxiliary command. Completion waiting unnecessary auxiliary command designating means for separately designating the auxiliary command unnecessary for completion, and execution at the time of execution of the auxiliary command. Execution assistance command registration means for writing the assistance command and erasing the assistance command when the assistance command is completed; execution assistance command storage means for storing the result registered by the execution assistance command registration means; When the second command block contains an auxiliary command with respect to the command block of FIG. An auxiliary command executability determining means for determining whether or not the auxiliary command is being executed in the command block, and if the auxiliary command is being executed, waiting for execution of the auxiliary command of the second command block; When the auxiliary command of the second command block is executed and the auxiliary command is a completion waiting unnecessary auxiliary command, the third command block is executed without waiting for the completion of the auxiliary command, and the auxiliary command waits for completion. A numerically controlled machine tool comprising: a next command block executability judging means for executing a third command block after waiting for the completion of the auxiliary command in the case of a necessary auxiliary command.
【請求項2】 加工プログラムをテストするテストモー
ドを有する数値制御工作機械において、前記テストモー
ド時には実行しない補助指令を指定するテストモード時
ロック指定手段と、前記テストモード時ロック指定手段
で指定された前記補助指令を記憶するテストロック記憶
手段と、前記テストモード時に前記テストロック記憶手
段を確認し、前記加工プログラムで指定された補助指令
の実行の可否を判定するテストロック判定手段とを備え
たことを特徴とする数値制御工作機械。
2. In a numerically controlled machine tool having a test mode for testing a machining program, a test mode lock designating means for designating an auxiliary command which is not executed in the test mode, and a test mode lock designating means. A test lock storage means for storing the auxiliary instruction; and a test lock determination means for checking the test lock storage means in the test mode and determining whether or not the auxiliary instruction designated by the machining program can be executed. A numerically controlled machine tool featuring.
【請求項3】 加工プログラムのテストモードを有する
とともに補助指令を実行しないようにロックするロック
手段とを有する数値制御工作機械において、前記ロック
手段により補助指令をロックしている状態にあっても実
行を可能とする補助指令を指定するテストモード時強制
出力指定手段と、前記テストモード時強制出力指定手段
で指定された前記補助指令を記憶する強制出力記憶手段
と、前記テストモード時には前記ロック手段により補助
指令をロックしている状態であっても、前記強制出力記
憶手段を確認し、前記加工プログラムで指定された補助
指令の実行の可否を判定する強制出力判定手段とを備え
たことを特徴とする数値制御工作機械。
3. A numerically controlled machine tool having a machining program test mode and lock means for locking the auxiliary instruction so that it is not executed, even if the auxiliary instruction is locked by the lock means. By a test mode forced output designating means for designating an auxiliary instruction that enables the following: a forced output storage means for storing the auxiliary instruction designated by the test mode forced output designating means; Even when the auxiliary instruction is locked, the forced output storage means is included, and the forced output determination means is provided for determining whether or not the auxiliary instruction designated by the machining program can be executed. A numerically controlled machine tool.
【請求項4】 加工プログラムのテストモードを有する
数値制御工作機械において、テストモード時における工
具の移動量を指定するテスト時移動量指定手段と、前記
テストモード時に加工プログラムで指定された工具軌跡
上を前記テスト時移動量指定手段で指定された移動量ず
つ工具を移動させて実行する指定移動距離抽出部手段と
を備えたことを特徴とする数値制御工作機械。
4. A numerical control machine tool having a machining program test mode, and a test movement amount designating means for designating a travel amount of a tool in the test mode, and a tool locus designated by the machining program in the test mode. A numerically controlled machine tool comprising: a designated movement distance extracting unit that executes the tool by moving the tool by the movement amount designated by the movement amount designating unit during the test.
JP5066626A 1992-12-28 1993-03-25 Numerically controlled machine tools Expired - Fee Related JP2973770B2 (en)

Priority Applications (12)

Application Number Priority Date Filing Date Title
JP5066626A JP2973770B2 (en) 1993-03-25 1993-03-25 Numerically controlled machine tools
DE69328266T DE69328266T2 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
DE69317540T DE69317540T2 (en) 1992-12-28 1993-12-28 Numerical control for a machine tool and method for continuing a machining program after it has been interrupted
EP97103235A EP0782056B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
EP96119192A EP0766154B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
EP93121024A EP0606649B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method to re-execute a machining program after it has been stopped
EP96119191A EP0766153A1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
DE69330144T DE69330144T2 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool
US08/429,783 US6202003B1 (en) 1992-12-28 1995-04-27 Numerically controlled machine tool and method
US08/625,076 US5793635A (en) 1992-12-28 1996-03-29 Numerically controlled machine tool and method
US08/668,718 US6397111B1 (en) 1992-12-28 1996-06-24 Numerically controlled machine tool and method
HK98109240A HK1008445A1 (en) 1992-12-28 1998-07-17 Numerically controlled machine tool and method to re-execute a machining program after it has been stopped

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5066626A JP2973770B2 (en) 1993-03-25 1993-03-25 Numerically controlled machine tools

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP13378899A Division JP3180801B2 (en) 1999-05-14 1999-05-14 Numerically controlled machine tools

Publications (2)

Publication Number Publication Date
JPH06282318A true JPH06282318A (en) 1994-10-07
JP2973770B2 JP2973770B2 (en) 1999-11-08

Family

ID=13321297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5066626A Expired - Fee Related JP2973770B2 (en) 1992-12-28 1993-03-25 Numerically controlled machine tools

Country Status (1)

Country Link
JP (1) JP2973770B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013171850A1 (en) * 2012-05-15 2013-11-21 三菱電機株式会社 Numerical control apparatus
JP2017016323A (en) * 2015-06-30 2017-01-19 ファナック株式会社 Numerical control device notifying execution of auxiliary function in advance
DE102016009435A1 (en) 2015-08-10 2017-02-16 Fanuc Corporation Numerical control to control the path in test mode near the path limit
WO2024003972A1 (en) * 2022-06-27 2024-01-04 ファナック株式会社 Program optimization device and storage medium
WO2024003990A1 (en) * 2022-06-27 2024-01-04 ファナック株式会社 Program optimization device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04332005A (en) * 1991-05-07 1992-11-19 Murata Mach Ltd Program checking device for nc device
JPH0553627A (en) * 1991-08-27 1993-03-05 Makino Milling Mach Co Ltd Method for determining execution sequence of auxiliary functions of NC program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04332005A (en) * 1991-05-07 1992-11-19 Murata Mach Ltd Program checking device for nc device
JPH0553627A (en) * 1991-08-27 1993-03-05 Makino Milling Mach Co Ltd Method for determining execution sequence of auxiliary functions of NC program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013171850A1 (en) * 2012-05-15 2013-11-21 三菱電機株式会社 Numerical control apparatus
JP5496419B1 (en) * 2012-05-15 2014-05-21 三菱電機株式会社 Numerical controller
US9798312B2 (en) 2012-05-15 2017-10-24 Mitsubishi Electric Corporation Numerical control device
JP2017016323A (en) * 2015-06-30 2017-01-19 ファナック株式会社 Numerical control device notifying execution of auxiliary function in advance
DE102016009435A1 (en) 2015-08-10 2017-02-16 Fanuc Corporation Numerical control to control the path in test mode near the path limit
US10082449B2 (en) 2015-08-10 2018-09-25 Fanuc Corporation Numerical controller for controlling stroke in test operation near stroke limit
DE102016009435B4 (en) 2015-08-10 2024-11-14 Fanuc Corporation Numerical control for controlling the path during test operation near the path limit
WO2024003972A1 (en) * 2022-06-27 2024-01-04 ファナック株式会社 Program optimization device and storage medium
WO2024003990A1 (en) * 2022-06-27 2024-01-04 ファナック株式会社 Program optimization device and storage medium

Also Published As

Publication number Publication date
JP2973770B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
EP0782056B1 (en) Numerically controlled machine tool and method
EP0521164B1 (en) Method of restarting operation of punch press machine and numerically controlled device
US7110851B2 (en) Numerically controlled device
JPH06282318A (en) Mumerically controlled machine tool
JPH06202723A (en) Numerically controlled machine tool
GB2083247A (en) A programmable machine
JP3180805B2 (en) Numerically controlled machine tools
JP3180801B2 (en) Numerically controlled machine tools
JPH0370242B2 (en)
WO1992009018A1 (en) Method for executing auxiliary function in numerical control equipment
JP3660038B2 (en) Numerical controller
JP3526475B2 (en) Overtravel detector
JPH02151909A (en) Control device for industrial machine
JPH04252307A (en) Interactive numerical controller
JP3464894B2 (en) Machine tool control method
JP4208600B2 (en) NC machine tool
JPH02306308A (en) Automatic programming device
JPH0895623A (en) Tool shift control system in cnc
JP3198638B2 (en) Machine tools that process multiple types of workpieces with multiple types of tools
JP2005085095A (en) Numerical control device, numerical control device parameter setting method, and numerical control program
JP2891354B2 (en) Punch press control device
JPH05274022A (en) Method and device for numerical control
JPH07334220A (en) Automatic operating system for numerical controller
JPH0883113A (en) Controller for nc machine tool
JPH0854916A (en) Numerical controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080903

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080903

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090903

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100903

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20110903

LAPS Cancellation because of no payment of annual fees