1、 后处理文件目录:
安装盘(比如D:Program Files)-Mcam2017(shared Mcam2017)-lathe-Posts
2、 程序扩展名修改:
1) FANUC系统的扩展名为.NC;KND系统的扩展名为.RPG 2) 在软件中修改:机床(MACHINE)-机床定义(machine definition)-控制定义(Edit the
control definition)-Files-NC file extension
3) 注意:在软件中直接点击工具栏图标“控制程序”,即使修改了也无法保存
3、 修改前强烈建议先备份软件自带的post文件,以防万一。
4、 机床含义:Axis Slant Bed Lathe MM 两轴斜床身数控车,对应的后处理软件为Generic
Fanuc 2X Lathe pst
5、 在后处理文件目录内,找到需要的后处理文件,用记事本打开,按下列内容酌情修改,
建议用记事本的“搜索”功能查找到相对应的位置,否则文件行数太多,找不到。
6、 去掉程序开头的%和文件路径等注释:
pheader$ #start of file if miscopflag = zero, [
If subs_before, “”, e$ # ……(程序太多,此处省略,不影响,后面类同),#“%”,e$ Sav_spc = spaces $ Spaces $ =0 在此处加#号,#表示注释不…… 执行的意思。此处去掉了% # ”(“,” PROGRAM NAME-”,…… # ”(“,” DATE=DD-MM-YY-”,…… # ”(“,” DATE-…… 这边增加#号,去掉了程序# ”(“,” DATE-…… 开头的项目名、日期、时间# ”(“,” TIME-…… 等注释 # ”(“,” TIME-…… ……
此处程序开头加G40指令,# ”(“,” MCX FILE-”, ……
如果要加其它程序段,回车# ”(“,” NC FILE-”, ……
另起一行: # ”(“,” MATERIAL-”, ……
“G28 U0.”, e$ Spaces$ = sav_spc
“G28 W0.”,e$ Pbld, n$, *smetric, “G40”, e$
则程序为: Miscopflag = one
G21 G40; ]
G28 U0.;
G28 W0.;
取消半径补偿回参考点换刀
7、 取消Y轴:
Start of file and toolchange setup
[if y-axis_sch, ‘VO.’], -------------------------------------------把此行删除 8、 去掉G54
for force_wcs : yes $ # Force_wcs output at every toolchange yes 表示有G54; 改成no,则去掉G54 9、 去掉程序结尾的%
peof $ # End of file for non-zero tool
ptoolend$ comenent $ n$, “M30”, e$
if subs_before, #…… [……
Subout $ = zero
#”%”, e$ 加#号去掉结尾处的% mergesub$ # merge transform subs clearsub$ ……
Subout$ = zero
#”%”, e$ 加#号去掉结尾处的% Pwcs #G54 + coordinate ……
10、 取消G50 G96
prpm # Output for start spindle(搜索此处) speed = speedrpm
……
pcssg50 #Output constant surface speed damp
if css_actv$, pbld, n$, #*sg50, *maxss $, e$ 加#号,程序中无G50最高速限制 pcss #Output constant surface speed speed = gspeed
if css_actv$, pbld, n$, #*sg9697, *speed, …… 加#号,程序中无G96恒线速 !speed
11、 结尾返回参考点换刀
# retract to reference return pbld, n$, …… ……
pcan1, #pbld, n$, *sg28ref, “U0.”, “W0.”, pnullstop, strcantext, e$
#if home_type > m_one, pbld, n$, *toolno, e$ 此处加#号删除T0100命令 ]
因篇幅问题不能全部显示,请点此查看更多更全内容