mastercam91四轴半四轴定面加工后处理.docx
- 文档编号:12624170
- 上传时间:2023-04-21
- 格式:DOCX
- 页数:60
- 大小:30.85KB
mastercam91四轴半四轴定面加工后处理.docx
《mastercam91四轴半四轴定面加工后处理.docx》由会员分享,可在线阅读,更多相关《mastercam91四轴半四轴定面加工后处理.docx(60页珍藏版)》请在冰豆网上搜索。
mastercam91四轴半四轴定面加工后处理
#PostName:
MPFAN
#Product:
MILL
#MachineName:
GENERICFANUC
#ControlName:
GENERICFANUC
#Description:
GENERICFANUCMILLPOST
#4-axis/Axissubs.:
YES
#5-axis:
NO
#Subprograms:
YES
#Executable:
MP
#
#WARNING:
THISPOSTISGENERICANDISINTENDEDFORMODIFICATIONTO
#THEMACHINETOOLREQUIREMENTSANDPERSONALPREFERENCE.
#
#--------------------------------------------------------------------------
#Revisionlog:
#--------------------------------------------------------------------------
#ProgrammersNote:
#CNC01/12/01-Initialpostupdatefor
#CNC07/02/01-Addcantexttocanceldrillandtoolretract
#CNC01/09/02-Initialpostupdatefor
#CNC01/31/02-Setusecandrill,usecanpeck,force_wcstoYES
#CNC02/22/02-ForcesoutputofI,J,Karccenters(arcoutput:
0)
#CNC04/12/02-Useoriginalpositionforinversefeedand4axpaths
#CNC05/01/02-Set"helix_arc:
2",supporthelixarcoutputinXYplane
#CNC05/07/02-Donotupdatesav_revwithaxissubstitution
#CNC11/06/02-Altered'F'eedrateoutputformatwhentapping(G74/G84)
#CNC01/06/03-movedfeedassignmentbelowpcom_movebtoaddressbugw/feedin4axis
#CNC01/17/03-Addedflagstoallowreversalofaxisorientations
#CNC02/04/03-Initialpostupdatefor
#
#--------------------------------------------------------------------------
#Features:
#--------------------------------------------------------------------------
#ThispostsupportsGenericFanuccodeoutputfor3and4axismilling.
#ItisdesignedtosupportthefeaturesofMastercamMillV9.
#
#FollowingMisc.Integersareused:
#
#mi1-Workcoordinatesystem
#0=ReferencereturnisgeneratedandG92withthe
#X,YandZhomepositionsatfilehead.
#1=ReferencereturnisgeneratedandG92withthe
#X,YandZhomepositionsateachtool.
#2=WCSofG54,G55....basedonMastercamsettings.
#
#mi2-AbsoluteorIncrementalpositioningattoplevel
#0=absolute
#1=incremental
#
#mi3-SelectG28orG30referencepointreturn.
#0=G28,1=G30
#
#Cannedtext:
#EnteringcantextonacontourpointfromwithinMastercamallowsthe
#followingfunctionstoenable/disable.
#Cantextvalue:
#1=Stop=outputthe"M00"stopcode
#2=Ostop=outputthe"M01"optionalstopcode
#3=Bldon=turnonblockdeletecodesinNClines
#4=bLdoff=turnoffblockdeletecodesinNClines
#
#Millingtoolpaths(4axis)
#Layout:
#Theterm"ReferenceView"referstothecoordinatesystemassociated
#withtheTopview(Alt-F9,theuppergnomonofthethreedisplayed).
#Createthepartdrawingwiththeaxisofrotationabouttheaxis
#ofthe"ReferenceView"accordingtothesettingyouenteredfor
#'vmc'(verticalorhorizontal)and'rot_on_x'(machinerelative
#axisofrotation).
#vmc=1(verticalmachine)usesthetoptoolplaneasthebasemachine
#view.
#vmc=0(horizontalmachine)usesthefronttoolplaneasthebasemachine
#view.
#Relativetothemachinematrix-
#RotationzeropositionisontheZaxisforrotationonXaxis.
#RotationzeropositionisontheZaxisforrotationonYaxis.
#RotationzeropositionisontheXaxisforrotationonZaxis.
#Themachineviewrotatedabouttheselectedaxisasa"singleaxis
#rotation"aretheonlylegalviewsfor4axismilling.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.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$
#
#--------------------------------------------------------------------------
#DebuggingandFactorySetProgramSwitches
#--------------------------------------------------------------------------
m_one:
-1#Defineconstant
zero:
0#Defineconstant
one:
1#Defineconstant
two:
2#Defineconstant
three:
3#Defineconstant
four:
4#Defineconstant
five:
5#Defineconstant
c9k:
9999#Defineconstant
fastmode:
yes#EnableQuickPostProcessing,(settonofordebug)
bug1:
2#0=Nodisplay,1=Genericlistbox,2=Editor
bug2:
40#Appendpostlinelabels,non-zeroiscolumnposition
bug3:
0#AppendwhatlinenumbertoeachNCline
bug4:
1#AppendNCIlinenumbertoeachNCline
whatno:
yes#Donotperformwhatlinebranches(leaveasyes)
skp_lead_flgs:
1#DoNOTusev9stylecontourflags
get_1004:
1#Findgcode1004withgetnextop
rpd_typ_v7:
0#UseVersion7stylecontourflags/processing
strtool_v7:
2#UseVersion7+toolname
tlchng_aft:
2#Delaycalltotoolchangeuntilmoveline
cant_tlchng:
1#Ignorecantextentryonmovewithtlchng_aft
newglobal:
1#Errorcheckingforglobalvariables
getnextop:
0#Buildthenextvariabletable
#--------------------------------------------------------------------------
#GeneralOutputSettings
#--------------------------------------------------------------------------
sub_level:
1#Enableautomaticsubprogramsupport
breakarcs:
2#Breakarcs,0=no,1=quadrants,2=180deg.maxarcs
arcoutput:
1#0=IJK,1=Rnosign,2=Rsignedneg.over180
arctype:
2#Arccenter1=abs,2=St-Ctr,3=Ctr-St,4=unsignedinc.
do_full_arc:
0#Allowfullcircleoutput0=no,1=yes
helix_arc:
2#Supporthelixarcoutput,0=no,1=allplanes,2=XYplaneonly
arccheck:
3#Checkforsmallarcs,converttolinear
atol:
.01#Angularitytoleranceforarccheck=2
ltol:
.002#Lengthtoleranceforarccheck=1
vtol:
.0001#Systemtolerance
maxfeedpm:
500#Limitforfeedininch/min
ltol_m:
.05#Lengthtoleranceforarccheck=1,metric
vtol_m:
.0025#Systemtolerance,metric
maxfeedpm_m:
10000#Limitforfeedinmm/min
force_wcs:
yes#ForceWCSoutputateverytoolchange
spaces:
0#Numberofspacestoaddbetweenfields
omitseq:
no#Omitsequencenumbers
seqmax:
9999#Max.sequencenumber
stagetool:
0#0=Donotpre-stagetools,1=Stagetools
use_gear:
0#Outputgearselectioncode,0=no,1=no
max_speed:
10000#Maximumspindlespeed
min_speed:
50#Minimumspindlespeed
nobrk:
no#Omitbreakupofx,y&zrapidmoves
progname:
1#Useuppercaseforprogramname(sprogname)
xflip:
no#ReverseXaxisorientation-eap1/17/03
yflip:
no#ReverseYaxisorientation-eap1/17/03
zflip:
no#ReverseZaxisorientation-eap1/17/03
#--------------------------------------------------------------------------
#RotaryAxisSettings
#--------------------------------------------------------------------------
vmc:
1#0=HorizontalMachine,1=VerticalMill
rot_on_x:
1#DefaultRotaryAxisOrientation,Seeques.164.
#0=Off,1=AboutX,2=AboutY,3=AboutZ
rot_ccw_pos:
1#Axissigneddir,0=CWpositive,1=CCWpositive
index:
0#Useindexpositioning,0=FullRotary,1=Indexonly
ctable:
5#Degreesforeachindexstepwithindexingspindle
use_frinv:
1#UseInverseTimeFeedratesin4Axis,(0=no,1=yes)
maxfrdeg:
2000#Limitforfeedindeg/min
maxfrinv:
#Limitforfeedinversetime
frc_cinit:
1#ForceCaxisresetattoolchange
ctol:
225#Toleranceindeg.beforerevflagchanges
ixtol:
.01#Toleranceindeg.forindexerror
frdegstp:
10#Steplimitforrotaryfeedindeg/min
#--------------------------------------------------------------------------
#EnableCannedDrillCycleSwitches
#--------------------------------------------------------------------------
usecandrill:
yes#Usecannedcyclefordrill
usecanpeck:
yes#UsecannedcycleforPeck
usecanchip:
yes#UsecannedcycleforChipBreak
usecantap:
yes#UsecannedcycleforTap
usecanbore1:
yes#UsecannedcycleforBore1
usecanbore2:
yes#UsecannedcycleforBore2
usecanmisc1:
yes#UsecannedcycleforMisc1
usecanmisc2:
yes#UsecannedcycleforMisc2
#--------------------------------------------------------------------------
#CommonUser-definedVariableInitializ
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- mastercam91 四轴半四轴定面 加工 处理