完整版MasterCAM91刀具清单功能.docx
《完整版MasterCAM91刀具清单功能.docx》由会员分享,可在线阅读,更多相关《完整版MasterCAM91刀具清单功能.docx(41页珍藏版)》请在冰豆网上搜索。
完整版MasterCAM91刀具清单功能
后办理自动生成刀具清单,使用方法:
将下面的内容复制到记事本内,并将其更名为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
#
#************************************************************************
#*----------------------------------------------------------------------*
#*POSTPROCESSORINTENDEDFOR
*
#*
#*DONOTDISTRIBUTE!
!
#*----------------------------------------------------------------------*
VERSION
!
6BETA
*
TESTING
*
#************************************************************************
#
#---------------
#|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
get_1004:
1
rpd_typ_v7:
1
#UseVersion7toolname,1=pathcomponents,2=string#Findgcode1004withgetnextop?
#UseVersion7stylecontourflags?
arcoutput:
2
breakarcs:
0
#0=IJK,1=Rnosign,2=Rsignedneg.over180#Breakarcs,0=no,1=quadrants,2=180deg.maxarcs
stagetool:
0
use_gear:
no
#0=Donotpre-stagetools,1=Stagetools
#Settoyestooutputgearrangecodes
#--------------------------------------------------------------------------
#FORMATSTATEMENTS-n=nonmodal,l=leading,t=trailing,i=inc,d=delta
#--------------------------------------------------------------------------
fs
1
#Decimal,absolute,4place
fs
2
#Decimal,delta
fs
3
1
0
#Integer,notleading
fs
4
2
0l
#Integer,twoleading
fs
5
3
0l
#Integer,threeleading
fs
6
4
0l
#Integer,fourleading
fs
7
#Decimal,absolute,1place
fs
8
#Decimal,absolute,2place
fs
9
#Decimal,absolute,3place
fs
1004t
#Nodecimal,absolute,fourtrailing
fs
#Decimal,absolute,fourtrailing
#--------------------------------------------------------------------------
#FORMATASSIGNMENTS
#--------------------------------------------------------------------------
#Axisoutputformats-Linear
#--------------------------------------------------------------------------
fmt
X1x
#Xaxisposition
fmt
Y1y
#Yaxisposition
fmt
Z1z
#Zaxisposition
fmt
X1xr
#Xrapidpositionfromtoolchange
fmt
Y1yr
#Yrapidpositionfromtoolchange
fmt
Z1zr
#Zrapidpositionfromtoolchange
fmt
X1xh
#Xhomeposition
fmt
Y1yh
#Yhomeposition
fmt
Z1zh
#Zhomeposition
#--------------------------------------------------------------------------
#Axisoutputformats-Circular
#--------------------------------------------------------------------------
fmt
I2i
#ArccenterdescriptioninX
fmt
J2j
#ArccenterdescriptioninY
fmt
K2k
#ArccenterdescriptioninZ
fmt
R1arcrad
#ArcRadius
fmt
R-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
fmt
H3tlngno
#LengthOffsetNo
fmt
"T"1
tnote
#Noteformat
fmt
"D-"1
toffnote
#Noteformat
fmt
"H-"1
tlngnote
#Noteformat
fmt
"Dia-"2
tldia
#Noteformat
#--------------------------------------------------------------------------
#SpindleSpeeds&Feedrateoutputformats
#--------------------------------------------------------------------------
fmt
S6speed
#SpindleSpeed
fmt
F8fr
#Feedrate
fmt
F7frdeg
#Feedrateforrotary
fmt
M3gear
#Gearrange
#--------------------------------------------------------------------------
#Drillvariableformats
#--------------------------------------------------------------------------
fmt
G3drillref
#Initial/ReferenceToggle(G98/G99)
fmt
P10dwell
#Dwell
fmt
Z1initht
#InitialHeight
fmt
R1refht
#ReferenceHeight
fmt
Z1depth
#Depth
fmt
Q2peck1
#Firstpeckincrement(positive)
fmt
1peck2
#Secondorlastpeck(positive)
fmt
1peckclr
#Safetydistance
fmt
1retr
#Retractheight
fmt
F8frplunge
#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=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#Lo