MOM Variable to get exposed tool length
MOM Variable to get exposed tool length
(OP)
I am wanting to be able output the exposed tool length.
Is there a variable for this or a way to subtract the insertion length (entered in "(OS) Offset" in "Tool Insertion" section of "Holder" tab in Tool editor) from the Tool Length?
What would the variable for tool insertion be? Is it supposed to be mom_tool_z_offset or mom_tool_zmount or something else? I have tried both and had no success.
Thanks in Advance
Is there a variable for this or a way to subtract the insertion length (entered in "(OS) Offset" in "Tool Insertion" section of "Holder" tab in Tool editor) from the Tool Length?
What would the variable for tool insertion be? Is it supposed to be mom_tool_z_offset or mom_tool_zmount or something else? I have tried both and had no success.
Thanks in Advance
------
Cheers
Steve Griffiths





RE: MOM Variable to get exposed tool length
One of maybe two custom commands I've ever created (with GTACs help) was for that very purpose. Is this for posted NC code or shop docs?
Ray S
NX 7.0.1.7
www.appliedprecisionproducts.com
RE: MOM Variable to get exposed tool length
global mom_tool_length
global mom_tool_holder_offset
global extension
set extension [expr $mom_tool_length - $mom_tool_holder_offset]
set output [format "%-4.3f" $extension]
MOM_output_literal "(TOOL EXT.$output)"
Unforutunately, lacking tcl skills, and without postbuilder mediation, I've never figured out how to incorporate this into tool list. If this is what you're after, and you manage to do it, I would appreciate it if you sent it my way.
Good luck.
Ray S
NX 7.0.1.7
www.appliedprecisionproducts.com
RE: MOM Variable to get exposed tool length
Couldn't find this variable in the post builder list...
Worked perfectly!!!
The shop doc is the same as the post processor.
At the top of the proc for the section I wanted this in I added:
CODE
global mom_tool_holder_offset
CODE
CODE
Thanks again Ray
------
Cheers
Steve Griffiths