MasterCAM91的刀具清单功能.docx

上传人:b****5 文档编号:7119600 上传时间:2023-01-20 格式:DOCX 页数:24 大小:23.01KB
下载 相关 举报
MasterCAM91的刀具清单功能.docx_第1页
第1页 / 共24页
MasterCAM91的刀具清单功能.docx_第2页
第2页 / 共24页
MasterCAM91的刀具清单功能.docx_第3页
第3页 / 共24页
MasterCAM91的刀具清单功能.docx_第4页
第4页 / 共24页
MasterCAM91的刀具清单功能.docx_第5页
第5页 / 共24页
点击查看更多>>
下载资源
资源描述

MasterCAM91的刀具清单功能.docx

《MasterCAM91的刀具清单功能.docx》由会员分享,可在线阅读,更多相关《MasterCAM91的刀具清单功能.docx(24页珍藏版)》请在冰豆网上搜索。

MasterCAM91的刀具清单功能.docx

MasterCAM91的刀具清单功能的刀具清单功能后处理自动生成刀具清单,使用方法:

将下面的内容复制到记事本内,并将其更名为,pst为后缀,再将该文件拷贝至的安装目录C:

Mcam9MillPosts,覆盖原文件,然后启动软件,可以在NC程序开头生成刀具清单。

经典版本,绝对好用!

#PostName:

MPFAN#Product:

MILL#MachineName:

FANUC#ControlName:

6M#Description:

GENERICFANUC6MSTYLEPOST#AssociatedPost:

#Mill/Turn:

NO#4-axis/Axissubs.:

NO#5-axis:

NO#Executable:

MP#*#*-*#*POSTPROCESSORINTENDEDFORVERSION6BETATESTING*#*#*DONOTDISTRIBUTE!

*#*-*#*#-#|REVISIONLOG|#-#ProgrammersNote:

#CNC8/15/2005-grt-UpdatedforMillVersion6#-#|FEATURES:

|#-#UsersNote:

#FollowingMisc_Reals&Misc_Integersareused:

#mi1-Workcoordinatesystem#0=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsatfilehead.#1thru3=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsateachtool.#4thru9=TheWCSofG54thruG59respectivelyateachtool.#Options/Usage:

#Itisrecommendedtostartandendcuttercompensationonalinearmove.#RotaryaxisassumesaZplungeatfeedintopart,positionofthe#substitutedaxisatabsolutezeropositionandtheretractionfrompath#bythepostcalltotheG28machineZhomeposition.#-#DEBUG/PROGRAMSWITCHES,debuggingandprogramswitches#-bug1:

1#1=Outputposttoscreen,2=outputleadertoscreenbug2:

0#Appendpostlinelabels,non-zeroiscolumnposition?

bug3:

0#Appendwhatlineno.toeachNCline?

bug4:

0#AppendNCIlineno.toeachNCline?

whatno:

yes#Donotperformwhatlinebranches?

strtool_v7:

2#UseVersion7toolname,1=pathcomponents,2=stringget_1004:

1#Findgcode1004withgetnextop?

rpd_typ_v7:

1#UseVersion7stylecontourflags?

arcoutput:

2#0=IJK,1=Rnosign,2=Rsignedneg.over180breakarcs:

0#Breakarcs,0=no,1=quadrants,2=180deg.maxarcsstagetool:

0#0=Donotpre-stagetools,1=Stagetoolsuse_gear:

no#Settoyestooutputgearrangecodes#-#FORMATSTATEMENTS-n=nonmodal,l=leading,t=trailing,i=inc,d=delta#-fs1#Decimal,absolute,4placefs2#Decimal,deltafs310#Integer,notleadingfs420l#Integer,twoleadingfs530l#Integer,threeleadingfs640l#Integer,fourleadingfs7#Decimal,absolute,1placefs8#Decimal,absolute,2placefs9#Decimal,absolute,3placefs1004t#Nodecimal,absolute,fourtrailingfs11#Decimal,absolute,fourtrailing#-#FORMATASSIGNMENTS#-#Axisoutputformats-Linear#-fmtX1x#XaxispositionfmtY1y#YaxispositionfmtZ1z#ZaxispositionfmtX1xr#XrapidpositionfromtoolchangefmtY1yr#YrapidpositionfromtoolchangefmtZ1zr#ZrapidpositionfromtoolchangefmtX1xh#XhomepositionfmtY1yh#YhomepositionfmtZ1zh#Zhomeposition#-#Axisoutputformats-Circular#-fmtI2i#ArccenterdescriptioninXfmtJ2j#ArccenterdescriptioninYfmtK2k#ArccenterdescriptioninZfmtR1arcrad#ArcRadiusfmtR-1arcradm#ArcRadiusover180degreesweep#-#Axisoutputformats-Rotarysubstitution#-fmtA9xs#LineartorotarycalculationofXfmtB9ys#LineartorotarycalculationofY#-#Program&Sequencenumberformat#-fmtO6progno#ProgramnumberfmtN3n#Sequencenos.#-#Toolformat#-fmtT3t#ToolNofmtT3first_tool#FirstToolUsed(bldnxtool:

yes)fmtT3next_tool#NextToolUsed(bldnxtool:

yes)fmtD3tloffno#DiameterOffsetNofmtH3tlngno#LengthOffsetNofmtT1tnote#NoteformatfmtD-1toffnote#NoteformatfmtH-1tlngnote#NoteformatfmtDia-2tldia#Noteformat#-#SpindleSpeeds&Feedrateoutputformats#-fmtS6speed#SpindleSpeedfmtF8fr#FeedratefmtF7frdeg#FeedrateforrotaryfmtM3gear#Gearrange#-#Drillvariableformats#-fmtG3drillref#Initial/ReferenceToggle(G98/G99)fmtP10dwell#DwellfmtZ1initht#InitialHeightfmtR1refht#ReferenceHeightfmtZ1depth#DepthfmtQ2peck1#Firstpeckincrement(positive)fmt1peck2#Secondorlastpeck(positive)fmt1peckclr#Safetydistancefmt1retr#RetractheightfmtF8frplunge#Plungefeedrateindrillcycles#-#Miscellaneousoutputformats#-fmtM5ssrange#SpindleSpeedRangefmtC4coolant#Coolant#-#INITIALIZE-initializesystemvariablesanddefineuservariables#-qtoolpln:

no#MP386-Enabletoolplaneoptionqtoolopt:

no#MP386-Enabletooloptimizationarctype:

2#Arccenter1=abs,2=St-Ctr,3=Ctr-St,4=unsignedinc.do_full_arc:

0#Allowfullcircleoutput?

0=no,1=yeshelix_arc:

0#Supporthelixarcoutput,0=no,1=allplanes,2=XYplaneonlybldnxtool:

yes#Buildnexttooltableldrcode:

65#Leadercharacterdec.equiv.(fleaderoutputscode)ncldr:

20#No.ofleadercharacters(fleaderoutputscode)nobrk:

no#Omitbreakupofx/y&zrapidmovesomitcrlf:

no#OmitCR/LFomitrefht:

no#Dontusereferenceheightonfirstnon-cannedZmoveomitseq:

yes#Omitsequenceno.omitz:

no#OmitfirstZmovementfornon-canned-cyclesprogname:

1#Useuppercaseforprogramnamescalex:

#Scalingof.NCIatinput-x,y,z,i,j,kscaley:

#Scalingof.NCIatinput-x,y,z,i,j,kscalez:

#Scalingof.NCIatinput-x,y,z,i,j,kseqmax:

9999#Max.sequenceno.skipmotest:

no#Skipmotiontestinlinearspaces:

1#No.ofspacestoaddbetweenfieldstooltable:

1#Readfortooltableandpwrttabsswp:

0#Absolutesweepdrlgsel:

-1#DrillSelectInitializemaxfrdeg:

9999#Limitforfeedindeg/minabsinc:

0#Absolute/Incrementaltoggleformodalitytcnt:

0#Countthenumberoftoolchangesadelta:

0#Calculationfordeg/minldelta:

0#Calculationfordeg/minzdelta:

0#Calculationfordeg/minalzdelta:

0#Calculationfordeg/minfrdelta:

0#Calculationfordeg/minfrdegcalc:

0#Calculationfordeg/mincircum:

0#Calculationfordeg/minrotstrt:

1#Flagforfirstrotarypositionnewglobal:

1#ErrorCheck(Leavethisvariablesetto1)#-#FORMULAS-globalformulas#-ssrange=mi3#GearRangeSelectspeed=abs(ss)#Absolutespindlespeedarcradm=arcrad#Negativearcradspdlsel=fsg3(ss)#Spindleonselectorbasedonpos.orneg.ss#-#CANNEDCYCLES-selectlongorshortcode#-usecandrill:

yes#Usecannedcyclefordrillusecanpeck:

yes#UsecannedcycleforPeckusecanchip:

yes#UsecannedcycleforChipBreakusecantap:

yes#UsecannedcycleforTapusecanbore1:

yes#UsecannedcycleforBore1usecanbore2:

yes#UsecannedcycleforBore2usecanmisc1:

yes#UsecannedcycleforMisc1usecanmisc2:

yes#UsecannedcycleforMisc2#-#Lookuptabledefinitions-formathfunctionsFLOOKandFRANGE#-flktbl13#Lookuptabledefinitions-tableno.-no.entries401000#Lowgearrange412500#Medgearrange425000#Higearrange#-#Strings-Stringlabelsmuststartwiths-theyarenotpre-assigned#-#Selectoperationnotesop00NULL#Stringdefinitionsop01END-MIll#sop02END-MIll#sop03DRIll#sop04END-MIll#sop05S-MILL#sop062D-SWEPT.#sop073D-SWEPT.#sop08REVOLVED.#sop09LOFT.#sop10COONS.#sop11TRIM.#sop12FILLET.#sop13ROUGH.#sop14OP14.#sop15OP15.#sopnote#Targetstringfstrselsop00opcodesopnote#-#SelectmotionGcodesg00G0#Linearmovementatrapidfeedratesg01G1#Linearmovementatfeedratesg02G2#CircularinterpolationCWsg03G3#CircularinterpolationCCWsgcode#Targetstringfstrselsg00gcodesgcode#-#SelectincrementalorabsoluteGcodesg90G90#AbsoluteGcodesg91G91#IncrementalGcodesgabsinc#Targetstringfstrselsg90absincsgabsinc#-#Selectspindlestartsm04M4#Spindlereversesm05M5#Spindleoffsm03M3#Spindleforwardspdlon#Targetstringfstrselsm04spdlselspdlon#-#Cuttercompensationcodescc0#Cuttercompensationstatenotchangedsg40G40#Cancelcuttercompensationsg41G41#Cuttercompensationleftsg42G42#Cuttercompensationrightsg140G40#Lastlinearmovecancelcuttercomp(seenote)#Note:

tocancelcompafterlastmove,removeG40string#withsg140andremove#atthepostlinecallpcancelccsccomp#Targetstringfstrselscc0ccompsccomp#-#SelectworkplaneGcodesg17G17#XYplanecodesg19G19#XZplanecodesg18G18#YZplanecodesgplane#Targetstringfstrselsg17planesgplane#-#Workcoordinatesystemsg50G92#WorkcoordinatesystemGcodesg51G92#sg52G92#sg53G92#sg54G54#sg55G55#sg56G56#sg57G57#sg58G58#sg59G59#sgwcs#Targetstringfstrselsg50mi1sgwcs#-#Canneddrillcyclestringselectsg81G81#drill-nodwellsg81dG82#drill-withdwellsg83G83#peckdrill-nodwellsg83dG83#peckdrill-withdwellsg73G73#chipbreak-nodwellsg73dG73#chipbreak-withdwellsg84G84#tap-nodwellsg84dG74#tap-withdwell(selectslefthand)sg85G85#bore#1-nodwellsg85dG89#bore#1-withdwellsg86G86#bore#2-nodwellsg86dG86#bore#2-withdwellsgm1G81#misc#1-nodwellsgm1dG82#misc#1-withdwellsgm2G81#misc#2-nodwellsgm2dG82#misc#2-withdwellsgdrill#Targetstringdrlgsel=drillcyc*2+fsg2(dwell)#16possiblecombinations:

#drillcyc=0.7#dwell=0ornon-zero(2states)fstrselsg81drlgselsgdrill#-#Generatesgearstringsgear0M*#autogearrangesgear1M41#Lowgearrangesgear2M42#Medgearrangesgear3M43#Highgearrange-selectedinparametersbymi3sgearfstrselsgear0gearsgear#-#POSTLINES,USER-DEFINED-Postlinelabelsstartwithp.#Endalinewith,tocontinueonthenextline.#Endalinewith,etogeneratecarriagereturnandlinefeed.#-#Programgeneraloutputcontrol,userdefined#-pinit#InitializeVarsprv_fr=prv_frdeg=prv_frplunge=linarc=0rotstrt=1pabs#AbsoluteGcodeoutputabsinc=0sgabsincpinc#IncrementalGcodeoutputabsinc=1sgabsincpcooloff#CoolantoffMcodeoutputifprv_coolant0,M09pcoolon#CoolantoffMcodeoutputifcoolant=1,M08#Floodifcoolant=2,M07#Mistpcoolnl#CoolantoffMcodeoutputifcoolant=0,M09#Offifcoolant=1,M08#Floodifcoolant=2,M07#Mistpfr#FeedrateW/ONegativeFeedratesiffr0,frpcan#Cannedtext-cantext=0,1,2,3ifcantext=1,M01#optionalstopifcantext=2,#useroptionifcantext=3,#useroption#-#Workcoordinateoutput,userdefined#-pg92_sof#G92coordinatesettingatstart/,n,pinc,G28,Z0.,e/,n,G28,X0.,Y0.,e/,n,*sgwcs,*xh,*yh,*zh,epg92_out#G92coordinatesettingattoolchange/,n,G28,X0.,Y0.,eifgcode1003,/,n,*sgwcs,*xh,*yh,*zh,epwcs#G54+coordinatesettingifmi1=4,*sgwcs#-#Gearselectioncontrol,userdefined#-pgear#Findspindlerangegear=frange(1,speed)*gearprange#Findspindlerangeifuse_gear=1,pgear#-#Cuttercomp.outputcontrol,userdefined#-pccdia2#CutterCompensation2ifccomp4,tloffnopccdia#CutterCompensationifccomp0,pccdia2#-#Axissubstitutionmotio

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 小学教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1