《UG后处理变量》由会员分享,可在线阅读,更多相关《UG后处理变量(9页珍藏版)》请在金锄头文库上搜索。
1、UG后处理变量 global mom_seqnum global mom_part_name global mom_logname global mom_date global mom_spindle_speed global mom_output_file_basenameMOM_set_seq_offset mom_seqnum 100# MOM_output_literal (# TASK : $mom_part_name #)# MOM_output_literal (# Created By : $mom_logname)# MOM_output_literal (# Creatio
2、n Date: $mom_date)# MOM_output_literal (#)# MOM_suppress always N MOM_output_literal G28 G91 Z0.0 MOM_output_literal M30 MOM_output_literal % MOM_output_literal (Date: $mom_date)# MOM_suppress off N MOM_output_literal (name: $mom_output_file_basename.nc ) MOM_output_literal ($mom_part_name)# MOM_out
3、put_literal O$mom_output_file_basename# 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 (MAXZ = $zmax , MINZ = $zmin) global mom_machine_time MOM_output_literal (Total Machine Time:format %.2f $mom_mac
4、hine_time min)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 (MAXZ = $zmax , MINZ = $zmin) global mom_machine_time MOM_output_literal (Total Mach
5、ine Time:format %.2f $mom_machine_time min授课:XXXglobaltoolnumglobaltoolinfoglobalmom_group_nameglobalmom_tool_nameglobalmom_tool_diameterglobalmom_tool_corner1_radiusglobalmom_stepover_percentglobalmom_stock_partglobalmom_stock_floorglobalmom_cut_level_max_depthglobalmom_cut_level_min_depthglobalmax
6、_zglobalmin_zglobalmax_xglobalmin_xglobalmax_yglobalmin_yglobalmom_operation_nameglobalmom_machine_timeglobalmom_tool_flute_lengthglobalmom_dateglobalmom_part_nameglobalmom_lognameglobalmom_cutting_timeglobalpre_tool_nameglobalpre_machine_timeglobalpre_timeglobal mom_spindle_rpmglobal mom_feed_cut_v
7、alueglobal alex_depthglobal alex_stepoverglobal 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_
8、tool_length_adjust_register授课:XXX 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
9、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授课:XXX 后处理加速度详解1. 找到后处理TCL文件用写字板打开2. 找到proc PB_start_of_program 此处加入:P
10、B_CMD_init_turbo3. 找到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 Start of Program marker.#授课:XXX# This custom command will activate the turbo
11、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 controlle
12、rs.# 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