[go: up one dir, main page]

JPS61170807A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPS61170807A
JPS61170807A JP60012254A JP1225485A JPS61170807A JP S61170807 A JPS61170807 A JP S61170807A JP 60012254 A JP60012254 A JP 60012254A JP 1225485 A JP1225485 A JP 1225485A JP S61170807 A JPS61170807 A JP S61170807A
Authority
JP
Japan
Prior art keywords
sequence
corrected
tool path
machining program
display
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.)
Granted
Application number
JP60012254A
Other languages
Japanese (ja)
Other versions
JPH0562364B2 (en
Inventor
Akimitsu Nagae
長江 昭充
Toshihiko Inoue
利彦 井上
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]

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To attain highly reliable correction by forming a sequence operating means, a sequence erasing means, etc. and retrieving and erasing an unnecessary sequence only by the specification of a tool route to be corrected and edited. CONSTITUTION:A numerical controller 1 has a main control part 2 and a display 3, an input device 5 such as a mouse, an editing operation control part 6, a tool route editing operation part 8, etc. are connected to the main control part 2. A working program PRO formed and stored is displayed and checked by simulating the program on the display 3 prior to the execution. If a tool route to be corrected is detected by the simulation, the tool route is corrected through the input device 5. To correct the route, the number of sequences to be corrected is operated by the control part 6 or the like and an unnecessary sequence is erased by the sequence erasing means such as the control part 18 or the like. At the correction of the tool route, the position to be corrected is specified on the display 3 to correct and edit the tool course.

Description

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

(b)、従来の技術 加工プログラム中の工具経路が正しく作成されているか
否かを判断するために、数値制御装置のディスプレイ上
で加工プログラムをシュミレーションすることが従来か
ら行われているが、その場合、工具経路の誤りが有ると
、加工プログラム中の対応するシーケンスを手動操作に
より捜し出し、修正を行っていtこ。
(b), Conventional technology 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 there is an error in the tool path, the corresponding sequence in the machining program must be manually searched for and corrected.

(C)0発明が解決しようとする問題点しかし、加工プ
ログラム中には同じようなデータが軟多く配列されてい
るので、修正対象デーりを捜し出す作業は極めて繁雑で
かつミスの生じる危険性の高いものであった。
(C) 0 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 the data to be corrected is extremely complicated, and there is a risk of making mistakes. It was expensive.

本発明は、前述の欠点を解消すへく、オペレータが工具
経路の修正に際して加工プログラムを手動で捜し出す必
要の無い、従ってミスの生じる危険性が少なく、信頼性
の高い修正が可能な数値制御装置を提供することを目的
とするものである。
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, and therefore allows highly reliable modifications with less risk of mistakes. The purpose is to provide the following.

(d)9問題点を解決するための手段 即ち、本発明は、加工プログラムに示された工具経路を
表示するディスプレイを有し、前記ディスプレイ上で修
正すべき工具経路を指示する工具経路修正指示手段を設
け、前記工具経路修正指示手段から指示された修正すべ
き工具経路において、修正編集すべき加工プログラム上
のシーケンス数を演算するシーケンス数演算手段を設け
、前記シーケンス数演算手段により修正すべきシーケン
ス数が複数の場合に、不要なシーケンスを前記加工プロ
グラムから消去するシーケンス消去手段を設け、更に前
記工具経路修正指示手段から指示された修正すべき工具
経路について新たな動作指令を作成する動作指令作成手
段を設けて構成される。
(d) Means for solving the nine problems, that is, the present invention has a display that displays the tool path indicated in the machining program, and a tool path correction instruction that indicates the tool path to be corrected on the display. and a sequence number calculating means for calculating the number of sequences on the machining program to be corrected and edited in the tool path to be corrected instructed by the tool path correction instruction means, and the sequence number calculating means to be corrected by the sequence number calculating means. If there is a plurality of sequences, a sequence erasing means is provided for erasing unnecessary sequences from the machining program, and an operation command is further provided for creating a new operation command for the tool path to be corrected instructed by the tool path correction instruction means. It is configured by providing a creation means.

(e)0作用 上記した構成により、本発明は、オペレータが工具経路
修正指示手段を操作して修正編集すべき工具経路を指示
するたけて、修正すべき加工ゴログラム中の不要なシー
ケンスが検索消去され。
(e) 0 effect With the above-described configuration, the present invention allows the operator to operate the tool path correction instruction means to instruct the tool path to be corrected and edited, and then search and erase unnecessary sequences in the machining program to be corrected. It is.

更に新たな動作指令が作成されるように作用する。Furthermore, it acts so that a new operation command is created.

ffl。実施例 以下、本発明の実施例を図面に基づき説明する。ffl. Example Embodiments of the present invention will be described below based on the drawings.

第1図は本発明による数値制御装置の一実施例を示す制
御ブロック図、第2図は加工プログラム修正プログラム
の一例を示すフローチャート、第3図はIi集対象シー
ケンス数演算サブルーチンを示すフローチャート、第4
図はシーケンス消去サブルーチンを示すフローチャート
、第5図は編集シーケンス作成サブルーチンを示すフロ
ーチャート、第6図はデータ変換演算サブルーチンを示
      lすフローチャート、第7図はディスプレ
イ上での表示座標系と、加工プログラム座標系との関係
を示す図、第8図乃至第11図は工具経路の修正時にお
けるディスプレイ上での表示態様の一例を示す図、第1
2図は加工プログラムの修正態様の一例を示す図である
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, FIG. 4
Figure 5 is a flowchart showing the sequence deletion subroutine, Figure 5 is a flowchart showing the edit sequence creation subroutine, Figure 6 is a flowchart showing the data conversion calculation subroutine, and Figure 7 is the display coordinate system on the display and the machining program. Figures 8 to 11 are diagrams showing the relationship with the coordinate system;
FIG. 2 is a diagram showing an example of a modification mode of a machining program.

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

数値制御装置1は、以上のような構成を有するので、オ
ペレータが入力装置5を介して入力した加工データに基
づいて、NCプログラム作成制御部13は加工プログラ
ムPROを公知の自動プログラムの手法で作成し、加工
プログラムメモリ14中に格納する。加工プログラムメ
モリ14中に作成格納された加工プログラムPROはそ
の実行に先立ち、NCプログラム作成制御部13により
作成された加工プログラムPROの工具経路が正しく設
定されているか否かを、当該加工プログラムPROをデ
ィスプレイ3上でシュミレーシ1ンすることにより表示
させ、確認する。加工プログラム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 inputted by the operator via the input device 5. and stores it in the machining program memory 14. Before the machining program PRO created and stored in the machining program memory 14 is executed, the NC program creation control section 13 checks whether the tool path of the machining program PRO created by the machining program PRO is set correctly. It is displayed and confirmed by simulating it 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, Since it is widely used as part of the functions of numerical control devices, detailed explanation thereof will be omitted here.

このシ二ミレーシヲンにおいて、修正すべき工具経路を
発見した場合には、オペレータは入力装置5を操作して
主制御部2に加工プログラム修正指令ACMを出力する
。これを受けて主制御部2は、ンステムプログラムメモ
リ12から加工プログラム修正プログラムMAPを読み
出して工具軌跡の修正動作にはいる。即ち、加工プログ
ラム修正プログラムMAPでは、第2図に示すように、
ステップS1で、オペレータが加工プログラム修正指令
ACMを入力した時点においてディスプレイ3上でシユ
ミレートしている工具経路を表示し、ステップS2でオ
ペレータに、修正したい工具経路を入力装置5を操作す
ることにより指示させる。
In this simulation, when 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 section 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 FIG.
In step S1, the tool path being simulated on the display 3 at the time when the operator inputs the machining program modification command ACM is displayed, and in step S2, the operator is instructed to change the tool path by operating the input device 5. let

この操作は、編集換作制御部6が入力装置5から入力さ
れる修正位置の指示に基づきカーソル17を、第8図に
示すように、ディスプレイ3上に表示された工具経路1
9上で移動させることにより行う。ステップS2で修正
したい工具経路19上にカーソル17が移動位置決めさ
れたところで、編集対象シーケンス数演算サブルーチン
SUB 1に入り、修正編集すべき対象となる加工プロ
グラムPRO上でのシーケンス数を演算させる。
In this operation, the edit conversion control unit 6 moves the cursor 17 to the tool path 1 displayed on the display 3, as shown in FIG.
This is done by moving it on 9. When the cursor 17 is moved and positioned on the tool path 19 to be corrected in step S2, the subroutine SUB1 for calculating the number of sequences to be edited is entered, and the number of sequences in the machining program PRO to be corrected and edited is calculated.

編集対象シーケンス数演算サブルーチン5UB1では、
第3図に示すように、ステップS3でオペレータがカー
ソル17により指示した座標位置を、座標読取演算部7
により演算させて求める。
In the editing target sequence number calculation subroutine 5UB1,
As shown in FIG. 3, in step S3, the coordinate reading calculation unit 7
It is calculated by calculating.

カーソル17による修正すべき工具経路190指示は、
第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に入り、オペレータの指
示による修正l1il!I!動作がn個、即ち1個のシ
ーケンスにかかる編集に関するものと判定する。第9図
に、編集対象が1個のシーケンスに関する例を示す。こ
の場合、加工プログラムPRO中の修正すべきシーケン
スは図からも明らかなように、座標(xlly、)の点
P1から座標(x2、y2)の点P2までを直線補間す
るシーケンスであり、当該点P1と点P2を結ぶ直線、
即ち工具経路19上にオペレータが指示した修正すべき
工具組Ws19の指示が、始点SP及び終点F、Pとし
て存在する。従って、この場合は、修正は座標(x、、
y、)の点P1から座標(x2、y2)の点2までを直
線補間するただ1個のシーケンスに関するものである。
The tool path 190 instruction to be corrected by the cursor 17 is as follows:
As shown in FIGS. 9 and 10, this is done by indicating the start point SP and end point EP of the tool path 19 to be corrected and edited on the display 3, so in step S3, the coordinate values of the start point SP and end point EP are Calculate. -Then,
In step S4, the tool path data in the machining program PRO is executed in a simulated manner one by one by the execution control unit 8, and in step S5, the editing operation control unit 6
It is determined whether or not the sequence of passing over the coordinate position of the starting point SP obtained in step S3 has been executed. If the sequence has not been executed, the process returns to step S4, and if it has been executed, the process proceeds to step S6. Set n=1 and further step S7
It is determined whether or not the sequence of entering and passing over the coordinate position of the end point EP has been executed. Passing over the coordinate position of the end point EP - If it is determined that the sequence has been executed, step S8 is entered, and the correction l1il! according to the operator's instruction is performed. I! It is determined that the operation is related to editing of n pieces, that is, one sequence. FIG. 9 shows an example of a sequence in which there is one editing target. In this case, as is clear from the figure, the sequence to be corrected in the machining program PRO is a sequence of linear interpolation from point P1 of coordinates (xlly,) to point P2 of coordinates (x2, y2), and A straight line connecting P1 and point P2,
That is, the instruction of the tool set Ws19 to be modified, which is specified by the operator, exists on the tool path 19 as a starting point SP and ending points F, P. Therefore, in this case, the modification is the coordinates (x, ,
y, ) to point 2 at coordinates (x2, y2).

一方、ステップS7で終点EPの座標位置上を通過する
シーケンスが実行されていないものと判定されtコ場合
、即ち編集対象シーケンスが2個以上の場合は、ステッ
プS9に入り、n = n + 1とし、更にステップ
310に入って、次のシーケンスを模擬的に実行し、ス
テップS7に戻り、再度終点EPの座標位置上を通過す
るシーケンスを実行したか否かを判定する。する。こう
して、終点EPを通過するシーケンスが実行されるまで
、ステップS9でnの値を1ずつ加算し、更にステップ
S10で1シーケンスずつ加工プログラムを実行してゆ
く。また、ステップS7で、終点EPの座標位置上を通
過するシーケンスが実行されたものと判定された場合に
は、ステップS8に入り、既に説明したように、その時
点のnの値を修正編集すべきシーケンス数とする。第1
0図に、修正編集すべきシーケンス数が3個の場合につ
いて説明すると、加工プログラムPROによる工具経路
19は、点P1から点P2まで、及び点P3から点P4
までを直線補間し、更に点P2と点P3の間を時計方向
に円弧補間するものであるが、オペレータによる修正指
示が、始点SPが点P1と点P2の間、終点EPが点P
3と点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. Then, the process further enters step 310, executes the next sequence in a simulated manner, returns to step S7, and again determines whether or not the sequence of passing over the coordinate position of the end point EP has been executed. do. In this way, the value of n is incremented by 1 in step S9, and the machining program is executed sequence by sequence in step S10 until the sequence passing through the end point EP is executed. 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. 1st
To explain the case where the number of sequences to be corrected and edited is three in Figure 0, the tool path 19 according to the machining program PRO is from point P1 to point P2 and from point P3 to point P4.
Linear interpolation is performed between points P2 and P3, and circular interpolation is performed clockwise between points P2 and P3.
3 and P4, the number of sequences involved in corrective editing is: ■ A sequence of linear interpolation from point P1 to point P2, ■ A sequence of circular interpolation clockwise between points P2 and P3, (2) Corrections are made regarding three sequences, including the sequence of linear interpolation from point P3 to point P4.

こうして、修正1iil集対象シーケンス数が判明した
とことろで、第2図のステップ311に戻り、編集対象
シーケンス数演算サブルーチンSUB 1により求めら
れた修正編集対象シーケンス数が複数シーケンスである
か否かを判定し、修正編集対象シーケンス数が複数の場
合は、シーケンス消去サブルーチンSUB 2に入り、
工具経路編集制御部18に、不要となった加工プログラ
ムPRO中のシーケンスの消去を指示する。即ち、シー
ケンス消去サブルーチン5UB2は、第4図に示すよう
に、ステップS12で、加工プログラムPFLOを1シ
ーケンスずつ点検して、当該シーケンスが始点SPの存
在するシーケンス(第10図においては、始点SPが存
在するシーケンスは、点P1から点P2への直線補間を
指示したシーケンスである。)であるか否かを判定する
。第12図(alに、第9図及び第10図に示す工具軌
跡19を示す加工プログラムをEIA/ISOコードを
用いて表示するが、この場合、始点SPの存在するシー
プ:/ X S E Qは、第2行目の GOI  X
x2 Yy; なるシーケンスSEQとなる。ステップ
S12で、読み出したシーケンスSEQが始点SPの存
在するシーケンスSEQで無い場合には、ステップ31
3に入り、次のシーケンスSEQを加ニブ党グラムPR
Oから呼び出し、更にステップS12に戻る。
In this way, once the number of sequences to be edited in the modified 1iil collection has been determined, the process returns to step 311 in FIG. If the number of sequences to be corrected and edited is multiple, enters the sequence deletion subroutine SUB 2,
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 5UB2 checks the machining program PFLO one sequence at a time in step S12, and determines whether the sequence is a sequence in which the starting point SP exists (in FIG. 10, the starting point SP is It is determined whether the existing sequence is a sequence that instructs linear interpolation from point P1 to point P2. In Fig. 12 (al), a machining program showing the tool trajectory 19 shown in Figs. 9 and 10 is displayed using EIA/ISO code, but in this case, the sheep where the starting point SP exists: / is GOI X in the second line
The sequence SEQ becomes x2 Yy; In step S12, if the read sequence SEQ is not the sequence SEQ in which the start point SP exists, step 31
3, enter the following sequence SEQ in Canada Nib Party Gram PR
It is called from O and then returns to step S12.

こうして、始点SPの存在するシーケンスSEQが発見
されたところで、ステップS14に入り、当該シーケン
スSEQを不要なものとして消去し、更にステップ31
5において次のシーケンスSEQを加ニブ四グラムPR
Oから読み出し、ステップ516で当該シーケンスSE
Qが終点EPの存在するシーケンスSEQであるか否か
を判定する。ステップ316では、読み出されたシーケ
ンスSEQに終点EPがない限り、ステップS14に戻
って当該シーケンスSEQを消去する。
In this way, when the sequence SEQ in which the starting point SP exists is found, the process proceeds to step S14, where the sequence SEQ is deleted as unnecessary, and further step 31
5 Add the following sequence SEQ to the nib quadrigram PR
0, and in step 516 the sequence SE
It is determined whether Q is a sequence SEQ in which an end point EP exists. In step 316, unless the read sequence SEQ has an end point EP, the process returns to step S14 and erases the sequence SEQ.

即ち、始点SPの存在するシーケンスSEQから   
   −終点EPの存在するシーケンスSEQの直前の
シーケンスSEQまでの全てのシーケンスSEQを消去
する。第10図の場合で第12図(alについて説明す
ると、図中上から第2行目及び第3行目のシーケンスS
EQが消去されることになる。
That is, from the sequence SEQ where the starting point SP exists
- Delete all sequences SEQ up to the sequence SEQ immediately before the sequence SEQ in which the end point EP exists. In the case of Fig. 10, in Fig. 12 (al), the sequence S in the second and third lines from the top in the figure
EQ will be deleted.

こうして、所定のシーケンスSEQが加工プログラムP
ROから消去されると、第2図の編集シーケンス作成サ
ブルーチン5TJB3に入って、工具経路編集制御部9
にオペレータの指示に基づく新たなシーケンスSEQの
作成を行う。なお、ステップ311で、オペレータの指
示した修正がただ1個のシーケンスSEQに関する場合
には、ステップ311から直接、編集シーケンス作成サ
ブルーチン5UB3に入る。wA集シーケンス作成サブ
ルーチン5UB3は、第5図に示すように、ステップ3
17で始点SPの座標値を終点とするGコード指令を編
集第1シーケンスとして作成する。なお、G−ファンク
ションの指示は、消去された対応するシーケンスSEQ
に示されたものと同一の指示とする。即ち、第10図の
場合は、ステップ517で作成される指令は始点SPの
座標値ヲx、、y、とすると、G OI  Xx、  
YyS; となる。次に、ステップ318に入り、ステ
ップS17で作成された新たなシーケンスSEQを、加
工プログラムPRO内の終点EPの存在するシーツ:/
X5EQ(第12図(a)において、GOI  Xx、
  YF、;が終点EPの存在するシーケンスSEQと
なる。)の直前に挿入する。
In this way, the predetermined sequence SEQ is the machining program P
When deleted from the RO, the editing sequence creation subroutine 5TJB3 shown in FIG. 2 is entered, and the tool path editing control section 9
A new sequence SEQ is created based on the operator's instructions. Note that, in step 311, if the modification instructed by the operator relates to only one sequence SEQ, the editing sequence creation subroutine 5UB3 is entered directly from step 311. The wA collection sequence creation subroutine 5UB3, as shown in FIG.
In step 17, a G code command whose end point is the coordinate value of the starting point SP is created as the first editing sequence. Note that the instruction of the G-function is the erased corresponding sequence SEQ
The instructions shall be the same as those given in . That is, in the case of FIG. 10, the command created in step 517 is GOI
YyS; becomes. Next, in step 318, the new sequence SEQ created in step S17 is transferred to the sheet where the end point EP exists in the processing program PRO:/
X5EQ (in Figure 12(a), GOI Xx,
YF, ; becomes the sequence SEQ in which the end point EP exists. ) is inserted immediately before.

更に、ステップ519ではオペレータに、始点SPから
終点EPまでに経由すべき点の数Mを入力させ、経由す
べき点の数Mが0の場合は、ステップ321に入り、編
集最終シーケンスを、Go 1  X x t  Y 
y t i  の形で作成する(第5図の場合は、最終
シーケンスのG−ファンクシ曹ンの指示が001の場合
について書かれているが、G−7アンクシシンは、オペ
レータの指示により、適宜設定が可能である。)。なお
、終点EPの座標値を”@ S7yとする。こうして、
ステップS21で最終シーケンスが作成されたところで
、ステップ322に入り、ステップ321で作成された
R終シーケンスを終点EPの存在するシーケンスの直前
に挿入する。これにより、加工プログラムPROは、第
12図(blに示すようなものとなり、その工具軌跡1
9は、第11図に示すように、オペレータが指示した始
点SPと終点EPを直線補間した形のものとなる。
Furthermore, in step 519, the operator is made to input the number M of points to be passed through from the start point SP to the end point EP, and if the number M of points to be passed through is 0, step 321 is entered, and the editing final sequence is Go 1 X x t Y
y t i (In the case of Figure 5, the case where the instruction of the G-Funk System in the final sequence is 001 is written, but the G-7 Ankushi Shin is set as appropriate according to the operator's instructions. is possible). Note that the coordinate value of the end point EP is "@S7y. In this way,
After the final sequence is created in step S21, the process proceeds to step 322, where the R final sequence created in step 321 is inserted immediately before the sequence where the end point EP exists. As a result, the machining program PRO becomes as shown in FIG. 12 (bl), and its tool trajectory 1
9, as shown in FIG. 11, is obtained by linearly interpolating the starting point SP and ending point EP designated by the operator.

また、ステップ320で、経由すべき点の数Mが0でな
い場合には、ステップ323に入り、編集シーケンス数
Kを2として、ステップ324で始点SPから最初に経
由すべき点をオペレータに指示させる。オペレータは、
入力装置5を操作して経由点をディスプレイ3上でカー
ソル17により指示するが、カーソル17が経由点に位
置決めされたところで、ステップ325で当該カーソル
17の座標値を読み取り、更に座標変換サブルーチン5
UB4に入って、ディスプレイ3上の表示座標系におけ
るカーソル17の位置を、加工プログラムが作成される
加工プログラム座標系に変換する。即ち、ディスプレイ
3上で表示されている図形は、第7図に示すように、表
示座標系DC8に基づいて表示されており、それに対し
て加工プログラムPROの加工プログラム座標系MC3
は、表示座標系DC3中の座標値(xSy  s ’ 
o ]なる点を原点ZPとする座標空間として設定され
ているので、表示座標系DC3中でカーソル17により
指示された経由点xPの座標値(XpSy  、z、)
は、加工プログラム座標系MC5による座標1m (X
p、 Y 、 Zp)に変換されなければならない。
If the number M of points to be passed through is not 0 in step 320, the process proceeds to step 323, where the number of editing sequences K is set to 2, and in step 324, the operator is instructed as to the first point to be passed through from the starting point SP. . The operator is
The input device 5 is operated to indicate a waypoint on the display 3 using the cursor 17. When the cursor 17 is positioned at the waypoint, the coordinate values of the cursor 17 are read in step 325, and the coordinate conversion subroutine 5
Entering UB4, the position of the cursor 17 in the display coordinate system on the display 3 is converted to a machining program coordinate system in which a machining program is created. That is, the figure displayed on the display 3 is displayed based on the display coordinate system DC8, as shown in FIG.
is the coordinate value (xSy s '
o] is set as the coordinate space with the origin ZP, so the coordinate value (XpSy, z,) of the waypoint xP indicated by the cursor 17 in the display coordinate system DC3
is the coordinate 1m (X
p, Y, Zp).

この変換演算は、第6図に示す座標変換サブルーチン5
UB4に基づいて、座標読取演算部7により行われる。
This conversion calculation is performed by coordinate conversion subroutine 5 shown in FIG.
This is performed by the coordinate reading calculation section 7 based on the UB4.

こうして、経由点xPの加工プログラム座標系MC3に
おける座標値が求められたところで、第5図のステップ
326入り、編集第2シーケノスとして、当該求められ
た経由点xPまでのGコード指令を作成する。なお、G
−ファンクションは、既に述べたように、オペレータの
指示により、適宜設定が可能である。こうして、ステッ
プs26で第1の経由点xPまでのシーケンスが作成さ
       −れたところで、ステップS27に入り
、ステップ326で作成された最終シーケンスを終点E
Pの存在するシーケンスの直前に挿入し、更にステップ
328で、K=M+1か否か、即ちまだGコード指令が
作成されていない経由点XPが存在するか否かを判定し
て、経由点xPがまだ存在する場合には、ステップ32
9を経てステップ324に戻り、再度オペレータに対し
て次に経由すべき経由点xPの指示を行わせ、求めるG
コード指令を作成する。こうして、オペレータがステッ
プS19で指示した数Mの経由点xPについて全てのG
コード指令が作成されたところで、ステップs28から
ステップ321に入り、111m最終シーケンスを作成
して、ステップ322で加工プログラムPRO中に挿入
する。
Once the coordinate values of the way point xP in the machining program coordinate system MC3 have been determined, step 326 in FIG. 5 is entered and a G code command up to the determined way point xP is created as the second editing sequence. In addition, G
- As already mentioned, the functions can be set as appropriate according to instructions from the operator. In this way, when the sequence up to the first way point
It is inserted immediately before the sequence where P exists, and further, in step 328, 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 the way point xP is inserted. If still exists, step 32
9, returns to step 324, has the operator again instruct the next waypoint xP, and determines the desired G
Create code directives. In this way, all the G
Once the code command has been created, the process proceeds from step s28 to step 321, where a 111m final sequence is created and inserted into the machining program PRO at step 322.

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

こうして、加工プログラムPROについてのシxEレー
ジ1ンが終了して、工具経路19の修正も完了するζ、
修正された加工プログラムPROは実行制御データメモ
リ10に転送され、更に軸制御部15が、前記転送され
た加工プログラムPROに基づいて各駆動モータ16を
駆動制御して所定の加工を行ってゆくが、修正後の加工
プログラムPROは、例えば第12図(blに示すよう
に、同図(alの修正前の加工プログラムPROに対し
て工具経路19が修正されているので、第11図実線に
示すように、オペレータの修正指示通り工具は修正後の
工具経路19に沿って適正に駆動制御される。
In this way, the six E range 1 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 drives and controls each drive motor 16 based on the transferred machining program PRO to perform predetermined machining. The modified machining program PRO is, for example, as shown in FIG. 12 (bl), since the tool path 19 has been modified with respect to the machining program PRO before modification in FIG. As such, the tool is appropriately driven and controlled along the corrected tool path 19 according to the operator's correction instructions.

(g)1発明の効果 以上、説明したように、本発明によれば、加工プログラ
ムPROに示された工具経路19を表示するディスプレ
イ3を有し、前記ディスプレイ3上で修正すべき工具経
路19を指示する入力装置5等の工具経路修正指示手段
を設け、前記工具経路修正指示手段から指示された修正
すべき工具経路19において、修正Waすべきシーケン
ス数nを演算する編集操作制御部6等のシーケンス数演
算手段を設け、前記シーケンス数演算手段により修正す
べきシーケンス数が複数の場合に、不要なシーケンスを
消去する工具経路編集制御部18等のシーケンス消去手
段を設け、更に前記工具経路修正指示手段から指示され
た修正すべき工具経路19についてGコード指令等の新
たな動作指令を作成する工具経路**演算部9等の動作
指令作成手段を設けたので、加工プログラムPRO中の
工具経路19の修正をディスプレイ3上で修正すべき位
置を指示するだけで、対応する加工プログラムPRO中
の動作指令が修正編集されるので、オペレータが加工プ
ログラムPROを直接呼び出して点検し、手動で加工プ
ログラム中のデータを修正する従来の方法に比して、正
確で誤りの無い信頼性の高い加工プログラムの修正が可
能となる。
(g) 1. 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 tool path 19 to be corrected is displayed on the display 3. An editing operation control unit 6 or the like is provided with a tool path correction instruction means such as an input device 5 for instructing the tool path correction instruction means, and calculates the number n of sequences to be corrected Wa in the tool path 19 to be corrected instructed by the tool path correction instruction means. A sequence number calculation means is provided, and a sequence deletion means such as a tool path editing control unit 18 is provided for deleting unnecessary sequences when the number of sequences to be corrected by the sequence number calculation means is plural; Since a motion command creation means such as a tool path** calculation unit 9 is provided to create a new motion command such as a G code command for the tool path 19 to be corrected instructed by the instruction means, the tool path in the machining program PRO is provided. By simply indicating the position to be corrected on the display 3, the operation command in the corresponding machining program PRO will be corrected and edited. Compared to conventional methods of modifying data inside, it is possible to modify machining programs accurately, without errors, and with high reliability.

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

第1図は本発明による数値制御装置の一実施例を示す制
御ブロック図、第2図は加工プログラム修正プログラム
の一例を示すフローチャート、第3図はlIs集対象シ
ーケンス数演算サブルーチンを示すフローチャート、第
4図はシーケンス消去サブルーチンを示すフローチャー
ト、第5図は編集シーケンス作成サブルーチンを示すフ
ローチャート、第6図はデータ変換演算サブルーチンを
示すフローチャート、第7図はディスプレイ上での表示
座標系と、加工プログラム座標系との関係を示す図、第
8図乃至第11図は工具経路の修正時におけるディスプ
レイ上での表示態様の一例を示す図、第12図は加工プ
ログラムの修正態様の一例を示す図である。 1・・・・数値制御装置 3・・・・・ディスプレイ 581.工。エエ□。(いヵ□)    −6・・・・
・シーケンス敬演算手段 (!mW作制御部) 9・・ 動作指令作成手段 (工具経路編集演算部) 18 ・・シーケンス消去手段 (工具経路編修制御部) 19 ・・工具経路 PRO−・加工プログラム SEQ −・シーケンス 出願人  株式会社 出端鉄工所 代理人  弁理士  相1)伸二 (ほか1名) 第4図 第6図 第8図 3テtスフ6レイ 第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, FIG. Figure 4 is a flowchart showing the sequence deletion subroutine, Figure 5 is a flowchart showing the edit sequence creation subroutine, Figure 6 is a flowchart showing the data conversion calculation subroutine, and Figure 7 is the display coordinate system on the display and the machining program coordinates. 8 to 11 are diagrams showing an example of how the tool path is displayed on the display when modifying the tool path, and FIG. 12 is a diagram showing an example of how the machining program is modified. . 1... Numerical control device 3... Display 581. Engineering. Eee□. (Ika□) -6・・・・
・Sequence calculation means (!mW operation control section) 9.. Operation 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 Applicant Debata Ironworks Co., Ltd. Agent Patent Attorney Phase 1) Shinji (and 1 other person) Figure 4 Figure 6 Figure 8 3 Tetsufu 6 Ray Figure 12

Claims (1)

【特許請求の範囲】 加工に際して工具を移動すべき工具経路を シーケンス毎の動作指令の形で有する加工プログラムを
実行する数値制御装置において、加工プログラムに示さ
れた前記工具経路を表示するディスプレイを有し、前記
ディスプレイ上で修正すべき工具経路を指示する工具経
路修正指示手段を設け、前記工具経路修正指示手段から
指示された修正すべき工具経路において、修正編集すべ
き前記加工プログラム上のシーケンス数を演算するシー
ケンス数演算手段を設け、前記シーケンス数演算手段に
より修正すべきシーケンス数が複数の場合に、不要なシ
ーケンスを前記加工プログラムから消去するシーケンス
消去手段を設け、更に前記工具経路修正指示手段から指
示された修正すべき工具経路について新たな動作指令を
作成する動作指令作成手段を設けて構成した数値制御装
置。
[Scope of Claims] A numerical control device that executes a machining program having a tool path along which a tool is to be moved during machining in the form of operation commands for each sequence, comprising a display that displays the tool path indicated in the machining program. and a tool path correction instruction means for instructing a tool path to be corrected on the display, and a number of sequences on the machining program to be corrected and edited in the tool path to be corrected instructed by the tool path correction instruction means. , further comprising a sequence erasing means for erasing unnecessary sequences from the machining program when the number of sequences to be corrected by the sequence number computing means is plural, and further comprising a sequence erasing means for erasing unnecessary sequences from the machining program; A numerical control device is provided with a motion command creation means for creating a new motion command for a tool path to be corrected instructed by a numerical control device.
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 true JPS61170807A (en) 1986-08-01
JPH0562364B2 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)

Cited By (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
JPS63158612A (en) * 1986-12-23 1988-07-01 Fanuc Ltd 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
WO1990000764A1 (en) * 1988-07-08 1990-01-25 Fanuc Ltd Interactive numerical controller
JPH04307605A (en) * 1991-04-04 1992-10-29 Mitsubishi Electric Corp Numerical controller
JPH05297929A (en) * 1992-04-15 1993-11-12 Okuma Mach Works Ltd Numerical control program editing method
DE102016014382A1 (en) 2015-12-03 2017-06-08 Fanuc Corporation Numerical control

Cited By (13)

* 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
JPS63158612A (en) * 1986-12-23 1988-07-01 Fanuc Ltd 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
WO1990000764A1 (en) * 1988-07-08 1990-01-25 Fanuc Ltd Interactive numerical controller
JPH04307605A (en) * 1991-04-04 1992-10-29 Mitsubishi Electric Corp Numerical controller
JPH05297929A (en) * 1992-04-15 1993-11-12 Okuma Mach Works Ltd Numerical control program editing method
DE102016014382A1 (en) 2015-12-03 2017-06-08 Fanuc Corporation Numerical control
CN106843141A (en) * 2015-12-03 2017-06-13 发那科株式会社 Numerical control device
US10437229B2 (en) 2015-12-03 2019-10-08 Fanuc Corporation Numerical controller
CN106843141B (en) * 2015-12-03 2019-12-13 发那科株式会社 numerical controller
DE102016014382B4 (en) 2015-12-03 2024-10-02 Fanuc Corporation Numerical Control

Also Published As

Publication number Publication date
JPH0562364B2 (en) 1993-09-08

Similar Documents

Publication Publication Date Title
JP3819883B2 (en) Robot program position correction device
JPS61170807A (en) Numerical controller
JP2773517B2 (en) Program display device
WO2022185712A1 (en) Program editing device and program
JP4610873B2 (en) Method, computer storage medium and system for generating a numerical control tool path on a solid model
JP2639169B2 (en) Numerical control unit
KR0182393B1 (en) Virtual computer numerical control machine tool and method
JPH0677208B2 (en) NC device machining program creation method
JP4837837B2 (en) A robot program creation device in a work robot system and a program creation device in an automatic control device system
JPH04245503A (en) Editing device for machining program
JP2003165079A (en) Industrial robot
JPH02252004A (en) Tool shape plotting system
JPH06114678A (en) Tool locus display device of nc device
JP2528878B2 (en) Robot operation sequence diagram output method
JPS6359604A (en) Method for changing working route in numerical controller
JP2879383B2 (en) Electric discharge machining method and apparatus
JPH0695293B2 (en) Machining simulation method in numerical controller
JPH05241649A (en) Teaching device for industrial robot
JPS61274845A (en) Method of simulating track of tool in nc device
JPH0722875B2 (en) How to display taper angle setting of programming device
JP3283055B2 (en) Program editing device
JPS6048243A (en) Zone margin machining method
JPS63286905A (en) Editing device for numerical control data
JPH08263121A (en) Machining path tracing-back system for cnc
JPH0358202A (en) Numerical controller with simulation function