iCAx开思网

标题: 绝望了~~一个小问题,难倒了我~~~:。。。( [打印本页]

作者: coogur    时间: 2005-7-2 10:20
标题: 绝望了~~一个小问题,难倒了我~~~:。。。(
向您问个问题我们现在用mdfa后处理文件生成ptp文件,但是我想每次生成程序的时候,怎么样才能把文件名写进去呢,比如说我已生成了一个a.cls
文件,想在用mdfa生成ptp的时候,ptp里面的第一行会出现(a.ptp 或a.cls)都行主要是让加工操作者明白这是哪条程序!!万分感谢!
  
我看到其它人编写的mdfa能在里面加入生成的时间和日期。也就是在
mdfa dos 下可写入date 和time 那么文件名用什么样的呢?
作者: coogur    时间: 2005-7-5 16:25
我的贴子真的没有人会吗?????而且附件没有人下载,我可以肯定,上面的mdfa文件,我们已经用过7年了,而且一点问题都没有出现,只是我现在
不想每次生成了tp文件(ptp)还改其中的后处理入麻烦!!请教!!!!!
作者: coogur    时间: 2005-7-5 19:17
再没人帮我,我就急死了!~~~~~~~~~~~~~
作者: 撒酒疯情    时间: 2005-7-5 21:40
能不能把HAAS加工中心的UG的后处里程序发给我吗谢谢   
   caoronghui99011@163.com这是我的油箱
作者: coogur    时间: 2005-7-6 09:08
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
作者: coogur    时间: 2005-7-6 09:11
难到这里面真的没有高手吗?????
我找到上面的东西了,是在ug的doc里面,里面讲,Initial Codes 只能包含
<DAY>
  
<IMONTH>
  <MONTH>
  
<YEAR>
  
<HOUR>
   
<MIN>
   
&ltARTNO,c1,c2>
  &ltPRINT,n,c1,c2>
   
<RWS>
  
&ltROGID>
   
<TOOLDEF>
   <SEQNO>
  
<TOOLNO>
  几个参数,而我说的那个提取文件名的变量是没有的,所以我绝望了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
作者: airen    时间: 2005-7-6 09:47
为什么现在还在用CLS文件格式。
  
NX后基本不用了。 现在的后处理可快了(NX3.0)
作者: cnc1974    时间: 2005-7-6 10:02
怎么个快法,你用什么方法加快了后处理的速度呢?在POSTBULID里怎么设定,请指教
作者: coogur    时间: 2005-7-6 10:08
假如说我们以前做的prt  里面的程序因为修改了某个实体或片体,而里面的程序就变为stop那样的标实号,在这种情况下,我可以找到cls文件,重新生成
ptp文件,这样做非常安全!!!!!我宁愿用cls也不希望用postbulider因为他内部也是这个转换过程,而不生成cls 文件。。。
作者: 黄瓜    时间: 2005-7-6 18:50
以前我们公司是另外做的程序到.cls里抓取刀具信息的,可以是肯定可以的,有空的话我帮你找找,现在已经不用了。
作者: coogur    时间: 2005-7-6 19:06
谢谢了,我发信息给你了!
作者: liangbo803028    时间: 2005-7-6 19:24
这个我不会呀,会的话我一定帮你
我也在找这个呀
希望你快点找到原因,公布出来,对大家也有好处
多谢
作者: coogur    时间: 2005-7-7 08:52
chenyong_1979 版大
他是我们唯一的希望,他说有可能能帮助我!!!!!!!!!!
作者: haizhifan    时间: 2005-7-7 16:50
怎么不用postbuilder做后置处理呢
这样一切问题都不是问题了
作者: coogur    时间: 2005-7-7 17:42
cls对我来说很有用。。。我们可以用他对那些由于操作失误或其它原因
导致的程序不要再生的进行重新生成ptp文件~~~~~~~
作者: coogur    时间: 2005-7-12 13:21
版大为什么还不给我那个程序呀。大家还有没有好方法能在程序生成时自动把
文件名写到程序里面的呢。万分感谢!




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3