JP3180801B2 - Numerically controlled machine tools - Google Patents

Numerically controlled machine tools

Info

Publication number
JP3180801B2
JP3180801B2 JP13378899A JP13378899A JP3180801B2 JP 3180801 B2 JP3180801 B2 JP 3180801B2 JP 13378899 A JP13378899 A JP 13378899A JP 13378899 A JP13378899 A JP 13378899A JP 3180801 B2 JP3180801 B2 JP 3180801B2
Authority
JP
Japan
Prior art keywords
command
auxiliary
completion
execution
waiting
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
JP13378899A
Other languages
Japanese (ja)
Other versions
JPH11345016A (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.)
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
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP13378899A priority Critical patent/JP3180801B2/en
Publication of JPH11345016A publication Critical patent/JPH11345016A/en
Application granted granted Critical
Publication of JP3180801B2 publication Critical patent/JP3180801B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P70/00Climate change mitigation technologies in the production process for final industrial or consumer products
    • Y02P70/10Greenhouse gas [GHG] capture, material saving, heat recovery or other energy efficient measures, e.g. motor control, characterised by manufacturing processes, e.g. for rolling metal or metal working

Landscapes

  • Numerical Control (AREA)

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 capable of quickly performing auxiliary command processing.

【0002】[0002]

【従来の技術】近年計算機内蔵の数値制御装置(以後、
CNCと記す)を用いた工作機械(以後、数値制御工作
機械と記す)が普及し、加工分野における自動化、省力
化が推進されている。数値制御工作機械は、CNC、強
電シーケンス回路及び工作機械から構成されている。強
電シーケンス回路は、CNCと工作機械との間にあっ
て、種々の補助的な仕事を行うもので、機械の規模にも
よるが従来は通常200個から300個のリレー回路に
よってつくられていた。数値制御装置(以後、NCと記
す)が配線ロジックNCからCNCに移ったように、強
電シーケンス回路もリレー回路からマイクロプロセッサ
を用いたプログラマブルコントローラ(以後、PCと記
す)が主流になってきた。
2. Description of the Related Art In recent years, a numerical controller built in a computer (hereinafter, referred to as a numerical controller)
2. Description of the Related Art Machine tools (hereinafter, referred to as numerical control machine tools) using CNCs have become widespread, and automation and labor saving in the processing field have been promoted. The numerically controlled machine tool includes a CNC, a high-power sequence circuit, and a machine tool. The high-power sequence circuit is located between the CNC and the machine tool and performs various auxiliary tasks. Depending on the size of the machine, the high-power sequence circuit has conventionally been formed by 200 to 300 relay circuits. Just as the numerical control device (hereinafter, referred to as NC) has shifted from the wiring logic NC to the CNC, the programmable controller (hereinafter, referred to as PC) using a microprocessor has become the mainstream in the high-power sequence circuit from the relay 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 CNC.
There is C. A general-purpose PC is used for a machine tool that has hundreds of tools and an autoloader and requires a complicated sequence and input / output signals, but a built-in PC is used for most machine tools.
Is enough. In a built-in PC for a lathe or a small machining center, an independent microprocessor is not particularly prepared for the PC, and the PC function can be exhibited by utilizing the remaining power of the microprocessor for the CNC. In this case, the number of components for the PC is extremely small, and a product excellent in both reliability and cost can be realized.

【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. Transfer of data between the built-in PC and the CNC does not require a special driver / receiver and requires only a common bus (or equivalent).
Is about half the number of input / output points required when a general-purpose PC is used.

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

【0006】PC部2は、シーケンスプログラムを格納
する部分で、図示しないがコンピュータと同様な構造を
もったシーケンス制御装置であり、CPUと、主として
ROM,RAMの半導体メモリからなるプログラム記憶
装置等で構成されている。入出力回路3は機械側とのイ
ンターフェース部分で、ドライバやレシーバで構成され
ており、工作機械部20の機械操作盤12や強電回路1
3、スピンドルアンプ15等に接続される。
The PC section 2 is a part for storing a sequence program, and is a sequence control device (not shown) having the same structure as a computer, and includes a CPU, a program storage device mainly comprising semiconductor memories such as ROM and RAM, and the like. 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.
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 man-machine interface of machine tools
There is a C operation panel 11, which is usually composed of a CRT device, numeric keys, and the like, and displays data of the NC unit 1 on the CRT device and inputs data from the numeric keys.

【0008】その他、機械操作盤12は主に工作機械を
オペレータがマニュアル操作するためのもの、強電回路
13は機械各部14のアクチュータ等を制御するもの、
スピンドルアンプ15はスピンドルモータ16を制御す
るもの、速度制御ユニット17は18の送りモータを制
御するものである。
[0008] In addition, the machine operation panel 12 is mainly for the operator to manually operate the machine tool, the high-power circuit 13 is for controlling the actuator of each machine section 14, and the like.
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 a machine tool is processing such as cutting and grinding, but there are many auxiliary works for performing this processing. For example, mounting / removing a workpiece, starting / stopping a spindle motor, turning on / off a cutting oil, selecting a tool, and the like. These auxiliary tasks are processed by the PC unit 2 upon receiving an auxiliary function signal (M command), a tool selection signal (T command), and the like sent from the NC unit 1.

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

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

【0012】図13は、加工プログラムの作成から加工
物の検査までの流れを示す図である。加工図面100を
見ながら、プログラマ101はNCの加工プログラムを
作成する(ステップ102)。加工プログラムは通常の
EIAフォーマットや近年多用されるようになって来た
CNCに搭載されている自動プログラム、あるいはオフ
ラインのCAM等で作成される。103はこうして作成
されたNC加工プログラムである。
FIG. 13 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 machining program is created in a normal EIA format, an automatic program mounted on a CNC which has been frequently used in recent years, or an off-line CAM. Numeral 103 denotes 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 performed, for example, by displaying the trajectory of the machining path on the screen, since many recent CNCs are capable of graphic display and the like. If the machining program 103 is deemed to be correct, the machine tool is actually moved by idle cutting, and the machining program 103 is checked while confirming the operation of the machine tool (step 105). If it is considered that cutting can be performed correctly, a work is actually attached and trial processing is performed (step 106). If the cutting can be performed correctly, a full-scale cutting process is started (step 107).
The workpiece is inspected as needed (step 108). If a defect of the machining program is found in each of the steps 104 to 108, the machining program 103 is corrected (step 109), and the necessary steps of steps 104 to 108 are checked again.

【0014】[0014]

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

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

【0016】すなわち、第1のM指令のFINを待たず
に次のブロックを実行させ、次のブロックで第2のM指
令が存在した場合、そのまま第2のM指令をPCに出力
すれば、PCは第1のM指令を実行中であるから、第2
のM指令は無視されるとか、または第1のM指令を中断
して第2のM指令を実行してしまうといったPC内部に
おいて不具合を生じる原因となる。前記の先行技術では
特にPCとのインターフェースを変更するようなことは
記述されておらず、PCとのインターフェースは従来の
ままであるとすれば、PCがM指令を処理中に次のM指
令を出力することは許されない。また、補助指令(MS
T指令)に関して、CNCとPC間の完了処理を高速に
行わせるための方式も検討されてきた(特開昭63−2
0707号公報、特開昭64−3707号公報参照)。
しかし、これらの公報に開示の発明も、1ブロックにお
ける補助指令の完了処理を高速化させるのみで、実行中
の補助指令が完了しない限り次のブロックを実行できな
いことにかわりない。
That is, the next block is executed without waiting for the FIN of the first M command, and when the second M command is present in the next block, the second M command is output to the PC as it is. Since the PC is executing the first M command, the second
This M command is ignored or causes a trouble inside the PC such as interrupting the first M command and executing the second M command. The prior art described above does not particularly describe changing the interface with the PC, and if the interface with the PC remains unchanged, the PC issues the next M command while processing the M command. No output is allowed. In addition, the auxiliary command (MS
Regarding the T command, a method for performing the completion processing between the CNC and the PC at a high speed has been studied (Japanese Patent Laid-Open No. 63-2).
0707, and JP-A-64-3707).
However, the inventions disclosed in these publications also only speed up the completion processing of the auxiliary command in one block, and it is still possible to execute the next block unless the auxiliary command being executed is completed.

【0017】この発明は、前記第1の問題を解決するた
めになされたものであり、補助指令の完了を待つ必要の
無い補助指令に関して補助指令の完了を待たずに次のス
テップを実行する数値制御工作機械において、その補助
指令の実行を正しく行える数値制御工作機械を得ること
を目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the first problem. For an auxiliary command that does not need to wait for the completion of the auxiliary command, a numerical value for executing the next step without waiting for the completion of the auxiliary command. It is an object of the present invention to obtain a numerically controlled machine tool capable of correctly executing an auxiliary command in a control machine tool.

【課題を解決するための手段】[Means for Solving the Problems]

【0018】この発明は、加工プログラムより補助指令
が指令されたとき、その指令された補助指令をプログラ
マブルコントローラ部に対して出力し、前記プログラマ
ブルコントローラ部は前記補助指令の内容に応じて工作
機械を制御する数値制御工作機械において、前記補助指
令を、その補助指令の実行完了を待って次の指令ブロッ
クを実行させる必要がある完了待ち要補助指令と前記補
助指令の実行完了を待たずに次の指令ブロックを実行さ
せても差し支えのない完了待ち不要補助指令とに区別指
定する完了待不要補助指令指定手段と、前記補助指令の
実行時にその実行する前記補助指令を記憶手段に書き込
み、前記補助指令の実行完了時に前記書き込まれた補助
指令が実行完了したことを示す情報を前記記憶手段に
き込む実行補助指令登録手段と、加工プログラムより補
助指令が指令されたとき、前記記憶手段に記憶された内
容を確認することにより、その補助指令が指令されたブ
ロックより前のブロックで指令された補助指令が実行中
であるか否かを判定し、実行中である場合にはその指令
された補助指令の実行を待機させるとともに、実行中で
ない場合にはその補助指令を実行させる補助指令実行可
否判定手段と、この補助指令実行可否判定手段にて実行
された補助指令が、前記完了待不要補助指令指定手段に
て指定された完了待ち要補助指令、完了待ち不要補助指
令の何れかであるかを判定し、完了待ち要補助指令であ
る場合には次ブロックの実行を不許可とするとともに、
完了待ち不要補助指令である場合には次ブロックの実行
を許可する次ブロック実行可否判定手段とを備えたもの
である。
According to the present invention, when an auxiliary command is issued from a machining program, the commanded auxiliary command is output to a programmable controller unit, and the programmable controller unit controls the machine tool in accordance with the content of the auxiliary command. In the numerically controlled machine tool to be controlled, the auxiliary command is transmitted to the next command without waiting for completion of the auxiliary command, which is required to wait for completion of the execution of the auxiliary command and execute the next command block without waiting for completion of the auxiliary command. A completion waiting unnecessary auxiliary command designating means for discriminating and specifying the completion waiting unnecessary auxiliary command which does not interfere with execution of the command block, and writing the auxiliary command to be executed at the time of executing the auxiliary command into a storage means. When the execution of the auxiliary command is completed, the information indicating that the written auxiliary command is completed is written into the storage unit. And assist instruction registration means, when the auxiliary command from machining program is commanded, the by checking the contents stored in the storage means, the auxiliary commands that assist command is commanded in the block before the command block Auxiliary command execution determination means for determining whether or not is being executed, and if it is being executed, waits for execution of the instructed auxiliary command, and if not, executing the auxiliary command. The auxiliary command executed by the auxiliary command execution availability determination means is transmitted to the completion wait unnecessary auxiliary command specifying means.
It is determined whether the command is an auxiliary command requiring completion wait or an auxiliary command not requiring completion wait, and if the command is an auxiliary command requiring wait for completion, execution of the next block is not permitted, and
If it is a completion waiting unnecessary auxiliary command, it is provided with a next block execution availability determination means for permitting execution of the next block .

【0019】[0019]

【発明の実施の形態】実施の形態1.以下この発明に係
る数値制御工作機械について説明する。図1はこの発明
の実施の形態1による内蔵型PC付きのCNCを使用し
たCNC工作機械の概要構成図である。図において、1
AはNC部、1OAはCNC部、51は完了待不要の補
助指令を指定する完了待不要補助指令指定部、52は実
行する補助指令を登録する実行補助指令登録部、53は
実行補助指令登録部52で登録する実行補助指令を格納
する実行中補助指令記憶部、54は補助指令が指令され
た場合に実行中補助指令記憶部53をチェックし、指令
された補助指令を実行出来るか否かを判定する補助指令
実行可否判定部、55は実行中の補助指令の完了を待つ
ことなしに次ブロックを実行出来るか否かを判定する次
ブロック実行可否判定部である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Hereinafter, a numerically controlled machine tool according to the present invention will be described. FIG. 1 is a schematic configuration diagram of a CNC machine tool using a CNC with a built-in PC according to Embodiment 1 of the present invention. In the figure, 1
A is an NC unit, 1OA is a CNC unit, 51 is an auxiliary command designation unit that does not need to wait for completion to specify an auxiliary command that does not need to wait, 52 is an execution auxiliary command registration unit that registers an auxiliary command to be executed, and 53 is an execution auxiliary command registration An auxiliary command storage unit for storing the execution auxiliary command registered in the unit 52, an auxiliary command storage unit for execution 54 checks the auxiliary command storage unit 53 for execution when an auxiliary command is specified, and determines whether the specified auxiliary command can be executed. Is a next block execution possibility determination unit that determines whether the next block can be executed without waiting for the completion of the auxiliary command being executed.

【0020】また、56はテストモード中には実行しな
い補助指令を指定するテストモード時ロック指定手段、
57は前記テストモード時ロック指定手段で指定された
前記補助指令を記憶するテストロック記憶手段、58は
前記テストモード時に前記テストロック記憶手段を確認
し、前記加工プログラムで指定された補助指令の実行の
可否を判定するテストロック判定手段、59は図示しな
い補助指令を実行しないようにロックするロック手段に
より補助指令をロックしている状態にあっても実行を可
能とする補助指令を指定するテストモード時強制出力指
定手段である。
Reference numeral 56 denotes a test mode lock designating means for designating an auxiliary command which is not executed during the test mode.
57 is a test lock storing means for storing the auxiliary command specified by the test mode lock specifying means, 58 is a check for the test lock storing means in the test mode, and execution of the auxiliary command specified by the machining program A test lock determining means 59 for determining whether or not the auxiliary command can be executed even when the auxiliary command is locked by a locking means (not shown) for locking the auxiliary command so as not to be executed; Time forced output designating means.

【0021】また、60は前記テストモード時強制出力
指定手段で指定された前記補助指令を記憶する強制出力
記憶手段、61は前記テストモード時には前記ロック手
段により補助指令をロックしている状態であっても、前
記強制出力記憶手段を確認し、前記加工プログラムで指
定された補助指令の実行の可否を判定する強制出力判定
手段である。また、図10と同一符号のものは同一内容
であり、説明は省略する。
Reference numeral 60 denotes a forced output storage means for storing the auxiliary command specified by the test mode forced output specifying means, and 61 denotes a state in which the auxiliary command is locked by the lock means in the test mode. However, it is also a forced output determination unit that checks the forced output storage unit and determines whether the auxiliary command specified by the machining program can be executed. Also, the components having the same reference numerals as those in FIG. 10 have the same contents, and the description is omitted.

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

【0023】164はテスト・モード時にM指令の出力
をロックするM指令を指定するテーブルであり(以後、
「テストロック」部と記す)、「テストロック」部16
4に「*」が付加されたM指令に関してはテスト・モー
ド時にこのM指令が指令されてもM指令の出力を行わな
いようにするものである。「*」の指定は該当するM指
令の「テストロック」部164にカーソルを移動させ、
テスト・モード時にM指令の出力をロックするM指令で
あれば数値の「1」をキーインする。「1」がキーイン
されると画面上では「*」のマークが表示され、該当す
るM指令がテスト・モード時にM指令の出力をロックす
るM指令として指定されたことを示す。テスト・モード
時にM指令の出力をロックしない通常のM指令であれ
ば、「0」をキーインする。「0」がキーインされた場
合は、画面上では該当部分が空欄となる。
Reference numeral 164 denotes a table for specifying an M command for locking the output of the M command in the test mode (hereinafter, a table 164).
"Test lock" section), "Test lock" section 16
Regarding the M command in which “*” is added to 4, the M command is not output even if the M command is issued in the test mode. The designation of “*” moves the cursor to the “test lock” section 164 of the corresponding M command,
If it is an M command that locks the output of the M command in the test mode, a numerical value “1” is keyed in. When "1" is keyed in, a mark "*" is displayed on the screen, indicating that the corresponding M command has been designated as the M command for locking the output of the M command in the test mode. If it is a normal M command that does not lock the output of the M command in the test mode, “0” is keyed in. When "0" is keyed in, the corresponding portion is blank on the screen.

【0024】また、165は補助指令ロック時にもM指
令の出力を行うM指令を指定するテーブルであり(以
後、「強制出力」部と記す)、「強制出力」部165に
「*」が付加されたM指令に関しては補助指令ロック時
にもM指令の出力を行うようにするものである。「*」
の指定は該当するM指令の「強制出力」部165にカー
ソルを移動させ、補助指令ロック時にもM指令の出力を
行うM指令であれば数値の「1」をキーインする。
「1」がキーインされると画面上では「*」のマークが
表示され、該当するM指令が補助指令ロック時にもM指
令の出力を行うM指令として指定されたことを示す。補
助指令ロック時にはM指令の出力を行わない通常のM指
令であれば、「0」をキーインする。「0」がキーイン
された場合は、画面上では該当部分が空欄となる。
Reference numeral 165 denotes a table for designating an M command for outputting the M command even when the auxiliary command is locked (hereinafter, referred to as a "forced output" portion). "*" Is added to the "forced output" portion 165. With respect to the set M command, the M command is output even when the auxiliary command is locked. "*"
Is designated, the cursor is moved to the “forced output” section 165 of the corresponding M command, and if the M command is to output 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 has been designated as the M command for outputting 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 portion is blank on the screen.

【0025】先ず、図1〜図7を用いて、加工時の加工
プログラムの実行動作、特にM指令の実行動作について
説明する。即ち、図3は加工プログラムの加工実行動作
時のM指令の状態を示すテーブルである。このテーブル
147には、PC部2が実行中のM指令値(以後、MD
と記す)151が格納される。このMD151には、P
C部2でM指令を実行している場合には実行中のM指令
が、M指令を実行していない場合には「−1」の値が格
納されている。
First, the execution operation of a machining program during machining, particularly the execution operation of an M command, will be described with reference to FIGS. That is, FIG. 3 is a table showing the state of the M command during the machining execution operation of the machining program. This table
147 indicates an M command value (hereinafter referred to as MD) being executed by the PC unit 2.
151) is stored. In this MD 151, P
When the M command is being executed by the C unit 2, the M command being executed is stored. When the M command is not being executed, a value of “−1” is stored.

【0026】図4は加工プログラムの加工実行動作時の
M指令の出力処理を示すフローチャートである。M指令
が指令された場合、NC部1では図3で示したMD15
1の値が「−1」か否かをチェックすることでPC部2
においてM指令が実行中であるかどうかを判別する(ス
テップ1201)。M指令がPC部2において実行中で
あれば、PC部2に対して次のM指令を実行させること
はできないため、M指令の出力を未完了として終了する
(ステップ1209)。この場合、M指令が未処理であ
るから次の指令の実行には移らず、後から再度図4に示
すM指令の出力処理を行うことになる。
FIG. 4 is a flowchart showing the output processing of the M command during the machining execution operation of the machining program. When the M command is instructed, the NC unit 1 causes the MD 15 shown in FIG.
Checking whether the value of 1 is "-1" or not, the PC unit 2
Then, it is determined whether or not the M command is being executed (step 1201). If the M command is being executed by the PC unit 2, the PC unit 2 cannot execute the next M command, so that the output of the M command is not completed and the process ends (step 1209). In this case, since the M command has not been processed, the process does not proceed to the execution of the next command, and the output process of the M command shown in FIG. 4 is performed again later.

【0027】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 unit 2, the designated M command value is stored in the MD 151 (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). Next, it is determined whether the waiting for completion of the M command is an unnecessary M command (step 1205). This is shown in FIG.
Is to determine whether or not the command is an M command in which “*” is specified in the “waiting for completion unnecessary” section 163.

【0028】M指令の完了待が必要なM指令であれば、
次命令実行不許可とする(ステップ1206)。この
「次指令実行不許可」となった場合、次指令の実行はM
指令の完了を待ってから行うものとする。M指令の完了
待が不要なM指令であれば、次命令実行許可とする(ス
テップ1207)。この「次指令実行許可」となった場
合、次指令の実行はM指令の完了を待つことなしに行う
ものとする。M指令のPC部2への出力は完了したた
め、M指令の出力完了として終了する(ステップ120
8)。
If the M command needs to wait for the completion of the M command,
Execution of the next instruction is not permitted (step 1206). When this “next command execution is not permitted”, the execution of the next command is M
It shall be performed after the completion of the command. If the M command does not need to wait for completion of the M command, execution of the next command is permitted (step 1207). When the “next command execution permission” is reached, 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 has been completed, the process ends as the output of the M command is completed (step 120).
8).

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

【0030】図5は加工プログラムの加工実行動作時の
M指令の完了処理を示すフローチャートである。PC部
2において、指令されたM指令が完了した場合、完了信
号(FIN)がNC部1に対して送られる。これを受け
て、NC部1は以下の処理を行う。まず、PC部2にお
いて実行されているM指令は存在しないので、MD15
1の値を「−1」に設定する(ステップ1301)。次
に、MF信号をOFFにし(ステップ1302)、FI
N信号をOFFにする(ステップ1303)、最後にM
指令BCD出力をOFFにして(ステップ1304)終
了する。
FIG. 5 is a flowchart showing the completion processing of the M command during the machining execution operation of the machining program. In the PC section 2, when the commanded M command is completed, a completion signal (FIN) is sent to the NC section 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 MD 15
The value of 1 is set to "-1" (step 1301). Next, the MF signal is turned off (step 1302), and the FI
The N signal is turned off (step 1303).
The command BCD output is turned off (step 1304) and the process ends.

【0031】図は、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. 6 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 to be output to the unit 2,
Reference numeral 17 denotes a value of the MD 151, and reference numerals 221 to 226 denote internal states of the PC unit 2. Now, when Ma is commanded (2
01), the value of MD 151 is “−1” (21)
1) The data is output to the PC unit 2 as it is, and the value of the MD 151 is changed to “a”. Here, a is a command value of M.

【0032】PC部2はこれを受けてMaの実行を行う
(221)。Maの実行が終了した時点(222)でM
D151の値は「−1」となる(213)。次のM指令
Mbが指令された場合(202)、MD151の値が
「−1」であるから(213)そのままPC部2へデー
タを出力し、MD151の値を「b」に変更する。ここ
でbはMの指令値である。
The PC section 2 receives this and executes Ma (221). At the time when execution of Ma is completed (222), M
The value of D151 is "-1" (213). When the next M command Mb is instructed (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 a command value of M.

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

【0034】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)。なお、図の例に
おいて、Ma,Mb,McはすべてM指令の完了を待た
なくてもよいM指令であるとする。
When the execution of Mb is completed, the PC 2
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
Is changed to “c”. Here, c is a command value of M. The PC section 2 receives this and executes Mc (22)
5). When the execution of Mc ends (226), MD15
The value of 1 is set to "-1" (226). In the example of FIG. 6 , it is assumed that Ma, Mb, and Mc are all M commands that need not wait for the completion of the M command.

【0035】また、上記の例では、従来のNC部1とP
C部2とのインターフェースそのままの場合を示した
が、近年多くなってきている内蔵型PCの場合には、N
C部1とPC部2とは共通メモリを有して互いにデータ
を交換できるような構造になっているものが多いため、
従来のNC部1とPC部2とのインターフェースをとる
必要が無くなってきている。
In the above example, the conventional NC unit 1 and P
Although the case where the interface with the C unit 2 is used as is is shown, in the case of a built-in PC which has been increasing recently, N
Many of the C unit 1 and the PC unit 2 have a structure that has a common memory and can exchange data with each other.
It is no longer necessary to provide an interface between the conventional NC unit 1 and PC unit 2.

【0036】例えば、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, the signal of MF or FIN is N
This is necessary when the C unit 1 and the PC unit 2 can only transmit and receive data in bit units. In a system having a built-in PC, the NC unit 1 and the PC unit 2 have a common memory, If you can freely exchange data with each other, MD151
The processing of the M command can be performed only by the above. That is, the 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 to the MD 151. When notifying the NC section 1 of the completion from the PC section 2, simply set the MD 151 to “−1”. Is fine.

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

【0038】なお、前記においては、M指令の完了を待
つ必要の無いM指令を画面から設定したが、加工プログ
ラム中でM指令の完了を待つ/待たないの区別を指定す
るようにしてもよい。例えば、M指令の完了を待つ必要
のあるM指令は M123; のように大文字の「M]でM指令値を定義し、M指令の
完了を待つ必要のないM指令は m123; のように小文字の「m」でM指令値を定義し、図4及び
図6のステップ1205の判定を、指定されたM指令が
「M」で指令されたか「m」で指令されたかを判別する
ようにすればよい。
In the above description, the M command that does not need to wait for the completion of the M command is set from the screen, but a distinction between waiting for the completion of the M command and not waiting may be specified in the machining program. . For example, the M command that needs to wait for the completion of the M command defines the M command value with a capital letter "M", such as M123; and the M command that does not need to wait for the completion of the M command, uses a lowercase letter, such as m123; The M command value is defined by “m”, and the determination in step 1205 of FIGS. 4 and 6 is performed so as to determine whether the designated M command is commanded by “M” or “m”. I just need.

【0039】また、Mの区別は上記に限るものではな
く、M指令の完了を待つ必要のあるM指令は M123; のようにM指令値を従来通り「+」の値で定義し、M指
令の完了を待つ必要のないM指令は M−123; のように「−」の値でM指令値を定義するようにしても
よい。この他、加工プログラム中で両者を区分する方法
として、 「M123;」 , 「Mw123;」 のようにM指令の完了を待つ必要のないM指令に小文字
を付加したり、 「M123;」 , 「M$123;」 のようにM指令の完了を待つ必要のないM指令に特殊文
字を付加したりする事も可能である。なおこのように、
図2で示すような仕方で完了待不要補助指令を区別指定
する代りに、完了待不要補助指令を加工プログラム中で
大文字/小文字或は符号の有無等により区別指定可能と
した場合、次ブロツク実行可否判定部55は、加工プロ
グラム中での補助指令の区別指定により完了待要補助指
令と完了待不要補助指令との判定をする。この実施の形
態1における加工時の加工プログラムの実行動作、特に
M指令の実行動作は、以上説明したように動作する。
Further, the distinction of M is not limited to the above. For the M command which needs to wait for the completion of the M command, the M command value is defined by a value of "+" as in the past, such as M123; The M command that does not need to wait for the completion of may be defined as a value of “−”, such as M-123; In addition, as a method of separating the two in the machining program, a lowercase letter is added to an M command that does not need to wait for completion of the M command, such as “M123;” and “Mw123;”, or “M123;”, “M123;” It is also possible to add a special character to the M command that does not need to wait for the completion of the M command as in M @ 123; In this way,
Instead of distinguishing specify completion waiting unnecessary assisting command in the manner shown in Figure 2, when a distinguishable specified by the presence or absence of upper / lower case or symbols such as the completion waiting unnecessary assisting command in the machining program, Tsugibu lock The execution availability determination unit 55 determines whether the completion waiting auxiliary command or the completion waiting unnecessary auxiliary command is specified by the distinction designation of the auxiliary command in the machining program. The execution operation of the machining program, particularly the execution of the M command, during machining in the first embodiment operates as described above.

【0040】次に、加工プログラムをテストモードでテ
ストする場合の動作について、図1、図2及び図8を用
いて説明する。図8はM指令の出力処理を示すフローチ
ャートである。M指令が指令された場合、テスト・モー
ド時であるかどうかを判別する(ステップ1401)。
このテスト・モードの指定は、NC操作盤11上の選択
スイッチ(図示せず)で行う。
Next, the operation when the machining program is tested in the test mode will be described with reference to FIGS. 1, 2 and 8. FIG. 8 is a flowchart showing the output processing of the M command. If the M command has been issued, it is determined whether or not it is in the test mode (step 1401).
This test mode is designated by a selection switch (not shown) on the NC operation panel 11.

【0041】テスト・モード時でなければ、通常通りに
M指令の出力処理を行う(ステップ1403)。テスト
・モード時であれば、指定されたM指令がテスト・モー
ド時にM指令の出力をロックするM指令かどうかを確認
する(ステップ1402)。これは、図2において、
「テストロック」部164に「*」の指定がなされてい
るM指令かどうかを判別することである。テスト・モー
ド時にM指令の出力をロックするM指令であれば、M指
令の出力を行わずに終了する。これは指定されたM指令
を無視したことを意味する。この実施の形態1における
数値制御工作機械は、加工プログラムをテストモードで
テストする場合、以上説明したように動作する。
If not in the test mode, the output processing of the M command is performed as usual (step 1403). If in the test mode, it is checked whether the designated M command is an M command for locking the output of the M command in the test mode (step 1402). This is shown in FIG.
This is to determine whether or not the command is an M command in which “*” is designated in the “test lock” section 164. If the command is an M command that 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 has been ignored. The numerically controlled machine tool according to the first embodiment operates as described above when a machining program is tested in the test mode.

【0042】次に、加工プログラムを、補助指令を実行
しないようにロックするロック手段が動作している状態
でテストする場合の動作について、図1、図2及び図9
を用いて説明する。即ち、図9はM指令の出力処理を示
すフローチャートである。M指令が指令された場合、補
助指令ロック時であるかどうかを判別する(ステップ1
501)。この補助指令ロックの指定は、NC操作盤1
1上の選択スイッチ(図示せず)で行う。
Next, FIGS. 1, 2 and 9 show the operation when the machining program is tested in a state where the lock means for locking the auxiliary program so as not to execute the auxiliary command is operating.
This will be described with reference to FIG. That is, 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 1).
501). This auxiliary command lock is specified by the NC operation panel 1
1 by using a selection switch (not shown).

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

【0044】補助指令ロック時にM指令の出力を行うM
指令でなければ、M指令の出力を行わずに終了する。こ
れは指定されたM指令を無視したことを意味する。補助
指令ロック時にM指令の出力を行うM指令であれば、補
助指令ロック時であってもM指令の出力を行う(ステッ
プ1503)。この実施の形態1における数値制御工作
機械は、加工プログラムを、補助指令を実行しないよう
にロックするロック手段が動作している状態でテストす
る場合、以上説明したように動作する。
M for outputting M command when auxiliary command is locked
If not, the process is terminated without outputting the M command. This means that the specified M command has been 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). The numerically controlled machine tool according to the first embodiment operates as described above when a machining program is tested in a state in which a lock unit that locks so as not to execute an auxiliary command is operating.

【0045】[0045]

【発明の効果】この発明に係る数値制御工作機械によれ
ば、次のような効果を奏する。即ち、指令された補助指
令が完了を待つ必要のない補助指令である場合、加工時
間を短縮させるため、特開昭62―189506号公報
に記載の発明のように、無条件にその補助指令の実行が
完了する前に、その補助指令が存在するブロックの次の
ブロック(Gコードである場合もあるし、補助指令であ
る場合もある)を実行させるように構成すると、次のよ
うな不具合が生じる。即ち、加工プログラムが、補助指
令が存在するブロックの次ブロックがGコードである場
合にはその補助指令の実行が完了する前に、その補助指
令が存在するブロックの次のブロックを実行させても何
等問題ない。ところが、例えば、補助指令が存在するブ
ロックの次ブロックにも補助指令が存在するものである
場合、前ブロックに存在する補助指令の実行が完了する
前に次ブロックの補助指令を実行すると、プログラマブ
ルコントローラ部が前のブロックに存在する補助指令を
未だ実行中である場合があり、このような場合、次ブロ
ックの補助指令が無視されるか、その実行中の補助指令
の実行を中断して次ブロックの補助指令を実行してしま
うといった不具合が生じるが、第1の発明によれば、こ
のような不都合は生じない。なお、この不具合を解消す
るため、既存のプログラマブルコントローラ部を変更す
ることも考えられるが、既存のプログラマブルコントロ
ーラ部を変更することは大幅な構成変更を伴い実用的で
はない。
According to the numerically controlled machine tool according to the present invention, the following effects can be obtained. That is, if the commanded auxiliary command is an auxiliary command that does not need to wait for completion, in order to reduce the processing time, as in the invention described in Japanese Patent Application Laid-Open No. 62-189506, the auxiliary command If the system is configured to execute the block (which may be a G code or an auxiliary command) next to the block in which the auxiliary command exists before the execution is completed, the following problem occurs. Occurs. That is, even if the machining program causes the block following the block in which the auxiliary command exists to be executed before the completion of the execution of the auxiliary command if the block following the block in which the auxiliary command exists is the G code. No problem. However, for example, if the auxiliary command is also present in the block next to the block in which the auxiliary command is present, if the auxiliary command of the next block is executed before the execution of the auxiliary command in the previous block is completed, the programmable controller In some cases, the sub-unit may still be executing the auxiliary command existing in the previous block.In such a case, the auxiliary command of the next block is ignored or the execution of the auxiliary command being executed is interrupted and the next block is executed. However, according to the first aspect, such an inconvenience does not occur. In order to solve this problem, it is conceivable to change the existing programmable controller. However, changing the existing programmable controller is not practical due to a significant change in configuration.

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

【図1】 この発明の実施の形態1を示す、内蔵型PC
付きCNCを使用したCNC工作機械の概要構成図であ
る。
FIG. 1 shows a built-in PC according to a first embodiment of the present invention.
FIG. 1 is a schematic configuration diagram of a CNC machine tool using a CNC with a hole.

【図2】 この発明の実施の形態1に係るM指令の指定
を行う画面表示例を示す図である。
FIG. 2 is a diagram showing an example of a screen display for designating an M command according to Embodiment 1 of the present invention;

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

【図4】 この発明の実施の形態1に係るM指令の出力
処理を示すフローチャートである。
FIG. 4 is a flowchart showing output processing of an M command according to Embodiment 1 of the present invention.

【図5】 この発明の実施の形態1に係るM指令の完了
処理を示すフローチャートである。
FIG. 5 is a flowchart showing completion processing of an M command according to Embodiment 1 of the present invention.

【図6】 この発明の実施の形態1に係るNC部とPC
部の処理を説明する図である。
FIG. 6 shows an NC unit and a PC according to Embodiment 1 of the present invention.
FIG. 9 is a diagram illustrating processing of a unit .

【図7】 この発明の実施の形態1に係るM指令の出力
処理の変形例を示すフローチャートである。
FIG. 7 is an output of an M command according to the first embodiment of the present invention.
It is a flowchart which shows the modification of a process .

【図8】 この発明の実施の形態1に係る、加工プログ
ラムをテストモードでテストする場合の動作を示すフロ
ーチャートである。
FIG. 8 is a flowchart showing an operation when a machining program is tested in a test mode according to the first embodiment of the present invention.

【図9】 この発明の実施の形態1に係る、加工プログ
ラムを、補助指令を実行しないようにロックするロック
手段が動作している状態でテストする場合の動作を示す
フローチャートである。
FIG. 9 is a flowchart showing an operation in a case where the machining program is tested in a state in which a lock unit that locks so as not to execute an auxiliary command is operating, according to the first embodiment of the present invention;

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

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

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

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

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 加工プログラムより補助指令が指令され
たとき、その指令された補助指令をプログラマブルコン
トローラ部に対して出力し、前記プログラマブルコント
ローラ部は前記補助指令の内容に応じて工作機械を制御
する数値制御工作機械において、前記補助指令を、その
補助指令の実行完了を待って次の指令ブロックを実行さ
せる必要がある完了待ち要補助指令と前記補助指令の実
行完了を待たずに次の指令ブロックを実行させても差し
支えのない完了待ち不要補助指令とに区別指定する完了
待不要補助指令指定手段と、前記補助指令の実行時にそ
の実行する前記補助指令を記憶手段に書き込み、前記補
助指令の実行完了時に前記書き込まれた補助指令が実行
完了したことを示す情報を前記記憶手段に書き込む実行
補助指令登録手段と、加工プログラムより補助指令が指
令されたとき、前記記憶手段に記憶された内容を確認す
ることにより、その補助指令が指令されたブロックより
前のブロックで指令された補助指令が実行中であるか否
かを判定し、実行中である場合にはその指令された補助
指令の実行を待機させるとともに、実行中でない場合に
はその補助指令を実行させる補助指令実行可否判定手段
と、この補助指令実行可否判定手段にて実行された補助
指令が、前記完了待不要補助指令指定手段にて指定され
完了待ち要補助指令、完了待ち不要補助指令の何れか
であるかを判定し、完了待ち要補助指令である場合には
次ブロックの実行を不許可とするとともに、完了待ち不
要補助指令である場合には次ブロックの実行を許可する
次ブロック実行可否判定手段とを備えてなる数値制御工
作機械。
When an auxiliary command is issued from a machining program, the auxiliary command is output to a programmable controller, and the programmable controller controls a machine tool according to the content of the auxiliary command. In the numerically controlled machine tool, the auxiliary command is transmitted to the next command block without waiting for completion of the auxiliary command which needs to wait for completion of execution of the auxiliary command and execute the next command block without waiting for completion of execution of the auxiliary command. allowed to run to distinguish specified in the completion waiting unnecessary assist command no safe to complete
And waiting unnecessary assist command specifying means, said auxiliary its run when running the command writes the auxiliary command in the storage means, the written assist command the storage information indicating that a complete run the upon completion execution of assist command and executing assist command register means for writing the unit, when the auxiliary command is commanded from the machining program, by checking the contents stored in the storage means, commanded by the previous block from the block in which the assist command is commanded Auxiliary command for determining whether or not a given auxiliary command is being executed, and if so, suspending execution of the specified auxiliary command, and executing the auxiliary command if not. The execution instruction determining means and the auxiliary instruction executed by the auxiliary instruction execution determining means are designated by the completion wait unnecessary auxiliary instruction designating means.
Completion waiting main assist instruction was to determine whether any of completion waiting unnecessary assist instruction, while not permitted to execute the next block if it is waiting to complete essential auxiliary command is waiting to complete required assist command Allow execution of next block in case
A numerically controlled machine tool comprising : a next block execution availability determination unit.
JP13378899A 1999-05-14 1999-05-14 Numerically controlled machine tools Expired - Fee Related JP3180801B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
JPH11345016A JPH11345016A (en) 1999-12-14
JP3180801B2 true JP3180801B2 (en) 2001-06-25

Family

ID=15113033

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP3180801B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6077601B2 (en) * 2014-08-22 2017-02-08 ファナック株式会社 Numerical control device that shortens the cycle time of machining programs
JP7330792B2 (en) * 2019-07-25 2023-08-22 シチズン時計株式会社 Machine Tools

Also Published As

Publication number Publication date
JPH11345016A (en) 1999-12-14

Similar Documents

Publication Publication Date Title
EP0766154B1 (en) Numerically controlled machine tool and method
EP1560089B1 (en) Numerical control apparatus with integrated programmable controller with adaptation of displayed text to multiple languages and views
US4616307A (en) Programmable controller alarm display method
US4714999A (en) Numerical control method
US5930141A (en) Method of controlling access to storage means in numerical-control system, and numerical-control system
JP2973770B2 (en) Numerically controlled machine tools
JP2998473B2 (en) Numerically controlled machine tools
JP3180801B2 (en) Numerically controlled machine tools
KR920004080B1 (en) Numerical control device
JP3180805B2 (en) Numerically controlled machine tools
JP2002268715A (en) Machine tool
WO1992009018A1 (en) Method for executing auxiliary function in numerical control equipment
EP0829789A1 (en) Parameter setting method for cnc machine
JPH0651258B2 (en) NC controller with automatic return function
JPS63311408A (en) Numerical controller
JPS6217805A (en) Display method for program error in nc device
JPH0916236A (en) Nc control system
JP2875801B2 (en) DNC equipment
JPH10240330A (en) Numerical controller
JP4265423B2 (en) Machine control device
JP2584225B2 (en) Numerical control unit
JP3535408B2 (en) Numerical control unit
JP4208600B2 (en) NC machine tool
JPS6149206A (en) Process operation method
JP3198638B2 (en) Machine tools that process multiple types of workpieces with multiple types of tools

Legal Events

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