JP2850273B2 - Numerical control unit - Google Patents

Numerical control unit

Info

Publication number
JP2850273B2
JP2850273B2 JP3109995A JP10999591A JP2850273B2 JP 2850273 B2 JP2850273 B2 JP 2850273B2 JP 3109995 A JP3109995 A JP 3109995A JP 10999591 A JP10999591 A JP 10999591A JP 2850273 B2 JP2850273 B2 JP 2850273B2
Authority
JP
Japan
Prior art keywords
command
machine
timer
display
stop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3109995A
Other languages
Japanese (ja)
Other versions
JPH04357505A (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 JP3109995A priority Critical patent/JP2850273B2/en
Publication of JPH04357505A publication Critical patent/JPH04357505A/en
Application granted granted Critical
Publication of JP2850273B2 publication Critical patent/JP2850273B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、操作者が介在しなく
ても装置を停止させることなく自動的にプログラムチェ
ックする数値制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller for automatically performing a program check without stopping the apparatus without the intervention of an operator.

【0002】[0002]

【従来の技術】図5は従来の放電加工装置を示すブロッ
ク回路図である。図に於いて、1は更新手段で、アドレ
スカウンタ回路等からなり、解析手段(後述説明)から
のインクリメント命令により記憶手段(後述説明)に格
納された実行プログラムに対するアドレスcを出力す
る。2は記憶手段で、メモリ等からなり、更新手段1か
らのアドレス指定に対応した実行プログラムの1ブロッ
ク命令dを解析手段に出力する。3は解析手段で、CP
U等からなり、記憶手段2に格納された実行プログラム
を取り出すために更新手段1にインクリメント命令aを
出力し、更新手段1で指定されたアドレスに基づいて記
憶手段2に格納された放電加工の処理手順である実行プ
ログラムを1ブロック毎に(一命令毎)に解析し、その
解析された1ブロックのプログラム命令に基づいて制御
データである機械テーブル移動指令データf及び表示デ
ータhと制御信号gを出力すると共に、そのプログラム
命令が停止コードである場合は、機械テーブル等を停止
させる制御信号として停止指令が出力される。4は機械
操作ボードで、解析手段3に機械指令を行うためのキー
入力部等からなり、操作者のキー入力に基づいて機械テ
ーブル等を操作する。
2. Description of the Related Art FIG. 5 is a block circuit diagram showing a conventional electric discharge machine. In the figure, reference numeral 1 denotes an updating means, which comprises an address counter circuit or the like, and outputs an address c for an execution program stored in a storage means (described later) by an increment command from an analyzing means (described later). Reference numeral 2 denotes a storage unit, which includes a memory or the like, and outputs one block instruction d of the execution program corresponding to the address designation from the update unit 1 to the analysis unit. 3 is an analysis means, CP
U, and outputs an increment instruction a to the updating means 1 in order to retrieve the execution program stored in the storing means 2, and based on the address designated by the updating means 1, An execution program, which is a processing procedure, is analyzed for each block (for each instruction), and based on the analyzed program instruction of one block, machine table movement command data f and display data h and control data g, which are control data, and a control signal g. Is output, and when the program instruction is a stop code, a stop command is output as a control signal for stopping the machine table or the like. Reference numeral 4 denotes a machine operation board, which includes a key input unit and the like for issuing a machine command to the analysis unit 3, and operates a machine table and the like based on a key input by an operator.

【0003】5は機械制御手段で、加工テーブル及びモ
ータ駆動軸等を制御する制御回路からなり、解析手段3
からの機械テーブル移動指令データf及びその機械テー
ブル移動指令データに対応する制御信号gの入力に基づ
いて加工テーブル及びモータ駆動軸等を有する機械装置
を制御する。6は表示手段で、表示制御回路等からな
り、解析手段3からの表示データh及びその表示データ
に対応する制御信号gの入力に基づいて被加工物の形状
やその被加工物を加工する機械テーブル及びモータ駆動
軸等の座標位置をCRT7に表示制御する。
Reference numeral 5 denotes a machine control means which comprises a control circuit for controlling a machining table, a motor drive shaft and the like.
And a machine device having a machining table, a motor drive shaft, and the like, based on the input of the machine table movement command data f and the control signal g corresponding to the machine table movement command data. Reference numeral 6 denotes a display means, which comprises a display control circuit and the like, and is a machine for processing the shape of the workpiece and the workpiece based on the input of the display data h from the analyzing means 3 and the control signal g corresponding to the display data. The coordinate positions of the table, the motor drive shaft and the like are displayed and controlled on the CRT 7.

【0004】従来の放電加工装置は上記のように構成さ
れており、図6は図5の動作を示すフローチャートであ
り、その動作を説明する。先ず、ステップ1に於いて、
解析手段3は記憶手段2のメモリに格納された実行プロ
グラムをプログラムチェックするためにその1ブロック
の実行プログラムを解析して機械テーブル移動指令デー
タf、制御信号g、表示データh及び制御信号g等を生
成する。
A conventional electric discharge machine is constructed as described above. FIG. 6 is a flowchart showing the operation of FIG. 5, and the operation will be described. First, in step 1,
The analysis means 3 analyzes the execution program of one block in order to program-check the execution program stored in the memory of the storage means 2 and executes machine table movement command data f, control signal g, display data h, control signal g, etc. Generate

【0005】ステップ2に於いて、解析手段3はその解
析された実行プログラムが加工処理を一時的に停止させ
る停止コードであるかどうか判断し、停止コードでない
場合はステップ3に進み、停止コードである場合はステ
ップ4に進む。
In step 2, the analyzing means 3 determines whether or not the analyzed execution program is a stop code for temporarily stopping the machining process. If so, go to step 4.

【0006】ステップ3に於いて、解析手段3から機械
テーブル移動指令データf及びその機械テーブル移動指
令データに対応する制御信号gが機械制御手段5に出力
され、機械制御手段5は機械テーブル移動指令データf
及びその制御信号gに基づいて機械テーブル及びモータ
駆動軸等を駆動制御する。又、解析手段3から表示デー
タh及びその表示データに対応する制御信号gが表示手
段6に出力され、表示手段6は表示データh及びその制
御信号gに基づいて被加工物の形状や機械テーブル等の
座標位置並びに加工速度等の加工状態をCRT7に表示
させる。
At step 3, the machine table movement command data f and a control signal g corresponding to the machine table movement command data are output from the analysis means 3 to the machine control means 5, and the machine control means 5 outputs the machine table movement command. Data f
And drive control of a machine table, a motor drive shaft and the like based on the control signal g. Further, the display data h and the control signal g corresponding to the display data are output from the analysis means 3 to the display means 6, and the display means 6 outputs the shape of the workpiece and the machine table based on the display data h and the control signal g. And the processing state such as the processing speed are displayed on the CRT 7.

【0007】ステップ4に於いて、解析手段3から停止
指令の制御信号gが機械制御手段5に出力され、機械制
御手段5は停止指令の制御信号gに基づいて機械テーブ
ル及びモータ駆動軸等を停止させる。又、解析手段3か
ら同様に表示手段6に停止指令の制御信号gが出力さ
れ、表示手段6は以前の表示状態を保持して次のステッ
プAに進む。
In step 4, a control signal g of a stop command is output from the analyzing means 3 to the machine control means 5, and the machine control means 5 controls the machine table, the motor drive shaft and the like based on the control signal g of the stop command. Stop. Also, the control signal g of the stop command is similarly output from the analysis means 3 to the display means 6, and the display means 6 holds the previous display state and proceeds to the next step A.

【0008】ステップAに於いて、操作者が機械装置及
びCRT7の表示の停止状態を保持させる場合はそのス
タート・キーを入力しないが、その停止状態から次の実
行プログラムを同様にプログラムチェックする場合、操
作者は機械操作ボード4のスタート・キーを入力して次
のステップ6に進む。
In step A, when the operator holds the stopped state of the display of the mechanical device and the CRT 7, the operator does not input the start key, but when the operator checks the next execution program from the stopped state in the same manner. The operator inputs a start key on the machine operation board 4 and proceeds to the next step 6.

【0009】ステップ6に於いて、スタート・キーが入
力されると解析手段3は次の実行プログラムをプログラ
ムチェックするために更新手段1に対してインクリメン
ト命令を出力し、更新手段1は次のアドレスを記憶手段
2に指定し、記憶手段2は次の1ブロックの実行プログ
ラムを解析手段3に出力して、次のステップ7に進む。
ステップ7に於いて、解析手段3は更新手段1で更新さ
れたが最終のプログラムであるかどうか判断し、最終の
プログラムでない場合は、再び、ステップ1に戻り処理
を継続し、最終のプログラムである場合はプログラム解
析を終了させる。
In step 6, when the start key is input, the analyzing means 3 outputs an increment instruction to the updating means 1 to check the next execution program, and the updating means 1 outputs the next address. Is specified in the storage means 2, and the storage means 2 outputs the next one block execution program to the analysis means 3, and proceeds to the next step 7.
In step 7, the analyzing means 3 determines whether or not the program has been updated by the updating means 1 but is the final program. If the program is not the final program, the analyzing means 3 returns to step 1 again and continues the processing. If so, end the program analysis.

【発明が解決しようとする課題】上記のような従来の放
電加工装置では、実加工と同様に操作させる加工プログ
ラムをプログラムチェックする場合、その加工プログラ
ム内に停止コードが含まれていると、その加工プログラ
ムの停止コードに基づいて機械装置が停止し、その停止
した機械装置を再起動させるために操作者が常に側にい
てキー操作して起動させなくてはならず作業効率が悪い
という問題があった。
In the conventional electric discharge machining apparatus as described above, when a machining program to be operated in the same manner as actual machining is program-checked, if a stop code is included in the machining program, the check is performed. The machine is stopped based on the stop code of the machining program, and the operator must always be at the side to operate the key and start it by restarting the stopped machine. there were.

【0010】本発明は、かかる課題を解決するためにな
されたもので、プログラム内に停止コードが含まれてい
てもその停止コードに基づいて機械装置を停止させるこ
となく、最終のプログラムまで操作者によるキー操作の
介在をなくしてプログラムチェックすることができる数
値制御装置を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem. Even if a stop code is included in a program, the operator does not stop the mechanical device based on the stop code until the final program. It is an object of the present invention to obtain a numerical control device capable of performing a program check without the intervention of key operation by the user.

【0011】[0011]

【課題を解決するための手段】本発明の請求項1に係る
数値制御装置は、記憶手段に記憶されている実行命令を
1ブロック毎に読み出して解析し、機械制御指令、この
機械制御指令に対応する機械テーブル移動指令データ、
表示制御指令及びこの表示制御指令に対応する表示用の
表示データを出力すると共に、上記実行命令が停止コー
ドである場合はストップ命令、機械停止指令を出力し、
またプログラムチェックのときに読み出した実行命令が
停止コードである場合には前記ストップ命令、機械停止
命令のほかにタイマー・オン指令をも出力する解析手段
と、該解析手段からの前記機械制御指令及びこの機械制
御指令に対応する機械テーブル移動指令データに基づい
て機械装置の機械テーブルを駆動制御すると共に、前記
解析手段からの機械停止指令に基づいて前記機械装置の
駆動を停止させる機械制御手段と、前記解析手段からの
前記表示制御指令及びこの表示制御指令に対応する表示
データに基づいて加工状態を表示部に表示させる表示手
段と、前記解析手段からのタイマー・オン指令に基づい
て所定の時間を計数した後に起動指令を出力するタイマ
ー手段と、前記解析手段から順次出力されるインクリメ
ント命令により前記記憶手段から読み出される実行命令
を更新し、前記解析手段がストップ命令を出力すると前
記インクリメント命令による前記実行命令の更新を停止
し、その後前記タイマー手段から出力される起動指令に
より再び前記記憶手段から読み出される実行命令を更新
する更新手段とを有するものである。また本発明の請求
項2に係る数値制御装置は、前記請求項1に係る数値制
御装置が、外部からタイマー手段により計数する時間を
設定する設定手段と、その設定手段で設定された時間を
読み取って上記タイマー手段に設定する読込み手段とを
追加して有するものである。
According to a first aspect of the present invention, there is provided a numerical controller for reading out and analyzing an execution instruction stored in a storage means for each block, and executing a machine control instruction and a machine control instruction. Corresponding machine table movement command data,
Along with outputting a display control command and display data for display corresponding to the display control command, if the execution command is a stop code, a stop command and a machine stop command are output,
When the execution instruction read at the time of the program check is a stop code, the stop instruction, an analysis unit that outputs a timer-on instruction in addition to the machine stop instruction, and the machine control instruction and the machine control instruction from the analysis unit. Machine control means for controlling the drive of the machine table of the machine based on the machine table movement command data corresponding to the machine control command, and stopping the drive of the machine based on a machine stop command from the analysis means, Display means for displaying a machining state on a display unit based on the display control command from the analysis means and display data corresponding to the display control command, and a predetermined time based on a timer-on command from the analysis means. Timer means for outputting a start command after counting, and an increment command sequentially output from the analysis means for Updating the execution instruction read from the storage means, stopping the update of the execution instruction by the increment instruction when the analysis means outputs the stop instruction, and then reading the update instruction from the storage means again by a start instruction output from the timer means. Updating means for updating an execution instruction to be executed. According to a second aspect of the present invention, there is provided a numerical control device, wherein the numerical control device according to the first aspect reads externally a setting means for setting a time counted by a timer means, and reads a time set by the setting means. Reading means for setting the timer means.

【0012】[0012]

【作用】本請求項1に係る発明に於いては、解析手段は
記憶手段に記憶されている実行命令を1ブロック毎に読
み出して解析し、機械制御指令、この機械制御指令に対
応する機械テーブル移動指令データ、表示制御指令及び
この表示制御指令に対応する表示用の表示データを出力
すると共に、前記実行命令が停止コードである場合はス
トップ命令、機械停止指令を出力し、またプログラムチ
ェックのときに読み出した実行命令が停止コードである
場合には前記ストップ命令、機械停止命令のほかにタイ
マー・オン指令をも出力する。機械制御手段は前記解析
手段からの前記機械制御指令及びこの機械制御指令に対
応する機械テーブル移動指令データに基づいて機械装置
の機械テーブルを駆動制御すると共に、前記解析手段か
らの機械停止指令に基づいて前記機械装置の駆動を停止
させる。表示手段は前記解析手段からの前記表示制御指
令及びこの表示制御指令に対応する表示データに基づい
て加工状態を表示部に表示させ、タイマー手段は前記解
析手段からのタイマー・オン指令に基づいて所定の時間
を計測した後に起動指令を出力する。更新手段は、前記
解析手段から順次出力されるインクリメント命令により
前記記憶手段から読み出される実行命令を更新し、前記
解析手段がストップ命令を出力すると前記インクリメン
ト命令による前記実行命令の更新を停止し、その後前記
タイマー手段から出力される起動指令により再び前記記
憶手段から読み出される実行命令を更新する。また本請
求項2に係る発明に於いては、前記請求項1に係る発明
に設定手段と読込み手段が追加して設けられ、前記設定
手段には外部からタイマー手段が計数する時間が設定さ
れ、前記読込み手段は前記設定手段に設定された時間を
読み取って前記タイマー手段に設定する。
In the invention according to the first aspect, the analyzing means reads out and analyzes the execution instructions stored in the storage means for each block, and executes a machine control command and a machine table corresponding to the machine control command. In addition to outputting movement command data, display control command and display data for display corresponding to the display control command, when the execution command is a stop code, a stop command and a machine stop command are output. If the execution instruction read out in step (1) is a stop code, a timer-on instruction is output in addition to the stop instruction and the machine stop instruction. The machine control means drives and controls a machine table of a mechanical device based on the machine control command from the analysis means and machine table movement command data corresponding to the machine control command, and based on a machine stop command from the analysis means. To stop driving the mechanical device. The display means displays a machining state on a display unit based on the display control command from the analysis means and display data corresponding to the display control command, and the timer means determines a machining state based on a timer-on command from the analysis means. After measuring the time, a start command is output. The updating unit updates an execution instruction read from the storage unit by an increment instruction sequentially output from the analysis unit, and stops updating the execution instruction by the increment instruction when the analysis unit outputs a stop instruction. The execution command read from the storage unit is updated again according to the start command output from the timer unit. Further, in the invention according to claim 2, a setting means and a reading means are additionally provided to the invention according to claim 1, and a time for counting by a timer means is externally set in the setting means, The reading means reads the time set in the setting means and sets the time in the timer means.

【0013】[0013]

【実施例】図1はこの発明の一実施例を示すブロック回
路図であり、2,5,6は従来と同じものである。図に
於いて、1Aは更新手段で、アドレスカウンタ回路等か
らなり、解析手段(後述説明)からのインクリメント命
令(呼び出し命令)により記憶手段2に格納された実行
プログラムに対応するアドレスcを出力する。又、解析
手段(後述説明)からのストップ命令により記憶手段2
に格納された実行プログラムに対応するアドレスcの出
力を停止する。更に、解析手段(後述説明)からのスト
ップ命令によりアドレス出力が停止している状態に於い
て、タイマー手段(後述説明)からの起動指令により次
の実行プログラムに対応するアドレスを出力する。3A
は解析手段で、CPU等からなり、記憶手段2に格納さ
れた実行プログラムを取り出すために更新手段1Aにイ
ンクリメント命令aを出力し、更新手段1Aで指定され
たアドレスに基づいて記憶手段2に格納された放電加工
の処理手順である実行プログラムを1ブロック毎(一命
令毎)に解析し、その解析された1ブロックのプログラ
ムに基づいて制御データである機械テーブル移動指令デ
ータf及び表示データhと、制御指令である制御信号g
を出力すると共に、そのプログラムが停止コードである
場合は、機械テーブル等を停止させる停止指令の制御信
号gを機械制御手段5及び表示手段6に出力する。又、
停止コードを解析すると、解析手段3Aは更新手段1A
に対してプログラムの更新を停止させるストップ命令を
出力する。さらにプログラムチェックの時に読み出した
実行命令が停止コードである場合には、前記ストップ命
令、機械停止命令のほかに、タイマー手段(後述説明)
に対して、タイマー手段内部のタイマーをONさせるタ
イマー指令iを出力する。8はタイマー手段で、タイマ
ー回路等からなり、解析手段3Aからのタイマー指令i
により所定時間を計数してその時間が経過すると更新手
段1Aに対して起動指令jを出力する。
FIG. 1 is a block circuit diagram showing an embodiment of the present invention. Reference numerals 2, 5, and 6 are the same as those in the prior art. Referring to FIG. 1, reference numeral 1A denotes an updating unit which includes an address counter circuit or the like, and outputs an address c corresponding to the execution program stored in the storage unit 2 by an increment instruction (call instruction) from an analyzing unit (described later). . Also, the storage means 2 is operated by a stop command from the analysis means (described later).
The output of the address c corresponding to the execution program stored in is stopped. Further, in a state where the address output is stopped by the stop command from the analyzing means (described later), the address corresponding to the next execution program is output by the start command from the timer means (described later). 3A
Is an analyzing means, which comprises a CPU or the like, outputs an increment instruction a to the updating means 1A to retrieve the execution program stored in the storing means 2, and stores it in the storing means 2 based on the address designated by the updating means 1A. The execution program, which is the processing procedure of the electric discharge machining, is analyzed for each block (each instruction), and based on the analyzed program for one block, the machine table movement command data f and the display data h, which are control data, are displayed. , A control signal g that is a control command
When the program is a stop code, a control signal g of a stop command for stopping the machine table or the like is output to the machine control means 5 and the display means 6. or,
When analyzing the stop code, the analyzing means 3A updates the updating means 1A.
Outputs a stop instruction to stop updating the program. Further, when the execution instruction read at the time of the program check is a stop code, in addition to the stop instruction and the machine stop instruction, a timer means (described later)
Outputs a timer command i for turning on the timer inside the timer means. Reference numeral 8 denotes a timer means, which is composed of a timer circuit and the like, and which receives a timer command i from the analysis means 3A.
, A predetermined time is counted, and when that time has elapsed, a start command j is output to the updating means 1A.

【0014】この発明は上記のように構成されており、
図2は図1をプログラムチェックするフローチャートで
あり、その動作を説明する。先ず、ステップ1に於い
て、解析手段3Aは更新手段1Aからアドレス指定され
た記憶手段2に格納された実行プログラムをプログラム
チェックするために1ブロックの実行プログラムを解析
して機械テーブル移動指令データf、その機械テーブル
移動指令データに対応する制御信号g、表示データh及
びその表示データに対応する制御信号g等を生成する。
The present invention is configured as described above,
FIG. 2 is a flowchart for checking the program in FIG. 1, and its operation will be described. First, in step 1, the analyzing means 3A analyzes one block of the execution program to program-check the execution program stored in the storage means 2 addressed from the updating means 1A, and executes the machine table movement command data f , A control signal g corresponding to the machine table movement command data, display data h, a control signal g corresponding to the display data, and the like.

【0015】ステップ2に於いて、解析手段3Aはその
解析された1ブロックの実行プログラムが加工処理を一
時的に停止させる停止コードであるかどうか判断し、そ
の停止コードでない場合はステップ3に進み、停止コー
ドがある場合はステップ4に進む。
In step 2, the analyzing means 3A determines whether or not the analyzed execution program of one block is a stop code for temporarily stopping the machining process. If not, the flow proceeds to step 3. If there is a stop code, go to step 4.

【0016】ステップ3に於いて、解析手段3Aから機
械テーブル移動指令データf及び制御信号gが機械制御
手段5に出力され、機械制御手段5は機械テーブル移動
指令データf及びその機械テーブル移動指令データに対
応する制御信号gに基づいて機械テーブル及びモータ駆
動軸等を駆動制御する。又、解析手段3Aから表示デー
タh及びその表示データに対応する制御信号gが表示手
段6に出力され、表示手段6は表示データh及びその表
示データに対応する制御信号gに基づいて被加工物の形
状や機械テーブル等の座標位置並びに加工速度等の加工
状態をCRT7に表示させる。
At step 3, the machine table movement command data f and the control signal g are output from the analysis means 3A to the machine control means 5, and the machine control means 5 transmits the machine table movement command data f and the machine table movement command data. And drive control of the machine table, the motor drive shaft, and the like based on the control signal g corresponding to. Also, the display data h and the control signal g corresponding to the display data are output from the analysis means 3A to the display means 6, and the display means 6 outputs the workpiece based on the display data h and the control signal g corresponding to the display data. The shape, the coordinate position of the machine table, and the processing state such as the processing speed are displayed on the CRT 7.

【0017】ステップ4に於いて、解析手段3Aから停
止指令の制御信号gが機械制御手段5及び表示手段6に
出力され、機械制御手段5は停止指令の制御信号gに基
づいて機械テーブル及びモータ駆動軸等を停止し、表示
手段6は以前の表示状態を保持する。
In step 4, a control signal g for a stop command is output from the analysis means 3A to the machine control means 5 and the display means 6, and the machine control means 5 outputs a control signal to the machine table and the motor based on the control signal g for the stop command. The drive shaft and the like are stopped, and the display means 6 retains the previous display state.

【0018】ステップ5に於いて、解析手段3Aは、プ
ログラムチェックのときに停止コードを解析するとタイ
マー手段8に対してタイマー手段8のタイマーをONさ
せるタイマー指令を出力し、タイマー手段8はそのタイ
マー指令により所定の時間を計数し、その時間が経過後
に更新手段1Aを起動する起動指令jを出力する。
In step 5, the analyzing means 3A outputs a timer command to the timer means 8 to turn on the timer of the timer means 8 when the stop code is analyzed at the time of the program check. A predetermined time is counted according to the command, and after the time has elapsed, a start command j for starting the updating means 1A is output.

【0019】ステップ6に於いて、更新手段1Aはタイ
マー手段8からの起動指令jに基づいて次の1ブロック
に対応するアドレスに更新して記憶手段2をアドレス指
定し、記憶手段2から解析手段3Aに1ブロックの実行
プログラムが出力される。ステップ7に於いて、解析手
段3Aは更新手段1Aで更新された1ブロックの実行プ
ログラムが最終のプログラムであるかどうか判断し、そ
の1ブロックの実行プログラムが最終のプログラムでな
い場合はステップ1に戻り、その1ブロックの実行プロ
グラムが最終のプログラムである場合、解析手段3Aは
プログラムチェックを終了する。
In step 6, the updating means 1A updates the address corresponding to the next one block based on the start command j from the timer means 8, specifies the address of the storage means 2, and sends the analysis means from the storage means 2 to the analysis means. An execution program of one block is output to 3A. In step 7, the analyzing means 3A determines whether the one block execution program updated by the updating means 1A is the last program, and returns to step 1 if the one block execution program is not the last program. If the execution program of the one block is the final program, the analysis means 3A ends the program check.

【0020】この様に、プログラムチェックのきに解析
手段3Aから停止指令が出力されると機械制御手段5が
停止するが、その停止指令から一定時間経過後に再び解
析手段3Aから機械制御手段5を作動させるようにした
ので、操作者が常駐してキー操作等の必要がなくなり自
動的に実行プログラムをチェックすることができる。
As described above, when the stop command is output from the analysis means 3A during the program check, the machine control means 5 stops, but after a lapse of a certain time from the stop command, the machine control means 5 restarts the machine control means 5 from the analysis means 3A. Since the operation is performed, the operator can be resident and there is no need for key operation or the like, and the execution program can be automatically checked.

【0021】又、図3は他の実施例のブロック回路図で
あり、1A,2,5,6,7は上記と同じものである。
図に於いて、3Bは解析手段で、CPU等からなり、更
新手段1Aでアドレス指定された記憶手段2に格納され
た放電加工の処理手順である実行プログラムを1ブロッ
ク毎に解析し、その解析された1ブロックのプログラム
に基づいて制御データである機械テーブル移動指令デー
タf及び表示データgと、制御信号hを出力すると共
に、そのプログラムが停止コードである場合は、機械テ
ーブル等を停止させる停止指令を機械制御手段5及び表
示手段6に出力する。又、停止コードを解析すると、解
析手段3Bは更新手段1Aに対してプログラムの更新を
停止させるストップ命令bを、又、読込手段(後述説
明)に対して設定手段(後述説明)で設定されたタイマ
ー値を読み取らせる読み込み指令lを出力する。さらに
プログラムチェックのときの実行命令が停止コードであ
る場合には、前記ストップ命令bのほかにタイマー手段
8Aに対してはタイマー手段内部のタイマーをONさせ
るタイマー指令iを出力する。8Aはタイマー手段で、
タイマー回路等からなり、読込手段(後述説明)を介し
てタイマー時間が設定され、解析手段3Bからのタイマ
ー指令iにより設定されたタイマー時間を計数してその
時間が経過すると更新手段1Aに対して起動指令jを出
力する。9は読込手段で、I/Oポート等からなり、解
析手段3Bからの読み込み指令lにより設定手段(後述
説明)で設定されたタイマー時間を読み取ってタイマー
手段8Aにそのタイマー時間を設定する。10は設定手
段で、時間設定回路等からなり、操作者により外部から
任意にプログラム運転停止時間が設定される。
FIG. 3 is a block circuit diagram of another embodiment, wherein 1A, 2, 5, 6, and 7 are the same as those described above.
In the figure, reference numeral 3B denotes an analysis means, which comprises a CPU or the like, analyzes an execution program, which is a processing procedure of electric discharge machining, stored in the storage means 2 addressed by the updating means 1A for each block, and analyzes the execution program. Based on the program of one block, the machine table movement command data f and the display data g, which are control data, and the control signal h are output. If the program is a stop code, the machine table is stopped. The command is output to the machine control means 5 and the display means 6. When the stop code is analyzed, the analyzing means 3B sets the stop instruction b for stopping the updating of the program to the updating means 1A and the setting means (described later) for the reading means (described later). A read command 1 for reading the timer value is output. Further, when the execution instruction at the time of the program check is a stop code, a timer instruction i for turning on a timer inside the timer is output to the timer 8A in addition to the stop instruction b. 8A is a timer means,
A timer time is set via a reading means (described later), a timer time set by a timer command i from the analyzing means 3B is counted, and when the time elapses, the updating means 1A is sent to the updating means 1A. A start command j is output. Reference numeral 9 denotes a reading means, which comprises an I / O port and the like, reads a timer time set by a setting means (described later) according to a reading command 1 from the analyzing means 3B, and sets the timer time in the timer means 8A. Numeral 10 denotes a setting means, which comprises a time setting circuit or the like, and which allows the operator to arbitrarily set the program operation stop time from outside.

【0022】他の実施例は上記のように構成されてお
り、図4は図3をプログラムチェックするフローチャー
トであり、その動作を説明する。先ず、ステップ0に於
いて、操作者は設定手段10に所望のプログラム運転停
止時間(タイマー時間)を設定すると、読込手段9でそ
の設定されたタイマー時間を読み取ってタイマー手段8
Aにそのタイマー時間を設定する。
Another embodiment is configured as described above. FIG. 4 is a flowchart for checking the program shown in FIG. 3, and its operation will be described. First, in step 0, the operator sets a desired program operation stop time (timer time) in the setting means 10 and reads the set timer time by the reading means 9 to read the timer time.
A is set to the timer time.

【0023】ステップ1に於いて、解析手段3Bは更新
手段1Aからアドレス指定された記憶手段2に格納され
た実行プログラムをプログラムチェックするため1ブロ
ックの実行プログラムを解析して機械テーブル移動指令
データf、その機械テーブル移動指令データに対応する
制御信号g、表示データh及びその表示データに対応す
る制御信号g等を生成する。
In step 1, the analyzing means 3B analyzes one block of the execution program to check the execution program stored in the storage means 2 addressed from the updating means 1A, and analyzes the machine table movement command data f , A control signal g corresponding to the machine table movement command data, display data h, a control signal g corresponding to the display data, and the like.

【0024】ステップ2に於いて、解析手段3Bはその
解析された1ブロックの実行プログラムが加工処理を一
時的に停止させる停止コードであるかどうか判断し、そ
の停止コードでない場合はステップ3に進み、停止コー
ドある場合はステップ4に進む。
In step 2, the analyzing means 3B determines whether or not the analyzed execution program of one block is a stop code for temporarily stopping the machining process. If not, the flow proceeds to step 3. If there is a stop code, the process proceeds to step 4.

【0025】ステップ3に於いて、解析手段3Bから機
械テーブル移動指令データf及び制御指令gが機械制御
手段5に出力され、機械制御手段5は機械テーブル移動
指令データf及びその機械テーブル移動指令データに対
応する制御信号gに基づいて機械テーブル及びモータ駆
動軸等を駆動制御する。又、解析手段3Bから表示デー
タh及びその表示データに対応する制御信号gが表示手
段6に出力され、表示手段6は表示データh及びその表
示データに対応する制御信号gに基づいて被加工物の形
状や機械テーブル等の座標位置並びに加工速度等の加工
状態をCRT7に表示する
In step 3, the machine table movement command data f and the control command g are output from the analysis means 3B to the machine control means 5, and the machine control means 5 outputs the machine table movement command data f and the machine table movement command data. And drive control of the machine table, the motor drive shaft, and the like based on the control signal g corresponding to. Further, display data h and a control signal g corresponding to the display data are output from the analysis means 3B to the display means 6, and the display means 6 processes the workpiece based on the display data h and the control signal g corresponding to the display data. coordinate position, such as the shape and the machine table and displays the processing conditions such as processing speed on CRT 7.

【0026】ステップ4に於いて、解析手段3Bから停
止指令の制御信号gが機械制御手段5及び表示手段6に
出力され、機械制御手段5はその停止指令の制御信号g
に基づいて機械テーブル及びモータ駆動軸等を停止し、
表示手段6は以前の表示状態保持する。
In step 4, a control signal g of a stop command is output from the analyzing means 3B to the machine control means 5 and the display means 6, and the machine control means 5 outputs the control signal g of the stop command.
Stop the machine table and motor drive shaft, etc. based on
The display means 6 retains the previous display state.

【0027】ステップ5に於いて、解析手段3Bはプロ
グラムチェックのときに停止コードを解析するとタイマ
ー手段8Aに対してタイマー手段8AのタイマーをON
させるタイマー指令iを出力し、タイマー手段8Aはそ
のタイマー指令により設定された時間を計数し、その時
間が経過後に更新手段1Aを起動する起動信号jを出力
する。
In step 5, when the analysis means 3B analyzes the stop code at the time of the program check, the analysis means 3B turns on the timer of the timer means 8A with respect to the timer means 8A.
The timer means 8A outputs a start signal j for activating the updating means 1A after counting the time set by the timer command.

【0028】ステップ6に於いて、更新手段1Aはタイ
マー手段8Aからの起動指令jに基づいて次の1ブロッ
クに対応するアドレスに更新して記憶手段2をアドレス
指定し、記憶手段2から解析手段3Bに1ブロックの実
行プログラムが出力される。ステップ7に於いて、解析
手段3Bは更新手段1Aで更新された1ブロックの実行
プログラムが最終のプログラムでない場合はステップ1
に戻り、その1ブロックの実行プログラムが最終のプロ
グラムである場合は、解析手段3Bがプログラムチェッ
クを終了する。
In step 6, the updating means 1A updates the address corresponding to the next one block based on the start command j from the timer means 8A, and designates the address of the storage means 2; An execution program of one block is output to 3B. In step 7, if the execution program of one block updated by the updating means 1A is not the final program, the analyzing means 3B executes step 1
When the execution program of the one block is the final program, the analysis unit 3B ends the program check.

【0029】この様に、プログラムチェックをする前に
操作者により任意のプログラム運転停止時間(タイマー
時間)が設定され、プログラムチェック中の実行命令が
停止コードである場合には、ストップ命令は出力される
が、タイマーをONさせる指令も出力されるので、前記
設定されたタイマー時間が経過するとタイマー手段8A
が更新手段1Aを起動させるようにしたので、操作者に
よるキー操作等の必要がなくなり自動的に実行プログラ
ムをチェックすることができる。
As described above, an arbitrary program operation stop time (timer time) is set by the operator before the program check is performed, and if the execution instruction during the program check is a stop code, the stop instruction is output. However, since an instruction to turn on the timer is also output, the timer means 8A
Activates the updating means 1A, so that there is no need for an operator to perform a key operation or the like, and the execution program can be automatically checked.

【0030】[0030]

【発明の効果】以上のように本発明によれば、実際に用
いられるプログラムの内容を解析して装置の動作をチェ
ックするとき、そのプログラム内に停止コードがあって
も、ある時間が経過後に再び自動的にプログラムチェッ
クができるようにしたので、プログラムチェック中に操
作者による機械操作がなくなり、操作者の作業効率を向
上させることができる。
As described above, according to the present invention, when the operation of the apparatus is checked by analyzing the contents of a program actually used, even if a stop code is included in the program, after a certain time has elapsed, Since the program check can be automatically performed again, the machine operation by the operator during the program check is eliminated, and the work efficiency of the operator can be improved.

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

【図1】この発明の一実施例を示すブロック回路図であ
る。
FIG. 1 is a block circuit diagram showing one embodiment of the present invention.

【図2】図1をプログラムチェックするフローチャート
である。
FIG. 2 is a flowchart of a program check in FIG. 1;

【図3】他の実施例のブロック回路図である。FIG. 3 is a block circuit diagram of another embodiment.

【図4】図3をプログラムチェックするフローチャート
である。
FIG. 4 is a flowchart for checking a program in FIG. 3;

【図5】従来の放電加工装置を示すブロック回路図であ
る。
FIG. 5 is a block circuit diagram showing a conventional electric discharge machine.

【図6】図5の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of FIG.

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

1A 更新手段 2 記憶手段 3A,3B 解析手段 5 機械制御手段 6 表示手段 7 CRT 8,8A タイマー手段 9 読込手段 10 設定手段 1A Update means 2 Storage means 3A, 3B Analysis means 5 Machine control means 6 Display means 7 CRT 8, 8A Timer means 9 Reading means 10 Setting means

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 記憶手段に記憶されている実行命令を1
ブロック毎に読み出して解析し、機械制御指令、この機
械制御指令に対応する機械テーブル移動指令データ、表
示制御指令及びこの表示制御指令に対応する表示用の表
示データを出力すると共に、前記実行命令が停止コード
である場合はストップ命令、機械停止指令を出力し、ま
たプログラムチェックのときに読み出した実行命令が停
止コードである場合には前記ストップ命令、機械停止命
令のほかにタイマー・オン指令を出力する解析手段
と、 該解析手段からの前記機械制御指令及びこの機械制御指
令に対応する機械テーブル移動指令データに基づいて機
械装置の機械テーブルを駆動制御すると共に、 前記解析手段からの機械停止指令に基づいて前記機械装
置の駆動を停止させる機械制御手段と、 前記解析手段からの前記表示制御指令及びこの表示制御
指令に対応する表示データに基づいて加工状態を表示部
に表示させる表示手段と、 前記解析手段からのタイマー・オン指令に基づいて所定
の時間を計数した後に起動指令を出力するタイマー手段
と、 前記解析手段から順次出力されるインクリメント命令に
より前記記憶手段から読み出される実行命令を更新し、
前記解析手段がストップ命令を出力すると前記インクリ
メント命令による前記実行命令の更新を停止し、その後
前記タイマー手段から出力される起動指令により再び前
記記憶手段から読み出される実行命令を更新する更新手
段とを備えたことを特徴とする数値制御装置。
1. An execution instruction stored in a storage means is
Each block is read and analyzed, and a machine control command, machine table movement command data corresponding to the machine control command, a display control command, and display data for display corresponding to the display control command are output. If it is a stop code, a stop command and machine stop command are output.
The execution instruction read during the program check
If the stop code is a stop code,
Analyzing means also outputs an addition to timer-on instruction decree, controls the drive of the machine table of the machine based on the machine control command and the machine table moving command data corresponding to the machine control command from said analyzing means Together with a machine control unit for stopping the driving of the mechanical device based on a machine stop command from the analysis unit; and a processing state based on the display control command from the analysis unit and display data corresponding to the display control command. Display means for displaying on a display unit, timer means for outputting a start command after counting a predetermined time based on a timer -on command from the analysis means, and an increment command sequentially output from the analysis means, Updating the execution instruction read from the storage means,
When the analyzing means outputs a stop instruction, the updating of the execution instruction by the increment instruction is stopped, and thereafter , the update for updating the execution instruction read from the storage means again by a start instruction output from the timer means. And a means for controlling the numerical value.
【請求項2】 外部からタイマー手段により計数する時
間を設定する設定手段と、該設定手段で設定された時間
を読み取って前記タイマー手段に設定する読込み手段と
を有することを特徴とする請求項1記載の数値制御装
置。
2. The apparatus according to claim 1, further comprising setting means for externally setting a time counted by a timer means, and reading means for reading the time set by the setting means and setting the time in the timer means. Numerical control device as described.
JP3109995A 1991-05-15 1991-05-15 Numerical control unit Expired - Lifetime JP2850273B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3109995A JP2850273B2 (en) 1991-05-15 1991-05-15 Numerical control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3109995A JP2850273B2 (en) 1991-05-15 1991-05-15 Numerical control unit

Publications (2)

Publication Number Publication Date
JPH04357505A JPH04357505A (en) 1992-12-10
JP2850273B2 true JP2850273B2 (en) 1999-01-27

Family

ID=14524428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3109995A Expired - Lifetime JP2850273B2 (en) 1991-05-15 1991-05-15 Numerical control unit

Country Status (1)

Country Link
JP (1) JP2850273B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60134909A (en) * 1983-12-23 1985-07-18 Mitsubishi Electric Corp Numerical controller
JPS60245002A (en) * 1984-05-18 1985-12-04 Fanuc Ltd Skipping device for dowel

Also Published As

Publication number Publication date
JPH04357505A (en) 1992-12-10

Similar Documents

Publication Publication Date Title
JP4311349B2 (en) Numerical control system
JP2008134983A (en) Numerical controller with machining resume function
WO1985000063A1 (en) Numerical control apparatus with function for checking stored stroke limit of drawing
JP2850273B2 (en) Numerical control unit
JP2709934B2 (en) Industrial robot
JP3424669B2 (en) CONTROL DEVICE, CONTROL DEVICE OPERATION PARAMETER OUTPUT METHOD, AND COMPUTER-READABLE RECORDING MEDIUM
JP2676512B2 (en) Program restart method
JP2525068B2 (en) How to monitor sequence control
JP3182669B2 (en) Industrial robot
JP2702555B2 (en) Numerical control unit reordering method
JPH08272405A (en) Sequence controller
JPH06222827A (en) Positioning controller
JPH0782377B2 (en) Numerical control device
JPH03172901A (en) Comment display system for cnc
JPH04311096A (en) Numerical control device
JPH02226307A (en) Numerical controller
JPH0566819A (en) Interactive automatic programming method
JPH05307406A (en) Controller for robot
JPH06332518A (en) Interactive numerical controller
JPS61170803A (en) Sequence control method
JPH0836413A (en) Time management system for cnc
JP2000099117A (en) Control unit
JPH08278806A (en) Cnc macro variable debugging system
WO1991001519A1 (en) System for resuming program for automatic operation
JPH08314523A (en) Numerical controller