JPH0962326A - Nc machining device - Google Patents

Nc machining device

Info

Publication number
JPH0962326A
JPH0962326A JP21192195A JP21192195A JPH0962326A JP H0962326 A JPH0962326 A JP H0962326A JP 21192195 A JP21192195 A JP 21192195A JP 21192195 A JP21192195 A JP 21192195A JP H0962326 A JPH0962326 A JP H0962326A
Authority
JP
Japan
Prior art keywords
tool
machining
work
cutting
machining 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.)
Pending
Application number
JP21192195A
Other languages
Japanese (ja)
Inventor
Satoru Miyazaki
崎 哲 宮
Hiroshi Shikada
田 洋 鹿
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP21192195A priority Critical patent/JPH0962326A/en
Publication of JPH0962326A publication Critical patent/JPH0962326A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an NC machining device which can effectively perform the NC machining with high quality and high accuracy by reducing the error verifying load of an NC machining program or automating the verification of error. SOLUTION: The image data on a tool locus 4 are generated from an NC machining program and then compared with the image data on a finished shape 3 of a work which are previously inputted. Then a part where a tool exceeds the prescribed threshold and enters the shape 3 is defined as an overcut part, a part where the tool passes along the surface of the shape 3 within a distance range smaller than the prescribed threshold is defined as a normal cut part, and a lost part of the locus 4 passing along the shape 3 is defined as an uncut part respectively. These defined parts are displayed with emphasis.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、NC加工プログラ
ムの適否の自動検証を行うNC加工装置に関する。ま
た、前記自動検証によって不具合箇所が発見されたNC
加工プログラムに対して、不具合箇所を容易に確認で
き、およびNC加工プログラムの修正を支援するNC加
工装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an NC machining apparatus for automatically verifying the suitability of an NC machining program. In addition, NC in which a defective part was found by the automatic verification
The present invention relates to an NC machining device that can easily confirm a defective portion with respect to a machining program and supports correction of the NC machining program.

【0002】[0002]

【従来の技術】NC加工装置による加工では、装置や工
具の動作指令を記述したNC加工プログラムを予め作成
する必要がある。
2. Description of the Related Art In machining with an NC machining apparatus, it is necessary to prepare in advance an NC machining program in which operation instructions of the apparatus and tools are described.

【0003】これらのNC加工プログラムは、実際に工
具を作動させる前に、工具とワークあるいはワークを保
持する治具との干渉や、工具による切り込み過ぎ、ある
いは削り残しなど、その動作指令に誤りがないか十分チ
ェックし、事前に検証を行っておく必要がある。
Prior to actually operating the tool, these NC machining programs have errors in their operation commands such as interference between the tool and the work or a jig for holding the work, excessive cutting by the tool, or uncut. It is necessary to thoroughly check if there is any and verify it in advance.

【0004】この検証を行うNC加工装置の一つとし
て、作成したNC加工プログラムをもとに、NC加工装
置の処理システムによってシミュレーションを行い、文
法チェックや工具軌跡の画像表示による不具合点の事前
発見や修正を行うNC加工プログラムの自動検証機能を
備えたNC加工装置が従来からあった。
As one of the NC machining devices for performing this verification, a simulation is performed by the processing system of the NC machining device based on the created NC machining program, and a deficiency point is found in advance by a grammar check and a tool locus image display. Conventionally, there has been an NC machining apparatus having an automatic verification function of an NC machining program for making corrections.

【0005】この自動検証機能を備えたNC加工装置は
種々のものがあったが、特開平1−296310号に記
載されたように、NC加工プログラムから工具軌跡を生
成し、画像表示して、所望の加工動作が指令されている
かどうかを図形処理によって確認する方法が一般的であ
った。
There are various NC machining devices having this automatic verification function, but as described in JP-A-1-296310, a tool locus is generated from an NC machining program, an image is displayed, A general method is to confirm by graphic processing whether or not a desired machining operation is instructed.

【0006】これらの従来のNC加工装置は、工具軌跡
の検証のために、あらかじめ加工対象ワークの素材形状
や仕上がり形状、使用治具の形状等をCAD図形データ
として装置に入力しておき、これらの画像上に、NC加
工プログラムの工具移動指令を読み取って生成した工具
軌跡の画像を重ね合わせて、工具とワーク等の干渉や、
切り込み過ぎや、削り残しをオペレータの目視によって
チェックさせる方法を採用していた。
In these conventional NC machining apparatuses, the material shape and finish shape of the workpiece to be machined, the shape of the jig to be used, etc. are input as CAD figure data to the apparatus in advance in order to verify the tool path. The image of the tool path generated by reading the tool movement command of the NC machining program is superimposed on the image of
A method was adopted in which the operator visually checked overcuts and uncut areas.

【0007】また、工具の動作を経時的に表示するNC
加工装置もあった。これらのNC加工装置は、経時的な
切削を表示することにより、より現実に近い切削加工動
作を表示し、不具合箇所の発見の認識率を向上させるこ
とを目的としていた。
In addition, NC which displays the operation of the tool over time
There was also a processing device. The purpose of these NC processing devices is to display a more realistic cutting operation by displaying cutting over time and to improve the recognition rate of finding a defective portion.

【0008】具体的には、上記NC加工装置は、加工中
の工具の動きをステップごとに表示し、二次元的に表示
された素材の形状が工具によって削り取られる状況を表
示するものであった。
[0008] Specifically, the NC machining apparatus displays the movement of the tool during machining step by step, and displays the situation where the two-dimensionally displayed material shape is scraped off by the tool. .

【0009】また、ワークを三次元のもの(ソリッド)
として定義しておき、このワークが工具によって切削さ
れてゆく形状をステップごとに画像表示するものもあっ
た。
The work is three-dimensional (solid).
In some cases, the shape of the work being cut by a tool is displayed as an image for each step.

【0010】さらに、ワークや工具軌跡を表示した画像
データと、NC加工プログラムのソーステキストデータ
とを画面に同時表示、あるいは切替え表示するNC加工
装置が従来からあった。このように画像データとNC加
工プログラムを並列的に表示するのは、NC加工プログ
ラムの検証を行って、図形表示モードとテキスト表示モ
ードとを平行して扱うためである。
Further, conventionally, there has been an NC machining apparatus for simultaneously displaying on the screen the image data displaying the work or tool path and the source text data of the NC machining program, or switching the display. The reason for displaying the image data and the NC processing program in parallel in this way is to verify the NC processing program and handle the graphic display mode and the text display mode in parallel.

【0011】これらのNC加工装置では、画面の表示を
メニュー方式で切り替えたり、あるいはテキスト画面を
図形表示画面上にウインドウによって同時表示してい
た。
In these NC processing apparatuses, the screen display is switched by a menu method, or the text screen is simultaneously displayed on the graphic display screen by a window.

【0012】さらに、従来から工具の画像表示とNC加
工プログラムとの対応関係を自動的に表示するNC加工
装置があった。
Further, conventionally, there has been an NC machining apparatus which automatically displays the correspondence between the image display of the tool and the NC machining program.

【0013】このNC加工装置は、NC工具の軌跡等の
画像データとNC加工プログラムのソーステキストを画
面に同時表示し、NC工具軌跡の図形要素をマウスなど
で指定することによって、ソーステキストのどの部分に
当たるかを連動表示するものであった。この従来のNC
加工装置では、工具軌跡の1図形要素とソーステキスト
の1行とが関連付けられていた。
This NC machining device simultaneously displays image data such as NC tool locus and source text of the NC machining program on the screen, and designates a graphic element of the NC tool locus with a mouse or the like to determine which of the source text is displayed. It was to display whether or not to hit the part. This conventional NC
In the processing apparatus, one graphic element of the tool path is associated with one line of the source text.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、上記N
C加工プログラムのチェック機能を備えた従来のNC加
工装置では、上述したように、ワーク形状と工具軌跡と
を重ね合わせて画像表示して目視チェックを行っていた
が、干渉している部分の許容値との関係については何ら
情報を与えることがなかった。従って、削り過ぎる部分
か、あるいは削り残し部分か否かの判断等は、専らオペ
レーターの目視と経験に頼っていた。
However, the above N
As described above, in the conventional NC machining apparatus having the check function of the C machining program, the work shape and the tool locus are superimposed and displayed as an image for visual check, but the interference is allowed. No information was given about the relationship with the value. Therefore, the operator's visual inspection and experience were used exclusively to determine whether the portion was over-cut or was left uncut.

【0015】上記削り過ぎの部分や削り残し部分(これ
らをまとめて加工不具合部分という)の発見を補助する
機能として、ワークの仕上り形状に工具軌跡が食い込ん
でいる部分を画面上で赤色表示するものなど、加工不具
合部分の発見を容易にする機能を備えたものも従来から
あったが、許容値に関する最終的な判断はやはりオペレ
ーターの目視に頼っていた。
As a function of assisting in finding the above-mentioned over-cut portion and uncut portion (collectively referred to as machining defective portion), the portion in which the tool path cuts into the finished shape of the work is displayed in red on the screen. There have been some that have a function to make it easier to find a machining defect, but the final judgment regarding the allowable value still relied on the operator's visual inspection.

【0016】上記オペレーターの目視によるチェック
は、大きな動作指令ミスを発見するためには有効であっ
たが、複雑な輪郭加工の工具軌跡をチェックするのは煩
雑であった。また、細部の工具軌跡を判定するには、表
示部の移動や拡大処理を頻繁に行わなければならず、多
くの時間を要し、チェックの精度、チェック後の品質、
効率等に難点があった。
The above visual check by the operator was effective for finding a large operation command error, but it was complicated to check the tool locus for complicated contour machining. Further, in order to determine the fine tool path, it is necessary to frequently perform the movement of the display unit and the enlargement process, which requires a lot of time, the accuracy of the check, the quality after the check,
There was a problem in efficiency.

【0017】また、画像表示から目視で発見した加工不
具合部分について、NC加工プログラムのソーステキス
トを修正する場合は、従来のNC加工装置では作業が煩
雑であった。
Further, in the case of correcting the source text of the NC processing program for the processing defect portion visually found from the image display, the conventional NC processing apparatus requires complicated operations.

【0018】特に、NC工具の軌跡等の画像とNC加工
プログラムのソーステキストとの対応を表示する機能が
ないNC加工装置では、画像上の修正対象箇所がテキス
トのどの部分に当たるのかをオペレーターが検索しなけ
ればならず、作業がきわめて困難であった。NC加工プ
ログラムのサイズが大きい場合や、修正箇所が多い場合
には、なおさらであった。
In particular, in an NC machining apparatus that does not have a function of displaying the correspondence between the image of the NC tool path or the like and the source text of the NC machining program, the operator searches which part of the text corresponds to the correction target portion on the image. It was very difficult to do. This was even more so when the size of the NC machining program was large or when there were many correction points.

【0019】また、NC工具の軌跡等の画像とNC加工
プログラムのソーステキストとの対応を表示する機能を
備えた従来のNC加工装置においても、工具軌跡の1図
形要素とソーステキスト1行とを関連付けるポインタと
しての機能のみを有していたので、複数の図形要素から
なる連続した画像部分と対応するソーステキストのブロ
ックや、複数の画像上の修正箇所に対応するソーステキ
スト部分を表示することはできなかった。このことは、
実際のNC加工プログラムの修正作業において、オペレ
ーターの大きな負担になっていた。
Further, in the conventional NC machining apparatus having a function of displaying the correspondence between the image of the NC tool trajectory and the source text of the NC machining program, one graphic element of the tool trajectory and one line of the source text are also included. Since it had only a function as a pointer for associating, it is not possible to display a block of source text corresponding to a continuous image part composed of a plurality of graphic elements or a source text part corresponding to a correction part on a plurality of images. could not. This means
In the actual work of modifying the NC machining program, it was a heavy burden on the operator.

【0020】さらに、上述したような工具軌跡等の画像
表示とNC加工プログラムの対応のみならず、画像表示
されたワーク形状や工具軌跡等の図形データを操作する
ことによって、NCプログラムのテキストデータが自動
的に修正される機能の開発が従来から求められていた。
Further, in addition to the correspondence between the image display of the tool path and the NC machining program as described above, the text data of the NC program can be changed by operating the graphic data such as the work shape and the tool path displayed in the image. There has been a long-felt need to develop a function that is automatically modified.

【0021】また、切削過程を経時的に表示することに
ついて、二次元表示された素材が工具によって切削され
る過程を表示する従来のNC加工装置は、画面上で素材
を面として色表示しておき、単に工具が掃引した部分の
消し込み処理をさせていたので、現実感に欠けていた。
Regarding the display of the cutting process over time, the conventional NC machining apparatus which displays the process in which the material displayed in two dimensions is cut by the tool is color-displayed by displaying the material as a surface on the screen. Every time, the tool was simply erasing the swept area, so it lacked a sense of reality.

【0022】例えば旋削加工(工具が2次元的な動きを
する加工)を行うNC加工装置では、断面表示(切断面
の断面図のみ)しか表示できず、外形図や内径段差の表
示を同時に行うことはできなかった。
For example, an NC machining apparatus for performing turning (machining in which a tool moves two-dimensionally) can display only a cross-section display (only a cross-sectional view of a cutting plane), and simultaneously displays an outline drawing and an inner diameter step. I couldn't do that.

【0023】一方、3次元ソリッドのワークを処理でき
るNC加工装置は、高機能の処理システム(ワークステ
ーション)を使った高価なシステムを除き、処理が困難
であった。
On the other hand, the NC processing apparatus capable of processing a three-dimensional solid work is difficult to process except for an expensive system using a high-performance processing system (workstation).

【0024】なお、複数の切削工程を有する切削加工を
行う場合、特に荒加工から仕上げ加工へ複数回の切削加
工を行う場合には、複数の工具軌跡によってワークを徐
々に加工していくのが一般的であるが、従来のNC加工
装置では、これらの工具軌跡の1つ1つについて、NC
加工プログラムが正しく指定されているかどうかをチェ
ックしていた。このような逐一的な工具軌跡のチェック
は、多くの処理時間を必要とした。また、工具直径やノ
ーズR補正値の考慮が必要なエンドミルなどでの輪郭加
工を行う場合も同様であった。これに対して、所定の切
削工程までの工具の軌跡の包絡線を生成させ、これがワ
ークの仕上げ形状等と干渉していないかをチェックする
方法が高効率と予想され、このような装置の開発が待た
れていた。
When performing a cutting process having a plurality of cutting steps, particularly when performing a plurality of times of cutting processes from roughing to finishing, it is preferable to gradually machine a workpiece with a plurality of tool loci. Generally, in the conventional NC machining device, NC of each of these tool paths is
I was checking if the machining program was specified correctly. Such a one-to-one check of the tool path requires a lot of processing time. The same applies to the case of performing contour processing with an end mill or the like that requires consideration of the tool diameter and the nose R correction value. On the other hand, it is expected that the method of generating the envelope of the trajectory of the tool up to a predetermined cutting process and checking if it interferes with the finished shape of the work etc. is highly efficient. Was waiting.

【0025】そこで、本発明が解決しようとする課題
は、NC加工プログラムの誤り検証の負荷を軽減し、あ
るいは検証を自動化することにより、高い品質と精度の
NC加工を効率よく行うことができるNC加工装置を提
供することにある。
Therefore, the problem to be solved by the present invention is to reduce the load of error verification of the NC machining program or to automate the verification, so that NC machining of high quality and accuracy can be performed efficiently. To provide a processing device.

【0026】[0026]

【課題を解決するための手段】上記課題を解決するため
に、本願請求項1に係るNC加工装置は、NC加工プロ
グラムから工具軌跡の画像データを生成し、この工具軌
跡の画像データと予め入力したワークの仕上がり形状の
画像データとを比較し、工具が所定のしきい値を超えて
ワークの仕上がり形状内に入り込む部分を切り込み過ぎ
部分、工具が所定のしきい値より小さい距離範囲内でワ
ークの仕上がり形状の表面に沿って通過する部分を正常
切削部分、ワークの仕上がり形状に沿って通過する工具
軌跡のうちの欠損部分を削り残し部分とそれぞれ判定
し、前記切り込み過ぎ部分と削り残し部分を強調表示す
ることを特徴とするものである。
In order to solve the above problems, an NC machining apparatus according to claim 1 of the present application generates image data of a tool locus from an NC machining program and inputs the image data of the tool locus in advance. Compared with the image data of the finished shape of the workpiece, the part where the tool exceeds the predetermined threshold and enters the finished shape of the work is overcut, the tool is within the distance range smaller than the predetermined threshold. It is judged that the part that passes along the surface of the finished shape of normal cutting is the normal cutting part and the part of the tool path that passes along the finished shape of the workpiece is the uncut part, and the overcut part and the uncut part are It is characterized by highlighting.

【0027】本願請求項2に係るNC加工装置は、請求
項1のNC加工装置において、前記切り込み過ぎ部分あ
るいは前記削り残し部分を検出した場合に、対応するN
C加工プログラムのソーステキスト上の部分を、彩色を
含む強調表示をすることを特徴とするものである。
The NC machining apparatus according to claim 2 of the present application is the NC machining apparatus according to claim 1, which corresponds to the case where the overcut portion or the uncut portion is detected.
It is characterized in that the portion on the source text of the C processing program is highlighted including the coloring.

【0028】本願請求項3に係るNC加工装置は、複数
の切削工程を行うNC加工プログラムから、各切削工程
の工具軌跡の画像データを生成し、指定した切削工程ま
での工具軌跡の包絡線の画像データを生成し、この包絡
線の画像データと、次工程の工具軌跡の画像データある
いは予め入力したワークの仕上がり形状の画像データと
を比較し、包絡線の工具が所定のしきい値を超えて次工
程の工具軌跡あるいはワークの仕上がり形状内に入り込
む部分を切り込み過ぎ部分、包絡線の工具が所定のしき
い値より小さい距離範囲内で次工程の工具軌跡あるいは
ワークの仕上がり形状に沿って通過する部分を正常切削
部分、次工程の工具軌跡あるいはワークの仕上がり形状
に沿って通過する工具軌跡のうちの欠損部分を削り残し
部分とそれぞれ判定し、前記切り込み過ぎ部分と削り残
し部分を強調表示することを特徴とするものである。
An NC machining apparatus according to claim 3 of the present invention generates image data of a tool locus of each cutting process from an NC machining program that performs a plurality of cutting processes, and calculates the envelope of the tool locus up to the designated cutting process. Image data is generated, and the image data of this envelope is compared with the image data of the tool trajectory in the next process or the image data of the finished shape of the work input in advance, and the tool of the envelope exceeds the specified threshold value. The tool path of the next process or the part that goes into the finished shape of the work is cut too much, and the tool with the envelope curve passes along the tool path of the next process or the finished shape of the work within a distance range smaller than the specified threshold value. The part to be cut is the normal cutting part, and the missing part of the tool path of the next process or the tool path passing along the finished shape of the workpiece is the uncut part. And it is characterized in that to highlight uncut portion and the cut too moiety.

【0029】本願請求項4に係るNC加工装置は、複数
の工具によって切削加工を行うNC加工装置において、
使用する各工具の適正な切削条件をデータベース内に予
め格納しておき、NC加工プログラムから使用する工具
の種類を判定し、前記NC加工プログラムに規定された
前記工具の切削条件を検索し、この工具の切削条件と前
記データベースの該当工具の適正な切削条件とを比較
し、過度の負荷となる重切削と、不十分な負荷となる軽
切削とを指令したプログラム部分を判別し、これらの部
分を強調表示することを特徴とするものである。
An NC machining apparatus according to claim 4 of the present application is an NC machining apparatus that performs cutting with a plurality of tools.
Appropriate cutting conditions for each tool to be used are stored in advance in the database, the type of tool to be used is determined from the NC machining program, and the cutting conditions for the tool specified in the NC machining program are searched for. The cutting conditions of the tool are compared with the proper cutting conditions of the corresponding tool in the database, and the program part that commands heavy cutting that causes excessive load and light cutting that causes insufficient load is determined, and these parts are determined. Is highlighted.

【0030】本願請求項5に係るNC加工装置は、旋削
加工を行うNC加工装置において、入力したワークの形
状に関する画像データからワークの外形図と断面図とを
生成し、工具がワークを切削していく過程を経時的に表
示することを特徴とするものである。
The NC machining apparatus according to claim 5 of the present application is, in the NC machining apparatus for performing turning, generates an outline drawing and a sectional view of the workpiece from the inputted image data relating to the shape of the workpiece, and the tool cuts the workpiece. It is characterized by displaying the progressing process with time.

【0031】本願請求項6に係るNC加工装置は、画面
に表示されている工具軌跡あるいはワークの形状の各図
形要素の端点あるいは支点の近傍に、指定した座標軸に
関する座標値を自動的に表示することを特徴とするもの
である。
An NC machining apparatus according to claim 6 of the present application automatically displays coordinate values relating to designated coordinate axes near the end points or fulcrums of each graphic element of the tool path or the shape of the work displayed on the screen. It is characterized by that.

【0032】本願請求項7に係るNC加工装置は、画面
に表示されている工具軌跡の各図形要素の始点に対する
終点の座標増分値を、その終点の位置を規定する値とし
て、該終点の近傍に自動表示することを特徴とするもの
である。
In the NC machining apparatus according to claim 7 of the present application, the coordinate increment value of the end point with respect to the start point of each graphic element of the tool path displayed on the screen is used as a value that defines the position of the end point, and the vicinity of the end point is defined. It is characterized by being automatically displayed on.

【0033】本願請求項8に係るNC加工装置は、NC
加工プログラムの工具交換指令を検索して判断し、使用
工具種類ごとにNC加工プログラムをブロック分けし、
前記NC加工プログラムのブロックごとにページ分け表
示およびインデックス管理を行うことを特徴とするもの
である。
The NC machining apparatus according to claim 8 of the present application is NC
The tool change command of the machining program is searched and judged, and the NC machining program is divided into blocks for each type of tool used,
It is characterized in that page display and index management are performed for each block of the NC processing program.

【0034】本願請求項9に係るNC加工装置は、画像
表示モード上で工具軌跡の所定の図形要素を修正するこ
とにより、関連する図形要素の延長あるいはトリミング
処理を自動的に行い、かつ、対応するNC加工プログラ
ムの部分を画像の変化と整合するように自動的に修正す
ることを特徴とするものである。
The NC machining apparatus according to claim 9 of the present application automatically extends or trims a related graphic element by correcting a predetermined graphic element of the tool path in the image display mode, and supports it. It is characterized in that the portion of the NC processing program to be executed is automatically corrected so as to match the change of the image.

【0035】本願請求項10に係るNC加工装置は、補
助動作指令による装置の動作を所定の表示方法と予め対
応させ、動作状況を前記補助動作指令と対応する表示方
法によって表示することを特徴とするものである。
In the NC machining apparatus according to claim 10 of the present application, the operation of the apparatus according to the auxiliary operation command is made to correspond to a predetermined display method in advance, and the operation status is displayed by the display method corresponding to the auxiliary operation command. To do.

【0036】[0036]

【発明の実施の形態】次に本発明の一実施形態として旋
盤加工を行うNC加工装置について図面を参照しながら
以下に説明する。図1は本発明によるNC加工装置の表
示画面を示している。本NC加工装置の表示画面1で
は、ワークの素材形状2と、仕上がり形状3と、工具の
軌跡4が同時に表示されている。また、表示画面1の一
部には、NC加工プログラムのソーステキスト5もウイ
ンドウ表示されている。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an NC processing apparatus for performing lathe processing will be described below as an embodiment of the present invention with reference to the drawings. FIG. 1 shows a display screen of an NC processing apparatus according to the present invention. On the display screen 1 of the NC processing apparatus, the workpiece material shape 2, the finished shape 3, and the tool path 4 are displayed simultaneously. A source text 5 of the NC machining program is also displayed in a window on a part of the display screen 1.

【0037】このNC加工装置において、工具軌跡の自
動チェックを命令すると、NC加工装置の処理装置は、
ワークの仕上がり形状3の図形データと、工具軌跡4を
構成している線分や円弧などの図形要素の座標とをチェ
ックし、ワークの切り込み過ぎ部分と、正常な切削部分
と、削り残し部分とを自動的に検出する。
In this NC processing device, when an automatic check of the tool locus is instructed, the processing device of the NC processing device
By checking the graphic data of the finished shape 3 of the work and the coordinates of the graphic elements such as the line segments and arcs that make up the tool path 4, the overcut portion of the work, the normal cut portion, and the uncut portion are checked. Automatically detected.

【0038】切り込み過ぎ部分のチェックでは、ワーク
の仕上がり形状3と交差して端点がワークの仕上がり形
状3の内側に入り込む工具軌跡4の図形要素を抽出す
る。
In checking the overcut portion, the graphic element of the tool locus 4 which intersects with the finished shape 3 of the work and whose end point enters inside the finished shape 3 of the work is extracted.

【0039】このとき抽出される工具軌跡4の図形要素
は、その端点の座標がワークの仕上がり形状3を示す図
形データより、あらかじめ設定した微小値ε1の値を超
えてワークの仕上がり形状3の内側に入り込むもののみ
とする。
In the graphic element of the tool path 4 extracted at this time, the coordinates of the end points exceed the preset minute value ε1 from the graphic data indicating the finished shape 3 of the work and the inside of the finished shape 3 of the work is exceeded. Only things that get in.

【0040】このように微小値ε1を指定するのは、仕
上がり寸法公差内で意図的に工具の刃先を設計上のワー
クの仕上がり面より内側に入り込ませる場合や、工具軌
跡がワークの仕上がり形状の図形要素とごく接近してい
て、計算機の数値処理誤差によって工具の刃先が計算上
ワークの仕上がり面より内側に入り込む場合等が、NC
加工プログラムの指令ミスと判断されないようにするた
めである。
In this way, the minute value ε1 is specified when the cutting edge of the tool is intentionally moved inward from the finished surface of the designed work within the finished dimension tolerance, or when the tool locus is defined as the finished shape of the work. NC when it is very close to the figure element and the cutting edge of the tool enters inside the finished surface of the work piece due to numerical processing error of the computer.
This is to prevent it from being determined as a command mistake in the machining program.

【0041】正常な切削部分と削り残し部分のチェック
は同時の処理によって行う。最初に、工具軌跡4の図形
要素の支点(線分ならば中点、円弧ならば中心座標な
ど)が、ワークの仕上がり形状3を示す図形データに対
して、接近している工具パスをすべて抽出する。これら
抽出した工具パスが連続した線(閉じた線)を構成する
か否かを判定し、不連続となる部分の図形要素を検出す
る。この不連続となる図形要素の検出は、抽出した工具
軌跡4の図形要素グループの中で、他の工具軌跡4の図
形要素と交差せず、かつ、一端点のみが他の図形要素と
接している図形要素を検出することによって行う。この
不連続となる図形要素は、削り残し部分の近傍を加工し
ている工具パスであるので、図3に示すように、その工
具軌跡4の図形要素を太い線で示し、その隣接部分に削
り残し部が存在することを表示する。
The normal cut portion and the uncut portion are checked by simultaneous processing. First, all the tool paths in which the fulcrum of the graphic element of the tool path 4 (the center point for a line segment, the center coordinate for an arc, etc.) are approaching the graphic data indicating the finished shape 3 of the workpiece are extracted. To do. It is determined whether or not these extracted tool paths form a continuous line (closed line), and the graphic element in the discontinuous portion is detected. The detection of this discontinuous graphic element does not intersect with the graphic element of another tool path 4 in the extracted graphic element group of the tool path 4 and only one end point is in contact with another graphic element. This is done by detecting existing graphic elements. Since this discontinuous graphic element is a tool path that is machining the vicinity of the uncut portion, as shown in FIG. 3, the graphic element of the tool locus 4 is indicated by a thick line, and the adjacent cut portion is cut. Display that there is a remaining part.

【0042】上記ワークの仕上がり形状3に接近してい
るものとして抽出する工具軌跡4の図形要素は、支点座
標とワークの仕上がり形状3を示す図形データが、あら
かじめ設定した微小値ε2の値以下のもののみとする。
切り込み過ぎ部分および削り残し部分を除くワークの仕
上がり形状3近傍の工具軌跡4の図形要素は、正常な切
削部分を示している。
As for the graphic element of the tool locus 4 which is extracted as being close to the finished shape 3 of the work, the fulcrum coordinates and the graphic data indicating the finished shape 3 of the work are equal to or less than the preset minute value ε2. Only things.
The graphic elements of the tool path 4 in the vicinity of the finished shape 3 of the work excluding the overcut portion and the uncut portion are normal cutting portions.

【0043】なお、上記実施形態では、工具とワークと
の干渉関係のチェックについてのみ説明しているが、本
NC加工装置は、工具とワークを保持する治具等との干
渉関係のチェックをも行うことができる。この場合、治
具と工具の外形を予め入力しておき、工具と治具が互い
に干渉する部分を不具合箇所として検出すればよい。
In the above embodiment, only the check of the interference relation between the tool and the work is explained, but the NC machining apparatus also checks the interference relation between the tool and the jig for holding the work. It can be carried out. In this case, the outer shapes of the jig and the tool may be input in advance, and the portion where the tool and the jig interfere with each other may be detected as the defective portion.

【0044】これにより、従来工具軌跡とワーク図形デ
ータの画像表示による目視での判定に頼らざるを得なか
った工具移動指令の誤りチェックを自動判定できるよう
になり、目視チェックの自動化を図ることができる。
As a result, it becomes possible to automatically determine the error check of the tool movement command, which conventionally had to rely on the visual determination by the image display of the tool trajectory and the work figure data, and the visual check can be automated. it can.

【0045】次に、本NC加工装置によれば、上記加工
の不具合部分の判定をした後に、NC加工プログラムの
ソーステキスト5の中で、加工不具合部分に対応する箇
所を自動的に表示することができる。このNC加工プロ
グラムの不具合箇所の表示を命令すると、図4に示すよ
うに当該箇所が赤色で表示される。これは、加工不具合
部分の工具パスをNC加工プログラムのソーステキスト
5のどの行と対応しているかをポインタで関連付けてお
き、それを画面表示するときに赤色表示することによっ
て実現する。
Next, according to the NC machining apparatus, after the defective portion of the machining is determined, the portion corresponding to the defective machining portion is automatically displayed in the source text 5 of the NC machining program. You can When a command is issued to display the defective portion of the NC machining program, the portion is displayed in red as shown in FIG. This is realized by associating with a pointer which line of the source text 5 of the NC machining program the tool path of the machining defect portion corresponds to, and displaying it in red when it is displayed on the screen.

【0046】このとき、加工不具合が複数の図形要素か
らなる工具軌跡部分で発生している場合には、NC加工
プログラムのテキストデータの当該箇所(ブロック)を
色付き表示などにより自動的にもとめてマーキングする
ようにする。
At this time, if the machining defect occurs in the tool locus portion consisting of a plurality of graphic elements, the relevant portion (block) of the text data of the NC machining program is automatically identified by a colored display or the like and marked. To do so.

【0047】さらに、修正対象箇所でなくとも、図形表
示領域においてマウスなどでピック指定選択することに
より、指定選択した複数の工具軌跡図形要素を発生させ
ているNC加工プログラムのテキストデータの当該箇所
(行)を、色付き表示などにより自動マーキングした
り、反対にNCプログラムソーステキストの表示画面上
で、マウス等によりピック指定選択した行に対応する工
具軌跡を画面表示上で色分け表示させることができるよ
うにする。これにより、工具軌跡の表示画面と、NCプ
ログラムソーステキストの表示画面の関連付けによる連
動性の向上を図り、操作性を向上させることができる。
Further, even if it is not the correction target portion, by picking and selecting with the mouse or the like in the graphic display area, the corresponding portion of the text data of the NC machining program that has generated a plurality of designated and selected tool locus graphic elements ( (Line) can be automatically marked by colored display, or conversely, on the NC program source text display screen, the tool path corresponding to the line selected by picking with the mouse etc. can be displayed in different colors on the screen display. To This makes it possible to improve the interlocking property by associating the display screen of the tool path and the display screen of the NC program source text with each other, and to improve the operability.

【0048】次に、上述した加工不具合部分のチェック
とは別のチェック方法を以下に説明する。上述した加工
不具合部分のチェックは、一つの工具による切削加工の
不具合部分の検出であったが、通常の切削加工は、複数
の工具を交換して、荒加工から仕上げ加工へ複数の切削
工程を行う。これら複数の切削工程について、個別に加
工不具合のチェックを行い、最終的にワークの仕上り形
状と比較検討するようにしていたのでは、多くの時間が
かかることが避けられない。
Next, a check method different from the above-described check of the processing defect portion will be described below. The above-mentioned check for defective machining was detection of defective machining with one tool, but normal machining involves exchanging multiple tools and performing multiple cutting processes from roughing to finishing. To do. It is inevitable that a lot of time will be taken if the machining defects are individually checked for these plural cutting processes and finally compared with the finished shape of the work.

【0049】これに対し、本NC加工装置によれば、工
具軌跡の包絡線の自動チェックを行うことができる。工
具軌跡の包絡線の自動チェックを命令すると、本NC加
工装置は、工具の直径値およびノーズR補正値を考慮
し、複数の工具の軌跡を構成している線分や円弧などの
多数の図形要素のうち、すべての工具軌跡の包絡線を形
成する図形要素を抽出し、図5に示すように工具の掃引
領域6を図形認識する。この工具の掃引領域6の輪郭を
形成する線が工具軌跡の包絡線7となる。この包絡線7
を用いて、寸法計測したり、ワーク仕上り形状と比較す
ることができる。
On the other hand, according to this NC machining apparatus, the envelope of the tool locus can be automatically checked. When the automatic check of the envelope of the tool locus is instructed, the NC machining device considers the diameter value of the tool and the nose R correction value, and considers many shapes such as line segments and arcs that form the loci of a plurality of tools. Of the elements, the graphic elements forming the envelope of all tool trajectories are extracted, and the sweep area 6 of the tool is graphicly recognized as shown in FIG. The line forming the contour of the sweep region 6 of the tool becomes the envelope 7 of the tool trajectory. This envelope 7
Can be used to measure the dimensions and to compare with the finished shape of the work.

【0050】工具軌跡の包絡線の自動チェックでは、包
絡線7を構成する線分や円弧について、前述した一つの
工具軌跡をチェックする場合と同様に、ワークの仕上が
り形状3に対する切り込み過ぎ部分、正常切削部分、削
り残し部分をチェックする。
In the automatic check of the envelope of the tool locus, as with the case of checking one tool locus described above with respect to the line segments and arcs forming the envelope 7, an excessively cut portion of the finished shape 3 of the workpiece, normal Check the cut and uncut areas.

【0051】これにより、複数の切削工程を有する切削
加工の工具軌跡のチェックの時間を大幅に短縮できると
ともに、加工不具合部分の目視確認を容易にすることが
できる。
As a result, it is possible to greatly reduce the time required to check the tool locus of cutting work having a plurality of cutting steps, and it is possible to easily visually confirm the defective portion.

【0052】さらに、本NC加工装置によれば、各切削
工程の加工不具合部分を包絡線によって検討することが
できる。すなわち、本NC加工装置は、各切削工程の工
具軌跡を記憶しており、所定の切削工程までの工具軌跡
の包絡線を求めることができる。この所定の切削工程ま
での工具軌跡の包絡線と次工程の切削工程の工具軌跡ま
での包絡線とを比較検討することにより、各切削工程の
加工不具合部分をチェックすることができる。
Further, according to the NC processing apparatus, the defective processing portion of each cutting process can be examined by the envelope. That is, the NC machining apparatus stores the tool locus of each cutting process and can determine the envelope of the tool locus up to a predetermined cutting process. By comparing and examining the envelope of the tool locus up to the predetermined cutting step and the envelope of the tool locus up to the cutting step of the next step, it is possible to check the machining defect portion of each cutting step.

【0053】たとえば、図6において、符号8は粗加工
工程の工具軌跡の包絡線、符号9は仕上げ加工工程の工
具軌跡の包絡線を示しており、仕上げ加工工程の工具軌
跡包絡線9を基準線として粗加工工程の工具軌跡包絡線
8をチェックし、すでに説明したような切り込み過ぎ部
分、正常切削部分、削り残し部分等を検出することがで
きる。この工具軌跡の包絡線同士のチェックは加工工程
を追って処理することができるようにしている。
For example, in FIG. 6, reference numeral 8 indicates the envelope of the tool locus in the roughing process, and reference numeral 9 indicates the envelope of the tool locus in the finishing process, which is based on the tool locus envelope 9 in the finishing process. By checking the tool locus envelope 8 in the roughing process as a line, it is possible to detect the overcut portion, the normal cutting portion, the uncut portion, and the like as described above. The check of the envelopes of the tool loci can be performed after the machining process.

【0054】上記包絡線による自動チェックにより、従
来各切削工程の工具軌跡を逐一検証していた時間と労力
が大幅に軽減され、工具軌跡の検証を容易にすることが
できる。
By the automatic check based on the above envelope, the time and labor required for verifying the tool loci in each cutting process in the past are greatly reduced, and the tool locus verification can be facilitated.

【0055】次に、本NC加工装置によるNC加工プロ
グラムの自動修正の機能について以下に説明する。本N
C加工装置によれば、工具軌跡等の図形を表示した画像
を操作することにより、操作された部分に対応するNC
加工プログラムの部分が自動的に修正される。つまり、
画像表示モードとテキスト表示モードを切り替えること
なく、同時並行的に処理することができるのである。
Next, the function of automatically correcting the NC machining program by this NC machining apparatus will be described below. Book N
According to the C processing apparatus, by operating the image displaying the graphic such as the tool trajectory, the NC corresponding to the operated portion is displayed.
The part of the machining program is automatically modified. That is,
It is possible to perform simultaneous processing in parallel without switching the image display mode and the text display mode.

【0056】具体的には、図7に示すように、CAD操
作と同様の操作により、マウスなどによって修正すべき
工具軌跡の図形要素10をピックし、新しい端点座標1
1a,11b(場合によっては円弧直径等)を指定しな
おすことにより、新しい工具軌跡の図形要素11を発生
させる。このとき、図形要素10の移動に伴って、周辺
の図形要素と交差あるいは不連続の関係となるが、本装
置の処理システムは公知の図形処理の手法によって関連
の図形要素の延長・トリミングを行う。同時に、本装置
の処理システムによれば、操作された図形要素に対応す
るソーステキストの箇所12,13を検索し、その座標
値を延長あるいはトリミング処理を行って、必要な部分
を自動修正する。
Specifically, as shown in FIG. 7, a graphic element 10 of a tool locus to be corrected is picked by a mouse or the like by the same operation as the CAD operation, and a new end point coordinate 1
By re-designating 1a and 11b (diameter of arc, etc. in some cases), a graphic element 11 of a new tool path is generated. At this time, as the graphic element 10 moves, it becomes a crossing or discontinuous relationship with the surrounding graphic elements, but the processing system of this apparatus extends / trims the related graphic elements by a known graphic processing method. . At the same time, according to the processing system of the present apparatus, the source text portions 12 and 13 corresponding to the operated graphic element are searched, and the coordinate values thereof are extended or trimmed to automatically correct necessary portions.

【0057】これにより、オペレーターは、画像/テキ
スト表示モードを切り替えることなく、工具軌跡の図形
的な修正に専念することによって、最適な工具軌跡を設
定することができる。
As a result, the operator can set the optimum tool locus by devoting himself to the graphic correction of the tool locus without switching the image / text display mode.

【0058】また、工具の軌跡等の画面表示について
は、本NC加工装置は目視チェックによるエラー判定を
容易にする方法によって表示することができる。たとえ
ば、図8に示すように、図形要素の端点座標値をその図
形要素近傍にX、Z座標別に自動表示する機能を付加す
ることができる。また、図9に示すように、始点から終
点への座標増分値で一度に表示する機能を付加すること
もできる。
Regarding the screen display of the tool locus and the like, the NC processing apparatus of the present invention can display it by a method that facilitates error determination by visual check. For example, as shown in FIG. 8, it is possible to add a function of automatically displaying end point coordinate values of a graphic element near the graphic element for each X and Z coordinate. Further, as shown in FIG. 9, it is possible to add a function of displaying the coordinate increment value from the start point to the end point at one time.

【0059】図8のようにX、Z座標別に自動表示する
のは、NC加工プログラムのチェックの場合、一つの座
標軸の加工指令位置をまず全てチェックした後、次の座
標軸の加工指令位置をチェックする方法が一般に採られ
ており、また、効率も良いからである。
As shown in FIG. 8, when automatically checking the NC machining program, the machining command positions of one coordinate axis are checked first, and then the machining command positions of the next coordinate axes are checked. This is because the method of doing so is generally adopted and it is also efficient.

【0060】例えば、旋削加工プログラムの指令座標値
をその値で直接判定する場合、まず工具軌跡のX座標値
(ワークの直径方向の指令値)をまず全てチェックし、
その後、Z座標値(ワークの長さ方向の指令値)を確認
する方法が一般的である。これに対して、本NC加工装
置では、画面表示されている全ての図形要素のX座標値
だけ(またはZ座標値だけ)をその要素近傍に一度に表
示するようにしているので、座標値の目視確認の効率を
向上させることができる。
For example, when the command coordinate value of the turning program is directly determined by the value, all the X coordinate values of the tool locus (command value in the diameter direction of the work) are first checked,
After that, a method of confirming the Z coordinate value (command value in the length direction of the work) is generally used. On the other hand, in this NC processing device, since only the X coordinate values (or only the Z coordinate values) of all the graphic elements displayed on the screen are displayed at once near the elements, The efficiency of visual confirmation can be improved.

【0061】また、図9のように始点から終点への座標
増分値で表示するのは、チェック対象の工具軌跡の図形
要素の終点座標値を、その始点からの増分値で確認した
い場合も多いからである。これは、設計図面の形状要素
の各部分の寸法指定(幅や長さなどの値)が、常に原点
を基準とする絶対座標で書かれるのではなく、相対値で
書かれている場合が多いためである。
Further, as shown in FIG. 9, the coordinate increment value from the start point to the end point is displayed, and in many cases it is desired to confirm the end point coordinate value of the graphic element of the tool locus to be checked by the increment value from the start point. Because. This is because the dimensions (values such as width and length) of each part of the shape element of the design drawing are not always written in absolute coordinates with reference to the origin, but in relative values. This is because.

【0062】したがって、例えば、旋削加工プログラム
の指令座標値をその値で直接判定する場合には、工具軌
跡の図形要素の終点座標値を、その始点からの増分値で
表示することにより、座標値の目標確認の効率を向上さ
せることができる。
Therefore, for example, when the command coordinate value of the turning program is directly determined by the value, the coordinate value of the end point of the graphic element of the tool locus is displayed by the increment value from the start point, and the coordinate value is displayed. The efficiency of the target confirmation can be improved.

【0063】次に、本NC加工装置による現実的な切削
加工の状況表示について以下に説明する。本NC加工装
置は、図1に示すようなワークの切断面と外形とを同時
に表示することができる。ワークの切断面を表示するに
は、素材形状やワーク仕上がり形状等の図形データ入力
値から、図形要素同士が角度をもって接している図形要
素を抽出し、これを中心軸まで延長して外形線を表示す
る。ただし、この図形要素の延長に際して、延長線が他
の図形の内部に入る場合や、延長線が他の図形要素と交
差する場合は、その先の線分の表示を行わない。この処
理によって、図1の仕上がり形状3の上部に示すような
ワークの断面図を表示することができる。
Next, a realistic display of the cutting status by the NC processing apparatus will be described below. The NC processing apparatus can simultaneously display the cut surface and the outer shape of the work as shown in FIG. To display the cut surface of the work, extract the graphic elements in which the graphic elements are in contact with each other at an angle from the input values of the graphic data such as the material shape and the finished shape of the work, and extend this to the center axis to draw the outline. indicate. However, when extending this graphic element, if the extension line is inside another graphic or if the extension line intersects with another graphic element, the line segment beyond that is not displayed. By this processing, a cross-sectional view of the work as shown in the upper part of the finished shape 3 in FIG. 1 can be displayed.

【0064】また、図1の仕上がり形状3の下部に表示
しているようなワークの外形図を表示する場合は、図形
要素のうちで中心軸から外側に向かって他の図形要素が
存在しない図形要素を抽出し、角度をなして他の図形要
素に接続している図形要素の端点を、中心軸まで延長し
て表示することにより実現することができる。
Further, when displaying an outline drawing of a work as displayed at the bottom of the finished shape 3 in FIG. 1, among the graphic elements, a graphic in which other graphic elements do not exist from the central axis toward the outside. This can be realized by extracting the element, displaying the end point of the graphic element that is connected to another graphic element at an angle by extending it to the central axis.

【0065】これにより、実際の加工に近い状況をシス
テム上で模擬表示することが可能となり、旋削系(2次
元加工)の場合には、内径部の段差形状を表示した断面
形状と、外形図とを同時に表示することができる。すな
わち、旋削ワークの設計図面の表記方法と同一の表示を
実現することができる。
As a result, it becomes possible to simulate the situation close to the actual machining on the system. In the case of the turning system (two-dimensional machining), the cross-sectional shape showing the stepped shape of the inner diameter and the outline drawing. And can be displayed at the same time. That is, it is possible to realize the same display as the notation method of the design drawing of the turning work.

【0066】さらに、上記ワークの画像表示に加えて、
これを工具が削り取る状況を重ねて表示することができ
る。これによって、オペレーターはリアルな画像表示に
より、ワークの形状を設計図面と容易に照合することが
できる。
Furthermore, in addition to the image display of the above work,
The situation in which the tool scrapes this can be displayed in an overlapping manner. As a result, the operator can easily check the shape of the work with the design drawing by displaying a realistic image.

【0067】さらに、本NC加工装置の画像表示モード
において、工具動作指令(Gコード指令)以外の補助動
作指令(Mコード、Tコード等)、たとえば、切削水吐
出のON/OFF指令、工具交換等を目視可能に表示す
ることができる。
Further, in the image display mode of the NC machining apparatus, auxiliary operation commands (M code, T code, etc.) other than the tool operation command (G code command), for example, ON / OFF command for cutting water discharge, tool exchange. Etc. can be visually displayed.

【0068】たとえば、切削水吐出のON/OFF指令
(通常、M09/M08)が発せられた場合に画面表示
の背景色を青/黒に変化させたり、あるいは、主軸の回
転ON/OFF指令(通常、M05/M04)が発せら
れた場合に画面表示の工具が回転する模様を表示した
り、あるいは、工具交換の指令(通常、T××M06)
が発せられた場合にATCの動作を模擬的に表示したり
する。これによって、工具の動作以外の装置の動作を目
視によって確認することが可能となる。
For example, when a cutting water discharge ON / OFF command (usually M09 / M08) is issued, the background color of the screen display is changed to blue / black, or a spindle rotation ON / OFF command ( Usually, when the M05 / M04) is issued, the pattern of the tool displayed on the screen is displayed to rotate, or a tool change command (usually TXXM06)
When the is issued, the operation of the ATC is simulated and displayed. This makes it possible to visually confirm the operation of the device other than the operation of the tool.

【0069】次に、本NC加工装置による、工具交換ご
とのNC加工プログラムのブロックを自動的にページ分
けして表示する機能について以下に説明する。図10
は、工具ごとにNC加工プログラムをページ分けして表
示した画面の一例を示している。工具の交換は通常Tコ
ードによって指令されるので、本NC加工装置は、NC
加工プログラム中のTコードを検索し、一Tコードから
次のTコードまでを一ページとしてページ分けし、これ
を図10に示す表示画面20のように表示し、インデッ
クス管理ができるようにする。
Next, the function of the present NC machining apparatus for automatically dividing the NC machining program block for each tool change into pages and displaying the same will be described below. FIG.
Shows an example of a screen in which the NC machining program is divided into pages and displayed for each tool. Since the tool change is usually instructed by the T code, this NC processing device
The T code in the machining program is searched, and one T code to the next T code are divided into pages, which are displayed as a display screen 20 shown in FIG. 10 to enable index management.

【0070】このように工具ごとにページ分けして表示
するのは、NC加工プログラムのチェック作業は、1本
の工具での加工を指令したブロックを1単位として、分
割してチェックを行うことが多いからである。
In this way, the pages are displayed for each tool. In the check work of the NC machining program, the block for which machining with one tool is instructed is set as one unit and the check is performed separately. Because there are many.

【0071】これにより、使用工具の本数が多い場合
や、大きなサイズのNCプログラムを検証する場合は、
画像表示モードとテキストデータ表示モードとの間の移
行等の操作性が向上し、効率よくNC加工プログラムの
検証を行うことができる。
As a result, when a large number of tools are used or a large NC program is verified,
The operability such as the transition between the image display mode and the text data display mode is improved, and the NC machining program can be efficiently verified.

【0072】次に、本NC加工装置による重/軽切削の
自動判定について以下に説明する。
Next, the automatic determination of heavy / light cutting by this NC processing apparatus will be described below.

【0073】重/軽切削の自動判定のためには、図11
に示すような工具別の適正切削送りの条件を装置の処理
システム内のマスターデータベースに予め格納してお
く。次に、工具軌跡を生成するためにNCプログラムソ
ーステキストを読み取る際に、ソーステキストから加工
条件値を読み取り、その工具に予め登録してある適正送
りよりも50%以上異なる送りの指定箇所を重/軽切削
として自動判定し、ソーステキストの当該送り指定(F
指定)キャラクタを、図11の下部に示すように色付き
表示する。
For automatic determination of heavy / light cutting, refer to FIG.
The proper cutting feed conditions for each tool as shown in (4) are stored in advance in the master database in the processing system of the apparatus. Next, when reading the NC program source text to generate the tool path, the processing condition value is read from the source text, and the specified location of the feed that differs by 50% or more from the proper feed registered in advance for the tool is overlapped. / It is automatically judged as light cutting and the relevant feed designation (F
The designated character is displayed in color as shown in the lower part of FIG.

【0074】これにより、各工具の軌跡のみでなく、適
正な加工条件の下で各工具によって切削加工を行うこと
ができ、工具の消耗・破損を防止して、効率よく切削加
工を行うことができる。
As a result, not only the trajectory of each tool, but also the cutting can be performed by each tool under proper processing conditions, the tool is prevented from being worn and damaged, and the cutting is efficiently performed. it can.

【0075】[0075]

【発明の効果】上記説明から明らかなように、本発明に
よるNC加工装置によれば、NC加工プログラムの不具
合部分を自動的に判定検出することができる。また、自
動的に工具軌跡の不具合部分から、NC加工プログラム
のソーステキストの修正すべき部分を検索してオペレー
ターに表示するので、NC加工プログラムのチェック、
修正等の操作性の良いNC加工装置を提供することがで
きる。
As is apparent from the above description, the NC machining apparatus according to the present invention can automatically determine and detect the defective portion of the NC machining program. In addition, since the portion to be corrected of the NC machining program source text is automatically searched from the defective portion of the tool path and displayed to the operator, the NC machining program check,
It is possible to provide an NC processing apparatus having good operability such as correction.

【0076】さらに、本発明によるNC加工装置によれ
ば、複数の切削工程の工具軌跡を包絡線で表示でき、こ
れによって、特定の切削工程と次工程の切削工程の関
係、あるいは特定の切削工程とワークの仕上り形状との
関係を容易に検証することができる。
Further, according to the NC machining apparatus of the present invention, the tool trajectories of a plurality of cutting processes can be displayed as envelopes, whereby the relationship between a specific cutting process and the next cutting process, or a specific cutting process. And the finished shape of the work can be easily verified.

【0077】また、本発明によるNC加工装置によれ
ば、工具の適正な加工条件とNC加工プログラム上の加
工条件とを自動照合でき、これにより、適当でない加工
条件部分を検出でき、高品質高効率の切削加工を行うこ
とができる。
Further, according to the NC machining apparatus of the present invention, the proper machining conditions of the tool and the machining conditions on the NC machining program can be automatically collated, whereby the inappropriate machining condition portion can be detected, and the high quality and high quality can be detected. Efficient cutting can be performed.

【0078】また、本発明によるNC加工装置によれ
ば、空洞部分の形状を表示した切断面と外形図を同時に
表示でき、これによって、設計図面との照合を容易にす
ることができる。さらに、上記切断面と外形図上に工具
の切削軌跡を表示でき、これによって切削工程のリアル
な表示を実現することができる。
Further, according to the NC processing apparatus of the present invention, the cut surface showing the shape of the hollow portion and the outline drawing can be displayed at the same time, which facilitates the collation with the design drawing. Further, the cutting locus of the tool can be displayed on the cutting surface and the outline drawing, which makes it possible to realize a realistic display of the cutting process.

【0079】また、本発明によるNC加工装置は、所定
の座標軸に関する座標値、あるいは図形要素の始点に対
する終点の増分を図形要素の端点の近傍に表示すること
により、通常のNC加工プログラムの検証方法に適した
検証を可能にする。
Further, the NC machining apparatus according to the present invention displays the coordinate value on a predetermined coordinate axis or the increment of the end point with respect to the start point of the graphic element in the vicinity of the end point of the graphic element, thereby performing a normal NC machining program verification method. Enables verification suitable for.

【0080】また、本発明によるNC加工装置によれ
ば、使用工具によって自動的にNC加工プログラムをペ
ージ分けして表示・管理する。これにより、工具ごとの
検証が容易になり、多数の工具を使用するNC加工プロ
グラムの検証の効率を向上させることができる。
Further, according to the NC machining apparatus of the present invention, the NC machining program is automatically divided into pages and displayed / managed depending on the tools used. This facilitates verification for each tool and improves the efficiency of verification of an NC machining program that uses a large number of tools.

【0081】また、本発明によるNC加工装置は、工具
軌跡を画像表示モードで修正することにより、自動的に
NC加工プログラムのソーステキストを整合させる。こ
れにより、オペレーターは、工具軌跡の修正に専念で
き、煩雑な表示モードの切換から解放され、効率よくN
C加工プログラムを修正することができる。
Further, the NC machining apparatus according to the present invention automatically adjusts the source text of the NC machining program by modifying the tool path in the image display mode. As a result, the operator can concentrate on the correction of the tool path, is free from the complicated display mode switching, and can efficiently perform N
The C machining program can be modified.

【0082】最後に、本発明によるNC加工装置は、工
具の移動を伴わない装置の動作、すなわち装置の補助動
作指令を目視化することができる。これにより、オペレ
ーターは装置の作動状態を把握でき、切削加工に適した
状態にNC加工装置を維持し、適切な切削加工を行うこ
とができる。
Finally, the NC machining apparatus according to the present invention can visualize the operation of the apparatus without the movement of the tool, that is, the auxiliary operation command of the apparatus. As a result, the operator can grasp the operating state of the apparatus, maintain the NC processing apparatus in a state suitable for cutting, and perform appropriate cutting.

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

【図1】NC加工装置の画面表示例を示した図。FIG. 1 is a diagram showing a screen display example of an NC processing device.

【図2】工具軌跡の切り込み過ぎ部分を例示した図。FIG. 2 is a diagram exemplifying an excessively cut portion of a tool path.

【図3】工具軌跡の削残し部分を例示した図。FIG. 3 is a diagram illustrating an uncut portion of a tool path.

【図4】画像表示モードに対応したNC加工プログラム
の修正箇所の強調表示を例示した図。
FIG. 4 is a diagram exemplifying highlighting of a corrected portion of an NC machining program corresponding to an image display mode.

【図5】工具軌跡の包絡線を例示した図。FIG. 5 is a view exemplifying an envelope of a tool path.

【図6】工具軌跡の包絡線同士の干渉チェックを行う画
面を例示した図。
FIG. 6 is a diagram exemplifying a screen for checking the interference between the envelopes of the tool path.

【図7】工具軌跡の画像修正に伴うNC加工プログラム
の自動修正を説明した図。
FIG. 7 is a diagram illustrating automatic correction of an NC machining program accompanied by image correction of a tool path.

【図8】工具軌跡の図形要素の端点のX座標値を表示し
た画面を示した図。
FIG. 8 is a diagram showing a screen displaying X coordinate values of end points of graphic elements of a tool path.

【図9】工具軌跡の図形要素の始点からの増分値を終点
の近傍に表示した画面を示した図。
FIG. 9 is a diagram showing a screen in which an increment value from a start point of a graphic element of a tool path is displayed near an end point.

【図10】使用する工具別のソーステキストリストの自
動ページ分けした画面を例示した図。
FIG. 10 is a diagram exemplifying a screen in which a source text list for each tool used is automatically paginated.

【図11】重/軽切削の自動判定を説明した図。FIG. 11 is a diagram illustrating automatic determination of heavy / light cutting.

【符号の説明】[Explanation of symbols]

1 本NC加工装置による表示画面 2 ワークの素材形状 3 仕上がり形状 4 工具の軌跡 5 ソーステキスト 6 工具の掃引領域 7 工具軌跡の包絡線 8 粗加工工程の工具軌跡包絡線 9 仕上げ加工工程の工具軌跡包絡線 10 修正すべき工具軌跡の図形要素 11 新しい工具軌跡の図形要素 11a 端点座標 11b 端点座標 12 対応するソーステキストの箇所 13 対応するソーステキストの箇所 1 Display screen by NC machining device 2 Work material shape 3 Finished shape 4 Tool trajectory 5 Source text 6 Tool sweep area 7 Tool trajectory envelope 8 Tool trajectory envelope in rough machining process 9 Tool trajectory in finishing process Envelope 10 Graphical element of tool path to be corrected 11 Graphical element of new tool path 11a End point coordinates 11b End point coordinates 12 Corresponding source text location 13 Corresponding source text location

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】NC加工プログラムから工具軌跡の画像デ
ータを生成し、この工具軌跡の画像データと予め入力し
たワークの仕上がり形状の画像データとを比較し、工具
が所定のしきい値を超えてワークの仕上がり形状内に入
り込む部分を切り込み過ぎ部分、工具が所定のしきい値
より小さい距離範囲内でワークの仕上がり形状の表面に
沿って通過する部分を正常切削部分、ワークの仕上がり
形状に沿って通過する工具軌跡のうちの欠損部分を削り
残し部分とそれぞれ判定し、前記切り込み過ぎ部分と削
り残し部分を強調表示することを特徴とするNC加工装
置。
1. An image data of a tool path is generated from an NC machining program, and the image data of the tool path is compared with image data of a finish shape of a work input in advance, and the tool exceeds a predetermined threshold value. A part that goes into the finished shape of the work is cut too much, a part where the tool passes along the surface of the finished shape of the work within a distance range smaller than a predetermined threshold value is normally cut, and along the finished shape of the work An NC machining apparatus characterized in that a defective portion of a tool path passing through is determined as an uncut portion, and the overcut portion and the uncut portion are highlighted.
【請求項2】前記切り込み過ぎ部分あるいは前記削り残
し部分を検出した場合に、対応するNC加工プログラム
のソーステキスト上の部分を、彩色を含む強調表示をす
ることを特徴とする請求項1に記載のNC加工装置。
2. When the overcut portion or the uncut portion is detected, the portion on the source text of the corresponding NC machining program is highlighted with a color. NC processing equipment.
【請求項3】複数の切削工程を行うNC加工プログラム
から、各切削工程の工具軌跡の画像データを生成し、指
定した切削工程までの工具軌跡の包絡線の画像データを
生成し、この包絡線の画像データと、次工程の工具軌跡
の画像データあるいは予め入力したワークの仕上がり形
状の画像データとを比較し、包絡線の工具が所定のしき
い値を超えて次工程の工具軌跡あるいはワークの仕上が
り形状内に入り込む部分を切り込み過ぎ部分、包絡線の
工具が所定のしきい値より小さい距離範囲内で次工程の
工具軌跡あるいはワークの仕上がり形状に沿って通過す
る部分を正常切削部分、次工程の工具軌跡あるいはワー
クの仕上がり形状に沿って通過する工具軌跡のうちの欠
損部分を削り残し部分とそれぞれ判定し、前記切り込み
過ぎ部分と削り残し部分を強調表示することを特徴とす
るNC加工装置。
3. An NC machining program for performing a plurality of cutting processes, image data of a tool locus of each cutting process is generated, image data of an envelope of a tool locus up to a designated cutting process is generated, and this envelope curve is generated. Image data and the image data of the tool locus of the next process or the image data of the finished shape of the work input in advance are compared, and the tool of the envelope exceeds the predetermined threshold value and the tool locus of the next process or the work The part that goes into the finished shape is cut too much, the part of the envelope that passes along the tool path of the next process or the finished shape of the workpiece within the distance range smaller than the predetermined threshold is the normal cutting part, the next process Of the tool path or the tool path that passes along the finished shape of the workpiece is determined as the uncut portion, and the overcut portion and the uncut portion are determined. NC machining apparatus characterized by highlighting portions.
【請求項4】複数の工具によって切削加工を行うNC加
工装置において、使用する各工具の適正な切削条件をデ
ータベース内に予め格納しておき、NC加工プログラム
から使用する工具の種類を判定し、前記NC加工プログ
ラムに規定された前記工具の切削条件を検索し、この工
具の切削条件と前記データベースの該当工具の適正な切
削条件とを比較し、過度の負荷となる重切削と、不十分
な負荷となる軽切削とを指令したプログラム部分を判別
し、これらの部分を強調表示することを特徴とするNC
加工装置。
4. In an NC machining device that performs machining with a plurality of tools, appropriate cutting conditions for each tool to be used are stored in advance in a database, and the type of tool to be used is determined from the NC machining program, The cutting conditions of the tool specified in the NC machining program are searched, the cutting conditions of this tool are compared with the proper cutting conditions of the corresponding tool in the database, and heavy cutting that causes excessive load and insufficient cutting The NC which is characterized by distinguishing the program part instructing the light cutting which is a load and highlighting these parts.
Processing equipment.
【請求項5】旋削加工を行うNC加工装置において、入
力したワークの形状に関する画像データからワークの外
形図と断面図とを生成し、工具がワークを切削していく
過程を経時的に表示することを特徴とするNC加工装
置。
5. An NC machining apparatus for performing a turning process generates an outline drawing and a cross-sectional view of a work from the input image data relating to the shape of the work, and displays the process in which the tool cuts the work over time. An NC processing device characterized in that
【請求項6】画面に表示されている工具軌跡あるいはワ
ークの形状の各図形要素の端点あるいは支点の近傍に、
指定した座標軸に関する座標値を自動的に表示すること
を特徴とするNC加工装置。
6. The vicinity of the end point or fulcrum of each graphic element of the tool path or work shape displayed on the screen,
An NC processing device characterized by automatically displaying coordinate values relating to designated coordinate axes.
【請求項7】画面に表示されている工具軌跡の各図形要
素の始点に対する終点の座標増分値を、その終点の位置
を規定する値として、該終点の近傍に自動表示すること
を特徴とするNC加工装置。
7. The coordinate increment value of the end point with respect to the start point of each graphic element of the tool path displayed on the screen is automatically displayed near the end point as a value defining the position of the end point. NC processing equipment.
【請求項8】NC加工プログラムの工具交換指令を検索
して判断し、使用工具種類ごとにNC加工プログラムを
ブロック分けし、前記NC加工プログラムのブロックご
とにページ分け表示およびインデックス管理を行うこと
を特徴とするNC加工装置。
8. A tool exchange command of an NC machining program is searched and judged, the NC machining program is divided into blocks for each type of tool used, and page display and index management are performed for each block of the NC machining program. Characteristic NC processing device.
【請求項9】画像表示モード上で工具軌跡の所定の図形
要素を修正することにより、関連する図形要素の延長あ
るいはトリミング処理を自動的に行い、かつ、対応する
NC加工プログラムの部分を画像の変化と整合するよう
に自動的に修正することを特徴とするNC加工装置。
9. A predetermined graphic element of a tool path is corrected in an image display mode to automatically extend or trim a related graphic element, and a corresponding NC machining program portion is displayed as an image. An NC processing device that is automatically corrected to match changes.
【請求項10】補助動作指令による装置の動作を所定の
表示方法と予め対応させ、動作状況を前記補助動作指令
と対応する表示方法によって表示することを特徴とする
NC加工装置。
10. An NC processing apparatus, wherein the operation of the device according to an auxiliary operation command is made to correspond to a predetermined display method in advance, and the operation status is displayed by a display method corresponding to the auxiliary operation command.
JP21192195A 1995-08-21 1995-08-21 Nc machining device Pending JPH0962326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21192195A JPH0962326A (en) 1995-08-21 1995-08-21 Nc machining device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21192195A JPH0962326A (en) 1995-08-21 1995-08-21 Nc machining device

Publications (1)

Publication Number Publication Date
JPH0962326A true JPH0962326A (en) 1997-03-07

Family

ID=16613880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21192195A Pending JPH0962326A (en) 1995-08-21 1995-08-21 Nc machining device

Country Status (1)

Country Link
JP (1) JPH0962326A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000011528A1 (en) * 1998-08-24 2000-03-02 Okuma Corporation Method and apparatus for nc machining support
JP2001014012A (en) * 1999-06-30 2001-01-19 Toshiba Mach Co Ltd Numerical controller
JP2003022108A (en) * 2001-07-10 2003-01-24 Yamazaki Mazak Corp Abnormality management device of machine tool
US7392109B2 (en) 2000-07-31 2008-06-24 Kabushiki Kaisha Toyota Chuokenkyusho System for integrally generating NC data
CN100421043C (en) * 2002-05-17 2008-09-24 大隈株式会社 Method of displaying tool track according to numerically controlled data and method for analyzing numerically controlled data
JP2009116782A (en) * 2007-11-09 2009-05-28 Mazda Motor Corp Support method and device for machining process verification, support program for machining process verification, and storage medium
WO2011074518A1 (en) * 2009-12-17 2011-06-23 株式会社安川電機 Control system
JP5349712B1 (en) * 2012-12-17 2013-11-20 三菱電機株式会社 Numerical controller
WO2016035869A1 (en) * 2014-09-03 2016-03-10 ヤマザキマザック 株式会社 Machining program editing assistance device
WO2016035868A1 (en) * 2014-09-03 2016-03-10 ヤマザキマザック 株式会社 Machining program editing assistance device
US9811759B2 (en) 2012-12-10 2017-11-07 Mitsubishi Electric Corporation NC program searching method, NC program searching unit, NC program creating method, and NC program creating unit
JP2018101401A (en) * 2016-09-28 2018-06-28 ザ・ボーイング・カンパニーThe Boeing Company Method and apparatus for monitoring automated drilling processes
JP2018180736A (en) * 2017-04-06 2018-11-15 ファナック株式会社 Information processing unit
DE102018133021A1 (en) 2017-12-27 2019-06-27 Fanuc Corporation CUTTING CONDITION-REVIEW DEVICE
JP2019175335A (en) * 2018-03-29 2019-10-10 ファナック株式会社 Simulation device
JP2019177428A (en) * 2018-03-30 2019-10-17 共和レザー株式会社 Trimming method of surplus part of molding, and trimming device of surplus part of molding
JP2020069634A (en) * 2018-10-29 2020-05-07 西部電機株式会社 Grinding program generation device, grinding program processor, and grinding program generation method
JP2021033765A (en) * 2019-08-27 2021-03-01 ファナック株式会社 Processing program generation support system

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000011528A1 (en) * 1998-08-24 2000-03-02 Okuma Corporation Method and apparatus for nc machining support
US6505092B1 (en) 1998-08-24 2003-01-07 Okuma Corporation NC machining support method and device
JP2001014012A (en) * 1999-06-30 2001-01-19 Toshiba Mach Co Ltd Numerical controller
US7392109B2 (en) 2000-07-31 2008-06-24 Kabushiki Kaisha Toyota Chuokenkyusho System for integrally generating NC data
JP2003022108A (en) * 2001-07-10 2003-01-24 Yamazaki Mazak Corp Abnormality management device of machine tool
CN100421043C (en) * 2002-05-17 2008-09-24 大隈株式会社 Method of displaying tool track according to numerically controlled data and method for analyzing numerically controlled data
JP2009116782A (en) * 2007-11-09 2009-05-28 Mazda Motor Corp Support method and device for machining process verification, support program for machining process verification, and storage medium
WO2011074518A1 (en) * 2009-12-17 2011-06-23 株式会社安川電機 Control system
US9811759B2 (en) 2012-12-10 2017-11-07 Mitsubishi Electric Corporation NC program searching method, NC program searching unit, NC program creating method, and NC program creating unit
JP5349712B1 (en) * 2012-12-17 2013-11-20 三菱電機株式会社 Numerical controller
WO2014097371A1 (en) * 2012-12-17 2014-06-26 三菱電機株式会社 Numerical control device
CN104160345A (en) * 2012-12-17 2014-11-19 三菱电机株式会社 Numerical control device
CN104160345B (en) * 2012-12-17 2016-04-20 三菱电机株式会社 Numerical control device
JP5990662B2 (en) * 2014-09-03 2016-09-14 ヤマザキマザック株式会社 Machining program editing support device
US10379523B2 (en) 2014-09-03 2019-08-13 Yamazaki Mazak Corporation Machining program editing assist apparatus
CN105900028A (en) * 2014-09-03 2016-08-24 山崎马扎克公司 Machining program editing assistance device
WO2016035868A1 (en) * 2014-09-03 2016-03-10 ヤマザキマザック 株式会社 Machining program editing assistance device
CN106471430A (en) * 2014-09-03 2017-03-01 山崎马扎克公司 Processor editor's auxiliary device
JPWO2016035868A1 (en) * 2014-09-03 2017-04-27 ヤマザキマザック株式会社 Machining program editing support device
WO2016035869A1 (en) * 2014-09-03 2016-03-10 ヤマザキマザック 株式会社 Machining program editing assistance device
CN106471430B (en) * 2014-09-03 2018-01-02 山崎马扎克公司 Procedure editor's servicing unit
JP5925976B1 (en) * 2014-09-03 2016-05-25 ヤマザキマザック株式会社 Machining program editing support device
US10295987B2 (en) 2014-09-03 2019-05-21 Yamazaki Mazak Corporation Machining program editing assist apparatus
JP2018101401A (en) * 2016-09-28 2018-06-28 ザ・ボーイング・カンパニーThe Boeing Company Method and apparatus for monitoring automated drilling processes
JP2018180736A (en) * 2017-04-06 2018-11-15 ファナック株式会社 Information processing unit
US10656621B2 (en) 2017-04-06 2020-05-19 Fanuc Corporation Information processing device
DE102018133021A1 (en) 2017-12-27 2019-06-27 Fanuc Corporation CUTTING CONDITION-REVIEW DEVICE
US11073817B2 (en) 2017-12-27 2021-07-27 Fanuc Corporation Cutting condition verification device
JP2019175335A (en) * 2018-03-29 2019-10-10 ファナック株式会社 Simulation device
CN110320861A (en) * 2018-03-29 2019-10-11 发那科株式会社 Simulator
JP2019177428A (en) * 2018-03-30 2019-10-17 共和レザー株式会社 Trimming method of surplus part of molding, and trimming device of surplus part of molding
JP2020069634A (en) * 2018-10-29 2020-05-07 西部電機株式会社 Grinding program generation device, grinding program processor, and grinding program generation method
JP2021033765A (en) * 2019-08-27 2021-03-01 ファナック株式会社 Processing program generation support system

Similar Documents

Publication Publication Date Title
JPH0962326A (en) Nc machining device
US10379523B2 (en) Machining program editing assist apparatus
US4750105A (en) Automatic programming system including machining accuracy optimization
DE102018009023B4 (en) Teaching device for carrying out robot teaching processes and teaching methods
JP4011372B2 (en) Machining program check method and check apparatus for numerically controlled machine tool, and numerically controlled machine tool provided with the same
DE102017102260B4 (en) Robot programming device for teaching a robot program
US10295987B2 (en) Machining program editing assist apparatus
GB2259586A (en) Method of and system for generating teaching data for robots
CN111353241A (en) G code-based mathematical modeling method and application
EP3221094B1 (en) Method and system for correcting a processing path of a robot-guided tool
JP3920144B2 (en) NC data tool path display method
US7050925B2 (en) Apparatus for integrated tool manufacture and method therefor
US5471394A (en) Method for defining machining areas of a workpiece
JP2012018472A (en) Device and method for working simulation
EP0113682A2 (en) Numerical control system and method
JP3834268B2 (en) NC data tool path display method
JPS619705A (en) Numerically controlled machine tool
JPH03166039A (en) Method and device for deciding method of machining inner diameter in function of generating information on numerical control
JP4378644B2 (en) Tool machining path data generation method and machining path generation program
JPH09150347A (en) Machining action simulation method
US5239477A (en) Conversational-type programming apparatus classifying by color regions to be machined
JP3878516B2 (en) NC data tool path display method and NC data analysis method
CN117348524B (en) CAM system for automatically controlling machining center according to drawing
JPH03220604A (en) Device and method for plotting tool locus in numerical controller
EP2420360B1 (en) Method and programming means for programming a robot