logo

您所在位置网站首页 > 海量文档  > 汽车/机械/制造 > CAD/CAE/CAM

ug后处理定制的命令.doc 7页

本文档一共被下载: ,您可全文免费在线阅读后下载本文档。

  • 支付并下载
  • 收藏该文档
  • 百度一下本文档
  • 修改文档简介
全屏预览

下载提示

1.本站不保证该用户上传的文档完整性,不预览、不比对内容而直接下载产生的反悔问题本站不予受理。
2.该文档所得收入(下载+内容+预览三)归上传者、原创者。
3.登录后可充值,立即自动返金币,充值渠道很便利
在pd_cmd_custom_command(用户自定义)——定义命令 1.在程序的末尾加上加工的时间(注意字符间的空格,不能少也不能多) global mom_machine_time MOM_output_literal (运行时间:[ format %.2f $mom_machine_time]分钟) 最后效果:(运行时间:0.76分钟) 2.在程序末尾加上生成程序的时间 global mom_date /u4?(C9](t,N6S:Z6Uwww.CAxHMOM_output_literal ";date is :$mom_date" 最后效果:;date is :Sat Jun 01 19:38:44 2013 加入刀具列表 # Place this custom command in either the start of program # or the end of program event marker to generate a tool list # in your NC file. # # The Shop Doc template file "pb_post_tool_list.tpl" distributed with # Post Builder in "POSTBUILD/pblib/misc" directory can be copied # to the "mach/resource/postprocessor" or "mach/resource/shop_docs" directory, # in case that your UG runtime environment does not have access to the # Post Builder installation. # # Accessing "pb_post_tool_list.tpl" in other location can also be accomplished # by changing the code below titled "Generate tool list data" in this proc. # # The variable "mom_sys_tool_list_output_type" set in this proc allows you # to select the type of tool list to be generated. # The options are: # # "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. # # 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 th

发表评论

请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码: 点击我更换图片

“原创力文档”前称为“文档投稿赚钱网”,本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有【成交的100%(原创)】。原创力文档是网络服务平台方,若您的权利被侵害,侵权客服QQ:3005833200 电话:19940600175 欢迎举报,上传者QQ群:784321556