JPH05108136A - Processing program preparing method - Google Patents

Processing program preparing method

Info

Publication number
JPH05108136A
JPH05108136A JP26768291A JP26768291A JPH05108136A JP H05108136 A JPH05108136 A JP H05108136A JP 26768291 A JP26768291 A JP 26768291A JP 26768291 A JP26768291 A JP 26768291A JP H05108136 A JPH05108136 A JP H05108136A
Authority
JP
Japan
Prior art keywords
shape
input
coordinate
part shape
displayed
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
JP26768291A
Other languages
Japanese (ja)
Inventor
Teruyuki Matsumura
輝幸 松村
Koichi Murata
耕一 村田
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 JP26768291A priority Critical patent/JPH05108136A/en
Publication of JPH05108136A publication Critical patent/JPH05108136A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To eliminate a trouble to re-input by moving in parallel the inputted parts shape. CONSTITUTION:The starting point position of a first shape element to constitute the inputted parts shape is displayed (S1), for example the starting point position (parallel moving quantity) is inputted from a keyboard (S3), and the coordinates value of each shape element to constitute the input parts shape is updated in accordance with the starting point position (parallel moving quantity) commanded by a step S3 (S7); when the coordinates value of either of respective shape elements becomes the minus value, an error message is displayed (S8), and therefore, the inputted parts shape can easily be moved in parallel. For this reason, the re-input of the shape element to constitute the inputted parts shape becomes unnecessary.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は対話型数値制御装置にお
ける加工プログラム作成方法に関し、特に部品形状の平
行移動を行う加工プログラム作成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a machining program creating method in an interactive numerical control device, and more particularly to a machining program creating method for performing parallel movement of a part shape.

【0002】[0002]

【従来の技術】対話型数値制御装置では、キーボードに
設けられた形状要素キーを使用して形状構成要素を入力
して、部品形状を入力する形状入力方法が広く使用され
ている。この形状要素キーには、水平、垂直又は斜めの
直線や円弧及び記号等が定義されている。このため、加
工する形状に沿って形状要素キーを選択することによっ
て、初心者でも容易に、しかも簡単な操作で加工形状を
定義することができる。
2. Description of the Related Art In interactive numerical control devices, a shape input method is widely used in which a shape component is input by using a shape element key provided on a keyboard and a part shape is input. In this shape element key, horizontal, vertical or diagonal straight lines, arcs, symbols, etc. are defined. Therefore, by selecting the shape element key according to the shape to be processed, even a beginner can easily define the processed shape by a simple operation.

【0003】[0003]

【発明が解決しようとする課題】しかし、一度入力した
部品形状の座標位置が適切でなかった場合には、入力し
た部品形状を破棄して再度入力する必要があった。特
に、このような座標位置が適切でない部品形状が多い場
合や、一つの部品形状が多くの形状要素から構成されて
いるような場合には、再入力するために多くの時間を必
要とした。このため、形状入力操作が非常に煩雑になる
という問題点があった。
However, if the coordinate position of the part shape once input is not appropriate, it is necessary to discard the input part shape and input again. In particular, in the case where there are many component shapes whose coordinate positions are not appropriate, or when one component shape is composed of many shape elements, it takes a lot of time to re-input. Therefore, there is a problem that the shape input operation becomes very complicated.

【0004】本発明はこのような点に鑑みてなされたも
のであり、入力した部品形状を容易に平行移動させるこ
とができる加工プログラム作成方法を提供することを目
的とする。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a machining program creating method capable of easily translating an input part shape in parallel.

【0005】[0005]

【課題を解決するための手段】本発明では上記課題を解
決するために、対話型数値制御装置における加工プログ
ラム作成方法において、形状要素キーによって部品形状
を入力し、前記部品形状を平行移動し、部品形状を作成
することを特徴とする加工プログラム作成方法が提供さ
れる。
In order to solve the above-mentioned problems, in the present invention, in a machining program creating method in an interactive numerical control device, a part shape is input by a shape element key, and the part shape is translated, There is provided a machining program creating method characterized by creating a part shape.

【0006】[0006]

【作用】入力した部品形状を表示し、例えば最初の形状
要素の始点からの平行移動量を入力すると、入力した部
品形状を構成する各形状要素の座標値を、カーソルある
いは最初の形状要素の始点からの平行移動量で指令した
値に変更する。このため、部品形状を構成する形状要素
の再入力が不要になる。
When the input part shape is displayed and the amount of parallel movement from the starting point of the first shape element is input, the coordinate value of each shape element forming the input part shape is changed to the cursor or the starting point of the first shape element. Change to the commanded value with the parallel movement amount from. Therefore, it becomes unnecessary to re-input the shape elements that form the part shape.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図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 that is an embodiment of the present invention.

【0008】プロセッサ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. EPROM or EEPROM is used for the ROM 12. An SRAM or the like is used as the RAM 13, and various data or input / output signals are stored therein. A CMOS (not shown) backed up by a battery is used in the non-volatile memory 14, and the component shape, parameters, pitch error correction amount, tool correction amount, and the like to be retained even after the power is turned off are stored.

【0009】グラフィック制御回路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.

【0010】キーボード17は形状要素キー、数値キー
等からなり、必要な図形データ、NCデータをこれらの
キーを使用して入力する。軸制御回路18はプロセッサ
11から、軸の移動指令を受けて、軸の指令をサーボア
ンプ19に出力する。サーボアンプ19はこの移動指令
を受けて、工作機械20のサーボモータを駆動する。こ
れらの構成要素はバス21によって互いに結合されてい
る。
The keyboard 17 is composed of shape element keys, numerical keys and the like, and the 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.

【0011】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.

【0012】更に、バス21には、システムプログラム
等によって機能が変化するソフトウェアキー23、NC
データをフロッピーディスク装置(FDD)、プリンタ
あるいは紙テープリーダ(PTR)などの外部機器に送
るシリアルインタフェース24が接続されている。この
ソフトウェアキー23は、上記表示装置16、キーボー
ド17とともに、CRT/MDIパネル25に設けられ
る。
Further, on the bus 21, software keys 23 and NC whose functions are changed by a system program or the like are provided.
A serial interface 24 is connected to send data to an external device such as a floppy disk device (FDD), printer or paper tape reader (PTR). The software key 23 is provided on the CRT / MDI panel 25 together with the display device 16 and the keyboard 17.

【0013】上記バス21には、NC用のCPUである
プロセッサ11とは別に、バス30を有する対話用のプ
ロセッサ31が接続される。バス30にはROM32、
RAM33、及び不揮発性メモリ34が接続されてい
る。
In addition to the processor 11 which is the CPU for NC, the bus 21 is connected with a processor 31 for interaction having a bus 30. ROM 32 on the bus 30,
The RAM 33 and the non-volatile memory 34 are connected.

【0014】上記表示装置16に表示される対話形デー
タの入力画面は、ROM32に格納されている。この対
話形データの入力画面において、NC文の作成時にバッ
クグラウンドアニメーションとして、工具の全体の動作
軌跡などが表示される。また、表示装置16にはその入
力画面により設定可能な作業又はデータが、メニュー形
式で表示される。メニューのうちどの項目を選択するか
は、メニューに対応して、画面下部に配置されたソフト
ウェアキー23により行う。ソフトウェアキー23の意
味は各画面毎に変化する。RAM33にはSRAM等が
使用され、ここに対話用の各種データが格納される。
The interactive data input screen displayed on the display device 16 is stored in the ROM 32. On this interactive data input screen, the overall motion trajectory of the tool and the like are displayed as background animation when the NC sentence is created. Further, the display device 16 displays work or data that can be set on the input screen 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 screen corresponding to the menu. The meaning of the software key 23 changes for each screen. An SRAM or the like is used as the RAM 33, and various data for dialogue are stored therein.

【0015】入力されたデータは対話用のプロセッサ3
1により処理され、ワーク加工プログラムが作成され
る。作成されたプログラムデータは、対話形式で使用さ
れる表示装置16に、逐次にバックグラウンドアニメー
ション表示される。また、不揮発性メモリ34にNC文
として格納されたワーク加工プログラムは、工作機械2
0の加工シミュレーションの際にも実行され、フォアグ
ラウンドアニメーション表示される。
The input data is the processor 3 for dialogue.
1 is processed, and a work machining program is created. The created program data is sequentially background-animated on the display device 16 used interactively. Further, the work machining program stored as the NC sentence in the non-volatile memory 34 is the machine tool 2
It is also executed during the machining simulation of 0, and the foreground animation is displayed.

【0016】以下、本発明の加工プログラム作成方法の
処理及び操作について、図3〜図7を用いて説明する。
図3は、平行移動前の表示画面の一例を示す図である。
図において、表示画面16aは、図2の表示装置16に
表示される画面である。部品形状1は、図2のキーボー
ド17から形状要素キーにより入力された形状要素を表
示したものである。形状要素2は、部品形状1を構成す
る形状要素をシンボルで表現し、画面に表示したもので
ある。現在状態表示4は、現在の加工プログラムのステ
ップ番号、現在の座標値及び現在のNC指令のG機能な
どをウィンドウ形式で画面に表示したものである。
The processing and operation of the machining program creating method of the present invention will be described below with reference to FIGS.
FIG. 3 is a diagram showing an example of a display screen before translation.
In the figure, a display screen 16a is a screen displayed on the display device 16 of FIG. The part shape 1 is a display of the shape element input by the shape element key from the keyboard 17 of FIG. The shape element 2 is a shape element that forms the component shape 1 and is displayed on a screen by a symbol. The current state display 4 displays the step number of the current machining program, the current coordinate value, the G function of the current NC command, and the like in a window format on the screen.

【0017】ソフトキー3は、図2のCRT/MDIパ
ネル25に設けられたソフトウェアキー23を押すこと
によって指令される指令キーに相当し、処理内容に応じ
て変化する9つの指令可能な指令キー3a〜3iから構
成される。図では、部品形状の平行移動を指令するキー
は図形移動指令キー3cであり、打ち切り指令キー3a
及びページ戻り指令キー3b等の他の指令キーは別の用
途に使用される。
The soft key 3 corresponds to a command key that is commanded by pressing the software key 23 provided on the CRT / MDI panel 25 of FIG. 2, and nine command keys that can be commanded and change according to the processing content. 3a to 3i. In the figure, the key for instructing the parallel movement of the part shape is the figure movement command key 3c, and the abort command key 3a.
And other command keys such as the page return command key 3b are used for other purposes.

【0018】加工形状を作成するプログラマが、既に入
力した部品形状1を移動させたい場合は、ソフトキー3
のうち図形移動指令キー3cを選択する。このとき、表
示画面16aは図4に変わる。
When the programmer who creates the machining shape wants to move the already entered part shape 1, the soft key 3
The figure movement command key 3c is selected. At this time, the display screen 16a changes to FIG.

【0019】図4は、平行移動量(X座標)入力時の表
示画面の一例を示す図である。図において、図3と同一
の要素については同一の番号を付し、説明を省略する。
なお、ソフトキー3のうち、移動実行指令キー3b、上
方向移動指令キー3c、下方向移動指令キー3d、左方
向移動指令キー3e、右方向移動指令キー3f及び実行
キャンセル指令キー3hに相当する指令キーが、図3の
同位置に示す指令キーの内容から変化している。
FIG. 4 is a diagram showing an example of a display screen when a parallel movement amount (X coordinate) is input. In the figure, the same elements as those in FIG. 3 are designated by the same reference numerals and the description thereof will be omitted.
The soft key 3 corresponds to the movement execution command key 3b, the upward movement command key 3c, the downward movement command key 3d, the leftward movement command key 3e, the rightward movement command key 3f, and the execution cancel command key 3h. The command key has changed from the contents of the command key shown in the same position in FIG.

【0020】移動実行指令キー3bは、部品形状1の平
行移動を指令する指令キーである。上方向移動指令キー
3c、下方向移動指令キー3d、左方向移動指令キー3
e及び右方向移動指令キー3fは、それぞれカーソル5
を所定の方向に移動させる指令キーである。実行キャン
セル指令キー3hは、移動実行指令キー3bにより行わ
れた部品形状1の平行移動を取り消すための指令キーで
ある。
The movement execution instruction key 3b is an instruction key for instructing parallel movement of the component shape 1. Upward movement command key 3c, Downward movement command key 3d, Leftward movement command key 3
e and the rightward movement command key 3f are respectively used for cursor 5
Is a command key for moving the key in a predetermined direction. The execution cancel command key 3h is a command key for canceling the parallel movement of the component shape 1 performed by the movement execution command key 3b.

【0021】カーソル5は、ブロック形の形状をなし、
かつ、表示画面16a上で点滅するものであり、部品形
状1を構成する最初の形状要素の始点位置を示す。始点
座標6aは、平行移動前での部品形状1を構成する最初
の形状要素の始点座標である。また、移動座標7aは、
部品形状1を平行移動させる移動先の座標(X座標)で
ある。
The cursor 5 has a block shape,
In addition, it blinks on the display screen 16a and indicates the starting point position of the first shape element forming the part shape 1. The starting point coordinates 6a are the starting point coordinates of the first shape element forming the part shape 1 before the parallel movement. The moving coordinates 7a are
It is the coordinate (X coordinate) of the destination to which the component shape 1 is translated.

【0022】図では、部品形状1を構成する最初の形状
要素の始点座標6aは、X座標が85.0であり、Z座標が
80.0であることを示している。このとき、プログラマ
は、まず部品形状1を平行移動させる移動先のX座標を
キーボード17から入力する。入力した移動先のX座標
は移動座標7aに表示され、入力したX座標の値が 10
0.0であることを示している。そして、プログラマがこ
のX座標を入力すると、表示画面16aは図5に変わ
る。
In the figure, the starting point coordinates 6a of the first shape element forming the part shape 1 have an X coordinate of 85.0 and a Z coordinate of
It is 80.0. At this time, the programmer first inputs from the keyboard 17 the X coordinate of the movement destination for moving the component shape 1 in parallel. The X coordinate of the input destination is displayed in the movement coordinate 7a, and the value of the input X coordinate is 10
It shows that it is 0.0. When the programmer inputs this X coordinate, the display screen 16a changes to that shown in FIG.

【0023】図5は、平行移動量(Z座標)入力時の表
示画面の一例を示す図である。図において、図4と同一
の要素については同一の番号を付し、説明を省略する。
始点座標6bは、平行移動後での部品形状1を構成する
最初の形状要素の始点座標である。また、移動座標7b
は、部品形状1を平行移動させる移動先の座標(Z座
標)である。
FIG. 5 is a diagram showing an example of a display screen when a parallel movement amount (Z coordinate) is input. In the figure, the same elements as those in FIG. 4 are designated by the same reference numerals, and the description thereof will be omitted.
The start point coordinates 6b are the start point coordinates of the first shape element forming the part shape 1 after the parallel movement. Also, the moving coordinates 7b
Is coordinates (Z coordinate) of a movement destination of the component shape 1 to be translated.

【0024】次に、プログラマは、部品形状1を平行移
動させる移動先のZ座標をキーボード17から入力す
る。入力した移動先のZ座標は移動座標7aに表示さ
れ、入力したZ座標の値が 100.0であることを示してい
る。また、始点座標6bに平行移動後の部品形状1を構
成する最初の形状要素の始点座標が表示される。図で
は、部品形状1の移動後には、X座標が 100.0になり、
Z座標が 100.0になることを示している。また、表示画
面16aには、移動後の部品形状1の位置をシミュレー
ション表示する。
Next, the programmer inputs, from the keyboard 17, the Z coordinate of the movement destination for moving the component shape 1 in parallel. The input Z coordinate of the moving destination is displayed in the moving coordinate 7a, indicating that the value of the input Z coordinate is 100.0. Further, the starting point coordinates of the first shape element forming the part shape 1 after translation is displayed at the starting point coordinates 6b. In the figure, after moving the part shape 1, the X coordinate becomes 100.0,
It shows that the Z coordinate becomes 100.0. In addition, the position of the component shape 1 after the movement is displayed on the display screen 16a as a simulation.

【0025】そして、実際に平行移動を行うには、プロ
グラマが移動実行指令キー3bを選択する必要がある。
また、この移動実行指令キー3bが選択されると、部品
形状1を構成する各形状要素の座標値を計算し、表示画
面16aが図6に変わる。なお、各形状要素の座標値を
計算した結果、いずれかの形状要素の座標値がマイナス
の値になった場合には、表示画面16aは図7に変わ
る。
To actually perform the parallel movement, the programmer needs to select the movement execution command key 3b.
When the movement execution command key 3b is selected, the coordinate value of each shape element forming the part shape 1 is calculated, and the display screen 16a is changed to FIG. As a result of calculating the coordinate value of each shape element, when the coordinate value of any shape element becomes a negative value, the display screen 16a changes to FIG.

【0026】図6は、平行移動後の表示画面の一例を示
す図である。図において、図3と同一の要素については
同一の番号を付し、説明を省略する。表示画面16aに
は、平行移動した部品形状1が表示される。そして、プ
ログラマは次の処理を行うことができる。なお、ソフト
キー3のうち、指令キー3b、3c、3d、3e、3f
及び3hに相当する各指令キーは、図3の同位置に示す
各指令キーと同じ内容に戻る。
FIG. 6 is a diagram showing an example of the display screen after the parallel movement. In the figure, the same elements as those in FIG. 3 are designated by the same reference numerals and the description thereof will be omitted. The parallel-moved component shape 1 is displayed on the display screen 16a. The programmer can then do the following: Of the soft keys 3, command keys 3b, 3c, 3d, 3e, 3f
And the command keys corresponding to 3h return to the same contents as the command keys shown at the same position in FIG.

【0027】図7は、エラーが発生した場合の表示画面
の一例を示す図である。図において、図4と同一の要素
については同一の番号を付し、説明を省略する。なお、
移動座標7aは、入力したX座標の値が60.0であること
を示している。
FIG. 7 is a diagram showing an example of a display screen when an error occurs. In the figure, the same elements as those in FIG. 4 are designated by the same reference numerals, and the description thereof will be omitted. In addition,
The moving coordinate 7a indicates that the value of the input X coordinate is 60.0.

【0028】エラーが発生した場合の表示画面16aに
は、エラーメッセージ8が表示される。このとき、プロ
グラマは適切なX座標を改めて入力する必要がある。な
お、カーソル5は移動先の位置に表示されるが、部品形
状1はエラーが発生したために平行移動していない。
An error message 8 is displayed on the display screen 16a when an error occurs. At this time, the programmer needs to input the appropriate X coordinate again. It should be noted that the cursor 5 is displayed at the destination position, but the component shape 1 has not moved in parallel because an error has occurred.

【0029】図1は、本発明の加工プログラム作成方法
の処理手順を示すフローチャートである。図において、
Sの後に続く数字はステップ番号を示す。 〔S1〕図形移動、すなわち部品形状の平行移動を行う
か否かを判別する。もし、部品形状の平行移動を行う
(YES)ならばステップS2に進み、部品形状の平行
移動を行わない(NO)ならば本処理手順を終了する。
なお、このステップで表示される画面は図3に相当す
る。
FIG. 1 is a flow chart showing the processing procedure of the machining program creating method of the present invention. In the figure,
The number following S indicates a step number. [S1] It is determined whether or not the graphic movement, that is, the parallel movement of the component shape is performed. If the component shape is moved in parallel (YES), the process proceeds to step S2. If the component shape is not moved in parallel (NO), this processing procedure is ended.
The screen displayed in this step corresponds to FIG.

【0030】〔S2〕部品形状を構成する最初の形状要
素の始点位置(座標)を表示する。また、カーソルで移
動先を指定できるように、最初の形状要素の始点位置に
カーソルを表示する。なお、このステップで表示される
画面は図4に相当する。
[S2] The starting point position (coordinates) of the first shape element forming the part shape is displayed. In addition, the cursor is displayed at the starting point position of the first shape element so that the destination can be specified with the cursor. The screen displayed in this step corresponds to FIG.

【0031】〔S3〕部品形状の移動先を、カーソルあ
るいは最初の形状要素の始点からの平行移動量で指定す
る。なお、このステップで表示される画面は図4及び図
5に相当する。
[S3] The destination of the part shape is designated by the cursor or the parallel movement amount from the starting point of the first shape element. The screen displayed in this step corresponds to FIGS. 4 and 5.

【0032】〔S4〕以前入力したデータと同じデータ
か否かを判別する。すなわち、ステップS3で入力した
データが、それ以前に入力されたデータと同じデータか
否かを判別する。もし、以前と同じデータ(YES)な
らば本処理手順を終了し、以前と同じデータでない(N
O)ならばステップS5に進む。
[S4] It is determined whether the data is the same as the previously input data. That is, it is determined whether the data input in step S3 is the same as the data input before that. If the same data as before (YES), this processing procedure is terminated, and the same data as before (N
If it is O), the process proceeds to step S5.

【0033】〔S5〕部品形状を構成する最初の形状要
素から順に、ステップS3で入力した平行移動量に基づ
き全形状要素についての座標値を計算する。 〔S6〕部品形状を構成する各形状要素の座標値につい
て、マイナスの座標値があるか否かを判別する。すなわ
ち、ステップS5で計算した座標値がマイナスとなった
形状要素があるか否かを判別する。もし、マイナスの座
標値を持つ形状要素がある(YES)ならばステップS
8に進み、マイナスの座標値を持つ形状要素がない(N
O)ならばステップS7に進む。
[S5] The coordinate values for all the shape elements are calculated in order from the first shape element forming the part shape based on the parallel movement amount input in step S3. [S6] It is determined whether or not there is a negative coordinate value for the coordinate value of each shape element that forms the part shape. That is, it is determined whether or not there is a shape element whose coordinate value calculated in step S5 is negative. If there is a shape element having a negative coordinate value (YES), step S
Go to 8 and there are no shape elements with negative coordinate values (N
If it is O), the process proceeds to step S7.

【0034】〔S7〕エラーメッセージを表示する。そ
の後、本処理手順を終了する。なお、このステップで表
示される画面は図6に相当する。 〔S8〕部品形状を構成する各形状要素の座標値につい
て、ステップS5で計算した座標値に更新する。また、
更新した各形状要素の座標値に基づいて、再度部品形状
を表示する。なお、このステップで表示される画面は図
7に相当する。
[S7] An error message is displayed. Then, this processing procedure ends. The screen displayed in this step corresponds to FIG. [S8] The coordinate value of each shape element forming the part shape is updated to the coordinate value calculated in step S5. Also,
The part shape is displayed again based on the updated coordinate value of each shape element. The screen displayed in this step corresponds to FIG. 7.

【0035】したがって、上記の実施例によれば、入力
した部品形状1の最初の形状要素の始点位置を表示画面
16aに表示し、移動先をキーボード17から入力する
と、入力した部品形状を構成する各形状要素の座標値
を、平行移動量で指令した値に応じて更新するので、入
力した部品形状1を所望の位置に、かつ、容易に平行移
動させることができる。
Therefore, according to the above-described embodiment, when the starting point position of the first shape element of the input part shape 1 is displayed on the display screen 16a and the movement destination is input from the keyboard 17, the input part shape is formed. Since the coordinate value of each shape element is updated according to the value instructed by the parallel movement amount, the input part shape 1 can be easily moved in parallel to a desired position.

【0036】以上の説明では、本発明を対話型数値制御
装置において適用したが、対話型プログラム作成装置に
おいて同様に適用することもできる。また、部品形状1
の移動先を指定する平行移動量は、絶対座標値で指定し
たが、相対座標値で指定することもできる。
In the above description, the present invention is applied to the interactive numerical control device, but the present invention can be similarly applied to the interactive program creating device. Also, the part shape 1
The parallel movement amount that specifies the movement destination of is specified by the absolute coordinate value, but it can also be specified by the relative coordinate value.

【0037】そして、部品形状1の移動先の指定は、座
標値をキーボード17から入力して指定したが、表示画
面16aに表示されたカーソル5を、ソフトキー3のう
ちの上方向移動指令キー3c、下方向移動指令キー3
d、左方向移動指令キー3eあるいは右方向移動指令キ
ー3fを選択して移動させることによって指定すること
もできる。なお、このときの各移動指令キーを1回選択
することによって、部品形状1が移動する移動量はパラ
メータ等で設定することができる。
The destination of the component shape 1 is designated by inputting the coordinate values from the keyboard 17, but the cursor 5 displayed on the display screen 16a is changed to the upward movement command key of the soft keys 3. 3c, downward movement command key 3
It can also be designated by selecting and moving the d, leftward movement command key 3e or the rightward movement command key 3f. By selecting each movement command key once at this time, the amount of movement of the component shape 1 can be set by a parameter or the like.

【0038】[0038]

【発明の効果】以上説明したように本発明では、入力し
た部品形状の最初の形状要素の始点位置を表示し、例え
ば最初の形状要素の始点からの平行移動量をキーボード
から入力すると、入力した部品形状を構成する各形状要
素の座標値を、カーソルあるいは最初の形状要素の始点
からの平行移動量で指令した値に応じて更新するように
したので、入力した部品形状を容易に平行移動させるこ
とができる。したがって、部品形状を構成する形状要素
の再入力が不要になる。
As described above, according to the present invention, the starting point position of the first shape element of the input part shape is displayed, and, for example, the parallel movement amount from the starting point of the first shape element is input by the keyboard. The coordinate value of each shape element that makes up the part shape is updated according to the value instructed by the parallel movement amount from the cursor or the start point of the first shape element, so the input part shape can be easily moved in parallel. be able to. Therefore, it becomes unnecessary to re-input the shape elements that form the part shape.

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

【図1】本発明の加工プログラム作成方法の処理手順を
示すフローチャートである。
FIG. 1 is a flowchart showing a processing procedure of a machining program creating method of the present invention.

【図2】本発明を実施する対話形数値制御装置の構成を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an interactive numerical control device embodying the present invention.

【図3】平行移動前の表示画面の一例を示す図である。FIG. 3 is a diagram showing an example of a display screen before translation.

【図4】平行移動量(X座標)入力時の表示画面の一例
を示す図である。
FIG. 4 is a diagram showing an example of a display screen when a parallel movement amount (X coordinate) is input.

【図5】平行移動量(Z座標)入力時の表示画面の一例
を示す図である。
FIG. 5 is a diagram showing an example of a display screen when a parallel movement amount (Z coordinate) is input.

【図6】平行移動後の表示画面の一例を示す図である。FIG. 6 is a diagram showing an example of a display screen after translation.

【図7】エラーが発生した場合の表示画面の一例を示す
図である。
FIG. 7 is a diagram showing an example of a display screen when an error occurs.

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

11,31 プロセッサ 12,32 ROM 13,33 RAM 14,34 不揮発性メモリ 16 表示装置 17 キーボード 23 ソフトウェアキー 11, 31 processor 12, 32 ROM 13, 33 RAM 14, 34 non-volatile memory 16 display device 17 keyboard 23 software key

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 対話型数値制御装置での加工プログラム
作成方法において、 形状要素キーによって部品形状を入力し、 前記部品形状を平行移動し、 部品形状を作成することを特徴とする加工プログラム作
成方法。
1. A machining program creating method in an interactive numerical control device, characterized in that a part shape is input by a shape element key, the part shape is translated, and a part shape is created. ..
【請求項2】 前記部品形状を構成する最初の形状要素
の始点からの平行移動量を入力して前記平行移動を行う
ことを特徴とする請求項1記載の加工プログラム作成方
法。
2. The machining program creating method according to claim 1, wherein the parallel movement is performed by inputting a parallel movement amount from a starting point of a first shape element forming the part shape.
【請求項3】 カーソルによって前記部品形状の移動先
を指定して前記平行移動を行うことを特徴とする請求項
1記載の加工プログラム作成方法。
3. The machining program creating method according to claim 1, wherein the parallel movement is performed by designating a movement destination of the part shape with a cursor.
【請求項4】 前記平行移動を行うときに、前記部品形
状を構成する各形状要素の座標値がマイナスになる場合
は、エラーメッセージを表示して前記平行移動を中止す
ることを特徴とする請求項1記載の加工プログラム作成
方法。
4. When performing the parallel movement, if the coordinate value of each shape element forming the part shape becomes negative, an error message is displayed and the parallel movement is stopped. The method for creating a machining program according to item 1.
JP26768291A 1991-10-16 1991-10-16 Processing program preparing method Pending JPH05108136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26768291A JPH05108136A (en) 1991-10-16 1991-10-16 Processing program preparing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26768291A JPH05108136A (en) 1991-10-16 1991-10-16 Processing program preparing method

Publications (1)

Publication Number Publication Date
JPH05108136A true JPH05108136A (en) 1993-04-30

Family

ID=17448069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26768291A Pending JPH05108136A (en) 1991-10-16 1991-10-16 Processing program preparing method

Country Status (1)

Country Link
JP (1) JPH05108136A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63181074A (en) * 1987-01-22 1988-07-26 Fanuc Ltd Form depicting method
JPH0259907A (en) * 1988-08-26 1990-02-28 Fanuc Ltd Shape input system
JPH0264723A (en) * 1988-08-30 1990-03-05 Fanuc Ltd Method for defining graphic
JPH0577141A (en) * 1991-09-18 1993-03-30 Okuma Mach Works Ltd Numerical control information preparing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63181074A (en) * 1987-01-22 1988-07-26 Fanuc Ltd Form depicting method
JPH0259907A (en) * 1988-08-26 1990-02-28 Fanuc Ltd Shape input system
JPH0264723A (en) * 1988-08-30 1990-03-05 Fanuc Ltd Method for defining graphic
JPH0577141A (en) * 1991-09-18 1993-03-30 Okuma Mach Works Ltd Numerical control information preparing device

Similar Documents

Publication Publication Date Title
JP2641797B2 (en) Interactive numerical controller
JPH02310604A (en) Picture data display system
JPH05204438A (en) Screen display system for cnc
JPH05108136A (en) Processing program preparing method
JPH09120352A (en) Multiwindow system
JPH04114208A (en) Animation plotting system for nc program
JPH08339215A (en) Numerical controller
JP3157474B2 (en) Cam design processing apparatus and method
JP2771701B2 (en) Interactive numerical controller
JPH0628021A (en) Interactive numerical controller
JPH03294906A (en) Editing system for working program
JPH04252307A (en) Interactive numerical controller
JPH09258808A (en) Motion controller programming system
JPH05197411A (en) Work program generation method
JPH0580814A (en) Programming device for programmable controller
JPH05233050A (en) Parameter input system for cnc
JPH0391812A (en) Display system for numerical controller
JPH04148306A (en) C axis working program preparing system
JPH06131024A (en) Shape input system
JP3123720B2 (en) Programming method and programming device for programmable controller
JPH0588722A (en) Numerical controller
JPH09160620A (en) Numerical controller
JPH0546232A (en) Displaying system for intersection
EP0547225A1 (en) Method for editing shape
JPH0239207A (en) Robot controller containing improving function for robot action properties