JPH01270109A - Nc program checking system - Google Patents

Nc program checking system

Info

Publication number
JPH01270109A
JPH01270109A JP9946988A JP9946988A JPH01270109A JP H01270109 A JPH01270109 A JP H01270109A JP 9946988 A JP9946988 A JP 9946988A JP 9946988 A JP9946988 A JP 9946988A JP H01270109 A JPH01270109 A JP H01270109A
Authority
JP
Japan
Prior art keywords
tool
color
shape
program
frame memory
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
JP9946988A
Other languages
Japanese (ja)
Inventor
Mitsuto Miyata
宮田 光人
Teruyuki Matsumura
松村 輝幸
Hideaki Maeda
英朗 前田
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 JP9946988A priority Critical patent/JPH01270109A/en
Publication of JPH01270109A publication Critical patent/JPH01270109A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35316Interference checking between tool, machine, part, chuck, machining range
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35333Display raw material, blank, tool locus, workpiece, alarm if error
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35489Discriminate, different colour, highlight between two states

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To shorten the time of checking work by discriminating the bite of a tool in component shape by detecting the fact that the tool on a display picture is superposed on the component shape, and performing alarm display. CONSTITUTION:First of all, colors to plot raw material shape 3, the component shape 4, and the tool 2 are set, for example, at a green color for the raw material 3, a blue color for the component shape 4, and a red color for the tool 2. And when the red color of the tool 2 is superposed on the blue color of the component shape 4 on a picture by the movement of the tool 2, or when the color of a background is superposed on the blue color of the component shape 4, it is judged that the bite is generated. In such a case, it is decided whether or not a logical product at the same coordinate position on the picture of a frame memory of red color and the frame memory of blue color goes to '1', or whether or not the storage of the coordinate position stored in the frame memory of blue color is erased. And when it is judged as 'YES' by the above decision, the alarm display is performed 8 on a screen. In such a way, it is possible to shorten the checking work.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 数値制御装置(CNC)あるいは、自動プログラミング
装置等に使用されるNCプログラムのチェック方式に関
し、特に工具と素材形状の干渉をチェックするNCプロ
グラムのチェック方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a method for checking an NC program used in a numerical control device (CNC) or an automatic programming device, particularly for checking an interference between a tool and a material shape. Regarding the check method.

〔従来の技術〕[Conventional technology]

複雑な部品形状のNCプログラムの作成作業では、作成
後にプログラムの誤りがないかどうかを再鏡認(チェッ
ク)する必要がある。このチエ・ツク作業はプログラミ
ングにおいて重要な作業ではあるが、これをなるべく単
時間に済ませたいという要請がある。そういった要請に
応える一つの手段として、次のような方法が行われてい
る。
When creating an NC program for a complex part shape, it is necessary to review (check) the program for errors after creation. This checking work is an important work in programming, but there is a desire to complete it in as little time as possible. The following methods are being used as a means to meet such demands.

すなわち、素材形状及び部品形状を表示画面上に描画し
、NCプログラムが指令する経路を工具が移動して刻々
と素材形状が部品形状へ近づいていく様子を映し出し、
それをオペレータが見て確認する方法である。
In other words, the shape of the material and the part are drawn on the display screen, and the tool moves along the path instructed by the NC program, showing how the shape of the material approaches the part shape moment by moment.
This is a way for the operator to see and confirm it.

〔発明が解決しようとする課題] しかし、このような方法では作成したプログラムが正し
いか否かの判定は、シミュレート後の素材形状と部品形
状とが一致することを、オペレータが画面を見ながら判
断しなければならない。
[Problem to be solved by the invention] However, in such a method, it is necessary for the operator to judge whether the created program is correct or not while looking at the screen to confirm that the material shape after simulation matches the part shape. have to judge.

本発明はこのような点に迄みてなされたものであり、表
示画面上の工具が部品形状と重なったことを検出するこ
とによって、工具の部品形状へのくい込みを判別し、画
面にアラーム表示をするようにしたNCプログラムのチ
ェック方式を提供することにある。
The present invention has been made in view of these points, and by detecting that the tool on the display screen overlaps with the part shape, it is possible to determine whether the tool has penetrated into the part shape and to display an alarm on the screen. An object of the present invention is to provide a method for checking an NC program.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するために、数値制御装置(
CNC)あるいは、自りJプログラム作成装置でのNC
プログラムのチェック方式表示画面上の工具が部品形状
と重なったことを検出して、該工具の部品形状へのくい
込みを判別し、アラーム表示を行うことを特徴とするN
Cプログラムのチェック方式が、 提供される。
In order to solve the above problems, the present invention provides a numerical control device (
CNC) or NC using your own J program creation device
Program check method N characterized in that it detects that the tool on the display screen overlaps with the part shape, determines whether the tool has penetrated into the part shape, and displays an alarm.
A checking method for C programs is provided.

〔作用〕[Effect]

素材形状、部品形状および工具をそれぞれ異なる色で描
画し、NCプログラムの指令に従って画面上で工具を移
動させる。工具の色が部品形状の色と重なった場合、又
は背景色と部品の色が重なった場合は工具のくい込みが
生じたと判断して、画面にアラームを表示する。
The material shape, part shape, and tool are drawn in different colors, and the tool is moved on the screen according to the commands of the NC program. If the color of the tool overlaps with the color of the part shape, or if the background color and the color of the part overlap, it is determined that tool digging has occurred and an alarm is displayed on the screen.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図に本発明のNCプログラムのチェック時における
表示画面の例を示す。図において、1は表示画面である
。2は工具形状を示す線であり、赤色で描画されている
。2aは工具の刃先であり、赤色で塗り潰されている。
FIG. 1 shows an example of a display screen when checking the NC program of the present invention. In the figure, 1 is a display screen. 2 is a line indicating the tool shape, which is drawn in red. 2a is the cutting edge of the tool, which is filled in red.

3は素材形状を示し、緑色の線で描画され形状の内部は
同じ色の斜線で塗り潰しである。4は部品形状を示し、
青色の線で描画されている。5はチャック形状を示す。
3 indicates the shape of the material, which is drawn with green lines and the inside of the shape is filled with diagonal lines of the same color. 4 indicates the part shape;
It is drawn with a blue line. 5 indicates the chuck shape.

6は刃先の移り1軌跡を示し、70点線で示される範囲
は素材が工具によって切削された部分を示す。
6 indicates one locus of movement of the cutting edge, and the range indicated by the 70-dot line indicates the portion of the material cut by the tool.

8はアラーム表示である。8 is an alarm display.

次に、動作について説明する。まず、素材形状と部品形
状及び工具を描画する色をカラー画面を表示する色の三
原色、すなわち緑色、青色、赤色の中から互いに異なる
ように選んで設定する。本実施例では、素材形状には緑
色、部品形状には青色、工具には赤色を設定しである。
Next, the operation will be explained. First, colors for drawing the material shape, part shape, and tool are selected and set to be different from each other from among the three primary colors used to display the color screen, that is, green, blue, and red. In this embodiment, the material shape is set in green, the part shape is set in blue, and the tool is set in red.

このようにすることによって、素材形状、部品形状及び
工具を描画する一画面の色のフレームメモリはそれぞれ
互いに独立して設定されたことになる。
By doing this, the frame memories of one screen color for drawing the material shape, part shape, and tool are set independently from each other.

そして、画面に各形状を描画し、NCプログラムの指令
に従って画面上の工具を移動させる。工具の移動によっ
て、画面上で工具の赤色と素材形状の緑色が重なったな
らばその部分は背景色に塗り変える。
Then, each shape is drawn on the screen, and the tool on the screen is moved according to the commands of the NC program. If the red color of the tool overlaps with the green color of the material shape on the screen as the tool moves, that part is repainted with the background color.

色の重なりの判断は次のようにして行う。すなわち、工
具を描画している赤色のフレームメモリと素材形状を描
画している緑色のフレームメモリの、画面上における同
一座標箇所の論理積をとって判定する。論理積がrlJ
となれば重なったと判断する。そして、緑色のフレーム
メモリからその座標箇所を消去する。従ってその部分は
背景色となる。この判定によって背景色とな−った部分
は、実質的には工具によって切削されたと考えられる部
分であって、第1図の7が示しているのがこの部分であ
る。
Judgment of color overlap is made as follows. That is, the determination is made by performing the logical product of the same coordinate locations on the screen of the red frame memory in which the tool is drawn and the green frame memory in which the material shape is drawn. The logical product is rlJ
If so, it is determined that they overlap. Then, delete that coordinate location from the green frame memory. Therefore, that part becomes the background color. The portion that is colored as a background color by this determination is essentially the portion that is considered to have been cut by the tool, and this portion is indicated by 7 in FIG.

工具の移動により、画面上で工具の赤色と部品形状の青
色が重なった場合、又は背景色と部品形状の青色が重な
った場合はくい込みが生じたと判断する。
If the red color of the tool overlaps with the blue color of the part shape on the screen due to the movement of the tool, or if the background color and the blue color of the part shape overlap on the screen, it is determined that a bite has occurred.

この場合は、赤色のフレームメモリと青色のフレームメ
モリの、画面上における同一座標箇所の論理積が’LJ
になったかどうか、又は青色のフレームメモリに格納さ
れていたその座標箇所の記憶が消去されたかどうか、で
判定する。そして、この’R11定でfYEsJと判断
された場合には、画面上にアラームを表示する。
In this case, the logical product of the red frame memory and the blue frame memory at the same coordinates on the screen is 'LJ
The determination is made based on whether or not the coordinate location has been erased from the blue frame memory. If fYEsJ is determined based on this 'R11 constant, an alarm is displayed on the screen.

第2図に本発明のNCプログラムのチェック方式のフロ
ーチャート図を示す。図において、Sに続く数値はステ
ップ番号を表す。
FIG. 2 shows a flowchart of the NC program checking method of the present invention. In the figure, the number following S represents the step number.

〔S1〕素材形状、部品形状、工具形状及び各描画色を
入力する。
[S1] Input the material shape, part shape, tool shape, and each drawing color.

〔S2〕入力された形状を、それぞれの描画色で画面に
表示する。
[S2] Display the input shapes on the screen in their respective drawing colors.

(S3)NCプログラムによって指令される加工経路に
従い、画面上の工具を移動させる。
(S3) The tool on the screen is moved according to the machining path instructed by the NC program.

〔S4〕素材形状の色と工具の色が重なったかどうかを
判断する。重なった場合はS5へいく。重なっていない
場合はS7へいく。
[S4] It is determined whether the color of the material shape and the color of the tool overlap. If they overlap, go to S5. If they do not overlap, go to S7.

〔S5〕その部分を背景色に塗り変える。[S5] Change the color of that part to the background color.

〔S6〕部品形状の色と工具の色、あるいは部品形状の
色と背景色が重なったかどうかを判断する。
[S6] It is determined whether the color of the part shape and the color of the tool or the color of the part shape and the background color overlap.

重なった場合はS8へいく。重なっていない場合はS7
へ、いく。
If they overlap, go to S8. If there is no overlap, S7
Go, let's go.

〔S7〕加工工程が終了したかどうかを判断する。[S7] Determine whether the machining process has been completed.

終了していない場合はS3へ戻る。If not completed, return to S3.

〔S8〕アラーム等を画面に表示する。[S8] Display an alarm etc. on the screen.

このようにして、工具のくい込みが生じてしまうような
、作成プログラムの誤りがあった場合には、アラーム等
を表示してオペレータに知らせることができる。
In this way, if there is an error in the created program that causes the tool to become stuck, an alarm or the like can be displayed to notify the operator.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、工具が部品形状にくい
込んだ場合にはアラーム等を表示するので、オペレータ
が画面を見ながらいちいち素材形状と部品形状を比較し
てプログラムの正否を判断する必要がなくなる。従って
、チェック作業の時間は短縮され、又オペレータにとっ
ての負担も軽減することができる。
As explained above, in the present invention, an alarm etc. is displayed when the tool is embedded into the part shape, so the operator needs to compare the material shape and the part shape one by one while looking at the screen to judge whether the program is correct or not. It disappears. Therefore, the time required for checking can be shortened and the burden on the operator can also be reduced.

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

第1図は本発明のNCプログラムのチェック時における
表示画面の例を示す回、 第2図は本発明のNCプログラムのチェック方式のフロ
ーチャート図である。 1−−−−−−−−一表示画面 2−−一−−−−−−・−工具形状 3−−−・−素材形状 4−−−−−・一部品形状 8−−−一−−・−アラーム表示 特許出願人 ファナック株式会社 代理人   弁理士  服部毅巖 第 1 図
FIG. 1 shows an example of a display screen when checking an NC program according to the present invention, and FIG. 2 is a flowchart of a method for checking an NC program according to the present invention. 1---------1 Display screen 2--1--Tool shape 3--Material shape 4--Part shape 8-- −・−Alarm display patent applicant Fanuc Co., Ltd. agent Patent attorney Takeshi Hattori Figure 1

Claims (3)

【特許請求の範囲】[Claims] (1)数値制御装置(CNC)あるいは、自動プログラ
ム作成装置でのNCプログラムのチェック方式において
、 工具が部品形状と重なったことを検出して、該工具の部
品形状へのくい込みを判別し、アラーム表示をすること
を特徴とするNCプログラムのチェック方式。
(1) In the method of checking the NC program in a numerical control device (CNC) or automatic program creation device, it is detected that the tool overlaps with the part shape, it is determined whether the tool has penetrated into the part shape, and an alarm is generated. An NC program check method characterized by displaying information.
(2)前記工具が通過した素材形状の部分を背景色とし
、前記部品形状の一部が背景色になったことで、工具の
くい込みを判別することを特徴とする特許請求の範囲第
1項記載のNCプログラムのチェック方式。
(2) A part of the material shape through which the tool has passed is set as a background color, and tool penetration is determined based on a part of the part shape becoming the background color. Check method for the listed NC program.
(3)前記工具と前記部品形状との重なりを、前記工具
を表示する色のフレームメモリと、前記部品形状を表示
する色のフレームメモリの表示画面上の同一座標箇所の
論理積をとって判別することを特徴とする特許請求の範
囲第1項記載のNCプログラムのチェック方式。
(3) Determine the overlap between the tool and the part shape by performing the logical product of the same coordinate locations on the display screen of the frame memory of the color that displays the tool and the frame memory of the color that displays the part shape. An NC program checking method according to claim 1, characterized in that:
JP9946988A 1988-04-22 1988-04-22 Nc program checking system Pending JPH01270109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9946988A JPH01270109A (en) 1988-04-22 1988-04-22 Nc program checking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9946988A JPH01270109A (en) 1988-04-22 1988-04-22 Nc program checking system

Publications (1)

Publication Number Publication Date
JPH01270109A true JPH01270109A (en) 1989-10-27

Family

ID=14248172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9946988A Pending JPH01270109A (en) 1988-04-22 1988-04-22 Nc program checking system

Country Status (1)

Country Link
JP (1) JPH01270109A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5936810A (en) * 1982-08-24 1984-02-29 Mitsubishi Electric Corp Method for supervising working information of numerical control working machine
JPS59127108A (en) * 1983-01-11 1984-07-21 Mitsubishi Electric Corp Numerical controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5936810A (en) * 1982-08-24 1984-02-29 Mitsubishi Electric Corp Method for supervising working information of numerical control working machine
JPS59127108A (en) * 1983-01-11 1984-07-21 Mitsubishi Electric Corp Numerical controller

Similar Documents

Publication Publication Date Title
US5150305A (en) Numerical control system providing graphic machining simulation
US9618928B2 (en) Simulation apparatus of numerical controller
JP4011372B2 (en) Machining program check method and check apparatus for numerically controlled machine tool, and numerically controlled machine tool provided with the same
JPH0355259B2 (en)
WO2013118179A1 (en) Tool-path displaying method and tool-path displaying apparatus
JPS6115205A (en) Drawing method of graphic display for numerical controller
US5359530A (en) Animated plotting method in NC apparatus for multi-system lathe
JPH01270109A (en) Nc program checking system
JPH028322B2 (en)
JPH01200413A (en) Production of analogous part program
JPH01321505A (en) Preparation of hole machining nc data
US5065332A (en) Figure element revising method
JPH01231104A (en) Display method for tool locus
JP2771701B2 (en) Interactive numerical controller
JPS58155146A (en) Numerical control processing system
JPH0242510A (en) Display system for working information
JPS61203251A (en) Tool interference check system
KR102646924B1 (en) Precision spatial imagery production system by correcting unclear sections on road maps generated by changing viewpoints
JPH0325291B2 (en)
JPH06250722A (en) Interactive numerical controller
JP3437218B2 (en) Method and device for confirming and editing machining data in automatic programming device
JPH03136109A (en) Working control method in numerically controlled machine tool
JPH0722875B2 (en) How to display taper angle setting of programming device
JPH01303503A (en) Interactive automatic programming method and its device
JPH0262607A (en) Program checking plotting system