【正文】
CNC software is an extremely important function in one module, The algorithm of choice will directly affect the system accuracy, speed and processing capability. Economical CNC machining of small and medium enterprises in heavy use, but most of the economic type CNC machine tools can only linear interpolation and circular interpolation, parabolic interpolation function without. Existing literature on the straight line, arcbypoint parison of interpolation, integral interpolation method are introduced, and its still rare for parabolic interpolation. This paper introduces two parabolic interpolation algorithm, and then vb language design based on a parabolic interpolation software can be used in teaching simulation.Keywords: interpolation, parabolic, point by point parison, digital integration, simulation, interpolation software 目錄1緒論 4 4 4 5 6 6 6 72數(shù)控系統(tǒng)插補(bǔ)方法及其分析 7 7 8 8 93 拋物線插補(bǔ) 11 11 逐點(diǎn)比較插補(bǔ)法拋物線插補(bǔ)原理 11 12 134用Visual Basic實(shí)現(xiàn)拋物線逐點(diǎn)比較法插補(bǔ) 15 15 15 16 175數(shù)字積分拋物線插補(bǔ) 18 DDA插補(bǔ)算法原理 18 DDA插補(bǔ)實(shí)例 206用Visual Basic實(shí)現(xiàn)拋物線積分法插補(bǔ) 22 22 22 23 247軟 件 說 明 25 25 25 用戶要求 268總結(jié) 26參考文獻(xiàn) 271緒論隨著知識(shí)經(jīng)濟(jì)時(shí)代的到來,科學(xué)技術(shù)突飛猛進(jìn),機(jī)械制造技術(shù)發(fā)生了深刻的變化。本文首先介紹了拋物線的兩種插補(bǔ)算法,然后基于vb語言設(shè)計(jì)了一個(gè)拋物線的插補(bǔ)軟件,可用于教學(xué)仿真實(shí)驗(yàn)。它最能體現(xiàn)現(xiàn)代制造技術(shù)的高效益和軟硬件發(fā)展的綜合水平,它的發(fā)展可以保證產(chǎn)品得到極高的加工精度和穩(wěn)定的加工質(zhì)量,提高加工的自動(dòng)化程度和生產(chǎn)效率,縮短加工時(shí)間和生產(chǎn)周期,使產(chǎn)品具有精確協(xié)調(diào)性和互換性,增強(qiáng)了對(duì)復(fù)雜曲面的加工能力等,從而為現(xiàn)代制造技術(shù)的完善和發(fā)展提供了保證。由于插補(bǔ)的速度直接影響到數(shù)控系統(tǒng)的速度,而插補(bǔ)的精度又直接影響整個(gè)數(shù)控系統(tǒng)的精度,因此,人們一直在努力探求一種計(jì)算速度快并且精度又高的插補(bǔ)方法。該算法當(dāng)列表曲線曲率大時(shí),使步長(zhǎng)變小,反之使步長(zhǎng)變大,同時(shí)逼近誤差滿足要求。日本豐橋科技大學(xué)與北海道大學(xué)等于1987年研制了具有曲面實(shí)時(shí)加工功能的三坐標(biāo)曲面加工系統(tǒng)。清華大學(xué)和南京四開數(shù)控設(shè)備廠合作,提出了一種基于網(wǎng)絡(luò)信息的自由曲面直接插補(bǔ)控制方法等等。 (2)便于干預(yù)加工過程。脈沖當(dāng)量的大小和脈沖頻率決定了機(jī)床的加工精度和進(jìn)給速度。使用這種插補(bǔ)法的數(shù)控系統(tǒng),其位置伺服通過計(jì)算機(jī)及其測(cè)量裝置構(gòu)成閉環(huán),插補(bǔ)輸出的結(jié)果不是脈沖,而是數(shù)據(jù)。逐點(diǎn)比較法,顧名思義,就是每走一步都將加工的瞬時(shí)坐標(biāo)同規(guī)定的圖形軌跡相比較,判斷其偏差,然后決定下一步的走向,如果加工點(diǎn)走到圖形外面去了,那么下一步就要向圖形里面走,以縮小偏差。實(shí)現(xiàn)數(shù)字積分插補(bǔ)計(jì)算的裝置稱為數(shù)字積分器,或數(shù)字微分器(Digital Differential Analyzer, DDA),數(shù)字積分器可以用軟件來實(shí)現(xiàn)。 逐點(diǎn)比較插補(bǔ)法拋物線插補(bǔ)原理 如圖 3 所示,要加工第一象限的拋物線,原點(diǎn)O 為起點(diǎn),A(xe,ye)點(diǎn)為終點(diǎn),Pi(xi,yi)點(diǎn)為加工動(dòng)點(diǎn)。 (4)終點(diǎn)判別 判別是否到達(dá)終點(diǎn),若已到達(dá)終點(diǎn),則停止插補(bǔ),若未到終點(diǎn),則重復(fù)上述過程。數(shù)字積分法 (DDA) 有一系列優(yōu)點(diǎn), 其算法簡(jiǎn)單、運(yùn)算速度快、占用硬件資源少。插補(bǔ)過程如表2 所示。開發(fā)(第2報(bào)).精密工學(xué)會(huì)志,1987,53【22】周凱,【23】周艷紅,周云飛,【24】周凱,【25】唐宗軍,趙萍,李哲,【26】王峰,【27】譚翰墨,【28】周云飛,【29】鄭堤,【30】李雁翎,Visual Basic 程序設(shè)計(jì)(第2版).【31】陳錦昌,趙明秀,張國(guó)棟等編著,【32】何光渝主編,VB常用算法大全,西安電子科技大學(xué)出版社【33】李玉東等編著,Visual 空間大全,電子工業(yè)出版社【34】[美]Evangelos Petrouts ,Visual 從入門到精通,電子工業(yè)出版社【35】李蘭友編,Visual ,電子工業(yè)出版社 29