JPH0371209A - Abnormality detector for numerical control program - Google Patents

Abnormality detector for numerical control program

Info

Publication number
JPH0371209A
JPH0371209A JP20573189A JP20573189A JPH0371209A JP H0371209 A JPH0371209 A JP H0371209A JP 20573189 A JP20573189 A JP 20573189A JP 20573189 A JP20573189 A JP 20573189A JP H0371209 A JPH0371209 A JP H0371209A
Authority
JP
Japan
Prior art keywords
program
abnormality
display
syntax
word
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
JP20573189A
Other languages
Japanese (ja)
Inventor
Katsumi Mizuno
水野 克巳
Mitsutaka Sumita
住田 光隆
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 JP20573189A priority Critical patent/JPH0371209A/en
Publication of JPH0371209A publication Critical patent/JPH0371209A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To easily detect an abnormal position by sending a display command for a block or a word in an NC program in which abnormality is detected and the contents of the abnormality to a display means and moving a program input cursor to the abnormal position. CONSTITUTION:When the syntax abnormality of an NC program is detected by a syntax checking processing means 4, an abnormality display command means 6 sends the display command of the abnormal position and the abnormal contents of the NC program in which the abnormality is detected and a block or a word generating an error or a warning in the NC program displayed as the result of editor processing is displayed so as to be emphasized from others. The abnormal contents detected as the result of the syntax checking processing are also displayed. At that time, a cursor movement command means 7 sends a moving command for moving the program input cursor on a display means 5 to the abnormal position to move the program input cursor to the abnormal position. Consequently, an error or a warning in the NC program can be simply and quickly checked.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は数値制御装置に用いられる数値制御プログラ
ムのエラー、及び誤動作の原因となるエラーにならない
程度の文法ミスを検出する異常検出装置、特にその異常
個所、異常内容の確認に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an abnormality detection device for detecting errors in a numerical control program used in a numerical control device and grammatical errors to the extent that they do not cause errors that cause malfunctions. This is related to confirming the location of the abnormality and the details of the abnormality.

[従来の技術] 数値制御装置において作成された数値制御プログラム(
以下、NCプログラムという)の実行前に、NCプログ
ラムのエラー、及び誤動作の原因となるエラーにはなら
ない程度の文法ミス(以下、ワーニングという)を検出
して修正する二とが必要である。
[Prior art] A numerical control program created in a numerical control device (
Before executing an NC program (hereinafter referred to as an NC program), it is necessary to detect and correct errors in the NC program and grammatical errors (hereinafter referred to as warnings) that do not cause errors that cause malfunctions.

第5図は従来の、数値制御装置におけるNCプログラム
の異常検出装置を示すブロック図である。
FIG. 5 is a block diagram showing a conventional abnormality detection device for an NC program in a numerical control device.

図において、(1)は各種情報及びNCプログラム作成
のデータを入力するキーボード、(2)は入力されたデ
ータによりNCプログラム作成と修正を行なうエディタ
処理手段、(3〉はエディタ処理手段(2)で作成され
たNCプログラムを格納するNCプログラム格納メモリ
、(4)は作成されたNCプログラムのエラーやワーニ
ングを検出する構文チェック処理手段、(5〉は各種デ
ータを表示する例えばCRTからなる表示手段である。
In the figure, (1) is a keyboard for inputting various information and data for creating an NC program, (2) is an editor processing means for creating and modifying an NC program based on the input data, and (3> is an editor processing means (2)). (4) is a syntax checking processing means for detecting errors and warnings in the created NC program; (5) is a display means, such as a CRT, for displaying various data. It is.

次に上記のように構成された数値制御装置におけるNC
プログラムの異常検出装置の動作を第6図に示したフロ
ーチャートを参照して説明する。
Next, the NC in the numerical control device configured as above
The operation of the program abnormality detection device will be explained with reference to the flowchart shown in FIG.

まず、操作者はキーボード(1)を操作してエディタ処
理手段(2)の起動を行ない(ステ・ノブ561)、必
要なデータをキーボード(1)からエディタ処理手段(
2)に入力してエディタ処理手段(2)でNCプログラ
ムの作成及び修正を行ない、NCプログラムを編集する
(ステップ562)。作成されたNCプログラムはNG
Cプログラム格納メモリ3〉に送られて記憶されると同
時に、又はNCプログラムの記憶に引き続いて構文チェ
ック処理手段(4)が呼び出され(ステップ5B3)、
作成されたNCプログラムのワード、ブロックにエラー
やワーニングがあるか否かを構文チェック処理手段(4
)で判定する(ステップ564)。
First, the operator operates the keyboard (1) to start the editor processing means (2) (steer knob 561), and inputs the necessary data from the keyboard (1) to the editor processing means (2).
2), the editor processing means (2) creates and modifies the NC program, and edits the NC program (step 562). The created NC program is NG.
Simultaneously with being sent to the C program storage memory 3> and stored, or following the storage of the NC program, the syntax check processing means (4) is called (step 5B3),
A syntax check processing means (4) checks whether there are errors or warnings in the words or blocks of the created NC program.
) (step 564).

構文チェック処理手段(4)の判定の結果、NCプログ
ラムにエラーやワーニングがあると、その警告が表示手
段(5)に表示される(ステップS 85)。操作者は
表示手段(5)に警告が表示されると、再びエディタ処
理手段(2)を起動して、エラーやワーニングの個所を
捜してNCプログラムの修正を行なう(ステップSol
、  582)。
If there is an error or warning in the NC program as a result of the judgment by the syntax check processing means (4), the warning is displayed on the display means (5) (step S85). When the warning is displayed on the display means (5), the operator starts the editor processing means (2) again, searches for the error or warning, and corrects the NC program (step Sol).
, 582).

この操作を作成したNCプログラム内にエラーやワーニ
ングが無くなるまで繰り返して行い、エラーやワーニン
グが無いNCプログラムを完成させる。そして、この完
成したNCプログラムを用いて機械を駆動して加工運動
を行なう(ステップ866)。
This operation is repeated until there are no errors or warnings in the created NC program, and an NC program free of errors or warnings is completed. The completed NC program is then used to drive the machine to perform machining movements (step 866).

[発明が解決しようとする課題] 従来のNCプログラムの異常検出装置において、エディ
タ処理手段(2〉はNCプログラムの書込み、追加、削
除、修正などの編集のみを行ない、NCプログラムの確
認は構文チェック処理手段(4)により検出されるエラ
ーやワーニングにより表示手段(5)に表示される警告
を見て、操作者がエラーやワーニング個所を捜すことに
より行なっていた。
[Problems to be Solved by the Invention] In the conventional NC program abnormality detection device, the editor processing means (2) only performs editing such as writing, adding, deleting, and modifying the NC program, and confirms the NC program by checking the syntax. This is done by the operator looking for the error or warning location by looking at the warning displayed on the display means (5) in response to the error or warning detected by the processing means (4).

このように、NCプログラムの確認のときに、構文チェ
ック処理手段(4)からの警告だけでは、NCプログラ
ム内のエラーやワーニング個所の特定が困難であり、操
作者がエラーやワーニング個所を捜すために時間を要し
、NCプログラムの確認のために数値制御装置が長時間
占有されざるを得ないという問題点があった。
In this way, when checking an NC program, it is difficult to identify errors or warnings in the NC program with only warnings from the syntax check processing means (4), and it is difficult for the operator to search for errors or warnings. There was a problem in that the numerical control device had to be occupied for a long time to confirm the NC program.

このような問題点を解決するために、作成しているNC
プログラムを一時バツファメモリに格納してエラー等を
検出し、エラー等が発生している場合はその部分にエラ
ー等が有ることを表示手段に警告することにより、エラ
ー等の発生個所を早い時期に表示するNCプログラムの
異常検出装置が、例えば実開昭60−148807号公
報、実開昭63−114302号公報等に開示されてい
る。
In order to solve these problems, the NC we are creating
The program is temporarily stored in buffer memory, errors, etc. are detected, and if an error, etc. has occurred, the location where the error, etc. has occurred is displayed at an early stage by warning the display means that there is an error, etc. in that part. An abnormality detection device for an NC program is disclosed in, for example, Japanese Utility Model Application Publications No. 148807/1980 and No. 114302/1983.

しかしながら、これらの場合もエラー等が発見されたN
Cプログラムのブロックが表示されるだけであり、具体
的な異常個所は操作者が捜す必要があると共に、その異
常内容を操作者がマニュアル等を見て確認する必要があ
り、やはりNCプログラムの確認に時間を要するという
問題点があった。
However, even in these cases, N
Only the blocks of the C program are displayed, and the operator needs to search for the specific abnormality and check the details of the abnormality by looking at the manual etc. There was a problem in that it took time.

この発明は、かかる問題点を解決するためになされたも
のであり、NCプログラムのエラーやワニングを簡単に
かつ短時間で確認することができる数値制御装置におけ
るNCプログラムの異常検出装置を得ることを目的とす
るものである。
The present invention has been made to solve these problems, and aims to provide an abnormality detection device for an NC program in a numerical control device that can easily and quickly confirm errors and warnings in the NC program. This is the purpose.

[課題を解決するための手段] この発明に係る数値制御装置におけるNCプログラムの
異常検出装置は、エディタ処理手段で作成されたNCプ
ログラムの構文異常が構文チェック処理手段で発見され
たときに、異常表示指令手段により異常が発見されたN
Cプログラムのブロックもしくはワードと異常内容との
表示指令を表示手段に送り出すと共に、カーソル移動指
令手段により異常位置へプログラム入力カーソルを移動
させる移動指令を表示手段へ送り出すようにしたもので
ある。
[Means for Solving the Problems] An abnormality detection device for an NC program in a numerical control device according to the present invention detects an abnormality when a syntax abnormality in an NC program created by an editor processing means is discovered by a syntax check processing means. An abnormality was discovered by the display command means N.
A command to display a block or word of the C program and the content of the abnormality is sent to the display means, and a movement command for moving the program input cursor to the abnormal position is sent to the display means by the cursor movement command means.

[作用] この発明においては、構文チェック処理手段でNCプロ
グラムの構文異常が発見されたときに、異常表示指令手
段で異常が発見されたNCプログラムの異常位置と異常
内容の表示指令を送り出すことにより、エディタ処理の
結果表示されたNCプログラム内にエラー又はワーニン
グが発生したブロック又はワードを他と比べて強調した
表示態様で表示すると共に構文チェック処理の結果発見
された異常内容も表示する。
[Operation] In the present invention, when a syntax abnormality in the NC program is discovered by the syntax check processing means, the abnormality display command means sends out a command to display the abnormality position and abnormality content of the NC program in which the abnormality was discovered. , a block or word in which an error or warning has occurred in the NC program displayed as a result of editor processing is displayed in a display manner that is emphasized compared to others, and abnormal content found as a result of syntax check processing is also displayed.

また、このときカーソル移動指令手段が表示手段のプロ
グラム人力カーソルを異常位置へ移動させる移動指令を
送り出すことにより、プログラム人力カーソルを異常位
置へ移動させる。
Further, at this time, the cursor movement command means sends a movement command to move the programmed manual cursor of the display means to the abnormal position, thereby moving the programmed manual cursor to the abnormal position.

[実施例] 第1図はこの発明の一実施例の構成を示すブロック図で
ある。図において、(1)〜(5)は第5図に示した従
来例と全く同じものである。(6)は構文チェック処理
手段〈4〉で発見されたNCプログラムの構文異常位置
と異常内容の表示指令を送り出す異常表示指令手段、(
7)は構文チェック処理手段(4)でNCプログラムの
構文異常が発見されたときに表示手段(5〉に表示され
ているプログラム入力カーソルの移動指令を送り出すカ
ーソル移動指令手段である。
[Embodiment] FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, (1) to (5) are exactly the same as the conventional example shown in FIG. (6) is an abnormality display command means that sends out a command to display the syntax abnormality position and abnormality contents of the NC program discovered by the syntax check processing means <4>;
7) is a cursor movement command means that sends a movement command for the program input cursor displayed on the display means (5>) when a syntax abnormality in the NC program is discovered by the syntax check processing means (4).

(8)はNCプログラム格納メモリ(3)等を有する数
値制御装置の記憶手段である。(9)は構文チェック処
理手段(4)で構文チェック処理中にNCプログラムの
1ブロツク内にあった準備機能ワード(以下、Gコード
という)を−時記憶するGコードレジスタ、(to)は
構文チェック処理中にNCプログラムの1ブロツク内に
あったGコード以外のワードを一時記憶するアドレスレ
ジスタである。
(8) is a storage means of the numerical control device having an NC program storage memory (3) and the like. (9) is a G code register that stores the preparation function word (hereinafter referred to as G code) that was in one block of the NC program during the syntax check processing by the syntax check processing means (4), and (to) is a syntax check register. This is an address register that temporarily stores words other than the G code within one block of the NC program during check processing.

(11)はGコード毎に必要ワードが定義しである必要
ワード定義テーブル、(12)はJIS B6314の
3.1のコード及び機能の項目に示された文字の別の指
令がくるまで保持されるものの記号(以下、Gコードグ
ループという)をGコード毎に定義するGコードグルー
プ定義テーブル、(13)はGコード毎に同一ブロック
に同時に指令することができない他のGコードが定義し
である同時指令不可Gコード定義テーブル、(14)は
使用可能なアドレスキャラクタが定義しである使用キャ
ラクタ定義テーブル、(15)はワードデータの指令値
の限界が定義しであるワードデータ指令値限界定義テー
ブルである。
(11) is a necessary word definition table in which necessary words are defined for each G code, and (12) is a table that is held until another command for the characters shown in the code and function item of JIS B6314 3.1 is received. (13) is a G code group definition table that defines the symbols (hereinafter referred to as G code groups) for each G code. Simultaneous command not possible G code definition table, (14) is a character definition table that defines usable address characters, and (15) is a word data command value limit definition table that defines the limits of word data command values. It is.

(1B)は構文チェック処理手段(4)で構文チェック
を行なうNCプログラムの読み出し点を一時的に記憶し
ておくNCプログラム続出ポインタである。
(1B) is an NC program successive pointer that temporarily stores the reading point of the NC program whose syntax is checked by the syntax check processing means (4).

第2図はエディタ処理手段(2)で作成されたNCプロ
グラムを表示する表示手段(5)の表示画面(51)の
−例を示し、図において、(52)は構文チェック処理
手段(4)の呼び出しスタートをさせるための構文チェ
ックキー人力部、(53)はプログラム入力カーソルを
示す。
FIG. 2 shows an example of the display screen (51) of the display means (5) that displays the NC program created by the editor processing means (2), and in the figure, (52) is the syntax check processing means (4). A syntax check key is used to start the call. (53) indicates a program input cursor.

次に上記のように構成されたNCプログラムの異常検出
装置の動作を第3図及び第4図に示したフローチャート
を参照して説明する。
Next, the operation of the NC program abnormality detection device configured as described above will be explained with reference to the flowcharts shown in FIGS. 3 and 4.

操作者は第3図のフローチャートに示すように、キーボ
ード(1〉を操作してエディタ処理手段(2〉の起動を
行ない(ステップ531)  キーボード(1)から必
要なデータを入力しながらエディタ処理手段(2)でN
Cプログラムの作成と修正を行なう(ステップ532)
As shown in the flowchart of FIG. 3, the operator operates the keyboard (1) to start the editor processing means (2) (step 531), and starts the editor processing means (2) while inputting necessary data from the keyboard (1). N in (2)
Create and modify the C program (step 532)
.

次に、操作者は表示手段(5)の表示画面(51)に表
示されている構文チェックキー人カ部(52)に構文チ
ェック入力「*」をキー人力することにより(ステップ
A33)、エディタ処理手段(2)で作成したNCプロ
グラムの1ワ一ド分の先頭の読み出し点を各々セットし
てNCプログラム続出ポインタ(16)に記憶させて、
構文チェック処理手段(4)を呼び出し、構文チェック
処理手段(4)で作成されたNCプログラムの構文チェ
ック処理を行い(ステップ534)、NCプログラムに
エラーやワニングが有るか否かを判断する(ステップ5
35)この判断の結果、NCプログラムに構文異常があ
るとNCプログラムの修正処理に進む(ステップ836
)。
Next, the operator manually enters a syntax check input "*" into the syntax check key field (52) displayed on the display screen (51) of the display means (5) (step A33). The first readout point for one word of the NC program created by the processing means (2) is set and stored in the NC program successive pointer (16),
The syntax check processing means (4) is called, and the syntax check processing means (4) performs syntax check processing on the NC program created (step 534), and determines whether or not there are errors or warnings in the NC program (step 534). 5
35) As a result of this judgment, if there is a syntax abnormality in the NC program, the process proceeds to the NC program correction process (step 836).
).

以下、この構文チェック処理の動作を第4図のフローチ
ャートを用いて説明する。
The operation of this syntax checking process will be explained below using the flowchart shown in FIG.

構文チェック処理の開始により、まずGコードレジスタ
(9)とアドレスレジスタ(10)の初期化を行う(ス
テップS 41)。次にNCプログラム続出ポインタ(
16)から1ワ一ド分のNCプログラムを構文チェック
処理手段(4)に読み込む(ステップ542)。構文チ
ェック処理手段(4〉は読み込んだワードデータの構文
チェックを行い、検出可能なエラー及びワーニングを捜
す(ステップ543)。
Upon starting the syntax check process, first, the G code register (9) and address register (10) are initialized (step S41). Next, the NC program continuous pointer (
16), one word of the NC program is read into the syntax check processing means (4) (step 542). The syntax check processing means (4>) checks the syntax of the read word data and searches for detectable errors and warnings (step 543).

このワードデータのエラーは例えば次のチェック項目で
チェックされる。
Errors in this word data are checked using, for example, the following check items.

■ 使用アドレスキャラクタ定義テーブル(14)に存
在しないアドレスキャラクタが使用されているか否かを
チェックし、使用されていた場合は「仕様なしエラー」
とする。
■ Check whether an address character that does not exist in the used address character definition table (14) is used, and if it is used, a "no specification error" occurs.
shall be.

■ アドレスキャラクタに続く数式に、数式として判定
できない不正なキャラクタが存在した場合には「ワード
記述フォーマット違反エラー」とする。
■ If there is an invalid character that cannot be determined as a mathematical expression in the mathematical expression following the address character, a "word description format violation error" will occur.

■ アドレスキャラクタに続く数式を計算した結果、数
式に零の除算が存在していた場合には、「ワードの数式
データのゼロわりエラー」とする。
■ If the result of calculating the formula following the address character is that there is division by zero in the formula, it is treated as a "word formula data division by zero error."

■ アドレスキャラクタに続く数式を計算した結果がワ
ードデータ指令値限界定義テーブル(15)に定義しで
あるそのワードの指令値限界の数値を越えている場合に
は、「アドレス数値エラー」とする。
- If the result of calculating the formula following the address character exceeds the command value limit value for that word defined in the word data command value limit definition table (15), an "address numerical value error" is determined.

また、ワーニングとするチェック項目には、例えば次の
ものがある。アドレスレジスタ(10〉を見ることによ
り、同一ブロック内において同じアドレスキャラクタを
用いたワードが繰り返したかどうかを判定し、同じアド
レスキャラクタを用いたワードが繰り返していたときに
は片方のワードが無視されるから、これを防ぐために、
同一アドレスキャラクタを用いたワードの繰り返しワー
ニングとする。
In addition, check items for warnings include, for example, the following: By looking at the address register (10>), it is determined whether words using the same address character are repeated within the same block, and if words using the same address character are repeated, one of the words is ignored. To prevent this,
This is a warning for repeating words using the same address character.

これらのエラー及びワーニングを捜した結果、エラー又
はワーニングが発見されたときにはぐステップ544)
、構文チェック処理手段(4〉から異常表示指令手段(
6〉とカーソル移動指令手段(7〉に異常検出信号が送
られ、異常表示指令手段(6)からエディタ処理手段(
2〉に異常位置と異常内容の表示指令が送り出され、カ
ーソル移動指令手段〈7〉からプログラム人力カーソル
の移動指令が送り出される。この異常表示指令に基き、
例えば第2図の表示画面(51)に示すように、構文チ
ェックを行ったワード(54)を明暗反転表示に切り換
えて、エラー又はワーニング部分の表示を行い(ステッ
プ545)、同時に明暗反転表示を切り換えたワード 
(54)の下にエラー又はワーニングの警告メツセージ
(55)を表示する(ステップ846)。更に、カーソ
ルの移動指令によりNCプログラム続出ポインタ(1B
)が示す位置、すなわちワード(54)の先頭位置にプ
ログラム入力カーソル(53)を移動させて(ステップ
547)、構文チェック処理をエラー表示で終了する。
As a result of searching for these errors and warnings, if an error or warning is found, remove step 544)
, syntax check processing means (4>) to abnormality display command means (
6> and the cursor movement command means (7>), and the abnormality display command means (6) sends the error detection signal to the editor processing means (7).
A command to display the abnormal position and contents of the abnormality is sent to 2>, and a program manual cursor movement command is sent from cursor movement command means <7>. Based on this abnormality display directive,
For example, as shown in the display screen (51) in Figure 2, the syntax-checked word (54) is switched to a light/dark inverted display to display an error or warning part (step 545), and at the same time, the light/dark inverted display is displayed. switched word
An error or warning warning message (55) is displayed below (54) (step 846). Furthermore, the NC program successive pointer (1B
), that is, the beginning position of the word (54) (step 547), and the syntax check process is ended with an error display.

この状態で操作者は表示手段(5〉の表示画面を見て第
3図に示すようにNCプログラムの修正を行い(ステッ
プ53B)、再び構文チェック処理を実行させる(ステ
ップ534)。
In this state, the operator looks at the display screen of the display means (5), modifies the NC program as shown in FIG. 3 (step 53B), and executes the syntax check process again (step 534).

また、上記ワードデータの構文チェックを行った結果、
エラー又はワーニングが発見されないときには(ステッ
プ544)、構文チェックを行ったワードがG機能ワー
ドであるか否かを判定しくステップ848)、ワードが
G機能ワードである場合にはワードをGコードレジスタ
(9)に書き込み(ステップ549)、ワードがG機能
ワードでないときにはそのワードをアドレスレジスタ(
10)に書き込む(ステップ550)。そして、次のワ
ードの先頭をNCプログラム読出ポインタ(1B)にセ
ットしくステップ551)、1ブロック分のNCプログ
ラムの構文チェックが終了するまで(ステップ552)
、°そのブロックのワードの構文チェック処理を繰り返
す(ステップ842〜552)。
Also, as a result of checking the syntax of the word data above,
If no error or warning is found (step 544), it is determined whether the syntax-checked word is a G function word (step 848), and if the word is a G function word, the word is stored in the G code register (step 848). 9) (step 549), and if the word is not a G function word, write the word to the address register (step 549).
10) (step 550). Then, set the beginning of the next word in the NC program read pointer (1B) (Step 551) until the syntax check of the NC program for one block is completed (Step 552).
, ° repeat the syntax checking process for the words of that block (steps 842-552).

このようにして、1ブロック分の各ワードの構文チェッ
ク処理が終了した後(ステップ552)、1ブロツクデ
ータにおける検出可能なエラーを捜すことによりブロッ
クデータの構文チェック処理を行う(ステップ853)
After completing the syntax check process for each word of one block in this way (step 552), the syntax check process for the block data is performed by searching for detectable errors in the one block data (step 853).
.

1ブロツクデータの構文チェック処理に際しては、まず
1ブロック分のワードをGコードレジス夕(9〉とアド
レスレジスタ(10)より取り出す。そしてエラーを例
えば次のチェック項目で捜す。
When checking the syntax of one block of data, first the words of one block are taken out from the G code register (9>) and the address register (10).Then, errors are searched for using, for example, the following check items.

■ Gコードレジスタ(9)に格納されたGコード毎に
必要ワード定義テーブル(11)を参照してGコード指
令に必要なワードが不足しているかを判定し、その結果
必要なワードが不足しているときは、「必要ワードの不
足エラー」とする。
■ For each G code stored in the G code register (9), refer to the necessary word definition table (11) to determine whether there is a shortage of words required for the G code command, and as a result, there is a shortage of necessary words. If the error occurs, a "required word missing error" will occur.

■ Gコードレジスタ(9)とアドレスレジスタ(lO
)に合計いくつのワードが格納されているかを計算し、
その結果1ブロツク内に指令できるワード数を越えてい
るときには、「1ブロツク内に指令できるワード数オー
バエラー」とする。
■ G code register (9) and address register (lO
), calculate the total number of words stored in
As a result, if the number of words exceeds the number of words that can be commanded within one block, it is determined as a "number of words that can be commanded within one block error".

■ Gコードレジスタ(9)に格納されたGコード毎に
同時指令不可Gコード定義テーブル(13)を参照して
、他のGコードレジスタ(9)に同時指令不可Gコード
が存在するかを判定し、同時指令不可Gコードが存在し
ているときには、「同時指令不可G−ドの存在エラー」
とする。
■ For each G code stored in the G code register (9), refer to the G code definition table (13) that does not allow simultaneous commands and determine whether there is a G code that does not allow simultaneous commands in other G code registers (9). However, if a G-code that cannot be commanded simultaneously exists, a "G-code existence error that cannot be commanded simultaneously" will occur.
shall be.

また、1ブロツクデータのワーニングとするチェック項
目には例えば次のものがある。
In addition, check items that can be used as a warning for one block of data include, for example, the following.

■ Gコードレジスタ(9)に格納されたGコード毎に
必要ワード定義テーブル(11)を参照し、Gコード指
令に必要なワードをアドレスレジスタ(10)からチェ
ックしていく。その結果、どのGコードにおいても使用
されていないワードがあり、かつそのワードが例えばシ
ーケンス番号、送り機能、補助機能、主軸機能、工具機
能のいずれでもないときには、そのワードは無視される
ので「不要ワードの存在ワーニング」とする。
(2) Refer to the necessary word definition table (11) for each G code stored in the G code register (9), and check the words necessary for the G code command from the address register (10). As a result, if there is a word that is not used in any G-code and the word is not, for example, a sequence number, feed function, auxiliary function, spindle function, or tool function, that word is ignored and is marked as "unnecessary". Word Presence Warning”.

■ Gコードレジスタ(9)に格納されたGコード毎に
Gコードグループ定義テーブル(12〉を参照して、G
コードグループが同一であるGコードが他のGコードレ
ジスタ(9〉内に存在するときは、いずれかのGコード
が無視されるので、「準備機能の無視ワーニング」とす
る このようなエラーやワーニングを捜した結果、ブロック
データ内にエラーやワーニングが発見された場合は(ス
テップ554)、ワードの場合と同様に異常表示指令手
段(6)とカーソル移動指令手段(7〉から各々指令信
号を送り出して、構文チェックを行ったブロックを明暗
反転表示に切り換えて、エラー又はワーニング部分の表
示を行い(ステップ35B)、エラー又はワーニングの
警告メツセージを表示する(ステップ557)と共に、
NCプログラム読出ポインタ(16)が示す位置にプロ
グラム入力カーソル(53)を移動させて(ステップ8
58)、構文チェック処理をエラーで終了する。
■ For each G code stored in the G code register (9), refer to the G code group definition table (12>)
If a G code with the same code group exists in another G code register (9), one of the G codes will be ignored, so such errors and warnings will be treated as "preparation function ignore warnings". As a result of the search, if an error or warning is found in the block data (step 554), command signals are sent from the abnormality display command means (6) and the cursor movement command means (7>) as in the case of words. Then, the syntax-checked block is switched to a light/dark inverted display to display the error or warning part (step 35B), and a warning message for the error or warning is displayed (step 557).
Move the program input cursor (53) to the position indicated by the NC program read pointer (16) (step 8).
58), the syntax check process ends with an error.

この構文チェック処理がエラーで終了したときは、操作
者は表示画面からエラー等の発生位置と異常内容を判断
してNCプログラムの修正を行ない、再び第3図のステ
ップS34から構文チェック処理を行う。
If this syntax check process ends with an error, the operator determines the location and content of the error from the display screen, corrects the NC program, and repeats the syntax check process from step S34 in FIG. 3. .

この処理をNCプログラムの全てについて繰返し行い(
ステップ559)、構文チェック処理と異常が発見され
たNCプログラムの全ての修正が終ったら、そのNCプ
ログラムにより加工運転を行う(ステップ537)。
Repeat this process for all NC programs (
Step 559) When the syntax check process and all corrections of the NC program in which the abnormality has been found are completed, machining operation is performed using the NC program (Step 537).

なお、上記実施例ではエラー及びワーニング部分の表示
を明暗反転表示により示しているが、赤色反転文字、ア
ンダーライン付文字、背景色変更表示、又は通常とは異
なる表示色を用いて示してもよい。
In the above embodiments, errors and warnings are displayed using inverted brightness, but they may also be indicated using inverted red characters, underlined characters, a background color change display, or a display color different from normal. .

[発明の効果] この発明は以上説明したように、構文チェック処理手段
でNCプログラムの構文異常が発見されたときに、異常
表示指令手段で異常が発見されたNCプログラムの異常
位置と異常内容の表示指令を送り出すことにより、エデ
ィタ処理の結果表示されたNCプログラム内にエラーも
しくはワーニングが発生したブロックもしくはワードを
他と比べて強調した表示態様で表示すると共に、構文チ
ェック処理の結果発見された異常内容も表示するように
したので、作成したNCプログラムの確認のときに、異
常個所及び異常内容の情報を得ることができ、異常個所
の検出が容易であると共に、マニュアル等を参照するこ
となしにNCプログラムの修正を容易に行うことができ
る。
[Effects of the Invention] As explained above, according to the present invention, when a syntax abnormality in an NC program is discovered by the syntax check processing means, the abnormality display command means displays the abnormal position and content of the abnormality in the NC program where the abnormality was detected. By sending a display command, blocks or words in which errors or warnings have occurred in the NC program displayed as a result of editor processing are displayed in a display format that is emphasized compared to others, and abnormalities found as a result of syntax check processing are displayed. Since the contents are also displayed, when checking the created NC program, it is possible to obtain information on the abnormality location and abnormality content, making it easy to detect abnormality locations and without referring to manuals etc. NC programs can be easily modified.

また、このときカーソル移動指令手段が表示手段のプロ
グラム入力カーソルを異常位置へ移動させる移動指令を
送り出すことにより、プログラム人力カーソルを異常位
置へ移動させることができるから、ただちにNCプログ
ラムの修正を行なうことができ、NCプログラムの修正
時間が短縮されるから、稼動率向上を特に必要とする数
値制御装置におけるNCプログラム作成時の占有時間が
大幅に短縮され、数値制御装置の有効活用を図ることが
できる。
In addition, at this time, the cursor movement command means sends a movement command to move the program input cursor of the display means to the abnormal position, so that the program manual cursor can be moved to the abnormal position, so the NC program can be corrected immediately. This reduces the time required to modify NC programs, which greatly reduces the time occupied when creating NC programs for numerical control devices that particularly require improved operating rates, making it possible to make effective use of numerical control devices. .

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

第1図はこの発明の実施例の構成を示すブロック図、第
2図は上記実施例の表示手段の表示画面を示す表面図、
第3図、第4図は各々上記実施例の動作手順を示すフロ
ーチャート、第5図は従来例の構成を示すブロック図、
第6図は従来例の動作を示すフローチャートである。 (1)・・・キーボード、(2)・・・エディタ処理手
段、(3〉・・・NCプログラム格納メモリ、(4)・
・・構文チェック処理手段、〈5)・・・表示手段、(
6)・・・異常表示指令手段、(7)・・・カーソル移
動指令手段、(8)・・・記憶手段。 なお、図中同一符号は同−又は相当部分を示す。 第 第 5 図 第 図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a surface view showing the display screen of the display means of the above embodiment,
3 and 4 are flowcharts showing the operating procedure of the above embodiment, and FIG. 5 is a block diagram showing the configuration of the conventional example,
FIG. 6 is a flowchart showing the operation of the conventional example. (1)...Keyboard, (2)...Editor processing means, (3>...NC program storage memory, (4)...
... Syntax check processing means, <5) ... Display means, (
6)...Abnormality display command means, (7)...Cursor movement command means, (8)...Storage means. Note that the same reference numerals in the figures indicate the same or equivalent parts. Figure 5

Claims (1)

【特許請求の範囲】 数値制御プログラムを表示手段に表示させながらその作
成・修正を行なうエディタ処理手段と、該エディタ処理
手段で作成された数値制御プログラムの構文異常を確認
する構文チェック処理手段とを有する数値制御装置にお
いて、 上記構文チェック処理手段で構文異常が発見されたとき
に、数値制御プログラムの異常が発見されたブロック又
はワードと異常内容の表示指令を前記表示手段に送り出
す異常表示指令手段と、該異常表示指令手段で指令した
ブロック又はワードの異常個所の表示位置へプログラム
入力カーソルを移動させる移動指令を表示手段へ送り出
すカーソル移動指令手段と を備えたことを特徴とする数値制御プログラムの異常検
出装置。
[Scope of Claims] An editor processing means for creating and modifying a numerical control program while displaying it on a display means, and a syntax check processing means for checking syntax abnormalities in the numerical control program created by the editor processing means. In the numerical control device, when a syntax abnormality is detected by the syntax check processing means, an abnormality display command means sends a display command of the block or word in which the abnormality is found in the numerical control program and the contents of the abnormality to the display means. , cursor movement command means for sending a movement command to the display means to move the program input cursor to the display position of the abnormal part of the block or word commanded by the abnormality display command means. Detection device.
JP20573189A 1989-08-10 1989-08-10 Abnormality detector for numerical control program Pending JPH0371209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20573189A JPH0371209A (en) 1989-08-10 1989-08-10 Abnormality detector for numerical control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20573189A JPH0371209A (en) 1989-08-10 1989-08-10 Abnormality detector for numerical control program

Publications (1)

Publication Number Publication Date
JPH0371209A true JPH0371209A (en) 1991-03-27

Family

ID=16511737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20573189A Pending JPH0371209A (en) 1989-08-10 1989-08-10 Abnormality detector for numerical control program

Country Status (1)

Country Link
JP (1) JPH0371209A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05185175A (en) * 1992-01-16 1993-07-27 Reizu Eng:Kk Manufacture of wheel
JPH05200472A (en) * 1992-01-24 1993-08-10 Reizu Eng:Kk Manufacture of wheel
JPH0623461A (en) * 1992-05-07 1994-02-01 Udo Friese Transmission element and its production
JP2001014012A (en) * 1999-06-30 2001-01-19 Toshiba Mach Co Ltd Numerical controller
JP2017211872A (en) * 2016-05-26 2017-11-30 ファナック株式会社 Numerical controller equipped with program correction assist function for resolving alarm

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05185175A (en) * 1992-01-16 1993-07-27 Reizu Eng:Kk Manufacture of wheel
JPH05200472A (en) * 1992-01-24 1993-08-10 Reizu Eng:Kk Manufacture of wheel
JPH0623461A (en) * 1992-05-07 1994-02-01 Udo Friese Transmission element and its production
JP2001014012A (en) * 1999-06-30 2001-01-19 Toshiba Mach Co Ltd Numerical controller
JP2017211872A (en) * 2016-05-26 2017-11-30 ファナック株式会社 Numerical controller equipped with program correction assist function for resolving alarm
US10310488B2 (en) 2016-05-26 2019-06-04 Fanuc Corporation Numerical controller having program correction assistance function for alarm solution

Similar Documents

Publication Publication Date Title
US7515993B2 (en) Robot control apparatus
JPH0371209A (en) Abnormality detector for numerical control program
US5006977A (en) Figure element revising method
JPS62130405A (en) Nc data correction method
EP0476139B1 (en) Interactive automatic programming method
US5065332A (en) Figure element revising method
JPH03111909A (en) Method for checking numerical controller program
JPH05100730A (en) Programming device for motion controller
US5299114A (en) Sequence program search method
JPH077839U (en) Numerical control device
JP3182250B2 (en) Automatic repetition detection input device
JP2504551B2 (en) Error detection processing method for input data
JPS6227867A (en) Picture data correcting system
JP2518157B2 (en) Method and device for generating revision history of program
JPH052445A (en) Keyboard simulator
JPS59229613A (en) Numerical control device
JPH0317740A (en) Program editing support system
JP3416171B2 (en) Graph processing apparatus and method
EP0191382A2 (en) Display controller
JPH0298780A (en) Automatic cad/cam programming device
JPH0350672A (en) Interactive type text editor
JPH0422995A (en) Linking scroll display system for plural data
JPH0458044B2 (en)
JPH05341816A (en) Sfc programming system
JPH03222038A (en) Parameter input system in program