JPH0729028A - Moving picture processing method for numerical controller - Google Patents

Moving picture processing method for numerical controller

Info

Publication number
JPH0729028A
JPH0729028A JP17500593A JP17500593A JPH0729028A JP H0729028 A JPH0729028 A JP H0729028A JP 17500593 A JP17500593 A JP 17500593A JP 17500593 A JP17500593 A JP 17500593A JP H0729028 A JPH0729028 A JP H0729028A
Authority
JP
Japan
Prior art keywords
data
tool
area
graphic
data area
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
JP17500593A
Other languages
Japanese (ja)
Inventor
Mitsuto Miyata
光人 宮田
Mamoru Kubo
守 久保
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 JP17500593A priority Critical patent/JPH0729028A/en
Publication of JPH0729028A publication Critical patent/JPH0729028A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To execute a moving picture processing without flicker by once copying a data area in a video buffer memory, deleting data of a tool graphic, plotting tool graphic data for a moving destination and overwriting it on the data area of a copy source at a copy destination CONSTITUTION:Data of a data area 3a in a memory area 2a used for screen display is once copied in the appropriate data area 3b of a memory area 2b which is not used for screen display. Then, original graphic data 4a copied in the area 2b is deleted, and graphic data 4b in the same size is plotted at a position detached by a distance to be moved. Since graphic data 4a of the data area 3a in the area 2a exists as it is, the tool graphic of a display screen is displayed as it is. The data area 3b of the area 2b is overwritten on the same data area 3a of the area 2a. Thus, the moving picture of the tool graphic can be obtained by continuously repeating a series of works.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置の動画処理
方法に関し、特に数値制御装置で切削シミュレーション
などを行うときに工具のような所定の図形を表示画面上
で移動させる数値制御装置の動画処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture processing method for a numerical control device, and more particularly to a moving picture for a numerical control device for moving a predetermined figure such as a tool on a display screen when performing a cutting simulation or the like with the numerical control device. Regarding processing method.

【0002】[0002]

【従来の技術】産業用工作機械などに用いられる数値制
御装置においては、工作機械による加工を行うとき、目
的とする形状が得られなかったり、ワークと工具との干
渉があったりすることがあり、これにより加工に費やし
た時間が無駄となり、工作機械の稼働率を低下させるこ
とにつながっていた。こうした加工の際のワークと工具
との干渉などの事態を避けるため、まず加工を行う前
に、数値制御装置の表示画面にて切削状況のシミュレー
ションを行い、加工プログラムの妥当性の検証を行うこ
とがある。この検証により、実際に加工を行うときの不
具合を事前に解消することができ、工作機械の稼働率の
低下を防止できるようになった。
2. Description of the Related Art In a numerical control device used for an industrial machine tool or the like, when a machine tool is used for machining, a desired shape may not be obtained or a workpiece and a tool may interfere with each other. As a result, the time spent for machining is wasted, leading to a reduction in the operating rate of machine tools. In order to avoid such situations as interference between the work and the tool during machining, first, before machining, simulate the cutting situation on the display screen of the numerical controller to verify the validity of the machining program. There is. Through this verification, it is possible to eliminate problems in actual machining in advance and prevent a decrease in the operating rate of the machine tool.

【0003】この切削シミュレーションは、表示装置の
表示画面上で、まず、ワークや工具などの加工を行う際
に必要な部材に対応した図形を表示する。そして、実際
の加工と同様に工具などの図形を移動させて、ワークの
切削過程又は旋削過程をリアルタイムに表示する。こう
して加工の際のワークと工具との干渉をチェックでき
た。
In this cutting simulation, on the display screen of the display device, first, a graphic corresponding to a member necessary for machining a work or a tool is displayed. Then, similarly to the actual machining, a figure such as a tool is moved to display the cutting process or turning process of the work in real time. In this way, it was possible to check the interference between the work and the tool during machining.

【0004】ここで、表示画面上で工具などのこの種の
描画には、従来では、特殊なアニメーション用のハード
ウェアを使用して行うか、又はソフトウェア的に処理し
て行っている。
Here, drawing of this kind of tool or the like on the display screen has heretofore been carried out by using special animation hardware or by software processing.

【0005】特殊なアニメーション用のハードウェアに
よる動画処理方法は、工具図形をあるメモリの中に保存
しておいて、表示させる場合に、その保存されている図
形を少しずつ表示位置をずらして表示させていくことに
より、工具が移動しているように見せている。
In a moving image processing method using hardware for special animation, when a tool figure is stored in a certain memory and is displayed, the stored figure is displayed by shifting the display position little by little. By making them appear, the tool appears to be moving.

【0006】図6は工具図形の移動をビデオバッファメ
モリ内にてソフトウェア的に行う動画処理方法の従来例
を示す説明図である。図において、(A)は移動に係る
工具の画像パターンを表した画像マトリクス1a、
(B)はその画像パターンの論理マトリクス1bを示し
ている。説明を簡単にするため、工具図形は3ドット×
4ドット構成の大きさとし、図形は1ドット右に移動す
るものとしてある。また、画像マトリクス1aにおい
て、工具に相当する部分は斜線で示してあり、論理マト
リクス1bにおいては、論理値「1」が与えられてい
る。
FIG. 6 is an explanatory diagram showing a conventional example of a moving image processing method in which the movement of a tool figure is performed by software in a video buffer memory. In the figure, (A) is an image matrix 1a representing an image pattern of a tool related to movement,
(B) shows the logical matrix 1b of the image pattern. To simplify the explanation, the tool figure is 3 dots ×
It has a size of 4 dots, and the figure moves to the right by 1 dot. Further, in the image matrix 1a, a portion corresponding to a tool is shown by hatching, and in the logical matrix 1b, a logical value "1" is given.

【0007】ここで、工具図形の移動処理方法について
説明する。まず、ビデオバッファメモリ内では工具図形
の消去処理が行われる。すなわち、同じ論理マトリクス
1bの図形を同じメモリ位置にて排他的論理和演算を行
う。これにより、同じ論理値「1」又は「0」のメモリ
領域はすべて論理値「0」となって、ビデオバッファメ
モリ内は論理マトリクス1baとなり、表示画面上では
画像マトリクス1aaとなって図形が消去される。次
に、論理マトリクス1bの図形を1ドット右のメモリ位
置の図形と排他的論理和演算を行い、工具図形の描画処
理を行う。これにより、表示画面上では画像マトリクス
1abとなり、ビデオバッファメモリ内では論理マトリ
クス1bbとなって、オペレータには工具が移動したよ
うに見えることになる。このように、工具図形の消去及
び描画の度に排他的論理和演算を行い、これら2回の排
他的論理和演算を連続的に繰り返すことによって、動画
が得られることになる。
Now, a method of moving the tool graphic will be described. First, the tool graphic is erased in the video buffer memory. That is, the exclusive OR operation is performed on the figures of the same logical matrix 1b at the same memory location. As a result, all the memory areas having the same logical value "1" or "0" have the logical value "0", the video buffer memory has the logical matrix 1ba, and the image on the display screen has the image matrix 1aa. To be done. Next, the graphic of the logic matrix 1b is subjected to an exclusive OR operation with the graphic at the memory position one dot to the right, and the drawing process of the tool graphic is performed. As a result, the image matrix 1ab is formed on the display screen, and the logical matrix 1bb is formed in the video buffer memory, so that the operator looks as if the tool has moved. In this way, a moving image can be obtained by performing the exclusive OR calculation every time the tool graphic is erased and drawn and repeating these two exclusive OR calculations continuously.

【0008】[0008]

【発明が解決しようとする課題】ところで、従来の工具
図形の動画処理方法において、まず、特殊なアニメーシ
ョン用のハードウェアによる方法では、別途ハードウェ
アを用意する必要があるためコストが上がってしまう。
一方、2回の排他的論理和演算を行って動画を得る方法
では、工具図形の消去及び描画が交互に行われるため、
画面の図形表示にちらつきが生じ、非常に見苦しくなる
という問題点があった。
By the way, in the conventional moving image processing method for a tool figure, the method using the special animation hardware first requires additional hardware, which increases the cost.
On the other hand, in the method of obtaining the moving image by performing the exclusive OR operation twice, the erasing and drawing of the tool figure are alternately performed.
There is a problem in that the graphic display on the screen flickers, making it very unsightly.

【0009】本発明はこのような点に鑑みてなされたも
のであり、特殊なアニメーション用のハードウェアを用
いず、ちらつきのない動画処理が可能な数値制御装置の
動画処理方法を提供することを目的とする。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a moving image processing method for a numerical control device capable of performing moving image processing without flicker without using special animation hardware. To aim.

【0010】[0010]

【課題を解決するための手段】本発明では上記課題を解
決するために、切削シミュレーションなどで工具図形を
動画表示させる数値制御装置の動画処理方法において、
図形表示に使用されるビデオバッファメモリ内で移動対
象となる工具図形のデータを含むデータ領域を、図形表
示に使用されないメモリにコピーし、コピーされたデー
タ領域で工具図形のデータを消去するとともに同じデー
タ領域内の別な位置に前記工具図形のデータを描画し、
描画された前記工具図形のデータを前記図形表示に使用
されるビデオバッファメモリ内のコピー元のデータ領域
にコピーして上書きする、ことからなる数値制御装置の
動画処理方法が提供される。
In order to solve the above problems, the present invention provides a moving image processing method of a numerical control device for displaying a moving image of a tool figure in a cutting simulation or the like.
In the video buffer memory used for graphic display, copy the data area containing the data of the tool graphic to be moved to the memory not used for graphic display, and delete the data of the tool graphic in the copied data area. Draw the data of the tool figure at another position in the data area,
There is provided a moving image processing method for a numerical control device, which comprises copying the drawn data of the tool graphic to a copy source data area in a video buffer memory used for displaying the graphic and overwriting the data area.

【0011】[0011]

【作用】切削シミュレーションなどで工具図形を動画表
示させるとき、まず、図形表示に使用されるビデオバッ
ファメモリ内にある工具図形のデータを画面表示すると
ともにその工具図形のデータを含むデータ領域を図形表
示に使用されないメモリにコピーする。次に、図形表示
に使用されるビデオバッファメモリ内の工具図形のデー
タの画面表示を維持しながら、図形表示に使用されない
メモリにコピーされたデータ領域の中から工具図形のデ
ータを消去するとともに同じデータ領域内の別な位置に
同じ工具図形のデータを描画する。その描画された工具
図形のデータを図形表示に使用されるビデオバッファメ
モリ内の同じデータ領域に上書きすることによって、移
動前の工具図形の画面上での消去処理をなくすようにし
ている。
[Operation] When displaying a tool figure as a moving image in a cutting simulation or the like, first, the tool figure data in the video buffer memory used for the figure display is displayed on the screen and the data area containing the tool figure data is also displayed as a figure. Copy to memory not used by. Next, while maintaining the screen display of the tool graphic data in the video buffer memory used for graphic display, the data of the tool graphic is erased from the data area copied to the memory not used for graphic display and the same. Draw the same tool figure data at different positions in the data area. By overwriting the data of the drawn tool figure in the same data area in the video buffer memory used for displaying the figure, the erasing process on the screen of the tool figure before the movement is eliminated.

【0012】[0012]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明による数値制御装置の動画処理方
法の原理説明図である。図において、2は数値制御装置
のビデオバッファメモリを示しており、中央の一点鎖線
より上の領域が画面表示に使用されているメモリ領域2
a、下の領域が同じビデオバッファメモリ2の中で画面
表示に使用されないメモリ領域2bを示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an explanatory view of the principle of a moving image processing method of a numerical controller according to the present invention. In the figure, reference numeral 2 denotes a video buffer memory of the numerical control device, and the area above the central dashed line is a memory area 2 used for screen display.
The lower area a shows a memory area 2b in the same video buffer memory 2 which is not used for screen display.

【0013】いま、表示画面にはそのある表示領域にあ
る工具図形が表示されており、ビデオバッファメモリ2
にはその表示領域に対応する記憶位置のデータ領域3a
に工具の図形データ4aが格納されているとする。な
お、説明の都合上、ビデオバッファメモリ2内の表示に
おいて、データ領域3aは表示画面上で工具図形が表示
されている付近の表示領域を示し、その中の図形データ
4aは表示されている工具図形を図式的に示したもの
で、メモリの中の論理状態を表したものではない。
Now, the tool graphic in a certain display area is displayed on the display screen, and the video buffer memory 2
Is the data area 3a of the storage position corresponding to the display area.
It is assumed that the tool graphic data 4a is stored in. For convenience of description, in the display in the video buffer memory 2, the data area 3a indicates a display area in the vicinity of the tool graphic displayed on the display screen, and the graphic data 4a therein is the displayed tool. The figure is a diagrammatic representation, not a representation of the logical states in memory.

【0014】画面に表示されている工具図形を移動しよ
うとする場合、図1(A)に示したように、まず、画面
表示に使用されているメモリ領域2aにあるデータ領域
3aのデータを、一旦、画面表示に使用されないメモリ
領域2bの適当なデータ領域3bにそっくりコピーす
る。次に、図1(B)に示したように、画面表示に使用
されないメモリ領域2bにコピーされた元の図形データ
4aは消去され、移動すべき距離だけ離れた位置に同じ
大きさの図形データ4bが描画される。このとき、画面
表示に使用されているメモリ領域2aのデータ領域3a
の図形データ4aはそのままであるので、表示画面の工
具図形はそのまま表示されている。そして、図1(C)
に示したように、画面表示に使用されないメモリ領域2
bのデータ領域3bは画面表示に使用されているメモリ
領域2aの同じデータ領域3aに上書きされる。これら
の一連の作業を連続して繰り返すことにより、工具図形
の動画を得ることができる。
When moving the tool graphic displayed on the screen, as shown in FIG. 1A, first, the data in the data area 3a in the memory area 2a used for the screen display is Once, the entire data is copied to an appropriate data area 3b of the memory area 2b which is not used for screen display. Next, as shown in FIG. 1B, the original graphic data 4a copied to the memory area 2b that is not used for screen display is erased, and the graphic data of the same size is placed at a position separated by the distance to be moved. 4b is drawn. At this time, the data area 3a of the memory area 2a used for screen display
Since the graphic data 4a of No. 4 is left as it is, the tool graphic on the display screen is displayed as it is. And FIG. 1 (C)
As shown in, memory area 2 not used for screen display
The data area 3b of b is overwritten on the same data area 3a of the memory area 2a used for screen display. By successively repeating these series of operations, a moving image of the tool figure can be obtained.

【0015】図5は本発明の一実施例である数値制御装
置の構成を示すブロック図である。図において、プロセ
ッサ11は数値制御装置全体の制御の中心となるプロセ
ッサであり、バス21を介して、読み取り専用メモリ1
2に格納されたシステムプログラムを読み出し、このシ
ステムプログラムに従って、数値制御装置全体の制御を
実行する。ランダムアクセスメモリ13には一時的な計
算データ、表示データ、工具図形データなどが格納され
る。不揮発性メモリ14には工具補正量、ピッチ誤差補
正量、加工プログラム及びパラメータなど電源切断後も
保持すべきデータが格納される。
FIG. 5 is a block diagram showing the configuration of a numerical controller according to an embodiment of the present invention. In the figure, a processor 11 is a central processor for controlling the entire numerical controller, and a read-only memory 1 is provided via a bus 21.
The system program stored in No. 2 is read out, and the control of the entire numerical controller is executed according to this system program. The random access memory 13 stores temporary calculation data, display data, tool graphic data, and the like. The non-volatile memory 14 stores data such as a tool correction amount, a pitch error correction amount, a machining program and parameters to be retained even after the power is turned off.

【0016】プログラマブル・マシン・コントローラ2
2は数値制御装置に内蔵され、ラダー形式で作成された
シーケンスプログラムで工作機械20を制御する。すな
わち、加工プログラムで指令された、M機能(補助機
能)、S機能(主軸機能)及びT機能(工具機能)に従
って、これらをシーケンスプログラムで工作機械20に
必要な信号に変換して工作機械20側に出力する。この
出力信号は工作機械20のマグネットなどを駆動し、油
圧バルブ、空圧バルブ及び電気アクチュエータなどを作
動させる。また、工作機械20からはリミットスイッチ
及び機械操作盤のスイッチなどの接点信号を受け、必要
な処理をして、プロセッサ11に渡す。
Programmable machine controller 2
Reference numeral 2 is built in the numerical control device and controls the machine tool 20 by a sequence program created in a ladder format. That is, according to the M function (auxiliary function), S function (spindle function) and T function (tool function) instructed by the machining program, these are converted into signals necessary for the machine tool 20 by the sequence program and the machine tool 20 is converted. Output to the side. This output signal drives a magnet or the like of the machine tool 20 to operate a hydraulic valve, a pneumatic valve, an electric actuator or the like. Further, it receives contact signals from the machine tool 20, such as limit switches and switches on the machine operation panel, performs necessary processing, and passes the signals to the processor 11.

【0017】軸制御回路18はプロセッサ11からの各
軸の移動指令を受けて、各軸の指令をサーボアンプ19
に出力する。サーボアンプ19はこの移動指令を受けて
工作機械20の各軸のサーボモータを駆動する。
The axis control circuit 18 receives the movement command for each axis from the processor 11 and outputs the command for each axis to the servo amplifier 19.
Output to. The servo amplifier 19 receives the movement command and drives the servo motors of the respective axes of the machine tool 20.

【0018】また、オペレータとのインタフェースをと
るCRT/MDI(Cathode Ray Tube / Manual Data I
nput)ユニット25はグラフィック制御回路15、表示
装置16、キーボード17及びソフトウェアキー23を
有している。グラフィック制御回路15は各軸の現在位
置、アラーム、パラメータ、図形データなどのディジタ
ルデータを画像信号に変換して出力する。この画像信号
は表示装置16に送られて表示される。キーボード17
はシンボリックキー、数値キーなどからなり、必要な図
形データ、数値制御データをこれらのキーを使用して入
力する。ソフトウェアキー23はシステムプログラムな
どによって機能が変化する指令キーであって、その機能
名称などは表示装置16の所定の画面位置に表示され
る。
Further, a CRT / MDI (Cathode Ray Tube / Manual Data I) for interfacing with an operator is provided.
The nput unit 25 has a graphic control circuit 15, a display device 16, a keyboard 17 and a software key 23. The graphic control circuit 15 converts digital data such as the current position of each axis, alarms, parameters and graphic data into an image signal and outputs it. This image signal is sent to the display device 16 and displayed. Keyboard 17
Consists of symbolic keys, numeric keys, etc., and inputs the required figure data and numeric control data using these keys. The software key 23 is a command key whose function is changed by a system program or the like, and the function name or the like is displayed at a predetermined screen position of the display device 16.

【0019】図2は本発明の数値制御装置の動画処理方
法の一実施例を示す説明図である。この実施例におい
て、数値制御装置はパーソナルコンピュータを利用して
構成した。パーソナルコンピュータはたとえば、米国I
BM社のPC/ATシリーズのパーソナルコンピュータ
であり、256キロバイトの表示ビデオバッファメモリ
を有している。ビデオバッファメモリは図5に示したグ
ラフィック制御回路15に実装されているグラフィック
VRAMとすることができる。
FIG. 2 is an explanatory diagram showing an embodiment of the moving image processing method of the numerical control apparatus according to the present invention. In this embodiment, the numerical controller is constructed by using a personal computer. Personal computers are, for example, US I
BM's PC / AT series personal computer with 256 kilobytes of display video buffer memory. The video buffer memory can be a graphic VRAM implemented in the graphic control circuit 15 shown in FIG.

【0020】640×480ドットの解像度のグラフィ
ック表示が可能なビデオモード12hexのVGA(Vi
deo Graphics Array)では、256キロバイトのビデオ
バッファメモリのうち、先頭の152キロバイトが表示
用に用いられる。すなわち、640×480ドットのグ
ラフィック表示を行うのに必要なバイト数は152キロ
バイトだけである。したがって、ビデオバッファメモリ
をそのビデオモードで使用するときには、残り104キ
ロバイト分のメモリは画面表示に使用されないメモリ領
域となる。本発明は画面表示に使用される256キロバ
イトのビデオバッファメモリと画面表示に使用されない
残りの104キロバイトのビデオバッファメモリとを使
用して、動画処理を行うようにしている。
VGA (Vi) with video mode 12 hex capable of graphic display with a resolution of 640 × 480 dots.
In the deo Graphics Array), the first 152 kilobytes of the 256 kilobyte video buffer memory are used for display. That is, the number of bytes required to perform the graphic display of 640 × 480 dots is only 152 kilobytes. Therefore, when the video buffer memory is used in that video mode, the remaining 104 kilobytes of memory is a memory area not used for screen display. The present invention uses 256 kilobytes of video buffer memory used for screen display and the remaining 104 kilobytes of video buffer memory not used for screen display to perform moving image processing.

【0021】図2において、ビデオバッファメモリ2全
体で256キロバイトの記憶容量を有し、中央の一点鎖
線より上の領域が画面表示に使用される152キロバイ
トのメモリ領域2aで、下の領域が画面表示に使用され
ない104キロバイトのメモリ領域2bである。
In FIG. 2, the video buffer memory 2 has a storage capacity of 256 kilobytes as a whole, and an area above the central dashed line is a 152 kilobyte memory area 2a used for screen display, and a lower area is the screen. It is a memory area 2b of 104 kilobytes which is not used for display.

【0022】いま、表示画面にはそのある表示領域に移
動対象の工具図形が表示されており、ビデオバッファメ
モリ2にはその表示領域に対応する記憶位置に工具図形
の図形データ4aが記憶されているとする。最初は図2
(A)に示したように、メモリ領域2aの図形データ4
aをメモリ領域2bにコピーするが、そのとき、コピー
元の少なくとも移動対象の工具図形の図形データ4aを
含んだデータ領域3aを定める。
Now, a tool graphic to be moved is displayed in a certain display area on the display screen, and the graphic data 4a of the tool graphic is stored in the storage location corresponding to the display area in the video buffer memory 2. Suppose First is Figure 2.
As shown in (A), the graphic data 4 in the memory area 2a
Although a is copied to the memory area 2b, at this time, the data area 3a including at least the graphic data 4a of the tool graphic to be moved which is the copy source is determined.

【0023】図3は図形データ4aを含むデータ領域3
aの詳細例を示す図である。この図において、図3
(A)はコピー元のデータ領域3aの一例を示したもの
で、このデータ領域3aは移動対象の工具図形の図形デ
ータ4aの移動ドット数に応じてその四方に余分に取っ
ている。図示の例では、工具図形が1ドット移動すると
してあり、したがって、データ領域3aは工具図形の図
形データ4aより四方に1ドットだけ大きく取られてい
る。もちろん、これらの余分のドットは移動ドットより
多くてもよい。
FIG. 3 shows a data area 3 including graphic data 4a.
It is a figure which shows the detailed example of a. In this figure, FIG.
(A) shows an example of the data area 3a of the copy source, and the data area 3a is provided in four extra directions according to the number of moving dots of the graphic data 4a of the tool graphic to be moved. In the illustrated example, the tool figure is supposed to move by one dot, and therefore the data area 3a is taken larger by one dot than the figure data 4a of the tool figure. Of course, these extra dots may be larger than the moving dots.

【0024】このようにして定められたデータ領域3a
は画面表示に使用されないメモリ領域2bのデータ領域
3bに一旦コピーされる。次に、図2(B)に示したよ
うに、データ領域3bの図形データ4aは消去され、移
動ドット数だけ移動方向に離れた位置に図形データ4b
が描画される。この描画状態は図3(B)に示してあ
る。図示の例では、工具図形が右方向に1ドット移動す
る場合を示している。もちろん、このときの表示画面
は、メモリ領域2aのデータ領域3aの図形データ4a
に変化はないので、工具図形をそのまま表示している。
The data area 3a defined in this way
Is once copied to the data area 3b of the memory area 2b which is not used for screen display. Next, as shown in FIG. 2B, the graphic data 4a in the data area 3b is erased, and the graphic data 4b is moved to a position separated by the number of moving dots in the moving direction.
Is drawn. This drawing state is shown in FIG. The illustrated example shows a case where the tool figure moves one dot to the right. Of course, the display screen at this time is the graphic data 4a of the data area 3a of the memory area 2a.
Since there is no change in, the tool figure is displayed as it is.

【0025】最後に、図2(C)に示したように、画面
表示に使用されないメモリ領域2bのデータ領域3bは
コピー元のデータ領域3aにコピーされ、上書きされ
る。これにより、工具図形は途中で消えることなく滑ら
かに移動できることになる。そして、これらの一連の作
業を連続して繰り返すことにより、工具図形の動画を得
ることができる。
Finally, as shown in FIG. 2C, the data area 3b of the memory area 2b not used for screen display is copied to the copy source data area 3a and overwritten. As a result, the tool figure can be moved smoothly without disappearing on the way. Then, by successively repeating these series of operations, a moving image of the tool figure can be obtained.

【0026】図4はコピー元のデータ領域3aの別の例
を示す詳細図である。この図によれば、図4(A)に示
したように、コピー元のデータ領域3aはその移動方向
が考慮され、図形データ4aに加えその移動ドット数だ
け移動方向に余分に領域を確保している。図示の例で
は、工具図形が2ドット下方に移動する場合を示してあ
り、したがって、データ領域3aは工具図形の図形デー
タ4aより下方に2ドット分余分に取られている。これ
により、メモリ領域2bでの作業領域が少なくて済むと
いう利点がある。これに対し、図3の実施例では、デー
タ領域3aを図形データ4aの移動方向に関係なく図形
データ4aの四方に移動分のドット数だけ大きく取って
いるため、どの方向でも移動が可能となっており、この
ため、予め移動方向を知る必要がないので、移動処理の
ための計算が簡単という利点がある。
FIG. 4 is a detailed view showing another example of the copy source data area 3a. According to this figure, as shown in FIG. 4A, the moving direction of the copy source data area 3a is taken into consideration, and in addition to the figure data 4a, an extra area is secured in the moving direction by the number of moving dots. ing. The illustrated example shows the case where the tool figure moves downward by 2 dots, and therefore, the data area 3a is taken below the figure data 4a of the tool figure by 2 dots. This has an advantage that the work area in the memory area 2b can be reduced. On the other hand, in the embodiment of FIG. 3, since the data area 3a is set to be large in the four directions of the graphic data 4a regardless of the moving direction of the graphic data 4a, it is possible to move in any direction. Therefore, since it is not necessary to know the moving direction in advance, there is an advantage that the calculation for the moving process is simple.

【0027】[0027]

【発明の効果】以上説明したように本発明では、切削シ
ミュレーションなどで工具図形を移動表示させるとき、
移動対象となる工具図形のデータを含むデータ領域を、
図形表示に使用されないビデオバッファメモリに一旦コ
ピーし、コピー先で工具図形のデータの消去及び移動先
への工具図形データの描画を行い、これをコピー元のデ
ータ領域に上書きするようにしたので、特殊なハードウ
ェアを用いることなく、ちらつきのない動画処理が可能
となる。
As described above, according to the present invention, when a tool figure is moved and displayed in a cutting simulation or the like,
A data area containing the data of the tool figure to be moved,
Since it is once copied to the video buffer memory that is not used for figure display, the tool figure data is erased at the copy destination and the tool figure data is drawn to the move destination, and this is overwritten in the data area of the copy source. Flicker-free video processing is possible without using special hardware.

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

【図1】本発明による数値制御装置の動画処理方法の原
理説明図である。
FIG. 1 is a principle explanatory diagram of a moving image processing method of a numerical control device according to the present invention.

【図2】本発明の数値制御装置の動画処理方法の一実施
例を示す説明図である。
FIG. 2 is an explanatory diagram showing an example of a moving image processing method of the numerical control apparatus according to the present invention.

【図3】図形データを含むデータ領域の詳細例を示す図
である。
FIG. 3 is a diagram showing a detailed example of a data area including graphic data.

【図4】コピー元のデータ領域の別の例を示す詳細図で
ある。
FIG. 4 is a detailed diagram showing another example of a copy source data area.

【図5】本発明の一実施例である数値制御装置の構成を
示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a numerical control device according to an embodiment of the present invention.

【図6】工具図形の移動をビデオバッファメモリ内にて
ソフトウェア的に行う動画処理方法の従来例を示す説明
図である。
FIG. 6 is an explanatory diagram showing a conventional example of a moving image processing method in which a tool figure is moved by software in a video buffer memory.

【符号の説明】 2 ビデオバッファメモリ 2a 画面表示に使用されているメモリ領域 2b 画面表示に使用されないメモリ領域 3 データ領域 4 図形データ[Explanation of symbols] 2 Video buffer memory 2a Memory area used for screen display 2b Memory area not used for screen display 3 Data area 4 Graphic data

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9064−3H G05B 19/405 M ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location 9064-3H G05B 19/405 M

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 切削シミュレーションなどで工具図形を
動画表示させる数値制御装置の動画処理方法において、 図形表示に使用されるビデオバッファメモリ内で移動対
象となる工具図形のデータを含むデータ領域を、図形表
示に使用されないメモリにコピーし、 コピーされたデータ領域で工具図形のデータを消去する
とともに同じデータ領域内の別な位置に前記工具図形の
データを描画し、 描画された前記工具図形のデータを前記図形表示に使用
されるビデオバッファメモリ内のコピー元のデータ領域
にコピーして上書きする、 ことからなる数値制御装置の動画処理方法。
1. A moving image processing method of a numerical control device for displaying a moving image of a tool figure in a cutting simulation or the like, wherein a data area containing data of a tool figure to be moved is created in a figure in a video buffer memory used for displaying the figure. Copy to a memory not used for display, erase the data of the tool figure in the copied data area, draw the data of the tool figure at another position in the same data area, and draw the data of the tool figure. A moving image processing method for a numerical control device, comprising: copying to a data area of a copy source in a video buffer memory used for graphic display and overwriting.
【請求項2】 前記図形表示に使用されるビデオバッフ
ァメモリ内のデータ領域は前記工具図形の四方に少なく
とも移動分のドット数だけ余分に含んでいることを特徴
とする請求項1記載の数値制御装置の動画処理方法。
2. The numerical control according to claim 1, wherein the data area in the video buffer memory used for displaying the graphic includes an extra number of dots corresponding to at least the moving amount in four directions of the tool graphic. Video processing method of the device.
【請求項3】 前記図形表示に使用されるビデオバッフ
ァメモリ内のデータ領域は前記工具図形の移動方向に少
なくとも移動分のドット数だけ余分に含んでいることを
特徴とする請求項1記載の数値制御装置の動画処理方
法。
3. The numerical value according to claim 1, wherein the data area in the video buffer memory used for displaying the figure includes at least the number of dots corresponding to the movement in the movement direction of the tool figure. Video processing method of control device.
【請求項4】 前記図形表示に使用されないメモリはビ
デオバッファメモリであることを特徴とする請求項1記
載の数値制御装置の動画処理方法。
4. The moving image processing method of the numerical controller according to claim 1, wherein the memory not used for the graphic display is a video buffer memory.
JP17500593A 1993-07-15 1993-07-15 Moving picture processing method for numerical controller Pending JPH0729028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17500593A JPH0729028A (en) 1993-07-15 1993-07-15 Moving picture processing method for numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17500593A JPH0729028A (en) 1993-07-15 1993-07-15 Moving picture processing method for numerical controller

Publications (1)

Publication Number Publication Date
JPH0729028A true JPH0729028A (en) 1995-01-31

Family

ID=15988554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17500593A Pending JPH0729028A (en) 1993-07-15 1993-07-15 Moving picture processing method for numerical controller

Country Status (1)

Country Link
JP (1) JPH0729028A (en)

Similar Documents

Publication Publication Date Title
US4754269A (en) Graphic display method for displaying a perspective view of an object on a CRT
EP0249399A2 (en) Multiwindow control method and apparatus for work station having multiwindow function
JPH02100704A (en) Robot programming check system
US5202671A (en) Pick function implementation in a parallel processing system
JP2773517B2 (en) Program display device
US5359530A (en) Animated plotting method in NC apparatus for multi-system lathe
JPH0729028A (en) Moving picture processing method for numerical controller
JPH09120352A (en) Multiwindow system
JP2854174B2 (en) Enlargement drawing method in numerical controller
JPH06332521A (en) Numerical controller with multi-window display function
JPH06202605A (en) Display controller
JPS6165314A (en) Graphic display method and apparatus for computer numerical controller
JP2628049B2 (en) Tool movement trajectory display device in numerical controller
EP0425171B1 (en) Object identification in a display system
JPS59125405A (en) Automatic computer programming device
JPH0337024Y2 (en)
JP2819985B2 (en) Display control device
JPS63282504A (en) Display system
JPS61187011A (en) Graphic display system of numerical controller
JPH07295617A (en) Numerical controller with data arithmetic setting function
JPH01258105A (en) Pc program displaying system
JPH07334225A (en) Program executing system for cnc
JPH0844884A (en) Data display method and data processor
JPH0793011A (en) Data setting method for numerical control unit
JPH07271418A (en) Editing system for nc program