Lathe-MPFAN后處理文件的更改與編寫探究_第1頁(yè)
Lathe-MPFAN后處理文件的更改與編寫探究_第2頁(yè)
Lathe-MPFAN后處理文件的更改與編寫探究_第3頁(yè)
Lathe-MPFAN后處理文件的更改與編寫探究_第4頁(yè)
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、lathe-mpfan后處理文件的更改與編寫探究王 新 牟清舉 劉海軍(重慶科創(chuàng)職業(yè)學(xué)院402160)摘 要:針對(duì)lathe-mpfan.pst文件中fanuc系統(tǒng)與華中系統(tǒng)不同之處進(jìn)行 修改后,將mstercamx3自動(dòng)編程產(chǎn)牛的后處理nc程序可以肓接應(yīng)用到華中系 統(tǒng)車床。關(guān)鍵詞:mpfan.pst通用指令修改驗(yàn)證我單位有華中數(shù)控系統(tǒng)車床,而mstercamx3自動(dòng)編程產(chǎn)生的后處理nc程 序是用于fanuc系統(tǒng)數(shù)控車床,應(yīng)用時(shí)每次都要改nc程序,不僅麻煩而且易錯(cuò), 因此我們修改了 lathe-mpfan.pst文件。一、通用部分指令對(duì)于fanuc系統(tǒng)和華中數(shù)控系統(tǒng)通用指令部分直接應(yīng)用。二、處

2、理文件的更改與編寫1. 查找 lathe-mpfan.pst在桌面“mstercamx3”快捷鍵處,點(diǎn)擊鼠標(biāo)右鍵“屬性”,在“mstercamx3 的屬性”對(duì)話框中選“查找目標(biāo)”選項(xiàng)→lathe→posts→ “mplfan.pst” 文件。2. 修改與編寫lathe-mplfan.pst,文件(1) 程序名前有“”,經(jīng)過驗(yàn)證可用,在此不用改。(2) mstercamx3是用g54對(duì)刀的,實(shí)際我們?cè)跀?shù)控系統(tǒng)數(shù)控車床中是用刀 偏對(duì)刀的,將原文件"force_wcs: yes$ #force wcs output at every t

3、oolchange? ” 改寫成force_wcs: no$ #force wcs output at every toolchange? ”(3) fanuc系統(tǒng)中g(shù)98為刀具每分鐘進(jìn)給速度,g99為刀具每轉(zhuǎn)進(jìn)給速度; 而華中系統(tǒng)中g(shù)94為刀具每分鐘進(jìn)給速度,g95為刀具每轉(zhuǎn)進(jìn)給速度。將文件 “# feed mode g code selectionsg98 g98 #upmsg99g99#upr”改寫成 “# feed mode g code selectionsg98g94#upmsg99g95#upr”(4)nc程序開始,對(duì)年月日、分秒小時(shí)、程序名進(jìn)行注釋說明,占用了太 長(zhǎng)的程序,在下

4、列程序頭加“宇',就不會(huì)在nc程序出現(xiàn)注釋說明。原文件為:"pheader$#start of file"c,"program name, sprogname$/")"/ e$"(,,,,date=dd-mm-yy-',date$,time=hh:mm-,time$,"),e$ #date and time output ex.12-02-05 15:52“(“/date jmonth$,”,day$,“date output asmonth,day,year-ex.02-12-05”(”,”date&quo

5、t;,*smonth,”",day$,”,*year2,”)”,e$ date output asmonth,day,year-ex.feb.l2 2005"(h,,time-,time$,),/ e$ #24 hour time output-ex,15:52,(,,,,time-,/ptime"),e$ #12 hour time output 3:52 pm"(''/"mcx file-",*smcpath$, *smcname$, *smcext$z ")h,e$"cv'nc fil

6、e-,*spathnc$/*snamenc$/*sextnc$/')"/e$ ”(tmaterialstck_matl$/)”,e$”改寫成:"pheader$#start of filerc,"program name-"zsprogname$z")",e$#,(',,,date=dd-mm-yy-',z date$;,time=hh:mm-"ztime$,")",e$ #date and time output ex.12-02-05 15:52#,(',,,date-

7、,month$;,-"/day$,-,year$,),/ e$ #date output as mon th,day,year-ex.o2-12-o5#,(,7,date-,/*smonth/"",day$/""/*year2;,)",e$ #date output as month,day,year-ex.feb.l2 2005#,(,,,"time-"/time$/")"/e$ #24 hour time output-ex.l5:52#,'(,7'time-,/ptime,

8、),/ e$ #12 hour time output 3:52 pm#"('7'mcx file-",*smcpath$,*smcname$,*smcext$,"),,/e$#n('7'nc file=*spathnc$,*snamenc$,*sextnc$,“)“,e$ (下轉(zhuǎn)第 90 頁(yè))(上接第 83 頁(yè))#”(羅material羅stck_matl$,”e$”(5) g28返冋參考點(diǎn),我校的數(shù)控車床是x、z軸驅(qū)動(dòng),無hv0.%在程序中 去掉"vo.% 所有的 “pbld, n$,*sg28ref/u0“fy_ax

9、is_mch/v0“rw0“,e$” 都改 寫成 pbldzn$/*sg28ref;,u0.,/,w0.,/e$,o(6) 華中無g50限制工件最高轉(zhuǎn)速,應(yīng)去掉,原文件:if css_start_rpm,pcssg50,pcss # no rpm start-just output the cssif css_start_rpm,pcssg50,pcss # css output after a g97s?rpm spindle startuppcssg50 #output constant surface speed clampif css_actv$,pbld, n$,*sg50,*max

10、ss$,e$ ”改寫成if css_start_rpm,#pcssg50,pcss # no rpm start-just output the cssif css_start_rpm,#pcssg50, pcss # css output after a g97s? rpm spindle startup#pcssg50 #output constant surface speed clamp#if css_actv$zpbld,n$,*sg50,*maxss$, e$”(7) 加工螺紋g32適合任何系統(tǒng),不用改,但是在mstercamx3中生成的nc程序中“g32x( )z( )e()”,導(dǎo)程應(yīng)該用公制單位,應(yīng)為“g32x( ) z()f(八原程序 “#format feedrate for latheresult=nwadrs(stre feed) ”改寫為"#format feedrate for latheresult=n wadrs(strf feed) ”驗(yàn)

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論