您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 理论文章 > MASTER后处理NO TOOL
#PostName:MPFAN#Product:MILL#MachineName:GENERICFANUC#ControlName:GENERICFANUC#Description:GENERICFANUCMILLPOST#AssociatedPost:NONE#Mill/Turn:NO#4-axis/Axissubs.:NO#5-axis:NO#Executable:MP7.20##WARNING:THISPOSTISGENERICANDISINTENDEDFORMODIFICATIONTO#THEMACHINETOOLREQUIREMENTSANDPERSONALPREFERENCE.##--------------------------------------------------------------------------#Revisionlog:#--------------------------------------------------------------------------#ProgrammersNote:#CNC02/12/98-Initialpostsetup,jph#CNC03/25/98-Addinversefeed,correctDPMfeed,jph#CNC05/27/98-Modifedpwcscallstostoprepeatedoutput,jph#CNC09/03/98-fixedmodalityproblemwithindex=0inpfcout,grt#CNC10/22/98-Addedacheckforopcode=3tothelogictestinpfcalc,jce#CNC10/26/98-Added'force_wcs'switchforNon-ModalWCSoutput,grt#CNC12/14/98-Added'bldnxtool'andcommentto'stagetool',grt#CNC12/16/98-Changed'sgplane'to'*sgplane'in'psof',grt#CNC12/21/98-Modifiedstagetooloutput,andaddedmoreindexoptions.#Youcansetindexto0-3,andctablewillnowtestfor#fractionalvaluesandassignanappropriateformat.Ialso#addedalock_tableswitch,andmadedwellmodalwithinall#drillcycles,grt#CNC02/08/98-Addedftrndtologicinpindex.jce#CNC02/17/99-RemovedIndex#4optionandhi_lim_c,grt#CNC03/02/99-Addedlogictopdrill0tosupportwcschange,and#turnedoff'nobrk'innulltoolchangesforwcs,grt##--------------------------------------------------------------------------#Features:#--------------------------------------------------------------------------#ThispostsupportsGenericFanuccodeoutputfor3and4axismilling.#ItisdesignedtosupportfeaturesofMastercamMillV7.##FollowingMisc.Integersareused:##mi1-Workcoordinatesystem#0=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsatfilehead.#1=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsateachtool.#2=WCSofG54,G55....basedonMastercamsettings.##mi2-Absolute,orIncrementalpositioning#0=absolute#1=incremental##mi3-SelectG28orG30referencepointreturn.#0=G28,1=G30##Cannedtext:#EnteringcantextonacontourpointfromwithinMastercamallowsthe#followingfunctionstoenable/disable.#Cantextvalue:#1=Ostop=outputtheM01optionalstopcode#2=Stop=outputtheM00stopcode#3=Bldon=turnonblockdeletecodesinNClines#4=bLdoff=turnoffblockdeletecodesinNClines##Millingtoolpaths(4axis)#Layout:#ThetermReferenceViewreferstothecoordinatesystemassociated#withtheTopview(Alt-F9,theuppergnomonofthethreedisplayed).#Createthepartdrawingwiththetheaxisofrotationabouttheaxis#oftheReferenceViewaccordingtothesettingyouenteredfor#'rot_on_x'.TheTopView(ZplusoftheReferenceView)indicates#thepositiononthepartofrotaryaxiszero.Thetopviewrotated#abouttheselectedaxisasasingleaxisrotationaretheonly#legalviewsfor4axismilling.Rotationdirectionaroundthepart#ispositiveintheCCWdirectionwhenviewedfromtheplusdirection#oftherotatingaxis.Setthevariable'rot_ccw_pos'toindicate#thesigneddirection.Alwayssettheworkoriginatthecenterof#rotation.##ToolplanePositioning:#1)CreatetheCplaneandTplaneastherotationoftheTopViewabout#theselectedaxisoftheReferenceView.Thetoolplaneisused#tocalculatethepositionoftherotaryaxis.##Axissubstitution:#1)UsetheRotaryaxissubstitutionbydrawingthegeometryflattened#fromthecylinder.Positionsarewrappedfromandtothecylinder#byusingtheRollfunction.RapidpositionsintheNCparameters#arerelativetothechainedgeometry.Therotaryaxisbuttonmust#beactiveforaxissubstitutioninformationtobeoutputtothe#NCIfile.Theradiusoftherotarydiameterisaddedtotheallthe#Zpositionatoutput.#2)Drillpositionscanalsobesubstitutedinthisfunction.##Rotary4axis:#1)4axistoolpathscanbegeneratedfromtheMultisurfRotary4axis#function.UsetheTopViewforthetoolplaneandtheCplanetodefine#thestepoverslicingplane(usesdepth).##AdditionalNotes:#1)G54callsaregeneratedwheretheworkoffsetentryof0=G54,#1=G55,etc.#2)MetricisappliedfromthefirstNCImet_toolvariable.#3)Incrementalmodecalculatesmotionfromhomepositionattoolchanges.#Thehomepositionisusedtodefinethelastpositionofthetool#foralltoolchanges.##--------------------------------------------------------------------------#Debuggingandprogramswitches#--------------------------------------------------------------------------fastmode:1#Postingspeedoptimizitionbug1:2#0=Nodisplay,1=Genericlistbox,2=Editorbug2:0#Appendpostlinelabels,non-zeroiscolumnposition?bug3:0#Appendwhatlineno.toeachNCline?bug4:0#AppendNCIlineno.toeachNCline?whatno:yes#Donotperformwhatlinebranches?(leaveasyes)get_1004:1#Findgcode1004withgetnextop?rpd_typ_v7:1#UseVersion7stylecontourflags?strtool_v7:2#UseVersion7toolname?arcoutput:2#0=IJK,1=Rnosign,2=Rsignedneg.over180skp_lead_flgs:1#DoNOTusev9stylecontourflagsarctype:2#Arccenter1=abs,2=St-Ctr,3=Ctr-St,4=unsignedinc.do_full_arc:0#Allowfullcircleoutput?0=no,1=yeshelix_arc:2#Supporthelixarcoutput,0=no,1=allplanes,2=XYplaneonlystagetool:0#0=Donotpre-stagetools,1=Stagetoolsuse_gear:0#Outputgearselectioncode,0=no,1=yesmax_speed:25000#Maximumspindlespeedmin_speed:10#Minimumspindlespeedindex:0#Useindexpositioning0=No,1=DirectionM-Codes,2=Signed#3=Controlertakesshortestpathctable:5#Degreesforeachindexstepwithindexin
本文标题:MASTER后处理NO TOOL
链接地址:https://www.777doc.com/doc-3617706 .html