JPH04174006A - Graphic drawing method - Google Patents

Graphic drawing method

Info

Publication number
JPH04174006A
JPH04174006A JP29827290A JP29827290A JPH04174006A JP H04174006 A JPH04174006 A JP H04174006A JP 29827290 A JP29827290 A JP 29827290A JP 29827290 A JP29827290 A JP 29827290A JP H04174006 A JPH04174006 A JP H04174006A
Authority
JP
Japan
Prior art keywords
machining
graphic
data
coordinate system
instructions
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.)
Pending
Application number
JP29827290A
Other languages
Japanese (ja)
Inventor
Nobuyuki Takahashi
伸行 高橋
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 JP29827290A priority Critical patent/JPH04174006A/en
Publication of JPH04174006A publication Critical patent/JPH04174006A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/36Nc in input of data, input key till input tape
    • G05B2219/36236Convert character, ascii, text code to internal code and vice versa

Abstract

PURPOSE:To visually confirm a machining progress state in conformity with substance by reading out an NC program to be executed, analyzing its instructions and extracting NC instructions corresponding to machining, and performing graphic drawing based upon data converted to a graphic coordinate system as the NC instructions are executed. CONSTITUTION:The NC data which are read out and analyzed by an NC program analytic device 5 are divided into blocks by a machining instruction deciding and block dividing device 13. A data drawing processor 14 generates drawing process data on a text RAM 11 and a graphic RAM 12 according to the process result. The found data, i.e. a machining coordinate system is converted into the graphic coordinate system, and the converted data are written in a specific area on the graphic RAM 12. Then an unmachined part is optionally colored and machining points are marked; and a machined part is decolored associatively with the movement of the machine coordinate system and the marks of the machining point are also moved. Consequently, the machining progress state can be confirmed visually on the screen of a CRT, etc.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、放電加工の進捗状況をCRT等に描画させ
るグラフィック描画方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a graphic drawing method for drawing the progress status of electrical discharge machining on a CRT or the like.

[従来の技術] 第8図は従来の放電加工装置に用いられる数値制御装置
の構成を示すブロック図であり、図において、(1)は
NCプログラム格納エリア、(2)はNCプログラム入
出力装置、(3)はNCデータ格納用のメモリ、(4)
はNC命令の1命令毎の描画データを作成する描画デー
タ作成装置、(5)はNCプログラムの内容を解析する
NCプログラム解析装置、(6)はNCプログラム解析
装置(5)によって解析されたNCプログラムを基に各
軸を移動させる為のベクトルデータを生成するデータ補
間装置、(7)は描画データ作成装置(4)によって作
成された描画データに基づいて、その内容をCRT (
101画面上に表示させる為のデータを作成するデータ
表示装置、(8)はデータ補間装置(6)によって生成
されたベクトルデータに基づいて、各軸のサーボコント
ロールを行うサーボコントロール装置、(9)はX軸、
Y軸あるいはZ軸等の駆動を行うサーボモータ、(10
)は各種情報を表示する為のCRT、(11)は文字、
数字等が記憶されるテキストRAM、(12)はCRT
 (101表示の制御用データが記憶されるグラフィッ
クRAMである。
[Prior Art] Fig. 8 is a block diagram showing the configuration of a numerical control device used in a conventional electrical discharge machining device. In the figure, (1) is an NC program storage area, and (2) is an NC program input/output device. , (3) is a memory for storing NC data, (4)
(5) is a drawing data creation device that creates drawing data for each NC instruction, (5) is an NC program analysis device that analyzes the contents of an NC program, and (6) is an NC program analysis device that has been analyzed by the NC program analysis device (5). A data interpolation device (7) generates vector data for moving each axis based on a program, and a data interpolation device (7) transfers its contents to a CRT (
101 A data display device that creates data to be displayed on the screen, (8) a servo control device that performs servo control of each axis based on the vector data generated by the data interpolation device (6), (9) is the X axis,
A servo motor that drives the Y-axis or Z-axis, etc. (10
) is a CRT for displaying various information, (11) is a character,
Text RAM where numbers etc. are stored, (12) is CRT
(This is a graphic RAM in which control data for 101 display is stored.

次に動作について説明する。NCプログラム格納エリア
(1)に格納されているNCデータをNCプログラム入
出力装置(2)により読み出した後、NCプログラム解
析装置(5)によって上記読み出されたNCデータの解
析あるいは計算を行い、該解析結果によってはNCCデ
ック納エリア(3)内の加工条件あるいは変数等のデー
タも参照しつつ、そのデータを描画データ作成装置(4
)及びデータ補間装置(6)に出力する。データ補間装
置(6)においては、NCプログラム解析装置(5)か
ら出力されたデータを移動ベクトル単位に分解し、各軸
層に対応する移動ベクトルデータを作成すると共に、上
記移動ベクトルデータ及び加工条件に基づき、加工速度
を加味した軸袖間データを作成し、各軸に対応したサー
ボモータ(12)を駆動するサーボコントロール装置(
8)に出力する。
Next, the operation will be explained. After reading the NC data stored in the NC program storage area (1) by the NC program input/output device (2), analyzing or calculating the read NC data by the NC program analysis device (5), Depending on the analysis results, data such as processing conditions or variables in the NCC deck storage area (3) may be referred to, and the data may be transferred to the drawing data creation device (4).
) and output to the data interpolation device (6). The data interpolation device (6) decomposes the data output from the NC program analysis device (5) into movement vector units, creates movement vector data corresponding to each axis layer, and also creates movement vector data and processing conditions. Based on this, a servo control device (12) that creates axis spacing data that takes into account machining speed and drives a servo motor (12) corresponding to each axis.
8).

一方、データ表示装置(7)においては、描画データ作
成装置(4)にて作成されたNC命令の1命令毎の描画
データを、データ補間装置(6)により作成された移動
ベクトルデータに基づいて、テキストRA M +11
1及びグラフィックRA M t12+のどの位置に表
示するのかを計算し、その結果に基づいてそれぞれの描
画位置への描画処理を行う。第9図は例、t4fNcプ
ロクラム命令がGO12−10,000:である場合の
CRT (10)描画上の表示状態を示した例であり、
Z軸方向すなわち加工深さが10mmの場合の加工進捗
状況を示し、上記加工深さの指令値が−10,000、
現在値が−3,555、加工深さ方向の残距離が−6,
555である場合を表示している。
On the other hand, the data display device (7) converts the drawing data for each NC instruction created by the drawing data creation device (4) based on the movement vector data created by the data interpolation device (6). , text RAM +11
1 and graphic RAM t12+ to be displayed, and based on the results, drawing processing is performed at each drawing position. FIG. 9 is an example showing the display state on CRT (10) drawing when the t4fNc program command is GO12-10,000:,
It shows the machining progress in the Z-axis direction, that is, when the machining depth is 10 mm, and the command value of the machining depth is -10,000,
The current value is -3,555, the remaining distance in the machining depth direction is -6,
555 is displayed.

[発明が解決しようとする課題] 従来のグラフィック描画方法は以上の様に実行されてい
るので、例えば加工の進捗状況を確認する為には、CR
T 1lO)画面上に表示される現在値、残距離あるい
は指令値を読み取り、これらの数値に基づいてその時点
の加工進捗状況を把握せねばならず、更に揺動加工の様
な複雑な動きを行う加工の場合には、加工最深値は数値
を見ただけではその確認が非常に困難である等の解決す
べき課題があった。
[Problem to be solved by the invention] Since the conventional graphic drawing method is executed as described above, for example, in order to check the progress of processing, CR
T1lO) It is necessary to read the current value, remaining distance, or command value displayed on the screen, and understand the machining progress status at that point based on these values. In the case of machining, there were problems that needed to be resolved, such as the fact that it was very difficult to confirm the maximum depth of machining just by looking at the numerical values.

この発明は上記の様な課題を解決する為になされたもの
で、加工進捗状況をCRT等の画面上で目視確認するこ
とができるグラフィック描画方法を得ることを目的とす
る。
This invention was made to solve the above-mentioned problems, and an object of the present invention is to provide a graphic drawing method that allows the progress of processing to be visually confirmed on a screen such as a CRT.

又、この発明の別の発明は上記目的に加え更に正確な目
視確認が行えるグラフィック描画方法を得ることを目的
とする。
Another object of the present invention is to obtain a graphic drawing method that enables more accurate visual confirmation in addition to the above object.

〔課題を解決するための手段1 この発明に係るグラフィック描画方法は、実行対象のN
Cプログラムを読み出してその命令を解析する段階と、
該解析された命令の中から加工対応のNC命令を抽出す
る段階と、該抽出されたNC命令をtaIiil!座標
系からグラフィック座標系に変換する段階と、上記抽出
された加工対応のNC命令の実行に伴い、上記グラフィ
ック座標系に変換されたデータに基づいてその内容をグ
ラフィック描画する段階とからなるものである。
[Means for solving the problem 1 The graphic drawing method according to the present invention
a stage of reading a C program and analyzing its instructions;
A step of extracting an NC instruction corresponding to machining from the analyzed instructions, and a step of extracting the extracted NC instruction from the analyzed instruction. The process consists of a step of converting the coordinate system to a graphic coordinate system, and a step of graphically drawing the contents based on the data converted to the graphic coordinate system as the extracted NC command corresponding to processing is executed. be.

又、この発明の別の発明に係るグラフィック描画方法は
、実行対象のNCプログラムを読み出してその命令を解
析する段階と、該解析された命令の中から加工対応のN
C命令を抽出する段階と、該抽出された加工対応のNC
命令実行中の機械系の実際の座標値を検出する段階と、
該検出された座標値に基づく座標系をグラフィック座標
系に変換する段階と、該グラフィック座標系に変換され
たデータに基づいてその内容をグラフィック描画する段
階とからなるものである。
Further, a graphic drawing method according to another aspect of the present invention includes the steps of reading an NC program to be executed and analyzing its instructions, and selecting N for processing from among the analyzed instructions.
The step of extracting the C command and the NC corresponding to the extracted processing
detecting actual coordinate values of the mechanical system during instruction execution;
The method consists of a step of converting a coordinate system based on the detected coordinate values into a graphic coordinate system, and a step of graphically drawing the contents based on the data converted into the graphic coordinate system.

[作用] この発明においては、実行対象のNCプログラムを読み
出してその命令を解析し、その中から加工対応のNC命
令を抽出してその抽出されたNC命令を機械座標系から
グラフィック座標系に変換し、上記抽出された加工対応
のNC命令の実行に伴い、上記グラフィック座標系に変
換されたデータに基づいたグラフィック描画を行って、
加工進捗状況を表示する。
[Operation] In this invention, an NC program to be executed is read out, its instructions are analyzed, NC instructions corresponding to machining are extracted from it, and the extracted NC instructions are converted from a mechanical coordinate system to a graphic coordinate system. Then, along with the execution of the extracted processing-compatible NC command, graphic drawing is performed based on the data converted to the graphic coordinate system,
Display the processing progress.

又、この発明の別の発明においては、実行対象のNCプ
ログラムを読み出してその命令を解析し、その中から加
工対応のNC命令を抽出してその抽出された加工対応の
NC命令実行中の機械系の実際の座標値を検出し、この
座標値に基づく座標系をグラフィック座標系に変換し、
該グラフィック座標系に変換されたデータに基づいたグ
ラフィック描画を行って、実加工進捗状況を表示する。
Further, in another aspect of the present invention, an NC program to be executed is read out, its instructions are analyzed, NC instructions for machining are extracted from the NC program, and a machine that is executing the extracted NC instructions for machining is provided. Find the actual coordinate values of the system, transform the coordinate system based on these coordinate values into a graphic coordinate system,
Graphic drawing is performed based on the data converted to the graphic coordinate system, and the actual processing progress is displayed.

[発明の実施例1 以下、この発明の一実施例を図について説明する。第1
図において、(13)はNCプログラム解析装置(5)
により解析された1つのNC命令を読み出して、加工に
対応する命令の有無を判断すると共に、ブロック化の可
能性(例えばサブルーチン命令の有無)を判断し、可能
であればそのブロック化処理を行う加工命令判別・ブロ
ック化装置、(14)は加工命令判別・ブロック化装置
(13)の出力に基づいて、その内容の描画処理を実行
するデータ描画処理装置、(15)は加工命令判別リブ
ロック化装置(13)におけるブロック化の際に用いら
れるブロック化対象NC命令が記述されているNC命令
定義テーブルである。なお、同図において従来例を示す
第8図と同一の符号については同−又は相当部分を示し
ているので、その説明を省略する。
[Embodiment 1 of the Invention Hereinafter, an embodiment of the present invention will be described with reference to the drawings. 1st
In the figure, (13) is the NC program analysis device (5)
Read one NC instruction analyzed by A processing instruction discrimination/blocking device (14) is a data drawing processing device that executes drawing processing of the contents based on the output of the processing instruction discrimination/blocking device (13), (15) is a processing instruction discrimination reblocking device. This is an NC instruction definition table in which blocking target NC instructions used during blocking in the coding device (13) are described. In this figure, the same reference numerals as those in FIG. 8 showing the conventional example indicate the same or corresponding parts, so the explanation thereof will be omitted.

第2図は加工命令判別・ブロック化装置(13)の処理
の流れを示す図であり、図において、(17)はNCプ
ログラムを解析し、その中にNC命令定義テーブル(1
5)内に該当する文字列が存在する場合にセットされる
ブロック化フラグ(以下、ブロック化FG)である。
FIG. 2 is a diagram showing the processing flow of the machining instruction discrimination/blocking device (13). In the figure, (17) analyzes the NC program and includes the NC instruction definition table (1
This is a blocking flag (hereinafter referred to as blocking FG) that is set when a corresponding character string exists in 5).

第3図はデータ描画処理装置(14)の処理の流れを示
す図であり、図において、(18)はNCプログラム、
(19)はブロック化対象のサブルーチン、(20)は
ブロック化対象のNC命令である。
FIG. 3 is a diagram showing the processing flow of the data drawing processing device (14). In the figure, (18) is an NC program,
(19) is a subroutine to be blocked, and (20) is an NC instruction to be blocked.

第5図はグラフィック描画対象のNCプログラム及びそ
のグラフィック描画例を示す図であり、図において、 
f21+は描画座標、(22)はブロック化対象のNC
命令(20)を処理して得られた結果及び自動スケール
処理の結果に基づいて、CRT (101画面上に描画
された加工穴、(23)は加工途中の加工穴(22)の
未加工部分、(24)は加工位置を示す為のマークであ
る。
FIG. 5 is a diagram showing an NC program for graphic drawing and an example of its graphic drawing.
f21+ is the drawing coordinate, (22) is the NC to be blocked
Based on the result obtained by processing the command (20) and the result of the automatic scaling process, the machined hole drawn on the CRT (101 screen), (23) is the unprocessed part of the machined hole (22) that is currently being machined. , (24) are marks for indicating the processing position.

次に動作について説明する。NCプログラム解析装置(
15)によって読み出されて解析されたNCデータが、
加工命令判別・ブロック化装置(13)においてブロッ
ク化対象NC命令であることが判別されればブロック化
処理が実行される。該ブロック化処理の方法は第2図に
示す様に、先ず、ステップ(Sl)に示す如く、NC命
令の1命令分を読み出す、、続いて、ステップ(Sl)
に示す如(、NC命令定義テーブル(1石)のポインタ
ロードを行い、ステップ(S3)において、上記ステッ
プ+SL+にて読み出したNC命令の1命令分と上記N
C命令定義テーブル(15)の内容を比較して、該当す
る文字列(ここでは626)が存在するかどうかを判定
する。
Next, the operation will be explained. NC program analysis device (
The NC data read and analyzed by 15) is
If the processing instruction determination/blocking device (13) determines that the NC instruction is a blocking target NC instruction, blocking processing is executed. As shown in FIG. 2, the blocking processing method first reads out one NC instruction, as shown in step (Sl), and then reads step (Sl).
As shown in (, the pointer of the NC instruction definition table (1 stone) is loaded, and in step (S3), one instruction of the NC instruction read in the above step +SL+ and the above N
The contents of the C instruction definition table (15) are compared to determine whether the corresponding character string (here, 626) exists.

該当する文字列G26が存在しない場合には、ステップ
(S4)に示す如(、NC命令定義テーブル(15)の
ポインタをインクリメントしてステップ(S5)に移行
し、NC命令定義テーブル(15)のテーブルエンド(
FFIかどうかを判定し、テーブルエンド(FF)でな
ければ再びステップ(S3)に戻って上記判定動作を繰
り返し、該当する文字列G26が確認された時点におい
て、ブロック化を行う為のステップ(S6)に移行し、
ブロック化F G (171をセットする。
If the corresponding character string G26 does not exist, the pointer in the NC instruction definition table (15) is incremented as shown in step (S4), and the process moves to step (S5). table end (
It is determined whether or not it is FFI, and if it is not a table end (FF), the process returns to step (S3) and the above determination operation is repeated. When the corresponding character string G26 is confirmed, step (S6) for performing blocking is performed. ),
Blocking FG (set 171).

一方、データ描画処理装置(14)においては、加工命
令判別・プロ・ンク化装置(13)の処理結果に基づい
て、テキストRA M [111及びグラフィックRA
 M (121上への描画処理データが生成される。該
描画処理の方法は第3図に示す様に、先ず、ステップf
310)に示す如く、加工に対応するNCプログラム(
18)内の一行を読み出し、該読み出したポインタをセ
ーブしてお(。次に、ステップ+5ll)において、上
記ステップ(S6)でセットしたブロック化F G f
17)を検索し、該ブロック化F G (171にフラ
グが存在する場合には、ステップ(SL2+に示す如(
、ブロック化対象NC命令(第4図に示すサブルーチン
L 9000)の1命令を入力した後、ステップf51
31においてサブルーチンリターン命令G23が確認さ
れる迄ステップfs141 、  (S12) 、 (
S13)を繰り返し実行する。なお、ステップ(S14
1においては、上記サブルーチンL 9000の各命令
内の最大値、最小値が計算されている。次に、上記ステ
ップ(S131においてサブルーチンリターン命令G2
3が確認されると、ステップ(S15)において上記ス
テップ(S14)で計算された最大値、最小値を基に、
上記サブルーチンL 9000内に定義されている形状
をCRT +10)画面上に適切な大きさで描画する為
のスケール値が自動的に計算される。続いて、ステップ
fs16)に示す如く、ブロック化FG (17)のフ
ラグの存在が確認された時点のNC命令ポインタがプロ
グラムカウンクにセーブされた後、描画処理ルーチンに
移行する。
On the other hand, in the data drawing processing device (14), text RAM [111 and graphic RA
M (121) Drawing process data is generated. As shown in FIG.
As shown in 310), the NC program (
18), and save the read pointer (.Next, in step +5ll), set the blocking F G f set in the above step (S6).
17), and if there is a flag in the blocked FG (171), execute step (SL2+) as shown in step (SL2+).
, after inputting one instruction of the NC instruction to be blocked (subroutine L 9000 shown in FIG. 4), step f51
Steps fs141, (S12), (
S13) is repeatedly executed. Note that step (S14
1, the maximum and minimum values in each instruction of the subroutine L 9000 are calculated. Next, in the step (S131), the subroutine return command G2 is
3 is confirmed, in step (S15), based on the maximum value and minimum value calculated in the above step (S14),
A scale value for drawing the shape defined in the above subroutine L9000 on the CRT screen at an appropriate size is automatically calculated. Subsequently, as shown in step fs16), the NC instruction pointer at the time when the presence of the blocking FG (17) flag is confirmed is saved in the program count, and then the process moves to the drawing processing routine.

又、上記ステップ(Sill においてブロック化FG
 (17)にフラグが存在しない場合には、ステップ(
S19)に示す如く、ブロック化の必要のない単一加工
命令であると判断され、そのNC命令の定義形状のスケ
ール値が自動的に計算されてステップ1s161 に移
行し、以下、上記同様のプロセスで描画処理ルーチンに
移行する。
Also, in the above step (Sill), block FG
If the flag does not exist in (17), step (
As shown in step S19), it is determined that this is a single machining command that does not require blocking, and the scale value of the defined shape of the NC command is automatically calculated, and the process moves to step 1s161, whereupon the same process as above is performed. Shifts to the drawing processing routine.

次に描画処理ルーチンを第4閃に基づいて説明する。ス
テップf320)に示す如(、上記ステップfs151
 において求められたデータすなわち機械座標系を、C
RT (10)画面上に表示する為のグラフィック座標
系に変換する。次にステップ(S211 に示す如く、
上記変換されたデータをグラフィックRA M [12
+上の所定のエリアに蕾き込む。続いて、ステップfs
22] 、  (S23)に示す如(、未加工部分に対
して任意の着色を行うと共に、加工点にマーク(24)
を設定する。次に、ステップ(S24+に示す如く、機
械座標系の移動に連動して加工部分の色を消去すると共
に加工点のマーク(24)も移動させる。
Next, the drawing processing routine will be explained based on the fourth flash. As shown in step f320) (, step fs151 above)
The data obtained in C, that is, the mechanical coordinate system, is
RT (10) Convert to a graphic coordinate system for display on the screen. Next, as shown in step (S211),
The converted data is converted into a graphic RAM [12
+ Buds in the designated area above. Next, step fs
22], as shown in (S23), the unprocessed part is arbitrarily colored and the processing points are marked (24).
Set. Next, as shown in step (S24+), the color of the machined part is erased and the mark (24) of the machined point is also moved in conjunction with the movement of the machine coordinate system.

以上の様な処理により第5図に示す如く、CRT +1
01画面上には例えばサブルーチンL 9000で処理
される加工内容が表示される。
Through the above-described processing, as shown in FIG.
For example, the processing contents processed in subroutine L9000 are displayed on the 01 screen.

すなわち、描画座標(21)及びその系に対応する加工
穴(22)が表示されると共に、上記加工穴(22)内
部の未加工部分(23)は所定の色で塗り潰され、加工
の進捗状況に合わせてマーク(24)表示されている現
在位置が移動して行き、加工の進行と共に加工済みの部
分の色が消去されつつ、上記加工穴(22)の内部が加
工実体に合致して描画されていく。
That is, the drawing coordinates (21) and the machined hole (22) corresponding to the system are displayed, and the unprocessed part (23) inside the machined hole (22) is filled with a predetermined color, and the progress of the process is displayed. The current position displayed by the mark (24) moves in accordance with the machining progress, and as the machining progresses, the color of the machined part is erased, and the inside of the machined hole (22) is drawn in accordance with the machining entity. It will be done.

次にこの発明の別の発明について説明する。第6図にお
いて、(16)は実稼働中における機械座標系をグラフ
ィック座標系に変換する変換装置である。なお、同図に
おいて第1図と同一の符号については同−又は相当部分
を示しているので、その説明を省略する。
Next, another invention of this invention will be explained. In FIG. 6, (16) is a conversion device that converts the mechanical coordinate system into the graphic coordinate system during actual operation. Note that in this figure, the same reference numerals as in FIG. 1 indicate the same or corresponding parts, so the explanation thereof will be omitted.

次に動作について説明する。なお、描画処理の方法以外
は上記実施例と同様であるのでその説明を省略し、異な
る部分について説明する。
Next, the operation will be explained. It should be noted that since the method of drawing processing is the same as that of the above embodiment, the explanation thereof will be omitted, and only the different parts will be explained.

変換装置(16)にはサーボモータ(9)から構成され
る装置の情報、及びデータ描画処理装置(14)から出
力されるNCプログラム上の機械系の座標値とが入力さ
れており、これらのデータに基づいて実際の機械座標系
が演算された後グラフィック座標系に変換されて、テキ
ストRA M (ill及びグラフィックRA M (
121上への描画処理データが生成される。該描画処理
の方法は第7図に示す描画処理ルーチンに示す如くであ
り、′先ず、ステップ(S30)に示す如く各軸対応の
サーボモータ(9)から現在の位置情報を入力し、次に
ステップf331+に示す如(、この位置情報に基づい
てNCプログラム上の機械座標系を補正して機械系の実
際の座標値を演算する。次にステップfs32)に示す
如く、ステップ(S311 にて演算した補正後の機械
座標系をグラフィック座標系に変換する。以後ステップ
fs21) 、 [5221、(S23) 、 fs2
41 においては上記実施例と同一のプロセスを実行し
て、CRT +101画面上に第5図に示す如(の加工
状態の表示を行う。
Information about the device consisting of the servo motor (9) and coordinate values of the mechanical system on the NC program output from the data drawing processing device (14) are input to the conversion device (16). After the actual machine coordinate system is calculated based on the data, it is converted to the graphic coordinate system, and the text RAM (ill) and the graphic RAM (
121 is generated. The drawing processing method is as shown in the drawing processing routine shown in FIG. As shown in step f331+ (based on this position information, the mechanical coordinate system on the NC program is corrected to calculate the actual coordinate values of the mechanical system. Next, step fs32), as shown in step (S311), the The corrected mechanical coordinate system is converted into a graphic coordinate system. Thereafter, steps fs21), [5221, (S23), fs2]
In step 41, the same process as in the above embodiment is executed to display the machining status (as shown in FIG. 5) on the CRT+101 screen.

なお、上記それぞれの実施例ではCR’r (10)画
面上の加工穴(22)の状態をZ−x軸について表示す
る場合について説明したが、これらに限定されるもので
はなく、他の軸についても上記同様表示できることは言
う迄もない。
In addition, in each of the above embodiments, the case where the state of the machined hole (22) on the CR'r (10) screen is displayed with respect to the Z-x axis has been described, but the present invention is not limited to this, and other axes may be displayed. Needless to say, it can also be displayed in the same manner as above.

[発明の効果1 以上の様に、この発明によれば実行対象のNCプログラ
ムを読み出してその命令を解析し、その中から加工対応
のNC命令を抽出して、その抽出されたNC命令を機械
座標系からグラフィック座標系に変換し、上記抽出され
た加工対応のNC命令の実行に伴い、上記グラフィック
座標系に変換されたデータに基づいたグラフィック描画
を行う様にしたので、加工進捗状況を実体に則して目視
確認できるものが得られるという効果がある。
[Effect of the invention 1 As described above, according to the present invention, an NC program to be executed is read out, its instructions are analyzed, NC instructions corresponding to machining are extracted from it, and the extracted NC instructions are applied to the machine. The coordinate system is converted to a graphic coordinate system, and as the above-mentioned extracted machining-compatible NC command is executed, graphics are drawn based on the data converted to the above-mentioned graphic coordinate system. This has the effect that it is possible to obtain something that can be visually confirmed in accordance with the above.

又、この発明の別の発明によれば実行対象のNCプログ
ラムを読み出してその命令を解析し、その中から加工対
応のNC命令を抽出して、その抽出された加工対応のN
C命令実行中の機械系の実際の座標値を検出し、この座
標値に基づく座標系をグラフィック座標系に変換し、該
グラフィック座標系に変換されたデータに基づいたグラ
フィック描画を行う様にしたので、上記効果に加え更に
正確な実加工進捗状態を確認できるものが得られるとい
う効果がある。
According to another aspect of the present invention, the NC program to be executed is read out, its instructions are analyzed, the NC instructions corresponding to machining are extracted from the NC instructions, and the extracted NC instructions corresponding to machining are
The actual coordinate values of the mechanical system during execution of the C command are detected, the coordinate system based on these coordinate values is converted to a graphic coordinate system, and graphic drawing is performed based on the data converted to the graphic coordinate system. Therefore, in addition to the above effects, there is an effect that it is possible to confirm the actual processing progress state more accurately.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例による放電加工装置に用い
られる数値制御装置の構成を示すブロック図、第2図は
この発明の一実施例による加工命令判別・ブロック化装
置の処理の流れを示す図、第3図はこの発明の一実施例
によるデータ描画処理装置の処理の流れを示す図、第4
図はこの発明の一実施例による描画処理ルーチンの流れ
を示す図、第5図はこの発明の一実施例によるグラフィ
ック描画対象のNCプログラム及びそのグラフィック描
画例を示す区、第6図はこの発明の別の発明の一実施例
による放電加工装置に用いられる数値制御装置の構成を
示すブロック図、第7図はこの発明の別の発明の一実施
例による描画処理ルーチンの流れを示す図、第8図は従
来の放電加工装置に用いられる数値制御装置の構成を示
すブロック図、第9図は従来のCRT画面上に表示され
るデータの一例を示す図である。 図において、  f13)は加工命令判別・ブロック化
装雷、(14)はデータ描画処理装置、(15)はNC
命令定義テーブル、(I6)は変換装置である。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing the configuration of a numerical control device used in an electric discharge machining apparatus according to an embodiment of the present invention, and FIG. 2 shows a processing flow of a machining command discrimination/blocking device according to an embodiment of the present invention. FIG. 3 is a diagram showing the processing flow of a data drawing processing device according to an embodiment of the present invention, and FIG.
5 is a diagram showing the flow of a drawing processing routine according to an embodiment of the present invention, FIG. 5 is a diagram showing an NC program for graphic drawing and an example of its graphic drawing according to an embodiment of the invention, and FIG. 6 is a diagram showing the flow of a drawing processing routine according to an embodiment of the present invention. FIG. 7 is a block diagram showing the configuration of a numerical control device used in an electric discharge machining apparatus according to another embodiment of the present invention; FIG. 7 is a diagram showing the flow of a drawing processing routine according to another embodiment of the present invention; FIG. 8 is a block diagram showing the configuration of a numerical control device used in a conventional electrical discharge machining apparatus, and FIG. 9 is a diagram showing an example of data displayed on a conventional CRT screen. In the figure, f13) is the processing command discrimination/blocking charger, (14) is the data drawing processing device, and (15) is the NC
The instruction definition table (I6) is a conversion device. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (2)

【特許請求の範囲】[Claims] (1)実行対象のNCプログラムを読み出してその命令
を解析する段階と、該解析された命令の中から加工対応
のNC命令を抽出する段階と、該抽出されたNC命令を
機械座標系からグラフィック座標系に変換する段階と、
上記抽出された加工対応のNC命令の実行に伴い、上記
グラフィック座標系に変換されたデータに基づいてその
内容をグラフィック描画する段階とからなることを特徴
とするグラフィック描画方法。
(1) A step of reading an NC program to be executed and analyzing its instructions, a step of extracting a machining-compatible NC instruction from the analyzed instructions, and a graphical representation of the extracted NC instruction from the machine coordinate system. a step of converting into a coordinate system;
A graphic drawing method comprising the step of, upon execution of the extracted NC command corresponding to processing, drawing the contents graphically based on the data converted to the graphic coordinate system.
(2)実行対象のNCプログラムを読み出してその命令
を解析する段階と、該解析された命令の中から加工対応
のNC命令を抽出する段階と、該抽出された加工対応の
NC命令実行中の機械系の実際の座標値を検出する段階
と、該検出された座標値に基づく座標系をグラフィック
座標系に変換する段階と、該グラフィック座標系に変換
されたデータに基づいてその内容をグラフィック描画す
る段階とからなることを特徴とするグラフィック描画方
法。
(2) A step of reading an NC program to be executed and analyzing its instructions, a step of extracting a machining-compatible NC instruction from the analyzed instructions, and a step of executing the extracted machining-compatible NC instruction. A step of detecting the actual coordinate values of the mechanical system, a step of converting the coordinate system based on the detected coordinate values into a graphic coordinate system, and a step of graphically drawing the contents based on the data converted to the graphic coordinate system. A graphic drawing method comprising the steps of:
JP29827290A 1990-11-02 1990-11-02 Graphic drawing method Pending JPH04174006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29827290A JPH04174006A (en) 1990-11-02 1990-11-02 Graphic drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29827290A JPH04174006A (en) 1990-11-02 1990-11-02 Graphic drawing method

Publications (1)

Publication Number Publication Date
JPH04174006A true JPH04174006A (en) 1992-06-22

Family

ID=17857491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29827290A Pending JPH04174006A (en) 1990-11-02 1990-11-02 Graphic drawing method

Country Status (1)

Country Link
JP (1) JPH04174006A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010140390A1 (en) * 2009-06-03 2010-12-09 三菱電機株式会社 Numerical control device and production system
CN109736111A (en) * 2018-12-29 2019-05-10 台山市红岭洗染有限公司 Denim fabric decoloration control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010140390A1 (en) * 2009-06-03 2010-12-09 三菱電機株式会社 Numerical control device and production system
CN102428419A (en) * 2009-06-03 2012-04-25 三菱电机株式会社 Numerical control device and production system
JP5202735B2 (en) * 2009-06-03 2013-06-05 三菱電機株式会社 Numerical controller
US9377776B2 (en) 2009-06-03 2016-06-28 Mitsubishi Electric Corporation Numerical control apparatus and production system
CN109736111A (en) * 2018-12-29 2019-05-10 台山市红岭洗染有限公司 Denim fabric decoloration control method

Similar Documents

Publication Publication Date Title
US4757461A (en) Process for graphically representing a structure
JP2641797B2 (en) Interactive numerical controller
EP0137047B1 (en) Method of determining three-dimensional tool path
EP0558030B1 (en) Coordinate system display guide for a numerical control apparatus
EP0113682A2 (en) Numerical control system and method
JPH04174006A (en) Graphic drawing method
JP3066646B2 (en) Motion simulation system
KR19980020028A (en) Virtual computer numerical control machine system and method
JP2004318825A (en) Hidden line elimination method eliminating hidden line at projecting of three-dimensional model consisting of plurality of polygons on two-dimensional plane surface
EP0419672A1 (en) Method of plotting tool shape
US5093796A (en) Automatic programming definition of a machining configuration for a numerical control device
JPH04252307A (en) Interactive numerical controller
JP2837927B2 (en) Numerical control device with a function to display the trajectory of the rotation axis
JP3405827B2 (en) Graphic processing apparatus and intersection determination processing method
JPH08328630A (en) Working locus display system
JPS59189413A (en) Numerical control device provided with graphic display device
JPH06114678A (en) Tool locus display device of nc device
JPH0566819A (en) Interactive automatic programming method
JPH0553636A (en) Machining locus display method for numerical controller
JPH06138933A (en) Program check screen display device
JPH0695293B2 (en) Machining simulation method in numerical controller
JPS6299050A (en) Automatic programming apparatus
JPH0325291B2 (en)
JP2943177B2 (en) Drawing device for XY coordinate axes with scale numerical value
JPS63119934A (en) Metallic die working data checking device