JPH039808B2 - - Google Patents

Info

Publication number
JPH039808B2
JPH039808B2 JP61066442A JP6644286A JPH039808B2 JP H039808 B2 JPH039808 B2 JP H039808B2 JP 61066442 A JP61066442 A JP 61066442A JP 6644286 A JP6644286 A JP 6644286A JP H039808 B2 JPH039808 B2 JP H039808B2
Authority
JP
Japan
Prior art keywords
machining
information
graphic
command
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
JP61066442A
Other languages
Japanese (ja)
Other versions
JPS62224435A (en
Inventor
Tamiji Tezuka
Masahide Yamazaki
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP61066442A priority Critical patent/JPS62224435A/en
Publication of JPS62224435A publication Critical patent/JPS62224435A/en
Publication of JPH039808B2 publication Critical patent/JPH039808B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Punching Or Piercing (AREA)
  • Laser Beam Processing (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、例えばプレス金型やレーザ光線を用
いて金属板等の板状物に所望形状の穴を加工プロ
グラムに従つて自動的に形成する穴あけ加工装置
に用いられる加工プログラムを前もつて検査する
加工プログラム検査装置に係わり、特に、シミユ
レートされた加工形状および加工プログラムの加
工命令をCRT表示管等の表示装置に順次表示し
ていく加工プログラム検査装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is for automatically forming a hole of a desired shape in a plate-like object such as a metal plate using a press mold or a laser beam according to a processing program. It relates to a machining program inspection device that pre-inspects machining programs used in drilling machines that perform drilling operations, and in particular, machining that sequentially displays the simulated machining shape and machining instructions of the machining program on a display device such as a CRT display tube. The present invention relates to a program inspection device.

[従来の技術] 例えば複数種類のプレス金型を順次選択して金
属板に所望形状の穴を自動的に形成する穴あけ加
工装置に用いられる加工プログラムは例えば第9
図に示すような複数の加工命令の組合せにて構成
されている。すなわち、図中1は連続したプログ
ラムカウンタ(PC)であり、この各プログラム
カウンタ1にそれぞれ加工命令2が書込まれてい
る。この加工命令2は加工位置、加工形状等の複
数の命令から構成されている。例えば、
[X100Y100T10]の加工命令2においては、第1
1図に示すように、加工されるべき金属板のX、
Y座標の(100mm、100mm)位置に第10図に示す
[T10]の型番の金型を用いて半径10mmの円形穴
3を形成することを示す。
[Prior Art] For example, a processing program used in a drilling device that sequentially selects a plurality of types of press dies to automatically form a hole of a desired shape in a metal plate is, for example, No. 9.
It is composed of a combination of multiple processing instructions as shown in the figure. That is, in the figure, 1 is a continuous program counter (PC), and each program counter 1 has a processing instruction 2 written therein. This machining command 2 is composed of a plurality of commands such as machining position and machining shape. for example,
In the processing instruction 2 of [X100Y100T10], the first
As shown in Figure 1, X of the metal plate to be processed,
It is shown that a circular hole 3 with a radius of 10 mm is formed at the (100 mm, 100 mm) position of the Y coordinate using a mold with model number [T10] shown in FIG.

同様にPC=26の[Y200C45T20]においては、
X座標は一つ前のPC=25におけるX座標(X=
100)を移動させずに、Y座標を200へ移動させ
て、第10図に示す矩形(10mm×100mm)の
[T20]の型番の金型を45゜傾斜させて使用するこ
とにより、第11図に示すように、(100、200)
座標位置に45゜傾斜した[10×100]の矩形穴4を
形成することを示す。
Similarly, in [Y200C45T20] with PC=26,
The X coordinate is the X coordinate at the previous PC=25 (X=
100), move the Y coordinate to 200, and use the rectangular (10 mm x 100 mm) mold with the model number [T20] shown in Figure 10 at an angle of 45 degrees. As shown in the figure, (100, 200)
This shows that a [10×100] rectangular hole 4 inclined at 45° is formed at the coordinate position.

さらに、PC=27の[G28I100J45K3]の加工命
令2における[G28]は繰返しを示す。すなわ
ち、一つ前のPC=26の加工命令2による矩形穴
4をピツチ100mmでもつて、45゜方向に3回繰返し
た形状の長方形穴5を形成することを示す。
Furthermore, [G28] in the processing instruction 2 of [G28I100J45K3] with PC=27 indicates repetition. That is, it shows that the rectangular hole 4 according to the previous machining command 2 of PC=26 is formed at a pitch of 100 mm to form a rectangular hole 5 having a shape repeated three times in the 45° direction.

なお、PC=2の[G92X1000Y1500]は金属板
上の加工範囲が1000mm×1500mmであることを予め
設定する加工命令である。
Note that [G92X1000Y1500] with PC=2 is a processing command that presets that the processing range on the metal plate is 1000 mm x 1500 mm.

一般に、このような加工プログラムを用いて実
際に穴あけ加工装置を稼働させる前には、マイク
ロコンピユータでシミユレートすることによつ
て、加工上の問題点を捜して修正するようにして
いる。一般にはCRT表示画面上に、第9図の示
した加工プログラムのPC=2の加工命令2で示
される加工範囲を示す枠と、各加工命令2をプロ
グラムカウンタ(PC)1の順序に従つて、1ス
テツプずつ順次表示するとともに、各加工命令2
に従つて第11図に示した各穴3,4,5の各加
工形状を表示する。そして、操作者が目視で各加
工形状間の相関関係や加工形状の妥当性、加工位
置の妥当性をチエツクし、問題点あれば、印字出
力されたプログラムリスト又はCRT表示画面上
に表示された各加工命令2を調べることにより、
問題になつている加工形状に対応する加工命令2
を操作者自身が捜しだし、該当加工命令2を修正
する。そして、再び最初から修正後の加工プログ
ラムをシミユレートすることによつて、CRT表
示画面上に正しい加工形状が表示されることを確
認する。
Generally, before actually operating a drilling machine using such a machining program, a microcomputer is used to perform a simulation to find and correct any machining problems. Generally, on the CRT display screen, there is a frame indicating the machining range indicated by the machining command 2 of PC = 2 of the machining program shown in Fig. 9, and each machining command 2 is placed in the order of the program counter (PC) 1. , each step is displayed sequentially, and each machining command 2
Accordingly, the machined shapes of the holes 3, 4, and 5 shown in FIG. 11 are displayed. Then, the operator visually checks the correlation between each machining shape, the validity of the machining shape, and the validity of the machining position, and if there is a problem, it is displayed on the printed program list or CRT display screen. By examining each processing instruction 2,
Machining command 2 corresponding to the machining shape in question
The operator searches for it himself and corrects the corresponding processing instruction 2. Then, by simulating the modified machining program from the beginning again, it is confirmed that the correct machining shape is displayed on the CRT display screen.

[発明が解決しようとする問題点] しかしながら、上記のように各加工命令および
加工形状を順次CRT表示画面等の図形表示装置
に順次表示していくように加工プログラム検査装
置においても次のような問題点があつた。すなわ
ち、問題となる加工形状が第11図の円形穴3で
示されるように、この加工形状がPC=25の
[X100Y100T20]の一つの加工命令2で加工位置
および加工形状が決定する場合は、加工プログラ
ムをシミユレートする過程で、CRT表示画面上
に円径穴3の加工形状とこの加工形状を決定する
加工命令2とが同時に表示されるので、操作者は
問題となる加工形状の加工命令2を直ちに特定す
ることが可能である。したがつて、加工命令を容
易に修正することが可能である。
[Problems to be Solved by the Invention] However, as described above, each machining command and machining shape are sequentially displayed on a graphic display device such as a CRT display screen. There was a problem. That is, if the machining shape in question is shown by the circular hole 3 in Fig. 11, and the machining position and shape are determined by one machining command 2 of [X100Y100T20] with PC=25, In the process of simulating the machining program, the machining shape of the circular hole 3 and the machining command 2 that determines this machining shape are displayed simultaneously on the CRT display screen, so the operator can select the machining command 2 for the machining shape in question. It is possible to identify immediately. Therefore, it is possible to easily modify the processing instructions.

しかし、第11図の矩形穴4又は長方形穴5の
加工形状は複数の加工命令2にてその加工形状お
よび加工位置が決定される。たとえば、長方形穴
5はPC=25、26、27の3個の加工命令2によつ
て決定される。したがつて、この長方形穴5が
CR表示画面上に表示された時点においては、PC
=27の1つの加工命令2が表示されているのみで
ある。したがつて、操作者はPC=27の加工命令
2だけを見ただけではこの長方形穴5の加工形状
を決定する全部の加工命令2が特定できないの
で、加工形状の問題点を解消するためにどの加工
命令2を修正したらよいのかが簡単に把握できな
い問題がある。
However, the machining shape and machining position of the rectangular hole 4 or rectangular hole 5 shown in FIG. 11 are determined by a plurality of machining instructions 2. For example, the rectangular hole 5 is determined by three machining instructions 2, PC=25, 26, and 27. Therefore, this rectangular hole 5
At the time it is displayed on the CR display screen, the PC
Only one machining instruction 2 of =27 is displayed. Therefore, the operator cannot identify all the machining instructions 2 that determine the machining shape of this rectangular hole 5 just by looking at the machining command 2 of PC=27. There is a problem in that it is not easy to understand which processing instruction 2 should be modified.

特に、加工形状が複雑になり、一つの加工形状
を決定する加工命令数が多くなり、十数ステツプ
前のプログラムカウンタPCの加工命令2に間違
いが存在する場合においては、操作者が加工形状
の問題点を発見した時点では、修正すべき加工命
令2はCRT表示画面上から消去されている。し
たがつて、加工プログラムに精通した熟練者でな
ければ容易に修正すべき加工命令2を検出するこ
とができない問題がある。
In particular, when the machining shape becomes complex, the number of machining commands that determine one machining shape increases, and there is an error in machining command 2 on the program counter PC ten or more steps before, the operator may By the time the problem is discovered, the processing instruction 2 to be corrected has been erased from the CRT display screen. Therefore, there is a problem that only an expert who is familiar with the machining program can easily detect the machining instruction 2 to be modified.

なお、CRT表示画面に同時に表示できる加工
プログラムの加工命令数は一定の制約があり、ま
た、同時に多くの加工命令2を表示することは表
示画面上が煩雑になる。したがつて、操作者は印
字出力された加工プログラムの先頭から順番に各
加工命令を調べるか、又は再度最初からシミユレ
ートを開始して問題の加工命令を捜す作業をする
必要がある。したがつて、加工プログラムの修
正、点検作業能率が低下する問題がある。
Note that there is a certain restriction on the number of machining instructions of a machining program that can be displayed simultaneously on the CRT display screen, and displaying many machining instructions 2 at the same time makes the display screen complicated. Therefore, the operator must either examine each machining instruction in order from the beginning of the printed machining program, or restart the simulation from the beginning to find the problematic machining instruction. Therefore, there is a problem in that the efficiency of modifying and inspecting machining programs is reduced.

本発明はこのような事情に基づいてなされたも
のであり、その目的とするところは、表示された
問題となる加工形状を例えばカーソル等で指定す
るとこの加工形状を決定する加工プログラムを表
示することによつて、加工プログラムに精通して
いない操作者であつても、簡単に問題の加工プロ
グラムを特定でき、加工プログラムの修正、点検
作業能率を向上できる加工プログラム検査装置を
提供することにある。
The present invention has been made based on these circumstances, and its purpose is to display a machining program that determines the machining shape when the displayed machining shape in question is specified using, for example, a cursor. Therefore, it is an object of the present invention to provide a machining program inspection device that allows even an operator who is not familiar with machining programs to easily identify a problem machining program and improve the efficiency of modifying and inspecting the machining program.

[問題点を解決するための手段] 本発明は、第1図に示すように、板状物の穴あ
け加工装置に用いられる複数の加工命令の組合わ
せにて構成された加工プログラムを図形表示装置
6上でシミユレートすることにより、加工プログ
ラムを検査する加工プログラム検査装置におい
て、図形表示手段7によつて、加工プログラム記
憶手段8にて記憶された加工プログラムの各加工
命令を、加工形状を表す図形とこの図形の位置を
特定するための基準座標とからなる図形情報に順
次変換するとともに加工すべき図形を図形表示装
置6に表示する。また、図形指定手段9によつ
て、図形表示装置6上に表示された図形のうち所
望の部分を指定したとき指定された部分を他の部
分と識別表示し、検索表示手段10によつて、指
定された図形の基準座標によつて加工プログラム
記憶手段8に記憶されている加工プログラムを検
索し、指定された図形を表示した加工プログラム
の加工命令を特定し得る情報を抽出表示するよう
にしたものである。
[Means for Solving the Problems] As shown in FIG. 1, the present invention provides a graphic display device that displays a machining program composed of a combination of a plurality of machining commands used in a drilling machine for a plate-like material. In the machining program inspection device that inspects the machining program by simulating the machining program on the machine 6, the graphic display means 7 displays each machining command of the machining program stored in the machining program storage means 8 as a graphic representing the machining shape. The figure to be processed is sequentially converted into figure information consisting of the figure and reference coordinates for specifying the position of the figure, and the figure to be processed is displayed on the figure display device 6. Further, when a desired part of the figure displayed on the figure display device 6 is specified by the figure specifying means 9, the specified part is displayed to be distinguished from other parts, and the search and display means 10 displays, The machining program stored in the machining program storage means 8 is searched based on the reference coordinates of the specified figure, and information that can identify the machining command of the machining program that displayed the specified figure is extracted and displayed. It is something.

[作用] このように構成された加工プログラム検査装置
であれば、プログラム記憶手段8に記憶された加
工プログラムは加工すべき図形を特定するための
基準座標を含む図形情報に変換されて図形表示装
置6へ表示される。そして、図形表示装置6に表
示された図形のうち所望の図形を指定すると、指
定された図形が他の部分と識別表示されるととも
に、指定された図形に対応する加工プログラムの
加工命令が加工プログラム記憶手段8内から検索
されて図形表示装置6上に表示される。
[Operation] With the machining program inspection device configured as described above, the machining program stored in the program storage means 8 is converted into graphic information including reference coordinates for specifying the figure to be machined, and displayed on the figure display device. 6 will be displayed. When a desired figure is specified among the figures displayed on the figure display device 6, the specified figure is displayed to be distinguished from other parts, and the machining command of the machining program corresponding to the specified figure is displayed in the machining program. It is retrieved from the storage means 8 and displayed on the graphic display device 6.

[実施例] 以下本発明の一実施例を図面を用いて説明す
る。
[Example] An example of the present invention will be described below with reference to the drawings.

第2図は実施例の加工プログラム検査装置の概
略構成を示すブロツク図である。この加工プログ
ラム検査装置は、大きく分けて、加工プログラム
を記憶し、各種の演算処理を実行するマイクロコ
ンピユータ11と、このマイクロコンピユータ1
1からの指令にて各種加工形状および加工プログ
ラムの各加工命令度の文字を表示する図形表示装
置としてのCRT表示装置12とで構成されてい
る。
FIG. 2 is a block diagram showing a schematic configuration of a machining program inspection device according to an embodiment. This machining program inspection device is roughly divided into a microcomputer 11 that stores machining programs and executes various calculation processes;
1, and a CRT display device 12 as a graphic display device that displays various machining shapes and characters of each machining command degree of a machining program in response to commands from 1.

前記マイクロコンピユータ11においては、各
種演算処理を実行するCPU(中央処理装置)13
は、アドレスバスおよびデータバスからなるバス
ライン14を介して、各種演算処理を実行するた
めの制御プログラムを記憶するROM15、図示
しない板状物の穴あけ加工装置に用いられる第9
図に示した加工プログラムを記憶する加工プログ
ラム記憶手段としてのRAM16、加工プログラ
ムにおける各加工命令の解釈データ等の各種可変
データを記憶するRAM17、およびCRT表示装
置12との間で情報の授受を行なうインターフエ
ース回路18を制御する。
The microcomputer 11 includes a CPU (central processing unit) 13 that executes various calculation processes.
A ROM 15 that stores control programs for executing various arithmetic operations via a bus line 14 consisting of an address bus and a data bus;
Information is exchanged between the RAM 16 as a machining program storage means that stores the machining program shown in the figure, the RAM 17 that stores various variable data such as interpretation data of each machining command in the machining program, and the CRT display device 12. Controls the interface circuit 18.

一方、CRT表示装置12においては、バスラ
イン19に対して、図形、文字等を表示する
CRT表示管20、CRT表示管20の表示画面上
のカーソル位置を移動させるカーソルキーや表示
された図形のうち問題となる加工形状を指定する
指定キー等が配列されたキーボード21、カーソ
ル位置等を記憶するRAM22、マイクロコンピ
ユータ11のインターフエース回路18に接続さ
れたインターフエース回路23、およびこれ等各
構成部材の動作を制御するCPU24等が接続さ
れている。
On the other hand, the CRT display device 12 displays figures, characters, etc. on the bus line 19.
CRT display tube 20, a keyboard 21 with cursor keys for moving the cursor position on the display screen of the CRT display tube 20, designation keys for specifying the problematic machining shape among the displayed figures, etc.; A RAM 22 for storage, an interface circuit 23 connected to the interface circuit 18 of the microcomputer 11, and a CPU 24 for controlling the operations of these components are connected.

前記マイクロコンピユータ11のRAM16内
には、第3図に示すように加工プログラムの第9
図で説明した各加工命令2をプログラムカウンタ
(PC)1順に記憶する加工プログラムメモリ25
が形成されている。さらに、マイクロコンピユー
タ11のRAM17内には、第4図に示すよう
に、加工プログラムメモリ25から読み出した各
加工命令2をROM15の制御プログラムに従つ
て解釈した結果である各解釈データを記憶する命
令解釈メモリ26が形成されている。この命令解
釈メモリ26に格納される各解釈データは、この
加工命令2によつてCRT表示管20の表示画面
上に表示される第11図に示した加工形状の加工
位置を示す基準座標(X、Y)と、使用される金
型の寸法に後述する縮尺係数Kを乗じた値で定ま
る表示外形データZ、およびこの加工命令2の格
納された加工プログラムメモリ25におけるプロ
グラムカウンタPCとで構成されている。そして、
各解釈データにはこの解釈データを格納する領域
を示すデータカウンタDCが付されている。
In the RAM 16 of the microcomputer 11, as shown in FIG.
A machining program memory 25 that stores each machining command 2 explained in the figure in order of program counter (PC) 1
is formed. Further, in the RAM 17 of the microcomputer 11, as shown in FIG. An interpretation memory 26 is formed. Each interpretation data stored in this instruction interpretation memory 26 is based on the reference coordinates (X . ing. and,
Each interpreted data is attached with a data counter DC indicating the area in which this interpreted data is stored.

さらに、RAM17内には、RAM16の加工
プログラムメモリ25の処理中の加工命令2に対
応するプログラムカウンタPCを記憶する領域2
7、命令解釈メモリ26の処理中の解釈データが
格納されたデータ領域を示すデータカウンタDC
を格納する領域28、CRT表示管20に表示さ
れた各加工形状の基本座標(X、Y)とカーソル
位置座標(X0、Y0)との間の各距離Lのうち最
少距離LMを格納する最少距離領域29、最少距
離LMを示す加工形状に対応する解釈データのデ
ータカウンタ値MDC、すなわちCRT表示管20
の表示画面上に他の加工形状とは異なる色で表示
する加工形状を示す解釈データのデータカウンタ
MDCを格納する表示データカウンタ領域30、
および該当解釈データに対応する加工命令2のプ
ログラムカウンタ値MPC、すなわちCRT表示管
20の表示画面上に他の加工命令2とは異なる色
で表示する加工命令のプログラムカウンタMPC
を格納する表示命令領域31が形成されている。
Furthermore, within the RAM 17, an area 2 is provided for storing a program counter PC corresponding to the machining instruction 2 being processed in the machining program memory 25 of the RAM 16.
7. Data counter DC indicating the data area in which the interpretation data being processed in the instruction interpretation memory 26 is stored.
The area 28 stores the minimum distance LM of each distance L between the basic coordinates (X, Y) of each machining shape displayed on the CRT display tube 20 and the cursor position coordinates (X 0 , Y 0 ). The data counter value MDC of the interpretation data corresponding to the machining shape indicating the minimum distance region 29 and the minimum distance LM, that is, the CRT display tube 20
A data counter of interpreted data indicating the machining shape to be displayed in a different color from other machining shapes on the display screen.
a display data counter area 30 for storing MDC;
and the program counter value MPC of the machining instruction 2 corresponding to the corresponding interpreted data, that is, the program counter MPC of the machining instruction displayed in a different color from other machining instructions 2 on the display screen of the CRT display tube 20
A display command area 31 is formed to store the .

前記CRT表示装置12のCPU24は、マイク
ロコンピユータ11からインターフエース回路2
3を介して各加工命令2とこの加工命令2に対応
する解釈データが入力されると、CRT表示管2
0に表示する。また、キーボード21のカーソル
のキー操作に応動してCRT表示管20の表示画
面上のカーソル位置を移動させるとともに表示画
面上のカーソル座標(X0、Y0)をRAM22に記
憶させる。さらに、キーボード21における指定
キーがキー入力操作された時点におけるカーソル
座標(X0、Y0)をRMA22から読み出してマイ
クロコンピユータ11へ送出する。
The CPU 24 of the CRT display device 12 connects the microcomputer 11 to the interface circuit 2.
3, when each processing instruction 2 and the interpretation data corresponding to this processing instruction 2 are input, the CRT display tube 2
Display at 0. Further, in response to a cursor key operation on the keyboard 21, the cursor position on the display screen of the CRT display tube 20 is moved and the cursor coordinates (X 0 , Y 0 ) on the display screen are stored in the RAM 22 . Furthermore, the cursor coordinates (X 0 , Y 0 ) at the time when the designated key on the keyboard 21 is inputted are read from the RMA 22 and sent to the microcomputer 11 .

しかして、マイクロコンピユータ11および
CRT表示装置12の電源が投入され動作状態に
なると、マイクロコンピユータ11のCPU13
は第5図の流れ図に従つて、加工プログラムのシ
ミユレート処理を実行するようにプログラム構成
されている。なお、RAM16の加工プログラム
メモリ25には既に検査すべき加工プログラムが
何等かの方法にて書き込まれているものとする。
Therefore, the microcomputer 11 and
When the CRT display device 12 is powered on and becomes operational, the CPU 13 of the microcomputer 11
The program is configured to execute a simulation process of the machining program according to the flowchart shown in FIG. It is assumed that the machining program to be inspected has already been written in the machining program memory 25 of the RAM 16 by some method.

すなわち、第5図の流れ図が開始されると、P
1にてCRT表示装置12に指令信号を送出して
CRT表示管20の第6図に示す表示画面32を
消去する。次にP2にてRAM16の加工プログ
ラムメモリ25の各加工命令2を検索して、第9
図に示す加工範囲を示す[G92…]で開始される
加工命令2を検索する。そして、X座標およびY
座標で示される加工範囲の加工命令が検索される
と、その加工範囲とCRT表示管20の表示画面
32の寸法から縮尺係数Kを算出して、加工範囲
を示す枠33が表示画面32をはみ出さないよう
にする。
That is, when the flow diagram of FIG. 5 is started, P
1 sends a command signal to the CRT display device 12.
The display screen 32 shown in FIG. 6 on the CRT display tube 20 is erased. Next, in P2, each machining instruction 2 in the machining program memory 25 of the RAM 16 is searched, and the ninth
Search for machining command 2 starting with [G92...] indicating the machining range shown in the figure. And the X coordinate and Y
When a machining command for the machining range indicated by the coordinates is retrieved, a scale factor K is calculated from the machining range and the dimensions of the display screen 32 of the CRT display tube 20, and a frame 33 indicating the machining range protrudes from the display screen 32. Try not to.

る。Ru.

次にP3にてRAM17の領域27のプログラ
ムカウンタPCを初期値の1に設定する。P4に
て加工プログラムメモリ25内の領域27の示す
プログラムカウンタPCの指定する加工命令2を
読み出す。そして、P5にてその加工命令2が加
工終了を示す加工命令でないことを確認すると、
P6にて読み出した加工命令2から加工位置を示
す基準座標(X、Y)および加工形状を表示する
ための表示外形データZを算出する。すなわち、
読み出した加工命令2が第9図のPC=25の加工
命令2に示すように加工命令2自体にX、Y座標
が含まれる場合は、そのX、Y座標に先に求めた
縮尺係数Kを乗じて基準座標(X、Y)とする。
また、第9図のPC=26、27の加工命令2のよう
にこの加工命令X、Y座標が含まれていない場合
はX、Y座標が含まれている加工命令2が検出さ
れるまで、プログラムカウンタPCを遡つてX、
Y座標を求め、縮尺係数Kを乗じて基準座標
(X、Y)を算出する。また、表示外形データZ
も同様に、読み出した加工命令2に金型の型番お
よび、傾斜角度(回転角度)が含まれる場合は、
その型番の金型寸法に縮尺係数率Kを乗じるとと
もに傾斜角度を含めた表示外形データZを算出す
る。なお、第9図のPC=27の加工命令2のよう
に一つの加工命令で加工形状が定まらない場合
は、基準座標(X、Y)算出と同様の手法にて表
示外形データZを算出する。
Next, at P3, the program counter PC in area 27 of RAM 17 is set to the initial value 1. At P4, the machining command 2 specified by the program counter PC indicated by the area 27 in the machining program memory 25 is read out. Then, when it is confirmed in P5 that the machining command 2 is not a machining command that indicates the end of machining,
From the machining command 2 read out in P6, reference coordinates (X, Y) indicating the machining position and display outline data Z for displaying the machining shape are calculated. That is,
If the read processing instruction 2 contains X and Y coordinates as shown in the processing instruction 2 of PC=25 in Fig. 9, the previously obtained scale factor K is applied to the X and Y coordinates. Multiply to obtain the reference coordinates (X, Y).
In addition, if the processing command 2 does not include the X and Y coordinates, as in the processing command 2 with PC=26 and 27 in FIG. Go back through the program counter PC and
The Y coordinate is determined and multiplied by the scale factor K to calculate the reference coordinates (X, Y). In addition, the displayed external shape data Z
Similarly, if the read processing instruction 2 includes the mold model number and inclination angle (rotation angle),
The mold dimensions of the model number are multiplied by the scale factor K, and displayed external shape data Z including the inclination angle is calculated. In addition, if the machining shape cannot be determined by one machining command, such as machining command 2 with PC=27 in Fig. 9, display external shape data Z is calculated using the same method as for calculating the reference coordinates (X, Y). .

P6にて一つの加工命令2に対する基準座標
(X、Y)および表示外形データZが算出される
と、P7にて算出された基準座標(X、Y)、表
示外形データZおよび該当加工命令2のプログラ
ムカウンタPCを1組の解釈データとして命令解
釈メモリ26の空きデータ領域にデータカウンタ
DPの順番に従つて格納する。次に、P8にて命
令解釈メモリ26に書き込まれた該当加工命令2
の解釈データを読み出してCRT表示装置12へ
送出し、CRT表示管20の表示画面32におけ
る基準座標(X、Y)位置に外形形状データで示
される加工形状34を表示する。さらに、P9に
て、領域27に記録されたプログラムカウンタ
PCの指定する該当加工命令2をCRT表示管20
の表示画面32の左下方位置にプログラムカウン
タ(PC)1と共に表示する。
When the reference coordinates (X, Y) and display outline data Z for one machining command 2 are calculated in P6, the reference coordinates (X, Y), display outline data Z and corresponding machining command 2 calculated in P7 are calculated. The program counter PC is stored as a set of interpreted data in the free data area of the instruction interpretation memory 26.
Store according to DP order. Next, the corresponding processing instruction 2 written in the instruction interpretation memory 26 at P8
The interpreted data is read out and sent to the CRT display device 12, and the processed shape 34 indicated by the external shape data is displayed at the reference coordinate (X, Y) position on the display screen 32 of the CRT display tube 20. Furthermore, at P9, the program counter recorded in area 27
The corresponding processing instruction 2 specified by the PC is displayed on the CRT display tube 20.
It is displayed together with the program counter (PC) 1 at the lower left position of the display screen 32.

以上で一つの加工命令2に対するシミユレート
表示処理が終了したので、P10にて操作者が表
示画面32を確認するために必要なごく短い一定
時間の経過を待つて、P11にて領域27のプロ
グラムカウンタPCを1だけ増加したのち、P4
へ戻り、加工プログラムメモリ25内から増加後
のプログラムカウンタPCの指定する加工命令2
を読み出す。
Since the simulated display processing for one processing command 2 has been completed above, the operator waits for a very short fixed period of time necessary to check the display screen 32 in P10, and then displays the program counter in the area 27 in P11. After increasing PC by 1, P4
Return to machining command 2 specified by the increased program counter PC from the machining program memory 25.
Read out.

そして、P5にて読み出した加工命令2が加工
終了を示す終了命令であれば、この加工プログラ
ムに対するシミユレート表示処理を終了する。
Then, if the machining command 2 read at P5 is an end command indicating the end of machining, the simulated display process for this machining program is ended.

なお、第6図は表示画面32上における加工プ
ログラムの全部の加工命令2のシミユレート表示
処理が終了した状態を示す。
Note that FIG. 6 shows a state in which the simulated display processing of all machining commands 2 of the machining program on the display screen 32 has been completed.

また、マイクロコンピユータ11のCPU13
はCRT表示装置12からキーボード21におけ
る指定キー操作有りの情報が入力されると、第7
図の加工形状(図形)指定および加工命令検索処
理を実行するようにプログラム構成されている。
In addition, the CPU 13 of the microcomputer 11
When information indicating that a specified key has been operated on the keyboard 21 is input from the CRT display device 12, the seventh
The program is configured to specify the machining shape (figure) in the diagram and execute a machining command search process.

すなわち、流れ図が開始され、Q1にてCRT
表示装置12からキーボード21におけるキー信
号入力情報がマイクロコンピユータ11に入力す
ると、Q2にて入力したキー信号の種類を調べ
る。そして、Q2にてキー信号が問題加工形状を
指定する指定キーのものであれば、Q3へ進み、
CRT表示装置12から送出された、RAM22に
記憶されたカーソル36のカーソル座標(X0
Y0)を読み取る。次にQ4にてRAM17の領域
28のデータカウンタDCを命令解釈メモリ26
の先頭値に設定する。さらに、Q5にて最少距離
領域29の最少距離LMを計算上の最大値に設定
する。
That is, the flowchart is started and the CRT is
When the key signal input information from the keyboard 21 is input from the display device 12 to the microcomputer 11, the type of the input key signal is checked in Q2. Then, in Q2, if the key signal is the specified key that specifies the problem machining shape, proceed to Q3,
The cursor coordinates (X 0 ,
Y 0 ). Next, in Q4, data counter DC in area 28 of RAM 17 is transferred to instruction interpretation memory 26.
Set to the first value. Furthermore, in Q5, the minimum distance LM of the minimum distance area 29 is set to the calculated maximum value.

以上の初期処理が終了すると、Q6にて領域2
8のデータカウンタDCが終了値に達していない
ことを確認の後、Q7にて、命令解釈メモリ26
内の領域28のデータカウンタDCの指定する解
釈データの基準座標(X、Y)を読み取り、この
基準座標(X、Y)と先のカーソル座標(X0
Y0)との間の直線距離Lを算出する。そして、
Q8にて、この距離Lと最少距離領域29に記憶
された最少距離LMとの大小関係を調べ、算出さ
れた距離Lが記憶された最少距離LMより小さけ
れば、Q9にてこの算出された距離Lを新たな最
少距離LMとして最少距離領域29に格納すると
ともに、表示データカウンタ領域30に該当基準
座標(X、Y)のデータカウンタDCを表示デー
タカウンタMDCとして格納する。そして、Q1
0にて領域28のデータカウンタDCを1だけ増
加したのち、Q6へ戻り、増加後のデータカウン
タDCが終了値であるか否かを調べる。なお、Q
7で算出された距離Lが記憶された最少距離LM
より大きい場合は、そのままQ10へ進み、デー
タカウンタDCを1だけ増加する。
When the above initial processing is completed, area 2
After confirming that the data counter DC of No. 8 has not reached the end value, at Q7, the command interpretation memory 26
The reference coordinates (X, Y) of the interpretation data specified by the data counter DC in the area 28 are read, and the reference coordinates (X, Y) and the previous cursor coordinates (X 0 ,
Calculate the straight line distance L between Y 0 ). and,
In Q8, the magnitude relationship between this distance L and the minimum distance LM stored in the minimum distance area 29 is checked, and if the calculated distance L is smaller than the stored minimum distance LM, this calculated distance is determined in Q9. L is stored in the minimum distance area 29 as a new minimum distance LM, and the data counter DC of the corresponding reference coordinates (X, Y) is stored in the display data counter area 30 as a display data counter MDC. And Q1
After incrementing the data counter DC in the area 28 by 1 at 0, the process returns to Q6 to check whether the increased data counter DC is the end value. In addition, Q
Minimum distance LM where distance L calculated in step 7 is stored
If it is larger, the process directly advances to Q10 and the data counter DC is incremented by 1.

そして、Q6にて、データカウンタDCが終了
すると、Q11にて命令解釈メモリ26内の表示
データカウンタ領域30の表示データカウンタ
MDCが指定する解釈データの基準座標(X、Y)
および表示外形データZを読み出して、第8図に
示すようにCRT表示管20の表示画面32に表
示外形データZに対応する加工形状34aを例え
ば赤色等のように他の加工図形34とは表示色を
変化させて表示する。Q12にて表示した該当解
釈データのプログラムカウンタPCを表示命令領
域31に表示プログラムカウンタMPCとして格
納する。そして、Q13にて加工プログラムメモ
リ25内の表示プログラムカウンタMPCが指定
する加工命令2aを中心にこの加工命令2aを中
心として前後5つの加工命令2を読み出して、図
示するように各プログラムカウンタ(PC)1と
ともにCRT表示管20の表示画面32のおける
各加工形状34を表示した左側に重ねて表示す
る。なお、中心の加工命令2aは他の8個の各加
工命令2とは赤色等の異なる色で表示する。
When the data counter DC ends in Q6, the display data counter in the display data counter area 30 in the instruction interpretation memory 26 is reset in Q11.
Standard coordinates (X, Y) of interpretation data specified by MDC
Then, the displayed external shape data Z is read out, and the machining shape 34a corresponding to the displayed external shape data Z is displayed on the display screen 32 of the CRT display tube 20, as shown in FIG. Display by changing colors. The program counter PC of the corresponding interpreted data displayed in Q12 is stored in the display command area 31 as a display program counter MPC. Then, in Q13, five machining commands 2 before and after the machining command 2a specified by the display program counter MPC in the machining program memory 25 are read out, and each program counter (PC ) 1 and the respective processed shapes 34 on the display screen 32 of the CRT display tube 20 are displayed superimposed on the left side. Note that the center processing instruction 2a is displayed in a different color, such as red, from the other eight processing instructions 2.

このように構成された加工プログラム検査装置
において、加工プログラムを検査する場合は、マ
イクロコンピユータ11のRAM16の加工プロ
グラムメモリ25に何等かの方法にて検査される
べき加工プログラムを格納した後、第5図の流れ
図を開始させると、第6図に示すようにCRT表
示管20の表示画面32上に各加工命令2とこの
加工命令2に対応する加工形状34が順次表示さ
れていく、なお、加工命令2は同時に1ステツプ
のみしか表示されないが、加工形状32は後から
の加工命令2に対応する加工形状34が先の加工
形状34に順次重ねて表示される。そして、加工
プログラムメモリ25に記憶された全部の加工命
令2のシミユレート表示処理が終了すると、図示
するようにこの加工プログラムで形成される全部
の加工形状34が表示画面32に表示される。
In the machining program inspection device configured as described above, when inspecting a machining program, the machining program to be inspected is stored in the machining program memory 25 of the RAM 16 of the microcomputer 11 by some method, and then the fifth When the flowchart shown in the figure is started, each machining command 2 and the machining shape 34 corresponding to this machining command 2 are sequentially displayed on the display screen 32 of the CRT display tube 20 as shown in FIG. Although only one step of the command 2 is displayed at a time, the machining shape 32 corresponding to the later machining command 2 is displayed overlapping the previous machining shape 34 in sequence. When the simulation display process for all machining instructions 2 stored in the machining program memory 25 is completed, all machining shapes 34 formed by this machining program are displayed on the display screen 32 as shown in the figure.

そして、操作者は表示された各加工形状34を
観察して、問題となる加工形状34が発見される
と、第8図に示すようにキーボード21のカーソ
ルキーを操作して、表示画面32上のカーソル3
6を問題の加工形状34a近傍へ移動させる。そ
して、キーボード21の指定キーをキー入力操作
すると、問題の加工形状34aが赤色に変化する
とともに、加工形状34aに対応する加工命令2
aが赤色で表示画面32の左側に表示されるとと
もに、この赤色の加工命令2aを中心に前後5つ
の加工命令2が通常の色で表示される。
Then, the operator observes each of the displayed machining shapes 34, and when a problem machining shape 34 is found, the operator operates the cursor keys on the keyboard 21 to display the machining shape 34 on the display screen 32, as shown in FIG. cursor 3
6 is moved to the vicinity of the processed shape 34a in question. Then, when the specified key on the keyboard 21 is inputted, the machining shape 34a in question changes to red, and the machining command 2 corresponding to the machining shape 34a changes.
a is displayed in red on the left side of the display screen 32, and five processing instructions 2 before and after this red processing instruction 2a are displayed in normal colors.

このように操作者は問題となる加工形状34a
近傍にカーソル34を移動させて指定キーを操作
するのみで、問題の加工形状34aに対応する加
工命令2aおよび前後5個の加工命令2が表示さ
れるので、簡単に問題の加工形状34aを決定す
る各加工命令2a,2を捜すことが可能である。
したがつて、たとえ加工プログラムに精通してい
ない操作者であつても、簡単に加工プログラムを
修正、点検できる。その結果、加工プログラムを
修正、点検する作業能率を大幅に向上させること
が可能である。
In this way, the operator can identify the problematic machining shape 34a.
By simply moving the cursor 34 nearby and operating the specified key, the machining command 2a corresponding to the machining shape 34a in question and the five machining commands 2 before and after are displayed, making it easy to determine the machining shape 34a in question. It is possible to search for each processing instruction 2a, 2.
Therefore, even an operator who is not familiar with machining programs can easily modify and check the machining programs. As a result, it is possible to greatly improve the efficiency of modifying and checking machining programs.

さらに、この実施例においては、問題となる加
工形状34aおよび該当する中心の加工命令2a
を他の加工形状34および他の加工命令2とは異
なる色で表示するようにしているので、加工プロ
グラムの修正、点検作業を間違えずにより容易に
実施できる。
Furthermore, in this embodiment, the processing shape 34a in question and the corresponding center processing instruction 2a are
Since it is displayed in a different color from other machining shapes 34 and other machining instructions 2, modification and inspection of the machining program can be carried out more easily without making mistakes.

[発明の効果] 以上説明したように本発明によれば、表示され
た問題となる加工形状(図形)を例えばカーソル
等で指定すると、この加工形状を決定する加工プ
ログラムの加工命令を表示するようにしている。
したがつて、加工プログラムに精通していない操
作者であつても、簡単に加工プログラムの問題の
加工命令を特定でき、加工プログラムの修正、点
検の作業能率を向上できる。
[Effects of the Invention] As explained above, according to the present invention, when a displayed machining shape (figure) that is a problem is specified using, for example, a cursor, a machining command for a machining program that determines this machining shape is displayed. I have to.
Therefore, even an operator who is not familiar with machining programs can easily identify the problematic machining command in the machining program, thereby improving work efficiency in modifying and inspecting the machining program.

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

第1図は本発明の加工プログラム検査装置を示
すブロツク図であり、第2図乃至第8図は本発明
の一実施例を示すものであり、第2図はブロツク
構成図、第3図および第4図は記憶部の主なメモ
リを示す図、第5図および第7図は動作を示す流
れ図、第6図および第8図は表示画面を示す図で
あり、第9図は加工プログラムを示す図、第10
図は金型形状を示す図、第11図は各加工形状を
示す図である。 1……プログラムカウンタ(PC)、2,2a…
…加工命令、11……マイクロコンピユータ、1
2……CRT表示装置、13,24……CPU、2
0……CRT表示管、21……キーボード、25
……加工プログラムメモリ、26……命令解釈メ
モリ、32……表示画面、33……枠、34,3
4a……加工形状、36……カーソル。
Fig. 1 is a block diagram showing a machining program inspection device of the present invention, Figs. 2 to 8 show an embodiment of the present invention, Fig. 2 is a block diagram, Figs. Figure 4 is a diagram showing the main memory of the storage section, Figures 5 and 7 are flowcharts showing the operation, Figures 6 and 8 are diagrams showing the display screen, and Figure 9 is a diagram showing the machining program. Figure 10
The figure shows the mold shape, and FIG. 11 shows each processed shape. 1...Program counter (PC), 2, 2a...
...Processing instructions, 11...Microcomputer, 1
2...CRT display device, 13, 24...CPU, 2
0...CRT display tube, 21...Keyboard, 25
...Machining program memory, 26...Command interpretation memory, 32...Display screen, 33...Frame, 34,3
4a... Machining shape, 36... Cursor.

Claims (1)

【特許請求の範囲】 1 板状物の穴あけ加工装置に用いられる複数の
加工命令2の組合わせにて構成された加工プログ
ラムの各加工命令を図形表示装置6上でシミユレ
ートすることにより、この加工プログラムを検査
する加工プログラム検査装置において、 前記加工プログラムを記憶する加工プログラム
記憶手段8と、この加工プログラム記憶手段に記
憶された加工プログラムの各加工命令を、加工形
状を表す図形とこの図形の位置を特定するための
基準座標とからなる図形情報に順次変換するとと
もに、この図形情報を前記図形表示装置に表示す
る図形表示手段7と、前記図形表示装置上に表示
された図形のうち外部から所望の部分が指定され
たとき、この指定された部分を他の部分に対して
識別表示する図形指定手段9と、前記指定された
図形の基準座標によつて前記加工プログラム記憶
手段に記憶されている加工プログラムを検索し、
前記指定された図形に対応する加工命令の情報ま
たはこの加工命令を特定し得る情報を抽出して表
示する検索表示手段10とを備えたことを特徴と
する加工プログラム検査装置。 2 前記図形表示手段は、前記指定された部分の
色を他の色と異なる色で表示することを特徴とす
る特許請求の範囲第1項記載の加工プログラム検
査装置。 3 前記検索表示手段は、前記指定された図形を
表示した加工命令を特定しうる一つの情報とそれ
に連通した前後の複数の加工命令に対応する他の
情報を同時に表示するとともに、この一つの情報
を表示する色を他の情報を表示する色と異なる色
で表示することを特徴とする特許請求の範囲第1
項記載の加工プログラム検査装置。 4 前記図形表示装置はCRT表示装置で構成さ
れ、かつ前記図形表示手段が表示した図形の上に
重畳して、その図形の色と異なつた色で、前記索
表示手段が前記指定された図形に対応する加工命
令の情報またはこの加工命令を特定し得る情報を
抽出表示することを特徴とする特許請求の範囲第
1項記載の加工プログラム検査装置。
[Scope of Claims] 1. This machining is performed by simulating each machining command of a machining program composed of a combination of a plurality of machining commands 2 used in a drilling machine for a plate-like material on a graphic display device 6. In a machining program inspection device that inspects a program, a machining program storage means 8 that stores the machining program, and each machining command of the machining program stored in this machining program storage means are stored in a shape representing a machining shape and the position of this shape. a graphic display means 7 for sequentially converting the graphic information into graphic information consisting of reference coordinates for specifying the graphic information and displaying the graphic information on the graphic display device; When a part is specified, a figure specifying means 9 identifies and displays the specified part with respect to other parts, and a machining program is stored in the machining program storage means according to the reference coordinates of the specified figure. Search for machining programs,
A machining program inspection device characterized by comprising: search and display means 10 for extracting and displaying information on a machining command corresponding to the specified graphic or information that can specify this machining command. 2. The machining program inspection device according to claim 1, wherein the graphic display means displays the designated portion in a color different from other colors. 3. The search and display means simultaneously displays one piece of information that can specify the processing command that displayed the designated figure and other information that corresponds to a plurality of processing commands before and after it that are connected to it, and also displays this one piece of information. Claim 1 characterized in that the color for displaying the information is different from the color for displaying other information.
The machining program inspection device described in Section 1. 4. The graphic display device is constituted by a CRT display device, and the graphic display means displays the specified graphic in a color different from that of the graphic, superimposed on the graphic displayed by the graphic display means. 2. The machining program inspection device according to claim 1, wherein information on a corresponding machining instruction or information that can identify this machining instruction is extracted and displayed.
JP61066442A 1986-03-25 1986-03-25 Working program inspection device Granted JPS62224435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61066442A JPS62224435A (en) 1986-03-25 1986-03-25 Working program inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61066442A JPS62224435A (en) 1986-03-25 1986-03-25 Working program inspection device

Publications (2)

Publication Number Publication Date
JPS62224435A JPS62224435A (en) 1987-10-02
JPH039808B2 true JPH039808B2 (en) 1991-02-12

Family

ID=13315892

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61066442A Granted JPS62224435A (en) 1986-03-25 1986-03-25 Working program inspection device

Country Status (1)

Country Link
JP (1) JPS62224435A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04251304A (en) * 1990-12-28 1992-09-07 Okuma Mach Works Ltd Numerical control data editing device
JP6440394B2 (en) * 2014-07-11 2018-12-19 三菱電機株式会社 Simulation image display device
WO2016027355A1 (en) * 2014-08-21 2016-02-25 三菱電機株式会社 Numerical control device
WO2024084555A1 (en) * 2022-10-17 2024-04-25 ファナック株式会社 Machining simulation assistance device and computer-readable storage medium

Also Published As

Publication number Publication date
JPS62224435A (en) 1987-10-02

Similar Documents

Publication Publication Date Title
US5619630A (en) Apparatus for producing exploded view and animation of assembling and method thereof
US4152765A (en) Programmer unit for N/C systems
JPH01209573A (en) Cad sketch input plotting method
JP2723762B2 (en) Automatic inspection system for parts
JPH039808B2 (en)
KR0182393B1 (en) Virtual computer numerical control machine tool and method
US5065332A (en) Figure element revising method
JPH0778017A (en) Method and device for checking interference between bodies in motion
JPS59195707A (en) Specifying method of shape of material in automatic programming for lathe
JP3977458B2 (en) Interactive automatic programming device
JPS6194108A (en) Manual display device for input and output of data
JPS63709A (en) Interactive NC device
JPS61249109A (en) Interactive program generating system for numerical control device
JPH08328630A (en) Working locus display system
JPH0695293B2 (en) Machining simulation method in numerical controller
JPH0410003A (en) Drawing method for polyhedral machining
JP2022165170A (en) Information processing device, information processing method, control program, recording medium, program generation method, and article manufacturing method
JP3200117B2 (en) Mechanism arrangement state processing apparatus and method
JPH06138812A (en) Plant simulating device
JPS61274845A (en) Method of simulating track of tool in nc device
JPS6238908A (en) Numerical controller
JPS63159908A (en) Simulation method for working program
JPH01172702A (en) Part-shape inspecting method
JPS6379110A (en) Numerically controlled working device
JPH04131912A (en) Numerical controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees