Machine Mode:$mom_machine_mode
Creation Date:$mom_date
Task:$mom_part_name
Operation Name: $mom_operation_name
Operation Type:$mom_operation_type
Load Tool Number:$mom_tool_number
Tool Name:$mom_tool_name
Tool Diameter: $mom_tool_diameter
Tool Radius: $mom_tool_corner1_radius
Taper Angle: $mom_tool_taper_angle
Tip Angle:$mom_tool_tip_angle
Tool Length: $mom_tool_length
Tool Flute Length: $mom_tool_flute_length
TOTAL Machine Time: $mom_machine_time MIN
MOM_suppress always N 程式序号全开
MOM_set_seq_off 程式序号关了(N码)
MOM_set_seq_NO 程式序号开了(N码)
MOM_output_literal "程式中加载信息"
MOM_output_literal "O0001" 程式中加O0001
MOM_output_literal "(DATE: $mom_date)" 程式中 加日期
global mom_part_name
MOM_output_literal "(PART: $mom_part_name)" 程式中 零件信息
global mom_date
MOM_output_literal "(date: $mom_date)" 程式中 加日期
#=============================================================
proc MOM_start_of_path { } {
#=============================================================
global mom_group_name
MOM_output_literal "(NAME: $mom_group_name)" 程式中 加程式名
global mom_part_name
MOM_output_literal "(PART: $mom_part_name)" 程式中 零件信息
global mom_operation_name 程式中 单节名
MOM_output_literal"(Operation_Name=$mom_operation_name)"
global mom_tool_name
MOM_output_literal "(TOOL: $mom_tool_name)" 程式中 加刀具名
global mom_tool_name 刀具详思信息
global mom_tool_diameter mom_tool_corner1_radius mom_tool_flute_length mom_tool_length
MOM_set_seq_off
MOM_output_literal "(ToolName=$mom_tool_name\
D=[format "%.2f" $mom_tool_diameter]\
R=[format "%.2f" $mom_tool_corner1_radius]\
F=[format "%.2f" $mom_tool_flute_length]\
L=[format "%.2f" $mom_tool_length])"
#=============================================================
proc MOM_end_of_program { } {
#=============================================================
global mom_stock_part mom_stock_floor (后处理加佘量 )
MOM_output_literal "(Part stock=[format "%.3f" $mom_stock_part] MM \ Floor stock=[format "%.3f" $mom_stock_floor ] MM)"
global mom_machine_time 加工时间
MOM_output_literal "(Total Machine Time: [ format "%.2f" $mom_machine_time] minutes)"
#=============================================================
proc MOM_end_of_program { } {
#=============================================================
UG后处理中(post_builder)增加加工日期加工时间教程
在后处理中增加加工日期
加工时间All of cutting time (加工模拟时间如:20分钟)
1. 用post_builder打开任何一个以*pui结尾的后处理文件
2. 我把加工时间放在最后一行(programe end sequence)
3. 从 add block中拖拽一个custom_command(用户自定义文件)
4. 打开这个文件,在里面添加如下程序:
global mom_machine_time
global mom_date
MOM_output_literal ";All of cutting time :[ format "%.1f" $mom_machine_time] MIN"
MOM_output_literal ";date is :$mom_date"
添加操作信息:
Tool_Name:$mom_tool_name Tool_No:$mom_tool_number $mom_operation_type $mom_tool_type
Operation_name:$mom_operation_type
Tool_type:$mom_tool_type
Tool_Name:$mom_tool_name
Tool_No:$mom_tool_number
Tool_diameter: [format "%.3f" $mom_tool_diameter]
一定要空格
Tool_corner1_radius:$mom_tool_corner1_radius
Tool_flute_length:$mom_tool_flute_length
global mom_part_name
MOM_output_literal "(PART: $mom_part_name)"
global mom_operation_name
MOM_output_literal "(Operation Name=$mom_operation_name)"
global mom_operation_name
MOM_output_literal "(Program Name:$mom_operation_name)"
global mom_tool_name
MOM_output_literal "(TOOL: $mom_tool_name)"
global mom_tool_name
global mom_tool_diameter mom_tool_corner1_radiusmom_tool_flute_lengthmom_tool_length
MOM_set_seq_off
MOM_output_literal "(ToolName=$mom_tool_name
D=[format "%.2f" $mom_tool_diameter]
R=[format "%.2f" $mom_tool_corner1_radius]
F=[format "%.2f" $mom_tool_flute_length]
L=[format "%.2f" $mom_tool_length])"
global mom_stock_part mom_stock_floor
MOM_output_literal "(Part stock=[format "%.3f" $mom_stock_part] MM \ Floor stock=[format "%.3f" $mom_stock_floor ] MM)"
global mom_machine_time
MOM_output_literal "(Total Machine Time: [ format "%.2f" $mom_machine_time] minutes)"