#PostName:MPMASTER#Product:MILL#MachineName:MACHINE#ControlName:CONTROL#Description:IHSMASTERGENERICMILLG-CODEPOST#4-axis/Axissubs.:YES#5-axis:NO#Subprograms:YES#Executable:MPv9.19#PostRevision:9.1.04114(MC_FULL.MC_MINOR.YYDDD)##WARNING:THISPOSTISGENERICANDISINTENDEDFORMODIFICATIONTO#THEMACHINETOOLREQUIREMENTSANDPERSONALPREFERENCE.##--------------------------------------------------------------------------#Revisionlog:#--------------------------------------------------------------------------#ProgrammersNote:#IHS01/30/02-MpmasterbasedonCNCSoftware'sV8/V9Mpfan,dat#IHS01/30/02-InitialpostupdateforV9,dat#IHS04/01/02-Commentsrepeatedintranslationalsubs,dat#IHS05/01/02-lock_codeslogictweak,dat#IHS05/07/02-arcchecksetto3,dat#IHS05/17/02-Removednullcommentfromsubs,dat#IHS05/24/02-Rotarysubprogramsmod,dat#IHS07/17/02-Incrementaldrillingcalculationmod,dat#IHS07/25/02-Switchaddedtocontrolrotaryindexmoveretracts,dat#IHS10/07/02-force_dptsswitchadded,dat#IHS10/28/02-Additionalrotarysublogicmod,dat#IHS11/06/02-Switchaddedfor4/3decimalplacetappingfeeds,dat#IHS03/10/03-SynchedwithupdatestoMpfanfromV9.1,dat#IHS04/30/03-arcchecksetto1,dat#IHS05/08/03-A2100-styleG18/G19helicalmovecorrections,dat#IHS06/27/03-InitialpostupdateforV9.1SP1,dat#IHS10/23/03-Roughedoutauto-launchofHTML.set,dat#IHS12/12/03-Componarcmovewarningadded,dat#IHS04/23/04-non-retractindexmod,dat#XXXMM/DD/04-WrittenforCompanyXfromMpmaster,xxx##--------------------------------------------------------------------------#Features:#--------------------------------------------------------------------------#ThispostsupportsGenericFanuccodeoutputfor3and4axismilling.#ItisdesignedtosupportthefeaturesofMastercamMillV9.##FollowingMisc.Integersareused:#mi2-AbsoluteorIncrementalpositioningattoplevel#0=absolute#1=incremental##mi9-LockonFirstWCS-Setinfirstoperation#0=No#1=Yes##mi10-M00beforeoperation#0=No#1=Yes##Workoffsets:#wcstype-Workcoordinatesystem#0=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsatfilehead.#1=ReferencereturnisgeneratedandG92withthe#X,YandZhomepositionsateachtool.#2=WCSofG54,G55....basedonMastercamsettings.#0thru5=TheWCSofG54thruG59respectively.#6andup=TheWCSofG54.1P1andup.#3=Off##Cannedtext:#EnteringcantextonacontourpointfromwithinMastercamallowsthe#followingfunctionstoenable/disable.#Cantextvalue:#1=Stop=outputtheM00stopcode#2=Ostop=outputtheM01optionalstopcode#3=Bldon=turnonblockdeletecodesinNClines#4=bLdoff=turnoffblockdeletecodesinNClines#5=Dwell=InputG04P1command##Millingtoolpaths(4axis)#Layout:#ThetermReferenceViewreferstothecoordinatesystemassociated#withtheTopview(Alt-F9,theuppergnomonofthethreedisplayed).#Createthepartdrawingwiththeaxisofrotationabouttheaxis#oftheReferenceViewaccordingtothesettingyouenteredfor#'vmc'(verticalorhorizontal)and'rot_on_x'(machinerelative#axisofrotation).#vmc=1(verticalmachine)usesthetoptoolplaneasthebasemachine#view.#vmc=0(horizontalmachine)usesthefronttoolplaneasthebasemachine#view.#Relativetothemachinematrix-#RotationzeropositionisontheZaxisforrotationonXaxis.#RotationzeropositionisontheZaxisforrotationonYaxis.#RotationzeropositionisontheXaxisforrotationonZaxis.#Themachineviewrotatedabouttheselectedaxisasasingleaxis#rotationaretheonlylegalviewsfor4axismilling.Rotation#directionaroundthepartispositiveintheCCWdirectionwhen#viewedfromtheplusdirectionoftherotatingaxis.Setthevariable#'rot_ccw_pos'toindicatethesigneddirection.Alwayssetthework#originatthecenterofrotation.##ToolplanePositioning:#CreatetheCplaneandTplaneastherotationofthemachineviewabout#theselectedaxisofrotation.Thetoolplaneisusedtocalculate#thepositionoftherotaryaxis.Thisisthedefaultsetting.##3AxisRotary(Polar)#PolarpositioningisofferedinMastercam3axistoolpathsthroughthe#rotaryaxisoptionsdialog.Theselectedtoolpathisconvertedtoangle#andradiusposition.Theaxisofrotationisforcedtozero.##Axissubstitution:#UsetheRotaryaxissubstitutionbydrawingthegeometryflattened#fromthecylinder.Therotaryaxisbuttonmustbeactiveforaxis#substitutioninformationtobeoutputtotheNCIfile.Theradiusof#therotarydiameterisaddedtoalltheZpositionsatoutput.##Simultaneous4Axis(11gcode):#Full4axistoolpathscanbegeneratedfromvarioustoolpathsunderthe#'multi-axis'selection(i.e.Rotary4axis).All5axispathsare#convertedto4axispathswhereonlytheangleabouttherotationaxis#isresolved.##Drill:#Alldrillmethodsaresupportedinthepost.SeeSimultaneous4Axis.##AdditionalNotes:#1)Disable4axisbysettingthenumberedquestion164.to'n'.#2)G54callsaregeneratedwheretheworkoffsetentryof0=G54,#1=G55,etc.#3)MetricisappliedfromtheNCImet_toolvariable.#4)Incrementalmodecalculatesmotionfromhomepositionattoolchanges.#Thehomepositionisusedtodefinethelastpositionofthetool#foralltoolchanges.#5)Thevariable'absinc'isnowpre-defined,setmi2(Misc.Integer)for#the'toplevel'absolute/incrementalprogramoutput.Subprogramsare#updatedthroughtheMastercamdialogsettingsforsub-programs.#6)Alwaysavoidmachiningtothecenterofrotationwithrotaryaxis!#7)TransformsubprogramsareintendedforusewithG54..workshifts.##END_HEADER$##-----------------------