JP2643540B2 - Natural language display method and apparatus for programs created in NC language - Google Patents

Natural language display method and apparatus for programs created in NC language

Info

Publication number
JP2643540B2
JP2643540B2 JP2150891A JP15089190A JP2643540B2 JP 2643540 B2 JP2643540 B2 JP 2643540B2 JP 2150891 A JP2150891 A JP 2150891A JP 15089190 A JP15089190 A JP 15089190A JP 2643540 B2 JP2643540 B2 JP 2643540B2
Authority
JP
Japan
Prior art keywords
language
character
natural language
display
program
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.)
Expired - Lifetime
Application number
JP2150891A
Other languages
Japanese (ja)
Other versions
JPH0443406A (en
Inventor
能成 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Daikin Industries Ltd
Original Assignee
Daikin Kogyo Co Ltd
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 Daikin Kogyo Co Ltd filed Critical Daikin Kogyo Co Ltd
Priority to JP2150891A priority Critical patent/JP2643540B2/en
Publication of JPH0443406A publication Critical patent/JPH0443406A/en
Application granted granted Critical
Publication of JP2643540B2 publication Critical patent/JP2643540B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> この発明はNC言語で作成されたプログラムを日本語等
の自然言語で表示するための方法およびその装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a method and an apparatus for displaying a program created in an NC language in a natural language such as Japanese.

<従来の技術、および発明が解決しようとする課題> 従来から数値制御装置(以下、NC装置と略称する)に
対して動作指令を与えるためにNC言語で作成した作業プ
ログラムが用いられている。
<Prior Art and Problems to be Solved by the Invention> Conventionally, a work program created in an NC language has been used to give an operation command to a numerical control device (hereinafter abbreviated as an NC device).

したがって、作業プログラムを作成し、または作成さ
れた作業プログラムを修正するためにはNC言語をよく知
っていなければならない。
Therefore, in order to create a working program or modify the created working program, one must be familiar with the NC language.

具体的には、例えば、 N100T060606↓ N101G53G00X25.000Z90.000↓ N102S600M07M03↓ N103G54G01G98W−20F250↓ N104G03W−20.000I0K10.000F180↓ N105G04U7↓ N106G01W−20.000F250↓ N107G01U15.000R5.000↓ N108M05M09↓ N109G53G00X50.000Z130.000↓ N110M30↓ の作業プログラムが作成されている場合には、修正等の
ためにプログラムを表示させることが必要になれば、上
記NC言語そのものによってプログラムを表示するしか方
法がなかった。
More specifically, for example, N100T060606 ↓ N101G53G00X25.000Z90.000 ↓ N102S600M07M03 ↓ N103G54G01G98W-20F250 ↓ N104G03W-20.000I0K10.000F180 ↓ N105G04U7 ↓ N106G01W-20.000F250 ↓ When the work program of ↓ has been created, if it is necessary to display the program for correction etc., the only way was to display the program in the NC language itself.

また、このように表示された作業プログラムを見てプ
ログラムの内容を理解するわけであり、NC言語をよく知
っていれば、Nで始まる数字がブロック番号を示し、ブ
ロック100が工具選択、101が早送り(機械座標で絶対値
指令)、102が主軸正転と切削剤吐出開始、103が切削送
り(ワーク座標で相対値指令)、104が左円弧(ワーク
座標で相対値指令)、105が停留、106が切削送り(ワー
ク座標で相対値指令)、107が切削送り(ワーク座標で
相対値指令)、108が主軸停止と切削剤吐出停止、109が
早送り(機械座標で絶対値指令)、110がプログラム終
了をそれぞれ示していることを理解できるのである。し
かし、NC言語を余りよく知らないオペレータは正確にプ
ログラムの内容を理解することができないので、デバッ
グ、修正を行なうことができないという不都合がある。
即ち、シンボリックNC等により、NC言語を余りよく知ら
なくても作業プログラムを作成できるようにしても、そ
の後のデバッグ、修正等に対処できない。
Also, you can understand the contents of the program by looking at the work program displayed in this way.If you are familiar with the NC language, the number starting with N indicates the block number, block 100 is tool selection, 101 is tool selection. Rapid traverse (absolute value command in machine coordinates), 102 starts spindle forward rotation and cutting agent discharge, 103 feeds cutting (relative value command in work coordinates), 104 left arc (relative value command in work coordinates), 105 stops , 106 is cutting feed (relative value command in work coordinates), 107 is cutting feed (relative value command in work coordinates), 108 is spindle stop and cutting agent discharge stop, 109 is fast feed (absolute value command in machine coordinates), 110 Indicates the end of the program respectively. However, an operator who does not know the NC language very well cannot understand the contents of the program accurately, so that there is a disadvantage that debugging and modification cannot be performed.
In other words, even if a work program can be created by a symbolic NC or the like without knowing the NC language very well, subsequent debugging and correction cannot be dealt with.

また、NC言語はFOTRAN等のプログラミング言語と異な
り、統一されたものではないため、メーカ、機械等が異
なればNC言語も異なる可能性があり、オペレータはこれ
ら種々のNC言語を知っていることが要求されるのみなら
ず、どのNC言語を使用すべきかを知っていることも要求
される。この結果、作業プログラムの作成、修正を行な
い得るオペレータが大巾に少なくなってしまい、また、
これらの要求を満足するオペレータを育成するために長
期間を必要とするという不都合がある。
Also, unlike programming languages such as FOTRAN, NC languages are not unified, so NC languages may be different for different manufacturers, machines, etc., and operators may be aware of these various NC languages. Not only is it required, but you also need to know which NC language to use. As a result, the number of operators who can create and modify work programs is greatly reduced.
There is an inconvenience that it takes a long time to train operators who satisfy these requirements.

<発明の目的> この発明は上記の問題点に鑑みてなされたものであ
り、NC言語に不慣れなオペレータにも判り易いようにプ
ログラムの内容を表示する新規な自然言語化表示方法お
よびその装置を提供することを目的としている。
<Object of the Invention> The present invention has been made in view of the above problems, and a novel natural language display method and apparatus for displaying the contents of a program so that an operator unfamiliar with the NC language can easily understand. It is intended to provide.

<課題を解決するための手段> 上記の目的を達成するための、第1の発明の自然言語
化表示方法は、NC言語と自然言語との対応を示すテーブ
ルを予め作成しておき、NC言語で作成されたプログラム
を1文字ずつ取り込み、英文字で始まり、次の英文字ま
たは改行マークの前までを1ワードとして複数のワード
に区分し、各区分毎にテーブルのNC言語と比較し、一致
したNC言語に対応する自然言語をテーブルから読み出し
て予め定められた所定箇所に表示する方法である。
<Means for Solving the Problems> In order to achieve the above object, a natural language display method according to a first aspect of the present invention is to prepare a table indicating a correspondence between an NC language and a natural language in advance, The program created in step 1 is read one character at a time, starts with an alphabetic character, and divides it into multiple words with one word up to the next alphabetic character or before the new line mark. In this method, a natural language corresponding to the NC language is read from a table and displayed at a predetermined location.

上記の目的を達成するための、第2の発明の自然言語
化表示装置は、NC言語と自然言語と表示フォーマットと
を予め対応付けて格納しておくテーブルと、NC言語で作
成されたプログラムを1文字ずつ取り込む取り込み手段
と、取り込んだ文字が英文字または改行マークか否かを
判別する文字判別手段と、英文字で始まり、次の英文字
または改行マークの前までを1ワードとして複数のワー
ドに区分する区分手段と、区分されたNC言語に基づいて
表示フォーマットを読み出す読み出し手段と、各区分毎
にテーブルのNC言語と比較し、一致したNC言語に対応す
る自然言語をテーブルから読み出す翻訳手段と、テーブ
ルから読み出した自然言語を受け取って、読み出された
表示フォーマットの該当箇所に表示する表示手段とを含
んでいる。
In order to achieve the above object, a natural language display device according to a second aspect of the present invention includes a table for storing an NC language, a natural language, and a display format in association with each other, and a program created in the NC language. A capturing means for capturing one character at a time, a character discriminating means for determining whether the captured character is an English character or a line feed mark, and a plurality of words starting with an English character and extending up to the next English character or a new line mark as one word. Classifying means, reading means for reading the display format based on the classified NC language, and translation means for comparing the NC language in the table for each category with a natural language corresponding to the matched NC language from the table And a display means for receiving the natural language read from the table and displaying the natural language at a corresponding position in the read display format.

<作用> 以上の自然言語化表示方法であれば、NC言語と自然言
語との対応を示すテーブルを予め作成しておく。そし
て、NC言語で作成されたプログラムを1文字ずつ取り込
んで、英文字で始まり、次の英文字または改行マークの
前までを1ワードとして複数のワードに区分する。この
状態において、各区分はテーブルのNC言語の何れかと一
致するのであるから、各区分毎にテーブルのNC言語と比
較し、一致したNC言語に対応する自然言語をテーブルか
ら読み出して予め定められた所定箇所に表示することに
より、NC言語で作成されたプログラムの全範囲を自然言
語で表示できる。この結果、NC言語を理解できないオペ
レータであってもプログラムの内容を正確に理解でき
る。また、メーカ、機械等によりNC言語が異なっていて
も、テーブルまたはテーブルの内容を変更するだけで簡
単に対処できる。
<Operation> In the case of the above natural language display method, a table indicating the correspondence between the NC language and the natural language is created in advance. Then, a program created in the NC language is fetched one character at a time, and is divided into a plurality of words, starting with an English character and ending up to the next English character or a line feed mark as one word. In this state, since each section matches any of the NC languages in the table, each section is compared with the NC language in the table, and a natural language corresponding to the matched NC language is read from the table and is predetermined. By displaying the program at a predetermined location, the entire range of the program created in the NC language can be displayed in the natural language. As a result, even an operator who cannot understand the NC language can correctly understand the contents of the program. Even if the NC language differs depending on the maker, machine, etc., it can be easily dealt with by simply changing the table or the contents of the table.

さらに、プログラムの区分の順番に自然言語で表示す
る場合と比較して著しく見易い自然言語化表示を達成で
きる。
Further, it is possible to achieve a natural language display which is remarkably easy to see as compared with the case where the display is performed in the natural language in the order of the program division.

第2の発明の自然言語化表示装置であれば、先ず、NC
言語と自然言語と表示フォーマットとを予め対応付けて
テーブルに格納しておく。この状態において、NC言語で
作成されたプログラムを取り込み手段により1文字ずつ
取り込み、取り込んだ文字が英文字または改行マークか
否かを文字判別手段により判別する。そして、この判別
結果に基づいて、区分手段により、英文字で始まり、次
の英文字または改行マークの前までを1ワードとして複
数のワードに区分し、読み出し手段により区分されたNC
言語に基づいて表示フォーマットを読み出し、各区分毎
に翻訳手段によりテーブルのNC言語と比較し、一致した
NC言語に対応する自然言語をテーブルから読み出し、テ
ーブルから読み出した自然言語を受け取って表示手段に
より、読み出された表示フォーマットの該当箇所に表示
する。この結果、NC言語を理解できないオペレータであ
ってもプログラムの内容を正確に理解できる。また、メ
ーカ、機械等によりNC言語が異なっていても、テーブル
またはテーブルの内容を変更するだけで簡単に対処でき
る。
In the natural language display device according to the second invention, first, NC
The language, the natural language, and the display format are stored in a table in association with each other in advance. In this state, the program created in the NC language is fetched one character at a time by the fetching means, and whether or not the fetched character is an English character or a line feed mark is determined by the character determining means. Then, based on the result of the determination, the dividing unit divides the word into a plurality of words starting with an alphabetic character and ending up to the next alphabetic character or a line feed mark as one word, and dividing the word into a plurality of words by the reading unit.
Reads the display format based on the language, compares it with the NC language of the table by the translation means for each section, and matches
The natural language corresponding to the NC language is read from the table, the natural language read from the table is received, and the display unit displays the natural language at a corresponding position in the read display format. As a result, even an operator who cannot understand the NC language can correctly understand the contents of the program. Even if the NC language differs depending on the maker, machine, etc., it can be easily dealt with by simply changing the table or the contents of the table.

さらに、プログラムの区分の順番に自然言語で表示す
る場合と比較して著しく見易い自然言語化表示を達成で
きる。
Further, it is possible to achieve a natural language display which is remarkably easy to see as compared with the case where the display is performed in the natural language in the order of the program division.

尚、これらの場合において、自然言語としては、日本
語、英語等種々の自然言語を採用できる。
In these cases, various natural languages such as Japanese and English can be adopted as the natural language.

<実施例> 以下、実施例を示す添付図面によって詳細に説明す
る。
<Example> Hereinafter, an example will be described in detail with reference to the accompanying drawings.

第8図はNC装置のフロント・パネルの一例を示す概略
図であり、図面選択、機能選択のためのメニュー、作成
された作業プログラム等を表示するCRT(1)と、テン
キー、カーソルキー、ファンクションキー、データ入力
キー等を含むキーボード部(2)と、動作量設定ハンド
ル、非常停止スイッチ、電源スイッチ等を含む操作部
(3)とを含んでいる。
FIG. 8 is a schematic diagram showing an example of a front panel of the NC unit, a CRT (1) for displaying a menu for selecting a drawing and a function, a created work program, etc., a numeric keypad, a cursor key, and a function. It includes a keyboard section (2) including keys, data input keys, and the like, and an operation section (3) including an operation amount setting handle, an emergency stop switch, a power switch, and the like.

第1図はこの発明の自然言語化表示装置の一実施例を
示すブロック図であり、NC言語と自然言語とを予め対応
付けて格納しておくテーブル(4)と、NC言語で作成さ
れたプログラムを1文字ずつ取り込む取り込み部(5)
と、取り込んだ文字が英文字、改行マーク、プログラム
終了マーク(以下、EOFと略称する)かこれら以外かを
判別する文字判別部(6)と、判別結果に基づいて、英
文字で始まり、次の英文字または改行マークの前までを
1ワードとして複数のワードに区分する区分部(7)
と、各区分毎にテーブル(4)のNC言語と比較し、一致
したNC言語に対応する自然言語をテーブル(4)から読
み出す翻訳部(8)と、テーブル(4)から読み出した
自然言語を受け取って表示のためにCRT(1)に供給す
る表示部(9)と、EOFが検出されるまで上記各部を反
復動作させる制御部(10)とを含んでいる。尚、(11)
はNC言語で作成されたプログラムを格納するプログラム
・メモリである。
FIG. 1 is a block diagram showing an embodiment of a natural language display device according to the present invention. The table (4) stores an NC language and a natural language in association with each other in advance, and a table created in the NC language. Capture unit that captures programs one character at a time (5)
And a character discriminating unit (6) for discriminating whether the fetched character is an English character, a line feed mark, a program end mark (hereinafter abbreviated as EOF) or any other character. Division unit that divides up to a word before the English character or new line mark into multiple words (7)
And a translation unit (8) that reads the natural language corresponding to the matched NC language from the table (4) by comparing with the NC language of the table (4) for each section, and a natural language read from the table (4). It includes a display unit (9) that receives and supplies it to the CRT (1) for display, and a control unit (10) that repeatedly operates the above units until EOF is detected. (11)
Is a program memory for storing programs created in the NC language.

第2図はテーブル(4)の内容を概略的に示す図であ
り、NC言語“G00"〜“G99"および“M03"〜“M30"のそれ
ぞれに対応付けて日本語表現を予め格納してある。した
がって、この実施例は、NC言語で作成されたプログラム
を自然言語の一種である日本語に翻訳して表示する場合
に対応する。
FIG. 2 is a diagram schematically showing the contents of a table (4), in which Japanese expressions are stored in advance in association with NC languages "G00" to "G99" and "M03" to "M30". is there. Therefore, this embodiment corresponds to a case where a program created in the NC language is translated and displayed in Japanese, which is a kind of natural language.

上記の構成の自然言語化表示装置の動作は次のとおり
である。
The operation of the natural language display device having the above configuration is as follows.

自然言語化表示が指示された場合には、NC言語で作成
され、かつプログラム・メモリ(11)に格納されたプロ
グラムを取り込み部(5)のより1文字ずつ取り込み、
取り込んだ文字が英文字、改行マーク、プログラム終了
マーク(以下、EOFと略称する)かこれら以外かを文字
判別部(6)により判別する。即ち、順次取り込まれる
文字の全てについて文字判別部(6)による判別が行な
われる。したがって、順次取り込まれる全ての文字につ
いての判別結果に基づいて、区分部(7)により、英文
字で始まり、次の英文字または改行マークの前までを1
ワードとして1行のプログラムを複数のワードに区分す
る。そして、区分された各ワードを翻訳部(8)に供給
することにより、テーブル(4)のNC言語と比較し、一
致したNC言語に対応する自然言語をテーブル(4)から
読み出す。したがって、テーブル(4)から読み出した
自然言語を表示部(9)を介してCRT(1)に供給する
ことにより、NC言語で作成されたプログラムのワードに
対応する日本語での表示を行なうことができる。尚、上
記一致判別に関しては、英文字の種別に応じてワード単
位の完全一致が要求され、または英文字のみの一致が要
求されるので、翻訳部(8)においてこれらの要求に対
処している。
When the natural language display is instructed, the program created in the NC language and stored in the program memory (11) is fetched character by character from the fetch unit (5).
The character determining unit (6) determines whether the fetched character is an English character, a line feed mark, a program end mark (hereinafter abbreviated as EOF), or any other character. That is, the determination by the character determination unit (6) is performed for all of the characters that are sequentially captured. Therefore, based on the determination results of all the characters sequentially taken in, the division unit (7) starts with an alphabetic character and extends one character before the next English character or a line feed mark.
The program of one line is divided into a plurality of words as words. Then, by supplying each segmented word to the translation unit (8), the word is compared with the NC language of the table (4), and a natural language corresponding to the matched NC language is read from the table (4). Therefore, by supplying the natural language read from the table (4) to the CRT (1) via the display unit (9), the display in Japanese corresponding to the words of the program created in the NC language can be performed. Can be. Regarding the match determination, since a complete match in word units is required according to the type of English character, or a match only in English character is required, the translation unit (8) deals with these requests. .

この場合において、取り込んだ文字が改行マークであ
ると判別されるまで以上の一連の処理を反復すべく制御
部(10)により反復動作が制御されるので、プログラム
を1行単位で日本語化して表示でき、また、取り込んだ
文字がEOFであると判別されるまで1行単位の日本語化
表示を反復すべく制御部(10)により反復動作が制御さ
れるので、プログラムの全体を日本語化して表示でき
る。
In this case, the repetitive operation is controlled by the control unit (10) to repeat the above series of processing until the captured character is determined to be a line feed mark. It can be displayed, and the repetition operation is controlled by the control unit (10) to repeat the display in Japanese one line at a time until the captured character is determined to be EOF. Can be displayed.

例えば、1行分のプログラムN108M05M09を読み出した
場合には、“N108"に基づいてプログラム・インストラ
クション番号が108であること、“M05"に基づいて主軸
停止であること、“M09"に基づいて切削剤吐出停止であ
ることがそれぞれ翻訳の結果に基づいて判る。この結
果、1行分のプログラムN108M05M09に対応して「(プロ
グラム・ブロック番号)108、主軸停止、切削剤吐出停
止」の日本語表示を達成できる。
For example, when the program N108M05M09 for one line is read, the program instruction number is 108 based on “N108”, the spindle is stopped based on “M05”, and the cutting is performed based on “M09”. The fact that the ejection of the agent is stopped can be determined based on the result of the translation. As a result, Japanese language display of "(program block number) 108, spindle stop, cutting agent discharge stop" can be achieved corresponding to one line of program N108M05M09.

<実施例2> 第3図はこの発明の自然言語化表示方法の一実施例を
示すフローチャートであり、自然言語化表示が指示され
た場合に、ステップにおいてプログラム・メモリ(1
1)から該当するプログラムの1文字を取り込み、ステ
ップにおいて、取り込んだ文字が英文字か、改行
マークか、EOFかを順次判別する。そして、取り込んだ
文字が英文字、改行マーク、EOFの何れでもないと判別
された場合には、再びステップの処理を行なう。ま
た、ステップにおいて英文字であると判別された場合
には、ステップにおいて第1番目の英文字か否かを判
別し、第1番目の英文字であると判別された場合には、
ステップにおいて、この英文字をワードの始めの文字
として指定し、再びステップの処理を行なう。逆に、
第1番目でないと判別された場合には、ステップにお
いて、この英文字を次のワードの始めの文字として指定
するとともに、この英文字の前の文字をワードの終りの
文字として指定し、ステップにおいて、得られたワー
ドと等しいNC言語をテーブル(4)からサーチし、ステ
ップにおいて、サーチしたNC言語に対応付けられた日
本語をテーブル(4)から読み出して表示し、再びステ
ップの処理を行なう。上記ステップにおいて改行マ
ークであると判別された場合には、ステップにおい
て、改行マークの前の文字をワードの終りの文字として
指定し、ステップにおいて、得られたワードと等しい
NC言語をテーブル(4)からサーチし、ステップにお
いて、サーチしたNC言語に対応付けられた日本語をテー
ブル(4)から読み出して表示し、ステップにおいて
表示行を改行するとともに、取り込み文字の順番をリセ
ットし、再びステップの処理を行なう。さらに、上記
ステップにおいてEOFであると判定された場合には、
ステップにおいて、EOFの前の文字をワードの終りの
文字として指定し、ステップにおいて、得られたワー
ドと等しいNC言語をテーブル(4)からサーチし、ステ
ップにおいて、サーチしたNC言語に対応付けられた日
本語をテーブル(4)から読み出して表示し、ステップ
において取り込み文字の順番をリセットし、そのまま
一連の処理を終了する。
<Embodiment 2> FIG. 3 is a flowchart showing an embodiment of a natural language display method according to the present invention. When a natural language display is instructed, a program memory (1
One character of the corresponding program is fetched from 1), and in a step, it is sequentially determined whether the fetched character is an English character, a line feed mark, or EOF. If it is determined that the fetched character is not an English character, a line feed mark, or EOF, the step processing is performed again. If it is determined in the step that the character is an English character, it is determined whether or not the character is the first English character in the step. If it is determined that the character is the first English character,
In the step, this English character is designated as the first character of the word, and the process of the step is performed again. vice versa,
If it is determined that the character is not the first character, in this step, this English character is designated as the first character of the next word, and the character before this English character is designated as the last character of the word. Then, an NC language equivalent to the obtained word is searched from the table (4), and in a step, Japanese language associated with the searched NC language is read out from the table (4) and displayed, and the process of the step is performed again. If it is determined in the above step that the character is a line feed mark, in the step, the character before the line feed mark is designated as the end character of the word, and in the step, it is equal to the obtained word.
The NC language is searched from the table (4). In the step, Japanese language corresponding to the searched NC language is read out from the table (4) and displayed. Reset, and the process of the step is performed again. Furthermore, if it is determined in the above steps that EOF,
In the step, the character before the EOF is specified as the last character of the word, and in the step, the NC language equivalent to the obtained word is searched from the table (4), and in the step, the NC language is associated with the searched NC language. Japanese is read out from the table (4) and displayed, and the order of the fetched characters is reset in a step, and the series of processing is ended as it is.

したがって、この実施例の場合にも、NC言語で作成さ
れたプログラムを1文字ずつ取り込み、英文字を境界と
して複数のワードに区画してテーブルをサーチするので
あるから、上記実施例と同様にNC言語で作成されたプロ
グラムを日本語で表示できる。
Therefore, also in this embodiment, the program created in the NC language is fetched one character at a time, and the table is searched by dividing the table into a plurality of words with English characters as boundaries. Programs written in a language can be displayed in Japanese.

<実施例3> 第4図はこの発明の自然言語化表示装置の他の実施例
を示すブロック図であり、第1図の実施例と異なる点
は、テーブル(4)に代えて、特定のNC言語に対応付け
て日本語化表示フォーマット・データを予め格納したテ
ーブル(4´)を用いる点、テーブル(4´)から日本
語化表示フォーマット・データを読み出す読み出し部
(12)を設けた点、表示部(9)に代えて、テーブル
(4´)から読み出した自然言語を受け取って、読み出
し部(12)により読み出された日本語化表示フォーマッ
ト・データの該当箇所に当てはめた状態で表示のために
CRT(1)に供給する表示部(9´)を用いる点のみで
ある。
<Embodiment 3> Fig. 4 is a block diagram showing another embodiment of the natural language display device of the present invention. The difference from the embodiment of Fig. 1 is that a specific language is used instead of the table (4). The use of a table (4 ') in which Japanese display format data is stored in advance in association with the NC language, and the provision of a reading unit (12) for reading the Japanese display format data from the table (4') , Instead of the display unit (9), receives the natural language read from the table (4 ′), and displays it in a state where it is applied to the corresponding portion of the Japanese display format data read by the reading unit (12). for
The only difference is that the display unit (9 ') for supplying to the CRT (1) is used.

したがって、この実施例の場合には、“G00"〜“G9
9"、“M03"〜“30"のような特定のNC言語が含まれてい
るプログラム・ステップに対応してテーブル(4´)に
日本語化表示フォーマット・データを読み出し、表示部
(9´)により、各ワードに対応する日本語を日本語化
表示フォーマットの該当箇所に当てはめるのであるか
ら、著しく見易い日本語化表示を達成できる。
Therefore, in the case of this embodiment, "G00" to "G9
9 ”, and reads out the Japanese display format data into the table (4 ′) corresponding to the program step including a specific NC language such as“ M03 ”to“ 30 ”, ), The Japanese corresponding to each word is applied to the corresponding portion of the Japanese display format, so that the Japanese display that is extremely easy to read can be achieved.

<具体例> 例えば、別表1に示す作業プログラムの日本語化表示
は別表2に示す通りなり、予め定められた箇所に該当す
る日本語が表示されるので、著しく見易い日本語化表示
を達成できる。第5図(A)はプログラムのNC言語順の
日本語化を概略的に説明する図であり、「早送り」、
「切削送り」、「右円弧切削」、「左円弧切削」、停
留」、「原点復帰」をそれぞれ示している。そして、同
図(B)はプログラムのワードを翻訳して得られた日本
語を表示すべく割り当てられた位置を示している。
<Specific Example> For example, the Japanese language display of the work program shown in the separate table 1 is as shown in the separate table 2, and the Japanese language corresponding to the predetermined location is displayed, so that the Japanese language display that is extremely easy to read can be achieved. . FIG. 5 (A) is a diagram schematically illustrating the conversion of a program into NC languages in the order of NC language.
“Cut feed”, “Right arc cutting”, “Left arc cutting”, Stop, and “Return to origin” are shown, respectively. FIG. 4B shows positions assigned to display Japanese obtained by translating the words of the program.

これらの図から明らかなように、日本語化する場合の
ワード位置を〜に区分しておけば、翻訳された日本
語を表示する位置〜のそれぞれに対して、に対し
てはの日本語を、位置に対してはの日本語および
数値のうちの数値を、位置に対してはの日本語およ
び数値を、位置に対してはの日本語および数値のう
ちの数値を、位置に対してはの日本語および数値の
うちの日本語および数値を、位置に対してはの日本
語を、位置に対してはの日本語および数値のうちの
日本語を、それぞれ割り当てて表示することにより、上
記のとおりの日本語化表示を達成できる。
As is clear from these figures, if the word position in the case of Japaneseization is divided into ~, the Japanese position of the translated Japanese is displayed for each ~ position. , Japanese and numeric values for position, Japanese and numeric values for position, Japanese and numeric values for position, numeric values for position By assigning and displaying the Japanese and the numerical values of the Japanese and the numerical values, the Japanese language of the position, and the Japanese of the numerical values for the position, respectively, Japanese language display can be achieved as follows.

<実施例4> 第6図はこの発明の自然言語化表示方法の他の実施例
を示すフローチャートであり、第3図の実施例と異なる
点は、ステップの処理ステップに代えて、ステッ
プにおいて、サーチしたNC言語に対応付けられた日本
語をテーブル(4´)から読み出し、ステップにおい
て上記NC言語に対応付けられた日本語化表示フォーマッ
ト・データをテーブル(4´)から読み出し、ステップ
において、テーブル(4´)から読み出された日本語
を日本語化表示フォーマットの該当箇所に当てはめて表
示する処理ステップを採用した点のみである。
<Embodiment 4> FIG. 6 is a flowchart showing another embodiment of the natural language display method according to the present invention. The difference from the embodiment of FIG. The Japanese language associated with the searched NC language is read from the table (4 '), and in step Japanese language display format data associated with the NC language is read from the table (4'). The only difference is that a processing step of applying the Japanese read from (4 ′) to the relevant portion of the Japanese display format and displaying the Japanese is adopted.

したがって、この実施例の場合にも、予め定められた
箇所に該当する日本語が表示されるので、著しく見易い
日本語化表示を達成できる。
Therefore, also in the case of this embodiment, the Japanese language corresponding to the predetermined portion is displayed, so that a remarkably easy-to-read Japanese language display can be achieved.

<実施例5> 第7図はこの発明の自然言語化表示方法のさらに他の
実施例を示すフローチャートである。
<Embodiment 5> FIG. 7 is a flowchart showing still another embodiment of the natural language display method according to the present invention.

同図(A)に示すように、ステップにおいてワード
の取り出しを行ない、ステップにおいて、取り出した
ワードの日本語への翻訳を行ない、ステップにおいて
1ワード分の日本語の表示を行ない、ステップにおい
て、次の処理を行なうためにバッファの内容を取り出
し、ステップにおいてEOFか否かを判別し、EOFでなけ
れば再びステップの処理を行なうが、EOFであれば、
そのまま一連の処理を終了する。
As shown in FIG. 3A, a word is extracted in a step, the extracted word is translated into Japanese in a step, one word of Japanese is displayed in a step, and a next word is displayed in a step. The contents of the buffer are taken out in order to perform the processing of, and it is determined whether or not it is EOF in the step, and if it is not EOF, the processing of the step is performed again.
The series of processing ends as it is.

同図(B)はステップの処理を詳細に説明するフロ
ーチャートであり、ステップにおいてプログラムを1
文字分読み出し、ステップにおいてバッファに格納
し、ステップにおいてそれぞれEOFであるか、改行
コードであるかを判別し、何れでもないと判別された場
合には、ステップにおいてプログラムを1文字分読み
出し、ステップにおいてそれぞれEOFであるか、
改行コードであるか、英文字であるかを判別し、何れで
もないと判別された場合には、ステップにおいてバッ
ファに格納し、再びステップの処理を行なう。逆に、
ステップにおいてEOF、改行コード、または英文
字の何れかであると判別された場合には、ステップに
おいて、最新に読み出した1文字分をプログラム・メモ
リに戻し、一連の処理を終了する。また、ステップ
においてEOF、または改行コードであると判別された場
合にも、そのまま一連の処理を終了する。
FIG. 4B is a flowchart for explaining the processing of the steps in detail.
Characters are read out, stored in a buffer in a step, and it is determined whether each is EOF or a line feed code in the step. If it is determined that neither is the case, the program is read out by one character in the step, and Whether each is EOF,
It is determined whether it is a line feed code or an English character, and if it is determined that it is neither, it is stored in a buffer in a step, and the processing of the step is performed again. vice versa,
If it is determined in the step that the character is any one of EOF, a line feed code, and an English character, in the step, the most recently read one character is returned to the program memory, and a series of processes is ended. Also, in the case where it is determined in the step that it is the EOF or the line feed code, the series of processing ends as it is.

同図(C)はステップの処理を詳細に説明するフロ
ーチャートであり、ステップにおいてバッファの内容
を取り出し、ステップにおいてそれぞれEOFである
か、改行コードであるかを判別し、何れでもないと判別
された場合には、ステップにおいてバッファから取り
出した内容とテーブル(4)の内容と比較し、一致した
場合には、ステップにおいてバッファの内容をテーブ
ルの該当する日本語と入れ代え、そのまま一連の処理を
終了する。また、ステップにおいてEOF、または改
行コードであると判別された場合、またはステップに
おいて一致しなかった場合にも、そのまま一連の処理を
終了する。
FIG. 11C is a flowchart for explaining the processing of the step in detail. In the step, the contents of the buffer are taken out, and in the step, it is determined whether it is EOF or a line feed code. In this case, the contents retrieved from the buffer in the step are compared with the contents of the table (4). If the contents match, the contents of the buffer are replaced with the corresponding Japanese characters in the table in the step, and a series of processing is completed as it is. I do. Also, if it is determined in step that the code is EOF or a line feed code, or if they do not match in step, the series of processing ends.

同図(D)はステップの処理を詳細に説明するフロ
ーチャートであり、ステップにおいてバッファの内容
を取り出し、ステップにおいてそれぞれEOFか、改
行コードかを判別する。そして、何れでもないと判別さ
れた場合には、ステップにおいてバッファの内容に基
づく表示を行なって一連の処理を終了する。また、改行
コードであると判別された場合には、ステップにおい
て表示を次の行に移して一連の処理を終了する。さら
に、EOFであると判別された場合には、そのまま一連の
処理を終了する。
FIG. 11D is a flowchart for explaining the processing of the step in detail. In the step, the contents of the buffer are extracted, and in the step, it is determined whether the buffer is EOF or a line feed code. If it is determined that none of them is present, a display based on the contents of the buffer is performed in a step, and a series of processing ends. If it is determined that it is a line feed code, the display is shifted to the next line in a step, and a series of processing is ended. Further, when it is determined that the EOF has occurred, the series of processing ends.

したがって、この実施例の場合には、英文字、改行コ
ードまたはEOFを基準としてプログラムを1ワードずつ
取り出し、1ワードずつ日本語に翻訳して表示するので
あるから、必要回数(EOFが検出されるまで)だけ一連
の処理を反復することにより、NC言語で作成されたプロ
グラムを日本語化して表示することができる。
Therefore, in the case of this embodiment, the program is taken out one word at a time on the basis of English characters, line feed codes or EOF, and is translated into Japanese one word at a time. By repeating only a series of processes, the program created in NC language can be displayed in Japanese.

尚、この発明は上記の実施例に限定されるものではな
く、例えば、日本語化表示する代わりに英語、フランス
語、スペイン語等任意の自然言語に翻訳して表示するこ
とが可能であるほか、第5図と異なる任意のフォーマッ
トで自然言語を表示することが可能であり、その他、こ
の発明の要旨を変更しない範囲内において種々の設計変
更を施すことが可能である。
The present invention is not limited to the above-described embodiment. For example, instead of displaying in Japanese, it is possible to display by translating into any natural language such as English, French, Spanish, etc. Natural language can be displayed in an arbitrary format different from that shown in FIG. 5, and various other design changes can be made without changing the gist of the present invention.

<発明の効果> 以上のように第1の発明は、NC言語で作成されたプロ
グラムを1ワードずつに区分し、各ワードを自然言語に
翻訳して表示するのであるから、NC言語を理解できない
オペレータであってもプログラムの内容を正確に理解で
き、しかも、メーカ、機械等によりNC言語が異なってい
ても、テーブルまたはテーブルの内容を変更するだけで
簡単に対処でき、さらに、プログラムの区分の順番に自
然言語で表示する場合と比較して著しく見易い自然言語
化表示を達成できるという特有の効果を奏する。
<Effects of the Invention> As described above, the first invention divides a program created in the NC language into one word at a time and translates each word into a natural language and displays it. Therefore, the NC language cannot be understood. Even an operator can understand the contents of the program accurately, and even if the NC language differs depending on the maker, machine, etc., it can be easily dealt with simply by changing the table or the contents of the table. A unique effect is achieved in that natural language display can be achieved which is remarkably easy to see as compared with the case of sequentially displaying in natural language.

第2の発明は、NC言語で作成されたプログラムを1ワ
ードずつに区分し、各ワードを自然言語に翻訳して表示
するのであるから、NC言語を理解できないオペレータで
あってもプログラムの内容を正確に理解でき、しかも、
メーカ、機械等によりNC言語が異なっていても、テーブ
ルまたはテーブルの内容を変更するだけで簡単に対処で
き、さらに、プログラムの区分の順番に自然言語で表示
する場合と比較して著しく見易い自然言語化表示を達成
できるという特有の効果を奏する。
In the second invention, a program created in the NC language is divided into words, and each word is translated into a natural language and displayed. Therefore, even if an operator cannot understand the NC language, the contents of the program can be read. Can understand correctly, and
Even if the NC language differs depending on the maker, machine, etc., it can be easily dealt with only by changing the table or the contents of the table, and the natural language which is remarkably easy to read compared to the case of displaying in the natural language in the order of program division This has a specific effect of achieving coded display.

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

第1図はこの発明の自然言語化表示装置の一実施例を示
すブロック図、 第2図はテーブルの内容を概略的に示す図、 第3図はこの発明の自然言語化表示方法の一実施例を示
すフローチャート、 第4図はこの発明の自然言語化表示装置の他の実施例を
示すブロック図、 第5図(A)はプログラムのNC言語順の日本語化を概略
的に説明する図、 第5図(B)はプログラムのワードを翻訳して得られた
日本語を表示すべく割り当てられた位置を示す図、 第6図はこの発明の自然言語化表示方法の他の実施例を
示すフローチャート、 第7図はこの発明の自然言語化表示方法のさらに他の実
施例を示すフローチャート、 第8図はNC装置のフロント・パネルの一例を示す概略
図。 (1)……CRT、(4)(4´)……テーブル、 (5)……取り込み部、(6)……文字判別部、 (7)……区分部、(8)……翻訳部、 (9)(9´)……表示部、(12)……読み出し部
FIG. 1 is a block diagram showing an embodiment of a natural language display device of the present invention, FIG. 2 is a diagram schematically showing the contents of a table, and FIG. 3 is an embodiment of a natural language display method of the present invention. FIG. 4 is a block diagram showing another embodiment of the natural language display device of the present invention, and FIG. 5 (A) is a diagram schematically illustrating the Japanese language conversion of a program in the NC language order. FIG. 5 (B) is a diagram showing positions assigned to display Japanese obtained by translating program words, and FIG. 6 is a diagram showing another embodiment of the natural language display method of the present invention. FIG. 7 is a flowchart showing still another embodiment of the natural language display method of the present invention, and FIG. 8 is a schematic diagram showing an example of a front panel of the NC device. (1) CRT, (4) (4 ') table, (5) capture unit, (6) character discriminator, (7) classifier, (8) translator , (9) (9 ') ... display unit, (12) ... readout unit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】NC言語と自然言語との対応を示すテーブル
(4)(4´)を予め作成しておき、NC言語で作成され
たプログラムを1文字ずつ取り込み、英文字で始まり、
次の英文字または改行マークの前までを1ワードとして
複数のワードに区分し、各区分毎にテーブルのNC言語と
比較し、一致したNC言語に対応する自然言語をテーブル
から読み出して予め定められた所定箇所に表示すること
を特徴とするNC言語で作成されたプログラムの自然言語
化表示方法。
1. A table (4) (4 ') showing correspondence between an NC language and a natural language is created in advance, and a program created in the NC language is taken in one character at a time, starting with English characters,
The word up to the next alphabetic character or line feed mark is divided into multiple words as one word, and each segment is compared with the NC language in the table, and the natural language corresponding to the matched NC language is read from the table and determined in advance. A natural language display method of a program created in the NC language, which is displayed at a predetermined location.
【請求項2】NC言語と自然言語と表示フォーマットとを
予め対応付けて格納しておくテーブルと、NC言語で作成
されたプログラムを1文字ずつ取り込む取り込み手段
と、取り込んだ文字が英文字または改行マークか否かを
判別する文字判別手段と、英文字で始まり、次の英文字
または改行マークの前までを1ワードとして複数のワー
ドに区分する区分手段と、区分されたNC言語に基づいて
表示フォーマットを読み出す読み出し手段と、各区分毎
にテーブルのNC言語と比較し、一致したNC言語に対応す
る自然言語をテーブルから読み出す翻訳手段と、テーブ
ルから読み出した自然言語を受け取って、読み出された
表示フォーマットの該当箇所に表示する表示手段とを含
むことを特徴とするNC言語で作成されたプログラムの自
然言語化表示方法。
2. A table in which an NC language, a natural language, and a display format are stored in association with each other in advance, a fetching means for fetching a program created in the NC language one character at a time, and the fetched characters are English characters or line feeds. Character discriminating means for discriminating whether or not a mark, segmenting means that starts with an alphabetic character, and divides up to the next alphabetic character or a line feed mark as one word into a plurality of words, and displays based on the NC language segmented Reading means for reading the format, translation means for comparing a natural language corresponding to the matched NC language from the table for each division with the NC language of the table, and receiving and reading the natural language read from the table A display method for displaying a program created in the NC language in a natural language, comprising: display means for displaying a display in a corresponding part of a display format.
JP2150891A 1990-06-08 1990-06-08 Natural language display method and apparatus for programs created in NC language Expired - Lifetime JP2643540B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2150891A JP2643540B2 (en) 1990-06-08 1990-06-08 Natural language display method and apparatus for programs created in NC language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2150891A JP2643540B2 (en) 1990-06-08 1990-06-08 Natural language display method and apparatus for programs created in NC language

Publications (2)

Publication Number Publication Date
JPH0443406A JPH0443406A (en) 1992-02-13
JP2643540B2 true JP2643540B2 (en) 1997-08-20

Family

ID=15506641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2150891A Expired - Lifetime JP2643540B2 (en) 1990-06-08 1990-06-08 Natural language display method and apparatus for programs created in NC language

Country Status (1)

Country Link
JP (1) JP2643540B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62183208U (en) * 1986-05-12 1987-11-20
JPS6312005A (en) * 1986-07-02 1988-01-19 Brother Ind Ltd Automatic programming device
JPH0176607U (en) * 1987-11-05 1989-05-24
JPH01296308A (en) * 1988-05-24 1989-11-29 Sony Magnescale Inc Nc device
JPH01178607U (en) * 1988-06-02 1989-12-21

Also Published As

Publication number Publication date
JPH0443406A (en) 1992-02-13

Similar Documents

Publication Publication Date Title
EP0689115B1 (en) Numerically controlled machine tool management system
EP1189123B1 (en) Automatic programming and simulation apparatus
JP2526692B2 (en) Programmable controller programming method
JP6351738B2 (en) Machine tool controller
EP1186976B1 (en) NC machining simulation apparatus
JP2643540B2 (en) Natural language display method and apparatus for programs created in NC language
US11372393B2 (en) Numerical control device
JPH06149342A (en) Numerical controller
US5299114A (en) Sequence program search method
JPH0366700B2 (en)
JPH0728801A (en) Image data processing method and device therefor
JPH1049211A (en) Method and device for displaying name of numerical control program for machining
JPH077839U (en) Numerical control device
JPS59229613A (en) Numerical control device
JP3823938B2 (en) Program creation device
JPH04131912A (en) Numerical controller
JPH052445A (en) Keyboard simulator
JPH04148370A (en) Document processor
JP3164680B2 (en) Screen display data change device
JPH06266487A (en) Information processor and help information presenting method
JPH0581261A (en) Document input device
JPS62256069A (en) Document processor
JPH056683B2 (en)
JPH081549B2 (en) Character processor
JPH09114824A (en) Document processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080424

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090424

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090424

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100424

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees