Post Builder (Rotary Auto Clamping)
Post Builder (Rotary Auto Clamping)
(OP)
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.
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)
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.
J
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)
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)
--
Bill
RE: Post Builder (Rotary Auto Clamping)
<<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)
RE: Post Builder (Rotary Auto Clamping)
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.
J
RE: Post Builder (Rotary Auto Clamping)
RE: Post Builder (Rotary Auto Clamping)
RE: Post Builder (Rotary Auto Clamping)
RE: Post Builder (Rotary Auto Clamping)
RE: Post Builder (Rotary Auto Clamping)
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)
should do the trick.
RE: Post Builder (Rotary Auto Clamping)
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
Yuri