UG后处理变量globalmom_seqnumglobalmom_part_nameglobalmom_lognameglobalmom_dateglobalmom_spindle_speedglobalmom_output_file_basenameMOM_set_seq_offsetmom_seqnum100#MOM_output_literal(########TASK:$mom_part_name############)#MOM_output_literal(#CreatedBy:$mom_logname)#MOM_output_literal(#CreationDate:$mom_date)#MOM_output_literal(############################################)#MOM_suppressalwaysNMOM_output_literalG28G91Z0.0MOM_output_literalM30MOM_output_literal%MOM_output_literal(Date:$mom_date)#MOM_suppressoffNMOM_output_literal(name:$mom_output_file_basename.nc)MOM_output_literal($mom_part_name)#MOM_output_literalO$mom_output_file_basename#MOM_set_seq_onglobalmax_zmin_zsetzmax[stringtrimright[format%.4f$max_z]0]setzmin[stringtrimright[format%.4f$min_z]0]MOM_output_literal(MAXZ=$zmax,MINZ=$zmin)globalmom_machine_timeMOM_output_literal(TotalMachineTime:[format%.2f$mom_machine_timemin])Tool_Name:$mom_tool_nameTool_No:$mom_tool_number$mom_operation_typeglobalmax_zmin_zsetzmax[stringtrimright[format%.4f$max_z]0]setzmin[stringtrimright[format%.4f$min_z]0]MOM_output_literal(MAXZ=$zmax,MINZ=$zmin)globalmom_machine_timeMOM_output_literal(TotalMachineTime:[format%.2f$mom_machine_timeminglobaltoolnumglobaltoolinfoglobalmom_group_nameglobalmom_tool_nameglobalmom_tool_diameterglobalmom_tool_corner1_radiusglobalmom_stepover_percentglobalmom_stock_partglobalmom_stock_floorglobalmom_cut_level_max_depthglobalmom_cut_level_min_depthglobalmax_zglobalmin_zglobalmax_xglobalmin_xglobalmax_yglobalmin_yglobalmom_operation_nameglobalmom_machine_timeglobalmom_tool_flute_lengthglobalmom_dateglobalmom_part_nameglobalmom_lognameglobalmom_cutting_timeglobalpre_tool_nameglobalpre_machine_timeglobalpre_timeglobalmom_spindle_rpmglobalmom_feed_cut_valueglobalalex_depthglobalalex_stepoverglobaltolglobalmom_tool_numbermom_next_tool_numberglobalmom_coolant_statusmom_coolant_modeglobalmom_spindle_rpmglobalmom_warning_infoglobalanchor_flagglobalcoolant_flagglobalfirst_toolglobalmom_tool_nameglobalmom_tool_diameterglobalmom_tool_length_adjust_registerglobalmom_tool_corner1_radiusglobalmom_tool_flute_lengthglobalmom_work_coordinate_numberglobalmsysmom_stock_partglobalmom_stock_floorglobalmom_inside_outside_tolerancesglobalmom_global_cut_depthglobalmom_stepover_distanceglobalmom_global_cut_depthglobalmom_stepover_distanceglobalmom_stepover_scallopglobalmom_stepover_variable_passesglobalmom_stepover_percentglobalmom_stepover_typeglobalmom_depth_of_cut_typeglobalmom_cut_level_max_depthglobalmom_depth_per_cut后处理加速度详解1.找到后处理TCL文件用写字板打开2.找到procPB_start_of_program此处加入:PB_CMD_init_turbo3.找到procPB_CMD_kin_before_motion并且在其上面加入如下:距上一命令空两行#=============================================================procPB_CMD_init_turbo{}{#=============================================================##ThiscustomcommandmayonlybeusedwithPostBuilder3.2.1#orlaterandNX2orlater.##PlacethiscustomcommandwiththeStartofProgrammarker.###Thiscustomcommandwillactivatetheturboprocessmodefor#the3-axismillposts.Theexecutiontimewillbeabout5to#10timesfasterthanthenormalprocess.##SpecialBlocksareincludedinany3-axismillpostcreated#byPostBuilderv3.2.1andon.##Theblocksbeingoutputareformattedsimilartothatofthe#Fanuctypeofcontrollers.##ThefollowingturboblockswillappearintheBlocksection#ofN/CDataDefinitionsinPostBuilder:##linear_move_turbo#circular_move_turbo#rapid_move_turbo#sequence_number_turbo##InPostBuilder,youmaymodifytheWordparametersfrom#theN/CDataDefitionsdialogtoconfiguretheoutputofthat#wordusedwithintheturboblocks.YoumayalsomodifytheFormat#parameters.Youmaynot,however,edittheexpressioninthe#words,removeoraddwordsinanyturboblock.##Allrapidmotionisoutputinasinglemove.Anycustom#commandsinthelinearmove,circularmove,rapidmoveand#mom_before_motioneventmarkerswillbeignored.#globalmom_kin_machine_typeif{$mom_kin_machine_type==3_axis_mill}{uplevel#0{setmom_kin_is_turbo_outputTRUEMOM_reload_kinematics}}}距下一命令空两行空两行空两行修改圆弧最大半径在后处理器里面:后处理变批处理其实想让你的后处理摇身一变,成为批处理,也不是什么难事,我有个方法,大家可以试试,不过记得回贴,不然我会鄙视你有。。。。。1:先打开你的后处理*.TCL文件找到SETMOM_SYS_GROUP_OUTPUT设为ON2:打开你的UG安装目录下NX3.0\MACH\RESOURCE\postprocessor\下的UGPOST_BASE.TCL文件找到setgrp_ptp_name${mom_output_file_basename}_${group_name_lowercase}${output_extn}改成setgrp_ptp_name${group_name_lowercase}${output_extn}3:找到procmom_start_of_group下面的if{$mom_sys_ptp_output==ON}{MOM_open_output_file$ptp_file_name改成if{$mom_sys_ptp_output==ON}{MOM_remove_file$ptp_file_name4:继续找到procmom_end_of_group下面的if{$mom_sys_ptp_output==ON}{MOM_open_output_file$ptp_file_name改成if{$mom_sys_ptp_output==ON}{MOM_remove_file$ptp_file_name5:保存UGPOST_BASE.TCL文件6进入UG加工模块,点最上面的NCPROGRAM组上面进行后处理就OK了!但还是有一点点小问题,如图(1)只能以父系名处理一个单独的程式,如图(2)就可以处理几个单独的程式,有懂这个的朋友也帮忙处理一下这个问题