QQ登录

只需一步,快速开始

快捷登录

登录 或者 注册 请先

UG爱好者

查看: 894|回复: 7
打印 上一主题 下一主题

[求助] 那位好心人帮我把后处理刀名检查去掉,不然处理报警####

[复制链接]

一级士官

Rank: 2

0

主题

11

帖子

216

积分
跳转到指定楼层
楼主
发表于 2021-10-28 19:22:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 daixin19871017 于 2021-10-28 19:24 编辑

朋友给的四轴后处理,定制了刀名检查,如何删掉,请哪位好心大哥帮忙去掉,任何刀名都能处理。不胜感激,谢谢!






补充内容 (2021-11-2 20:26):
global mom_tool_name index topword


#-----------------------------------------------------------------------ma20180115
set index [string first "-" $mom_tool_name]
set topword [string range $mom_to...

补充内容 (2021-11-2 20:27):
global mom_tool_name index topword


#-----------------------------------------------------------------------ma20180115
set index [string first "-" $mom_tool_name]
set topword [string range $mom_tool_name 0 [expr $index-1]]


if {$topword != "TL" && $topword != "013" && $topword != "303" && $topword != "304" && $topword != "302" && $topword != "042" && $topword != "045" && $topword != "TX26" && $topword != "010" && $topword != "018" } {
     MOM_abort "  Tool name must be IPNA! Please reselect tool!  "
   }

4轴后处理.zip

90.78 KB, 下载次数: 39, 下载积分: G币 -1

后处理

有奖推广贴子: 

回复

使用道具 举报

一级士官

Rank: 2

0

主题

11

帖子

216

积分
沙发
 楼主| 发表于 2021-11-2 20:26:03 | 只看该作者
global mom_tool_name index topword   #-----------------------------------------------------------------------ma20180115 set index [string first "-" $mom_tool_name] set topword [string range $mom_tool_name 0 [expr $index-1]]   if {$topword != "TL" && $topword != "013" && $topword != "303" && $topword != "304" && $topword != "302" && $topword != "042" && $topword != "045" && $topword != "TX26" && $topword != "010" && $topword != "018" } {      MOM_abort "  Tool name must be IPNA! Please reselect tool!  "    }
回复 支持 反对

使用道具 举报

一级士官

Rank: 2

0

主题

11

帖子

216

积分
板凳
 楼主| 发表于 2021-11-2 20:28:48 | 只看该作者
global mom_tool_name index topword


#-----------------------------------------------------------------------ma20180115
set index [string first "-" $mom_tool_name]
set topword [string range $mom_tool_name 0 [expr $index-1]]


if {$topword != "TL" && $topword != "013" && $topword != "303" && $topword != "304" && $topword != "302" && $topword != "042" && $topword != "045" && $topword != "TX26" && $topword != "010" && $topword != "018" } {
     MOM_abort "  Tool name must be IPNA! Please reselect tool!  "
   }



global mom_tool_material_description topword mom_tool_material_description


if {$topword != "TX26"} {
     if {![info exists mom_tool_material_description] || $mom_tool_material_description == "" || $mom_tool_material_description == "High Speed Steel"} {
          MOM_abort " *** The cutting tool material without registering, please contact CIM *** "
        }
   }
回复 支持 反对

使用道具 举报

一级士官

Rank: 2

0

主题

11

帖子

216

积分
地板
 楼主| 发表于 2021-11-2 20:36:54 | 只看该作者
那我大神帮忙我解决一下,谢谢了!
回复 支持 反对

使用道具 举报

一级士官

Rank: 2

0

主题

11

帖子

216

积分
7#
 楼主| 发表于 2021-11-4 18:11:01 | 只看该作者

哥你太厉害了可以正常使用,怎么改的能告诉我吗?
回复 支持 反对

使用道具 举报

一级士官

Rank: 2

0

主题

11

帖子

216

积分
8#
 楼主| 发表于 2021-11-4 18:47:50 | 只看该作者

哥,刀名可以了,但是丝锥报警,用规定的刀名就不会报警,附件有par 体帮我看看,谢谢!

model1.prt

198.5 KB, 下载次数: 1, 下载积分: G币 -1

UG体

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

 
 
QQ:1359218528
工作时间:
9:00-17:00
 
微信公众号
手机APP
机械社区
微信小程序

手机版|UG爱好者论坛 ( 京ICP备10217105号-2 )    论坛管理员QQ:1359218528

本站信息均由会员发表,不代表本网站立场,如侵犯了您的权利请联系管理员,邮箱:1359218528@qq.com  

Powered by UG爱好者 X3.2  © 2001-2014 Comsenz Inc. GMT+8, 2024-9-28 10:39

返回顶部