Contact US

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!

*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

Post Builder (Rotary Auto Clamping)

Post Builder (Rotary Auto Clamping)

Post Builder (Rotary Auto Clamping)

Hi, everyone!
I've got trouble with those custom commands. Where I have to put "CLAMP/AUTO ON" as it's written in help docs.
Thanks a lot for any help.

RE: Post Builder (Rotary Auto Clamping)

It's a user defined event.

The easiest way (in my personal opinion...) is to add an operation and choose the "machine control" type.

Name the operation "AUTO-CLAMP" and put it right at the beginning of your program.

Edit the operation, expand the "machine control" window and choose "user defined events"

Add the "clamp" event. The settings should be status=active, clamp axis=auto, clamp status=on

That should do it.


RE: Post Builder (Rotary Auto Clamping)


To elaborate on my previous post.
You DO NOT add anything in the post. you only edit the code you want output. example M10, M12 etc...

You add the event to your NX program file.

The post will automatically output lock and unlock codes.

RE: Post Builder (Rotary Auto Clamping)

Sounds great, but is it possible to add some king od UDE, that fully automatically decided if there is a need to clamp/unclamp axis?
Really, I just do not want to activate any machine events manually. I do believe, that there is a possibility to make it work automaticaly ;)

RE: Post Builder (Rotary Auto Clamping)

Don't have NX in front of me but you can have the post do it automatically. I believe there is a custom command for that to include in your post. I says where to insert it in PostBuilder. Look in the sample files. The downside if I recall is it will then clamp/unclamp on every axis rotation. Ok if you only do indexing, not good for continuous axis machining.


RE: Post Builder (Rotary Auto Clamping)

There are 4 custom commands of clamping and unclamping rotary, which are called from some kind of user definded event (UDE). But where is this UDE default file. NX is installed by default as well as post builder.

<<From NX Docs:>>

This option allows you to set up your post to automatically clamp and unclamp the fourth axis and/or fifth axis for all motion events and Rotate UDE events.  

To activate auto clamping, program a UDE post command CLAMP/AUTO, ON.

To turn off auto clamping, program a UDE post command CLAMP/AUTO, OFF.

Where I have to program "ON"?


RE: Post Builder (Rotary Auto Clamping)

The ude.cdl file is located in the resource directory under user_defined_events. You can find the resource directory in the log file help->NX logfile.

RE: Post Builder (Rotary Auto Clamping)

The "ON" is what i described earlier.

The postbuilder post is already set up to do it. Make NO EDITS to the post. No custom command, nothing.

The "ON" that they speak of... is the "CLAMP" start event you need to add to your NX program.

The post will automatically determine the axis status (clamped or unclamped) and output the appropriate codes for every operation following that command. Works like a charm.

I included a picture.


RE: Post Builder (Rotary Auto Clamping)

Sorry, but I need to activate this clamping without turning it on in machine control. Mb I'll try to make it work in "methods". Thanks anyway! :)

RE: Post Builder (Rotary Auto Clamping)

It is possible to default the postprocessor so to say to 'active' clamping. However, as mentioned before it is a bit crude it will not work very well with multi-axis milling. Most machines will hesitate (delay) when the clamp is activated or even released. Do you need the tcl code for the postprocessor to default the machine to 'active' clamping?

RE: Post Builder (Rotary Auto Clamping)

YES!!!! EXACTLY! :D i need this code, how to activate this clamping without any entries form NX itself.

RE: Post Builder (Rotary Auto Clamping)

By the way tryed to put in start of the program (in custom command "Before output" some set strings like "set $mom_clamp_status "AUTO"... no positive results

RE: Post Builder (Rotary Auto Clamping)

Not sure if you did but you will need to make the variable known outside your procedure: global mom_clamp_status

The $ sign is used to pass on values in a variable. It is possible to use it as you have done but I am not sure if it is what you intended.

set mom_clamp_status "AUTO"

If you put a static command in the before_output procedure it will be reinstated each time a line is outputted. It would be better to declare it once at the start of the postprocessor. For instance you could create your own initial variables procedure and put it in the start of program procedure. I will try to dig up the postprocessor I once used for the auto setting for the actual coding.

RE: Post Builder (Rotary Auto Clamping)

variable mom_sys_auto_clamp "ON"

should do the trick.

RE: Post Builder (Rotary Auto Clamping)

Very sorry, didn't mentioned that I've done definition of varibale by "global *variable*". Otherwise an error will appear.

I am not sure about before_output. I believe, you are right.

I've done as you said and get the positive result! G-Code looks like it should be!

I am very grateful for your help!
Thanks a lot!
With best regards

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! Already a Member? Login


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close