×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MOM Variable to get exposed tool length

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

------
Cheers
  Steve Griffiths smile

RE: MOM Variable to get exposed tool length

Hey Steve
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

Here's what I did for my post processor:

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

(OP)
Thanks Heaps Ray!!!
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_length
global mom_tool_holder_offset
In the section I wanted it I added:

CODE

set tool_extension [expr $mom_tool_length - $mom_tool_holder_offset]
Where I wanted the variable (within a mom_output_literal HTML) I added:

CODE

[format '%-4.3f' $tool_extension]
HTML output doesn't like the " as mom_output_literal thinks it is the end of the output so I used ' instead.

Thanks again Ray

------
Cheers
  Steve Griffiths smile

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources