JPH0543201U - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH0543201U
JPH0543201U JP9344591U JP9344591U JPH0543201U JP H0543201 U JPH0543201 U JP H0543201U JP 9344591 U JP9344591 U JP 9344591U JP 9344591 U JP9344591 U JP 9344591U JP H0543201 U JPH0543201 U JP H0543201U
Authority
JP
Japan
Prior art keywords
color
tool
block
tool trajectory
flag
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
JP9344591U
Other languages
Japanese (ja)
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 JP9344591U priority Critical patent/JPH0543201U/en
Publication of JPH0543201U publication Critical patent/JPH0543201U/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 加工プログラムの工具軌跡描画において、ブ
ロックを1ブロックごとに色分け、直線と円弧で色分
け、シーケンス番号ごとに色分けして描画することので
きる数値制御装置の提供を目的とする。 【構成】 NC加工プログラムを1ブロックずつ読み取
る1ブロック読み取り手段と、工具軌跡をどのように色
分けするかを指定する色分け指定手段と、1ブロック読
み取り手段で読み取られたブロックの工具軌跡データを
作成する工具軌跡データ作成手段と、色分け指定手段で
指定されたパターンで工具軌跡データに色のフラグを付
ける色フラグ設定手段と、色フラグの付いた工具軌跡を
格納する色フラグ付き工具軌跡格納テーブルと、色フラ
グ付き工具軌跡格納テーブルにある色フラグをもとに工
具軌跡を描画する工具軌跡描画手段とを具備した数値制
御装置1によりなる。
(57) [Summary] [Object] To provide a numerical controller capable of drawing blocks in a machining program in which each block is color-coded, straight-line and arc-colored, and each sequence number is color-coded. And [Structure] One block reading means for reading the NC machining program one block at a time, color classification designating means for designating how to color-code the tool trajectory, and tool trajectory data of the block read by the one block reading means are created. A tool trajectory data creating means, a color flag setting means for flagging the tool trajectory data with a color in a pattern designated by the color classification designating means, a tool trajectory storage table with a color flag for storing the tool trajectory with a color flag, The numerical controller 1 is provided with a tool locus drawing means for drawing a tool locus based on the color flag in the tool locus storage table with color flags.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、工具軌跡を表示し得るグラフィック表示装置を備えた数値制御装置 に関するものである。 The present invention relates to a numerical control device equipped with a graphic display device capable of displaying a tool path.

【0002】[0002]

【従来の技術】[Prior Art]

従来の数値制御装置は、加工プログラムの工具軌跡を全て同一色で表示するも のであるため、実際にNC加工プログラムのチェックを行ってみると、1ブロッ クがどこまでなのかわからない。また、表示を見る限り、円弧と直線を区別でき ないことがある。 Since the conventional numerical control device displays all the tool paths of the machining program in the same color, when actually checking the NC machining program, it is impossible to know how much one block is. Also, as long as you look at the display, it may not be possible to distinguish between arcs and straight lines.

【0003】[0003]

【考案が解決しようとする課題】[Problems to be solved by the device]

従来の技術では、加工プログラムの工具軌跡を全て同一色で表示するため、例 えば、滑らかに近いブロックの連続の場合、1ブロックがどこまでなのかわから ない。また、半径の大きい円弧の場合、直線と区別できないことがある。また、 同じシーケンス番号のブロックがどこまでなのか識別することができない。 In the conventional technique, since all tool paths of the machining program are displayed in the same color, for example, in the case of continuous blocks that are almost smooth, it is not possible to know how much one block is. Further, in the case of a circular arc having a large radius, it may be indistinguishable from a straight line. Also, it is not possible to identify how many blocks have the same sequence number.

【0004】 この考案は、上記のような問題点を解決するためになされたもので、色分け方 法を指定することにより、工具軌跡の1ブロックを明らかにすることができ、直 線と円弧の区別か簡単で、同じシーケンス番号のブロックを識別できる数値制御 装置を提供することを目的とする。The present invention has been made to solve the above problems, and by designating a color-coding method, one block of a tool path can be clarified. It is an object of the present invention to provide a numerical control device that can be distinguished easily and can identify blocks having the same sequence number.

【0005】[0005]

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

上記目的は、NC加工プログラムを1ブロックずつ読み取る1ブロック読み取 り手段と、工具軌跡をどのパターンで色分けするかを指定する色分け指定手段と 、前記1ブロック読み取り手段で読み取られたブロックの工具軌跡データを作成 する工具軌跡データ作成手段と、前記色分け指定手段で指定されたパターンで工 具軌跡データに色のフラグを付ける色フラグ設定手段と、色フラグの付いた工具 軌跡を格納する色フラグ付き工具軌跡格納テーブルと、色フラグ付き工具軌跡格 納テーブルにある色フラグをもとに工具軌跡を描画する工具軌跡描画手段を設け ることにより達成される。 The above-mentioned objects are: 1-block reading means for reading the NC machining program one block at a time; color-coding designating means for designating which pattern the tool trajectory is to be color-coded; and tool trajectory data of blocks read by the 1-block reading means Tool trajectory data creating means, a color flag setting means for flagging the tool trajectory data with a color specified by the color classification designating means, and a tool with a color flag for storing the tool trajectory with a color flag This is achieved by providing a tool locus drawing means that draws a tool locus based on the color flags in the locus storage table and the tool locus storage table with color flags.

【0006】[0006]

【作用】[Action]

1ブロック読み取り手段により、加工プログラムから1ブロックずつ読み取り 、色分け指定手段により、工具軌跡を1ブロックずつ色分けするか、直線と円弧 で色分けするか、シーケンス番号ごとに色分けするかを指定し、工具軌跡データ 作成手段により、読み取ったブロックから工具軌跡データを作成し、色フラグ設 定手段により、工具軌跡データに色情報を付け、色情報の付いた工具軌跡データ を色フラグ付き工具軌跡格納テーブルに格納し、色フラグ付き工具軌跡格納テー ブルをもとに、工具軌跡描画手段で工具軌跡を描画する。 The 1-block reading means reads the blocks one by one from the machining program, and the color-coding designating means specifies whether the tool loci are color-coded one block at a time, straight lines and arcs, or each sequence number. The data creating means creates tool trajectory data from the read blocks, the color flag setting means adds color information to the tool trajectory data, and the tool trajectory data with color information is stored in the tool trajectory storage table with color flags. Then, based on the tool trajectory storage table with the color flag, the tool trajectory is drawn by the tool trajectory drawing means.

【0007】[0007]

【実施例】【Example】

実施例1. 図1は、本考案の数値制御方式を実行する数値制御装置図で、数値制御装置1 は、マイクロプロセッサ(以下、CPUという)2を有し、CPU2には、制御 プログラムを記憶するROM3、データの一時記憶等に利用されるRAM4、加 工プログラムやパラメータ等を記憶する不揮発性メモリ5、加工プログラムをパ ンチアウトするためのリーダ/パンチャインターフェース6、加工プログラムや CRTデータをプリントアウトするプリンタインターフェイス7、CRT装置8 、キーボード9、フロッピーディスクを使用するためのフロッピーローダ11、 各軸のサーボモータ等を駆動制御するための軸制御回路10が、バス12で接続 されている。 Example 1. FIG. 1 is a diagram of a numerical controller for executing the numerical control method of the present invention. The numerical controller 1 has a microprocessor (hereinafter referred to as CPU) 2, and the CPU 2 has a ROM 3 for storing a control program and data. RAM4 used for temporary storage of data, non-volatile memory 5 for storing processing programs and parameters, reader / puncher interface 6 for punching out processing programs, printer interface 7 for printing processing programs and CRT data. , A CRT device 8, a keyboard 9, a floppy loader 11 for using a floppy disk, and an axis control circuit 10 for driving and controlling a servo motor of each axis are connected by a bus 12.

【0008】 図2は、色分け指定から工具軌跡描画までの処理フローである。本実施例の動 作をこのフローを用いて説明する。FIG. 2 shows a processing flow from color designation to tool trajectory drawing. The operation of this embodiment will be described using this flow.

【0009】 工具軌跡表示の起動がされたとき、まず、おのおののデータを初期化しておく (ステップS1)。ここで、初期の色を色1としておく。 不揮発性メモリ5から1ブロック分のプログラムを取り出し(ステップ2)、 それが移動指令かどうか判定する(ステップS3)。移動指令の場合は、移動量 を計算して、工具軌跡データを作成する(ステップS4)。移動指令でない場合 は、次のブロックを取り出す。工具軌跡データ作成後、色分け指定があるかどう か判定する(ステップS5)。色分け指定がなければ、色は色1のままとなる( ステップS6)。色分け指定があれば、そのパターンを判別し(ステップS7) 、パターンに応じた処理をする。 1ブロックずつ色分けの場合は、前に作ったブロックの色を判定し(ステップ S8)、前のブロックが色1ならば、今回の色は色2とし(ステップS9)、前 のブロックが色2ならば、今回のブロックは色1とする(ステップS10)。 円弧と直線で色分けの場合は、円弧ブロックかどうか判定し(ステップS11 )、円弧ならば色2とし(ステップS12)、直線ならば色1とする(ステップ S13)。 シーケンスごとに色分けの場合は、前のブロックと同じシーケンス番号かどう か判定し(ステップS14)、同じシーケンス番号ならば、前のブロックの色を 調べ(ステップS15)、色1または色2とする(ステップS17、S18)。 前のブロックとシーケンス番号が異なる場合は、前ブロックの色を調べ(ステッ プS16)、前のブロックと異なる色にする(ステップS18、S19)。 色が決定されたら、その色の情報である色フラグを先に作った工具軌跡データ とともに、色フラグ付き工具軌跡格納テーブルにセットする。 その後、描画手段で、色フラグ付き工具軌跡格納テーブルの色フラグと工具軌 跡データから描画を行う(ステップS21)。描画後、プログラムの最後かどう かを判定し(ステップS22)、最後でなければ、1ブロック分のプログラムを 取り出す処理に戻り(ステップS2)、最後ならば、終了する。 工具軌跡を1ブロックずつ色分けするか、円弧と直線で色分けするか、シーケ ンスごとで色分けするかは、キー入力で指定する。例えば、図3のような表示と キーを用意しておき、1ブロックずつの色分けをしたいなら、キー1を押せば良 い。When the tool locus display is activated, first, each data is initialized (step S1). Here, the initial color is set to color 1. A program for one block is retrieved from the non-volatile memory 5 (step 2), and it is determined whether or not it is a movement command (step S3). In the case of a movement command, the movement amount is calculated and tool path data is created (step S4). If it is not a move command, the next block is fetched. After creating the tool trajectory data, it is determined whether or not there is a color coding designation (step S5). If no color classification is designated, the color remains the color 1 (step S6). If there is a color-coding designation, the pattern is discriminated (step S7), and processing is performed according to the pattern. In the case of color-coding one block at a time, the color of the previously created block is determined (step S8), and if the previous block is color 1, the current color is color 2 (step S9), and the previous block is color 2. If so, the block this time is set to color 1 (step S10). In the case of color-coding with an arc and a straight line, it is determined whether the block is a circular arc block (step S11). In the case of color coding for each sequence, it is determined whether or not the sequence number is the same as that of the previous block (step S14). If the sequence number is the same, the color of the previous block is checked (step S15), and it is set as color 1 or color 2. (Steps S17 and S18). If the sequence number is different from that of the previous block, the color of the previous block is checked (step S16), and the color is made different from that of the previous block (steps S18 and S19). When the color is determined, the color flag which is the information of the color is set in the tool trajectory storage table with the color flag together with the previously created tool trajectory data. Thereafter, the drawing means draws from the color flag and the tool track data in the tool track storage table with the color flag (step S21). After drawing, it is judged whether or not the program is the last one (step S22), and if it is not the last one, the process returns to the process of taking out the program for one block (step S2), and if it is the last one, the processing is finished. Use a key input to specify whether the tool path is color-coded block by block, arc-shaped and straight-line, or color-coded by sequence. For example, if the display and keys shown in FIG. 3 are prepared and it is desired to color-code one block at a time, it is sufficient to press the key 1.

【0010】 実施例2. 次に、色分けを指定した場合の表示例を述べる。 図4は、1ブロックずつの色分けを指定した場合で、1ブロックごとに色1、 色2と表示色が切り替わる。 図5は、円弧と直線で色分けを指定した場合で、直線は色1、円弧は、色2で 表示される。 図6は、シーケンスごとの色分けを指定した場合で、P0、P1、P2がシー ケンスNo.1で、P3、P4がシーケンスNo.2で、P5がシーケンスNo .2のとき、P0−P1−P2を色1で表示し、P3−P4を色2で表示し、P 5を色1で表示する。Example 2. Next, a display example when color coding is designated will be described. FIG. 4 shows a case in which color coding is designated for each block, and the display color is switched between color 1 and color 2 for each block. FIG. 5 shows a case where color coding is designated by an arc and a straight line, the straight line is displayed in color 1, and the arc is displayed in color 2. FIG. 6 shows a case in which the color coding for each sequence is designated, and P0, P1, and P2 are sequence numbers. 1, P3 and P4 are sequence numbers. 2, P5 is the sequence No. When 2, P0-P1-P2 is displayed in color 1, P3-P4 is displayed in color 2, and P 5 is displayed in color 1.

【0011】[0011]

【考案の効果】[Effect of the device]

本考案によれば、工具軌跡の1ブロックずつが容易にわかり、また、円弧と直 線の区別が容易で、同じシーケンス番号のブロックが容易にわかるので、加工プ ログラムの正当性の確認や、ブロックの連結状態を極めて容易にわかる利点があ る。 According to the present invention, each block of the tool path can be easily identified, and the arc and the straight line can be easily distinguished, and the block having the same sequence number can be easily identified. Therefore, the validity of the machining program can be confirmed, There is an advantage that the connected state of blocks can be identified very easily.

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

【図1】本考案の一実施例の数値制御装置の構成図であ
る。
FIG. 1 is a block diagram of a numerical controller according to an embodiment of the present invention.

【図2】本考案の一実施例の動作処理フローチャートで
ある。
FIG. 2 is a flowchart of operation processing according to an embodiment of the present invention.

【図3】本考案の一実施例の色分け方法を指定するため
の画面の一例を示す図である。
FIG. 3 is a diagram showing an example of a screen for designating a color coding method according to an embodiment of the present invention.

【図4】本考案の一実施例のブロックごとの色分けを指
定した場合の一例を示す図である。
FIG. 4 is a diagram showing an example of a case where color coding for each block is designated according to an embodiment of the present invention.

【図5】本考案の一実施例の直線と円弧で色分けを指定
した場合の一例を示す図である。
FIG. 5 is a diagram showing an example of a case where color coding is designated by a straight line and an arc according to an embodiment of the present invention.

【図6】本考案の一実施例のシーケンス番号で色分けを
指定した場合の一例を示す図である。
FIG. 6 is a diagram showing an example of a case where color coding is designated by a sequence number according to an embodiment of the present invention.

【図7】本考案の一実施例の色フラグ付き工具軌跡格納
テーブルの一例を示す図である。
FIG. 7 is a diagram showing an example of a tool trajectory storage table with color flags according to an embodiment of the present invention.

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

1 数値制御装置 2 CPU 3 ROM 4 RAM 5 不揮発性メモリ P0〜P5 1ブロックの終点 1 Numerical Control Device 2 CPU 3 ROM 4 RAM 5 Nonvolatile Memory P0 to P5 1 Block End Point

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 NC加工プログラムを実行した際の工具
の軌跡を描画するグラフィック表示装置を備えた数値制
御装置において、NC加工プログラムを1ブロックずつ
読み取る1ブロック読み取り手段と、工具軌跡をどのパ
ターンで色分けするかを指定する色分け指定手段と、前
記1ブロック読み取り手段で読み取られたブロックの工
具軌跡データを作成する工具軌跡データ作成手段と、前
記色分け指定手段で指定されたパターンで工具軌跡デー
タに色のフラグを付ける色フラグ設定手段と、色フラグ
の付いた工具軌跡を格納する色フラグ付き工具軌跡格納
テーブルと、色フラグ付き工具軌跡格納テーブルにある
色フラグをもとに工具軌跡を描画する工具軌跡描画手段
からなるグラフィック表示装置を具備したことを特徴と
する数値制御装置。
1. A numerical control device equipped with a graphic display device for drawing a trajectory of a tool when an NC machining program is executed. One block reading means for reading the NC machining program one block at a time and a pattern of the tool trajectory. Color coding designation means for designating whether to perform color coding, tool trajectory data creation means for creating tool trajectory data of the block read by the one-block reading means, and tool trajectory data are colored in the pattern designated by the color coding designation means. Flag flag setting means for adding a flag, a tool trajectory storage table with a color flag for storing a tool trajectory with a color flag, and a tool for drawing a tool trajectory based on the color flag in the tool trajectory storage table with a color flag A numerical control device comprising a graphic display device comprising a trajectory drawing means.
JP9344591U 1991-11-14 1991-11-14 Numerical control device Pending JPH0543201U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9344591U JPH0543201U (en) 1991-11-14 1991-11-14 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9344591U JPH0543201U (en) 1991-11-14 1991-11-14 Numerical control device

Publications (1)

Publication Number Publication Date
JPH0543201U true JPH0543201U (en) 1993-06-11

Family

ID=14082527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9344591U Pending JPH0543201U (en) 1991-11-14 1991-11-14 Numerical control device

Country Status (1)

Country Link
JP (1) JPH0543201U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997011416A1 (en) * 1995-09-19 1997-03-27 Kabushiki Kaisha Yaskawa Denki Robot language processor
WO2017141851A1 (en) * 2016-02-17 2017-08-24 株式会社入曽精密 Display device, display method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997011416A1 (en) * 1995-09-19 1997-03-27 Kabushiki Kaisha Yaskawa Denki Robot language processor
US6167328A (en) * 1995-09-19 2000-12-26 Kabushiki Kaisha Yaskawa Denki Robot language processing apparatus
WO2017141851A1 (en) * 2016-02-17 2017-08-24 株式会社入曽精密 Display device, display method, and program

Similar Documents

Publication Publication Date Title
JPS63104104A (en) Automatic programming system
JPS6115205A (en) Drawing method of graphic display for numerical controller
JPH0355259B2 (en)
JP2639169B2 (en) Numerical control unit
EP0548372B1 (en) Animation drawing method for multiple-lathe numeric controller
JPH0543201U (en) Numerical control device
JP3336797B2 (en) Sewing machine sewing data creation device
JPS6347805A (en) Override playback system
JPH0413725B2 (en)
JPS6232805B2 (en)
JPS6137284A (en) Input apparatus of sewing machine
JPH02151908A (en) Numerical controller with simulation function
JPH09120308A (en) Tool path plotting method
JPH077839U (en) Numerical control device
EP0146631B1 (en) Data input system for numerically-controlled apparatus
JP3660038B2 (en) Numerical controller
JPH053002B2 (en)
JPH0580814A (en) Programming device for programmable controller
JP3201461B2 (en) Processing of processed figures
JPH09258808A (en) Motion controller programming system
JP3437218B2 (en) Method and device for confirming and editing machining data in automatic programming device
JP2522839B2 (en) Programmable controller programming device
JP3615230B2 (en) CAD system
JPS62293276A (en) Nc automatically programming language learning machine
JPS6063610A (en) Numerical controller with graphic display device capable of drawing clamping device