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

iCAx开思网

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

【题目】给大于5分高手出个难题

[复制链接]
31
发表于 2002-11-24 11:36:29 | 只看该作者
先谢谢你。
我说的不够明白。实际上,我每打开一个新的PRT,后处理输出时都要选路径如E:\ptp。
我的意思是说能否象mastercam那样,不需要我自己指定路径,它的缺省路径就是E:\ptp\xxx.xx。 
32
发表于 2002-11-24 12:02:51 | 只看该作者
我也闷着::?::?
33
发表于 2002-11-27 23:06:34 | 只看该作者
我觉得应该修改ug_env.dat中相关参数,或许能指定输出目录
34
发表于 2003-9-28 11:00:44 | 只看该作者
在投影加工中,如何控制FEED值?
35
发表于 2003-9-28 11:08:48 | 只看该作者
UG编程或后处理,在投影加工中,如何控制FEED值?
36
发表于 2006-2-11 11:40:56 | 只看该作者
原帖由 ycyddh 于 2002-11-22 23:57 发表
可惜我不能给分啊
  
能不能给个图片,好像找不到哟::?


我在图框内加入Tool Diameter: $mom_tool_diameter  
后处理时出现意为"MOM_TCL:处理事件时翮译程序回归错误"
请问怎么回事?

[ 本帖最后由 ssfjyv 于 2006-2-11 11:44 编辑 ]

本帖子中包含更多资源

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

x
37
发表于 2006-2-11 13:47:14 | 只看该作者
高手们,帮我改改好吗?
//===============================================================================================
//                                   T O O L   L I S T                                          
//===============================================================================================
//                                                                                             
//-----------------------------------------------------------------------------------------------
//MILL                 DESCRIPTION          DIAMETER   COR RAD    FLUTE LEN  ADJ REG            
//-----------------------------------------------------------------------------------------------
//D8                   平底刀 8 mm            8.0000     0.0000     8.0000     0        
//D6R0.5               牛鼻刀 6R0.5 mm        6.0000     0.5000     30.0000    0        
//D2R1                 波头刀 2 mm           2.0000     1.0000     5.0000     0        
//===============================================================================================
G90G28Z0




M30
//==========================================
// TOTAL Machine Time: 69.10
//------------------------------------------




#
# The desired tool list type can be set by changing the code below.
# The default is set to "GROUP_BY_TYPE".
#

   global mom_sys_tool_list_initialized
   global mom_sys_tool_list_output_type


   if { ![info exists mom_sys_tool_list_initialized] || !$mom_sys_tool_list_initialized } {
      MOM_output_to_listing_device "proc PB_CMD_init_tool_list must be executed in the Start of Program before PB_CMD_create_tool_list is called."
return
   }


  #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # Set mom_sys_tool_list_output_type to the desired output fashion.
  #
  #   "ORDER_IN_USE"     - List tools used in the program in the order of operations.
  #   "ALL_UNIQUE"       - List all unique tools once for each in the order of use.
  #   "GROUP_BY_TYPE"    - List tools in groups of different tool types.
  #
  #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # set mom_sys_tool_list_output_type "ORDER_IN_USE"
  # set mom_sys_tool_list_output_type "ALL_UNIQUE"
   set mom_sys_tool_list_output_type "GROUP_BY_TYPE"


   global mom_sys_control_out mom_sys_control_in
   global current_program_name
   global mom_tool_number mom_tool_length_adjust_register mom_tool_name


  #----------------------------------------------------------------------------
  # Save info for the currently active tool in the program being post-prcessed
  # before starting Shop Doc mechanism for tool list generation.
  #----------------------------------------------------------------------------
   if [llength [info commands PB_CMD_save_active_oper_tool_data] ] {
      PB_CMD_save_active_oper_tool_data
   }


  #-----------------------------------------------------------
  # Create tool list per selected top-level group.
  # Group name is set to blank if no group has been selected.
  #-----------------------------------------------------------
   global mom_parent_group_name

   if [info exists mom_parent_group_name] {
      set current_program_name $mom_parent_group_name
   } else {
      set current_program_name ""
   }


   set ci " "
   set co " "

   if [info exists mom_sys_control_in] { set ci $mom_sys_control_in }
   if [info exists mom_sys_control_out] { set co $mom_sys_control_out }


  #*************************
  # Generate tool list data
  #*************************
   set template_file pb_post_tool_list.tpl

   global tcl_platform
   if [string match "windows" $tcl_platform(platform)] {
      set pb_lib_misc_dir [MOM_ask_env_var UGII_BASE_DIR]\\postbuild\\pblib\\misc\\
   } else {
      set pb_lib_misc_dir [MOM_ask_env_var UGII_BASE_DIR]/postbuild/pblib/misc/
   }  

   set cam_post_dir     [MOM_ask_env_var UGII_CAM_POST_DIR]
   set cam_shop_doc_dir [MOM_ask_env_var UGII_CAM_SHOP_DOC_DIR]

   if { [file exists ${pb_lib_misc_dir}${template_file}] } {

      MOM_do_template_file ${pb_lib_misc_dir}${template_file}

   } elseif { [file exists ${cam_post_dir}${template_file}] } {

      MOM_do_template_file ${cam_post_dir}${template_file}

   } elseif { [file exists ${cam_shop_doc_dir}${template_file}] } {

      MOM_do_template_file ${cam_shop_doc_dir}${template_file}

   } else {

      MOM_output_to_listing_device  "ERROR : Template file pb_post_tool_list.tpl is not found in the following directories: \n \n          $pb_lib_misc_dir \n          $cam_post_dir \n          $cam_shop_doc_dir \n \n        Tool list cannot be generated.\n"
return
   }



  #------------------
  # Tool list header
  #------------------
   shop_doc_output_literal "$co===============================================================================================$ci"
   shop_doc_output_literal "$co                                   T O O L   L I S T                                           $ci"
   shop_doc_output_literal "$co===============================================================================================$ci"
  

  #------------------
  # Output tool list
  #------------------
   global tool_data_buffer
   global mom_sys_tool_stack

   switch $mom_sys_tool_list_output_type {

      "ORDER_IN_USE" {
         set tool_list $mom_sys_tool_stack(IN_USE)
      }

      "GROUP_BY_TYPE" {
         set tool_list [concat $mom_sys_tool_stack(LATHE)  $mom_sys_tool_stack(DRILL)  $mom_sys_tool_stack(MILL)]
      }

      default {
         set tool_list $mom_sys_tool_stack(ALL)
      }
   }


   set prev_tool_type ""

   foreach tool $tool_list {

      set tool_type $tool_data_buffer($tool,type)

     # Output tool type header if it changes.
      if { ![string match "$tool_type" $prev_tool_type] } {
         if { [info exists tool_data_buffer($tool_type,header)] &&  $tool_data_buffer($tool_type,header) != "" } {
            shop_doc_output_literal "$tool_data_buffer($tool_type,header)"
         }
      }

      if [info exists tool_data_buffer($tool,output)] {
         shop_doc_output_literal "$tool_data_buffer($tool,output)"
      }
      set prev_tool_type $tool_type
   }



  #------------------
  # Tool list footer
  #------------------
   shop_doc_output_literal "$co===============================================================================================$ci"


  #-------------------------------------------------------------------------------
  # Restore info for the currently active tool in the program being post-prcessed.
  #-------------------------------------------------------------------------------
   if [llength [info commands PB_CMD_restore_active_oper_tool_data] ] {
      PB_CMD_restore_active_oper_tool_data
   }
38
发表于 2006-2-11 13:47:49 | 只看该作者
能改成以下这样就好了


(                              T O O L   L I S T                                    )                                       

                                                   
(MILL                 DESCRIPTION          DIAMETER   COR RAD    FLUTE LEN  ADJ REG  )         
(D8                   平底刀 8 mm            8.0000     0.0000     8.0000     0  )      
(D6R0.5               牛鼻刀 6R0.5 mm        6.0000     0.5000     30.0000    0  )      
(D2R1                 波头刀 2 mm            2.0000     1.0000     5.0000     0   )     

G90G28Z0




M30
//==========================================
// TOTAL Machine Time: 69.10
//------------------------------------------
39
发表于 2006-2-13 09:14:01 | 只看该作者
有人知道吗?
40
发表于 2006-6-23 14:11:28 | 只看该作者
求教版主!可否发一个pui档案给我!以下是本人用Post Builder编写的适用于三菱控制器的后处理格式。

%
O100(TD=10.00  CR=0.00  FL=50.00)
G40 G17 G49 G80
G91 G28 Z0.
M03
G90 G00 X0.0 Y0.0
X-3.848 Y-1.417
G00 Z23.
Z13.
G01 Z10. F350.
G41 Y1.583 D02
X-4.098
X-13.517 F500.
G02 X-18.517 Y6.583 R5.
G01 Y13.833
G02 X-13.517 Y18.833 R5.
G01 X-2.534
G02 X2.466 Y13.833 R5.
G01 Y6.583
G02 X-2.534 Y1.583 R5.
G01 X-4.348
G40 Y-1.417
G00 Z23.
X19.014 Y-10.379
Z13.
G01 Z10. F200.
G41 X16.015 Y-10.454
G02 X16.018 Y-10.704 R10.
X6.018 Y-20.704 R10. F650.
X-3.982 Y-10.704 R10.
X6.018 Y-.704 R10.
X16.018 Y-10.704 R10.
X16.015 Y-10.954 R10.
G40 G01 X19.014 Y-11.029
M05
M30
%
(時間 :0.36)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

GMT+8, 2025-3-1 12:16 , Processed in 0.031307 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2025 www.iCAx.org

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