收藏 分享(赏)

MasterCAM9.1的刀具清单功能.doc

上传人:精品资料 文档编号:8372093 上传时间:2019-06-23 格式:DOC 页数:20 大小:110.50KB
下载 相关 举报
MasterCAM9.1的刀具清单功能.doc_第1页
第1页 / 共20页
MasterCAM9.1的刀具清单功能.doc_第2页
第2页 / 共20页
MasterCAM9.1的刀具清单功能.doc_第3页
第3页 / 共20页
MasterCAM9.1的刀具清单功能.doc_第4页
第4页 / 共20页
MasterCAM9.1的刀具清单功能.doc_第5页
第5页 / 共20页
点击查看更多>>
资源描述

1、MasterCAM9.1 后处理自动生成刀具清单,使用方法:将下面的内容复制到记事本内,并将其更名为 Mpfan.pst,pst 为后缀,再将该文件拷贝至 MasterCAM9.1 的安装目录 C:Mcam9MillPosts,覆盖原文件,然后启动软件,可以在 NC 程序开头生成刀具清单。经典版本,绝对好用!# Post Name : MPFAN# Product : MILL# Machine Name : FANUC# Control Name : 6M# Description : GENERIC FANUC 6M STYLE POST# Associated Post :# Mill/

2、Turn : NO# 4-axis/Axis subs. : NO# 5-axis : NO# Executable : MP 4.03# *# *-*# * 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: |#

3、-# 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 =

4、 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

5、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 position? bug3 : 0 # Append whatline no. to each NC line?bug4 : 0 # Append NCI

6、line no. to each NC line?whatno : yes # Do not perform whatline branches?strtool_v7 : 2 #Use Version 7 toolname, 1= path components, 2=stringget_1004 : 1 #Find gcode 1004 with getnextop?rpd_typ_v7 : 1 #Use Version 7 style contour flags?arcoutput : 2 # 0 = IJK, 1 = R no sign, 2 = R signed neg. over 1

7、80breakarcs : 0 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcsstagetool : 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 0.3 #Decimal, absolute, 4 placefs

8、2 0.4d #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 0.1 #Decimal, absolute, 1 placefs 8 0.2 #Decimal, absolute, 2 placefs 9 0.3 #Decimal, absolute, 3 placefs 10 0 4t #No decimal, absolute, four trail

9、ingfs 11 0.4t #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

10、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

11、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# -fm

12、t 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 tld

13、ia # 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 # In

14、itial 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# -

15、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.d

16、o_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

17、: no # Omit breakup of x/y & z rapid movesomitcrlf : no # Omit CR/LFomitrefht : no # Dont use reference height on first non-canned Z moveomitseq : yes # Omit sequence no.omitz : no # Omit first Z movement for non-canned-cyclesprogname : 1 # Use uppercase for program namescalex : 1.0 # Scaling of .NC

18、I at input - x,y,z,i,j,kscaley : 1.0 # Scaling of .NCI at input - x,y,z,i,j,kscalez : 1.0 # 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 pwrtt

19、absswp : 0 # Absolute sweepdrlgsel : -1 # Drill Select Initializemaxfrdeg : 9999 # Limit for feed in deg/minabsinc : 0 # Absolute/Incremental toggle for modality tcnt : 0 # Count the number of tool changesadelta : 0 # Calculation for deg/minldelta : 0 # Calculation for deg/minzdelta : 0 # Calculatio

20、n 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# -s

21、srange = 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 c

22、ycle 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

23、 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 NU

24、LL # 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 # “ “sop

25、note # Target stringfstrsel sop00 opcode sopnote # -# Select motion G code sg00 G0 # Linear movement at rapid feedrate sg01 G1 # Linear movement at feedrate sg02 G2 # Circular interpolation CW sg03 G3 # Circular interpolation CCW sgcode # Target string fstrsel sg00 gcode sgcode # -# Select increment

26、al or absolute G code sg90 G90 # Absolute G codesg91 G91 # Incremental G codesgabsinc # Target string fstrsel sg90 absinc sgabsinc # -# Select spindle start sm04 M4 # Spindle reverse sm05 M5 # Spindle off sm03 M3 # Spindle forward spdlon # Target string fstrsel sm04 spdlsel spdlon# -# Cutter compens

27、ation code scc0 “ # 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 rem

28、ove “#“ at the postline call “pcancelcc“sccomp # Target stringfstrsel scc0 ccomp sccomp# -# Select work plane G codesg17 G17 # XY plane code sg19 G19 # XZ plane code sg18 G18 # YZ plane code sgplane # Target stringfstrsel sg17 plane sgplane # -# Work coordinate system sg50 G92 # Work coordinate syst

29、em 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 dwell sg

30、81d G82 # drill - with dwell sg83 G83 # peck drill - no dwell sg83d G83 # peck drill - with dwell sg73 G73 # chip break - no dwell sg73d G73 # chip break - with dwell sg84 G84 # tap - no dwellsg84d G74 # tap - with dwell (selects left hand)sg85 G85 # bore #1 - no dwell sg85d G89 # bore #1 - with dwe

31、ll sg86 G86 # bore #2 - no dwell sg86d G86 # bore #2 - with dwell sgm1 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 = 07# dwell

32、 = 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

33、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 = 999.999 prv_frdeg = 999.999 prv_frplunge = 999.999 linarc = 0rotstrt = 1pabs # Absolute G

34、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

35、 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 st

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报