cancel
Showing results for 
Search instead for 
Did you mean: 

Post gurus: check for duplicate tool numbers?

Valued Contributor
Valued Contributor

Is there a simple way to check for accidental use of the same tool number for different tools? Maybe a cross-reference that reads the tool number, associated length and diameter and flags an error if these don't match?

 

Many Thanks/Harri

3 REPLIES

Re: Post gurus: check for duplicate tool numbers?

Legend
Legend
You can store the attributes ot each tool in custom global variables (lists). During tool change it is enough to compare the data of new tool with previous ones from the globals.

Re: Post gurus: check for duplicate tool numbers?

Esteemed Contributor
Esteemed Contributor

Perhaps somethng like this (note I have not checked this code, so there may be some bugs)

global mom_tool_name
global mom_tool_number
global mom_operation_name global harri_tool_info if {![info exists $harri_tool_info($mom_tool_number)]} {
set harri_tool_info($mom_tool_number) $mom_tool_name
} elseif {$harri_tool_info($mom_tool_number) != $mom_tool_name} {
# your error message here, example might be:
MOM_output_to_listing_device "$mom_operation_name - ERROR - Tool $mom_tool_number already assigned to tool $harri_tool_info($mom_tool_number), now you are trying to use it for $mom_tool_name"
}

 

Alter message to suit.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Post gurus: check for duplicate tool numbers?

Valued Contributor
Valued Contributor

Thanks Ken and Frobi, I'll be looking into this!

 

Harri

 

Learn online





Solution Information