JPH03182909A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH03182909A
JPH03182909A JP32130189A JP32130189A JPH03182909A JP H03182909 A JPH03182909 A JP H03182909A JP 32130189 A JP32130189 A JP 32130189A JP 32130189 A JP32130189 A JP 32130189A JP H03182909 A JPH03182909 A JP H03182909A
Authority
JP
Japan
Prior art keywords
code
user
data table
display data
graphic pattern
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
JP32130189A
Other languages
Japanese (ja)
Inventor
Kazuyo Shiraki
白木 和代
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP32130189A priority Critical patent/JPH03182909A/en
Publication of JPH03182909A publication Critical patent/JPH03182909A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To edit a working program peculiar of a user by providing a user display data table storing an address menu being the function of a G-code which the user can use and a graphic pattern. CONSTITUTION:When a keyboard 1 is operated and the G-code is inputted, an effective G-code extraction means 6 judges from an effective G-code table 4a and extracts the effective G-code 7. A display data table selection means 11 selects an NC display data table a or a user display data table 13 from the effective G-code 7. A display data table search means 8 retrieves the graphic pattern and the address menu concerned from the table 9 or 13 based on the extracted effective G-code 7 and a pointer which a pointer setting means 12 sets, and displays them in CRT 2 through a video output means 10. Thus, the address menu and the graphic pattern, both of which correspond to the G-code which the user does not use are displayed and correspondence to working peculiar of the user is attained even if the G-code is inputted.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は数値制御装置に関し、特にそのGコドに関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a numerical control device, and particularly to its G code.

[従来の技術] 第7図は従来の数値制御装置の概略構成図てある。図に
おいて、(1)はキーボード、(2)はキボード(1)
の入力に基づく表示をするCRTである。
[Prior Art] FIG. 7 is a schematic diagram of a conventional numerical control device. In the figure, (1) is the keyboard, (2) is the keyboard (1)
This is a CRT that displays information based on input.

(3)はNCテープからの加ニブログラムを格納する加
ニブログラム記憶手段である。
(3) is a Niprogram storage means for storing the Niprogram from the NC tape.

(4〉は加ニブログラム編集手段であり、CRT(2)
に表示されているプログラムを読込み、加ニブログラム
手段(3)に格納されている該当するプログラムから所
定のプログラムに編集するものである。(4a)は有効
Gコード表である。
(4> is a Canadian program editing means, CRT (2)
The program displayed on the computer is read and edited into a predetermined program from the corresponding program stored in the computer program means (3). (4a) is an effective G code table.

(5)は加ニブログラム編集手段(4〉で編集した加ニ
ブログラムをセーブする編集バッファである。
(5) is an editing buffer for saving the Canadian program edited by the Canadian program editing means (4>).

(6)は加ニブログラム編集手段(4)で読込んだCR
T (2)のプログラムから有効なGコードを抽出する
有効Gコード抽出手段である。
(6) is the CR read by Canadian program editing means (4)
This is a valid G code extraction means for extracting a valid G code from the program of T (2).

(7)は有効Gコード抽出手段(6)から抽出した有効
Gコードである。
(7) is the valid G code extracted from the valid G code extraction means (6).

(8)は表示データテーブルサーチ手段であり、有効G
コード(7〉に基づいて後述するNCC表示ブタテーブ
ル9)から有効Gコード(7)に対応するグラフィック
パターン及びアドレスメニューのデータをサーチするも
のである。
(8) is a display data table search means, and the effective G
Based on the code (7>), the graphic pattern and address menu data corresponding to the valid G code (7) are searched from the NCC display button table 9 (described later).

(9)はNC表示データテーブルであり、後述するNC
データを格納し、表示データテーブルサチ手段(8)に
より該当するNCデータが抽出されるものである。
(9) is an NC display data table, which will be described later.
The data is stored, and the corresponding NC data is extracted by the display data table search means (8).

(lO)は表示データテーブルサーチ手段(8)の出力
結果をグラフィックパターンとしてCRT (2)に表
示するグラフィックパターン表示手段である。
(lO) is a graphic pattern display means for displaying the output result of the display data table search means (8) as a graphic pattern on the CRT (2).

第8図はGコードの機能を説明する図であり、M標準フ
ォーマット及びM2 /Mロフォーマットの機種のGコ
ードに対応してそれぞれ各機能を記載している。
FIG. 8 is a diagram explaining the functions of the G code, and each function is described corresponding to the G code of the M standard format and M2/M lo format models.

図において、空白の箇所はNC表示データテーブル(9
)に登録されていない箇所である。また図に示すように
、NC装置で使用できるGコードは規格化されており、
GOO〜GO5、GO7、GO9〜G11、G11.1
〜G14、G17〜G23.1、G27〜G31.3.
033〜G92、G94〜G110SG200〜202
、及びG205はそれぞれ機能が規格化されている。こ
のようなデータが有効Gコード表(4a)として格納さ
れている。
In the figure, blank areas are NC display data table (9
) is not registered. In addition, as shown in the figure, the G code that can be used with NC equipment is standardized.
GOO~GO5, GO7, GO9~G11, G11.1
~G14, G17~G23.1, G27~G31.3.
033~G92, G94~G110SG200~202
, and G205 have standardized functions. Such data is stored as a valid G code table (4a).

しかし、実際にM標準フォーマット及びM2/MOフォ
ーマットの機種でグラフィックパターンが指定されてい
るGコードはG89までである。
However, the G codes for which graphic patterns are actually specified in M standard format and M2/MO format models are up to G89.

*印はイニシャル状態で選択すべきコード、または選択
されているコード、※印はパラメータによってイニシャ
ル状態で選択すべきコード、または選択されているコー
ドである。
The asterisk (*) indicates a code that should be selected or the code that is selected in the initial state, and the asterisk (*) indicates a code that should be selected or is selected in the initial state depending on the parameter.

また、AMERICAN  NATIONALSTAN
DARDのEIA  5TANDARD(1,978)
ではGコードはGO5、GIO〜G12、G20〜G2
4、G30〜G32.636〜G39、G45〜G49
、G60〜G69、G72〜G79、G98、G99は
任意に設定できることを規格化している。
Also, AMERICAN NATIONAL STAN
DARD's EIA 5TANDARD (1,978)
So the G codes are GO5, GIO~G12, G20~G2
4, G30-G32.636-G39, G45-G49
, G60 to G69, G72 to G79, G98, and G99 are standardized to be arbitrarily set.

次に、上記と同じ<NC表示データテーブル(9)に格
納されている加工部(図示せず)にある軸の移動量及び
加工経路等を示すアドレスメニュ及びグラフィックパタ
ーンについて、M300標準フォーマット及びM2 /
MOフォーマットの機種毎に以下に説明する。
Next, the M300 standard format and the M2 /
Each MO format model will be explained below.

第9図(a)はM300標準フォーマットの機種のアド
レスメニューを説明する図であり、図において、アルフ
ァベットの記号は上記説明に移動量及び加工経路等の意
味を示し、O印はグラフィックパターンの表示があるこ
とを示すものであり、Gコードに対応してそれぞれアド
レスメニュー表示が格納されていることを示すものであ
る。
FIG. 9(a) is a diagram explaining the address menu of the M300 standard format model. In the diagram, the alphabetical symbols indicate the meaning of the movement amount and machining path, etc. in the above explanation, and the O mark indicates the graphic pattern. This indicates that there is an address menu display corresponding to each G code.

第9図(b)はM2 /MOフォーマットの機種のアド
レスメニューを説明する図であり、図において、アルフ
ァベットの記号は上記説明に移動量及び加工経路等の意
味を示し、O印はグラフィックパターンの表示があるこ
とを示すものであり、Gコードに対応してそれぞれアド
レスメニュー表示が格納されていることを示すものであ
る。
FIG. 9(b) is a diagram explaining the address menu of the M2/MO format model. In the diagram, the alphabetical symbols indicate the meanings of the movement amount and machining path, etc. in the above explanation, and the O mark indicates the graphic pattern. This indicates that there is a display, and indicates that an address menu display is stored corresponding to each G code.

第10図はグラフィックパターンを説明する図であり、
上記第9図(a)及び(b)のO印の代表的なグラフィ
ックパターンのみを示す。
FIG. 10 is a diagram explaining the graphic pattern,
Only the typical graphic pattern marked O in FIGS. 9(a) and 9(b) is shown.

上記のように構成された数値制御装置は、軸の加工経路
及び移動量は上記のアドレスメニュー及びグラフィック
パターンを基準として算出するものであるので、具体的
な数値を人力する前に以下に説明する動作を実行する。
In the numerical control device configured as above, the machining path and movement amount of the axis are calculated based on the above address menu and graphic pattern, so the following will explain the specific values before inputting them manually. perform an action.

例えばキーボード(2)を操作して、Golと入力した
とすると、加ニブログラム編集手段(4)はその信号を
読み、プログラム記憶手段(3)から該当するプログラ
ムを読み出し、編集バッファ(5〉にセーブする。そし
て、セーブされたプログラムに基づいて、有効Gコード
抽出手段(6)が入力されたGコードが上記第7図に示
す有効Gコード表(4a)のGコードであれば、そのG
コードを取り出す。
For example, if you operate the keyboard (2) and input Gol, the Canadian program editing means (4) reads the signal, reads the corresponding program from the program storage means (3), and saves it in the editing buffer (5>). Then, based on the saved program, if the input G code is a G code in the valid G code table (4a) shown in FIG.
Take out the code.

次に、取出された有効Gコード(7)に基づいて、表示
データテーブルサーチ手段(8)はNC表示テブル(1
1〉から有効Gコードに該当するアドレスメニュー及び
グラフィックパターンを選択し、映像出力手段(lO)
に出力する。映像出力手段(10)は、この有効Gコー
ド、アドレスメニュー及びグラフッ イックパターンデータを所定のプログラムにより編集し
てCRT(1)に出力する。
Next, based on the retrieved valid G code (7), the display data table search means (8) searches the NC display table (1).
Select the address menu and graphic pattern corresponding to the valid G code from 1> and output the video output means (lO).
Output to. The video output means (10) edits the valid G code, address menu and graphic pattern data using a predetermined program and outputs the edited data to the CRT (1).

第11図(a)はGOI:]−ドによるCRTの表示を
説明する図である。図において、(15)はプログラム
作成及び編集領域、(16)はGOIコード、(17〉
はカーソル位置、(18)はグラフィックバタン及びア
ドレスメニュー表示領域、(I9)はGOIコードに対
応するグラフィックメニュー、(20)はGO]コード
に対応するグラフィックパターンである。
FIG. 11(a) is a diagram illustrating the display of the GOI:]-code on the CRT. In the figure, (15) is the program creation and editing area, (16) is the GOI code, (17>
is the cursor position, (18) is the graphic button and address menu display area, (I9) is the graphic menu corresponding to the GOI code, and (20) is the graphic pattern corresponding to the GO] code.

第11図(b)はG111コードによるCRTの表示を
説明する図である。図において、(15)〜(I7)は
第11図(a)と同様なものであり、(21)はG11
1コードである。
FIG. 11(b) is a diagram illustrating a CRT display using the G111 code. In the figure, (15) to (I7) are similar to FIG. 11(a), and (21) is G11.
1 code.

上記のような映像は第9図(a)及び(b)に示したO
印があれば、人力されたGコードに越づいて第9図(a
)及び(b)のアドレスメニュー及び第9図のグラフィ
ックパターンをCRT (1)に表示するものである。
The above images are shown in Figure 9 (a) and (b).
If there is a mark, go beyond the human-generated G code and read Figure 9 (a).
) and (b) and the graphic pattern shown in FIG. 9 are displayed on the CRT (1).

しかし、例えばキーボード(2)を操作してG111と
入力したとすると、表示データテーブル手段(8)はN
C表示データテーブル(9〉から該当するアドレスメニ
ュー及びグラフィックパターンを検索するが上記第8図
に説明したようにG111コード(21)に対応するア
ドレスメニュー及びグラフィックパターンは格納されて
いないので、CRTには第11図(b)のように、G1
11コード(2()、カーソル(17)及びプログラム
作成及び編集領域〈15〉並びにグラフィックパターン
及びアドレスメニュー表示領域(18)Lか表示されず
、したがってユーザに例えば上記第8図のG111コド
(21)を解放しても、ユーザは使用することができな
かった。
However, for example, if you operate the keyboard (2) and input G111, the display data table means (8) will be N.
The corresponding address menu and graphic pattern are searched from the C display data table (9>), but as explained in Fig. 8 above, the address menu and graphic pattern corresponding to the G111 code (21) are not stored. As shown in Fig. 11(b), G1
11 code (2()), cursor (17), program creation and editing area <15>, and graphic pattern and address menu display area (18)L are not displayed, so the user cannot see, for example, the G111 code (21) in FIG. ) was released, the user could not use it.

[発明が解決しようとする課題] 上記のような従来の数値制御装置では、使用しないGコ
ードをユーザに解放しても、そのGコードに対応するア
ドレスメニュー及びグラフィックパターンが格納されて
いないためアドレスメニュ及びグラフィックパターンが
表示されないので、ユーザ独自のGコードに対応できな
いという問題点があった。
[Problems to be Solved by the Invention] In the conventional numerical control device as described above, even if an unused G code is released to the user, the address menu and graphic pattern corresponding to the G code are not stored. Since menus and graphic patterns are not displayed, there is a problem in that it cannot support users' own G codes.

この発明は、かかる問題点を解決するためになされたも
ので、ユーザが使用していないGコードを人力しても、
そのGコードに対応するアドレスメニュー及びグラフィ
ックパターンを表示してユザ独自の加工に対応できる数
値制御装置を得ることを目的とする。
This invention was made to solve this problem, and even if the user manually writes the G code that is not used,
The object of the present invention is to obtain a numerical control device that can display an address menu and a graphic pattern corresponding to the G code and can support user's own processing.

[課題を解決するための手段] この発明に係る数値制御装置は、キーボードを操作して
人力されたGコードを表示器に出力して表示すると共に
、予め記憶されている有効651表から前記Gコードが
有効なGコードかを判断し、有効Gコードであればその
Gコードに該当する規格化されたアドレスメニュー及び
グラフィックパターンをNC表示データテーブルから選
択して表示器に表示する数値制御装置において、ユザが
用いるGコードが格納され、そのGコードに基づいて基
準の機能となるグラフィックパターン及びアドレスメニ
ューを格納したユーザ表示データテーブルと、ユーザ表
示データテーブルを選択するためのユーザGコードをエ
リア毎に格納したユーザGコード格納手段と、有効Gコ
ード抽出手段から出力される有効Gコードから格納手段
に格納されているユーザGコードかを判断し、有効Gコ
ードがユーザGコードであれば、ユーザGコドのエリア
を知らせる信号を出力する表示データチルプル選択手段
と、表示データテーブル選択手段からの出力信号に基づ
いてデータポインタを設定するデータポインタ設定手段
と、有効Gコード及びデータポインタに基づいて、NC
表示データテーブルの規格化されたアドレスメニュー及
びグラフィックパターンあるいはユーザ表示データテブ
ルのアドレスメニュー及びグラフィックバタンを表示器
に出力する表示データテーブルサチ手段とを備えたもの
である。
[Means for Solving the Problems] A numerical control device according to the present invention outputs and displays a manually entered G code on a display by operating a keyboard, and also outputs and displays the G code from a valid 651 table stored in advance. In a numerical control device that determines whether a code is a valid G code, and if it is a valid G code, selects a standardized address menu and graphic pattern corresponding to that G code from an NC display data table and displays it on a display. , a user display data table that stores the G code used by the user, a user display data table that stores the graphic pattern and address menu that serve as standard functions based on the G code, and a user G code for selecting the user display data table for each area. It is determined whether the user G code is stored in the storage means from the user G code stored in the storage means and the valid G code output from the valid G code extraction means, and if the valid G code is the user G code, the user display data chill pull selection means for outputting a signal informing the G code area; data pointer setting means for setting a data pointer based on the output signal from the display data table selection means; and NC based on the effective G code and data pointer.
The display data table search means includes display data table search means for outputting the standardized address menu and graphic pattern of the display data table or the address menu and graphic button of the user display data table to the display device.

[作用コ この発明においては、キーボードを操作してGコードを
人力すると、入力されたGコードが有効Gコードかを予
め記憶されている有効Gコード表から判断する。
[Operation] In this invention, when a G code is input manually by operating a keyboard, it is determined whether the input G code is a valid G code from a pre-stored valid G code table.

コ そして、有効Gコードであれば表示データテブル選択手
段がその有効GコードがユーザGコード格納手段に格納
されているユーザGコードかを判断し、有効Gコードが
ユーザGコードであれば、ユーザGコードのエリアを知
らせる信号を出力する。
If the valid G code is a valid G code, the display data table selection means determines whether the valid G code is a user G code stored in the user G code storage means. Outputs a signal indicating the code area.

すると、データポインタ設定手段が表示データテーブル
選択手段からの出力信号に基づいてデータポインタを設
定する。
Then, the data pointer setting means sets the data pointer based on the output signal from the display data table selection means.

そして、表示データテーブルサーチ手段が有効Gコード
及びデータポインタに基づいて、NC表示データテーブ
ルの規格化されたアドレスメニュ及びグラフィックパタ
ーンあるいはユーザ表示データテーブルのアドレスメニ
ュー及びグラフィックパターンを表示器に出力する。
Then, the display data table search means outputs the standardized address menu and graphic pattern of the NC display data table or the address menu and graphic pattern of the user display data table to the display device based on the valid G code and the data pointer.

[実施例] 第1図はこの発明の一実施例を示す数値制御装置の概略
構成図であり、(L)〜(10)は従来例の第6図と同
様なものである。
[Embodiment] FIG. 1 is a schematic configuration diagram of a numerical control device showing an embodiment of the present invention, and (L) to (10) are similar to FIG. 6 of the conventional example.

(11)は表示データテーブル選択手段であり、有効G
コード抽出手段(6〉により抽出されたGコドに基づい
てユーザGコードかを判定し、NC表示データテーブル
〈9〉及び後述するユーザ表示データテーブル(13)
を選択するものである。
(11) is a display data table selection means, and the effective G
Based on the G code extracted by the code extraction means (6>), it is determined whether it is a user G code, and the NC display data table <9> and the user display data table (13) to be described later are displayed.
This is to select.

(lla)は表示データテーブル選択手段(11)によ
り、読み込まれるユーザGコード表である。
(lla) is a user G code table read by the display data table selection means (11).

(12)はデータポインタ設定手段であり、表示ブタチ
ープル選択手段(11)で選択された選択条件から所定
の領域のアドレスに対応するポインタを設定するもので
ある。
(12) is a data pointer setting means, which sets a pointer corresponding to the address of a predetermined area based on the selection condition selected by the display button multiple selection means (11).

(13)はユーザ表示データテーブルであり、ユーザ作
成用のGコードに対応するアドレスメニューグラフィッ
クパターンを一つの領域とするデータを必要数備えたも
のであり、表示データテーブルサーチ手段(8)により
抽出されるものである。
(13) is a user display data table, which includes the necessary number of data in which one area is an address menu graphic pattern corresponding to a G code created by the user, and is extracted by the display data table search means (8). It is something that will be done.

第2図(a)はユーザGコード表を説明する図である。FIG. 2(a) is a diagram illustrating a user G code table.

この図は、例えばM300標準フォーマットの機種を用
いた場合とし、そのユーザGコードをG11l−G1.
99までとし、G111に対応する機能を星形とする。
This figure shows the case where, for example, an M300 standard format model is used, and the user G code is G11l-G1.
99 and the functions corresponding to G111 are shown in a star shape.

またこの機能は任意にユーザが設定できるものである。Further, this function can be set arbitrarily by the user.

第2図(b)はユーザ表示データテーブルに格納するア
ドレスメニューを説明する図であり、Gコドに対応する
アドレスメニューを例えば、XxYy  Zz  Dd
とする。x、y、zは切削開始位置を示すものであり、
dは補正番号である。
FIG. 2(b) is a diagram for explaining the address menu stored in the user display data table, and the address menu corresponding to the G code is, for example, XxYy Zz Dd.
shall be. x, y, z indicate the cutting start position,
d is a correction number.

また、このアドレスメニューはユーザが任意に設定でき
るものである。
Further, this address menu can be set arbitrarily by the user.

第2図(c)はグラフィックパターン表示を説明する図
である。この図は第2図(b)のアドレスメニューのX
x  Yy  Zz  Ddによる表示である。
FIG. 2(c) is a diagram illustrating graphic pattern display. This figure shows the address menu shown in Figure 2 (b).
It is displayed by x Yy Zz Dd.

第3図(a)はマクロ−覧表を説明する図であり、図に
おいて、(1,5)は入力されたユーザGコードの番号
、(1B)は入力されたプログラム番号、(17)はメ
ニュ一番号である。
FIG. 3(a) is a diagram explaining the macro list. In the figure, (1, 5) is the number of the input user G code, (1B) is the input program number, and (17) is the number of the input user G code. It's number one on the menu.

第3図(b)はユーザ表示データテーブル(13)のデ
ータ領域を説明する図である。
FIG. 3(b) is a diagram illustrating the data area of the user display data table (13).

図において、(17)は第3図(a)と同様なものであ
り、(18)はテキストデータの領域、(+9)はグラ
フィックデータの領域、(20)はアドレスメニュの領
域である。
In the figure, (17) is the same as in FIG. 3(a), (18) is a text data area, (+9) is a graphic data area, and (20) is an address menu area.

上記のように構成された数値制御装置の動作について図
を用いて説明する。
The operation of the numerical control device configured as described above will be explained using the drawings.

例えば、キーボード(1〉を操作してGコードを人力し
たとすれば加ニブログラム編集手段(4)はそのGコー
ドを読み、編集バッファ(5)にセーブした後に該当す
るプログラムを加ニブログラム編集手段(3)から編集
バッファ(5)にセーブし、人力されたGコードを映像
出力手段(10〉に出力する。
For example, if a G code is entered manually by operating the keyboard (1), the Canadian program editing means (4) reads the G code, saves it in the editing buffer (5), and then writes the corresponding program to the Canadian program editing means (4). 3) is saved in the editing buffer (5), and the manually entered G code is output to the video output means (10>).

すると、映像出力手段(10)はCRT (2)の所定
の領域にGコードを表示する。
Then, the video output means (10) displays the G code in a predetermined area of the CRT (2).

そして、有効Gコード抽出手段(6)が格納している上
記説明の第8図と同様なGコード表(4a)から人力し
たGコードが第8図によるGコードであれば、有効Gコ
ードとして抽出するとともに表示データテーブル選択手
段(11)に出力する。
If the G code manually generated from the G code table (4a) similar to FIG. 8 in the above explanation stored in the effective G code extracting means (6) is the G code according to FIG. It is extracted and output to the display data table selection means (11).

すると、表示データテーブル選択手段(11)はその有
効GコードからNC表示データテーブル(9)またはユ
ーザ表示データテーブル(13)を選択するとともに、
後述するパラメータとして入力したメニュ一番号のアド
レス領域を読む。この領域からデータポインタ設定手段
(12)が対応するポインタを設定する。
Then, the display data table selection means (11) selects the NC display data table (9) or the user display data table (13) from the valid G code, and
Read the address area of the menu number 1 input as a parameter to be described later. A data pointer setting means (12) sets a corresponding pointer from this area.

そして、表示データテーブルサーチ手段(8)が抽出さ
れた有効Gコード(7〉及び設定されたポインタに基づ
いてNC表示データテーブル(9)あるいはユーザ表示
データテーブル(13〉から該当するグラフインクパタ
ーン及びアドレスメニューを検索して、映像出力手段(
10)を介してCRT (2)に表示するものである。
Then, the display data table search means (8) searches the NC display data table (9) or the user display data table (13) based on the extracted valid G code (7) and the set pointer, and searches the corresponding graph ink pattern and Search the address menu and select the video output method (
10) to be displayed on the CRT (2).

第4図はユーザGコードに対するパラメータを人力する
フローチャートである。
FIG. 4 is a flowchart for manually inputting parameters for the user G code.

キーボード(1)のパラメータキー(図示せず)が入力
すると加ニブログラム編集手段(4〉はマクロ−覧表(
4c)を呼び出しCRT (2)に表示する(Sl)。
When the parameter key (not shown) on the keyboard (1) is input, the program editing means (4) displays the macro list (
4c) is called up and displayed on the CRT (2) (Sl).

そして、ユーザGコードが入力したかを判断しくS2)
、人力されればそのユーザGコードを記憶し該当する表
示エリアに表示する(S3)。この場合はG111と入
力したとする。
Then, it is determined whether the user G code has been input (S2)
, if it is manually performed, the user's G code is stored and displayed in the corresponding display area (S3). In this case, assume that G111 is input.

] 6 次に、人力されたGコードによるアドレスメニューデー
タを作成するプログラム番号(16〉が入力されたかを
判断しくS4)、入力すれば該当するプログラム(図示
せず)を加ニブログラム記憶手段(3)から呼び出して
記憶し、その番号を該当する表示エリアに表示する(S
5)。この場合はプログラム番号を09991とする。
] 6 Next, it is determined whether the program number (16>) for creating address menu data based on the manually entered G code has been input (S4). ) and memorize it, and display that number in the corresponding display area (S
5). In this case, the program number is set to 09991.

次に、ユーザ表示データテーブル((3)のアドレスメ
ニューデータを作成する領域のメニュ一番号(17〉が
人力されたかを判断しくS6〉、番号が人力されればそ
の番号を記憶し、該当するC RT (2)の表示エリ
アに表示する(S7)。
Next, it is determined whether the menu number 1 (17) in the area for creating address menu data in the user display data table ((3)) was entered manually (S6), and if the number was entered manually, the number is memorized and the corresponding It is displayed in the display area of C RT (2) (S7).

そして、該当する領域に第2図(a)のユーザGコート
の機能表、第2図(b)のアドレスメニュ及び第2図(
C)のグラフィックパターンのデータをC言語により作
成し格納する(S8)。
Then, in the corresponding area, the function table of the user G coat shown in Fig. 2(a), the address menu shown in Fig. 2(b), and the
C) graphic pattern data is created in C language and stored (S8).

このパラメータ人力処理によりユーザが使用するデータ
が格納される。
Data used by the user is stored through this manual parameter processing.

第5図(a)及び(b)は本発明の詳細な説明するフロ
ーチャートであり、Gコードが人力されたときの動作に
ついて説明するものである。
FIGS. 5(a) and 5(b) are flowcharts for explaining the present invention in detail, and explain the operation when the G code is input manually.

例えばCRT (2)に標準画面が表示されているとき
に例えばG11]と入力したとすると、加ニブログラム
編集手段(4)は標準画面をクリアする(S501)。
For example, if G11 is input while the standard screen is displayed on the CRT (2), the Canadian program editing means (4) clears the standard screen (S501).

そして、人力されたGコードを読み、そのGコードを映
像出力手段(10)に出力し、プログラム作成・編集領
域(15)の該当する領域に表示する(S503)。
Then, the manually entered G code is read, and the G code is output to the video output means (10) and displayed in the corresponding area of the program creation/editing area (15) (S503).

そして、表示したGコードの直ぐ後ろにカーソルを表示
する(S504)。
Then, a cursor is displayed immediately after the displayed G code (S504).

次に、加ニブログラム編集手段(3)がGコードを編集
バッファ(5)にセーブしく5505)、加ニブログラ
ム記憶手段(3)からGコードのC言語のプログラムを
読み(S507)、そのプログラムを編集バッファ(5
)にセーブする(3509)。
Next, the Canadian program editing means (3) saves the G code in the editing buffer (5) (5505), reads the C language program of the G code from the Canadian program storage means (3) (S507), and edits the program. Buffer (5
) (3509).

そして、Gコードを編集バッファ(5)から抽出すると
(S51.I)、有効Gコード抽出手段(6)がそのG
コードに基づいて記憶している第7図の651表(4a
)を読む(3513)。
Then, when the G code is extracted from the editing buffer (5) (S51.I), the effective G code extraction means (6)
651 table in Figure 7 (4a
) (3513).

次に、前記説明の第8図のGコード表から人力されたG
コードが有効かを判断しく8515)、有効Gコードで
あれば前記Gコード表(4a)からユーザGコードであ
るかを判断し、NC表示データテーブル(9)かユーザ
表示データテーブル(13)を選択するかを判断する(
S517)。この場合はG111と入力したのでユーザ
Gコードと判断する。
Next, from the G code table in FIG. 8 of the above explanation, the G
If the code is valid, it is determined whether it is a user G code from the G code table (4a), and the NC display data table (9) or user display data table (13) is determined. Decide whether to select (
S517). In this case, since G111 was input, it is determined to be the user G code.

次に、ユーザGコードと判断すれば、そのGコドを格納
するためにパラメータとして入力したメニュ一番号の領
域のアドレスを読み(8519)、その領域に対応する
ポインタをデータポインタ設定手段(12)が設定する
(3521)。この場合はメニュ番号1の領域に対応す
るポインタを設定する。
Next, if it is determined that it is a user G code, the address of the area of the first menu number inputted as a parameter to store the G code is read (8519), and the data pointer setting means (12) sets the pointer corresponding to that area. is set (3521). In this case, a pointer corresponding to the area of menu number 1 is set.

次に、表示データテーブルサーチ手段(11)は記憶さ
れた有効Gコード(7〉及びポインタからユザ表示デー
タテーブル(13)の所定の領域をサーチしく5523
)、そのGコードに対応するアドレスメニューがあるか
を判断する(S525)。この場合は、上記で説明した
第2図(b)のアドレスメニューが格納されているので
アドレスメニューがあると判断し、そのアドレスメニュ
ーを読む(S527)。またアドレスメニューなしと判
断ずればステップ5529に制御を移す。
Next, the display data table search means (11) searches a predetermined area of the user display data table (13) from the stored valid G code (7>) and the pointer 5523.
), it is determined whether there is an address menu corresponding to the G code (S525). In this case, since the address menu shown in FIG. 2(b) explained above is stored, it is determined that there is an address menu, and the address menu is read (S527). If it is determined that there is no address menu, control is transferred to step 5529.

そして、グラフィックパターンが格納されているかを判
断する(8529)。次に、グラフィックパタンが格納
されていれば該当するグラフィックパターンを読む(8
531)。またステップ5529てグラフィックパター
ンなしと判断すれば制御をステップ5533に移す。
Then, it is determined whether a graphic pattern is stored (8529). Next, if a graphic pattern is stored, read the corresponding graphic pattern (8
531). If it is determined in step 5529 that there is no graphic pattern, the control is shifted to step 5533.

次に、グラフィックパターンありと判断すれば読み込ん
だグラフィックパターン及びアドレスメニューを映像出
力手段<10)に出力する(3533)。この場合は上
記説明の第2図(b)のアドレスメニュ及び第2図(C
)のグラフィックパターンを出力する。
Next, if it is determined that there is a graphic pattern, the read graphic pattern and address menu are output to the video output means <10) (3533). In this case, the address menu shown in Figure 2 (b) and Figure 2 (C
) outputs a graphic pattern.

次に、映像出力手段(10)はアドレスメニュー及びグ
ラフィックパターンをCRT (2)のグラフィックパ
ターン表示領域(18)に表示する(3535)。
Next, the video output means (10) displays the address menu and the graphic pattern in the graphic pattern display area (18) of the CRT (2) (3535).

そして、表示されたグラフィックパターン及びアドレス
メニューを基準にして、加工する加エデタの数値が入力
されたかを判断しく8537)、加工 0 データが人力されるまでステップ8535の基準となる
グラフィックパターン及びアドレスメニューを表示する
Then, based on the displayed graphic pattern and address menu, it is determined whether the numerical value of the editing editor to be processed has been input (8537), and the graphic pattern and address menu that serve as the reference for step 8535 until the processed 0 data is input manually. Display.

次に、加工データが人力されればその加エデタに基づい
て加ニブログラムを作成する(8539)。
Next, if the processed data is manually edited, a processed program is created based on the processed data (8539).

そして、その加ニブログラムに基づいてCRT(2)に
表示する(8541)。
Then, it is displayed on the CRT (2) based on the Canadian program (8541).

次に、CRT (2)のプログラム作成・編集領域に他
にGコードが表示されているかを判断する(8548)
。この場合はG111コードのみであるので他にGコー
ドは表示していないと判断する。
Next, determine whether any other G codes are displayed in the program creation/editing area of CRT (2) (8548)
. In this case, since only the G111 code is displayed, it is determined that no other G codes are displayed.

他にGコードを表示していないと判断すればインプット
キー(図示せず)による入力ありかを判断しく5545
)、入力がなければ前頁キーによる人力信号ありかを判
断しく5547)、ないと判断すれば次頁キー(図示せ
ず)による入力信号ありかを判断する(8549)。
If it is determined that no other G code is displayed, it is determined whether there is an input using the input key (not shown)5545
), if there is no input, it is determined whether there is a human input signal from the previous page key (5547), and if it is determined that there is no input, it is determined whether there is an input signal from the next page key (not shown) (8549).

次頁キーによる入力信号がなければステップ5541に
制御を移し、加工データにより編集された加ニブログラ
ムを表示する。
If there is no input signal from the next page key, control is transferred to step 5541, and the Kanji program edited with the processed data is displayed.

またステップ5517でユーザGコードではないと判断
すればNC表示デとタテ−プル(9)のGコドのメニュ
一番号の領域のアドレスを読み(S535)、読み込ん
だアドレス領域のポインタを設定する(8537)。そ
して、表示データテーブルサーチ手段〈11〉は記憶さ
れた有効Gコード(7〉及びポインタからNC表示デー
タテーブル(9)の所定の領域をサーチする(S539
)。
If it is determined in step 5517 that it is not a user G code, the address of the area of the menu number 1 of the G code of the NC display table (9) is read (S535), and a pointer to the read address area is set ( 8537). Then, the display data table search means <11> searches a predetermined area of the NC display data table (9) from the stored valid G code (7>) and the pointer (S539).
).

また、CRT (2)に例えばGコードが複数入力され
たとすれば、ステップ8543で他にGコードがあると
判断する。
Furthermore, if, for example, a plurality of G codes are input to CRT (2), it is determined in step 8543 that there are other G codes.

そして、次のGコードの直ぐ後ろの位置にカソルを表示
する(S551)。
Then, a cursor is displayed at the position immediately after the next G code (S551).

次に、カーソルが表示されているGコードを編集する編
集指令信号が人力したかを判断しく8551)、入力し
てないとすればカーソル移動指令信号入力かを判断しく
5555)、入力しなければステップ5551に制御を
移し次のGコードの後ろにカーソルを表示し続ける。
Next, it is determined whether an edit command signal to edit the G code where the cursor is displayed was input manually 8551), and if it is not input, it is determined whether the cursor movement command signal is input 5555). Control is transferred to step 5551 and the cursor continues to be displayed after the next G code.

次に、カーソル移動指令信号が入力したとずれば、その
指令信号に基づいてカーソルを該当するGコードの後ろ
に表示する(8557)。
Next, if a cursor movement command signal is input, the cursor is displayed behind the corresponding G code based on the command signal (8557).

また、ステップ5553で編集指令信号が人力すればス
テップ5505に制御を移し、上記説明の所定の処理を
実行する。
Further, if the editing command signal is input manually in step 5553, control is transferred to step 5505, and the predetermined processing described above is executed.

また、ステップ8515で有効Gコードでないと判断す
れば、ステップ5505、ステップ5509及び抽出し
たGコードをクリアする(3580)。
Further, if it is determined in step 8515 that the G code is not valid, steps 5505, 5509, and the extracted G code are cleared (3580).

第6図は本発明の処理動作によりCRTに表示される映
像を説明する図である。
FIG. 6 is a diagram illustrating an image displayed on a CRT by the processing operation of the present invention.

図において、(15)〜〈21)は上記第8図と同様な
ものであり、(23〉は上記第2図(b)と同様なアド
レスメニュー、(24)は第2図(C)と同様なグラフ
ィックパターンである。
In the figure, (15) to <21) are the same as those in Figure 8 above, (23> is the same address menu as in Figure 2 (b) above, and (24) is the same as in Figure 2 (C) above. It has a similar graphic pattern.

従って、この図のようなユーザGコードに対応する加ニ
ブログラムの基準となるアドレスメニュ及びグラフィッ
クパターンを表示でき、従来では使用されなかったユー
ザGコードをユーザ独自の加ニブログラム領域として用
いることが可能となる。
Therefore, it is possible to display the address menu and graphic pattern that serve as the standard for the Canadian program corresponding to the user G code as shown in this figure, and it is now possible to use the user G code, which has not been used in the past, as a user's own Canadian program area. Become.

 3 また上記実施例では、C言語によりグラフィ・ツクパタ
ーン及びアドレスメニューを作成すると例示したがこの
発明ではC言語でなくともグラフィックパターン及びア
ドレスメニューが作成できる言語であればよい。
3. In the above embodiment, the graphic pattern and the address menu are created using the C language, but in the present invention, any language that can create the graphic pattern and the address menu may be used instead of the C language.

さらに、ユーザGコードをG111として例示し−r 
説明したが、G111コードでなくとも、例えばユーザ
Gコードであればよい。
Furthermore, the user G code is exemplified as G111 -r
As described above, the code does not have to be the G111 code, but may be the user G code, for example.

さらに、グラフィックパターン及びアドレスメニューは
星形として例示したが、例えば従来からあるグラフィッ
クパターン及びアドレスメニューをユーザGコードに対
応させて格納してもよい。
Furthermore, although the graphic pattern and address menu are illustrated as star shapes, for example, conventional graphic patterns and address menus may be stored in correspondence with user G codes.

[発明の効果コ 以上のようにこの発明によれば、ユーザが使用できるG
コードの機能であるアドレスメニュー及びグラフィック
パターンを格納するユーザ表示データテーブルを有し、
そのアドレスメニュー及びグラフィックパターンの領域
をデータポインタで設定してユーザ表示データテーブル
から呼び出して表示するようにしたので、ユーザ独自の
Gコ 4 ドに対応するアドレスメニュー及びグラフィックパター
ンが表示でき、ユーザ独自の加ニブログラムを編集でき
るという効果が得られている。
[Effects of the Invention] As described above, according to this invention, the user can use
It has a user display data table that stores address menus and graphic patterns that are functions of the code;
The area for the address menu and graphic pattern is set using a data pointer and then called from the user display data table and displayed. Therefore, the address menu and graphic pattern corresponding to the user's own G code can be displayed. The effect is that the Canadian program can be edited.

【図面の簡単な説明】 第1図はこの発明の一実施例を示す数値制御装置の概略
構成図、第2図(a)はユーザGコード表を説明する図
、第2図(b)はユーザ表示データテブルに格納するア
ドレスメニューを説明する図、第2図(C)はグラフィ
ックパターン表示を説明する図、第3図(a)はマクロ
−覧表を説明する図、第3図(b)はユーザ表示データ
テーブル(13)のブタ領域を説明する図、第4図はユ
ーザGコードに対するパラメータを入力するフローチャ
ート、第5図(a)及び(b)は本発明の詳細な説明す
るフローチャート、第6図は本発明の処理動作によりC
RTに表示される映像を説明する図、第7図は従来の数
値制御装置の概略構成図、第8図はGコドの機能を説明
する図、第9図(a)はM300標準フォーマットの機
種のアドレスメニューを説明する図、第9図(b)はM
2 /MOフォーマットの機種のアドレスメニューを説
明する図、第10図はグラフィックパターンを説明する
図、第11図(a)はGOIコードによるCRTの表示
を説明する図、第11図(b)はG111コードによる
CRTの表示を説明する図である。 図において、(1)はキーボード、(2〉はCRT。 (3)は加ニブログラム記憶手段、(4)は加ニブログ
ラム編集手段、(4a)は有効Gコード表、(5〉は編
集バッファ、(6)は有効Gコード抽出手段、(7)は
有効Gコード、(8〉は表示データテーブルサーチ手段
、(9〉はNC表示データテーブル、(10)はグラフ
ィックパターン表示手段、(11)は表示データテーブ
ル選択手段、(lla)はユーザ631表、(12)は
データポインタ設定手段、(+3)はユーザ表示データ
テーブル、(15)は人力されたユザGコードの番号、
(1B)は入力されたプログラム番号、(17)はメニ
ュ一番号、 (18)はテキストブタの領域、(19)
はグラフィックデータの領域、(20)はアドレスメニ
ューの領域である。
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a schematic configuration diagram of a numerical control device showing an embodiment of the present invention, FIG. 2(a) is a diagram illustrating a user G code table, and FIG. Figure 2 (C) is a diagram explaining the address menu stored in the user display data table, Figure 2 (C) is a diagram explaining the graphic pattern display, Figure 3 (a) is a diagram explaining the macro list, Figure 3 (b) is is a diagram explaining the pig area of the user display data table (13), FIG. 4 is a flowchart for inputting parameters for the user G code, FIGS. 5(a) and (b) are flowcharts explaining the present invention in detail, FIG. 6 shows that C due to the processing operation of the present invention is
Figure 7 is a diagram explaining the image displayed on the RT, Figure 7 is a schematic diagram of a conventional numerical control device, Figure 8 is a diagram explaining the functions of the G-codo, and Figure 9 (a) is a model of the M300 standard format. Figure 9 (b) is a diagram explaining the address menu of M
2/MO format model's address menu, Figure 10 is a diagram to explain the graphic pattern, Figure 11 (a) is a diagram to explain CRT display by GOI code, Figure 11 (b) is a diagram to explain the CRT display by GOI code. FIG. 2 is a diagram illustrating display on a CRT using a G111 code. In the figure, (1) is the keyboard, (2> is the CRT, (3) is the Canadian program storage means, (4) is the Canadian program editing means, (4a) is the valid G code table, (5) is the editing buffer, ( 6) is valid G code extraction means, (7) is valid G code, (8> is display data table search means, (9> is NC display data table, (10) is graphic pattern display means, (11) is display Data table selection means, (lla) is the user 631 table, (12) is the data pointer setting means, (+3) is the user display data table, (15) is the manually entered user G code number,
(1B) is the input program number, (17) is the menu number 1, (18) is the text pig area, (19)
is a graphic data area, and (20) is an address menu area.

Claims (1)

【特許請求の範囲】[Claims] (1)キーボードを操作して入力されたGコードを表示
器に出力して表示すると共に、予め記憶されている有効
Gコード表から前記Gコードが有効なGコードかを判断
し、有効GコードであればそのGコードに該当する規格
化されたアドレスメニュー及びグラフィックパターンを
NC表示データテーブルから選択して前記表示器に表示
する数値制御装置において、 ユーザが用いるGコードが格納され、そのGコードに基
づいて基準の機能となるグラフィックパターン及びアド
レスメニューを格納したユーザ表示データテーブルと、 前記ユーザ表示データテーブルを選択するためのユーザ
Gコードをエリア毎に格納したユーザGコード格納手段
と、 前記有効Gコードから前記ユーザGコード格納手段に格
納されているユーザGコードかを判断し、前記有効Gコ
ードがユーザGコードであれば、前記ユーザGコードの
エリアを知らせる信号を出力する表示データテーブル選
択手段と、 前記表示データテーブル選択手段からの出力信号に基づ
いてデータポインタを設定するデータポインタ設定手段
と、 前記有効Gコード及びデータポインタに基づいて、前記
NC表示データテーブルの規格化されたアドレスメニュ
ー及びグラフィックパターンあるいは前記ユーザ表示デ
ータテーブルのアドレスメニュー及びグラフィックパタ
ーンを前記表示器に出力する表示データテーブルサーチ
手段と を備えたことを特徴とする数値制御装置。
(1) Output and display the G code input by operating the keyboard on the display, and determine whether the G code is a valid G code from a pre-stored valid G code table. If so, the G code used by the user is stored in the numerical control device that selects a standardized address menu and graphic pattern corresponding to that G code from the NC display data table and displays it on the display. a user display data table storing a graphic pattern and an address menu serving as a standard function based on the user display data table; a user G code storage means storing a user G code for each area for selecting the user display data table; Selecting a display data table for determining from the G code whether it is a user G code stored in the user G code storage means, and outputting a signal indicating the area of the user G code if the valid G code is the user G code. means for setting a data pointer based on an output signal from the display data table selection means; and a standardized address menu for the NC display data table based on the valid G code and data pointer. and display data table search means for outputting a graphic pattern or an address menu and a graphic pattern of the user display data table to the display.
JP32130189A 1989-12-13 1989-12-13 Numerical controller Pending JPH03182909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32130189A JPH03182909A (en) 1989-12-13 1989-12-13 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32130189A JPH03182909A (en) 1989-12-13 1989-12-13 Numerical controller

Publications (1)

Publication Number Publication Date
JPH03182909A true JPH03182909A (en) 1991-08-08

Family

ID=18131047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32130189A Pending JPH03182909A (en) 1989-12-13 1989-12-13 Numerical controller

Country Status (1)

Country Link
JP (1) JPH03182909A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0944221A (en) * 1995-08-02 1997-02-14 Tokunaga:Kk G-code processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0944221A (en) * 1995-08-02 1997-02-14 Tokunaga:Kk G-code processor

Similar Documents

Publication Publication Date Title
EP1560089A1 (en) Numerical control apparatus with integrated programmable controller with adaptation of displayed text to multiple languages and views
JPH03182909A (en) Numerical controller
JPH06149342A (en) Numerical controller
JP2000039909A (en) Numerical control information creating device
JP3193072B2 (en) Numerical control program editing device
JP3619539B2 (en) Tool path editing method
JPS6252608A (en) Interactive nc program generating method
JP2584229B2 (en) CAD / CAM automatic programming device
JPH04335402A (en) Pc symbol editing system
JPS59229613A (en) Numerical control device
JP2625411B2 (en) Graph display method
JPH0519817A (en) System for editing sequence program
JPH0581400A (en) Document preparing device
JPH11212968A (en) Document processor and document processing method
JPH0581399A (en) Document preparing device
JP3000986B2 (en) Machining program creating device and machining program creating method
JP3000987B2 (en) Numerical control unit
JPS6249404A (en) Method and device for editing nc program
JPH01113855A (en) Format data setting system for print of document
JP3283055B2 (en) Program editing device
JPH05210409A (en) Numeric controller
JPH07295617A (en) Numerical controller with data arithmetic setting function
JPH05261645A (en) Numerical control data origination system
JPH06202906A (en) Nc program editing device
JPH07302107A (en) Numerical controller