Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

post builder : editing expressions for system words

Status
Not open for further replies.

mhrub

Mechanical
Jun 20, 2012
16
Hello all,

I just came back from UG PB training, and I have a question about editing the expressions for the system words. I know it is possible to do because the former person who was in charge of building posts at our company has done it, however I was unsure if it is possible to do within post builder or only by editing the TCL and .pui files directly.

For example, if I go to create a block named auto_tool_change (NC DATA DEFINITIONS --> BLOCK), and add the system word T (tool number) and right click and edit this under his current post the expression is 100 * $mom_tool_number + $mom_tool_adjust_register. Under my new post I am making, if I right click and edit the expression for the tool number is simply $mom_tool_number.

Another example is the word "spindle_max_rpm". For us, it is a G50 and it is built into the system as G92. The only way I was able to change this was by directly going into the .pui file and changing it to 50. And no, spindle max RPM is not a standard word under program & tool path --> g codes.

My instructor told me never to go into the .pui files and .tcl files and to do all the work in post builder itself but I see no way of changing these generic expressions otherwise. The person who made the post I am converting over to the new post builder is no longer here to ask unfortunately and I have searched many places finding nothing.

Thanks for any advise,
Mike
 
Replies continue below

Recommended for you

Hi all,

I figured that editing the system variables was probably a bad idea and this is probably what was done, so I just added a bunch of custom ones.

Thanks for looking and if I am wrong please inform me.
 
What version of NX & Post Builder are you using?


From your examples
For example, if I go to create a block named auto_tool_change (NC DATA DEFINITIONS --> BLOCK), and add the system word T (tool number) and right click and edit this under his current post the expression is 100 * $mom_tool_number + $mom_tool_adjust_register. Under my new post I am making, if I right click and edit the expression for the tool number is simply $mom_tool_number.

Edit the block select change element and select user defined expression and enter 100 * $mom_tool_number + $mom_tool_adjust_register

to change the G92 to G50 go to the Program tab - Machine control and select the Spindle CSS block chcnge the max RPM code from 92 to 50

You should not have to make any edits to the post files outside of PB. I do not think that is recommended.

John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6 & NX7.5
 
Joycejo,

Thanks again for your reply.

Yes, I did indeed do what you were saying (making custom variables), however in the old post I am working with there are no custom ones, only edited ones.

The post was made on an old version of PB from NX 2, this could be why, anyway I stayed away from editing any of the system variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor