找回密码
注册

QQ登录

只需一步,快速开始

收听 站内信

niejie1989

xyz2015 2017-7-8 00:10
还在做眼镜模吗
╚Ωへ 2012-10-25 22:16
niejie1989: 兄台,你可以把你在网上找的那个把自己的后处理做成批处理的资料给我吗,我找了好多没找着,  我的QQ542918987  谢谢了
刚看到信息,之前没注意,若还没找到的话,可借鉴
普通机后处理改为批处理

tcl文件如下修改

一、加output_desr

#=============================================================
proc MOM_end_of_program { } {
#=============================================================
   MOM_force Once M_coolant
   MOM_do_template coolant_off
   MOM_force Once M_spindle
   MOM_do_template spindle_off
   PB_CMD_program_end1
   MOM_do_template end_of_program
   MOM_set_seq_off
   MOM_do_template rewind_stop_code
   PB_CMD_program_end2
output_desr

#**** The following procedure lists the tool list with time in commentary data
   LIST_FILE_TRAILER

#**** The following procedure closes the warning and listing files
   CLOSE_files
}


二、加prog_head

#=============================================================
proc PB_start_of_program { } {
#=============================================================

   if [llength [info commands PB_CMD_kin_start_of_program] ] {
      PB_CMD_kin_start_of_program
   }
prog_head

   PB_CMD_init_turbo
   MOM_set_seq_off
   PB_CMD_program_start
   PB_CMD_init_helix
   PB_CMD_fix_RAPID_SET
}



三、加spindle_check,set_value_ju

#=============================================================
proc MOM_start_of_path { } {
#=============================================================
  global mom_sys_in_operation
   set mom_sys_in_operation 1

  global first_linear_move ; set first_linear_move 0
   TOOL_SET MOM_start_of_path

   if [llength [info commands PB_CMD_kin_start_of_path] ] {
      PB_CMD_kin_start_of_path
   }

   PB_CMD_start_of_operation_force_addresses
   PB_CMD_path_start
spindle_check
set_value_ju
}


四、加cut_depth_circular

#=============================================================
proc MOM_linear_move { } {
#=============================================================
  global feed_mode mom_feed_rate mom_kin_rapid_feed_rate

   if { ![string compare $feed_mode "IPM"] || ![string compare $feed_mode "MMPM"] } {
      if { [EQ_is_ge $mom_feed_rate $mom_kin_rapid_feed_rate] } {
         MOM_rapid_move
         return
      }
   }


   global mom_sys_abort_next_event
   if { [info exists mom_sys_abort_next_event] } {
      if { [llength [info commands PB_CMD_kin_abort_event]] } {
         PB_CMD_kin_abort_event
      }
   }


五、加cut_depth_line

   global first_linear_move

   if { !$first_linear_move } {
      PB_first_linear_move
      incr first_linear_move
   }

   MOM_do_template linear_move
cut_depth_line}



六、加在最后面

#=============================================================
proc MOM_end_of_group { } {
   prog_end
}
#=============================================================




##################################################################################
#=================================================================
proc prog_head { } {
#=================================================================
   global mom_group_name mom_date mom_tool_name
   global prev_spind

   global  tool_name  cut_descr  cut_stock  cut_depth
   set tool_name ""
   set cut_descr ""
   set cut_stock 1
   set cut_depth 0

   set prev_spind 0

#   MOM_output_literal "%"
#   MOM_output_literal "( ttp )"
#   MOM_output_literal "(PROGRAM NAME: $mom_group_name)"
#   MOM_output_literal "(Time: $mom_date)"
#   MOM_output_literal "(Cutter Name: $mom_tool_name)"
#   MOM_output_literal "T1D1"
#   MOM_output_literal "HSCB(0.01)"
#   MOM_output_literal "G90G54G00X0.Y0."
}


#=================================================================
proc prog_end { } {
#=================================================================
   
#   MOM_output_literal "G91 Z150."
#   MOM_output_literal "M05"
#   MOM_output_literal "M09"
#   MOM_output_literal "M30"
#   MOM_output_literal "%"
}

#=================================================================
proc spindle_check { } {
#=================================================================
   global mom_spindle_speed prev_spind

   if { $mom_spindle_speed  < 1  } {
      if { $prev_spind == 0 } {
          set mom_spindle_speed  1500
         } else {
                set mom_spindle_speed  $prev_spind
                }
   }

   set prev_spind $mom_spindle_speed
}


#====================================================================
proc set_value_ju { } {
#====================================================================
   global tool_name   cut_descr cut_stock
   global mom_tool_name   mom_stock_part
  
   if { $tool_name == "" } {
      set tool_name $mom_tool_name
      } else {
             if { $tool_name != $mom_tool_name } {
                                                  set tool_name "操作中刀径不同"
                                                  }
             }


    if { $cut_stock == 1 } {
       set cut_stock $mom_stock_part
       } else {
               if { $cut_stock > $mom_stock_part } {
                   set cut_stock $mom_stock_part
                  }
               }

   if { $cut_stock < 0 } {
            set cut_descr "光"
      } elseif { $cut_stock >= 0 && $cut_stock <= 0.1 } {
                set cut_descr "中"
      } else {
                set cut_descr "粗"
              }
}


#======================================================================
proc cut_depth_line { } {
#======================================================================
   global cut_depth
   global mom_pos

   if { $cut_depth > $mom_pos(2) } {
      set cut_depth $mom_pos(2)
      }

}

#======================================================================
proc cut_depth_circular { } {
#======================================================================
   global cut_depth
   global mom_pos

   if { $cut_depth > $mom_pos(2) } {
      set cut_depth $mom_pos(2)
      }

}

#======================================================================
proc output_desr { } {
#======================================================================
   global  tool_name  cut_descr  cut_stock  cut_depth
   global  mom_group_name  mom_machine_time
   global mom_output_file_basename  mom_output_file_directory  mom_sys_output_file_suffix

   set desr_file_name "${mom_output_file_directory}${mom_output_file_basename}.${mom_sys_output_file_suffix}"
   
   MOM_close_output_file $desr_file_name
   set desr_file_name "D:\\ju_conf\\temp\\$mom_group_name.xl"
   MOM_remove_file $desr_file_name
   MOM_open_output_file $desr_file_name
   MOM_output_literal "$mom_group_name  $tool_name  $cut_descr  [format %3.2f $cut_stock]  [format %4.1f $cut_depth] [format %4.0f $mom_machine_time]"
   MOM_close_output_file $desr_file_name
   
}
689151025 2012-9-14 13:41
niejie1989: ...
8.022据说这板本不怎样啊。你感觉还不错?
准确的说,应该是感觉非常不错。。RP好没办法
689151025 2012-9-7 13:05
niejie1989: 我在网上找着7.554的板本啦,MP03的。不知道这次升级增加了什么功能,是更稳定还是怎样,只是在自己家里装上了,公司那边还在用7.544的。
呵呵 ,我改用8.0了
感觉还不错
689151025 2012-9-4 11:48
niejie1989: 兄台,我在用的是7.544板本,看到你说你在用7.554,可以把升级包和破解发给我下吗
可以啊,加我QQ190893322
facelist doodle涂鸦板
您需要登录后才可以留言 登录 | 注册

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2024-5-2 12:19 , Processed in 0.025234 second(s), 12 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

返回顶部