iCAx开思网
标题:
如何处理生成的程序头!
[打印本页]
作者:
sosoo
时间:
2002-6-16 08:28
标题:
如何处理生成的程序头!
我用MASTERCAM来做程序但有很大的程序头,我想知道工厂是怎么用
自动编出来的程序的!是直接用还是有其他的方法
作者:
huxp
时间:
2002-6-16 11:30
说清楚,什么样子的程序头。你需要什么样的。
作者:
zl
时间:
2002-6-16 18:53
粘一个pst文件和nc样本上来
作者:
morningstar
时间:
2002-6-18 00:35
nc的格式完全是由mastercam在后处理时所用的 .pst 文件来控制的
作者:
241851
时间:
2002-6-25 21:39
很简单,如FUNAC系统,在MASTERCAM9.0中,先打开MACM-MILL-POSTS,找到MPFAN.PST文件,用记事本打开它,并找到#Start of file for non-zero tool number
pcuttype
toolchng = one
if ntools = one,
[
#skip single tool outputs, stagetool must be on
stagetool = m_one
!next_tool
]
"%", e
*progno, e
"(PROGRAM NAME - ", sprogname, ")", e
"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e
pbld, n, *smetric, e
pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e
sav_absinc = absinc
if mi1 <= one, #Work coordinate system
[
absinc = one
pfbld, n, sgabsinc, *sg28ref, "Z0.", e
pfbld, n, *sg28ref, "X0.", "Y0.", e
pfbld, n, "G92", *xh, *yh, *zh, e
absinc = sav_absinc
]
pcom_moveb
c_mmlt #Multiple tool subprogram call
ptoolcomment
comment
pcan
if stagetool >= zero, pbld, n, *t, "M6", e
pindex
if mi1 > one, absinc = zero
pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,
pfcout, *speed, *spindle, pgear, strcantext, e
pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e
absinc = sav_absinc
pcom_movea
toolchng = zero
c_msng #Single tool subprogram call (这是程序头)和尾:peof #End of file for non-zero tool
pretract
comment
#Remove pound character to output first tool with staged tools
#if stagetool = one, pbld, n, *first_tool, e
n, "M30", e
mergesub
clearsub
mergeaux
clearaux
"%", e 将里面的一些修改,这里我不知您要何格式,因此不便改。
作者:
ouxisong
时间:
2002-6-26 01:00
到这里看一下
https://cax2001.3322.org/cgi-bin/topic.cgi?forum=3&topic=968&show=50
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3