Cancel
Showing results for 
Search instead for 
Did you mean: 

Probing tool from library

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I am little bit confused...

I try to use Solid Probe from library, standard sample ugt0402_001

#CLASS PROBE
FORMAT LIBRF T ST DESCR MATREF MATDES TLNUM HLD HLDDES RIGID
#------------------------------------------------------------
DATA | ugt0402_001 | 04 | 02 | BALL dia 9mm x stem 72mm | TMC0_00041 | Ruby |   | 100 | Parallel 20 | 1.0
DATA | TS_46x_HEID | 04 | 02 | Ball diameter 4mm x stem 72mm | TMC0_00041 | Ruby |   | 100 | Parallel 20 | 1.0
DATA | ugt0402_1001 | 04 | 02 | TS 46x HEIDENHAIN | TMC0_00041 | Ruby | 123 | 100 | Parallel 20 | 1.0
#END_DATA

 

But - one of my co-workers have developed postprocessor with some header output: $mom_tool_name, $mom_tool_lenght....

And - for my prob tool we have error message - $mom_tool_length no exist!!

How I can add for data base field with tool_lenght?

3 REPLIES 3

Re: Probing tool from library

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You could code something like this for now (just so you don't get an error)

 

global mom_tool_length

if {[info exists mom_tool_length]} {
    set tool_length_out $mom_tool_length
    # add formatting here if needed
} else {
    set tool_length_out "TOOL LENGTH NOT SPECIFIED"
}

Then use "tool_length_out" instead of "mom_tool_length" where you actually output the data.

 

Define tool_length_out as global if you need to.

 

Part 2 is getting the actual data - someone else will have to answer that, I don't have any good ideas.

Did you try the "MOOG_Show_Globals" routine (posted elsewhere in this forum) to see if an undocumented variable has the data you need?

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


Re: Probing tool from library

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Thanks, @Ken_A!

As last way I can use check for var - exist or not, thanks.

Re: Probing tool from library

Valued Contributor
Valued Contributor

I have a question to standard sample ugt0402_001: If I work with this tool and Generic Motion Control the system knows that the tool has an diameter of 9. Where does this come from?

Werner
Production: NX12.0.2, FBM | TcUA 11.4.0.6
Development: VB.NET, Tcl/Tk

Learn online





Solution Information