找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 16920|回复: 15
打印 上一主题 下一主题

绝望了~~一个小问题,难倒了我~~~:。。。(

[复制链接]
跳转到指定楼层
1
发表于 2005-7-2 10:20:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
向您问个问题我们现在用mdfa后处理文件生成ptp文件,但是我想每次生成程序的时候,怎么样才能把文件名写进去呢,比如说我已生成了一个a.cls
文件,想在用mdfa生成ptp的时候,ptp里面的第一行会出现(a.ptp 或a.cls)都行主要是让加工操作者明白这是哪条程序!!万分感谢!
  
我看到其它人编写的mdfa能在里面加入生成的时间和日期。也就是在
mdfa dos 下可写入date 和time 那么文件名用什么样的呢?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2005-7-5 16:25:20 | 只看该作者
我的贴子真的没有人会吗?????而且附件没有人下载,我可以肯定,上面的mdfa文件,我们已经用过7年了,而且一点问题都没有出现,只是我现在
不想每次生成了tp文件(ptp)还改其中的后处理入麻烦!!请教!!!!!
3
发表于 2005-7-5 19:17:17 | 只看该作者
再没人帮我,我就急死了!~~~~~~~~~~~~~
4
发表于 2005-7-5 21:40:10 | 只看该作者
能不能把HAAS加工中心的UG的后处里程序发给我吗谢谢   
   caoronghui99011@163.com这是我的油箱
5
发表于 2005-7-6 09:08:43 | 只看该作者
Initial Codes
The Initial Codes menu allows you to specify the content and order of machine tool specific codes at the beginning of the punch tape file.
  
You have the following options:
  
Partno - This option controls whether man-readable partno is output.
  
Rewind Stop Code - This option allows you to specify the codes that will be used for the rewind stop code. The rewind stop code for ISO is % and for EIA is #. GPM will replace the string <RWS> with one of the following in the header blocks. You have the following choices.
  
Rewind Stop with End-of-Block.
  
Rewind Stop without End-of-Block.
  
End-of-Block code only.
  
None.
  
Other (User-defined). You can use this option to specify a code other than % or #. You can also use this option to pass characters that the GPM cannot convert directly from the CLF into machine code (these characters are unprintable characters) through the GPM by using their EIA or ISO octal values. The octal values must be contained within angle brackets(<&gt to differentiate them from text. You must enter the character which represents the Initial Character String in ISO (or EIA) format and the number which represents the length of the Initial Character String in the ISO (or EIA) format. If you use angle brackets, they must be counted in the length of the code. Then indicate whether to output the End Of Block with the Initial Characters.
  
Program ID - The program ID is the character string that will be output preceding the program number or name. GPM will replace the variable &ltROGID> in the header blocks with the string specified in the program ID specification menus. If you include the variable &ltROGID> in your initial header blocks, you must specify the character string and number of characters for the program ID. For instance, the string (&ltROGID>,&ltARTNO,1,4&gt would generate (PGM,1234) in the NC tape file if the program ID was PGM and the first four characters of PARTNO was 1234. You have the option to specify the character and number of characters for ISO (or EIA) for the program ID.
  
Header Blocks - This option allows you to define up to ten initial blocks of the NC tape output file. These blocks can literals or variables. GPM will replace the variables at run time. The following variables are defined.
  
<DAY>
  The current day.
   
<IMONTH>
  The current month number (e.g. 09).
   
<MONTH>
  The current month name (e.g. SEP).
   
<YEAR>
  The current year.
   
<HOUR>
  The current hour.
   
<MIN>
  The current minute.
   
&ltARTNO,c1,c2>
  Range of text within the PARTNO statement. Will be ignored if not programmed.
   
<PPRINT,n,c1,c2>
  Range of text within the nth PPRINT statement. Will be ignored if n PPRINT statements not programmed.
   
<RWS>
  Rewind stop or user defined rewind stop.
   
<PROGID>
  The current program ID code if defined.
   
<TOOLDEF>
  The current tool definition blocks if defined.
   
  <SEQNO>
  The next sequential sequence number.
   
<TOOLNO>
  The next tool (or turret) number in the current CLF. Used in tool definition blocks only.
   
  
You will have the option to enter data for any header block line, change the number of header block lines or move header block lines ahead or other header block lines.
  
The initial codes for a new MDF will be as follows:
  
1) <RWS>
  
The header blocks for a Deckel Dialog 11 control might look like the following:
  
1) <SEQNO><RWS>(M-D11-000000-<IMONTH>- <DAY>-<YEAR>-<PARTNO,23,30&gt
  
2) <SEQNO>
  
3) <SEQNO>?
  
4) <SEQNO>
  
5) <SEQNO><TOOLDEF>
  
The above header blocks would output the following NC tape file for a CLF with a PARTNO and three LOAD commands
6
发表于 2005-7-6 09:11:13 | 只看该作者
难到这里面真的没有高手吗?????
我找到上面的东西了,是在ug的doc里面,里面讲,Initial Codes 只能包含
<DAY>
  
<IMONTH>
  <MONTH>
  
<YEAR>
  
<HOUR>
   
<MIN>
   
&ltARTNO,c1,c2>
  &ltPRINT,n,c1,c2>
   
<RWS>
  
&ltROGID>
   
<TOOLDEF>
   <SEQNO>
  
<TOOLNO>
  几个参数,而我说的那个提取文件名的变量是没有的,所以我绝望了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
发表于 2005-7-6 09:47:31 | 只看该作者
为什么现在还在用CLS文件格式。
  
NX后基本不用了。 现在的后处理可快了(NX3.0)
8
发表于 2005-7-6 10:02:14 | 只看该作者
怎么个快法,你用什么方法加快了后处理的速度呢?在POSTBULID里怎么设定,请指教
9
发表于 2005-7-6 10:08:16 | 只看该作者
假如说我们以前做的prt  里面的程序因为修改了某个实体或片体,而里面的程序就变为stop那样的标实号,在这种情况下,我可以找到cls文件,重新生成
ptp文件,这样做非常安全!!!!!我宁愿用cls也不希望用postbulider因为他内部也是这个转换过程,而不生成cls 文件。。。
10
发表于 2005-7-6 18:50:51 | 只看该作者
以前我们公司是另外做的程序到.cls里抓取刀具信息的,可以是肯定可以的,有空的话我帮你找找,现在已经不用了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2025-2-27 11:45 , Processed in 0.028707 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2025 www.iCAx.org

快速回复 返回顶部 返回列表