JPH0391811A - Working form plotting system - Google Patents

Working form plotting system

Info

Publication number
JPH0391811A
JPH0391811A JP22825989A JP22825989A JPH0391811A JP H0391811 A JPH0391811 A JP H0391811A JP 22825989 A JP22825989 A JP 22825989A JP 22825989 A JP22825989 A JP 22825989A JP H0391811 A JPH0391811 A JP H0391811A
Authority
JP
Japan
Prior art keywords
tool
block
data
movement
value
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
JP22825989A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ヶ原 隆史
Shuji Sato
修二 佐藤
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP22825989A priority Critical patent/JPH0391811A/en
Publication of JPH0391811A publication Critical patent/JPH0391811A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To easily identify the loci even of they touch and overlap with each other on a CRT owing to a small locus space by displaying the colors of the tool loci on the CRT after changing successively these colors every time the tool moving direction is inverted at a coordinate axis. CONSTITUTION:A plotting process program and a working program are loaded from a floppy disk via a disk controller 6 and stored in a RAM 3 and an NC data storage memory 4. A CPU 1 sets and store previously a reverse axis and reads the NC data for each block to decide the moving direction of a tool at a set coordinate axis. Then the display colors of the tool loci are successively changed for each inversion of the tool moving direction and shown on a CRT 7. As a result, the loci can be easily identified even if they touch and overlap with each other owing to a small locus space.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、NCデータで定義される工具軌跡をグラフィ
ックディスプレイ上に描画する加工形状描画方式の改良
に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an improvement in a machining shape drawing method for drawing a tool trajectory defined by NC data on a graphic display.

従来の技術 NCデータに基づいて加工される形状の確認を突旦シ十
スナーめlご−  N Cデー 々で宙違藝六刺 ナー
T貝軌跡をグラフィックディスプレイ上に描画するよう
にした加工形状描画方式は既.に公知である。
Confirmation of the shape to be machined based on conventional technology NC data. The drawing method is already set. It is publicly known.

この種の加工形状描画方式では、一般に、加工対象とな
るワークの外形がグラフィックディスプレイ上の描画領
域に収まる範囲で描画画面の倍率を設定し(通常0.0
1倍〜100倍の範囲)、このグラフィックディスプレ
イ上に上記NCデータて定義される工具軌跡を描画する
ことによってその加工形状を確認するようにしている。
In this type of machining shape drawing method, the magnification of the drawing screen is generally set within the range where the outline of the workpiece to be processed fits within the drawing area on the graphic display (usually 0.0
(in the range of 1 to 100 times), the machined shape is confirmed by drawing the tool trajectory defined by the NC data on this graphic display.

発明が解決しようとする課題 従って、大きなワークが加工対象となった場合には描画
画面の倍率を小さく設定するのが普通であり、NCデー
タで定義された工具軌跡が複雑な場合、例えば、微小な
刻み幅で工具を往復移動させて面切削を行うような場合
には、グラフィックディスプレイ上に描画される工具軌
跡の間隔が極めて微小なものとなり、隣接する工具軌跡
が接触したり重なったりして表示されるという現象が生
じ、実質的な工具の移動軌跡が識別できなくなったl7
)一また一加THi青がtP塚で去なごむX J− L
)’1欠点がある。
Problems to be Solved by the Invention Therefore, when a large workpiece is to be machined, it is common to set the magnification of the drawing screen to a small value, and when the tool trajectory defined by NC data is complex, for example, When surface cutting is performed by moving the tool back and forth with a large increment width, the intervals between the tool trajectories drawn on the graphic display are extremely small, and adjacent tool trajectories may touch or overlap. A phenomenon occurred in which the actual movement trajectory of the tool could not be identified.
) THi blue leaves in tP mound X J-L
) 'There is one drawback.

従来技術では、このような欠点を補うため、工具軌跡の
一部を拡大してグラフィックディスプレイ上に描画して
細部の工具軌跡や加工形状を確認するようにしていたが
、工具軌跡の一部のみを拡大表示すると全体の工具軌跡
や加工形状を確認することができないので、各部の工具
軌跡や加工形状と全体との関わりを適格に判断すること
ができないといった問題が生じる。
In order to compensate for these drawbacks, with conventional technology, a part of the tool path is enlarged and drawn on a graphic display to check the detailed tool path and machining shape, but only a part of the tool path is displayed. If the image is enlarged and displayed, the entire tool trajectory and machining shape cannot be confirmed, which causes problems such as the inability to appropriately judge the relationship between the tool trajectory and machining shape of each part and the whole.

本発明の目的は、これら従来技術の欠点を解消し、工具
軌跡が複.雑でその刻み幅が微小であっても、工具の移
動軌跡を容易に識別でき、かつ、全体の加工形状を容易
に把握することのできる加工形状描画方式を提供するこ
とにある。
The purpose of the present invention is to eliminate these drawbacks of the prior art and to eliminate the need for multiple tool trajectories. It is an object of the present invention to provide a machining shape drawing method that can easily identify the movement locus of a tool and easily grasp the entire machining shape even if the step width is small.

課題を解決するための手段 本発明の加工形状描画方式は、予め座標軸を設定記憶し
ておき、NCデータを1ブロック毎に読込んで上記設定
座標軸における工具の移動方向を求め、その移動方向が
反転する毎に、該NCデータによって定義される工具軌
跡の表示色を順次変更して描画することにより上記目的
を達戊した。
Means for Solving the Problems The machining shape drawing method of the present invention sets and memorizes coordinate axes in advance, reads NC data block by block to determine the moving direction of the tool in the set coordinate axes, and then reverses the moving direction. The above objective was achieved by sequentially changing the display color of the tool trajectory defined by the NC data each time the tool was drawn.

作用 設定記憶された座標軸における工具の移動方向が反転さ
れる毎に、当該ブロックのNCデータによって定義され
る工具軌跡の表示色を順次変更してグラフィックディス
プレイ上に描画するようにしたので、工具軌跡の間隔が
狭く各ブロックのNCデータで定義される工具軌跡が接
触したり重複するような場合であっても、各々のNCデ
ータで定義される工具軌跡を容易に識別することができ
る。
Each time the moving direction of the tool in the memorized coordinate axes is reversed, the display color of the tool trajectory defined by the NC data of the block is sequentially changed and drawn on the graphic display. Even if the intervals between the blocks are narrow and the tool trajectories defined by the NC data of each block touch or overlap, the tool trajectories defined by the respective NC data can be easily identified.

実施例 以下、図面を参照して本発明の実施例を説明する。Example Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の方式を実施する一実施例のNC自動プ
ログラミング装置の要部を示すブロック図であり、1は
プロセッサ(以下、CPUという)、2は該NC自動プ
ログラミング装置を制御する制御プログラムが格納され
たROM,3はフロッピーディスクFLからロードされ
た各種のシステムテプログラムやCPUIによる演算処
理の結果等を記憶するRAM,4は該NC自動プログラ
ミング装置で作成されたNCデータやフロッピーディス
クFLからロードされたNCデータを記憶するNCデー
タ記憶メモリ、5はキーボード、6はディスクコントロ
ーラ、7はグラフィックディスプレイ(以下、CRTと
いう)であり、これらの各要素1〜7はバス8で接続さ
れている。
FIG. 1 is a block diagram showing the main parts of an NC automatic programming device according to an embodiment of the present invention, in which 1 is a processor (hereinafter referred to as CPU), and 2 is a control for controlling the NC automatic programming device. ROM stores programs, 3 is a RAM that stores various system programs loaded from the floppy disk FL, results of arithmetic processing by the CPU, etc. 4 is a floppy disk and NC data created by the NC automatic programming device 5 is a keyboard, 6 is a disk controller, and 7 is a graphic display (hereinafter referred to as CRT); each of these elements 1 to 7 is connected by a bus 8. ing.

また、フロッピーデ゛イスクFLとしては、作成済みの
NCデータを格納するためのデータ保存用ディスクや各
種のシステムプログラムを格納したシステムディスク等
が予め準備されており、システムディスクには従来と同
様の各種システムプログラムの他、特に、本発明の方式
による描画モードを実行するためのプログラム(以下、
描画処理プログラムという)が格納されている。
In addition, as a floppy disk FL, a data storage disk for storing created NC data and a system disk for storing various system programs are prepared in advance. In addition to various system programs, in particular, a program for executing the drawing mode according to the method of the present invention (hereinafter referred to as
(referred to as a drawing processing program) is stored there.

以下、描画処理プログラムの概略を示すフローチャート
(第2図)と加工形状を描画する対象となる加工プログ
ラムの一例を示すリスト(表1)ナ必1f7ff l 
 −P   +山川金山目#↓5I↓1令n丁汚4小妙
5品士テを説明する。
Below is a flowchart (Figure 2) showing an outline of the drawing processing program and a list (Table 1) showing an example of a processing program for drawing the processing shape.
-P +Yamakawa Kanayamame#↓5I↓1Rei n Ding dirt 4 Komyo 5 Shinshite is explained.

なお、これらの描画処理プログラムおよび描画の対象と
なる加工プログラムは既にディスクコントローラ6を介
してフロッピーディスクFL上り口−ドされ、それぞれ
RAM3およびNCデータ記憶メモリ4に格納されてい
るものとする。
It is assumed that these drawing processing programs and processing programs to be drawn have already been loaded onto the floppy disk FL via the disk controller 6 and stored in the RAM 3 and the NC data storage memory 4, respectively.

表1.プログラムリスト 0001            (第1ブロック)G
92XO.YO.       (第2ブロック)G9
0GOOX10.YIO.  (第3ブロック)GOI
XIOO.;       (第4ブロック)Y15.
;       (第5ブロック)XIO.;    
    C第6ブロック)Y20.;        
(第7ブロック)XIOO.;       (第8ブ
ロック)Y25.;        (第9ブロック)
XIO.;       (第10ブロック)Y30.
;       (第11ブロック)RAM3に格納さ
れた描画処理プログラムに従って処理を開始したCPU
Iは、まず、工具移動方向の判定基準となる座標軸(以
下、反転軸という)の選択を待つ待機状態に入る(ステ
ップS1)。
Table 1. Program list 0001 (1st block) G
92XO. YO. (2nd block) G9
0GOOX10. YIO. (3rd block) GOI
XIOO. ; (4th block) Y15.
; (5th block) XIO. ;
C 6th block) Y20. ;
(7th block) XIOO. ; (8th block) Y25. ; (9th block)
XIO. ; (10th block) Y30.
(11th block) CPU that started processing according to the drawing processing program stored in RAM3
I first enters a standby state in which it waits for the selection of a coordinate axis (hereinafter referred to as the reversal axis) that serves as a criterion for the tool movement direction (step S1).

表lに示される加工プログラムはX−Y平面内で矩形状
の面切削を行うためのもので、工具の主たる加工送り方
向はX軸に平行でX−10からX=100の範囲で往復
移動し、かつ、この往復移動の切返しの間に挿入される
Y軸方向の送り量が5(以上、単位はmm)と微小であ
るため、X軸に平行な工具軌跡の間隔が極めて微小なも
のとなり、隣接するX軸方向の工具軌跡同志が接触した
り重なったりして描画されることが想定される。
The machining program shown in Table 1 is for cutting a rectangular surface in the X-Y plane, and the main machining feed direction of the tool is parallel to the X-axis and reciprocating in the range of X-10 to X=100. However, since the feed amount in the Y-axis direction inserted during the turning of this reciprocating movement is as small as 5 (or more, the unit is mm), the interval between the tool trajectories parallel to the X-axis is extremely small. Therefore, it is assumed that adjacent tool trajectories in the X-axis direction are drawn in contact with or overlapping each other.

そこで、この様な状況に対処するため、オペレータは反
転軸としてX軸を選択し、キーボード5を介して設定入
力を行う。(なお、本実施例では、反転軸としてX軸,
Y軸,Z軸の内から任意の一軸を選択し、設定入力でき
るようになっている。)一方、CPU1はオペレータに
よって設定入力された反転軸を記憶し(ステップS2)
、指標i,jおよびレジスタR (P)を初期化した後
(ステップS3)、指標iの値をインクリメントして(
ステップS4)、該指標i (=1)の値で示される第
iブロックのNCデータ、即ち、プログラム番号である
roo01Jを読込んで一時記憶すると共に、このNC
データをCRT7のNCデータ表示領域(図示せず)に
表示する(ステップS5)。
Therefore, in order to cope with such a situation, the operator selects the X axis as the reversal axis and inputs settings via the keyboard 5. (In this example, the inversion axis is the X axis,
It is possible to select any one of the Y-axis and Z-axis and enter settings. ) Meanwhile, the CPU 1 memorizes the reversal axis set and inputted by the operator (step S2).
, index i, j and register R (P) (step S3), the value of index i is incremented (
Step S4) reads and temporarily stores the NC data of the i-th block indicated by the value of the index i (=1), that is, the program number roo01J, and
The data is displayed on the NC data display area (not shown) of the CRT 7 (step S5).

次いで、CPU1は、今回読込んだブロックが移動指令
ブロックであるか否かを判別するが(ステップS6)、
このブロックは移動指令ブロックではないから、ステッ
プS7に移行して、プログラムエンドを示すブロックで
あるか否かを判別する。このブロックはプログラムエン
ドを示すブロックではないので、ステップS4に移行し
て指標iの値をインクリメントした後、上記と同様、該
指標i (=2)の値で示される第iブロックのNCデ
ータ、即ち、rG92XO.YO.Jを読込んで一時記
憶すると共に、このNCデータをCRT7のNCデータ
表示領域に表示する(ステップS5)。
Next, the CPU 1 determines whether or not the block read this time is a movement command block (step S6).
Since this block is not a movement command block, the process moves to step S7 to determine whether it is a block indicating a program end. Since this block is not a block indicating the program end, after proceeding to step S4 and incrementing the value of the index i, the NC data of the i-th block indicated by the value of the index i (=2), That is, rG92XO. YO. J is read and temporarily stored, and this NC data is displayed in the NC data display area of the CRT 7 (step S5).

第2ブロックのNCデータrG92XO.YO.」は、
ワーク座標系を定義するためのNCデータで、この例で
は、ワーク座標系の原点を機械座標系の原点と一致させ
ることを意味し、従って、移動指令ブロックでもプログ
ラムエンドを示すブロックでもなく、CPU1は、ステ
ップS6およびステップS7の判別処理終了後、ステッ
プS4に移行して指標iの値をインクリメントし、上記
と同様、該指標i  (=3)の値で示される第iブロ
ックのNCデータ、即ち、rG90GOOX10.Y1
0.Jを読込んで一時記憶すると共に、このNCデータ
をCRT7のNCデータ表示領域に表示する(ステップ
85)。
Second block NC data rG92XO. YO. "teeth,
This is NC data for defining the workpiece coordinate system. In this example, it means to match the origin of the workpiece coordinate system with the origin of the machine coordinate system. Therefore, it is not a movement command block or a block indicating the end of the program, but is After the determination processing in steps S6 and S7 is completed, the process proceeds to step S4 and increments the value of the index i, and similarly to the above, the NC data of the i-th block indicated by the value of the index i (=3), That is, rG90GOOX10. Y1
0. J is read and temporarily stored, and this NC data is displayed in the NC data display area of the CRT 7 (step 85).

第3ブロックのNCデータrG90GOOX10.YI
O.Jは、アブソリュート指定による位置決め指令であ
り、この例では、既に定義された工具位置、即ち、ワー
ク座標系の原点(0,  O)から該座標系における位
置決め位置(10.10)への工具移動を意味するNC
データであるから、ステップS6の判別処理においては
移動指令ブロックであると判別される。そこで、CPU
1はステップS6の判別処理終了後、ステップS8に移
行し、上記設定記憶された反転軸、即ち、X軸を基準と
して、このブロックで定義される工具移動方向を求める
。この場合、原点(0.  0)から位置決め位置−(
10.10)への移動であるから、反転軸方向の移動量
は+10となり、工具の移動方向が正であると判定され
る。なお、移動量がインクリメンタル量で指定された場
合には、該ステップS8の処理で反転軸方向の移動或分
の符号を確認することにより、直ちに、工具移動方向の
正負が求められることとなる。
Third block NC data rG90GOOX10. YI
O. J is a positioning command with absolute specification, and in this example, the tool is moved from the already defined tool position, that is, the origin (0, O) of the workpiece coordinate system to the positioning position (10.10) in the coordinate system. NC meaning
Since it is data, it is determined in the determination process of step S6 that it is a movement command block. Therefore, the CPU
1, after the determination processing in step S6 is completed, the process moves to step S8, and the tool movement direction defined in this block is determined with reference to the set and stored reversal axis, that is, the X axis. In this case, from the origin (0.0) to the positioning position - (
10.10), the amount of movement in the direction of the reversal axis is +10, and it is determined that the direction of tool movement is positive. If the movement amount is specified as an incremental amount, the sign of the movement in the reversal axis direction is checked in step S8, thereby immediately determining the sign of the movement direction of the tool.

次いで、CPU1はステップS9に移行して、このブロ
ックで定義された工具移動方向が正であるか否かを判別
するが、この場合工具移動方向は正であるから、次いで
ステップ810に移行し、今回読込んだNCデータで定
義された工具移動方向を記憶するレジスタR (N)に
、正方向の工具移動を示す数値1をセットする。
Next, the CPU 1 moves to step S9, and determines whether or not the tool movement direction defined in this block is positive. In this case, since the tool movement direction is positive, the CPU 1 moves to step S9, and then moves to step S9. A value 1 indicating tool movement in the positive direction is set in the register R (N) that stores the tool movement direction defined by the NC data read this time.

次いで、レジスタR (N)の値とレジスタR(P)の
値が一致するか否か、即ち、レジスタR(N)に記憶さ
れた工具移動方向とレジスタR(P)に記憶された工具
移動方向とが一致するか否かを判別するが(ステップS
11)、現段階では前回の工具移動方向を記憶するレジ
スタR (P)に初期値0がセットされているため、両
レジスタの値が異なる。
Next, check whether the value of register R(N) and the value of register R(P) match, that is, the tool movement direction stored in register R(N) and the tool movement stored in register R(P). It is determined whether the directions match (step S
11) At this stage, the initial value 0 is set in the register R (P) that stores the previous tool movement direction, so the values of both registers are different.

そこで、CPUIはステップS12に移行し、レジスタ
R (N)に記憶された工具移動方向をレジスタR (
P)に記憶して、今回の工具移動方向を前回の工具移動
方向として定義し、工具軌跡の表示色を示す指標jの値
が4未満であるか否かを判別するが(ステップS13)
、現段階では指標jに初期値Oがセットされているため
ステップSl4に移行して該指標jの値をインクリメン
トし、指標j  (=1)で示される表示色(緑)で、
今回定義された工具軌跡、即ち、原点(0.0)から位
置決め位置(10.10)に至る工具軌跡P1を、CR
T7の工具軌跡表示領域に、工具送り速度に従ってシュ
ミレーション表示する(ステップS15,第3図参照)
Therefore, the CPU moves to step S12, and changes the tool movement direction stored in the register R (N) to the register R (
P), the current tool movement direction is defined as the previous tool movement direction, and it is determined whether the value of index j indicating the display color of the tool trajectory is less than 4 (step S13).
, at this stage, the initial value O is set for the index j, so the process moves to step Sl4, where the value of the index j is incremented, and the display color (green) indicated by the index j (=1) is displayed.
CR
A simulation is displayed in the tool trajectory display area of T7 according to the tool feed rate (step S15, see Figure 3).
.

なお、指標jと表示色との関係をを表2に示す。Note that Table 2 shows the relationship between the index j and the display color.

但し、j=2に対応する表示色(無色)はCRT7の背
景色である。
However, the display color (colorless) corresponding to j=2 is the background color of the CRT 7.

次いで、ステップS4に復帰したCPUIは指標iの値
をインクリメントし、該指標i  (=4)の値で示さ
れる第iブロックのNCデータ、即ち、rGOIX10
0.;Jを読込んで一時記憶すると共に、このNCデー
タをCRT7のNCデータ表示領域に表示する(ステッ
プS5)。なお、「;」はNCデータ間の区切りを示す
記号である。
Next, the CPU returning to step S4 increments the value of the index i, and increments the NC data of the i-th block indicated by the value of the index i (=4), that is, rGOIX10.
0. ;J is read and temporarily stored, and this NC data is displayed in the NC data display area of the CRT 7 (step S5). Note that ";" is a symbol indicating a break between NC data.

第4ブロックのNCデータrGOIX100.;」は、
直線補間指令であり、この例では、前回のNCデータで
定義された工具移動の終点、即ち、ワーク座標系におけ
る位置決め位置(10,10)から今回定義された移動
位置(100.  10)への工具移動を意味するNC
データであるから、ステップS6の判別処理においては
移動指令ブロックであると判別される。そこで、CPU
1はステップS6の判別処理終了後、ステップS8に移
行し、上記反転軸を基準として、このブロックで定義さ
れる工具移動方向を求める。この場合、(10.10)
から(1 0 0, ,1 0)への移動であるから、
反転軸方向の移動量は+90となり、工具の移動方向が
正であると判定される。
Fourth block NC data rGOIX100. ;"teeth,
This is a linear interpolation command, and in this example, it is the end point of the tool movement defined by the previous NC data, that is, from the positioning position (10, 10) in the workpiece coordinate system to the currently defined movement position (100, 10). NC means tool movement
Since it is data, it is determined in the determination process of step S6 that it is a movement command block. Therefore, the CPU
1, after the determination processing in step S6 is completed, the process moves to step S8, and the tool movement direction defined by this block is determined with the above-mentioned reversal axis as a reference. In this case, (10.10)
Since it is a movement from (1 0 0, , 1 0),
The amount of movement in the direction of the reversal axis is +90, and it is determined that the direction of movement of the tool is positive.

次いで、CPU1はステップS9に移行して、このブロ
ックで定義された工具移動方向が正であるか否かを判別
するが、この場合工具移動方向は正であるから、次いで
ステップS10に移行し、今回読込んだNCデータで定
義された工具移動方向を記憶するレジスタR (N)に
、正方向の工具移動を示す数値1をセットする。
Next, the CPU 1 moves to step S9 and determines whether or not the tool movement direction defined in this block is positive. In this case, since the tool movement direction is positive, the CPU 1 moves to step S10. A value 1 indicating tool movement in the positive direction is set in the register R (N) that stores the tool movement direction defined by the NC data read this time.

次いで、レジスタR (N)の値とレジスタR(P)の
値が一致するか否か、即ち、レジスタR(N)に記憶さ
れた今回の工具移動方向とレジスタR (P)に記憶さ
れた前回の工具移動方向とが一致するか否かを判別する
が(ステップS11)、両レジスタの値は共に↑であり
、前回の工具移動方向と今回定義された工具移動方向と
が同一である。
Next, check whether the value of register R (N) and the value of register R (P) match or not, that is, the current tool movement direction stored in register R (N) and the value stored in register R (P) are checked. It is determined whether or not the previous tool movement direction matches (step S11), but the values of both registers are both ↑, indicating that the previous tool movement direction and the currently defined tool movement direction are the same.

そこで、CPU1はステップS↓5に移行し、指標j(
=:L)で示される表示色(緑)で、今回定義された工
具軌跡、即ち、(10.10)から(100.10)に
至る工具軌跡P2を、CRT7の工具軌跡表示領域に、
工具送り速度に従ってシュミレーション表示する(第3
図参照)。即ち、反転軸を基準とする工具移動方向が同
一である場合には、工具軌跡の表示色は変更されない。
Therefore, CPU1 moves to step S↓5 and sets the index j(
In the display color (green) indicated by =:L), the tool trajectory defined this time, that is, the tool trajectory P2 from (10.10) to (100.10), is displayed in the tool trajectory display area of the CRT 7.
Simulation display according to tool feed rate (3rd
(see figure). That is, when the tool movement direction with respect to the reversal axis is the same, the display color of the tool trajectory is not changed.

次いで、ステップS4に復帰したCPUIは指標iの値
をインクリメントし、該指標i  (=5)の値で示さ
れる第iブロックのNCデータ、即ち、rY15.;J
を読込んで一時記憶すると共に、このNCデータをCR
T7のNCデータ表示領域に表示する(ステップ85)
Next, the CPU returning to step S4 increments the value of the index i, and increments the NC data of the i-th block indicated by the value of the index i (=5), that is, rY15. ;J
is read and temporarily stored, and this NC data is CR
Display in the NC data display area of T7 (step 85)
.

第5ブロックのNCデータrY15.;Jは第4ブロッ
クで指定されたコードG01がモーダルで作用する直線
補間指令であり、この例では、前回のNCデータで定義
された工具移動の終点(100.10)から今回定義さ
れた移動位置(100.15)への工具移動を意味する
NCデータであるから、ステップS6の判別処理におい
ては移動指令ブロックであると判別される。そこで、C
PUIはステップS6の判別処理終了後、ステップS8
に移行し、上記反転軸を基準として、このブロックで定
義される工具移動方向を求める。この場合、(100.
10)から(1.00,15)への移動であるから、反
転軸方向の移動量は0となる。
Fifth block NC data rY15. ;J is a linear interpolation command modally applied by the code G01 specified in the 4th block, and in this example, the movement from the end point (100.10) of the tool movement defined in the previous NC data to the movement defined this time Since this is NC data indicating tool movement to position (100.15), it is determined to be a movement command block in the determination process of step S6. Therefore, C
After the determination process in step S6 is completed, the PUI is processed in step S8.
Then, the tool movement direction defined by this block is determined using the above reversal axis as a reference. In this case, (100.
10) to (1.00, 15), the amount of movement in the direction of the inversion axis is 0.

このブロックで定義された工具移動方向は正でも負でも
ないから、CPU1はステップS9およびステップS1
6の判別処理終了後ステップS15に移行し、指標j(
=1)で示される表示色(緑)で、今回定義された工具
軌跡、即ち、(100.10)から(100.15)に
至る工具軌跡P3を、CRT7の工具軌跡表示領域に、
工具送り速度に従ってシュミレーション表示する(第3
図参照)。即ち、反転軸を基準とする工具移動方向が正
でも負でもない場合には、反転軸における工具移動方向
の反転はないものと判別され、前回に指定された表示色
が保持されることとなる。
Since the tool movement direction defined in this block is neither positive nor negative, the CPU 1 executes steps S9 and S1.
After the determination process of step 6 is completed, the process moves to step S15, and the index j(
In the display color (green) indicated by =1), the tool trajectory defined this time, that is, the tool trajectory P3 from (100.10) to (100.15), is displayed in the tool trajectory display area of the CRT 7.
Simulation display according to tool feed rate (3rd
(see figure). In other words, if the direction of tool movement based on the reversal axis is neither positive nor negative, it is determined that there is no reversal of the tool movement direction on the reversal axis, and the previously specified display color is maintained. .

次いで、ステップS4に復帰したCPUIは指標iの値
をインクリメントし、該指標i  (=6)の値で示さ
れる第iブロックのNCデータ、即ち、「X{0、;」
を読込んで一時記憶すると共に、このNCデータをCR
T7のNCデータ表示領域に表示する(ステップS5)
Next, the CPU returning to step S4 increments the value of index i, and returns the NC data of the i-th block indicated by the value of index i (=6), ie, "X{0,;"
is read and temporarily stored, and this NC data is CR
Display in the NC data display area of T7 (step S5)
.

第6ブロックのNCデータrX10.’;Jは第4ブロ
ックで指定されたコードGOIがモーダルで作用する直
線補間指令であり、この例では、前回のNCデータで定
義された工具移動の終点(100.15)から今回定義
された移動位置(1o,15)への工具移動を意味する
NCデータであるから、ステップS6の判別処理におい
ては移動指令ブロックであると判別される。そこで、C
PU1はステップS6の判別処理終了後、ステップS8
に移行し、上記反転軸を基準として、このブロックで定
義される工具移動方向を求める。この場合、(100.
15)から(10.15)への移動であるから、反転軸
方向の移動量は−90となり、工具の移動方向が負であ
ると判定される。
6th block NC data rX10. ';J is a linear interpolation command in which the code GOI specified in the fourth block acts modally, and in this example, from the end point (100.15) of tool movement defined in the previous NC data to Since this is NC data indicating tool movement to the movement position (1o, 15), it is determined to be a movement command block in the determination process of step S6. Therefore, C
After the determination process in step S6 is completed, PU1 performs step S8.
Then, the tool movement direction defined by this block is determined using the above reversal axis as a reference. In this case, (100.
Since the movement is from 15) to (10.15), the movement amount in the reversal axis direction is -90, and it is determined that the tool movement direction is negative.

このブロックで定義された工具移動方向は負であるから
、CPUIはステップS9およびステップ316の判別
処理終了後ステップS17に移行し、今回読込んだNC
データで定義された工具移動方向を記憶するレジスタR
(,N)に、負方向の・工具移動を示す数値−{をセッ
トする。
Since the tool movement direction defined in this block is negative, the CPUI moves to step S17 after completing the determination processing in step S9 and step 316, and
Register R that stores the tool movement direction defined by data
Set (,N) to a numerical value -{ indicating tool movement in the negative direction.

次いで、レジスタR (N)の値とレジスタR(P)の
値が一致するか否か、即ち、レジスタR(N)に記憶さ
れた今回の工具移動方向とレジスタR (P)に記憶さ
れた前回の工具移動方向とが一致するか否かを判別する
が(ステップS11)、現在、レジスタR (N)の値
は−1、レジスタR(P)の値は1であって、工具移動
方向が反転されたことを示している。
Next, check whether the value of register R (N) and the value of register R (P) match or not, that is, the current tool movement direction stored in register R (N) and the value stored in register R (P) are checked. It is determined whether or not the tool movement direction matches the previous tool movement direction (step S11).Currently, the value of register R (N) is -1, the value of register R (P) is 1, and the tool movement direction is indicates that it has been reversed.

そこで、CPU1はステップSL2に移行し、レジスタ
R (N)に記憶された工具移動方向をレジスタR (
P)に記憶して、今回の工具移動方向を前回の工具移動
方向として定義し、工具軌跡の表示色を示す指標jの値
が4未満であるか否かを判別するが(ステップS13)
、現段階では指標jの値が1であるからステップ814
に移行して該指標jの値をインクリメントし、指標j 
 (=2)で示される表示色(CRT7の背景色)で、
今回定義された工具軌跡、即ち、(100,15)から
(1 0.  1 5>に至る工具軌跡P4を、CRT
7の工具軌跡表示領域に、工具送り速度に従ってシュミ
レーション表示する(第3図参照)。即ち、反転軸を基
準とする工具移動方向が反転された場合にのみ、工具軌
跡の表示色が順次変更される。
Therefore, the CPU 1 moves to step SL2, and changes the tool movement direction stored in the register R (N) to the register R (
P), the current tool movement direction is defined as the previous tool movement direction, and it is determined whether the value of index j indicating the display color of the tool trajectory is less than 4 (step S13).
, the value of index j is 1 at this stage, so step 814
, increment the value of the index j, and increment the value of the index j
The display color (background color of CRT7) indicated by (=2),
The tool trajectory defined this time, that is, the tool trajectory P4 from (100, 15) to (1 0. 1 5>), is
The simulation is displayed in the tool path display area 7 according to the tool feed rate (see Fig. 3). That is, only when the direction of tool movement based on the reversal axis is reversed, the display color of the tool trajectory is sequentially changed.

以下、CPUIは上記と同様、インクリメントされた指
標iの値に基づいて順次第iブロックのNCデータを読
込んで表示し(ステップS4, ステップS5)、該読
込んだNCデータが移動指令ブロックであれば(ステッ
プS6)、上記反転軸を基準として、当該ブロックで定
義された工具の移動方向を求め(ステップS8)、その
移動方向が反転軸方向の移動戊分を有する場合に限り、
当該ブロックにおける工具の移動方向と反転軸方向の移
動戊分を有する前回の工具移動方向とを比較し(ステッ
プ89〜ステップ811もしくはステップ89,ステッ
プ816.ステップS17,ステップS11)、当該ブ
ロックにおける工具の移動方向と反転軸方向の移動成分
を有する前回の工具移動方向とが同一であれば当該ブロ
ックで定義された工具移動軌跡を前回と同様の表示色で
描画し(ステップS15)、また、当該ブロックにおけ
る工具の移動方向と反転軸方向の移動戊分を有する前回
の工具移動方向とが異なれば、移動方向の反転があった
ものと見做し、今回の工具移動方向を前回の工具移動方
向として定義することにより比較対象とされる工具移動
方向、即ち、レジスタR (P)の値を更新記憶すると
共に(ステップS12)、設定記憶された表示色の範囲
で(ステップS13)、表示色を順次変更し(ステップ
S14)、該変更された表示色を用い、当該プロックで
定義された工具移動軌跡を描画する(ステップS15)
。なお、移動方向の反転に応じて工具軌跡の表示色を変
更する際、表示色を指定する指標jの値が既に4に達し
ている場合には(ステップS13,ステップS18)、
表2に示されるように設定記憶された最後の表示色(黄
)によって前回分の工具軌跡が既に描画されていること
を意味するので、この場合には、指標jの値をOに再設
定し、上記設定記憶された表示色の中から循環的に表示
色を選択することとなる。また、ステップS8における
処理の結果、今回定義された工具移動が反転軸方向の移
動或分を含んでいないと判定された場合には、当該ブロ
ックで定義された工具移動軌跡を前回と同様の表示色で
描画する(ステップS15)。
Thereafter, as described above, the CPU sequentially reads and displays the NC data of the i block based on the incremented value of the index i (step S4, step S5), and if the read NC data is a movement command block. For example (step S6), the moving direction of the tool defined in the block is determined using the above reversal axis as a reference (step S8), and only if the moving direction has a movement portion in the reversing axis direction,
The tool movement direction in the block is compared with the previous tool movement direction having a movement portion in the reverse axis direction (steps 89 to 811 or step 89, step 816, step S17, step S11), and the tool movement direction in the block is compared If the movement direction of the block is the same as the previous tool movement direction that has a movement component in the reverse axis direction, the tool movement locus defined in the block is drawn in the same display color as the previous time (step S15), and If the direction of tool movement in the block is different from the previous tool movement direction that had a movement portion in the reversal axis direction, it is assumed that there has been a reversal of the movement direction, and the current tool movement direction is set as the previous tool movement direction. By defining the tool movement direction as a comparison target, that is, the value of register R (P) is updated and stored (step S12), and the display color is changed within the set and stored display color range (step S13). The changed display color is sequentially changed (step S14), and the tool movement trajectory defined by the block is drawn using the changed display color (step S15).
. Note that when changing the display color of the tool trajectory according to the reversal of the moving direction, if the value of the index j that specifies the display color has already reached 4 (step S13, step S18),
As shown in Table 2, the last display color (yellow) that was set and memorized means that the previous tool path has already been drawn, so in this case, reset the value of index j to O. Then, a display color is selected cyclically from among the display colors set and stored. Furthermore, as a result of the processing in step S8, if it is determined that the tool movement defined this time does not include some movement in the reverse axis direction, the tool movement locus defined in the block is displayed in the same way as the previous time. Draw in color (step S15).

表■に示されるプログラムリストにおいては、第5ブロ
ック,第7ブロック,第9ブロック,第11ブロックに
よって定義される工具軌跡P3,P5,P7.P9には
反転軸方向の移動成分がないので、これらの工具軌跡P
3,  P5,  P7,  P9は、反転軸方向の移
動成分を有する第4ブロック,第6ブロック,第8ブロ
ック,第10ブロックの各々で定義された工具軌跡P2
,  P4,  P6.P8と同一の表示色で描画され
ることとなる(第3図参照)。
In the program list shown in Table 2, tool trajectories P3, P5, P7, . Since P9 does not have a moving component in the direction of the reversal axis, these tool trajectories P
3, P5, P7, and P9 are tool paths P2 defined in each of the 4th block, 6th block, 8th block, and 10th block, each having a movement component in the reversal axis direction.
, P4, P6. It will be drawn in the same display color as P8 (see FIG. 3).

そして、描画の対象となる加工プログラムの全てに対す
る描画処理が完了し、プログラムエンドを示すNCデー
タ、例えば、M30等が読込まれると、CPUIは該N
CデータをCRT7のNCデータ表示領域に表示し(ス
テップS5)、ステップS6およびステップS7の判別
処理を実行した後、全ての処理を完了する。
Then, when the drawing process for all the machining programs to be drawn is completed and the NC data indicating the program end, such as M30, is read, the CPU
After displaying the C data in the NC data display area of the CRT 7 (step S5) and executing the determination processing in steps S6 and S7, all processing is completed.

本実施例によれば、設定記憶された反転軸における工具
の移動方向が反転される毎に、当該ブロックのNCデー
タによって定義される工具軌跡の表示色が順次変更して
描画されるので、Y軸方向における工具軌跡の間隔が狭
く各ブロックのNCデータで定義される工具軌跡がCR
TT上で接触したり重複したりするような場合であって
も、各々のNCデータで定義される工具軌跡、特に、工
具の主たる送り方向であるX軸方向の工具軌跡を容易に
識別することができる。また、既に述べたように、X軸
,Y軸,Z軸の内から任意の一軸を反転軸として選択で
きるようになっているので、描画すべき加工プログラム
において重なりの生じ易い工具軌跡の方向を考慮して最
適の反転軸を設定記憶することが・でき、いずれの軸を
反転軸として選択した場合であっても上記と同様の効果
を発揮することができる。
According to this embodiment, each time the moving direction of the tool on the set and memorized reversal axis is reversed, the display color of the tool trajectory defined by the NC data of the block is sequentially changed and drawn. The interval between the tool trajectories in the axial direction is narrow and the tool trajectories defined by the NC data of each block are CR.
Easily identify the tool trajectory defined by each NC data, especially the tool trajectory in the X-axis direction, which is the main feeding direction of the tool, even if they touch or overlap on the TT. I can do it. In addition, as mentioned above, since it is possible to select any one axis from among the X, Y, and Z axes as the reversal axis, it is possible to select the direction of tool trajectories that are likely to overlap in the machining program to be drawn. The optimum reversal axis can be set and stored in consideration, and the same effect as described above can be achieved no matter which axis is selected as the reversal axis.

更に、本実施例においては、各ブロックで定義された工
具軌跡を描画する際、工具送り速度に基づくシュミレー
ション表示によって工具先端の軌跡を時々刻々と描画す
るようにしているので、各々のNCデータで定義された
工具軌跡(この場合X軸方向)がCRT7の同一ドット
上に完全に重複して表示された場合であっても、各ブロ
ックで定義された工具の送り方向を確実に把握すること
ができる。
Furthermore, in this embodiment, when drawing the tool trajectory defined in each block, the trajectory of the tool tip is drawn moment by moment using a simulation display based on the tool feed rate. Even if the defined tool path (in this case the X-axis direction) is displayed completely overlappingly on the same dot on the CRT 7, it is possible to reliably grasp the tool feed direction defined in each block. can.

なお、指標j=2に対応する表示色、即ち、CRT7の
背景色が用いられた場合には、実質上、CRT7上には
当該ブロックで定義される工具軌跡は表示されない。従
って、接触または重複する繁雑な工具軌跡の表示を適度
に間引くことができ、表示画面を一層見易くすることが
できる。また、各表示色は設定値であるから、相互に識
別可能な色を適宜設定することができる。例えば、指標
j=2に対応する表示色を紫等の有色で設定することに
より、稀薄な工具軌跡中で不必要な間引き表示が実行さ
れるのを防止することができる。
Note that when the display color corresponding to the index j=2, that is, the background color of the CRT 7 is used, the tool trajectory defined by the block is not substantially displayed on the CRT 7. Therefore, the display of complicated tool trajectories that touch or overlap can be appropriately thinned out, and the display screen can be made easier to see. Moreover, since each display color is a set value, mutually distinguishable colors can be appropriately set. For example, by setting the display color corresponding to index j=2 to a color such as purple, it is possible to prevent unnecessary thinning display from being performed during a thin tool trajectory.

以上、グラフィックディスプレイ上に加工軌跡を単純に
2次元表示する場合を例にとって具体的な作用効果を説
明したが、本発明の効果は3次元表示の描画方式におい
て特に著しく表われる。例えば、曲面切削による加工軌
跡を描画する場合等、工具の移動方向が反転する毎に加
工軌跡の表示色が更新される結果、隣接する加工軌跡の
表示色が常に異なるものとなるので、複雑な加工形状の
外形が重複して描かれたような場合であっても、等角投
影等によってグラフィックディスプレイ上に2次元表示
された最大外形の内部が全て単一色で塗り潰される従来
の描画方式とは異なり、各形状毎の輪郭をこれと重複す
る他の形状から分離して認識することができ、全体とし
ての加工形状の把握が一層容易となる。
Although the specific effects have been explained above by taking as an example the case where a machining locus is simply displayed two-dimensionally on a graphic display, the effects of the present invention are particularly noticeable in a three-dimensional display drawing method. For example, when drawing a machining trajectory for cutting a curved surface, the display color of the machining trajectory is updated every time the direction of tool movement is reversed, and as a result, the display colors of adjacent machining trajectories are always different. What is the conventional drawing method in which even if the outline of the processed shape is drawn overlappingly, the inside of the maximum outline displayed two-dimensionally on a graphic display using isometric projection etc. is completely filled with a single color? Differently, the outline of each shape can be recognized separately from other shapes that overlap with it, making it easier to grasp the processed shape as a whole.

発明の効果 本発明の加工形状描画方式は、設定記憶された座標軸に
おける工具の移動方向が反転される毎に、当該ブロック
のNCデータによって定義される工具軌跡の表示色を順
次変更してグラフィックディスプレイ上に描画するよう
にしたので、工具軌跡の間隔が狭く各ブロックのNCデ
ータで定義される工具軌跡がグラフィックディスプレイ
上で接触したり重複したりするような場合でも、各々の
NCデータで定義される工具軌跡を容易に識別すること
ができる。
Effects of the Invention The machining shape drawing method of the present invention displays a graphic display by sequentially changing the display color of the tool trajectory defined by the NC data of the block each time the moving direction of the tool in the set and memorized coordinate axes is reversed. Since the tool trajectories are drawn on the top, even if the tool trajectories defined by the NC data of each block are narrow and the tool trajectories defined by the NC data of each block touch or overlap on the graphic display, the tool trajectories defined by the NC data of each block will be drawn. tool trajectories can be easily identified.

従って、全体の加工形状を表示した状態、即ち、描画画
面の倍率を小さく設定した状態で各部の工具軌跡を容易
に識別でき、工具軌跡の確認と全体の加工形状の確認と
を同一画面で一括して行うことが可能となり、確認のた
めの作業時間が短縮される。
Therefore, the tool trajectory of each part can be easily identified when the entire machining shape is displayed, that is, the magnification of the drawing screen is set to a small value, and the tool trajectory and the entire machining shape can be confirmed on the same screen. This reduces the amount of time required for confirmation.

また、同様の倍率および分解能を備えたグラフィックデ
ィスプレイを用いた従来の方式に較べ、ハードウェアを
変更することなく、グラフィックディスプレイの実質的
な分解能を向上させることができる。
Furthermore, compared to conventional methods using graphic displays with similar magnification and resolution, the substantial resolution of the graphic display can be improved without changing the hardware.

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

第■図は本発明の方式を実施する一実施例のNC自動プ
ログラミング装置の要部を示すブロック図、第2図は同
実施例のNC自動プログラミング装置に採用された描画
処理プログラムの概略を示すフローチャート、第3図は
グラフィックディスプレイに表示される工具軌跡の一例
を示す図である。 1・・・プロセッサ(CPU) 、2・・・ROM,3
・・・RAM,4・・・NCデータ記憶メモリ、5・・
・キーボード、6・・・ディスクコントローラ、7・・
・グラフィックディスプレイ(CRT) 、8・・・バ
ス、FL・・・フロッピーディスク、P1〜P9・・・
各プロ. /t /l’%五T戸=−h−f3中詔セh
ナー丁目鋪艙第 1 図
Fig. 2 is a block diagram showing the main parts of an automatic NC programming device according to an embodiment of the invention, and Fig. 2 shows an outline of a drawing processing program adopted in the automatic NC programming device according to the embodiment. The flowchart, FIG. 3, is a diagram showing an example of a tool trajectory displayed on a graphic display. 1... Processor (CPU), 2... ROM, 3
...RAM, 4...NC data storage memory, 5...
・Keyboard, 6...Disk controller, 7...
・Graphic display (CRT), 8... bus, FL... floppy disk, P1 to P9...
Each professional. /t /l'%5T door=-h-f3 middle edict h
Nachome Pavilion Figure 1

Claims (1)

【特許請求の範囲】[Claims] NCデータで定義される工具軌跡をグラフィックディス
プレイ上に描画する加工形状描画方式において、予め座
標軸を設定記憶しておき、上記NCデータを1ブロック
毎に読込んで上記設定座標軸における工具の移動方向を
求め、その移動方向が反転する毎に、該NCデータによ
って定義される工具軌跡の表示色を順次変更して描画す
ることを特徴とした加工形状描画方式。
In a machining shape drawing method that draws a tool trajectory defined by NC data on a graphic display, coordinate axes are set and memorized in advance, and the NC data is read block by block to determine the direction of tool movement in the set coordinate axes. A machining shape drawing method characterized in that the display color of a tool trajectory defined by the NC data is sequentially changed and drawn each time the direction of movement is reversed.
JP22825989A 1989-09-05 1989-09-05 Working form plotting system Pending JPH0391811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22825989A JPH0391811A (en) 1989-09-05 1989-09-05 Working form plotting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22825989A JPH0391811A (en) 1989-09-05 1989-09-05 Working form plotting system

Publications (1)

Publication Number Publication Date
JPH0391811A true JPH0391811A (en) 1991-04-17

Family

ID=16873669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22825989A Pending JPH0391811A (en) 1989-09-05 1989-09-05 Working form plotting system

Country Status (1)

Country Link
JP (1) JPH0391811A (en)

Similar Documents

Publication Publication Date Title
US20140214203A1 (en) Operating program writing system
US10437229B2 (en) Numerical controller
JP2006085486A (en) Nc working simulation method and nc working simulation device
JPS6115205A (en) Drawing method of graphic display for numerical controller
EP0146628B1 (en) Automatic programming method
US4924403A (en) Numerical control method and system therefor having override playback function
JP2773517B2 (en) Program display device
JPH0659717A (en) Nc device having tool locus data plotting function and plotting method thereof
JPH0391811A (en) Working form plotting system
JPH02151908A (en) Numerical controller with simulation function
JP3660038B2 (en) Numerical controller
US5093796A (en) Automatic programming definition of a machining configuration for a numerical control device
JPH03294906A (en) Editing system for working program
JPH01231104A (en) Display method for tool locus
JPH03136109A (en) Working control method in numerically controlled machine tool
JP2813079B2 (en) Numerical control unit
JPS60101606A (en) Automatic robot operation system
JPH06114678A (en) Tool locus display device of nc device
JPH07120181B2 (en) Display method
JPH06270082A (en) Control of robot having auxiliary shaft
JP2573209Y2 (en) Tool path display device for NC equipment
JPH0722875B2 (en) How to display taper angle setting of programming device
JPH0734370A (en) Device for forming and displaying embroidery data
JPH0441157A (en) Wire electric discharging device
JPH0553636A (en) Machining locus display method for numerical controller