Cancel
Showing results for 
Search instead for 
Did you mean: 

[Postbuilder] How to do UDE output before %(start program)

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi

 

How can I output UDE information before %

 

For example

I have programm

_____

O0001
%
G40 G90 G49 G21
(My UDE)
M09

...

I want that my UDE output before %

Like this programm

_____

O0001

(My UDE)
%
G40 G90 G49 G21
M09

...

 

2 REPLIES

Re: [Postbuilder] How to do UDE output before %(start program)

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

It will be easier for you to move your code which outputs O number from Program Start Sequence to Operation Start Sequence.

  

You need to understand when UDEs are called. Here is UDEs processing order from NX DOC:

 

When you post process a tool path, the user-defined event data is output in the following order relative to the sequence markers in Post Builder:

Start of program

User-defined events (UDEs) attached to the program

Start of parent group (program, machine tool, geometry, method)

UDEs attached to the parent group

UDEs attached to the geometry with program, machine tool, geometry, method commands

UDEs attached to the method with Start Events

UDEs attached to the cutting tool with Start Events

UDEs attached to the machine tool with Start Events

Start of operation

Tool change (not Load tool)

UDEs attached to the operation with Start Events

Initial move

UDEs attached to the operation with End Events

End of operation

UDEs attached to the geometry with End Events

UDEs attached to the method with End Events

UDEs attached to the cutting tool with End Events

UDEs attached to the machine tool with End Events

End of program

 

Marek Pawlus, NCmatic

Production: NX 12.0.1
Development: C#, Tcl/Tk, CSE

Re: [Postbuilder] How to do UDE output before %(start program)

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

1) As Marek said, change where "start of program" output occurs
Note (depending how you program) another place might be "first tool change" event (note this relies on the first operation in the part having a tool assigned)

2) Does it *HAVE* to be a UDE? 

If it can be a part attribute, they are available in "start of program" event

 

Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Learn online





Solution Information