Mastercam 2017 数控车后处理修改1、 后处理文件目录: 安装盘(比如 D:Program Files)-Mcam2017(shared Mcam2017)-lathe-Posts2、 程序扩展名修改:1) FANUC系统的扩展名为.NC; KND系统的扩展名为.RPG2) 在软件中修改:机床(MACHINE)-机床定义(machine definition)-控制定义(Edit the control definition) -Files-NC file extension3) 注意:在软件中直接点击工具栏图标“控制程序”,即使修改了也无法保存3、 修改前强烈建议先备份软件自带的post文件,以防万一4、 机床含义:Axis Slant Bed Lathe MM两轴斜床身数控车,对应的后处理软件为Generic Fanuc 2X Lathe pst5、 在后处理文件目录内,找到需要的后处理文件,用记事本打开,按下列内容酌情修改, 建议用记事本的“搜索”功能查找到相对应的位置,否则文件行数太多,找不到6、 去掉程序开头的%和文件路径等注释 pheader$ #start of fileif miscopflag = zero,If subs_before,“”, e$ #Sav_spc = spaces $Spaces $ =0# ”(“,” PROGRAM NAME-”,# ”(“,” DATE=DD-MM-YY-”,# ”(“” DATE- # ”(“” DATE- #”(",” TIME- #”(",” TIME- # ”(“,” MCX FILE-”, …… #”(“,” NC FILE-”, ……# ”(“,” MATERIAL-”, …… Spaces$ = sav_spcPbld, n$, *smetric,“G40”, e$ Miscopflag = one程序太多,此处省略,不影响,后面类同), #“%”, e$]7、 取消Y轴:Start of file and toolchange setup[if y-axis_sch, ‘VO.'], 把此行删除8、 去掉 G54for force_wcs :yes $ # Force_wcs output at every toolchange yes表示有G54;改成no,则去掉G549、 去掉程序结尾的%peof $ # End of file for non-zero toolptoolend$comenent $n$, “M30”, e$if subs_before, #……[……Subout $ = zero#”%”, e$ 加#号去掉结尾处的%mergesub$ # merge transform subs clearsub$Subout$ = zero#”%”, e$ 加#号去掉结尾处的%Pwcs #G54 + coordinate ……10、 取消 G50 G96prpm # Output for start spindle(搜索此处)speed = speedrpmpcssg50 #Output constant surface speed dampif css_actv$, pbld, n$, #*sg50, *maxss $, e$ 力口#号,程序中无 G50 最高速限制pcss #Output constant surface speedspeed = gspeedif css_actv$, pbld, n$, #*sg9697, *speed, 加#号,程序中无 G96 恒线速!speed11、 结尾返回参考点换刀# retract to reference returnpbld, n$, ……pcan1,#pbld, n$, *sg28ref,“U0.”, “W0.”,pnullstop, strcantext, e$#if home_type > m_one, pbld, n$, *toolno, e$ 此处加#号删除 T0100 命令]。