找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
查看: 1375|回复: 1

[求助] 哪位大神帮忙解释一行下面代码是什么意思

[复制链接]

59

主题

428

回帖

5597

积分

上尉

积分
5597
发表于 2019-4-3 16:23:27 | 显示全部楼层 |阅读模式
#output tool info
global ptp_file_name
global tool_lists_file_name
global ino
global mom_group_name mom_output_file_suffix mom_output_file_basename
global mom_sys_max_travel
global mom_sys_min_travel
global mom_machine_time
set tool_lists_file_name ${ptp_file_name}_toollists
if {![info exists ino]} {
    set ino 1
    if {[file exists $tool_lists_file_name]} {
    MOM_remove_file $tool_lists_file_name
    }
}
set tfile [open $tool_lists_file_name a]

if {$outputthd == 1 } {
    puts $tfile "(T$tt,H$th,$mom_tool_name,D$tdi,R$tr)"
} else {
    puts $tfile "(T00,H00,$mom_tool_name,D$tdi,R$tr)"
}


set ino [expr $ino+1]
close $tfile


里面的set  tool_lists_file_name  ${ptp_file_name}_toollists   这行代码是什么意思    后处理会多一个刀具表文件,能不能重命名  
会多个这个文件      后处理文件名_toollists


相关帖子

5

主题

1050

回帖

5503

积分

上尉

积分
5503
发表于 2019-4-10 17:54:22 | 显示全部楼层
这是后处理关于刀具信息的
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

咨询QQ:1359218528|发帖须知!|Archiver|手机版|小黑屋|UG爱好者论坛 ( 京ICP备10217105号-2 )

GMT+8, 2025-2-2 18:39

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表