MasterCAM91的刀具清单功能.docx
- 文档编号:17535629
- 上传时间:2023-07-26
- 格式:DOCX
- 页数:29
- 大小:22.97KB
MasterCAM91的刀具清单功能.docx
《MasterCAM91的刀具清单功能.docx》由会员分享,可在线阅读,更多相关《MasterCAM91的刀具清单功能.docx(29页珍藏版)》请在冰点文库上搜索。
MasterCAM91的刀具清单功能
后处理自动生成刀具清单,使用方法:
将下面的内容复制到记事本内,并将其更名为,pst为后缀,再将该文件
拷贝至的安装目录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:
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.
#Rotaryaxisassumesa"Z"plungeatfeedintopart,positionofthe
#substitutedaxisatabsolutezeropositionandtheretractionfrompath
#bythepostcalltotheG28machineZhomeposition.
#--------------------------------------------------------------------------
#DEBUG/PROGRAMSWITCHES,debuggingandprogramswitches
#--------------------------------------------------------------------------
bug1:
1#1=Outputposttoscreen,2=outputleadertoscreen
bug2:
0#Appendpostlinelabels,non-zeroiscolumnposition
bug3:
0#Appendwhatlineno.toeachNCline
bug4:
0#AppendNCIlineno.toeachNCline
whatno:
yes#Donotperformwhatlinebranches
strtool_v7:
2#UseVersion7toolname,1=pathcomponents,2=string
get_1004:
1#Findgcode1004withgetnextop
rpd_typ_v7:
1#UseVersion7stylecontourflags
arcoutput:
2#0=IJK,1=Rnosign,2=Rsignedneg.over180
breakarcs:
0#Breakarcs,0=no,1=quadrants,2=180deg.maxarcs
stagetool:
0#0=Donotpre-stagetools,1=Stagetools
use_gear:
no#Settoyestooutputgearrangecodes
#--------------------------------------------------------------------------
#FORMATSTATEMENTS-n=nonmodal,l=leading,t=trailing,i=inc,d=delta
#--------------------------------------------------------------------------
fs1#Decimal,absolute,4place
fs2#Decimal,delta
fs310#Integer,notleading
fs420l#Integer,twoleading
fs530l#Integer,threeleading
fs640l#Integer,fourleading
fs7#Decimal,absolute,1place
fs8#Decimal,absolute,2place
fs9#Decimal,absolute,3place
fs1004t#Nodecimal,absolute,fourtrailing
fs11#Decimal,absolute,fourtrailing
#--------------------------------------------------------------------------
#FORMATASSIGNMENTS
#--------------------------------------------------------------------------
#Axisoutputformats-Linear
#--------------------------------------------------------------------------
fmtX1x#Xaxisposition
fmtY1y#Yaxisposition
fmtZ1z#Zaxisposition
fmtX1xr#Xrapidpositionfromtoolchange
fmtY1yr#Yrapidpositionfromtoolchange
fmtZ1zr#Zrapidpositionfromtoolchange
fmtX1xh#Xhomeposition
fmtY1yh#Yhomeposition
fmtZ1zh#Zhomeposition
#--------------------------------------------------------------------------
#Axisoutputformats-Circular
#--------------------------------------------------------------------------
fmtI2i#ArccenterdescriptioninX
fmtJ2j#ArccenterdescriptioninY
fmtK2k#ArccenterdescriptioninZ
fmtR1arcrad#ArcRadius
fmtR-1arcradm#ArcRadiusover180degreesweep
#--------------------------------------------------------------------------
#Axisoutputformats-Rotarysubstitution
#--------------------------------------------------------------------------
fmtA9xs#LineartorotarycalculationofX
fmtB9ys#LineartorotarycalculationofY
#--------------------------------------------------------------------------
#Program&Sequencenumberformat
#--------------------------------------------------------------------------
fmtO6progno#Programnumber
fmtN3n#Sequencenos.
#--------------------------------------------------------------------------
#Toolformat
#--------------------------------------------------------------------------
fmtT3t#ToolNo
fmtT3first_tool#FirstToolUsed(bldnxtool:
yes)
fmtT3next_tool#NextToolUsed(bldnxtool:
yes)
fmtD3tloffno#DiameterOffsetNo
fmtH3tlngno#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#Safetydistance
fmt1retr#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#Allowfullcircleoutput0=no,1=yes
helix_arc:
0#Supporthelixarcoutput,0=no,1=allplanes,2=XYplaneonly
bldnxtool:
yes#Buildnexttooltable
ldrcode:
65#Leadercharacterdec.equiv.(fleaderoutputscode)
ncldr:
20#No.ofleadercharacters(fleaderoutputscode)
nobrk:
no#Omitbreakupofx/y&zrapidmoves
omitcrlf:
no#OmitCR/LF
omitrefht:
no#Don'tusereferenceheightonfirstnon-cannedZmove
omitseq:
yes#Omitsequenceno.
omitz:
no#OmitfirstZmovementfornon-canned-cycles
progname:
1#Useuppercaseforprogramname
scalex:
#Scalingof.NCIatinput-x,y,z,i,j,k
scaley:
#Scalingof.NCIatinput-x,y,z,i,j,k
scalez:
#Scalingof.NCIatinput-x,y,z,i,j,k
seqmax:
9999#Max.sequenceno.
skipmotest:
no#Skipmotiontestinlinear
spaces:
1#No.ofspacestoaddbetweenfields
tooltable:
1#Readfortooltableandpwrtt
absswp:
0#Absolutesweep
drlgsel:
-1#DrillSelectInitialize
maxfrdeg:
9999#Limitforfeedindeg/min
absinc:
0#Absolute/Incrementaltoggleformodality
tcnt:
0#Countthenumberoftoolchanges
adelta:
0#Calculationfordeg/min
ldelta:
0#Calculationfordeg/min
zdelta:
0#Calculationfordeg/min
alzdelta:
0#Calculationfordeg/min
frdelta:
0#Calculationfordeg/min
frdegcalc:
0#Calculationfordeg/min
circum:
0#Calculationfordeg/min
rotstrt:
1#Flagforfirstrotaryposition
newglobal:
1#ErrorCheck(Leavethisvariablesetto1)
#--------------------------------------------------------------------------
#FORMULAS-globalformulas
#--------------------------------------------------------------------------
ssrange=mi3#GearRangeSelect
speed=abs(ss)#Absolutespindlespeed
arcradm=arcrad#Negativearcrad
spdlsel=fsg3(ss)#Spindleonselectorbasedonpos.orneg.ss
#--------------------------------------------------------------------------
#CANNEDCYCLES-selectlongorshortcode
#--------------------------------------------------------------------------
usecandrill:
yes#Usecannedcyclefordrill
usecanpeck:
yes#UsecannedcycleforPeck
usecanchip:
yes#UsecannedcycleforChipBreak
usecantap:
yes#UsecannedcycleforTap
usecanbore1:
yes#UsecannedcycleforBore1
usecanbore2:
yes#UsecannedcycleforBore2
usecanmisc1:
yes#UsecannedcycleforMisc1
usecanmisc2:
yes#UsecannedcycleforMisc2
#--------------------------------------------------------------------------
#Lookuptabledefinitions-formathfunctionsFLOOKandFRANGE
#--------------------------------------------------------------------------
flktbl13#Lookuptabledefinitions-tableno.-no.entries
401000#Lowgearrange
412500#Medgearrange
425000#Higearrange
#--------------------------------------------------------------------------
#Strings-Stringlabelsmuststartwith's'-theyarenotpre-assigned
#--------------------------------------------------------------------------
#Selectoperationnote
sop00NULL#String
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MasterCAM91 刀具 清单 功能