JPS63289604A - Program checking system for numerical control device - Google Patents

Program checking system for numerical control device

Info

Publication number
JPS63289604A
JPS63289604A JP12404387A JP12404387A JPS63289604A JP S63289604 A JPS63289604 A JP S63289604A JP 12404387 A JP12404387 A JP 12404387A JP 12404387 A JP12404387 A JP 12404387A JP S63289604 A JPS63289604 A JP S63289604A
Authority
JP
Japan
Prior art keywords
program
block
test
numerical control
control device
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
JP12404387A
Other languages
Japanese (ja)
Inventor
Akira Nagamine
永峰 侃
Fumio Kawamura
文夫 河村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP12404387A priority Critical patent/JPS63289604A/en
Publication of JPS63289604A publication Critical patent/JPS63289604A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To easily detect and correct an error position of a program by reading out each block successively every successive input of a test command after setting up an NC device to a test mode, and then displaying the locus of a commanded tool on a display device. CONSTITUTION:At the time of checking an NC working program stored in a non-volatile memory 5, a manual data input device 4 with a graphic display is allowed to draw a tool locus with a shape to be worked. Namely, the NC device is switched to the test mode by the CPU 1, each block of the program is read out and drawn every input of a test command based upon the successive depression of a test button and the drawn contents and the program are displayed on the device 4. If there is no error, the displayed result is held as it is, and when an error is detected, the test button is depressed and the succeeding sequence number is applied to draw a new locus by an axis control circuit 6.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、工作機械等の機械を制御するマイクロコンピ
ュータ内蔵の数値制御装置におけるプログラムチェック
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a program check method in a numerical control device with a built-in microcomputer that controls machines such as machine tools.

従来の技術 マイクロコンピュータを内蔵する数値制御II装置(以
下、NC装置という)は、加工しようとする形状のプロ
グラムをNC装置に入力し、NC装置は該プログラムに
従って機械の各軸にパルス分配し、ワークに対し希望す
る形状を加工するよう制御するものであるが、入力され
たプログラムをチェックするために、数値υJt!I装
置に設けられたグラフィックディスプレイ装置にプログ
ラムされた加工形状を表示するものはすでに公知である
Conventional Technology A numerical control II device (hereinafter referred to as an NC device) with a built-in microcomputer inputs a program for the shape to be machined into the NC device, and the NC device distributes pulses to each axis of the machine according to the program. This is to control the workpiece to be machined into the desired shape, but in order to check the input program, the numerical value υJt! It is already known to display programmed machining shapes on a graphic display device provided in an I-device.

発明が解決しようとする問題点 従来の方式では、プログラムチェックするために、プロ
グラムによって加工される加工形状をグラフィックディ
スプレイ装置に表示させ、この表示された加工形状によ
ってプログラムの誤りり発見しても、プログラム上のど
のブロックのプログラムが誤りであるか容易に見つけ出
すことが困難である。例えば、X軸プラス方向に100
0移動すべき指令を行うべき所を、X軸マイナス方向に
1000移動するようなブロックをプログラムしている
とき、このような誤ったブロックはプログラム上どの位
置か、そのシーケンス番号は何番であるか等直ちに分ら
ず、プログラムを修正するとき、時間を要し、効率的で
はなかった。
Problems to be Solved by the Invention In the conventional system, in order to check the program, the machining shape to be machined by the program is displayed on a graphic display device, and even if an error in the program is discovered from the displayed machining shape, It is difficult to easily find out which block in a program is in error. For example, 100 in the positive direction of the X-axis
When programming a block that moves 1000 in the negative direction of the X-axis where a command to move 0 should be given, where in the program is such an incorrect block and what is its sequence number? It was not immediately obvious, and it took time and was not efficient to modify the program.

そこで、本発明の目的は、プログラムをチェックする際
、プログラムを誤ったブロックを直ちに見出すことがで
きるプログラムチェック方式を提供することにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a program checking method that can immediately find blocks in which errors are made when checking a program.

問題点を解決するための手段 NC装置にプログラムの1ブロック毎のプログラム指令
の工具軌跡を表示させるためのテスト指令手段を設け、
NC装置をテストモードにした後、上記テスト指令手段
よりテスト指令が順次入力される毎に、NC装置に入力
されているプログラムより順次1ブロックを読取り該ブ
ロックの指令の工具軌跡をグラフィックディスプレイ装
置に表示し、プログラムをチェックするように構成する
ことによって上記問題点を解決した。
Means for solving the problem: A test command means is provided for displaying the tool trajectory of the program command for each block of the program on the NC device,
After setting the NC device to the test mode, each time a test command is sequentially input from the test command means, one block is sequentially read from the program input to the NC device, and the tool locus of the command of the block is displayed on the graphic display device. The above problem was solved by configuring the system to display and check the program.

作  用 数値制御装置をテストモードにした後、上記テスト指令
手段を操作してテスト指令を入力すると、NC装置は該
テスト指令が入力される毎に、プログラムより1ブロッ
クずつ読取り、グラフィックディスプレイ装置に順次1
ブロック毎当該ブロックの指令の工具軌跡を描画する。
Operation After setting the numerical control device to test mode, when a test command is input by operating the test command means, the NC device reads one block from the program and displays it on the graphic display device each time the test command is input. Sequential 1
Draws the tool trajectory of the command for each block.

その結果、テスト指令が入力される毎に1ブロックの指
令工具軌跡を描画するから、誤ってプログラムされたブ
ロックがあると、そのプログラムを誤ったブロックは直
ちに分かり、プログラムを修正する作業が容易となる。
As a result, the commanded tool path for one block is drawn every time a test command is input, so if there is a block that has been programmed incorrectly, the block that was programmed incorrectly can be immediately identified, making it easy to correct the program. Become.

実施例 第1図は本発明の一実施例を実施するNC装置の要部ブ
ロック図で、1はマイクロコンピュータ(以下、CPU
という)で、該cpuiには、管理プログラムを記憶し
たROM2、データの一時記憶等に利用されるRAM3
、グラフィックディスプレイ装置付手動データ入力装置
(以下、CRT/MDIという)4.NC加ニブログラ
ムや各様パラメータの設定値を記憶するバブルメモリや
CMOSメモリで構成された不揮発性メモリ5、及び該
NCH置で制御される工作機械等の機械の各軸を制御す
る軸制御回路6がバス7で接続されている。
Embodiment FIG. 1 is a block diagram of main parts of an NC device implementing an embodiment of the present invention, and 1 is a microcomputer (hereinafter referred to as CPU).
), the CPU includes a ROM2 that stores a management program, and a RAM3 that is used for temporary storage of data, etc.
, manual data input device with graphic display device (hereinafter referred to as CRT/MDI)4. A non-volatile memory 5 composed of a bubble memory or a CMOS memory that stores the NC program and setting values of various parameters, and an axis control circuit 6 that controls each axis of a machine such as a machine tool controlled by the NCH device. are connected by bus 7.

以上のような構成において、不揮発性メモリ5に格納さ
れたNC加ニブログラムをチェックするとき、CRT、
/MDI4のグラフィックディスプレイ装置に、該プロ
グラムによって加工される形状の工具軌跡を描画させる
こととなるが、例えば、第2図に示すような位置P1か
らR2,R3,R4、Plなる工具軌跡の形状を加工す
るプログラムが不揮発性メモリに格納されているとする
。このようなプログラムは下記のようなものとなる。
In the above configuration, when checking the NC program stored in the nonvolatile memory 5, the CRT,
The graphic display device of /MDI4 will draw the tool trajectory of the shape to be machined by the program, for example, the shape of the tool trajectory from position P1 to R2, R3, R4, Pl as shown in FIG. Assume that a program for processing . Such a program would be as follows.

N210   G91  Y−1000:N220  
 X100O N240   GO3Ylooo  R500:N26
0     X−1000: N280     M2O なお、N210〜N280はシーケンス番号、G91は
インクレメンタル指令のGコード、Y。
N210 G91 Y-1000:N220
X100O N240 GO3Yloooo R500:N26
0

XはY軸、X軸の移動指令、GO3は反時計方向の円弧
補間指令のGコード、Rは円弧の半径、M2Oはプログ
ラムの終了を示すMコードである。
X is a movement command for the Y-axis and X-axis, GO3 is a G code for a counterclockwise circular interpolation command, R is a radius of the circular arc, and M2O is an M code indicating the end of the program.

そこで、このようなプログラムを実行する前に、該プロ
グラムをチェックするときには、CRT/MDI4を操
作し、シングルブロックスイッチをオンとし、テストモ
ードにNC装置を切換える。
Therefore, when checking such a program before executing it, the CRT/MDI 4 is operated, the single block switch is turned on, and the NC device is switched to the test mode.

CPU 1はテストモードに切換えられると第3図のプ
ログラム描画処理を開始し、テストモードに切換えられ
たことを検出しくステップS1)、次に、CRT/MD
 I 4のソフトキー等に設けられたプログラムの工具
軌跡を描画させるためのテスト指令を入力するテストボ
タンがオンになったか否か判断しくステップS2)、テ
ストボタンがオンになると、不揮発性メモリ5に格納さ
れたプログラムより1ブロック読取りくステップ33)
、1ブロックの分配データ処理等を行い解析しくステッ
プS4)、その結果の工具軌跡をCRT/MDI4のグ
ラフィックディスプレイIJの画面に描画しくステップ
5)、該読取ったブロックのプログラムをもグラフィッ
クディスプレイ装置に表示する(ステップS6)。例え
ば、上記プログラムのシーケンス番号N210が読取ら
れると、位置P1からP2までを描画し、シーケンス番
号N210のブロックのプログラムを表示する。次に、
ステップS1に戻り再びテストボタンが押されテスト指
令が入力されると(ステップS2)、次のブロックを読
取り(ステップ$3)、描画及びプログラムを表示する
(ステップ84〜S6)。
When the CPU 1 is switched to the test mode, it starts the program drawing process shown in FIG.
It is determined whether or not the test button for inputting a test command for drawing the program tool path provided on the soft key of I4 is turned on (step S2). When the test button is turned on, the non-volatile memory 5 Step 33) Read one block from the program stored in
, process and analyze the distribution data of one block (Step S4), draw the resulting tool trajectory on the screen of the graphic display IJ of the CRT/MDI 4 (Step 5), and also display the program of the read block on the graphic display device. Display (step S6). For example, when sequence number N210 of the above program is read, positions P1 to P2 are drawn and the program of the block with sequence number N210 is displayed. next,
Returning to step S1, when the test button is pressed again and a test command is input (step S2), the next block is read (step $3), and the drawing and program are displayed (steps 84 to S6).

以下、順次テストボタンが押され、テスト指令が入力さ
れる毎に、1ブロックずつプログラムが読取られ描画さ
れ、かつプログラムも表示される。
Thereafter, each time the test button is pressed one after another and a test command is input, the program is read and drawn one block at a time, and the program is also displayed.

そして、オペレータはこの描画された工具軌跡、即ち加
工形状を見てプログラムが誤っていないかチェックする
こととなる。そして、誤っていなければ、グラフィック
ディスプレイ装置の画面には例えば第2図に示す工具軌
跡の描画と上記シーケンス番号N21O−N280のプ
ログラムが表示されることとなる。
Then, the operator looks at the drawn tool trajectory, that is, the machining shape, and checks whether the program is incorrect. If there is no mistake, the drawing of the tool path shown in FIG. 2 and the program with the sequence numbers N21O-N280 will be displayed on the screen of the graphic display device, for example.

ところで、例えばシーケンス番gN220のブロックで
X100Oとすべき所を誤ってX−1000とプログラ
ムしていたとすると、シーケンス番号N210のブロッ
クを描画し位置P1からP2まで描画した後、テストボ
タンが押され、次のシーケンス番号N220のブロック
の工具軌跡を描画すると、第2図に破線で示すように位
置P2からP’ 3を描画することとなる。そのため、
オペレータはこの時点で、この描画したシーケンス番号
N220のブロックのプログラムが誤りであることを容
易に発見することができる。このように、移動すべき方
向、移動軸、移動M等が誤ってプログラムされていると
、その誤ってプログラムされているブロックの工具軌跡
が表示された時点でプログラムが誤りであることを容易
に発見でき、プログラムを修正すべきブロックを容易に
発見できる。
By the way, for example, if you mistakenly program X-1000 instead of X100O in the block with sequence number gN220, after drawing the block with sequence number N210 and drawing from position P1 to P2, the test button is pressed. When the tool trajectory of the next block with sequence number N220 is drawn, positions P2 to P'3 are drawn as shown by the broken line in FIG. Therefore,
At this point, the operator can easily discover that the drawn program for the block with sequence number N220 is incorrect. In this way, if the direction to move, movement axis, movement M, etc. are programmed incorrectly, it is easy to identify that the program is incorrect when the tool path of the incorrectly programmed block is displayed. It is possible to easily discover the blocks that need to be modified in the program.

なお、上記実施例では、シングルブロック指令スイッチ
をオンにして、第3図に示す処理を行わせるようにした
が、テストボタンを押す毎に1ブロックのみ読込み工具
軌跡描画、プログラム表示を行うようにして、シングル
ブロック指令をテストボタンで兼ねさせてもよい。
In the above embodiment, the single block command switch is turned on to perform the processing shown in Fig. 3, but each time the test button is pressed, only one block is read, the tool trajectory is drawn, and the program is displayed. Alternatively, the test button may also serve as a single block command.

発明の効果 本発明はプログラムの1ブロック毎、順次工具軌跡を描
画させてプログラムをチェックするから、プログラムの
誤り個所を容易に発見でき、プログラムチェック及びプ
ログラム修正が容易となる。
Effects of the Invention In the present invention, the program is checked by sequentially drawing a tool path for each block of the program, so that errors in the program can be easily found, and program checking and program correction are facilitated.

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

第1図は本発明の一実施例を実施するNC装首の要部ブ
ロック図、第2図はプログラムの工具軌跡をグラフィッ
クディスプレイ装置に描画した一例の説明図、第3図は
同実茄例の動作処理フローチャートである。 1・・・マイクロコンピュータ、4・・・グラフィック
ディスプレイ装置付手動データ入力装置((IT/MD
I)、7・・・バス。 藁 1 口 入 藁 2 ロ
Fig. 1 is a block diagram of the main parts of an NC neck mounting that implements an embodiment of the present invention, Fig. 2 is an explanatory diagram of an example of a program tool trajectory drawn on a graphic display device, and Fig. 3 is an actual example of the same. 2 is an operational processing flowchart. 1...Microcomputer, 4...Manual data input device with graphic display device ((IT/MD)
I), 7... bus. Straw 1 straw 2 b

Claims (2)

【特許請求の範囲】[Claims] (1)数値制御装置にプログラムの1ブロック毎のプロ
グラム指令の工具軌跡を表示させるためのテスト指令手
段を設け、数値制御装置をテストモードにした後、上記
テスト指令手段よりテスト指令が順次入力される毎に、
数値制御装置に入力されているプログラムより順次1ブ
ロックを読取り該ブロックの指令の工具軌跡をグラフィ
ックディスプレイ装置に表示し、プログラムのチェック
を行うことを特徴とする数値制御装置におけるプログラ
ムチェック方式。
(1) The numerical control device is provided with a test command means for displaying the tool trajectory of the program commands for each block of the program, and after the numerical control device is put into the test mode, test commands are sequentially inputted from the test command means. Every time,
A program check method for a numerical control device, characterized in that the program is checked by sequentially reading one block from a program input to the numerical control device and displaying the tool locus of commands of the block on a graphic display device.
(2)上記グラフィックディスプレイ装置には、工具軌
跡を表示したブロックのプログラムをも表示する特許請
求の範囲第1項記載の数値制御装置におけるプログラム
チェック方式。
(2) A program check method in a numerical control device according to claim 1, wherein the graphic display device also displays a program of a block in which a tool trajectory is displayed.
JP12404387A 1987-05-22 1987-05-22 Program checking system for numerical control device Pending JPS63289604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12404387A JPS63289604A (en) 1987-05-22 1987-05-22 Program checking system for numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12404387A JPS63289604A (en) 1987-05-22 1987-05-22 Program checking system for numerical control device

Publications (1)

Publication Number Publication Date
JPS63289604A true JPS63289604A (en) 1988-11-28

Family

ID=14875595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12404387A Pending JPS63289604A (en) 1987-05-22 1987-05-22 Program checking system for numerical control device

Country Status (1)

Country Link
JP (1) JPS63289604A (en)

Similar Documents

Publication Publication Date Title
US5315523A (en) Numerical control apparatus having a work simulation function
JPS6115205A (en) Drawing method of graphic display for numerical controller
WO1989012349A1 (en) Motor controller
JPH103307A (en) Numerical controller
EP0060039B1 (en) Numerically controlled machine tool system
US4924403A (en) Numerical control method and system therefor having override playback function
JPS63289604A (en) Program checking system for numerical control device
EP0509102A1 (en) Method of working simulation
KR19980020028A (en) Virtual computer numerical control machine system and method
JP4347190B2 (en) Machine tool controller
JPH0242510A (en) Display system for working information
JPS63265305A (en) Program restarting system
EP0345355B1 (en) Interactive nc apparatus
JP2942812B2 (en) Device for creating a variant and variable production program
JP2691984B2 (en) Work coordinate system setting method
JPS6063610A (en) Numerical controller with graphic display device capable of drawing clamping device
JP2707031B2 (en) Method and apparatus for checking machining program
JPS63709A (en) Interactive nc device
JPH0728517A (en) Display control system for cnc
JPH06114678A (en) Tool locus display device of nc device
JPS63201736A (en) Programming device for programmable controller
JPS59192440A (en) Control device for resumption of nc processing
JP2642451B2 (en) Numerical control unit
JPS59231606A (en) Numerical controller
JPS61178148A (en) Machining range specifying device for every machining process in automatic programming