本論文提出一個整合FPGA為基礎之模糊控制器,應用於機械加工控制CNC工具機之剛性攻牙(Rigid tapping)。利用現場可程式邏輯閘陣列(FPGA)去完成CNC加工之電路。此顆模糊控制晶片運用現場可程式邏輯閘陣列的技術來製作,並以選擇SRAM為基礎之FPGA來完成。FPGA有下列優點:不必修改週邊之硬體電路即可進行電路修改和可增加額外之功能等。 本論文之模糊控制晶片包含模糊化電路、規則庫電路、推論工場電路及解模糊化電路等主要電路模組,結合馬達控制電路外,還整合了光編碼器電路、馬達驅動訊號電路,採高度模組化設計,利用全球通用且跨平台之VHDL硬體描述語言設計。藉用FPGA發展軟體模擬所設計之電路之功能性與可行性,再實際與工具機連結,以進行CNC剛性攻牙之實驗。 藉由FPGA可重覆燒錄的特性,使用Xilinx公司發展的軟體,可以很容易撰寫VHDL程式,並搭配Modelsim做時序圖的模擬,將程式燒錄到FPGA和硬體結合,可以很方便的做結果測試,然後對照實驗結果去做程式的修改,可以節省時間和大幅降低成本,這對研發的時間和成本是十分有利的。 This thesis will apply a fuzzy logic controller to develop a new circuit realization to perform manufacture for a CNC machine rigid tapping. A field programmable gate array (FPGA) will be used to develop for manufacture. It will be developed by using FPGA with SRAM for manufacture. Using FPGA has many advantages such as easy circuit modification and performance expansion. The fuzzy logic control system in this thesis consists of fuzzification circuit, rule-base circuit, inference circuit, defuzzification circuit. Combined with the photo encoder circuit, motor driver circuit, design with module. VHDL will be used to design. A FPGA developing software system will simulate the designed circuit to test the performance and feasibility. Finally a CNC machine tool used will perform CNC manufacture. It can cover and burn the characteristic recorded again with FPGA. Using the software of Xilinx Company's development can be very apt to write VHDL program and match the simulation that Modelsim did the chronological chart. Burning the program and record to FPGA and hardware combining can be very convenient to do the result to test. Modifying experimental result and the program can save time and lower costs to achieve good performance.