| 研究生: |
范劭寧 Fan, Shao-Ning |
|---|---|
| 論文名稱: |
CNC控制器之編譯器原理研究與發展以PCB鑽孔機Excellon碼為例 Hybrid Compiler and interpreter for CNC Controller─Applications in PCB Drilling Machine |
| 指導教授: |
陳響亮
Chen, Shang-Liang |
| 學位類別: |
碩士 Master |
| 系所名稱: |
電機資訊學院 - 製造工程研究所 Institute of Manufacturing Engineering |
| 論文出版年: | 2008 |
| 畢業學年度: | 96 |
| 語文別: | 中文 |
| 論文頁數: | 119 |
| 中文關鍵詞: | Excellon Code 、混合式編譯器 、PCB鑽孔機 、中間碼 |
| 外文關鍵詞: | PCB Drilling Machine, Excellon Code, Hybrid compiler and interpreter, intermediate language |
| 相關次數: | 點閱:159 下載:22 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
由於PCB 鑽孔機具備XYZ 各軸與刀盤等相關設備,具有CNC 工具機之基本運動行為,相當適合進行設備產業自有化相關研究。在此以PCB 鑽孔機之Excellon 格式為例,進行控制器核心之編譯系統的設計與實現,並推衍闡述相關的理論基礎。
混合式編譯器因具有一次編譯、多次執行的特性,適合應用在高重覆性的生產加工上。因此本研究採用此一編譯器架構進行系統分析與發展。並建構對應之刀具資料庫以輔助刀具資料之處理與應用。商用運動控制卡則做為本系統的底層以建構PC-Based 控制器,並驗証相關之位置控制、命令補償等動作。
由實驗證明,本研究所開發之Excellon 編譯器可進行孔位模擬產生與實際鑽孔行為。藉由圖形與實機鑽孔驗證,可確保一般鑽孔、啄鑽鑽孔、重覆命令、象限轉換、刀具補償,內建MARCO等主要常用之命令可先經由繪圖確認後,再以運動命令執行。而圖形縮放功能則提供了對細小孔徑的檢查可能。
藉由混合式編譯器之設計與研究,可瞭解NC Code轉譯至機械命令之運動流程,並提供足夠的NC程式錯誤反應時間。其執行方式則與多節預覽的功能相似,但可預先檢查程式碼是否正常。依照實機測試結果顯示,模擬結果與實機驗證吻合,可確保機台行為與模擬結果之正確性。
Printed Circuit Board (PCB) drilling machine owns XYZ axes and related equipment, tool magazine. It owns the basic motion behavior of CNC machine tool, and is suitable for researching of equipment industry. Here, the Excellon format of PCB drilling is used as example to design and implement the compilation system of controller kernel, and derive relation theorism.
Hybrid compiler and interpreter owns several features, one compilation, multi-execution. It is suitable for applying in hight repetitive production and processing. This strcture is adopted to design and implement system. Tool database also is constructed to support auxiliary process of tool parameters. Business motion control card is used as the basic of this system to build PC-Based controller, and verify positioning and compensation.
The results prove that the Excellon compiler could simulate hole position, and actual drilling behavior. According to the verification of graphic and actual machining, the general command such as: general drilling, pecking drilling, repeat motion, phase transform, tool compensation, built-in MARCO, could be verified by graphic simulation, and execution with motion commands. The function of zooming graphic is available for inspection small hole.
By the design and research of hybrid compiler and interpreter, the process of translation, from NC code to motion command, and provide error response time for NC program. The execution method is similar with multi-block look-ahead, but it could pre-check whether the program is correct or not. According to the actual drilling result, it is the same with simulation result , and could ensure the correct of simulation and motion behavior.
[1] 東台精機集團資訊網 http://www.tongtai.com.tw/
[2] 張翠, 艾春廷, 陳作炳, 鄭宏勤, “數控代碼的解釋執行方法研究”, 國外建材科技, 23(3),pp.43-47,2002.
[3] 蔡秉寰, ”多軸組CNC之物件導向分析與設計”, 國立清華大學動力機械工程學系碩士論文,2003.
[4] 謝明紅, “基於PC的數控系統編譯及圖形仿真研究”, 數控加工技術, 3, pp.37-39, 2003.
[5] 余世林, 朱國寶, “通用型數控自動編程系統的研究”,武漢理工大學學報, 27(5),pp.725-727, 2003.
[6] 余世林, 朱國寶, “數控自動編程中刀具半徑補償研究”, 電子機械工程, 20(2), pp.37-39, 2004.
[7] 黃文, 毛漢穎, 張克華, “多線程技術及其在數控機床中的應用”, 裝備製造技術, 4, pp.14-17, 2004.
[8] 林昆鋒, “CNC運動控制器之軟體整合開發與模擬”, 國立成功大學機械工程研究所碩士論文, 2004.
[9] 王心光, 傅建中, “虛擬數控加工中G代碼編譯器的研究”, 組合機床與自動化加工技術, 6, pp.80-84, 2005.
[10] 周沖, 錢昆明, 齊昕, “數控車床彷真系統中數控內核的設計與實現”, 計算機應用, 25(2), pp.463-465, 2005.
[11]肖蘇華, 李迪, 賴乙宗, 萬家富, 馮壽廷, “基於Windows CE的開放式數控系統的研究與開發”, 製造業自動化, 29(4), pp36-39, 2007.
[12]Excellon Automation Co. http://www.excellon.com/
[13]Aho, A., R. Sethi, and J. Ullman, “Compilers: principles, techniques, and tools”, Addison-Wesley Publishing Co., 1986.
[14]黃一夫, “電機工程手冊2:自動化與數控製造”, 五南圖書出版公司, 2002.