MasterCAM91地刀具应用清单功能Word文件下载.docx
《MasterCAM91地刀具应用清单功能Word文件下载.docx》由会员分享,可在线阅读,更多相关《MasterCAM91地刀具应用清单功能Word文件下载.docx(25页珍藏版)》请在冰豆网上搜索。
#************************************************************************
#*----------------------------------------------------------------------*
#*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
fs10.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,3place
fs1004t#Nodecimal,absolute,fourtrailing
fs110.4t#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:
fmtD3tloffno#DiameterOffsetNo
fmtH3tlngno#LengthOffsetNo
fmt"
T"
1tnote#Noteformat
D-"
1toffnote#Noteformat
H-"
1tlngnote#Noteformat
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#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:
1.0#Scalingof.NCIatinput-x,y,z,i,j,k
scaley:
scalez:
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:
zdelta:
alzdelta:
frdelta:
frdegcalc:
circum:
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
#------------------------------------