Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

nx6 postbuilder, custom commands

Status
Not open for further replies.

Jaydenn

Mechanical
Jan 13, 2005
281
Hi all,
I need some help with a few things that should be simple, but they are not.

First, I need a way to output G17, G18 and G19.
My machine is a full 5 axis with dual rotary tables.
So, the workplane is always G17 unless you use a 90º head, which I am.

Sounds simple (and it should be), but it's not working at all.
I need it output immediatly after the tool change and be based on the head vector (90º milling head).
for example, if I am using an angle head along the x axis, I need to put the machine in G19(yz) so the arcs and Cut Comp will work.
I want this code output even if I'm not using dcomp and even if I am not using arcs.
In the current postbuilder, If I add the "ARC PLANE WORD" to my initial move event, it works...BUT it is one operation behind i.e. The first operation gets NO CODE and the second operation gets the code from the first operation and so on.
And if there is no head vector, i.e. No milling head, I need G17 output.

Second, I want to add a custom command that will send the machine home (G91 G28 Z0.0) ONLY IF the next operation has a different tool axis (machine rotation) that current.
basically a super safe post that always pulls z away before it rotates regardless of avoidance settings in NX.

Thanks!!!

JAY
 
Replies continue below

Recommended for you

Since the G17 is the default, put it in your startup operation, then have the rotary axis moves control the G18, G19.

I have to leave the details to the UG Post experts as I haven't used it since NX1. Everything you describe is possible in the post.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Thanks Ben,

It's not as simple as just putting G17 in the startup operation because I'll need to jump back and forth between all the planes, depending on the angle head being used and the type of milling I'm doing.

I need the system to check the head axis status and output the correct PLANE code for each and every operation, everytime.

And the rotary moves will have no impact on the plane...
if it were just rotary table moves, it would always be G17.

The wrench I am throwing in, is the angle heads. The angle head vector is going to determine the plane.

J
 
This will require a custom proc

The mom variables are mom_kin_holder1_orientation
If you have more than one head then it should be incremented.

I would use the review tool to see which variables are available.

This will return a string value of POSX,POSY,POSZ,NEGX,NEGY,NEGZ

You can then test for one of these values and output the correct code. If none are active teh n default to G17
You may need to create a new G code and block.

Sounds like fun ;-)


John Joyce
Tata Technologies
1675 Larimer St.
Denver, CO

NX3,4,5,6 Solid Works, Pro/e, Solid Edge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor