tombai691019 发表于 2024-6-23 15:59
看一下图片所示,和你自已的UI定义要一致。就可以和其它变量一样控制你想要输出的内容了,看一下UG自带的 ...
大佬,刀具列表输出加工时间,同一把刀的总时间怎么输出啊
本帖最后由 tombai691019 于 2024-7-28 16:23 编辑
青春。论未来。 发表于 2024-7-28 15:34
大佬,刀具列表输出加工时间,同一把刀的总时间怎么输出啊
找一下以前的帖子,记得有个大佬分享的HASS的用配置器做的后处理,他那里面有代码,好久没搞了。我都快看不明白了。我可以把代码贴出来,你自己研究一下。由于命令里有嵌套,所以不太容易看明白。
global mom_operation_info mom_operation_name_list tool_time tool_g41 TZ_time
set TZ_time 0
for {set a 0} {$a < } {incr a} {
if {,toolpath_time)] != 1}{set mom_operation_info(,toolpath_time) 0}
if {,tool_number))] != 1}{set tool_time($mom_operation_info(,tool_number)) 0}
set tool_time($mom_operation_info(,tool_number)) ,tool_number)) + $mom_operation_info(,toolpath_time)]
#set TZ_time ,tool_number)) + $mom_operation_info(,toolpath_time)]
if {,tool_number))] != 1}{set tool_g41($mom_operation_info(,tool_number)) ""}
if {,cutcom_type)] && ,tool_cutcom_register)] != 1 && ,tool_number),* $tool_g41($mom_operation_info(,tool_number))] != "1" } {
append tool_g41($mom_operation_info(,tool_number)) "D:$mom_operation_info(,tool_number),"
}
if {,cutcom_type)] && ,tool_cutcom_register)] && ,tool_cutcom_register),* $tool_g41($mom_operation_info(,tool_number))] != "1" } {
append tool_g41($mom_operation_info(,tool_number)) "D:$mom_operation_info(,tool_cutcom_register),"
}
set TZ_time ,toolpath_time)]
}
tombai691019 发表于 2024-7-28 16:18
找一下以前的帖子,记得有个大佬分享的HASS的用配置器做的后处理,他那里面有代码,好久没搞了。我都快看 ...
谢谢大佬
楼主N能不能改成一把刀为100为单位,然后下面的工序再一个一个加,比如第五把刀N500,第五把刀有10个工序,N501-510,机台上手改程序就方便了{:biggrin:}
支持一下!谢谢分享!
谢谢试一下2406能用吗
大佬,怎么处理的NC文件不自动保存吖,手动也保存不了
后处理时.报错
丶唯一的存在 发表于 2024-9-6 18:20
后处理时.报错
把处理后报错的日志出来看看,这样子看不出什么问题。
打不开