UG后处理变量 下载本文

# This custom command will activate the turbo process mode for # the 3-axis mill posts. The execution time will be about 5 to # 10 times faster than the normal process. #

# Special Blocks are included in any 3-axis mill post created # by Post Builder v3.2.1 and on. #

# The blocks being output are formatted similar to that of the # Fanuc type of controllers. #

# The following turbo blocks will appear in the Block section # of N/C Data Definitions in Post Builder: #

# linear_move_turbo # circular_move_turbo # rapid_move_turbo

# sequence_number_turbo #

# In Post Builder, you may modify the Word parameters from

# the N/C Data Defitions dialog to configure the output of that # word used within the turbo blocks. You may also modify the Format # parameters. You may not, however, edit the expression in the # words, remove or add words in any turbo block. #

# All rapid motion is output in a single move. Any custom # commands in the linear move, circular move, rapid move and # mom_before_motion event markers will be ignored. #

global mom_kin_machine_type

if {$mom_kin_machine_type == \

uplevel #0 {

set mom_kin_is_turbo_output \ MOM_reload_kinematics } } }

距下一命令空两行

空两行

空两行

修改圆弧最大半径在后处理器里面:

后处理变批处理

其实想让你的后处理摇身一变,成为批处理,也不是什么难事,我有个方法,大家可以试试,不过记得回贴,不然我会鄙视你有。。。。。

1:先打开你的后处理*.TCL文件找到SET MOM_SYS_GROUP_OUTPUT 设为ON

2:打开你的UG安装目录下NX3.0\\MACH\\RESOURCE\\postprocessor\\下的UGPOST_BASE.TCL文件找到

set grp_ptp_name \改成

set grp_ptp_name \3:找到 proc mom_start_of_group下面的

if {$mom_sys_ptp_output == \ 改成

if {$mom_sys_ptp_output == \4:继续找到 proc mom_end_of_group下面的

if {$mom_sys_ptp_output == \ 改成

if {$mom_sys_ptp_output == \ $ptp_file_name 5:保存 UGPOST_BASE.TCL文件

6 进入UG加工模块,点最上面的NC PROGRAM组上面进行后处理就OK了!

但还是有一点点小问题,如图(1)只能以父系名处理一个单独的程式,如图(2)就可以处理几个单独的程式,

有懂这个的朋友也帮忙处理一下这个问题