MasterCAM的刀具清单功能.docx
- 文档编号:9516237
- 上传时间:2023-02-05
- 格式:DOCX
- 页数:25
- 大小:58.92KB
MasterCAM的刀具清单功能.docx
《MasterCAM的刀具清单功能.docx》由会员分享,可在线阅读,更多相关《MasterCAM的刀具清单功能.docx(25页珍藏版)》请在冰豆网上搜索。
MasterCAM的刀具清单功能
MasterCAM9.1后处理自动生成刀具清单,使用方法:
将下面的内容复制到记事本内,并将其更名为Mpfan.pst,pst为后缀,再将该文件
拷贝至MasterCAM9.1的安装目录C:
\Mcam9\Mill\Posts,覆盖原文件,然后启动软件,
可以在NC程序幵头生成刀具清单。
经典版本,绝对好用!
#PostName:
MPFAN
#Product:
MILL
#MachineName:
FANUC
#ControlName:
6M
#Description:
GENERICFANUC6MSTYLEPOST
#AssociatedPost:
#Mill/Turn:
NO
#4-axis/Axissubs.:
NO
#5-axis:
NO
#Executable:
MP4.03
#
#
**********************************************************************
**
#
*
#*
POST
PROCESSOINRTENDEDFORVERSION6BETATESTING
*
#
*
*
#*
D
ONOTDISTRIBUTE!
!
!
*
#
#
**********************************************************************
**
#
#
#|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:
move.
#Itisrecommendedtostartandendcuttercompensationonalinear
#Rotaryaxisassumesa"Z"plungeatfeedintopart,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=deltafs10.3#Decimal,absolute,4place
fs20.4d#Decimal,delta
fs310#Integer,notleading
fs420l#Integer,twoleading
fs530l#Integer,threeleading
fs640l#Integer,fourleading
fs70.1#Decimal,absolute,1place
fs80.2#Decimal,absolute,2place
fs90.3#Decimal,absolute,3placefs1004t#Nodecimal,absolute,fourtrailingfs110.4t#Decimal,absolute,fourtrailing
#
#FORMATASSIGNMENTS
#
#Axisoutputformats-Linear
fmtX1x#Xaxisposition
fmtY1y#Yaxisposition
fmtZ1z#Zaxisposition
fmtX1xr#XrapidpositionfromtoolchangefmtY1yr#YrapidpositionfromtoolchangefmtZ1zr#ZrapidpositionfromtoolchangefmtX1xh#Xhomeposition
fmtY1yh#Yhomeposition
fmtZ1zh#Zhomeposition
#
#Axisoutputformats-Circular
#fmtI2i#ArccenterdescriptioninX
fmtJ2j#ArccenterdescriptioninY
fmtK2k#ArccenterdescriptioninZ
fmtR1arcrad#ArcRadius
fmtR-1arcradm#ArcRadiusover180degreesweep
#Axisoutputformats-Rotarysubstitution
#fmtA9xs#LineartorotarycalculationofXfmtB9ys#LineartorotarycalculationofY#
#Program&Sequencenumberformat
#fmtO6progno#ProgramnumberfmtN3n#Sequencenos.
#
#Toolformat
fmtT3t#ToolNo
fmtT3first_tool#FirstToolUsed(bldnxtool:
yes)fmtT3next_tool#NextToolUsed(bldnxtool:
yes)fmtD3tloffno#DiameterOffsetNofmtH3tlngno#LengthOffsetNo
fmt"T"1tnote#Noteformat
fmt"D-"1toffnote#Noteformat
fmt"H-"1tlngnote#Noteformat
fmt"Dia-"2tldia#Noteformat
#
#SpindleSpeeds&Feedrateoutputformats
#fmtS6speed#SpindleSpeed
fmtF8fr#Feedrate
fmtF7frdeg#Feedrateforrotary
fmtM3gear#Gearrange
#Drillvariableformats
#fmtG3drillref#Initial/ReferenceToggle(G98/G99)
fmtP10dwell#Dwell
fmtZ1initht#InitialHeight
fmtR1refht#ReferenceHeight
fmtZ1depth#Depth
fmtQ2peck1#Firstpeckincrement(positive)
fmt1peck2#Secondorlastpeck(positive)
fmt1peckclr#Safetydistancefmt1retr#Retractheight
fmtF8frplunge#Plungefeedrateindrillcycles
#Miscellaneousoutputformats
fmtM5ssrange#SpindleSpeedRange
fmtC4coolant#Coolant
#
#INITIALIZE-initializesystemvariablesanddefineuservariables
#
qtoolpln:
no
#MP386-Enabletoolplaneoption
qtoolopt:
no
#MP386-Enabletooloptimization
arctype:
2#Arccenter1=abs,2=St-Ctr,3=Ctr-St,4=unsignedinc.
do_full_arc:
0
#Allowfullcircleoutput?
0=no,1=yes
helix_arc:
0
#Supporthelixarcoutput,0=no,1=allplanes,2=XY
planeonly
bldnxtool:
yes#Buildnexttooltable
ldrcode:
65
#Leadercharacterdec.equiv.(fleaderoutputscode)
ncldr:
20#No.ofleadercharacters(fleaderoutputscode)
nobrk:
no
#Omitbreakupofx/y&zrapidmoves
omitcrlf:
no#OmitCR/LFomitrefht:
no#Don'tusereferenceheightonfirstnon-cannedZmoveomitseq:
yes#Omitsequenceno.
omitz:
no
progname:
1
#OmitfirstZmovementfornon-canned-cycles
#Useuppercaseforprogramnamescalex:
1.0#Scalingof.NCIatinput-x,y,z,i,j,k
scaley:
1.0#Scalingof.NCIatinput-x,y,z,i,j,k
scalez:
1.0#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/min
frdegcalc:
0#Calculationfordeg/mincircum:
0#Calculationfordeg/minrotstrt:
1#Flagforfirstrotarypositionnewglobal:
1#ErrorCheck(Leavethisvariablesetto1)#
#FORMULAS-globalformulas
#
ssrange
=mi3
#GearRangeSelect
speed
=abs(ss)
#Absolutespindlespeed
arcradm
=arcrad
#Negativearcrad
spdlsel
fsg3(ss)
#Spindleonselectorbasedonpos.orneg
ss
#
#CANNEDCYCLES-selectlongorshortcodeusecandrill:
yes#Usecannedcyclefordrillusecanpeck:
yes#UsecannedcycleforPeckusecanchip:
yes#UsecannedcycleforChipBreakusecantap:
yes#UsecannedcycleforTapusecanbore1:
yes#UsecannedcycleforBore1usecanbore2:
yes#UsecannedcycleforBore2usecanmisc1:
yes#UsecannedcycleforMisc1usecanmisc2:
yes#UsecannedcycleforMisc2##Lookuptabledefinitions-formathfunctionsFLOOKandFRANGE
#flktbl13#Lookuptabledefinitions-tableno.-no.entries
401000#Lowgearrange
412500#Medgearrange
425000#Higearrange
#Strings-Stringlabelsmuststartwith's'-theyarenotpre-assigned
#Selectoperationnote
sop00
NULL
#Stringdefinition
sop01
END-MIll
#""
sop02
END-MIll
#""
sop03
DRIll
#""
sop04
END-MIll
#""
sop05
S-MILL
#""
sop06
2D-SWEPT.
.#""
sop07
3D-SWEPT.
.#""
sop08
REVOLVED
..#""
sop09
LOFT
#""
sop10
COONS
#""
sop11
TRIM
#""
sop12
FILLET
#""
sop13
ROUGH
#""
sop14
OP14
#""
sop15
OP15
#""
fstrselsop00opcodesopnote
#
#SelectmotionGcode
sg00
G0
#Linearmovementatrapidfeedrate
sg01
G1
#Linearmovementatfeedrate
sg02
G2
#CircularinterpolationCW
sg03
G3
#CircularinterpolationCCW
sgcode
#Targetstring
fstrselsg00gcodesgcode
#
#SelectincrementalorabsoluteGcodesg90G90#AbsoluteGcodesg91G91#IncrementalGcodesgabsinc#Targetstringfstrselsg90absincsgabsinc
#Selectspindlestart
sm04M4#Spindlereversesm05M5#Spindleoffsm03M3#Spindleforwardspdlon#Targetstringfstrselsm04spdlselspdlon
#
#Cuttercompensationcodescc0""#Cuttercompensationstatenotchangedsg40G40#Cancelcuttercompensationsg41G41#Cuttercompensationleftsg42G42#Cuttercompensationrightsg140G40#Lastlinearmovecancelcuttercomp(seenote)
#Note:
tocancelcompafterlastmove,removeG40string
"pcancelcc"
#withsg140andremove"#"atthepostlinecallsccomp#Targetstring
fstrselscc0ccompsccomp
#SelectworkplaneGcodesg17G17#XYplanecodesg19G19#XZplanecodesg18G18#YZplanecodesgplane#Targetstringfstrselsg17planesgplane
#
#Workcoordinatesystem
sg50G92#WorkcoordinatesystemGcode
sg51
G92
#""
IIIIII
sg52
G92
#""
IIIIII
sg53
G92
#""
IIIIII
sg54
G54
#""
IIIIII
sg55
G55
#""
IIIIII
sg56
G56
#""
IIIIII
sg57
G57
#""
IIIIII
sg58
G58
#""
IIIIII
sg59
G59
#""
IIIIII
sgwcs
#Targetstring
fstrselsg50mi1sgwcs
#Canneddrillcyclestringselect
sg81G81#drill-nodwell
sg81dG82#drill-withdwell
sg83G83#peckdrill-nodwell
sg83dG83#peckdrill-withdwell
sg73G73#chipbreak-nodwell
sg73dG73#chipbreak-withdwell
sg84G84#tap-nodwell
sg84dG74#tap-withdwell(selectslefthand)
sg85G85#bore#1-nodwell
sg85dG89#bore#1-withdwell
sg86G86#bore#2-nodwell
sg86dG86#bore#2-withdwell
sgm1G81#misc#1-nodwell
sgm1dG82#misc#1-withdwell
sgm2G81#misc#2-nodwell
sgm2dG82#misc#2-withdwellsgdrill#Targetstringdrlgsel=drillcyc*2+fsg2(dwell)#16possiblecombinations:
#drillcyc=0
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MasterCAM 刀具 清单 功能