經漓部中央標準局員工消費合作社印策 ^__五、發明説明() 本發明係與工具機有關,特別是指一種記錄以程式化 之電腦來控制數值工具機切削動作之記錄媒體者。 按,傳統之工具機係由操作者以手控之方式控制機械 之進給來完成加工。惟,該種以人力操控之方式不僅耗費 5 人力,且效率不佳,是以,始有CNC工具機之誕生。如 第一圖所示,使用CNC工具機加工時,須先由操作者撰 寫包含刀具基本動作及刀具移動路徑之加工程式,並將該 加工程式存入數值控制器之記憶體中,再由操作者輸入命 令,以啟動該加工程式,進而促使工具機自動完成操作者 10 所欲執行之動作。 雖然前揭CNC工具機可藉由加工程式之驅動而自動 加工,使得其製造效率較傳統工具機為高,惟,由於撰寫 該等包含刀具基本動作及其移動路徑之加工程式不僅需有 豐富之加工經驗,亦須僅得程式之邏輯,並非任何操作者 15 皆可勝任者,此外,當待加工件不同時,亦必須再重新撰 寫對應之加工程式;基此,上述種種缺失皆會影響CNC 工具機之生產效率,而無法完全符合業界之需求。 本發明之主要目的即在提供一種記錄以程式化之電腦 來控制數值工具機切削動作之記錄媒體,其可使工程人員 20 撰寫待加工件之加工程式時,僅需撰寫待加工件之輪廓路 徑描述程式,而不需撰寫包含工具機基本動作之指令部 份,俾簡化加工程式之撰寫動作者。 緣是,為達成前述之目的,本發明係提供一種記錄以 程式化之電腦來控制數值工具機切削動作之記錄媒體,該 -3- (請先聞讀背面之注意事項再填寫本頁) -1Τ 本紙張尺度適用中國國家標準(CNS ) Α4規格(210Χ 297公嫠) ^"''τ':· 經濟部中央標準局員工消費合作社印製According to the Ministry of Central Standards Bureau's employee consumer cooperative policy ^ __ V. Description of the invention () The invention relates to machine tools, especially a recording medium that records the cutting action of numerical machine tools with a programmed computer. According to the traditional machine tool, the operator controls the feed of the machine manually to complete the processing. However, this kind of manual control method not only consumes 5 manpower, but also has poor efficiency. Therefore, the birth of CNC machine tools began. As shown in the first figure, when using CNC tools for machining, the operator must first write a machining program containing the basic movements of the tool and the tool movement path, and store the machining program in the memory of the numerical controller, and then operate The user enters a command to start the processing program, and then causes the machine tool to automatically complete the action that the operator 10 wants to perform. Although the CNC machine tool can be automatically processed by the driving of the machining program, making it more efficient than traditional machine tools, but because writing these machining programs that include the basic movement of the tool and its movement path requires not only rich Machining experience must also have only the logic of the program, not any operator15 can be competent. In addition, when the parts to be processed are different, the corresponding machining program must be re-written. Based on this, the above-mentioned defects will affect the CNC The productivity of machine tools cannot fully meet the needs of the industry. The main object of the present invention is to provide a recording medium for recording the cutting action of a numerical tool machine controlled by a stylized computer, which enables the engineer 20 to write only a contour path of a workpiece to be written when writing a machining program for the workpiece Describe the program without writing instructions that contain the basic actions of the machine, simplifying the writing of the processing program. The reason is that, in order to achieve the aforementioned purpose, the present invention provides a recording medium for recording the cutting action of a numerical tool machine controlled by a stylized computer. 1T This paper size is applicable to China National Standard (CNS) A4 specification (210 × 297 mm) ^ " '' τ ': Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs
記錄媒體中記憶了讓電腦實行以下處理之程式:該程式包 含一主程式及可受該主程式呼叫之一副程式,該主程式具 有數個控制指令及參數,用以產生控制該數值工具機之信 號,使該數值工具機之刀座帶動刀具產生旋轉、沿工件表 5 面位移'以及進給等動作:該副程式係若干路徑描述指令 之組合。 以下,茲舉本發明一較佳實施例,並配合圖式做進一 步之詳細說明如后,其中: 第二圖係本發明一較佳實施例中主程式内容。 10 第三圖係本發明一較佳實施例中副程式内容。 第四圖係本發明一較佳實施例之執行流程圖。 請參閱第二圖及第三圖所示,本發明一較佳實施例之 記錄媒體,係設置於一磨床之控制器中,該記錄媒體記憶 有一主程式及一副程式,該主程式係一路徑加工程式 15 (Profile canned cycle),包含一自設之巨集指令G207.1及 參數 B、C、D、F、H、I、P、Y、Z、K、E,以及一機能 指令M30,用以控制該磨床諸基本動作(如刀具定位及修 正、輪廓路徑執行及G41(G42)刀具徑補正等);該主程式 中各參數所代表意義如下: 20 第一行0 :程式代號。 第二行: B:進刀增量 C :兩次進刀間之無火花切削次數(Free Pass Times) D:將傳回給呼叫程式本次加工之實際進刀量之全域 -4- 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) I- 裝 訂 線 (請先閱资背面之f意事項再填寫本頁) 經濟部中"標牟局員J·消费合作社印^ aft ΑΊ^_-__五、發明説明() 第88106696號發明專利申請案修正頁 88.5 變數(Global Variable Number) F :加工進給速度 Η :加工模式選擇(1 :已加工過之工件,0 :未加工 過之工件) 5 I :無火花切削狀態之運轉次數(Spark-out times)第三行: P :路徑描述程式(副程式)號碼 Y:Y軸路徑起點座標 ζ:ζ軸路徑起點座標 Κ:刀具量測起始點 10 Ε :路徑起始點是否等於刀具量測起始點(1 :是,0 : 否) D :刀具半徑》 第四行Μ30 :程式終了。 如第三圖所示,該副程式係若干習知之路徑描述指 15 令之組合。 此外,該記錄媒體更包含有一資料庫,用以儲存該主 程式對應之參數資料,此為習知者,不予贅述。 藉此,該主程式第2行係用以使磨床之砂輪(圖中未示) 以設定之速度運轉並進刀(F200.0、Β0.02),該主程式第3 20 行係呼叫該副程式(Ρ1234),使該副程式自設定之起始點 (Ύ-100.0、Ζ-50.0)開始執行路徑加工之動作。 本發明之特色係在於:先將工具機之諸基本動作包裝 成一路徑加工程式(主程式),並儲存於該記錄媒體中,則 工程人員欲撰窝一新待加工件之加工程式時,如第四圖所 -5- (請先閲讀背面之注意事項再填寫本頁) ,1Τ 本紙烺尺度適用中國( CNS ) Λ4規格(2:0:<297公釐)A program that allows a computer to perform the following processing is stored in the recording medium: the program includes a main program and a subprogram that can be called by the main program; the main program has several control instructions and parameters for generating and controlling the numerical tool The signal causes the tool holder of the numerical machine tool to drive the tool to rotate, move along the surface of the workpiece, and to perform feed and other actions. This subroutine is a combination of several path description instructions. In the following, a preferred embodiment of the present invention is given, and further detailed description is given in conjunction with the drawings as follows, wherein: The second diagram is the content of the main program in a preferred embodiment of the present invention. 10 The third diagram is the content of the subroutine in a preferred embodiment of the present invention. The fourth figure is an execution flowchart of a preferred embodiment of the present invention. Please refer to the second and third figures. The recording medium of a preferred embodiment of the present invention is set in the controller of a grinder. The recording medium stores a main program and a subprogram. The main program is a Path processing program 15 (Profile canned cycle), including a self-set macro command G207.1 and parameters B, C, D, F, H, I, P, Y, Z, K, E, and a function command M30 , Used to control the basic movements of the grinder (such as tool positioning and correction, contour path execution and G41 (G42) tool diameter correction, etc.); the meaning of each parameter in the main program is as follows: 20 The first line 0: program code. Second line: B: Increment of feed C: Free Pass Times between two infeeds D: Will return to the calling program the actual range of infeeds for this process -4- paper Standards are applicable to China National Standard (CNS) A4 specifications (210X297 mm) I- binding line (please read the notice on the back of the capital and then fill out this page) in the Ministry of Economic Affairs " Printed by J. Consumer Cooperatives ^ aft ΑΊ ^ _-__ V. Description of the invention () No. 88106696 of the invention patent application amendment page 88.5 Global Variable Number F: Machining feed rate 加工: Machining mode selection (1: processed workpiece, 0: not yet Machined workpiece) 5 I: Spark-out times in the non-spark cutting state Third line: P: Path description program (subroutine) number Y: Y-axis path starting coordinate ζ: ζ-axis path starting coordinate Κ : Tool measurement start point 10 Ε: Whether the path start point is equal to the tool measurement start point (1: Yes, 0: No) D: Tool radius >> The fourth line M30: The program is finished. As shown in the third figure, the subroutine is a combination of several known path description instructions. In addition, the recording medium further includes a database for storing parameter data corresponding to the main program. This is a known person and will not be described in detail. Therefore, the second line of the main program is used to make the grinding wheel (not shown) of the grinding machine run at the set speed and feed (F200.0, B0.02). The third line of the main program calls the vice The program (P1234) enables the subroutine to start the path machining operation from the set starting point (Ύ-100.0, AZ-50.0). The feature of the present invention is that the basic actions of the machine tool are first packaged into a path processing program (main program) and stored in the recording medium. When an engineer wants to write a processing program for a new piece to be processed, such as Figure 4-5- (Please read the notes on the back before filling out this page), 1T paper size is applicable to China (CNS) Λ4 specifications (2: 0: < 297 mm)
Λ Α7 Β7 五、發明説明() 示,僅需撰寫工件之路徑描述指令(副程式),並將其儲存 於該記錄媒體内,而不需撰寫包含工具機基本動作之指 令,再調整該記錄媒體中主程式之參數(即位於自設巨集 指令G207.1後之B、C、D、F、H、1、P、…等之相關數 5 值),即可調整砂輪運轉之速度、進刀量、切削次數各種 作業方式,俾藉由執行該路徑加工程式及路徑描述指令, 而促使工具機進行預定之加工動作。 综上所陳,本發明所提供之一種記錄以程式化之電腦 來控制數值工具機切削動作之記錄媒體,其可使工程人員 10 僅須撰寫待加工件之輪廓路徑程式,而不需撰寫包含工具 機基本動作之指令部份,俾可簡化加工程式之撰寫動作 者,進而提昇生產之效率者。 I. 1.1 I - n I _ /^n I , 1 i —^ (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合竹社印說 本紙張尺度適用中國國家摞準(CNS > A4現格(210X 297公釐) a2^s/v at B7 五、發明説明() 圖式簡單說明: 第一圖係一習知藉由CNC加工程式控制工具機動作之 操作流程圖。 第二圖係本發明一較佳實施例中主程式内容β 5 第三圖係本發明一較佳實施例中副程式内容。 第四圖係本發明一較佳實施例之執行流程圖。 ---4. n I— i - - —^^1 墨 I! - I - 1 -^1^1 (請先閱讀背面之注意事項再填寫本頁) 經濟部中史標年局員工消f合作社印製 本紙張尺度適用中國國家標準(CNS ) A4規格(210 X 297公釐)Λ Α7 Β7 5. The invention description () shows that only the path description instructions (subroutines) of the workpiece need to be written and stored in the recording medium, instead of writing instructions that include the basic actions of the machine tool, and then adjusting the record The parameters of the main program in the media (that is, 5 values of B, C, D, F, H, 1, P, ... etc. after the macro instruction G207.1) can adjust the speed of the grinding wheel, A variety of operation methods such as feed amount and cutting frequency, by executing the path processing program and path description instruction, the machine tool is caused to perform a predetermined machining operation. To sum up, the present invention provides a recording medium for recording the cutting action of a numerical tool machine with a stylized computer, which enables the engineer 10 to write only the contour path program of the workpiece to be processed, without having to write The instruction part of the basic movement of the machine tool can simplify the writing of the processing program and improve the efficiency of production. I. 1.1 I-n I _ / ^ n I, 1 i — ^ (Please read the precautions on the back before filling out this page) The staff of the Central Standards Bureau of the Ministry of Economic Affairs, Consumption Co., Ltd. said that the paper size is applicable to China's national standards (CNS > A4 now (210X 297mm) a2 ^ s / v at B7 V. Description of the invention () Simple illustration of the diagram: The first diagram is a familiar operation flow for controlling the operation of the machine tool by CNC machining program The second diagram is the content of the main program β 5 in a preferred embodiment of the present invention. The third diagram is the content of the sub program in a preferred embodiment of the present invention. The fourth diagram is an execution flowchart of a preferred embodiment of the present invention. --- 4. N I— i--— ^^ 1 Ink I!-I-1-^ 1 ^ 1 (Please read the notes on the back before filling this page) f The paper size printed by the cooperative is applicable to China National Standard (CNS) A4 (210 X 297 mm)