本研究為開發一套 PC-Based 平面磨床操作系統,利用 C++ Builder 編譯器,在 Windows 系統環境下開發本系統。本系統亦包括設計平面磨床系統的操作界面,應用Windows圖形界面來提供友善的操作人機界面,能簡易地設定及儲存加工參數,並監測系統操作狀況。系統之硬體主要包括研磨主軸、伺服馬達、動力裝置的控制電路等,及輔以光學尺完成研磨主軸的量測及定位。 對於整體系統在運作過程中所發生的誤差問題,除了瞭解誤差產生的原因外,並尋求快速的補償辦法。運用PC-Based系統的運算及資料儲存能力,建立誤差數值資料庫,再利用統計的加權平均法為基礎,撰寫誤差偵測及補償程式。此程式可預先研判主軸進給時的誤差值,在主軸運動前即先行完成誤差補償,可有效及快速的抵消系統所產生的誤差。
The objective of this article is to use C++ Builder software design tool to develop a positioning system for the surface-grinding machine under the environment of Windows GUI. The system also develops a user-friendly man-machine interface, which allows the operator to easily set up the parameters and monitor the grinding status. The hardware includes servomotor, grinding spindle, driving circuitry and so on. In association with optical linear scale device, the positioning and measurement of the surface grinding is achieved. The phenomenon to cause grinding error and the error compensation method is investigated. Vast amount of data is measured in experiment and saved in the PC-Based system. By use of the weighted average method the static error compensation algorithm is designed to compensate the error in advance. Thus, it allows the system to be able to reduce the static error efficiently.