JPH0546232A - Displaying system for intersection - Google Patents
Displaying system for intersectionInfo
- Publication number
- JPH0546232A JPH0546232A JP20014091A JP20014091A JPH0546232A JP H0546232 A JPH0546232 A JP H0546232A JP 20014091 A JP20014091 A JP 20014091A JP 20014091 A JP20014091 A JP 20014091A JP H0546232 A JPH0546232 A JP H0546232A
- Authority
- JP
- Japan
- Prior art keywords
- auxiliary
- intersections
- displayed
- intersection
- scaling
- 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
Links
- 230000002452 interceptive effect Effects 0.000 claims abstract description 13
- 238000000034 method Methods 0.000 claims description 23
- 239000000463 material Substances 0.000 description 15
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 3
- 238000003754 machining Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は対話型数値制御装置での
形状入力時の交点の表示方式に関し、特に補助図形と共
に複数の交点を表示画面に表示する交点の表示方式に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of displaying an intersection at the time of inputting a shape in an interactive numerical control device, and more particularly to a method of displaying an intersection for displaying a plurality of intersections together with an auxiliary figure on a display screen.
【0002】[0002]
【従来の技術】従来、対話型数値制御装置では、図形入
力は形状要素キーによって入力されている。そして、必
要な形状要素に係る数値も入力され、図形の形状が確定
していく。2. Description of the Related Art Conventionally, in an interactive numerical control device, a graphic input is made by a shape element key. Then, the numerical values related to the required shape elements are also input, and the shape of the figure is determined.
【0003】ところで、図形入力時に座標値の分からな
い交点を求める必要がある。これらの交点は一般に円と
円との交点、円と直線との交点として求める。これらの
図形が接する場合を除いて、これらの交点は2個存在す
る。このとき、プログラマはいずれかの交点を選択する
必要がある。By the way, at the time of inputting a figure, it is necessary to find an intersection whose coordinate value is unknown. These intersections are generally obtained as the intersections of circles and circles and the intersections of circles and straight lines. Except for the case where these figures touch, there are two intersections. At this time, the programmer needs to select one of the intersections.
【0004】[0004]
【発明が解決しようとする課題】しかし、これらの円と
円、円と直線、あるいはこれらの交点は表示画面に表示
されていなかった。このため、プログラマは概念的に判
断していた。すなわち、プログラマが頭の中で考える
か、あるいは実際に机上で図形を描くかして、いずれか
の交点を選択するかを判断していた。したがって、経験
の少ない、あるいは未経験のプログラマは適切な判断が
困難であった。However, these circles and circles, circles and straight lines, or their intersections are not displayed on the display screen. Therefore, the programmer had to make a conceptual decision. That is, the programmer had to think in his head or actually draw a figure on the desk to decide which intersection to select. Therefore, it is difficult for a programmer with little or no experience to make a proper judgment.
【0005】このため、プログラム作成の際に、思考に
よる交点の選択判断を余儀無くされ、プログラマに負担
がかかるという問題点があった。また、概念的に判断を
するために誤った点を選択する可能性があり、プログラ
ム作成に時間がかかるという問題点があった。For this reason, there is a problem in that a programmer is forced to make a selection decision of an intersection at the time of creating a program, which imposes a burden on the programmer. Further, there is a possibility that an incorrect point may be selected in order to make a conceptual decision, and it takes time to create a program.
【0006】本発明はこのような点に鑑みてなされたも
のであり、交点の選択が容易に行える交点の表示方式
を、提供することを目的とする。The present invention has been made in view of the above circumstances, and an object thereof is to provide an intersection display system in which the selection of the intersection can be easily performed.
【0007】[0007]
【課題を解決するための手段】本発明では上記課題を解
決するために、対話型数値制御装置での形状入力時の交
点の選択のために表示を行う、交点の表示方式におい
て、2個の補助図形の複数の交点が存在するとき、前記
複数の交点が表示画面に表示できるように、スケーリン
グを行い、前記補助図形と共に前記複数の交点を前記表
示画面に表示することを特徴とする交点の表示方式が提
供される。According to the present invention, in order to solve the above-mentioned problems, in the display method of the intersection points, the display is performed for the selection of the intersection points when the shape is input in the interactive numerical control device. When there are a plurality of intersections of the auxiliary figure, scaling is performed so that the plurality of intersections can be displayed on the display screen, and the plurality of intersections are displayed on the display screen together with the auxiliary figure. A display method is provided.
【0008】[0008]
【作用】2個の補助図形の複数の交点が存在するとき、
この複数の交点を同時に表示画面に表示する。しかし、
補助図形及び交点を単に表示するだけでは、実際の形状
表示画面では交点が表示できなかったり、補助図形が明
確に表示できない場合がある。このような場合には、2
個の補助図形とこれらの複数の交点が同時に表示画面に
表示されるようなスケーリングを行なった後に表示す
る。Operation: When there are a plurality of intersections of two auxiliary figures,
The plurality of intersections are simultaneously displayed on the display screen. But,
In some cases, merely displaying the auxiliary figure and the intersection may not display the intersection on the actual shape display screen, or the auxiliary figure may not be clearly displayed. In such cases, 2
The auxiliary figure and the plurality of intersections are scaled so that they are simultaneously displayed on the display screen and then displayed.
【0009】[0009]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図2は本発明の交点の表示方式を実施するため
の対話形数値制御装置の構成を示すブロック図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing the configuration of an interactive numerical control device for implementing the intersection display system of the present invention.
【0010】プロセッサ11はROM12に格納された
システムプログラムに従って、数値制御装置全体を制御
する。ROM12にはEPROMあるいはEEPROM
が使用される。RAM13はSRAM等が使用され、各
種のデータあるいは入出力信号が格納される。不揮発性
メモリ14にはバッテリバックアップされたCMOSが
使用され、電源切断後も保持すべきパラメータ、ピッチ
誤差補正量および工具補正量等が格納されている。The processor 11 controls the entire numerical controller according to the system program stored in the ROM 12. The ROM 12 is EPROM or EEPROM
Is used. An SRAM or the like is used as the RAM 13, and various data or input / output signals are stored therein. A battery-backed CMOS is used for the non-volatile memory 14 and stores parameters, pitch error correction amount, tool correction amount, and the like that should be retained even after the power is turned off.
【0011】グラフィック制御回路15はディジタル信
号を表示用の信号に変換し、表示装置16に与える。表
示装置16にはCRTあるいは液晶表示装置が使用され
る。表示装置16は対話形式で加工プログラムを作成し
ていくときに、形状、加工条件等を表示する。The graphic control circuit 15 converts the digital signal into a signal for display and gives it to the display device 16. A CRT or a liquid crystal display device is used as the display device 16. The display device 16 displays the shape, processing conditions, etc. when creating a processing program in an interactive manner.
【0012】キーボード17はシンボリックキー、数値
キー等からなり、必要な図形データ、NCデータをこれ
らのキーを使用して入力する。軸制御回路18はプロセ
ッサ11から、軸の移動指令を受けて、軸の指令をサー
ボアンプ19に出力する。サーボアンプ19はこの移動
指令を受けて、工作機械20のサーボモータを駆動す
る。これらの構成要素はバス21によって互いに結合さ
れている。The keyboard 17 is composed of symbolic keys, numerical keys, etc., and necessary graphic data and NC data are input using these keys. The axis control circuit 18 receives an axis movement command from the processor 11 and outputs the axis command to the servo amplifier 19. The servo amplifier 19 receives the movement command and drives the servo motor of the machine tool 20. These components are coupled to each other by a bus 21.
【0013】PMC(プログラマブル・マシン・コント
ローラ)22はNCプログラムの実行時に、バス21経
由でT機能信号(工具選択指令)等を受け取る。そし
て、この信号をシーケンス・プログラムで処理して、動
作指令として信号を出力し、工作機械20を制御する。
また、工作機械20から状態信号を受けて、シーケンス
処理を行い、バス21を経由して、プロセッサ11に必
要な入力信号を転送する。A PMC (Programmable Machine Controller) 22 receives a T function signal (tool selection command) or the like via the bus 21 when executing an NC program. Then, this signal is processed by a sequence program, a signal is output as an operation command, and the machine tool 20 is controlled.
Further, it receives a status signal from the machine tool 20, performs a sequence process, and transfers a necessary input signal to the processor 11 via the bus 21.
【0014】さらに、バス21には、システムプログラ
ム等によって機能が変化するソフトウェアキー23、N
CデータをFD(フロッピーディスク)、プリンタある
いはPTR(紙テープリーダ)などの外部機器に送るシ
リアルインタフェース24が接続されている。このソフ
トウェアキー23は、上記表示装置16、キーボード1
7とともに、CRT/MDIパネル25に設けられる。Further, on the bus 21, software keys 23, N whose functions change according to a system program or the like.
A serial interface 24 for sending C data to an external device such as an FD (floppy disk), a printer or a PTR (paper tape reader) is connected. The software key 23 is used for the display device 16 and the keyboard 1.
7 and CRT / MDI panel 25.
【0015】上記バス21には、NC用のCPUである
プロセッサ11とは別に、バス30を有する対話用のプ
ロセッサ31が接続される。バス30にはROM32、
RAM33、および不揮発性メモリ34が接続されてい
る。To the bus 21, in addition to the processor 11 which is the CPU for NC, a processor 31 for interaction having a bus 30 is connected. ROM 32 on the bus 30,
The RAM 33 and the non-volatile memory 34 are connected.
【0016】上記表示装置16に表示される対話形デー
タの入力画面は、ROM32に格納されている。この対
話形データの入力画面としては、素材を定義する素材定
義画面、加工形状を定義する形状定義画面等がある。ま
た、対話形データの入力画面では、NCデータの作成時
にバックグラウンドアニメーションとして、工具の全体
の動作軌跡などが表示される。そして、表示装置16に
はその入力画面により設定可能な作業またはデータが、
メニュー形式で表示される。メニューのうちどの項目を
選択するかは、メニューに対応して、表示画面下部に配
置されたソフトウェアキー23により行う。ソフトウェ
アキー23の意味は各画面毎に変化する。RAM33に
はSRAM等が使用され、キーボード17から入力され
た図形データ、補助図形データ、2個の補助図形から求
められた交点、その他の対話用の各種データが格納され
る。The interactive data input screen displayed on the display device 16 is stored in the ROM 32. The interactive data input screens include a material definition screen for defining materials and a shape definition screen for defining machining shapes. Further, on the interactive data input screen, the entire motion trajectory of the tool and the like are displayed as a background animation when the NC data is created. Then, the work or data that can be set by the input screen is displayed on the display device 16.
It is displayed in a menu format. The item to be selected from the menu is selected by the software key 23 arranged at the bottom of the display screen corresponding to the menu. The meaning of the software key 23 changes for each screen. An SRAM or the like is used for the RAM 33, and graphic data input from the keyboard 17, auxiliary graphic data, intersections obtained from two auxiliary graphics, and other various data for interaction are stored.
【0017】入力されたデータは対話用のプロセッサ3
1により処理される。プロセッサ31の処理により、2
個の補助図形とこれらの複数の交点がグラフィック制御
回路15を介して表示装置16に表示され、あるいはワ
ーク加工プログラムが作成される。作成されたプログラ
ムデータは、対話形式で使用される表示装置16に、逐
次にバックグラウンドアニメーション表示される。ま
た、不揮発性メモリ34にNC文として格納されたワー
ク加工プログラムは、工作機械20の加工シミュレーシ
ョンの際にも実行され、フォアグラウンドアニメーショ
ン表示される。The input data is the processor 3 for dialogue.
Processed by 1. By the processing of the processor 31, 2
Each auxiliary figure and a plurality of these intersections are displayed on the display device 16 via the graphic control circuit 15, or a work machining program is created. The created program data is sequentially background-animated on the display device 16 used interactively. The work machining program stored as an NC sentence in the non-volatile memory 34 is also executed during machining simulation of the machine tool 20, and is displayed in the foreground animation.
【0018】図3は素材定義画面の一例を示す図であ
る。素材定義画面60は、図2の表示装置16に表示さ
れる画面の一つである。加工形状の形状定義を行う前
に、まず加工すべき素材を定義する。素材のデータとし
ては材質、素材形状等がある。これらのデータは、対話
形式により、プログラマによって図2のキーボード17
から入力される。また、入力されたデータは必要に応じ
て変更することができる。FIG. 3 is a diagram showing an example of the material definition screen. The material definition screen 60 is one of the screens displayed on the display device 16 of FIG. Before defining the shape of the processed shape, the material to be processed is first defined. Material data includes material and material shape. These data are transferred interactively by the programmer to the keyboard 17 of FIG.
Input from. Further, the input data can be changed as needed.
【0019】そして、素材定義画面60には入力された
素材形状51が描画される。描画の際、素材形状はどの
ような大きさであっても、表示画面内におさまるよう
に、自動的にスケーリングされる。また、スケーリング
のために変化した拡大縮小率55は、同時に素材定義画
面60に表示される。The input material shape 51 is drawn on the material definition screen 60. At the time of drawing, whatever size the material shape is, it is automatically scaled so as to fit within the display screen. Further, the scaling rate 55 changed due to scaling is simultaneously displayed on the material definition screen 60.
【0020】図4は形状定義画面の一例を示す図であ
る。形状定義画面50は、図2の表示装置16に表示さ
れる表示画面の一つである。加工形状の形状定義では、
まず図3で定義した素材形状51が表示される。次に、
形状定義画面50に形状構成要素52およびプロンプト
が表示され、形状構成要素を入力するようにプログラマ
に促す。次に、この形状構成要素として、直線定義要素
52aがプログラマによってキーボード17から入力さ
れると、直線要素を確定するためのプロンプトを表示
し、始点と終点を入力するようにプログラマに促す。こ
の直線要素はZ軸と平行な直線を表す。ここに、プロン
プトは52pのような下線であり、表示画面上で点滅す
る。FIG. 4 is a diagram showing an example of the shape definition screen. The shape definition screen 50 is one of the display screens displayed on the display device 16 of FIG. In the shape definition of the machining shape,
First, the material shape 51 defined in FIG. 3 is displayed. next,
A shape component 52 and a prompt are displayed on the shape definition screen 50, prompting the programmer to enter the shape component. Next, as the shape component, when the straight line defining element 52a is input from the keyboard 17 by the programmer, a prompt for confirming the straight line element is displayed, and the programmer is prompted to input the start point and the end point. This straight line element represents a straight line parallel to the Z axis. Here the prompt is underlined like 52p and blinks on the display screen.
【0021】そして、直線要素の始点P1と終点P2が
プログラマによってキーボード17から入力されると、
直線要素が確定する。ここで初めて、直線要素は直線L
1として形状定義画面50に実線で描画される。また、
同時に現在の拡大縮小率55が形状定義画面50に表示
される。When the programmer inputs the start point P1 and the end point P2 of the linear element from the keyboard 17,
The linear element is confirmed. For the first time, the straight line element is the straight line L
1 is drawn on the shape definition screen 50 with a solid line. Also,
At the same time, the current enlargement / reduction rate 55 is displayed on the shape definition screen 50.
【0022】図1は形状定義画面の一例を示す図であ
る。形状定義画面50は、図2の表示装置16に表示さ
れる表示画面の一つである。形状定義画面50には、ま
ず図3で定義した素材形状51と図4で定義した直線L
1が表示される。次に、形状構成要素52として直線定
義要素52aおよびプロンプトを表示し、次の形状構成
要素を入力するようにプログラマに促す。すなわち、直
線要素が既に直線L1として確定し、これから円定義要
素52bを確定しようとしている状態である。FIG. 1 is a diagram showing an example of the shape definition screen. The shape definition screen 50 is one of the display screens displayed on the display device 16 of FIG. On the shape definition screen 50, first, the material shape 51 defined in FIG. 3 and the straight line L defined in FIG.
1 is displayed. Next, the straight line defining element 52a and the prompt are displayed as the shape component 52, and the programmer is prompted to input the next shape component. That is, the straight line element has already been determined as the straight line L1, and the circle defining element 52b is about to be determined.
【0023】そして、円定義要素52bがプログラマに
よってキーボード17から入力されると、円要素を確定
するための確定条件53を表示し、確定条件53のうち
のいずれかの条件を入力するようにプログラマに促す。
ここで、円要素は円周上の左回りに沿って進む円を表
す。形状定義画面50には、確定条件53として終点、
半径および中心が指定されており、他の条件は指定され
ていない状態を示す。Then, when the circle defining element 52b is inputted from the keyboard 17 by the programmer, the confirming condition 53 for confirming the circle element is displayed, and any one of the confirming conditions 53 is inputted. Prompt to.
Here, the circle element represents a circle traveling in a counterclockwise direction on the circumference. On the shape definition screen 50, the final condition as the confirmation condition 53,
The radius and center are specified, and the other conditions are not specified.
【0024】このとき終点を求めるために、中心をP3
とし、直線L1の終点P2を通る補助円C1と、Z軸と
平行であり、Z軸から80離れた補助直線L2とが作成
される。これらの補助図形はともに破線で表示画面に表
示される。また、補助円C1と補助直線L2との交点が
2個存在することから、これらの交点P4,P5はカー
ソル・ブロックで表示画面に表示される。At this time, in order to obtain the end point, the center is set to P3.
Then, an auxiliary circle C1 that passes through the end point P2 of the straight line L1 and an auxiliary straight line L2 that is parallel to the Z axis and is separated from the Z axis by 80 are created. Both of these auxiliary figures are displayed on the display screen as dashed lines. Further, since there are two intersections between the auxiliary circle C1 and the auxiliary straight line L2, these intersections P4 and P5 are displayed on the display screen as cursor blocks.
【0025】この補助円C1、補助直線L2および交点
P4,P5の表示は次のようなプロセスで行われる。ま
ず、補助円C1、補助直線L2および交点P4,P5が
表示画面内におさまるように、自動的にスケーリングさ
れる。この際、スケーリングの基準点となるのは座標原
点、すなわち加工形状の原点である。次に、表示画面を
クリアした後、これまで表示されていた全ての図形が新
たなスケーリングを基準点として、実線で再描画され
る。そして、補助円C1と補助直線L2は破線で描画さ
れ、交点P4,P5はカーソル・ブロックで表示され
る。The display of the auxiliary circle C1, the auxiliary straight line L2 and the intersections P4 and P5 is performed by the following process. First, the auxiliary circle C1, the auxiliary straight line L2, and the intersections P4 and P5 are automatically scaled so as to fit within the display screen. At this time, the reference point for scaling is the origin of coordinates, that is, the origin of the processed shape. Next, after clearing the display screen, all the figures that have been displayed so far are redrawn by solid lines with the new scaling as a reference point. The auxiliary circle C1 and the auxiliary straight line L2 are drawn by broken lines, and the intersections P4 and P5 are displayed by cursor blocks.
【0026】そして、交点選択処理は次のように行われ
る。形状定義画面50には、終点を確定するための終点
確定条件54が表示され、選択するカーソルキーを入力
するようにプログラマに促す。なお、プロンプト54p
はPE(終点)の入力を促すために表示画面上で点滅す
る。プログラマはキーボード17から上下左右のカーソ
ルキーによって、2個の交点のいずれかを選択する。こ
のカーソルキーによる選択から、終点が確定する。例え
ば、形状定義画面50では左のカーソルキーを押せば終
点P4が、右のカーソルキーを押せば終点P5が確定す
る。ここでは、交点としてP5を選択するものとする。The intersection selection process is performed as follows. On the shape definition screen 50, the end point confirmation condition 54 for confirming the end point is displayed, and the programmer is prompted to input the cursor key to be selected. In addition, prompt 54p
Blinks on the display screen to prompt the input of PE (end point). The programmer selects one of the two intersections from the keyboard 17 with the up, down, left, and right cursor keys. The end point is confirmed by the selection with this cursor key. For example, if the left cursor key is pressed on the shape definition screen 50, the end point P4 is confirmed, and if the right cursor key is pressed, the end point P5 is confirmed. Here, it is assumed that P5 is selected as the intersection.
【0027】交点選択処理後、補助円C1、補助直線L
2および交点P4,P5を表示するためのスケーリング
は自動的に元のスケーリングに戻される。そして、表示
画面をクリアした後、2個の補助図形とこれらの複数の
交点を表示する前までに表示されていた全ての図形が元
のスケーリングで再描画される。その後、円要素は始点
をP2とし、確定した終点までの円弧を形状定義画面5
0に実線で描画される。ここでは、P2から補助円C1
の左回りに終点P5までの円弧CP1が実線で描画され
る。After the intersection selection process, the auxiliary circle C1 and the auxiliary straight line L
The scaling for displaying 2 and the intersection points P4, P5 is automatically restored to the original scaling. Then, after the display screen is cleared, the two auxiliary figures and all the figures that have been displayed before the display of these intersections are redrawn with the original scaling. After that, for the circle element, the starting point is set to P2, and the arc to the confirmed end point is defined on the shape definition screen 5
It is drawn with a solid line at 0. Here, from P2 to the auxiliary circle C1
An arc CP1 to the end point P5 is drawn in a counterclockwise direction with a solid line.
【0028】上記の手順では、補助円C1の中心P3と
半径とを求める必要があり、以下にその手順を示す。図
5は形状定義の詳細を示す図である。図1の確定条件5
3に示された各要素の意味は次のようになる。すなわ
ち、「終点DX=80」は終点が補助円C1の中心から
X軸のプラス方向に80離れ、Z軸と平行な線分上にあ
ることを意味する。つまり、終点は補助直線L2上にあ
ることを意味する。「半径R=50」は直線L1の終点
P2を中心とする半径50の補助円C2を意味する。
「中心CDX=0」は補助円C1の中心が点P3からの
距離が0、すなわち点P3上にあることを意味する。こ
こで、点P3は補助円C2とZ軸との交点として求めら
れる。In the above procedure, it is necessary to find the center P3 and the radius of the auxiliary circle C1, and the procedure is shown below. FIG. 5 is a diagram showing details of the shape definition. Confirmation condition 5 in FIG.
The meaning of each element shown in 3 is as follows. That is, “end point DX = 80” means that the end point is 80 away from the center of the auxiliary circle C1 in the plus direction of the X axis and is on the line segment parallel to the Z axis. That is, it means that the end point is on the auxiliary straight line L2. “Radius R = 50” means an auxiliary circle C2 with a radius of 50 centered on the end point P2 of the straight line L1.
“Center CDX = 0” means that the center of the auxiliary circle C1 is 0 from the point P3, that is, on the point P3. Here, the point P3 is obtained as an intersection of the auxiliary circle C2 and the Z axis.
【0029】次に、補助円C1と補助直線L2の交点P
4,P5を求めるプロセスは次のように行われる。ま
ず、「半径R=50」により、直線L1の終点P2を中
心とする半径50の補助円C2を描く。次に、補助円C
2とZ軸との交点にはP3とP6があることから、いず
れかの交点を選択する。この選択の方法は上記のP4と
P5の選択と同様である。ここでは、交点としてP3を
選択するものとする。Next, the intersection P of the auxiliary circle C1 and the auxiliary straight line L2
The process of obtaining P4 and P5 is performed as follows. First, with “radius R = 50”, an auxiliary circle C2 with a radius of 50 centered on the end point P2 of the straight line L1 is drawn. Next, the auxiliary circle C
Since there are P3 and P6 at the intersection of 2 and the Z axis, one of the intersections is selected. This selection method is the same as the selection of P4 and P5 described above. Here, it is assumed that P3 is selected as the intersection.
【0030】そして、「中心CDX=0」から交点P3
のX軸成分をX軸のプラス方向に0だけ移動させる。こ
の交点P3のX軸成分を0だけ移動させた点が補助円C
1の中心となる。この場合、交点P3と補助円C1の中
心は同一である。それから、直線L1の終点P2と補助
円C1の中心P3との距離を半径とする補助円C1を描
く。最後に、補助円C1と補助直線L2とから、交点P
4,P5が求まる。この交点P4,P5は候補点とな
り、交点選択処理の対象になる。Then, the intersection P3 from "center CDX = 0"
The X-axis component of is moved by 0 in the positive direction of the X-axis. The point obtained by moving the X-axis component of this intersection P3 by 0 is the auxiliary circle C
The center of 1. In this case, the intersection P3 and the center of the auxiliary circle C1 are the same. Then, an auxiliary circle C1 whose radius is the distance between the end point P2 of the straight line L1 and the center P3 of the auxiliary circle C1 is drawn. Finally, from the auxiliary circle C1 and the auxiliary straight line L2, the intersection point P
4, P5 is obtained. These intersections P4 and P5 are candidate points and are the targets of the intersection selection processing.
【0031】図5は補助図形と交点を画面表示する処理
のフローチャートである。Sの後に続く数値はステップ
番号を示す。 〔S1〕2個の補助図形の交点を求める。すなわち、円
と直線の交点、円と円の交点を求める。求めた2個の補
助図形の交点は候補点となる。FIG. 5 is a flow chart of the process of displaying the auxiliary figure and the intersection on the screen. The numerical value following S indicates a step number. [S1] Find the intersection of two auxiliary figures. That is, the intersection of a circle and a straight line and the intersection of a circle and a circle are obtained. The intersection point of the two obtained auxiliary figures becomes a candidate point.
【0032】〔S2〕ステップS1で求めた交点が2個
であるか否かをチェックする。もし、交点が2個(YE
S)ならばステップS3に進み、交点が1個(NO)な
らば補助図形と交点を画面表示する処理を終了する。す
なわち、2個の補助図形が接する場合は交点が1個であ
るため、補助図形と交点を画面表示する処理を終了す
る。[S2] It is checked whether the number of intersections obtained in step S1 is two. If there are two intersections (YE
If S), the process proceeds to step S3. If there is one intersection (NO), the process of displaying the auxiliary figure and the intersection on the screen ends. That is, when the two auxiliary figures are in contact with each other, the number of intersections is one, so the process of displaying the auxiliary figures and the intersections on the screen is ended.
【0033】〔S3〕現在のスケーリングを保存した
後、2個の補助図形と候補点を表示画面内に表示できる
ように、スケーリングを行う。この際、スケーリングの
基準点となるのは座標原点、すなわち加工形状の原点で
ある。[S3] After saving the current scaling, scaling is performed so that the two auxiliary figures and the candidate points can be displayed on the display screen. At this time, the reference point for scaling is the origin of coordinates, that is, the origin of the processed shape.
【0034】〔S4〕ステップS3で行なったスケーリ
ングに従って、表示画面をクリアした後、現在定義され
ている形状までの図形を再表示する。 〔S5〕ステップS3で行なったスケーリングに従っ
て、2個の補助図形と候補点を表示画面に表示する。例
えば、図1に示すように2個の補助図形、すなわち補助
円C1および補助直線L2を破線で、候補点P4,P5
をカーソル・ブロックで表示する。[S4] After the display screen is cleared in accordance with the scaling performed in step S3, figures up to the currently defined shape are displayed again. [S5] Two auxiliary figures and candidate points are displayed on the display screen according to the scaling performed in step S3. For example, as shown in FIG. 1, two auxiliary figures, that is, the auxiliary circle C1 and the auxiliary straight line L2 are broken lines, and candidate points P4 and P5 are shown.
Is displayed in the cursor block.
【0035】〔S6〕プログラマに候補点の選択を要求
する。すなわち、プログラムが図2のキーボード17上
の左右上下を示すキーのうち、適切なキーを押すことに
よって、選択が確定する。[S6] The programmer is requested to select candidate points. That is, the selection is confirmed by the program pressing the appropriate key among the keys indicating the left, right, up, and down on the keyboard 17 in FIG.
【0036】〔S7〕スケーリングをステップS3で保
存したスケーリングに戻す。 〔S8〕ステップS7で設定したスケーリングに従っ
て、表示画面をクリアした後、ステップS6で確定した
交点までの図形を再表示する。[S7] The scaling is restored to the scaling saved in step S3. [S8] After the display screen is cleared according to the scaling set in step S7, the figure up to the intersection determined in step S6 is displayed again.
【0037】したがって、2個の補助図形とこれらの複
数の交点が同時に表示画面に表示されるようなスケーリ
ングを行なった後、2個の補助図形とこれらの複数の交
点の位置関係を視覚的に判断できるように表示し、交点
の選択を行うので、交点の選択が容易に行える。Therefore, after scaling is performed such that the two auxiliary figures and their intersections are simultaneously displayed on the display screen, the positional relationship between the two auxiliary figures and these intersections is visually evaluated. Since it is displayed so that it can be judged and the intersection is selected, the intersection can be easily selected.
【0038】以上の説明では、図形データ等の各種デー
タはキーボード17から入力したが、ソフトウェアキー
23から入力することもできる。また、交点選択処理の
際、表示画面には2個の補助図形とこれらの複数の交点
を同時に表示したが、複数の交点のみを表示してもよ
い。この場合、補助図形が表示されないので、交点選択
がやや難しくなるが、画面表示を処理するプログラムの
作成が容易になる。In the above description, various data such as graphic data is input from the keyboard 17, but it can also be input from the software key 23. Further, at the time of the intersection selection process, the two auxiliary figures and the plurality of intersections thereof are simultaneously displayed on the display screen, but only the plurality of intersections may be displayed. In this case, since the auxiliary figure is not displayed, it becomes difficult to select the intersection, but it becomes easy to create a program for processing the screen display.
【0039】さらに、補助図形としては、円と直線ある
いは円と円について交点を求め、表示画面に表示した
が、楕円等の補助図形についても同様に交点を求め、表
示画面に表示することもできる。Further, as the auxiliary figure, the intersections of circles and straight lines or circles and circles are obtained and displayed on the display screen. However, the intersections of auxiliary figures such as ellipses can also be obtained and displayed on the display screen. ..
【0040】そのうえ、スケーリングの基準点は座標原
点、すなわち加工形状の原点としたが、任意の点を基準
点にしてもよい。例えば、2個の補助図形の中間点、あ
るいは重心をスケーリングの基準点にすることができ
る。Furthermore, the reference point for scaling is the coordinate origin, that is, the origin of the processed shape, but any point may be used as the reference point. For example, the midpoint between the two auxiliary figures or the center of gravity can be used as the reference point for scaling.
【0041】それから、2個の補助図形とこれらの複数
の交点が同時に表示画面に表示されるようなスケーリン
グを行なった後に表示し、交点の選択を行う処理を行う
装置は対話形数値制御装置としたが、自動プログラミン
グ装置でも同様に処理することができる。Then, the device for performing the processing for selecting the intersections by performing the scaling so that the two auxiliary figures and the plurality of intersections thereof are simultaneously displayed on the display screen is an interactive numerical control device. However, it can be processed by an automatic programming device as well.
【0042】[0042]
【発明の効果】以上説明したように本発明では、2個の
補助図形によって複数の交点が存在するとき、2個の補
助図形とこれらの複数の交点が同時に表示画面に表示さ
れるようなスケーリングを行なった後に、2個の補助図
形とこれらの複数の交点の位置関係を視覚的に判断でき
るように表示し、交点の選択を行うようにしたので、交
点の選択が容易に行え、プログラム時間が短縮され、正
確なプログラムを作成することができる。As described above, according to the present invention, when two auxiliary figures have a plurality of intersections, the two auxiliary figures and the plurality of intersections are simultaneously displayed on the display screen. After performing, the positional relationship between the two auxiliary figures and these multiple intersections is displayed so that they can be visually determined, and the intersections are selected. Can be shortened and an accurate program can be created.
【図1】本発明の交点の表示方式の形状定義画面の一例
を示す図である。FIG. 1 is a diagram showing an example of a shape definition screen of an intersection display method of the present invention.
【図2】対話形数値制御装置の構成を示すブロック図で
ある。FIG. 2 is a block diagram showing a configuration of an interactive numerical control device.
【図3】素材定義画面の一例を示す図である。FIG. 3 is a diagram showing an example of a material definition screen.
【図4】形状定義画面の一例を示す図である。FIG. 4 is a diagram showing an example of a shape definition screen.
【図5】形状定義の詳細を示す図である。FIG. 5 is a diagram showing details of shape definition.
【図6】補助図形と交点を画面表示する処理のフローチ
ャートである。FIG. 6 is a flowchart of a process of displaying an auxiliary figure and an intersection on a screen.
L2 補助直線 C1 補助円 P4,P5 交点(候補点) L2 auxiliary straight line C1 auxiliary circle P4, P5 intersection (candidate point)
Claims (5)
点の選択のために表示を行う、交点の表示方式におい
て、 2個の補助図形の複数の交点が存在するとき、前記複数
の交点が表示画面に表示できるように、スケーリングを
行い、前記補助図形と共に前記複数の交点を前記表示画
面に表示することを特徴とする交点の表示方式。1. A method of displaying an intersection, which is displayed for selecting an intersection when inputting a shape in an interactive numerical control device, and when there are a plurality of intersections of two auxiliary figures, the plurality of intersections are provided. Is displayed on the display screen, scaling is performed so that the plurality of intersections are displayed together with the auxiliary figure on the display screen.
点の選択のために表示を行う、交点の表示方式におい
て、 2個の補助図形の複数の交点が存在するとき、前記複数
の交点が表示画面に表示できるように、スケーリングを
行い、前記複数の交点を前記表示画面に表示することを
特徴とする交点の表示方式。2. In a method of displaying an intersection, which is displayed for selecting an intersection when inputting a shape in an interactive numerical control device, when there are a plurality of intersections of two auxiliary figures, the plurality of intersections are present. Is displayed on the display screen, scaling is performed so that the plurality of intersections are displayed on the display screen.
個の補助円と1個の補助直線であることを特徴とする請
求項1または請求項2記載の交点の表示方式。3. The auxiliary figures are two auxiliary circles or 1
3. The display method of intersections according to claim 1 or claim 2, wherein the number of auxiliary circles and the number of auxiliary straight lines are one.
元のスケーリングにもどすことを特徴とする請求項1ま
たは請求項2記載の交点の表示方式。4. The method of displaying an intersection point according to claim 1, wherein the scaling is returned to the original scaling after the selection of the intersection point.
準点として行うことを特徴とする請求項1または請求項
2記載の交点の表示方式。5. The method of displaying an intersection point according to claim 1, wherein the scaling is performed by using an origin of a processed shape as a reference point.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20014091A JPH0546232A (en) | 1991-08-09 | 1991-08-09 | Displaying system for intersection |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20014091A JPH0546232A (en) | 1991-08-09 | 1991-08-09 | Displaying system for intersection |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0546232A true JPH0546232A (en) | 1993-02-26 |
Family
ID=16419457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20014091A Pending JPH0546232A (en) | 1991-08-09 | 1991-08-09 | Displaying system for intersection |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0546232A (en) |
-
1991
- 1991-08-09 JP JP20014091A patent/JPH0546232A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2641797B2 (en) | Interactive numerical controller | |
| JPH0546232A (en) | Displaying system for intersection | |
| JPH05204438A (en) | Screen display system for cnc | |
| JP2771701B2 (en) | Interactive numerical controller | |
| JPH03294906A (en) | Editing system for working program | |
| JPH04114208A (en) | Animation plotting system for nc program | |
| JP2537424B2 (en) | Control program generator | |
| JPH02100109A (en) | Crt display method for numerical controller | |
| JPH04252307A (en) | Interactive numerical controller | |
| EP0441977B1 (en) | Display system of numeric control apparatus | |
| JPH06131024A (en) | Shape input system | |
| JP3157474B2 (en) | Cam design processing apparatus and method | |
| EP0576681A1 (en) | Machining program generation method | |
| EP0383938A1 (en) | Shape input system | |
| JPH01152511A (en) | Graphic definition system in automatic programming | |
| JPH05108136A (en) | Processing program preparing method | |
| JPH06250722A (en) | Interactive numerical controller | |
| JP2533374B2 (en) | Control program creation method | |
| JPH05233050A (en) | Parameter input system for cnc | |
| JPH04148306A (en) | C axis working program preparing system | |
| JP3123720B2 (en) | Programming method and programming device for programmable controller | |
| JPH1020913A (en) | Numerical control discharge working machine | |
| JPH07311795A (en) | Shape input method | |
| JPH06332518A (en) | Interactive numerical controller | |
| JPH0474723B2 (en) |