找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
查看: 942|回复: 7

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

[复制链接]

0

主题

11

回帖

216

积分

一级士官

积分
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

后处理

0

主题

11

回帖

216

积分

一级士官

积分
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!  "    }

0

主题

11

回帖

216

积分

一级士官

积分
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 *** "
        }
   }

0

主题

11

回帖

216

积分

一级士官

积分
216
 楼主| 发表于 2021-11-2 20:36:54 | 显示全部楼层
那我大神帮忙我解决一下,谢谢了!

3

主题

511

回帖

7066

积分

爱好者终身VIP

积分
7066

VIP会员

发表于 2021-11-2 23:06:05 | 显示全部楼层

看楼下

本帖最后由 U.re 于 2021-11-2 23:19 编辑

{}


3

主题

511

回帖

7066

积分

爱好者终身VIP

积分
7066

VIP会员

发表于 2021-11-2 23:08:47 | 显示全部楼层
本帖最后由 U.re 于 2021-11-2 23:20 编辑

试试看

试试看.zip

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

0

主题

11

回帖

216

积分

一级士官

积分
216
 楼主| 发表于 2021-11-4 18:11:01 | 显示全部楼层

哥你太厉害了可以正常使用{:}{:},怎么改的能告诉我吗?{}

0

主题

11

回帖

216

积分

一级士官

积分
216
 楼主| 发表于 2021-11-4 18:47:50 | 显示全部楼层

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

model1.prt

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

UG体

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-2-1 15:46

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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