UG后处理变量
global mom_seqnum global mom_part_name global mom_logname global mom_date
global mom_spindle_speed
global mom_output_file_basename MOM_set_seq_off set mom_seqnum 100
# MOM_output_literal \ : $mom_part_name ############)\# MOM_output_literal \ : $mom_logname)\# MOM_output_literal \
# MOM_output_literal \# MOM_suppress always N MOM_output_literal \ MOM_output_literal \ MOM_output_literal \
MOM_output_literal \# MOM_suppress off N
MOM_output_literal \ MOM_output_literal \
# MOM_output_literal \# MOM_set_seq_on global max_z min_z
set zmax [string trimright [format %.4f $max_z] 0] set zmin [string trimright [format %.4f $min_z] 0]
MOM_output_literal \ global mom_machine_time
MOM_output_literal \ \
Tool_Name:$mom_tool_name Tool_No:$mom_tool_number $mom_operation_type
global max_z min_z
set zmax [string trimright [format %.4f $max_z] 0] set zmin [string trimright [format %.4f $min_z] 0]
MOM_output_literal \ global mom_machine_time
MOM_output_literal \ \
global toolnum global toolinfo
global mom_group_name global mom_tool_name global mom_tool_diameter
global mom_tool_corner1_radius global mom_stepover_percent global mom_stock_part global mom_stock_floor
global mom_cut_level_max_depth global mom_cut_level_min_depth global max_z global min_z global max_x global min_x global max_y global min_y
global mom_operation_name global mom_machine_time global mom_tool_flute_length global mom_date
global mom_part_name global mom_logname global mom_cutting_time global pre_tool_name global pre_machine_time global pre_time
global mom_spindle_rpm global mom_feed_cut_value global alex_depth global alex_stepover global tol
global mom_tool_number mom_next_tool_number global mom_coolant_status mom_coolant_mode global mom_spindle_rpm global mom_warning_info global anchor_flag global coolant_flag global first_tool
global mom_tool_name global mom_tool_diameter
global mom_tool_length_adjust_register
global mom_tool_corner1_radius global mom_tool_flute_length
global mom_work_coordinate_number global msys mom_stock_part global mom_stock_floor
global mom_inside_outside_tolerances
global mom_global_cut_depth global mom_stepover_distance
global mom_global_cut_depth global mom_stepover_distance global mom_stepover_scallop
global mom_stepover_variable_passes global mom_stepover_percent global mom_stepover_type global mom_depth_of_cut_type global mom_cut_level_max_depth global mom_depth_per_cut
后处理加速度详解 1. 找到后处理TCL文件用写字板打开 2. 找到proc PB_start_of_program
此处加入:PB_CMD_init_turbo
3. 找到proc PB_CMD_kin_before_motion并且在其上面加入如下:
距上一命令空两行
#============================================================= proc PB_CMD_init_turbo { } {
#============================================================= #
# This custom command may only be used with Post Builder 3.2.1 # or later and NX2 or later. #
# Place this custom command with the \# #
# 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 } } }
距下一命令空两行