JPH0562364B2 - - Google Patents

Info

Publication number
JPH0562364B2
JPH0562364B2 JP60012254A JP1225485A JPH0562364B2 JP H0562364 B2 JPH0562364 B2 JP H0562364B2 JP 60012254 A JP60012254 A JP 60012254A JP 1225485 A JP1225485 A JP 1225485A JP H0562364 B2 JPH0562364 B2 JP H0562364B2
Authority
JP
Japan
Prior art keywords
tool path
machining program
sequence
point
corrected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60012254A
Other languages
Japanese (ja)
Other versions
JPS61170807A (en
Inventor
Akimitsu Nagae
Toshihiko Inoe
Masahiro Kawabe
Mutsumi Nakayama
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.)
Yamazaki Mazak Corp
Original Assignee
Yamazaki Mazak 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 Yamazaki Mazak Corp filed Critical Yamazaki Mazak Corp
Priority to JP60012254A priority Critical patent/JPS61170807A/en
Publication of JPS61170807A publication Critical patent/JPS61170807A/en
Publication of JPH0562364B2 publication Critical patent/JPH0562364B2/ja
Granted 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
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Description

【発明の詳細な説明】 (a) 産業上の利用分野 本発明は工作機械を駆動制御する数値制御装置
に係り、特にデイスプレイ上に表示された工具経
路を修正指示手段により指示することにより、当
該指示された部分の工具経路に係わる加工プログ
ラムの対応する部分を修正することが出来る数値
制御装置に関する。
[Detailed Description of the Invention] (a) Industrial Application Field The present invention relates to a numerical control device for controlling the drive of a machine tool, and in particular, the present invention relates to a numerical control device for driving and controlling a machine tool. The present invention relates to a numerical control device that can modify a corresponding part of a machining program related to a tool path of a designated part.

(b) 従来の技術 第12図において、加工プログラムはEIA/
ISOコードを用いて表示しているが、加工準備機
能の数値制御指令であるGコードのうち「G01」
は切削送り指令であり、「G02」は円弧指令であ
る。また、X及びYを文頭に付されたコードは、
それぞれの軸方向に移動させる終点座標値を示
す。I及びJを文頭に付されたコードは、それぞ
れ円弧の中心座標値を示し、Rを文頭に付された
コードは、円弧の半径値を示す。;は、Gコード
で始まる1単位として扱える連続したワードの集
まりの終わりを示す機能で、この連続したワード
の集まりをJIS B 0181−1973では、ブロツクと
定義している。(本発明では、この用語は、シー
ケンスという)。
(b) Conventional technology In Figure 12, the machining program is EIA/
Although it is displayed using an ISO code, "G01" is a G code that is a numerical control command for the machining preparation function.
is a cutting feed command, and "G02" is an arc command. Also, the code with X and Y at the beginning of the sentence is
Indicates the coordinate value of the end point to be moved in each axis direction. Codes prefixed with I and J indicate the center coordinate values of the circular arc, and codes prefixed with R indicate the radius value of the circular arc. ; is a function that indicates the end of a collection of consecutive words that can be treated as one unit starting with the G code, and this collection of consecutive words is defined as a block in JIS B 0181-1973. (In the present invention, this term is referred to as sequence).

加工プログラム中の工具経路が正しく作成され
ているか否かを判断するために、数値制御装置の
デイスプレイ上で加工プログラムをシユミレーシ
ヨンすることが従来から行われているが、その場
合、工具経路の誤りが有ると、加工プログラム中
の対応するシーケンスを手動操作により捜し出
し、修正を行つていた。
In order to judge whether the tool path in the machining program has been created correctly, it has traditionally been done to simulate the machining program on the display of a numerical control device. If such a sequence exists, the corresponding sequence in the machining program must be manually searched for and corrected.

(c) 発明が解決しようとする問題点 しかし、加工プログラム中には同じようなデー
タが数多く配列されているので、修正対象データ
を捜し出す作業は極めて繁雑でかつミスの生じる
危険性の高いものであつた。
(c) Problems to be solved by the invention However, since a large number of similar data are arranged in a machining program, the task of searching for data to be corrected is extremely complicated and has a high risk of making mistakes. It was hot.

本発明は、前述の欠点を解消すべく、オペレー
タが工具経路の修正に際して加工プログラムを手
動で捜し出す必要の無い、従つてミスの生じる危
険性が少なく、信頼性の高い修正が可能な数値制
御装置を提供することを目的とするものである。
In order to eliminate the above-mentioned drawbacks, the present invention provides a numerical control system that eliminates the need for an operator to manually search for a machining program when modifying a tool path, thereby reducing the risk of mistakes and allowing highly reliable modifications. The purpose is to provide the following.

(d) 問題点を解決するための手段 即ち、本発明は、加工プログラムに示された工
具経路を表示するデイスプレイを有し、前記デイ
スプレイ上で修正すべき工具経路を始点及び終点
の2点で指示する工具経路修正指示手段を設け、
前記工具経路修正指示手段から指示された修正す
べき、前記2点を結ぶ工具経路において、修正編
集すべき加工プログラム上のシーケンス数を演算
するシーケンス数演算手段を設け、前記シーケン
ス数演算手段により修正すべきシーケンス数が複
数の場合に、不要なシーケンスを前記加工プログ
ラムから消去するシーケンス消去手段を設け、更
に前記工具経路修正指示手段から指示され、作成
されていた工具経路の加工プログラム上にある前
記2点を結ぶ工具経路について、該加工プログラ
ムの新たな動作指令を作成する動作指令作成手段
を設けて構成される。
(d) Means for solving the problem That is, the present invention has a display that displays the tool path indicated in the machining program, and the tool path to be corrected is displayed on the display at two points, a start point and an end point. Provide a tool path correction instruction means to instruct,
A sequence number calculating means is provided for calculating the number of sequences on the machining program to be corrected and edited in the tool path connecting the two points to be corrected, which is instructed by the tool path correction instruction means, and the sequence number calculating means is used to correct the sequence number. When there is a plurality of sequences to be processed, a sequence erasing means is provided for erasing unnecessary sequences from the machining program, and the sequence erasing means is further provided for erasing unnecessary sequences from the machining program of the tool path that was created as instructed by the tool path correction instruction means. The present invention is constructed by providing a motion command creation means for creating a new motion command of the machining program for a tool path connecting two points.

(e) 作用 上記した構成により、本発明は、オペレータが
工具経路修正指示手段を操作して修正編集すべき
工具経路を指示するだけで、修正すべき加工プロ
グラム中の不要なシーケンスが検索消去され、更
に新たな動作指令が作成されるように作用する。
(e) Effect With the above-described configuration, the present invention allows unnecessary sequences in the machining program to be corrected to be searched and deleted simply by the operator operating the tool path correction instruction means and instructing the tool path to be corrected and edited. , further acts to create a new operation command.

(f) 実施例 以下、本発明の実施例を図面に基づき説明す
る。
(f) Embodiments Hereinafter, embodiments of the present invention will be described based on the drawings.

第1図は本発明による数値制御装置の一実施例
を示す制御ブロツク図、第2図は加工プログラム
修正プログラムの一例を示すフローチヤート、第
3図は編集対象シーケンス数演算サブルーチンを
示すフローチヤート、第4図はシーケンス消去サ
ブルーチンを示すフローチヤート、第5図は編集
シーケンス作成サブルーチンを示すフローチヤー
ト、第6図はデータ変換演算サブルーチンを示す
フローチヤート、第7図はデイスプレイ上での表
示座標系と、加工プログラム座標系との関係を示
す図、第8図乃至第11図は工具経路の修正時に
おけるデイスプレイ上での表示態様の一例を示す
図、第12図は加工プログラムの修正態様の一例
を示す図である。
FIG. 1 is a control block diagram showing an embodiment of the numerical control device according to the present invention, FIG. 2 is a flowchart showing an example of a machining program correction program, and FIG. 3 is a flowchart showing a subroutine for calculating the number of sequences to be edited. Fig. 4 is a flowchart showing the sequence deletion subroutine, Fig. 5 is a flowchart showing the editing sequence creation subroutine, Fig. 6 is a flowchart showing the data conversion calculation subroutine, and Fig. 7 is a flowchart showing the display coordinate system on the display. , a diagram showing the relationship with the machining program coordinate system, FIGS. 8 to 11 are diagrams showing an example of the display format on the display when modifying the tool path, and FIG. 12 is a diagram showing an example of the modification format of the machining program. FIG.

数値制御装置1は、第1図に示すように、主制
御部2を有しており、主制御部2にはデイスプレ
イ3、キーボード、マウス等の入力装置5、編集
操作制御部6、座標読取演算部7、工具経路編集
演算部9、工具経路編集制御部18、実行制御デ
ータメモリ10、シユミレーシヨン制御部8、加
工プログラムメモリ14、システムプログラムメ
モリ12、NCプログラム作成制御部13等が接
続している。実行制御データメモリ10には工作
機械における各制御軸を駆動制御する軸制御部1
5が接続しており、軸制御部15には前記各制御
軸を駆動する駆動モータ16が接続している。
As shown in FIG. 1, the numerical control device 1 has a main control section 2, which includes a display 3, an input device 5 such as a keyboard and a mouse, an editing operation control section 6, and a coordinate reading section. The calculation unit 7, tool path editing calculation unit 9, tool path editing control unit 18, execution control data memory 10, simulation control unit 8, machining program memory 14, system program memory 12, NC program creation control unit 13, etc. are connected. There is. The execution control data memory 10 includes an axis control unit 1 that drives and controls each control axis in the machine tool.
5 is connected to the axis control section 15, and a drive motor 16 for driving each of the control axes is connected to the axis control section 15.

数値制御装置1は、以上のような構成を有する
ので、オペレータが入力装置5を介して入力した
加工データに基づいて、NCプログラム作成制御
部13は加工プログラムPROを公知の自動プロ
グラムの手法で作成し、加工プログラムメモリ1
4中に格納する。加工プログラムメモリ14中に
作成格納された加工プログラムPROはその実行
に先立ち、NCプログラム作成制御部13により
作成された加工プログラムPROの工具経路が正
しく設定されているか否かを、当該加工プログラ
ムPROをデイスプレイ3上でシユミレーシヨン
することにより表示させ、確認する。加工プログ
ラムPROのシユミレーシヨンはシユミレーシヨ
ン制御部8が所定の演算をしてデイスプレイ3上
に工具経路を表示してゆくことより行うが、その
手法は、既に公知であり、1985年1月現在、数値
制御装置の機能の一部として広く用いられている
ので、ここではその詳細なる説明は省略する。
Since the numerical control device 1 has the above configuration, the NC program creation control section 13 creates the machining program PRO using a known automatic program method based on the machining data input by the operator via the input device 5. and machining program memory 1
Store in 4. Before executing the machining program PRO created and stored in the machining program memory 14, the NC program creation control unit 13 checks whether the tool path of the machining program PRO is set correctly. It is displayed and confirmed by simulation on the display 3. The simulation of the machining program PRO is performed by the simulation control unit 8 performing predetermined calculations and displaying the tool path on the display 3. This method is already known, and as of January 1985, numerical control Since it is widely used as part of the functions of the device, a detailed explanation thereof will be omitted here.

このシユミレーシヨンにおいて、修正すべき工
具経路を発見した場合には、オペレータは入力装
置5を操作して主制御部2に加工プログラム修正
指令ACMを出力する。これを受けて主制御部2
は、システムプログラムメモリ12から加工プロ
グラム修正プログラムMAPを読み出して工具軌
跡の修正動作にはいる。即ち、加工プログラム修
正プログラムMAPでは、第2図に示すように、
ステツプS1で、オペレータが加工プログラム修
正指令ACMを入力した時点においてデイスプレ
イ3上でシユミレートしている工具経路を表示
し、ステツプS2でオペレータに、修正したい工
具経路を入力装置5を操作することにより指示さ
せる。この操作は、編集操作制御部6が入力装置
5から入力される修正位置の指示に基づきカーソ
ル17を、第8図に示すように、デイスプレイ3
上に表示された工具経路19上で移動させること
により行う。ステツプS2で修正したい工具経路
19上にカーソル17が移動位置決めされたとこ
ろで、編集対象シーケンス数演算サブルーチン
SUB1に入り、修正編集すべき対象となる加工
プログラムPRO上でのシーケンス数を演算させ
る。
In this simulation, if a tool path to be modified is found, the operator operates the input device 5 to output a machining program modification command ACM to the main control section 2. In response to this, the main control unit 2
reads the machining program modification program MAP from the system program memory 12 and starts the tool trajectory modification operation. That is, in the machining program modification program MAP, as shown in Figure 2,
In step S1, the tool path being simulated is displayed on the display 3 at the time when the operator inputs the machining program modification command ACM, and in step S2, the operator is instructed on the tool path to be modified by operating the input device 5. let In this operation, the editing operation control unit 6 moves the cursor 17 on the display 3 as shown in FIG.
This is done by moving on the tool path 19 displayed above. When the cursor 17 is moved and positioned on the tool path 19 to be modified in step S2, a subroutine for calculating the number of sequences to be edited is executed.
Enter SUB1 and calculate the number of sequences in the machining program PRO that should be corrected and edited.

編集対象シーケンス数演算サブルーチンSUB
1では、第3図に示すように、ステツプS3でオ
ペレータがカーソル17により指示した座標位置
を、座標読取演算部7により演算させて求める。
カーソル17による修正すべき工具経路19の指
示は、第9図及び第10図に示すように、デイス
プレイ3上で修正編集すべき工具経路19の始点
SP及び終点EPを指示することにより行われるの
で、ステツプS3では当該始点SP及び終点EPの座
標値を演算する。次に、ステツプS4で、加工プ
ログラムPRO中の工具経路データをシユミレー
シヨン制御部8により1シーケンスずつ模擬的に
実行し、ステツプS5で、編集操作制御部6にス
テツプS3で求めた始点SPの座標位置上を通過す
るシーケンスを実行したか否かを判定させ、実行
していない場合には、ステツプS4に戻り、実行
した場合には、ステツプS6に入つてn=1とし、
更にステツプS7に入つて終点EPの座標位置上を
通過するシーケンスを実行したか否かを判定す
る。終点EPの座標位置上を通過するシーケンス
を実行したものと判定された場合には、ステツプ
S8に入り、オペレータの指示による修正編集動
作がn個、即ち1個のシーケンスにかかる編集に
関するものと判定する。第9図に、編集対象が1
個のシーケンスに関する例を示す。この場合、加
工プログラムPRO中の修正すべきシーケンスは
図からも明らかなように、座標(x1、y1)の点
P1から座標(x2、y2)の点P2までを直線補間す
るシーケンスであり、当該点P1と点P2を結ぶ直
線、即ち工具経路19上にオペレータが指示した
修正すべき工具経路19の指示が、始点SP及び
終点EPとして存在する。従つて、この場合は、
修正は座標(x1、y1)の点P1から座標(x2、y2
の点2までを直線補間するただ1個のシーケンス
に関する。
Subroutine SUB for calculating the number of sequences to be edited
1, as shown in FIG. 3, the coordinate position indicated by the operator with the cursor 17 in step S3 is calculated by the coordinate reading calculation unit 7 to obtain it.
The instruction of the tool path 19 to be corrected by the cursor 17 is indicated by the starting point of the tool path 19 to be corrected and edited on the display 3, as shown in FIGS. 9 and 10.
Since this is performed by specifying SP and end point EP, in step S3, the coordinate values of the start point SP and end point EP are calculated. Next, in step S4, the simulation control unit 8 executes the tool path data in the machining program PRO one sequence at a time in a simulated manner, and in step S5, the editing operation control unit 6 informs the editing operation control unit 6 of the coordinate position of the starting point SP obtained in step S3. It is determined whether or not the sequence passing above has been executed. If it has not been executed, the process returns to step S4. If it has been executed, the process enters step S6 and sets n=1.
Furthermore, the process proceeds to step S7, where it is determined whether a sequence of passing over the coordinate position of the end point EP has been executed. If it is determined that the sequence passing over the coordinate position of the end point EP has been executed, the step
In step S8, it is determined that the corrective editing operation instructed by the operator is related to editing of n pieces, that is, one sequence. In Figure 9, the editing target is 1.
Here is an example for a sequence of . In this case, as is clear from the figure, the sequence to be corrected in the machining program PRO is the point at coordinates (x 1 , y 1 ).
This is a sequence of linear interpolation from P1 to point P2 at coordinates (x 2 , y 2 ), and the operator indicates the tool path 19 to be corrected on the straight line connecting point P1 and point P2, that is, the tool path 19. exists as the starting point SP and ending point EP. Therefore, in this case,
The correction is from point P1 with coordinates (x 1 , y 1 ) to coordinates (x 2 , y 2 )
Regarding only one sequence of linear interpolation up to point 2 of .

一方、ステツプS7で終点EPの座標位置上を通
過するシーケンスが実行されていないものと判定
された場合、即ち編集対象シーケンスが2個以上
の場合は、ステツプS9に入り、n=n+1とし、
更にステツプS10に入つて、次のシーケンスを模
擬的に実行し、ステツプS7に戻り、再度終点EP
の座標位置上を通過するシーケンスを実行したか
否かを判定する。する。こうして、終点EPを通
過するシーケンスが実行されるまで、ステツプ
S9でnの値を1ずつ加算し、更にステツプS10で
1シーケンスずつ加工プログラムを実行してゆ
く。また、ステツプS7で、終点EPの座標位置上
を通過するシーケンスが実行されたものと判定さ
れた場合には、ステツプS8に入り、既に説明し
たように、その時点のnの値を修正編集すべきシ
ーケンス数とする。第10図に、修正編集すべき
シーケンス数が3個の場合について説明すると、
加工プログラムPROによる工具経路19は、点
P1から点P2まで、及び点P3から点P4までを直線
補間し、更に点P2と点P3の間を時計方向に円弧
補間するものであるが、オペレータによる修正指
示が、始点SPが点P1と点P2の間、終点EPが点
P3と点P4の間で指示されると、修正編集に係わ
るシーケンス数は、点P1から点P2までを直線
補間するシーケンス、点P2と点P3の間を時計
方向に円弧補間するシーケンス、点P3から点
P4までを直線補間するシーケンスとの3個のシ
ーケンスに関する修正となる。
On the other hand, if it is determined in step S7 that the sequence passing over the coordinate position of the end point EP has not been executed, that is, if there are two or more sequences to be edited, step S9 is entered and n=n+1 is set.
Furthermore, the program enters step S10, executes the next sequence in a simulated manner, returns to step S7, and returns to the end point EP.
It is determined whether the sequence passing over the coordinate position of has been executed. do. In this way, the steps continue until the sequence is executed passing through the end point EP.
In step S9, the value of n is incremented by 1, and in step S10, the machining program is executed one sequence at a time. Furthermore, if it is determined in step S7 that the sequence passing over the coordinate position of the end point EP has been executed, the process proceeds to step S8, and as already explained, the value of n at that point is corrected and edited. Let be the power sequence number. Fig. 10 explains the case where the number of sequences to be corrected and edited is three.
Tool path 19 according to the machining program PRO is a point
Linear interpolation is performed from P1 to point P2 and from point P3 to point P4, and circular interpolation is performed clockwise between points P2 and P3. Between point P2, end point EP is point
When instructed between P3 and P4, the number of sequences involved in correction editing is a sequence of linear interpolation from point P1 to point P2, a sequence of clockwise circular interpolation between point P2 and point P3, and a sequence of circular interpolation clockwise between point P3 and point P3. empty point
This is a modification of three sequences including the sequence that linearly interpolates up to P4.

こうして、修正編集対象シーケンス数が判明し
たとことろで、第2図のステツプS11に戻り、編
集対象シーケンス数演算サブルーチンSUB1に
より求められた修正編集対象シーケンス数が複数
シーケンスであるか否かを判定し、修正編集対象
シーケンス数が複数の場合は、シーケンス消去サ
ブルーチンSUB2に入り、工具経路編集制御部
18に、不要となつた加工プログラムPRO中の
シーケンスの消去を指示する。即ち、シーケンス
消去サブルーチンSUB2は、第4図に示すよう
に、ステツプS12で、加工プログラムPROを1シ
ーケンスずつ点検して、当該シーケンスが始点
SPの存在するシーケンス(第10図においては、
始点SPが存在するシーケンスは、点P1から点P2
への直線補間を指示したシーケンスである。)で
あるか否かを判定する。第12図aに、第9図及
び第10図に示す工具軌跡19を示す加工プログ
ラムをEIA/ISOコードを用いて表示するが、こ
の場合、始点SPの存在するシーケンスSEQは、
第2行目のG01 Xx2 Yy2;なるシーケンスSEQ
となる。ステツプS12で、読み出したシーケンス
SEQが始点SPの存在するシーケンスSEQで無い
場合には、ステツプS13に入り、次のシーケンス
SEQを加工プログラムPROから呼び出し、更に
ステツプS12に戻る。
In this way, when the number of sequences to be modified and edited has been determined, the process returns to step S11 in FIG. 2, and it is determined whether the number of sequences to be modified and edited obtained by the number of sequences to be edited subroutine SUB1 is a plurality of sequences. However, if the number of sequences to be corrected and edited is plural, the sequence deletion subroutine SUB2 is entered and the tool path editing control unit 18 is instructed to delete sequences in the machining program PRO that are no longer needed. That is, as shown in FIG. 4, the sequence deletion subroutine SUB2 checks the machining program PRO one sequence at a time in step S12, and determines whether the sequence is the starting point.
The sequence in which SP exists (in Figure 10,
The sequence where the starting point SP exists is from point P1 to point P2
This is a sequence that instructs linear interpolation to . ). In FIG. 12a, the machining program showing the tool trajectory 19 shown in FIGS. 9 and 10 is displayed using EIA/ISO code. In this case, the sequence SEQ where the starting point SP exists is
Second line G01 Xx 2 Yy 2 ; Sequence SEQ
becomes. The sequence read in step S12
If SEQ is not the sequence SEQ where the start point SP exists, the process goes to step S13 and the next sequence
Call SEQ from the machining program PRO and return to step S12.

こうして、始点SPの存在するシーケンスSEQ
が発見されたところで、ステツプS14に入り、当
該シーケンスSEQを不要なものとして消去し、
更にステツプS15において次のシーケンスSEQを
加工プログラムPROから読み出し、ステツプS16
で当該シーケンスSEQが終点EPの存在するシー
ケンスSEQであるか否かを判定する。ステツプ
S16では、読み出されたシーケンスSEQに終点
EPがない限り、ステツプS14に戻つて当該シーケ
ンスSEQを消去する。即ち、始点SPの存在する
シーケンスSEQから終点EPの存在するシーケン
スSEQの直前のシーケンスSEQまでの全てのシ
ーケンスSEQを消去する。第10図の場合で第
12図aについて説明すると、図中上から第2行
目及び第3行目のシーケンスSEQが消去される
ことになる。
In this way, the sequence SEQ where the starting point SP exists
When the sequence SEQ is discovered, step S14 is entered and the sequence SEQ is deleted as unnecessary.
Furthermore, in step S15, the next sequence SEQ is read from the machining program PRO, and in step S16
Then, it is determined whether the sequence SEQ is a sequence SEQ in which an end point EP exists. step
In S16, the end point is added to the read sequence SEQ.
Unless there is an EP, the process returns to step S14 and erases the sequence SEQ. That is, all sequences SEQ from the sequence SEQ where the start point SP exists to the sequence SEQ immediately before the sequence SEQ where the end point EP exists are deleted. Explaining FIG. 12a in the case of FIG. 10, the sequences SEQ in the second and third rows from the top in the figure are erased.

こうして、所定のシーケンスSEQが加工プロ
グラムPROから消去されると、第2図の編集シ
ーケンス作成サブルーチンSUB3に入つて、工
具経路編集演算部9にオペレータの指示に基づく
新たなシーケンスSEQの作成を行う。なお、ス
テツプS11で、オペレータの指示した修正がただ
1個のシーケンスSEQに関する場合には、ステ
ツプS11から直接、編集シーケンス作成サブルー
チンSUB3に入る。編集シーケンス作成サブル
ーチンSUB3は、第5図に示すように、ステツ
プS17で始点SPの座標値を終点とするGコード指
令を編集第1シーケンスとして作成する。なお、
G−フアンクシヨンの指示は、消去された対応す
るシーケンスSEQに示されたものと同一の指示
とする。即ち、第10図の場合は、ステツプS17
で作成される指令は始点SPの座標値をxs,ys
すると、S01 Xxs Yys;となる。次に、ステツ
プS18に入り、ステツプS17で作成された新たな
シーケンスSEQを、加工プログラムPRO内の終
点EPの存在するシーケンスSEQ(第12図aにお
いて、G01 Xx4 Yy4;が終点EPの存在するシー
ケンスSEQとなる。)の直前に挿入する。
When the predetermined sequence SEQ is thus deleted from the machining program PRO, the process enters the editing sequence creation subroutine SUB3 shown in FIG. 2, and causes the tool path editing calculation section 9 to create a new sequence SEQ based on the operator's instructions. Incidentally, in step S11, if the modification instructed by the operator concerns only one sequence SEQ, the editing sequence creation subroutine SUB3 is entered directly from step S11. As shown in FIG. 5, the editing sequence creation subroutine SUB3 creates, in step S17, a G code command whose end point is the coordinate value of the starting point SP as the first editing sequence. In addition,
The instruction of the G-function shall be the same instruction as shown in the erased corresponding sequence SEQ. That is, in the case of FIG. 10, step S17
If the coordinate values of the starting point SP are x s , y s , the command created in is S01 Xx s Yy s ; Next, step S18 is entered, and the new sequence SEQ created in step S17 is changed to the sequence SEQ in which the end point EP exists in the machining program PRO (in Fig. 12a, G01 Xx 4 Yy 4 ; This will be the sequence SEQ.).

更に、ステツプS19ではオペレータに、始点SP
から終点EPまでに経由すべき点の数Mを入力さ
せ、経由すべき点の数Mが0の場合は、ステツプ
S21に入り、編集最終シーケンスを、G01 XxE
YyE;の形で作成する(第5図の場合は、最終シ
ーケンスのG−フアンクシヨンの指示がG01の場
合について書かれているが、G−フアンクシヨン
は、オペレータの指示により、適宜設定が可能で
ある。)。なお、終点EPの座標値をxE,yEとする。
こうして、ステツプS21で最終シーケンスが作成
されたところで、ステツプS22に入り、ステツプ
S21で作成された最終シーケンスを終点EPの存在
するシーケンスの直前に挿入する。これにより、
加工プログラムPROは、第12図bに示すよう
なものとなり、その工具軌跡19は、第11図に
示すように、オペレータが指示した始点SPと終
点EPを直線補間した形のものとなる。
Furthermore, in step S19, the operator is asked to select the starting point SP.
Enter the number of points M to pass through from to the end point EP, and if the number M of points to pass through is 0, enter the step
Enter S21 and edit final sequence, G01 Xx E
(In the case of Figure 5, the G-function instruction of the final sequence is G01, but the G-function can be set as appropriate according to the operator's instructions.) be.). Note that the coordinate values of the end point EP are x E and y E.
In this way, after the final sequence has been created in step S21, the process enters step S22.
Insert the final sequence created in S21 immediately before the sequence where the end point EP exists. This results in
The machining program PRO is as shown in FIG. 12b, and the tool trajectory 19 is a linear interpolation of the starting point SP and ending point EP specified by the operator, as shown in FIG. 11.

また、ステツプS20で、経由すべき点の数Mが
0でない場合には、ステツプS23に入り、編集シ
ーケンス数Kを2として、ステツプS24で始点SP
から最初に経由すべき点をオペレータに指示させ
る。オペレータは、入力装置5を操作して経由点
をデイスプレイ3上でカーソル17により指示す
るが、カーソル17が経由点に位置決めされたと
ころで、ステツプS25で当該カーソル17の座標
値を読み取り、更に座標変換サブルーチンSUB
4に入つて、デイスプレイ3上の表示座標系にお
けるカーソル17の位置を、加工プログラムが作
成される加工プログラム座標系に変換する。即
ち、デイスプレイ3上で表示されている図形は、
第7図に示すように、表示座標系DCSに基づい
て表示されており、それに対して加工プログラム
PROの加工プログラム座標系MCSは、表示座標
系DCS中の座標値xO,yO,zOなる点を原点ZPと
する座標空間として設定されているので、表示座
標系DCS中でカーソル17により指示された経
由点XPの座標値xP,yP,zPは、加工プログラム
座標系MCSによる座標値XP,YP,ZPに変換され
なければならない。この変換演算は、第6図に示
す座標変換サブルーチンSUB4に基づいて、座
標読取演算部7により行われる。
If the number M of points to be passed through is not 0 in step S20, the process goes to step S23, sets the number of editing sequences K to 2, and returns the starting point SP in step S24.
Instruct the operator which point to go through first. The operator operates the input device 5 to indicate a waypoint on the display 3 with the cursor 17. When the cursor 17 is positioned at the waypoint, the coordinate value of the cursor 17 is read in step S25, and further coordinate conversion is performed. Subroutine SUB
4, the position of the cursor 17 in the display coordinate system on the display 3 is converted to the machining program coordinate system in which the machining program is created. That is, the figure displayed on the display 3 is
As shown in Figure 7, the display is based on the display coordinate system DCS, and the machining program is
PRO's machining program coordinate system MCS is set as a coordinate space whose origin ZP is the coordinate values x O , y O , z O in the display coordinate system DCS. The coordinate values x P , y P , z P of the designated waypoint XP must be converted into coordinate values X P , Y P , Z P according to the machining program coordinate system MCS. This conversion calculation is performed by the coordinate reading calculation section 7 based on the coordinate conversion subroutine SUB4 shown in FIG.

こうして、経由点XPの加工プログラム座標系
MCSにおける座標値が求められたところで、第
5図のステツプS26入り、編集第2シーケンスと
して、当該求められた経由点XPまでのGコード
指令を作成する。なお、G−フアンクシヨンは、
既に述べたように、オペレータの指示により、適
宜設定が可能である。こうして、ステツプS26で
第1の経由点XPまでのシーケンスが作成された
ところで、ステツプS27に入り、ステツプS26で
作成された最終シーケンスを終点EPの存在する
シーケンスの直前に挿入し、更にステツプS28
で、K=M+1か否か、即ちまだGコード指令が
作成されていない経由点XPが存在するか否かを
判定して、経由点XPがまだ存在する場合には、
ステツプS29を経てステツプS24に戻り、再度オ
ペレータに対して次に経由すべき経由点XPの指
示を行わせ、求めるGコード指令を作成する。こ
うして、オペレータがステツプS19で指示した数
Mの経由点XPについて全てのGコード指令が作
成されたところで、ステツプS28からステツプ
S21に入り、編集最終シーケンスを作成して、ス
テツプS22で加工プログラムPRO中に挿入する。
In this way, the machining program coordinate system of the way point XP
Once the coordinate values at the MCS have been determined, step S26 in FIG. 5 is entered, and as a second editing sequence, a G code command up to the determined via point XP is created. In addition, the G-function is
As already mentioned, settings can be made as appropriate according to instructions from the operator. In this way, when the sequence up to the first way point
Then, it is determined whether K=M+1, that is, whether there is a way point XP for which a G code command has not been created yet, and if the way point XP still exists,
The process returns to step S24 via step S29, and the operator is again instructed as to the next via point XP to create the desired G code command. In this way, when all the G code commands have been created for the number M of way points XP that the operator specified in step S19, the steps start from step S28.
Step S21 is entered, and the final editing sequence is created and inserted into the machining program PRO in step S22.

次に、第2図に示す加工プログラム修正プログ
ラムMAPのステツプS30に入り、当該修正編集
された後の工具経路19を、デイスプレイ3上
に、例えば第11図に示すように表示し、ステツ
プS31でこれで工具経路19の修正編集が終了し
たか否かをオペレータに問い、終了したとの指令
が入力装置5から入力されると、工具経路19の
修正作業は終了し、そうでない場合には、再度ス
テツプS2に戻り、オペレータに次に修正すべき
個所を指示させ、以後同様な動作で所定の修正編
集動作を行つてゆく。
Next, step S30 of the machining program modification program MAP shown in FIG. 2 is entered, and the modified and edited tool path 19 is displayed on the display 3 as shown in FIG. 11, for example, and step S31 is performed. The operator is asked whether the editing of the tool path 19 has been completed, and if a command indicating that the editing has been completed is input from the input device 5, the correction work of the tool path 19 is completed. Returning again to step S2, the operator instructs the next point to be corrected, and thereafter performs the predetermined correction/editing operation in the same manner.

こうして、加工プログラムPROについてのシ
ユミレーシヨンが終了して、工具経路19の修正
も完了すると、修正された加工プログラムPRO
は実行制御データメモリ10に転送され、更に軸
制御部15が、前記転送された加工プログラム
PROに基づいて各駆動モータ16を駆動制御し
て所定の加工を行つてゆくが、修正後の加工プロ
グラムPROは、例えば第12図bに示すように、
同図aの修正前の加工プログラムPROに対して
工具経路19が修正されているので、第11図実
線に示すように、オペレータの修正指示通り工具
は修正後の工具経路19に沿つて適正に駆動制御
される。
In this way, when the simulation for the machining program PRO is completed and the modification of the tool path 19 is also completed, the modified machining program PRO
is transferred to the execution control data memory 10, and further the axis control section 15 executes the transferred machining program.
The drive control of each drive motor 16 is performed based on the PRO, and the modified machining program PRO is, for example, as shown in FIG. 12b.
Since the tool path 19 has been corrected with respect to the machining program PRO before correction shown in FIG. Drive controlled.

(g) 発明の効果 以上、説明したように、本発明によれば、加工
プログラムPROに示された工具経路19を表示
するデイスプレイ3を有し、前記デイスプレイ3
上で修正すべき工具経路19を始点SP及び終点
EPの2点で指示する入力装置5等の工具経路修
正指示手段を設け、前記工具経路修正指示手段か
ら指示された修正すべき、前記2点を結ぶ工具経
路19において、修正編集すべきシーケンス数n
を演算する編集操作制御部6等のシーケンス数演
算手段を設け、前記シーケンス数演算手段により
修正すべきシーケンス数が複数の場合に、不要な
シーケンスを消去する工具経路編集制御部18等
のシーケンス消去手段を設け、更に前記工具経路
修正指示手段から指示され、作成されていた工具
経路の加工プログラムPRO上にある前記2点を
結ぶ修正すべき工具経路19について、該加工プ
ログラムPROのGコード指令等の新たな動作指
令を作成する工具経路編集演算部9等の動作指令
作成手段を設けたので、加工プログラムPRO中
の工具経路19の修正をデイスプレイ3上で修正
すべき位置を指示するだけで、対応する加工プロ
グラムPRO中の動作指令が修正編集されるので、
オペレータが加工プログラムPROを直接呼び出
して点検し、手動で加工プログラム中のデータを
修正する従来の方法に比して、正確で誤りの無い
信頼性の高い加工プログラムの修正が可能とな
る。
(g) Effects of the Invention As explained above, according to the present invention, the display 3 that displays the tool path 19 shown in the machining program PRO is provided, and the display 3
The tool path 19 to be corrected above is set to the start point SP and end point
A tool path correction instructing means such as an input device 5 for instructing with two points of EP is provided, and the number of sequences to be corrected and edited in the tool path 19 connecting the two points to be corrected and instructed by the tool path correction instructing means. n
A sequence number calculation means such as an editing operation control section 6 for calculating the sequence number calculation means is provided, and when there is a plurality of sequence numbers to be corrected by the sequence number calculation means, a sequence deletion function such as a tool path editing control section 18 for erasing unnecessary sequences is provided. Further, the tool path modification instruction means instructs the tool path modification instruction means to issue G code commands, etc. of the machining program PRO regarding the tool path 19 to be corrected connecting the two points on the created tool path machining program PRO. Since a motion command creation means such as the tool path editing calculation unit 9 is provided to create a new motion command, the tool path 19 in the machining program PRO can be modified by simply indicating the position to be modified on the display 3. The operation commands in the corresponding machining program PRO will be modified and edited.
Compared to the conventional method in which the operator directly calls up the machining program PRO, inspects it, and manually modifies the data in the machining program, it is possible to modify the machining program accurately, without errors, and with high reliability.

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

第1図は本発明による数値制御装置の一実施例
を示す制御ブロツク図、第2図は加工プログラム
修正プログラムの一例を示すフローチヤート、第
3図は編集対象シーケンス数演算サブルーチンを
示すフローチヤート、第4図はシーケンス消去サ
ブルーチンを示すフローチヤート、第5図は編集
シーケンス作成サブルーチンを示すフローチヤー
ト、第6図はデータ変換演算サブルーチンを示す
フローチヤート、第7図はデイスプレイ上での表
示座標系と、加工プログラム座標系との関係を示
す図、第8図乃至第11図は工具経路の修正時に
おけるデイスプレイ上での表示態様の一例を示す
図、第12図は加工プログラムの修正態様の一例
を示す図である。 1…数値制御装置、3…デイスプレイ、5…工
具経路修正指示手段(入力装置)、6…シーケン
ス数演算手段(編集操作制御部)、9…動作指令
作成手段(工具経路編集演算部)、18…シーケ
ンス消去手段(工具経路編修制御部)、19…工
具経路、PRO…加工プログラム、SEQ…シーケ
ンス。
FIG. 1 is a control block diagram showing an embodiment of the numerical control device according to the present invention, FIG. 2 is a flowchart showing an example of a machining program correction program, and FIG. 3 is a flowchart showing a subroutine for calculating the number of sequences to be edited. Fig. 4 is a flowchart showing the sequence deletion subroutine, Fig. 5 is a flowchart showing the editing sequence creation subroutine, Fig. 6 is a flowchart showing the data conversion calculation subroutine, and Fig. 7 is a flowchart showing the display coordinate system on the display. , a diagram showing the relationship with the machining program coordinate system, FIGS. 8 to 11 are diagrams showing an example of the display format on the display when modifying the tool path, and FIG. 12 is a diagram showing an example of the modification format of the machining program. FIG. DESCRIPTION OF SYMBOLS 1... Numerical control device, 3... Display, 5... Tool path modification instruction means (input device), 6... Sequence number calculation means (editing operation control section), 9... Movement command creation means (tool path editing calculation section), 18 ...Sequence erasing means (tool path editing control section), 19...Tool path, PRO...Machining program, SEQ...Sequence.

Claims (1)

【特許請求の範囲】[Claims] 1 加工に際して工具を移動すべき工具経路をシ
ーケンス毎の動作指令の形で有する加工プログラ
ムを実行する数値制御装置において、加工プログ
ラムに示された前記工具経路を表示するデイスプ
レイを有し、前記デイスプレイ上で修正すべき工
具経路を始点及び終点の2点で指示する工具経路
修正指示手段を設け、前記工具経路修正指示手段
から指示された修正すべき前記2点を結ぶ工具経
路において、修正編集すべき前記加工プログラム
上のシーケンス数を演算するシーケンス数演算手
段を設け、前記シーケンス数演算手段により修正
すべきシーケンス数が複数の場合に、不要なシー
ケンスを前記加工プログラムから消去するシーケ
ンス消去手段を設け、更に前記工具経路修正指示
手段から指示され、作成されていた工具経路の加
工プログラム上にある前記2点を結ぶ修正すべき
工具経路について、該加工プログラムの新たな動
作指令を作成する動作指令作成手段を設けて構成
した数値制御装置。
1. A numerical control device that executes a machining program having a tool path in which a tool is to be moved during machining in the form of operation commands for each sequence, which has a display that displays the tool path indicated in the machining program, and has a display that displays the tool path indicated in the machining program, and A tool path correction instruction means is provided for instructing a tool path to be corrected by two points, a start point and an end point, and correction editing is to be performed in the tool path connecting the two points to be corrected instructed by the tool path correction instruction means. providing a sequence number calculating means for calculating the number of sequences on the machining program; and providing a sequence erasing means for deleting unnecessary sequences from the machining program when the number of sequences to be corrected by the sequence number calculating means is plural; Furthermore, operation command creation means is instructed by the tool path correction instruction means and creates a new operation command for the machining program for the tool path to be corrected that connects the two points on the machining program for the tool path that has been created. A numerical control device configured by providing
JP60012254A 1985-01-25 1985-01-25 Numerical controller Granted JPS61170807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60012254A JPS61170807A (en) 1985-01-25 1985-01-25 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60012254A JPS61170807A (en) 1985-01-25 1985-01-25 Numerical controller

Publications (2)

Publication Number Publication Date
JPS61170807A JPS61170807A (en) 1986-08-01
JPH0562364B2 true JPH0562364B2 (en) 1993-09-08

Family

ID=11800228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60012254A Granted JPS61170807A (en) 1985-01-25 1985-01-25 Numerical controller

Country Status (1)

Country Link
JP (1) JPS61170807A (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256105A (en) * 1986-04-30 1987-11-07 Brother Ind Ltd Automatic programming device
JP2579306B2 (en) * 1986-12-23 1997-02-05 フアナツク株式会社 Automatic programming system
JPS63244111A (en) * 1987-03-30 1988-10-11 Fanuc Ltd Automatic programming system
JPS63286905A (en) * 1987-05-20 1988-11-24 Mitsubishi Electric Corp Editing device for numerical control data
JPH01102605A (en) * 1987-10-15 1989-04-20 Fanuc Ltd Contour form correcting method
JPH0219906A (en) * 1988-07-08 1990-01-23 Fanuc Ltd Numerical control program correcting system for interactive numerical controller
JP3375977B2 (en) * 1991-04-04 2003-02-10 三菱電機株式会社 Numerical control unit
JPH05297929A (en) * 1992-04-15 1993-11-12 Okuma Mach Works Ltd Numerical control program editing method
JP6333798B2 (en) 2015-12-03 2018-05-30 ファナック株式会社 Numerical controller

Also Published As

Publication number Publication date
JPS61170807A (en) 1986-08-01

Similar Documents

Publication Publication Date Title
US4835700A (en) Numerical control data creation method
EP1065029A1 (en) Method and apparatus for providing numerical control information
JPH0562364B2 (en)
JP2639169B2 (en) Numerical control unit
JPS6347805A (en) Override playback system
JPS61173842A (en) Numerical control device
JP2000089813A (en) Working program editing method and controller for machine tool
JPH0677208B2 (en) NC device machining program creation method
JPH04245503A (en) Editing device for machining program
JPH02151908A (en) Numerical controller with simulation function
JPH05297925A (en) Interactive numerical controller
JPH03294906A (en) Editing system for working program
JPH0566819A (en) Interactive automatic programming method
JP2528878B2 (en) Robot operation sequence diagram output method
EP0383938A1 (en) Shape input system
JPH08263121A (en) Machining path tracing-back system for cnc
JP2000353003A (en) Nc data recognition device
KR0136142B1 (en) The method of graphic simulation using numerical control apparatus
JPH0358202A (en) Numerical controller with simulation function
JPH06270082A (en) Control of robot having auxiliary shaft
JPH01136208A (en) Automatic programming device
JPH04148306A (en) C axis working program preparing system
JPH1049210A (en) Numerically controlled electric discharge machine with operation checking function
JPH07334222A (en) Tool path editing system
JPS6299053A (en) Imposition control in machine tool