刀具清单

合集下载

完整版MasterCAM9.1刀具清单功能

完整版MasterCAM9.1刀具清单功能

后办理自动生成刀具清单,使用方法:将下面的内容复制到记事本内,并将其更名为Mpfan.pst , pst 为后缀,再将该文件拷贝至 MasterCAM9.1 的安装目录C:\Mcam9\Mill\Posts ,覆盖原文件,尔后启动软件,可以在 NC 程序开头生成刀具清单。

经典版本,绝对好用!# Post Name: MPFAN# Product: MILL# Machine Name: FANUC# Control Name: 6M# Description: GENERIC FANUC 6M STYLE POST# Associated Post:# Mill/Turn: NO# 4-axis/Axis subs.: NO# 5-axis: NO# Executable## ************************************************************************# *----------------------------------------------------------------------*# *POST PROCESSOR INTENDED FOR *# *#*DO NOT DISTRIBUTE!! # *----------------------------------------------------------------------*VERSION!6BETA*TESTING*#************************************************************************ ##---------------#| REVISION LOG|# ------------------------------------------------------------------------# Programmers Note:# CNC8/15/2005 - grt - Updated for Mill Version 6## ---------------#| FEATURES:|# ------------------------------------------------------------------------#Users Note:##Following Misc_Reals & Misc_Integers are used:##mi1 - Work coordinate system#0 = Reference return is generated and G92 with the#X, Y and Z home positions at file head.# 1 thru 3 = Reference return is generated and G92 with the#X, Y and Z home positions at each tool.# 4 thru 9 = The WCS of G54 thru G59 respectively at each tool. ##Options / Usage:#It is recommended to start and end cutter compensation on a linear move. #Rotary axis assumes a "Z" plunge at feed into part, position of the#substituted axis at absolute zero position and the retraction from path #by the post call to the G28 machine Z home position.# --------------------------------------------------------------------------# DEBUG/PROGRAM SWITCHES, debugging and program switches# --------------------------------------------------------------------------bug1: 1# 1 = Output post to screen, 2 = output leader to screen bug2: 0# Append postline labels, non-zero is column position? bug3: 0# Append whatline no. to each NC line?bug4: 0# Append NCI line no. to each NC line?whatno : yes# Do not perform whatline branches?strtool_v7 : 2 get_1004: 1 rpd_typ_v7 : 1#Use Version 7 toolname, 1= path components,2=string #Find gcode 1004 with getnextop? #Use Version 7 style contour flags?arcoutput : 2 breakarcs : 0# 0 = IJK, 1 = R no sign, 2 = R signed neg. over 180 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcsstagetool : 0 use_gear: no # 0 = Do not pre-stage tools, 1 = Stage tools # Set to yes to output gear range codes# --------------------------------------------------------------------------#FORMAT STATEMENTS - n=nonmodal, l=leading, t=trailing, i=inc, d=delta #--------------------------------------------------------------------------fs1#Decimal, absolute, 4 placefs2#Decimal, deltafs310#Integer, not leadingfs420l#Integer, two leadingfs530l#Integer, three leadingfs640l#Integer, four leadingfs7#Decimal, absolute, 1 placefs8#Decimal, absolute, 2 placefs9#Decimal, absolute, 3 placefs10 0 4t#No decimal, absolute, four trailingfs#Decimal, absolute, four trailing# --------------------------------------------------------------------------# FORMAT ASSIGNMENTS# --------------------------------------------------------------------------#Axis output formats - Linear#-------------------------------------------------------------------------- fmt X 1 x# X axis positionfmt Y 1 y# Y axis positionfmt Z 1 z# Z axis positionfmt X 1 xr# X rapid position from tool change fmt Y 1 yr# Y rapid position from tool change fmt Z 1 zr# Z rapid position from tool change fmt X 1 xh# X home positionfmt Y 1 yh# Y home positionfmt Z 1 zh# Z home position# --------------------------------------------------------------------------#Axis output formats - Circular#-------------------------------------------------------------------------- fmt I 2 i# Arc center description in Xfmt J 2 j# Arc center description in Yfmt K 2 k# Arc center description in Zfmt R 1 arcrad# Arc Radiusfmt R- 1 arcradm# Arc Radius over 180 degree sweep# --------------------------------------------------------------------------#Axis output formats - Rotary substitution#-------------------------------------------------------------------------- fmt A 9 xs# Linear to rotary calculation of Xfmt B 9 ys# Linear to rotary calculation of Y# --------------------------------------------------------------------------#Program & Sequence number format#-------------------------------------------------------------------------- fmt O 6 progno# Program numberfmt N 3 n# Sequence nos.# --------------------------------------------------------------------------#Tool format#-------------------------------------------------------------------------- fmt T 3 t# Tool Nofmt T 3 first_tool# First Tool Used (bldnxtool: yes)fmt T 3 next_tool # Next Tool Used(bldnxtool: yes) fmt D 3 tloffno# Diameter Offset Nofmt H 3 tlngno# Length Offset Nofmt"T" 1tnote# Note formatfmt"D-" 1toffnote# Note formatfmt"H-" 1tlngnote# Note formatfmt"Dia-" 2tldia# Note format# --------------------------------------------------------------------------#Spindle Speeds & Feedrate output formats#--------------------------------------------------------------------------fmt S 6 speed# Spindle Speedfmt F 8 fr# Feedratefmt F 7 frdeg# Feedrate for rotaryfmt M 3 gear# Gear range# --------------------------------------------------------------------------#Drill variable formats#--------------------------------------------------------------------------fmt G 3 drillref# Initial / Reference Toggle (G98/G99)fmt P 10 dwell# Dwellfmt Z 1 initht# Initial Heightfmt R 1 refht# Reference Heightfmt Z 1 depth# Depthfmt Q 2 peck1# First peck increment (positive)fmt 1 peck2# Second or last peck (positive)fmt 1 peckclr# Safety distancefmt 1 retr# Retract heightfmt F 8 frplunge# Plunge feedrate in drill cycles# --------------------------------------------------------------------------#Miscellaneous output formats#--------------------------------------------------------------------------fmt M 5 ssrange# Spindle Speed Rangefmt C 4 coolant# Coolant# --------------------------------------------------------------------------#INITIALIZE - initialize system variables and define user variables#--------------------------------------------------------------------------qtoolpln: no# MP386 - Enable tool plane optionqtoolopt: no# MP386 - Enable tool optimizationarctype: 2# Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.do_full_arc : 0#Allow full circle output? 0=no, 1=yeshelix_arc: 0#Support helix arc output, 0=no, 1=all planes, 2=XY plane only bldnxtool : yes# Build next tool tableldrcode: 65# Leader character dec. equiv. (fleader outputs code) ncldr: 20# No. of leader characters (fleader outputs code) nobrk: no# Omit breakup of x/y & z rapid movesomitcrlf: no# Omit CR/LFomitrefht : no# Don't use reference height on first non-canned Z move omitseq: yes# Omit sequence no.omitz: no# Omit first Z movement for non-canned-cycles progname: 1# Use uppercase for program namescalex# Scaling of .NCI at input - x,y,z,i,j,kscaley# Scaling of .NCI at input - x,y,z,i,j,kscalez# Scaling of .NCI at input - x,y,z,i,j,kseqmax: 9999# Max. sequence no.skipmotest: no# Skip motion test in linearspaces: 1# No. of spaces to add between fieldstooltable : 1# Read for tool table and pwrttabsswp: 0# Absolute sweepdrlgsel: -1# Drill Select Initializemaxfrdeg: 9999# Limit for feed in deg/minabsinc: 0# Absolute/Incremental toggle for modalitytcnt: 0# Count the number of tool changesadelta: 0# Calculation for deg/minldelta: 0# Calculation for deg/minzdelta: 0# Calculation for deg/minalzdelta: 0# Calculation for deg/minfrdelta: 0# Calculation for deg/minfrdegcalc : 0# Calculation for deg/mincircum: 0# Calculation for deg/minrotstrt: 1# Flag for first rotary positionnewglobal : 1# Error Check (Leave this variable set to 1)# --------------------------------------------------------------------------#FORMULAS - global formulas#--------------------------------------------------------------------------ssrange= mi3# Gear Range Selectspeed= abs ( ss )# Absolute spindle speedarcradm= arcrad# Negative arcradspdlsel= fsg3(ss)# Spindle on selector based on pos. or neg. ss# --------------------------------------------------------------------------#CANNED CYCLES - select long or short code#--------------------------------------------------------------------------usecandrill : yes# Use canned cycle for drillusecanpeck : yes# Use canned cycle for Peckusecanchip: yes# Use canned cycle for Chip Break usecantap: yes# Use canned cycle for Tapusecanbore1 : yes# Use canned cycle for Bore1usecanbore2 : yes# Use canned cycle for Bore2usecanmisc1 : yes# Use canned cycle for Misc1usecanmisc2 : yes# Use canned cycle for Misc2# --------------------------------------------------------------------------#Lookup table definitions - for math functions FLOOK and FRANGE #--------------------------------------------------------------------------flktbl13# Lookup table definitions - table no. - no. entries 401000 # Low gear range412500 # Med gear range425000 # Hi gear range# --------------------------------------------------------------------------# Strings - String labels must start with 's' - they are not pre-assigned# --------------------------------------------------------------------------#Select operation notesop00NULL# String definitionsop01END-MIll#""sop02END-MIll#""sop03DRIll#""sop04END-MIll#""sop05S-MILL#""sop062D-SWEPT..#""sop073D-SWEPT..#""sop08REVOLVED..#""sop09LOFT......#""sop10COONS.....#""sop11TRIM .....#""sop12FILLET....#""sop13ROUGH.....#""sop14OP14......#""sop15OP15......#""sopnote# Target stringfstrsel sop00 opcode sopnote# --------------------------------------------------------------------------# Select motion G codesg00G0# Linear movement at rapid feedratesg01G1# Linear movement at feedratesg02G2# Circular interpolation CWsg03G3# Circular interpolation CCWsgcode# Target stringfstrsel sg00 gcode sgcode# --------------------------------------------------------------------------# Select incremental or absolute G codesg90G90# Absolute G codesg91G91# Incremental G codesgabsinc# Target stringfstrsel sg90 absinc sgabsinc# --------------------------------------------------------------------------# Select spindle startsm04M4# Spindle reversesm05M5# Spindle offsm03M3# Spindle forwardspdlon# Target stringfstrsel sm04 spdlsel spdlon# --------------------------------------------------------------------------# Cutter compensation codescc0""# Cutter compensation state not changedsg40G40# Cancel cutter compensationsg41G41# Cutter compensation leftsg42G42# Cutter compensation rightsg140G40# Last linear move cancel cutter comp (see note)#Note: to cancel comp after last move, remove G40 string#with sg140 and remove "#" at the postline call "pcancelcc" sccomp# Target stringfstrsel scc0 ccomp sccomp# --------------------------------------------------------------------------# Select work plane G codesg17G17# XY plane codesg19G19# XZ plane codesg18G18# YZ plane codesgplane# Target stringfstrsel sg17 plane sgplane# --------------------------------------------------------------------------# Work coordinate systemsg50G92# Work coordinate system G codesg51G92#"""""sg52G92#"""""sg53G92#"""""sg54G54#"""""sg55G55#"""""sg56G56#"""""sg57G57#"""""sg58G58#"""""sg59G59#"""""sgwcs# Target stringfstrsel sg50 mi1 sgwcs# --------------------------------------------------------------------------# Canned drill cycle string selectsg81G81#drill- no dwellsg81d G82#drill- with dwellsg83G83#peck drill - no dwellsg83d G83#peck drill - with dwellsg73G73#chip break - no dwellsg73d G73#chip break - with dwellsg84G84#tap- no dwellsg84d G74#tap- with dwell (selects left hand) sg85G85#bore #1- no dwellsg85d G89#bore #1- with dwellsg86G86#bore #2- no dwellsg86d G86#bore #2- with dwellsgm1G81#misc #1- no dwellsgm1d G82#misc #1- with dwellsgm2G81#misc #2- no dwellsgm2d G82#misc #2- with dwellsgdrill#Target stringdrlgsel = drillcyc * 2 + fsg2 ( dwell )# 16 possible combinations:#drillcyc = 0..7#dwell= 0 or non-zero (2 states) fstrsel sg81 drlgsel sgdrill# --------------------------------------------------------------------------# Generate 'sgear' stringsgear0M**# auto gear rangesgear1M41# Low gear rangesgear2M42# Med gear rangesgear3M43# High gear range - selected in parameters by mi3sgearfstrsel sgear0 gear sgear# --------------------------------------------------------------------------# POSTLINES, USER-DEFINED -Postline labels start with 'p'.#End a line with ',' to continue on the next line.#End a line with ', e' to generate carriage return and linefeed.#--------------------------------------------------------------------------#Program general output control, user defined# --------------------------------------------------------------------------pinit# Initialize Varslinarc = 0rotstrt = 1pabs# Absolute G code outputabsinc = 0sgabsincpinc# Incremental G code outputabsinc = 1sgabsincpcooloff# Coolant off "M" code outputif prv_coolant > 0, "M09"pcoolon# Coolant off "M" code outputif coolant = 1, "M08" if coolant = 2, "M07"# Flood # Mistpcoolnl# Coolant off "M" code outputif coolant = 0, "M09" if coolant = 1, "M08" if coolant = 2, "M07"# Off # Flood # Mistpfr# Feedrate W/O Negative Feedratesif fr > 0, frpcan# Canned text - cantext = 0, 1, 2, 3if cantext = 1, "M01"#optional stopif cantext = 2, " "#user optionif cantext = 3, " "#user option# --------------------------------------------------------------------------#Work coordinate output, user defined#--------------------------------------------------------------------------pg92_sof# G92 coordinate setting at start"/", n, pinc, "G28", "Z0.", e"/", n, "G28", "X0.", "Y0.", e"/", n, *sgwcs, *xh, *yh, *zh, epg92_out# G92 coordinate setting at tool change"/", n, "G28", "X0.", "Y0.", eif gcode <> 1003, "/", n, *sgwcs, *xh, *yh, *zh, epwcs# G54+ coordinate settingif mi1 >= 4, *sgwcs# --------------------------------------------------------------------------#Gear selection control, user defined#-------------------------------------------------------------------------- pgear# Find spindle rangegear = frange ( 1, speed )*gearprange# Find spindle rangeif use_gear = 1, pgear# --------------------------------------------------------------------------# Cutter comp. output control, user defined# --------------------------------------------------------------------------pccdia2# Cutter Compensation2if ccomp <> 4, tloffnopccdia# Cutter Compensationif ccomp <> 0, pccdia2# --------------------------------------------------------------------------#Axis substitution motion, user defined#--------------------------------------------------------------------------pdrlxyrot# Substitute Axis X/Y with Rotary axis w/ drillingif rotaxis = 0, x, yif rotaxis = 1, y, xsif rotaxis = 2, x, yspfrd# Feedrate W/O Negative Feedrates (deg/min)if frdeg > maxfrdeg, frdeg = maxfrdegif frdelta > .5, *frdeg#Value to exceed to output frdegprotaxis1a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, n, sgcode, y, z, *xs, pfrd, pcan, eif rotstrt = 1, n, xs, eif rotstrt = 1, n, sgcode, y, z, pfrd, pcan, eprotaxis1 # Substitute Axis X/Y with Rotary axisif gcode = 0, n, sgcode, y, z, *xs, pcan, eif gcode = 1, protaxis1aprotaxis2a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, n, sgcode, x, z, *ys, pfrd, pcan, eif rotstrt = 1, n, ys, eif rotstrt = 1, n, sgcode, x, z, pfrd, pcan, eprotaxis2 # Substitute Axis X/Y with Rotary axisif gcode = 0, n, sgcode, x, z, *ys, pcan, eif gcode = 1, protaxis2aprotaxis# Substitute Axis X/Y with Rotary axisif rotstrt = 1, !frif fr < 0, fr = prv_fr!frif rotaxis = 1, ldelta = abs ( y - prv_y )if rotaxis = 2, ldelta = abs ( x - prv_x )zdelta = abs ( z - prv_z )if rotaxis = 1, adelta = ( ( abs ( xs - prv_xs ) ) / 360 ) * circumif rotaxis = 2, adelta = ( ( abs ( ys - prv_ys ) ) / 360 ) * circumalzdelta = sqrt ( adelta^2 + ldelta^2 + zdelta^2 )frdegcalc =fr * ( 360 / circum )if alzdelta <> 0, frdeg = ( adelta / alzdelta ) * frdegcalc if adelta = 0, frdeg = frfrdelta = abs ( frdeg - prv_frdeg )if rotaxis = 1, protaxis1if rotaxis = 2, protaxis2if gcode = 1, rotstrt = 0!x, !y, !zprotary# Rotary Moveif rotaxis = 1, xr = 0if rotaxis = 2, yr = 0if rotaxis > 0, linarc = 1 circum = rotdia * pi #Force X to zero #Force Y to zero# --------------------------------------------------------------------------#Axis linear/circular motion, user defined#--------------------------------------------------------------------------parctyp2# Arc output for R w/ sign over 180 degree sweepabsswp = abs ( sweep )!absswpif absswp <= 180, *arcradif absswp > 180, *arcradmparctyp1# Arc output for R w/ no sign*arcradparctyp0# Arc output for IJKif plane = 0, *i, *j, kif plane = 1, i, *j, *kif plane = 2, *i, j, *kparctyp# Select the arc outputif arcoutput = 0, parctyp0if arcoutput = 1, parctyp1if arcoutput = 2, parctyp2prapidm# Linear line movement - at rapid feedraten, sgplane, sccomp, pccdia, sgcode, x, y, z, pcanplinm# Linear line movement - at feedraten, sccomp, pccdia, sgcode, x, y, z, pfr, pcanpcirm# Circular interpolationn, sgplane, sccomp, pccdia, sgcode, x, y, z, parctyp, pfr, pcan# --------------------------------------------------------------------------# Drilling, user defined# --------------------------------------------------------------------------pdrillref# Determine G98 or G99if initht <> refht, drillref = 98if initht = refht, drillref = 99pdwell# Determine whether to output dwellif dwell <> 0, *dwellptlchg0dr2 # Null tool change for drillinggcode = 0if zr < prv_zr, n, sgcode, *xr, *yr, en, sgcode, *zr, eptlchg0drl # Null tool change for drillingif prv_opcode = 3 & zr <> prv_zr, ptlchg0dr2# --------------------------------------------------------------------------#POSTLINES, PRE-DEFINED - Postline names are pre-assigned.#Lines do not need to end with ', e' for carriage return and linefeed.#--------------------------------------------------------------------------pcomment# Manual Entry - COMMENTS (on a block by itself) 1005,1006 "(", scomm, ")"pheader# File header"%""(", progname,".NC)""(20",year,"-",month,"-",day,",", time, ")"psof0# Start of file for tool zeropsofpsof# Start of file for non-zero tool numberpinit!opcode, !coolantif tcnt = 1, stagetool = 2prognocommentn, "G40 G49 G80 G17 G21"n, "GO G91 G28 Z0."# if stagetool = 0, n, *t, "M6"protaryn, *t, "M6"if stagetool = 0, n, *next_tooln, *sg00,*sg90,*sg54,pabs, *xr, *yrn, *speed, *spdlon, prangen, "G43", tlngno, *zr, pcoolonptlchg0# Null tool changeif opcode = 3, ptlchg0drlif prv_speed <> speed, n, speedif coolant <> prv_coolant, n, pcoolnl!opcode, !coolantptlchg# Tool changepinit!opcoden, pcooloffn,*sm05n, pinc, "G28", "Z0."if stagetool = 0, n, *t, "M6"if stagetool = 0, n, *next_tooln, "M01"commentprotaryn, *sg00,pabs,*sg54, *xr, *yrn, *speed, *spdlon, prangen, "G43", tlngno, *zr, pcoolon!coolantpeof0# End of file for tool zeropeofpeof# End of file for non-zero tooln, pcooloffn, *sm05# n, pinc, "G30", "Z0."n, "G91 G28 Z0."n, "G91 G28 Y0."if stagetool = 0, n, *first_tool, "M6"n, "M30""%"# --------------------------------------------------------------------------#Axis motion#--------------------------------------------------------------------------prot0# Toolplane postline - Custom post requiredprot# Toolplane postline - Custom post requiredprapid# Linear line movement - at rapid feedrateif rotaxis <> 0, protaxiselse, prapidmpzrapid# Linear movement in Z axis only - at rapid feedraten, sgcode, zplin1# First linear movement after SOF, whatno must be setplin2# Second linear movement after SOF, whatno must be setplin# Linear line movement - at feedrateif rotaxis <> 0, protaxiselse, plinmpz# Linear movement in Z axis only - at feedraten, sgcode, z, pfrpcir1# First circular movement after SOF, whatno must be set pcir2# Second circular movement after SOF, whatno must be setpcir# Circular interpolationif rotaxis <> 0, protaxiselse, pcirm# --------------------------------------------------------------------------#Drilling#--------------------------------------------------------------------------pdrill# Canned Drill Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, pdwell, *frplungeppeck# Canned Peck Drill Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *peck1, *frplungepchpbrk# Canned Chip Break Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *peck1, *frplungeptap# Canned Tap Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *frplungepbore1# Canned Bore #1 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, pdwell, *frplungepbore2# Canned Bore #2 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *frplungepmisc1# Canned Misc #1 Cycle (User Option)pdrillpmisc2# Canned Misc #2 Cycle (User Option)pdrillpdrill_2# Canned Drill Cyclen, pdrlxyrot, refht, depthppeck_2# Canned Peck Drill Cyclepdrill_2pchpbrk_2# Canned Chip Break Cyclepdrill_2ptap_2# Canned Tap Cyclepdrill_2pbore1_2# Canned Bore #1 Cyclepdrill_2pbore2_2# Canned Bore #2 Cyclepdrill_2pmisc1_2# Canned Misc #1 Cyclepdrill_2pmisc2_2# Canned Misc #2 Cyclepdrill_2pcanceldc# Cancel canned drill cycle!gcoden, "G80"prv_z = inithtpcancelcc# Cancel cutter comp.#n, "G40"pwrtt# Write tool table, scans entire file, null tools are negativetnote = ttoffnote = tloffnotlngnote = tlngnoif t >= 0, "(", *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia, " ",*sopnote, ")"if t >= 0, tcnt = tcnt + 1# --------------------------------------------------------------------------# Numbered questions for Mastercam --Used by Mill 5# --------------------------------------------------------------------------38. Rapid feedrate? 10000. of associated CFG file? T400.munications port number for receive and transmit (1 or 2) ? 281.Data rate (110,150,300,600,1200,2400,4800,9600,14400,19200,38400)? 960082.Parity (E/O/N)? E83.Data bits (7 or 8)? 784.Stop bits (1 or 2)? 285.Strip line feeds? N86.Delay after end of line (seconds)? 087.Ascii, Eia, or Binary (A/E/B)? A88.Echo keyboard to screen in terminal emulation? n89.Strip carriage returns? N90.Drive and subdirectory for NC files? of executable post processor? MP of reverse post processor? RP93. Reverse post PST file name? RPABS100.Number of places BEFORE the decimal point for sequence numbers? 3 101.Number of places AFTER the decimal point for sequence numbers? 0 103. Maximum spindle speed? 8000107.# --------------------------------------------------------------------------# Switches to Enable OR Disable toolpath parameter screen buttons# --------------------------------------------------------------------------161.Enable Home Position button? Y162.Enable Reference Point button? y163.Enable Misc. V alues button? y164.Enable Rotary Axis button? N165.Enable Tool Plane button? y166.Enable Construction Plane button? y167.Enable Tool Display button? y168.Check tplane during automatic work origin creation? y# --------------------------------------------------------------------------#Default Miscellaneous Real Values#--------------------------------------------------------------------------202.203.204.205.206.207.208.209.210.# --------------------------------------------------------------------------#Default Miscellaneous Real Values (METRIC)#--------------------------------------------------------------------------# --------------------------------------------------------------------------#Enable/Disable Miscellaneous Real Variable switches#--------------------------------------------------------------------------1611. Enable miscellaneous real variable 1? y1612. Enable miscellaneous real variable 2? y1613. Enable miscellaneous real variable 3? y1614. Enable miscellaneous real variable 4? y1615. Enable miscellaneous real variable 5? y1616. Enable miscellaneous real variable 6? y1617. Enable miscellaneous real variable 7? y1618. Enable miscellaneous real variable 8? y1619. Enable miscellaneous real variable 9? y1620. Enable miscellaneous real variable 10? y# --------------------------------------------------------------------------# Default Miscellaneous Integer Values# --------------------------------------------------------------------------301. Default Work Coordinate System (0 thru 3=G92, 4 thru 9=G54-G59)? 4 302. Miscellaneous integer variable 2 (mi2)? 0303.Miscellaneous integer variable 3 (mi3)? 0304.Miscellaneous integer variable 4 (mi4)? 0305.Miscellaneous integer variable 5 (mi5)? 0306.Miscellaneous integer variable 6 (mi6)? 0307.Miscellaneous integer variable 7 (mi7)? 0308.Miscellaneous integer variable 8 (mi8)? 0309.Miscellaneous integer variable 9 (mi9)? 0310.Miscellaneous integer variable 10 (mi10)? 0# --------------------------------------------------------------------------#Enable/Disable Miscellaneous Integer Variable switches#--------------------------------------------------------------------------1621. Enable miscellaneous integer variable 1? y1622. Enable miscellaneous integer variable 2? y1623. Enable miscellaneous integer variable 3? y1624. Enable miscellaneous integer variable 4? y1625. Enable miscellaneous integer variable 5? y1626. Enable miscellaneous integer variable 6? y1627. Enable miscellaneous integer variable 7? y1628. Enable miscellaneous integer variable 8? y1629. Enable miscellaneous integer variable 9? y。

MasterCAM9.1的刀具清单功能

MasterCAM9.1的刀具清单功能
#
#DEBUG/PROGRAM SWITCHES, debugging and program switches
#
bug1:1# 1 =Output post to screen,2 =output leader to screen
bug2:0#Append postline labels, non-zero is column position?
#Rotary axis assumes a "Z" plunge at feed into part, position of the
#substituted axis at absolute zero position and the retraction from path
#by the post call to the G28 machine Z home position.
#
#mi1-Work coordinate system
#0 =Reference return is generated and G92 with the
#X, Y and Z home positions at file head.
#1thru3 =Reference return is generated and G92 with the
fs53 0l#Integer, three leading
fs64 0l#Integer, four leading
fs7#Decimal, absolute,1place
fs8#Decimal, absolute,2place
fs9#Decimal, absolute,3place
fs1004t#No decimal, absolute, four trailing

MasterCAM的刀具清单功能

MasterCAM的刀具清单功能

M a s t e r C A M的刀具清单功能Revised by BLUE on the afternoon of December 12,2020.后处理自动生成刀具清单,使用方法:将下面的内容复制到记事本内,并将其更名为,pst为后缀,再将该文件拷贝至的安装目录C:\Mcam9\Mill\Posts,覆盖原文件,然后启动软件,可以在NC程序开头生成刀具清单。

经典版本,绝对好用!# Post Name : MPFAN# Product : MILL# Machine Name : FANUC# Control Name : 6M# Description : GENERIC FANUC 6M STYLE POST# Associated Post :# Mill/Turn : NO# 4-axis/Axis subs. : NO# 5-axis : NO# Executable : MP## ************************************************************************ # *----------------------------------------------------------------------* # * POST PROCESSOR INTENDED FOR VERSION 6 BETA TESTING * # * * # * D O N O T D I S T R I B U T E ! ! ! * # *----------------------------------------------------------------------* # ************************************************************************ ## ---------------#| REVISION LOG |# ------------------------------------------------------------------------# Programmers Note:# CNC 8/15/2005 - grt - Updated for Mill Version 6## ---------------#| FEATURES: |# ------------------------------------------------------------------------# Users Note:## Following Misc_Reals & Misc_Integers are used:## mi1 - Work coordinate system# 0 = Reference return is generated and G92 with the# X, Y and Z home positions at file head.# 1 thru 3 = Reference return is generated and G92 with the# X, Y and Z home positions at each tool.# 4 thru 9 = The WCS of G54 thru G59 respectively at each tool.## Options / Usage:# It is recommended to start and end cutter compensation on a linear move. # Rotary axis assumes a "Z" plunge at feed into part, position of the# substituted axis at absolute zero position and the retraction from path # by the post call to the G28 machine Z home position.# --------------------------------------------------------------------------# DEBUG/PROGRAM SWITCHES, debugging and program switches# --------------------------------------------------------------------------bug1 : 1 # 1 = Output post to screen, 2 = output leader to screenbug2 : 0 # Append postline labels, non-zero is column positionbug3 : 0 # Append whatline no. to each NC linebug4 : 0 # Append NCI line no. to each NC linewhatno : yes # Do not perform whatline branchesstrtool_v7 : 2 #Use Version 7 toolname, 1= path components, 2=stringget_1004 : 1 #Find gcode 1004 with getnextoprpd_typ_v7 : 1 #Use Version 7 style contour flagsarcoutput : 2 # 0 = IJK, 1 = R no sign, 2 = R signed neg. over 180 breakarcs : 0 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs stagetool : 0 # 0 = Do not pre-stage tools, 1 = Stage toolsuse_gear : no # Set to yes to output gear range codes# --------------------------------------------------------------------------# FORMAT STATEMENTS - n=nonmodal, l=leading, t=trailing, i=inc, d=delta# --------------------------------------------------------------------------fs 1 #Decimal, absolute, 4 placefs 2 #Decimal, deltafs 3 1 0 #Integer, not leadingfs 4 2 0l #Integer, two leadingfs 5 3 0l #Integer, three leadingfs 6 4 0l #Integer, four leadingfs 7 #Decimal, absolute, 1 placefs 8 #Decimal, absolute, 2 placefs 9 #Decimal, absolute, 3 placefs 10 0 4t #No decimal, absolute, four trailingfs 11 #Decimal, absolute, four trailing# --------------------------------------------------------------------------# FORMAT ASSIGNMENTS# --------------------------------------------------------------------------# Axis output formats - Linear# --------------------------------------------------------------------------fmt X 1 x # X axis positionfmt Y 1 y # Y axis positionfmt Z 1 z # Z axis positionfmt X 1 xr # X rapid position from tool changefmt Y 1 yr # Y rapid position from tool changefmt Z 1 zr # Z rapid position from tool changefmt X 1 xh # X home positionfmt Y 1 yh # Y home positionfmt Z 1 zh # Z home position# --------------------------------------------------------------------------# Axis output formats - Circular# --------------------------------------------------------------------------fmt I 2 i # Arc center description in Xfmt J 2 j # Arc center description in Yfmt K 2 k # Arc center description in Zfmt R 1 arcrad # Arc Radiusfmt R- 1 arcradm # Arc Radius over 180 degree sweep# --------------------------------------------------------------------------# Axis output formats - Rotary substitution# --------------------------------------------------------------------------fmt A 9 xs # Linear to rotary calculation of Xfmt B 9 ys # Linear to rotary calculation of Y# --------------------------------------------------------------------------# Program & Sequence number format# --------------------------------------------------------------------------fmt O 6 progno # Program numberfmt N 3 n # Sequence nos.# --------------------------------------------------------------------------# Tool format# --------------------------------------------------------------------------fmt T 3 t # Tool Nofmt T 3 first_tool# First Tool Used (bldnxtool: yes)fmt T 3 next_tool # Next Tool Used (bldnxtool: yes)fmt D 3 tloffno # Diameter Offset Nofmt H 3 tlngno # Length Offset Nofmt "T" 1 tnote # Note formatfmt "D-" 1 toffnote # Note formatfmt "H-" 1 tlngnote # Note formatfmt "Dia-" 2 tldia # Note format# --------------------------------------------------------------------------# Spindle Speeds & Feedrate output formats# --------------------------------------------------------------------------fmt S 6 speed # Spindle Speedfmt F 8 fr # Feedratefmt F 7 frdeg # Feedrate for rotaryfmt M 3 gear # Gear range# --------------------------------------------------------------------------# Drill variable formats# --------------------------------------------------------------------------fmt G 3 drillref # Initial / Reference Toggle (G98/G99)fmt P 10 dwell # Dwellfmt Z 1 initht # Initial Heightfmt R 1 refht # Reference Heightfmt Z 1 depth # Depthfmt Q 2 peck1 # First peck increment (positive)fmt 1 peck2 # Second or last peck (positive)fmt 1 peckclr # Safety distancefmt 1 retr # Retract heightfmt F 8 frplunge # Plunge feedrate in drill cycles# --------------------------------------------------------------------------# Miscellaneous output formats# --------------------------------------------------------------------------fmt M 5 ssrange # Spindle Speed Rangefmt C 4 coolant # Coolant# --------------------------------------------------------------------------# INITIALIZE - initialize system variables and define user variables# --------------------------------------------------------------------------qtoolpln : no # MP386 - Enable tool plane optionqtoolopt : no # MP386 - Enable tool optimizationarctype : 2 # Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc. do_full_arc : 0 #Allow full circle output 0=no, 1=yeshelix_arc : 0 #Support helix arc output, 0=no, 1=all planes, 2=XY plane onlybldnxtool : yes # Build next tool tableldrcode : 65 # Leader character dec. equiv. (fleader outputs code) ncldr : 20 # No. of leader characters (fleader outputs code)nobrk : no # Omit breakup of x/y & z rapid movesomitcrlf : no # Omit CR/LFomitrefht : no # Don't use reference height on first non-canned Z move omitseq : yes # Omit sequence no.omitz : no # Omit first Z movement for non-canned-cyclesprogname : 1 # Use uppercase for program namescalex : # Scaling of .NCI at input - x,y,z,i,j,kscaley : # Scaling of .NCI at input - x,y,z,i,j,kscalez : # Scaling of .NCI at input - x,y,z,i,j,kseqmax : 9999 # Max. sequence no.skipmotest: no # Skip motion test in linearspaces : 1 # No. of spaces to add between fieldstooltable : 1 # Read for tool table and pwrttabsswp : 0 # Absolute sweepdrlgsel : -1 # Drill Select Initializemaxfrdeg : 9999 # Limit for feed in deg/minabsinc : 0 # Absolute/Incremental toggle for modalitytcnt : 0 # Count the number of tool changesadelta : 0 # Calculation for deg/minldelta : 0 # Calculation for deg/minzdelta : 0 # Calculation for deg/minalzdelta : 0 # Calculation for deg/minfrdelta : 0 # Calculation for deg/minfrdegcalc : 0 # Calculation for deg/mincircum : 0 # Calculation for deg/minrotstrt : 1 # Flag for first rotary positionnewglobal : 1 # Error Check (Leave this variable set to 1)# --------------------------------------------------------------------------# FORMULAS - global formulas# --------------------------------------------------------------------------ssrange = mi3 # Gear Range Selectspeed = abs ( ss ) # Absolute spindle speedarcradm = arcrad # Negative arcradspdlsel = fsg3(ss) # Spindle on selector based on pos. or neg. ss # --------------------------------------------------------------------------# CANNED CYCLES - select long or short code# --------------------------------------------------------------------------usecandrill : yes # Use canned cycle for drillusecanpeck : yes # Use canned cycle for Peckusecanchip : yes # Use canned cycle for Chip Breakusecantap : yes # Use canned cycle for Tapusecanbore1 : yes # Use canned cycle for Bore1usecanbore2 : yes # Use canned cycle for Bore2usecanmisc1 : yes # Use canned cycle for Misc1usecanmisc2 : yes # Use canned cycle for Misc2# --------------------------------------------------------------------------# Lookup table definitions - for math functions FLOOK and FRANGE# --------------------------------------------------------------------------flktbl 1 3 # Lookup table definitions - table no. - no. entries40 1000 # Low gear range41 2500 # Med gear range42 5000 # Hi gear range# --------------------------------------------------------------------------# Strings - String labels must start with 's' - they are not pre-assigned# --------------------------------------------------------------------------#Select operation notesop00 NULL # String definitionsop01 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...... # " "sopnote # Target stringfstrsel sop00 opcode sopnote# --------------------------------------------------------------------------# Select motion G codesg00 G0 # Linear movement at rapid feedratesg01 G1 # Linear movement at feedratesg02 G2 # Circular interpolation CWsg03 G3 # Circular interpolation CCWsgcode # Target stringfstrsel sg00 gcode sgcode# --------------------------------------------------------------------------# Select incremental or absolute G codesg90 G90 # Absolute G codesg91 G91 # Incremental G codesgabsinc # Target stringfstrsel sg90 absinc sgabsinc# --------------------------------------------------------------------------# Select spindle startsm04 M4 # Spindle reversesm05 M5 # Spindle offsm03 M3 # Spindle forwardspdlon # Target stringfstrsel sm04 spdlsel spdlon# --------------------------------------------------------------------------# Cutter compensation codescc0 "" # Cutter compensation state not changedsg40 G40 # Cancel cutter compensationsg41 G41 # Cutter compensation leftsg42 G42 # Cutter compensation rightsg140 G40 # Last linear move cancel cutter comp (see note)# Note: to cancel comp after last move, remove G40 string# with sg140 and remove "#" at the postline call "pcancelcc" sccomp # Target stringfstrsel scc0 ccomp sccomp# --------------------------------------------------------------------------# Select work plane G codesg17 G17 # XY plane codesg19 G19 # XZ plane codesg18 G18 # YZ plane codesgplane # Target stringfstrsel sg17 plane sgplane# --------------------------------------------------------------------------# Work coordinate systemsg50 G92 # Work coordinate system G codesg51 G92 # " " " " "sg52 G92 # " " " " "sg53 G92 # " " " " "sg54 G54 # " " " " "sg55 G55 # " " " " "sg56 G56 # " " " " "sg57 G57 # " " " " "sg58 G58 # " " " " "sg59 G59 # " " " " "sgwcs # Target stringfstrsel sg50 mi1 sgwcs# --------------------------------------------------------------------------# Canned drill cycle string selectsg81 G81 # drill - no dwellsg81d G82 # drill - with dwellsg83 G83 # peck drill - no dwellsg83d G83 # peck drill - with dwellsg73 G73 # chip break - no dwellsg73d G73 # chip break - with dwellsg84 G84 # tap - no dwellsg84d G74 # tap - with dwell (selects left hand)sg85 G85 # bore #1 - no dwellsg85d G89 # bore #1 - with dwellsg86 G86 # bore #2 - no dwellsg86d G86 # bore #2 - with dwellsgm1 G81 # misc #1 - no dwellsgm1d G82 # misc #1 - with dwellsgm2 G81 # misc #2 - no dwellsgm2d G82 # misc #2 - with dwellsgdrill # Target stringdrlgsel = drillcyc * 2 + fsg2 ( dwell ) # 16 possible combinations:# drillcyc = 0..7# dwell = 0 or non-zero (2 states) fstrsel sg81 drlgsel sgdrill# --------------------------------------------------------------------------# Generate 'sgear' stringsgear0 M** # auto gear rangesgear1 M41 # Low gear rangesgear2 M42 # Med gear rangesgear3 M43 # High gear range - selected in parameters by mi3sgearfstrsel sgear0 gear sgear# --------------------------------------------------------------------------# POSTLINES, USER-DEFINED - Postline labels start with 'p'.# End a line with ',' to continue on the next line.# End a line with ', e' to generate carriage return and linefeed.# --------------------------------------------------------------------------# Program general output control, user defined# --------------------------------------------------------------------------pinit # Initialize Varsprv_fr =prv_frdeg =prv_frplunge =linarc = 0rotstrt = 1pabs # Absolute G code outputabsinc = 0sgabsincpinc # Incremental G code outputabsinc = 1sgabsincpcooloff # Coolant off "M" code outputif prv_coolant > 0, "M09"pcoolon # Coolant off "M" code outputif coolant = 1, "M08" # Floodif coolant = 2, "M07" # Mistpcoolnl # Coolant off "M" code outputif coolant = 0, "M09" # Offif coolant = 1, "M08" # Floodif coolant = 2, "M07" # Mistpfr # Feedrate W/O Negative Feedratesif fr > 0, frpcan # Canned text - cantext = 0, 1, 2, 3if cantext = 1, "M01" #optional stopif cantext = 2, " " #user optionif cantext = 3, " " #user option# --------------------------------------------------------------------------# Work coordinate output, user defined# --------------------------------------------------------------------------pg92_sof # G92 coordinate setting at start"/", n, pinc, "G28", "Z0.", e"/", n, "G28", "X0.", "Y0.", e"/", n, *sgwcs, *xh, *yh, *zh, epg92_out # G92 coordinate setting at tool change"/", n, "G28", "X0.", "Y0.", eif gcode <> 1003, "/", n, *sgwcs, *xh, *yh, *zh, epwcs # G54+ coordinate settingif mi1 >= 4, *sgwcs# --------------------------------------------------------------------------# Gear selection control, user defined# --------------------------------------------------------------------------pgear # Find spindle rangegear = frange ( 1, speed )*gearprange # Find spindle rangeif use_gear = 1, pgear# --------------------------------------------------------------------------# Cutter comp. output control, user defined# --------------------------------------------------------------------------pccdia2 # Cutter Compensation2if ccomp <> 4, tloffnopccdia # Cutter Compensationif ccomp <> 0, pccdia2# --------------------------------------------------------------------------# Axis substitution motion, user defined# --------------------------------------------------------------------------pdrlxyrot # Substitute Axis X/Y with Rotary axis w/ drillingif rotaxis = 0, x, yif rotaxis = 1, y, xsif rotaxis = 2, x, yspfrd # Feedrate W/O Negative Feedrates (deg/min)if frdeg > maxfrdeg, frdeg = maxfrdegif frdelta > .5, *frdeg #Value to exceed to output frdegprotaxis1a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, n, sgcode, y, z, *xs, pfrd, pcan, eif rotstrt = 1, n, xs, eif rotstrt = 1, n, sgcode, y, z, pfrd, pcan, eprotaxis1 # Substitute Axis X/Y with Rotary axisif gcode = 0, n, sgcode, y, z, *xs, pcan, eif gcode = 1, protaxis1aprotaxis2a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, n, sgcode, x, z, *ys, pfrd, pcan, eif rotstrt = 1, n, ys, eif rotstrt = 1, n, sgcode, x, z, pfrd, pcan, eprotaxis2 # Substitute Axis X/Y with Rotary axisif gcode = 0, n, sgcode, x, z, *ys, pcan, eif gcode = 1, protaxis2aprotaxis # Substitute Axis X/Y with Rotary axisif rotstrt = 1, !frif fr < 0, fr = prv_fr!frif rotaxis = 1, ldelta = abs ( y - prv_y )if rotaxis = 2, ldelta = abs ( x - prv_x )zdelta = abs ( z - prv_z )if rotaxis = 1, adelta = ( ( abs ( xs - prv_xs ) ) / 360 ) * circumif rotaxis = 2, adelta = ( ( abs ( ys - prv_ys ) ) / 360 ) * circumalzdelta = sqrt ( adelta^2 + ldelta^2 + zdelta^2 )frdegcalc = fr * ( 360 / circum )if alzdelta <> 0, frdeg = ( adelta / alzdelta ) * frdegcalcif adelta = 0, frdeg = frfrdelta = abs ( frdeg - prv_frdeg )if rotaxis = 1, protaxis1if rotaxis = 2, protaxis2if gcode = 1, rotstrt = 0!x, !y, !zprotary # Rotary Moveif rotaxis = 1, xr = 0 #Force X to zeroif rotaxis = 2, yr = 0 #Force Y to zeroif rotaxis > 0, linarc = 1circum = rotdia * pi# --------------------------------------------------------------------------# Axis linear/circular motion, user defined# --------------------------------------------------------------------------parctyp2 # Arc output for R w/ sign over 180 degree sweepabsswp = abs ( sweep )!absswpif absswp <= 180, *arcradif absswp > 180, *arcradmparctyp1 # Arc output for R w/ no sign*arcradparctyp0 # Arc output for IJKif plane = 0, *i, *j, kif plane = 1, i, *j, *kif plane = 2, *i, j, *kparctyp # Select the arc outputif arcoutput = 0, parctyp0if arcoutput = 1, parctyp1if arcoutput = 2, parctyp2prapidm # Linear line movement - at rapid feedraten, sgplane, sccomp, pccdia, sgcode, x, y, z, pcanplinm # Linear line movement - at feedraten, sccomp, pccdia, sgcode, x, y, z, pfr, pcanpcirm # Circular interpolationn, sgplane, sccomp, pccdia, sgcode, x, y, z, parctyp, pfr,pcan# --------------------------------------------------------------------------# Drilling, user defined# --------------------------------------------------------------------------pdrillref # Determine G98 or G99if initht <> refht, drillref = 98if initht = refht, drillref = 99pdwell # Determine whether to output dwellif dwell <> 0, *dwellptlchg0dr2 # Null tool change for drillinggcode = 0if zr < prv_zr, n, sgcode, *xr, *yr, e n, sgcode, *zr, eptlchg0drl # Null tool change for drillingif prv_opcode = 3 & zr <> prv_zr, ptlchg0dr2# --------------------------------------------------------------------------# POSTLINES, PRE-DEFINED - Postline names are pre-assigned.# Lines do not need to end with ', e' for carriage return and linefeed.# --------------------------------------------------------------------------pcomment # Manual Entry - COMMENTS (on a block by itself) 1005,1006"(", scomm, ")"pheader # File header"%""(", progname,".NC)""(20",year,"-",month,"-",day,",", time, ")"psof0 # Start of file for tool zeropsofpsof # Start of file for non-zero tool numberpinit!opcode, !coolantif tcnt = 1, stagetool = 2prognocommentn, "G40 G49 G80 G17 G21"n, "GO G91 G28 Z0."# if stagetool = 0, n, *t, "M6"protaryn, *t, "M6"if stagetool = 0, n, *next_tooln, *sg00,*sg90,*sg54,pabs, *xr, *yrn, *speed, *spdlon, prangen, "G43", tlngno, *zr, pcoolonptlchg0 # Null tool changeif opcode = 3, ptlchg0drlif prv_speed <> speed, n, speedif coolant <> prv_coolant, n, pcoolnl!opcode, !coolantptlchg # Tool changepinit!opcoden, pcooloffn,*sm05n, pinc, "G28", "Z0."if stagetool = 0, n, *t, "M6"if stagetool = 0, n, *next_tooln, "M01"commentprotaryn, *sg00,pabs,*sg54, *xr, *yrn, *speed, *spdlon, prangen, "G43", tlngno, *zr, pcoolon!coolantpeof0 # End of file for tool zeropeofpeof # End of file for non-zero tooln, pcooloffn, *sm05# n, pinc, "G30", "Z0."n, "G91 G28 Z0."n, "G91 G28 Y0."if stagetool = 0, n, *first_tool, "M6"n, "M30""%"# --------------------------------------------------------------------------# Axis motion# --------------------------------------------------------------------------prot0 # Toolplane postline - Custom post requiredprot # Toolplane postline - Custom post requiredprapid # Linear line movement - at rapid feedrateif rotaxis <> 0, protaxiselse, prapidmpzrapid # Linear movement in Z axis only - at rapid feedraten, sgcode, zplin1 # First linear movement after SOF, whatno must be set plin2 # Second linear movement after SOF, whatno must be set plin # Linear line movement - at feedrateif rotaxis <> 0, protaxiselse, plinmpz # Linear movement in Z axis only - at feedraten, sgcode, z, pfrpcir1 # First circular movement after SOF, whatno must be set pcir2 # Second circular movement after SOF, whatno must be set pcir # Circular interpolationif rotaxis <> 0, protaxiselse, pcirm# --------------------------------------------------------------------------# Drilling# --------------------------------------------------------------------------pdrill # Canned Drill Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, pdwell, *frplungeppeck # Canned Peck Drill Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *peck1, *frplungepchpbrk # Canned Chip Break Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *peck1, *frplungeptap # Canned Tap Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *frplungepbore1 # Canned Bore #1 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, pdwell, *frplungepbore2 # Canned Bore #2 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *frplungepmisc1 # Canned Misc #1 Cycle (User Option)pdrillpmisc2 # Canned Misc #2 Cycle (User Option)pdrillpdrill_2 # Canned Drill Cyclen, pdrlxyrot, refht, depthppeck_2 # Canned Peck Drill Cyclepdrill_2pchpbrk_2 # Canned Chip Break Cyclepdrill_2ptap_2 # Canned Tap Cyclepdrill_2pbore1_2 # Canned Bore #1 Cyclepdrill_2pbore2_2 # Canned Bore #2 Cyclepdrill_2pmisc1_2 # Canned Misc #1 Cyclepdrill_2pmisc2_2 # Canned Misc #2 Cyclepdrill_2pcanceldc # Cancel canned drill cycle!gcoden, "G80"prv_z = inithtpcancelcc # Cancel cutter comp.#n, "G40"pwrtt # Write tool table, scans entire file, null tools are negativetnote = ttoffnote = tloffnotlngnote = tlngnoif t >= 0, "(", *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia, " ", *sopnote, ")"if t >= 0, tcnt = tcnt + 1# --------------------------------------------------------------------------# Numbered questions for Mastercam -- Used by Mill 5# --------------------------------------------------------------------------38. Rapid feedrate 10000.76. Name of associated CFG file T400. Name of associated CFG file T1538. Rapid feedrate (metric)80. Communications port number for receive and transmit (1 or 2) 281. Data rate (110,150,300,600,1200,2400,4800,9600,14400,19200,38400) 960082. Parity (E/O/N) E83. Data bits (7 or 8) 784. Stop bits (1 or 2) 285. Strip line feeds N86. Delay after end of line (seconds) 087. Ascii, Eia, or Binary (A/E/B) A88. Echo keyboard to screen in terminal emulation n89. Strip carriage returns N90. Drive and subdirectory for NC files91. Name of executable post processor MP92. Name of reverse post processor RP93. Reverse post PST file name RPABS100. Number of places BEFORE the decimal point for sequence numbers 3101. Number of places AFTER the decimal point for sequence numbers 0103. Maximum spindle speed 8000107. Average time for tool change (seconds) 1#110. Default tool library# --------------------------------------------------------------------------# Switches to Enable OR Disable toolpath parameter screen buttons# --------------------------------------------------------------------------161. Enable Home Position button Y162. Enable Reference Point button y163. Enable Misc. Values button y164. Enable Rotary Axis button N165. Enable Tool Plane button y166. Enable Construction Plane button y167. Enable Tool Display button y168. Check tplane during automatic work origin creation y# --------------------------------------------------------------------------# Default Miscellaneous Real Values# --------------------------------------------------------------------------201. Default miscellaneous real variable 1 (mr1)202. Default miscellaneous real variable 2 (mr2)203. Default miscellaneous real variable 3 (mr3)204. Default miscellaneous real variable 4 (mr4)205. Default miscellaneous real variable 5 (mr5)206. Default miscellaneous real variable 6 (mr6)207. Default miscellaneous real variable 7 (mr7)208. Default miscellaneous real variable 8 (mr8)209. Default miscellaneous real variable 9 (mr9)210. Default miscellaneous real variable 10 (mr10)# --------------------------------------------------------------------------# Default Miscellaneous Real Values (METRIC)# --------------------------------------------------------------------------1601. Default miscellaneous real variable 1 (mr1) (metric)1602. Default miscellaneous real variable 2 (mr2) (metric)1603. Default miscellaneous real variable 3 (mr3) (metric)1604. Default miscellaneous real variable 4 (mr4) (metric)1605. Default miscellaneous real variable 5 (mr5) (metric)1606. Default miscellaneous real variable 6 (mr6) (metric)1607. Default miscellaneous real variable 7 (mr7) (metric)1608. Default miscellaneous real variable 8 (mr8) (metric)1609. Default miscellaneous real variable 9 (mr9) (metric)1610. Default miscellaneous real variable 10 (mr10) (metric)# --------------------------------------------------------------------------# Enable/Disable Miscellaneous Real Variable switches# --------------------------------------------------------------------------1611. Enable miscellaneous real variable 1 y1612. Enable miscellaneous real variable 2 y1613. Enable miscellaneous real variable 3 y1614. Enable miscellaneous real variable 4 y1615. Enable miscellaneous real variable 5 y1616. Enable miscellaneous real variable 6 y1617. Enable miscellaneous real variable 7 y1618. Enable miscellaneous real variable 8 y1619. Enable miscellaneous real variable 9 y。

MasterCAM9.1的刀具清单功能

MasterCAM9.1的刀具清单功能
arcoutput:2# 0二IJK, 1二R no sign, 2 = R signed neg・over 180
breakarcs:0#Break arcs, 0 = no, 1 = quadrants, 2 = 180deg・max arcs
stagetool:0#0二Do not pre-stage tools, 1 = Stage tools
#
#Options/Usage:
#It is recommended to start and end cutter compensation oncjlinear move.
#Rotary axis assumes a”Z” plunge at feed into part, position of the
# 1二Output post to screen, 2二output leader to screen
#Append postline labels, norvzero is column position?
#Append whatline no. to each NC line?
#Append NCI line no. to each NC line?
#1thru 3 = Reference return is generated and G92 with the
#X, Y and Z home positions at each tool.
#4 thru 9 = The WCS of G54 thru G59 respectively at each tool.
# Axis output formats-Linear
fmt
X 1 x
# X axis position

佛山市车铣复合主要刀具工具量具准备清单

佛山市车铣复合主要刀具工具量具准备清单
2010年广东省中等职业技术学校技能大赛
佛山市中职校数控车铣组合试题主要刀具、毛坯准备清单
1.刀具
名称
规格
数量
备注
平底立式铣刀
φ3mm、φ4mm、φ6mm、φ8mm、φ10mm、φ12mm、φ16mm、φ20mm
自定
球形立式铣刀
φ4mm、φ6mm、φ8mm、φ10mm、φ12mm
自定
铰刀
φ10mm
自定
(4)清角半径R1,请自备刀具。
2.毛坯准备要求:
尺寸:φ80*18数量:1
尺寸:45*110*12数量:1
尺寸:φ100*20数量:1
尺寸:φ30*100数量:1
尺寸:25*25*12数量:1
尺寸:φ15*100数量:2
3.备件:
轴承:型号6004(深沟球轴承)数量:1
螺钉:M6(锥头)(长度10-15mm)数量:4
φ10H7
倒角刀
自定
0.5~2倒角车刀ຫໍສະໝຸດ 外圆车刀、内孔车刀、端面车刀
自定
切槽刀
自定
槽宽2mm
螺纹刀
内螺纹、外螺纹
自定
M12X1、M6、M8
钻头
自定
φ6、φ8、φ10孔
有关注意事项:
(1)如果需要对刀仪,建议由考生自备。
(2)刀具结构、材料、形状不限,考生可以多准备刀具,根据实际灵活选用。
(3)装夹工作时用到V型块,请选手自备。参考工件范围(100mm)。

锌合金机加工刀具清单

锌合金机加工刀具清单
锌合金项目刀具清单

名称
加工方法

加工尺寸
车端面
产品中心到端面距离尺寸 27.50.1/-0.05
刀具编号
RD/3454-DJ-01
刀具类型
硬质合金端面车刀
车沟槽、底 φ52.2+0/-0.2、底端面;距
端面
离尺寸3
1
阀体(车床加 工一序)
镗孔
M52*1.5-7H底孔直径尺寸;深 度7
RD/3454-DJ-02 RD/3454-DJ-03
沟槽车刀 底孔镗刀
刀具预测 使用寿命
10000
10000
10000
车H螺纹
M52*1.5-7H(60°牙),螺纹 深度7
底孔刀 M20*1.5-6H底孔,深度min9.9
攻螺纹
M20*1.5-6H(60°牙),深度 7.5+0.5/-0
钻沉孔、底 φ8.2H9沉孔(深度2.4)、φ

7底孔(深度5.6)
RD/3454-DJ-04 RD/3454-DJ-05 RD/3454-DJ-06 RD/3454-DJ-07
内螺纹车刀 立铣刀
螺纹铣刀(整体) 成型刀
10000 10000 10000 10000
攻螺纹孔 M8X1-7H螺纹孔()深3.6
RD/3454-DJ-08
粗加工
φ4深19.66立铣刀
阀体(四轴加 工一序,双工
位)
扩孔
(φ4.4-φ4深19.66)成型刀
RD/3454-DJ-09 RD/3454-DJ-10
攻螺纹 攻牙5V1-1螺纹孔,深度3.5
RD/3454-DJ-11
钻孔
φ1.7
RD/3454-DJ-12

物业工程维修使用工具清单

物业工程维修使用工具清单

物业工程维修使用工具清单一、基础工具1.钳子:用于夹持、固定和拔除各种材料和零件。

2.扳手:用于拧紧和松开螺母和螺栓。

3.锤子:用于敲打、击打和推动材料和零件。

4.螺丝刀:用于拧紧和松开螺丝。

5.刀具:包括刀片、切割刀、剥线刀等,用于切割和修整材料。

6.硬木锤:用于敲打脆弱材料,以防止损坏。

二、电动工具1.电钻:用于打孔和螺丝钉安装。

2.电锯:用于切割木材和金属。

3.电磨机:用于研磨和抛光材料。

4.焊接机:用于焊接和连接金属材料。

5.切割机:用于切割金属管道和其他较硬的材料。

三、测量仪器1.卷尺:用于测量长度和距离。

2.水平仪:用于确定水平和垂直方向。

3.钢尺:用于测量较长的长度。

4.温度计:用于测量温度。

5.多功能测试仪:用于测试电路、电压和电流。

四、安全工具1.头盔:用于保护头部安全。

2.护目镜:用于保护眼睛免受颗粒、飞溅和化学品的伤害。

3.口罩:用于防止吸入有害气体和颗粒。

4.手套:用于保护手部免受划伤和化学品的伤害。

5.防护服:用于保护身体免受化学品、灰尘和其他有害物质的伤害。

五、清洁工具1.扫帚和簸箕:用于清理灰尘、碎屑和垃圾。

2.抹布和海绵:用于擦拭和清洁表面。

3.吸尘器:用于清理地板和地毯上的灰尘和脏物。

除了上述列举的工具之外,物业工程维修还需要根据具体需求和维修项目选择其他特定的工具。

例如,修理水管可能需要管道刀、管钳和密封胶。

修理电器设备可能需要用到万用表和电线连接器。

在选择和使用工具时,物业维修人员必须遵守相关的安全操作规程,并确保工具的质量和使用状态良好。

此外,物业维修人员还应定期检查和维护工具,以确保其正常工作和使用寿命。

总结起来,物业工程维修使用工具清单中包含了基础工具、电动工具、测量仪器、安全工具和清洁工具。

使用正确的工具能够提高维修工作的效率和质量,保证物业设施的正常运行和维护。

维修常用工具清单

维修常用工具清单

维修常用工具清单一、基础工具1. 扳手:用于拧紧或松开螺丝、螺母等紧固件的工具,常见的有十字扳手、平头扳手、套筒扳手等。

2. 螺丝刀:用于拧紧或松开螺丝的工具,常见的有十字螺丝刀、平头螺丝刀等。

3. 锤子:用于敲击或打击工件的工具,常见的有木工锤、铁锤等。

4. 钳子:用于夹持或固定工件的工具,常见的有长钳、扁嘴钳、圆嘴钳等。

5. 剪刀:用于剪切绳子、布料等的工具,常见的有普通剪刀、电工剪刀等。

6. 刀具:包括刀片、割刀等,用于切割、割开物体或处理材料。

二、测量工具1. 卷尺:用于测量长度的工具,常见的有软尺、钢尺等。

2. 铅笔:用于在工件上做标记或画线的工具,常用的有铅芯笔、油性笔等。

3. 游标卡尺:用于测量工件的外径、内径、深度等尺寸,具有较高的测量精度。

4. 量规:用于测量工件的长度、高度等尺寸,常见的有千分尺、百分尺等。

5. 测量仪器:如数字万用表、示波器等,用于测量电流、电压、频率等电学参数。

三、电动工具1. 电钻:用于钻孔或拧紧螺丝的工具,常见的有手持电钻、台钻等。

2. 电锯:用于切割木材、金属等的工具,常见的有电圆锯、电锯等。

3. 打磨机:用于磨削、抛光工件的工具,常见的有角磨机、砂轮机等。

4. 喷枪:用于喷涂颜料、清洗工件等的工具,常见的有喷漆枪、高压清洗枪等。

5. 风枪:用于吹除灰尘、清理工件等的工具,常见的有电动风枪、气动风枪等。

四、绝缘工具1. 绝缘电工镊子:用于握持或夹持电线、电缆等的工具,具有良好的绝缘性能。

2. 绝缘螺丝刀:用于拧紧或松开绝缘螺丝的工具,具有良好的绝缘性能。

3. 绝缘胶带:用于包裹或绑扎电线、电缆等,具有良好的绝缘性能和隔离性能。

4. 绝缘手套:用于保护手部免受电流侵害的工具,具有良好的绝缘性能。

五、其他工具1. 润滑剂:用于润滑机械零件、减少磨损和摩擦的工具,常见的有润滑油、润滑脂等。

2. 清洁剂:用于清洁工件、去除污垢的工具,常见的有酒精、清洁液等。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档