Cancel
Showing results for 
Search instead for 
Did you mean: 

from where UDEs have been applied

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

Hello,
With Ugpost, i would like to know if there is a "simple" way to know from where UDEs have been applied. (operations / groups programs / methods / geometry ...)
The best would be to have a variable mom ...
thank you
Best regards

12 REPLIES 12

Re: from where UDEs have been applied

Phenom
Phenom

The order of the events being sent to the post is fixed. The procs are called when the events are received.

 

From the docs:

 

When you post process a tool path, the data is output in the following order:

 

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

Glenn Balon
Production: NX 12.0.2 MP10 Primarily CAM

Re: from where UDEs have been applied

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter
Thanks for answered me

In this case, I can't know if information come from geometry or method or cutting tool or machine tool between "Start of parent group" and "Start of operation".
And it's exactly the same for end events.
I'm expecting something different, because I can't trust events before and after UDEs, it depend of the context so much...
I already explored this way.

Or something missing me ...

Best regards

Re: from where UDEs have been applied

Phenom
Phenom

 "I can't know if information come from geometry or method or cutting tool or machine tool between "Start of parent group" and "Start of operation"."

 

 

Do you mean you can't see the UDE? Or there is info in your posted code, and you do not know where it came from?

Glenn Balon
Production: NX 12.0.2 MP10 Primarily CAM

Re: from where UDEs have been applied

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter
I mean I want to know where UDE's have been setting.
I had a some cases where I needed to know this point, and I managed by deduction,
this time I have to make a detailed giveback map of programs with UDEs settings.
Deduction is not unambiguous enough!

Re: from where UDEs have been applied

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Fred:

 

Have you considered using the Start Event and End Event columns in the ONT to determine where the UDEs are coming from?  You will have to display these columns in each of the views, but then you'd be able to very quickly see what's assigned and where it's assigned to:

 

Program Order View with Start and End Events Columns.jpg

 

If you rest your cursor over any of the Mill Control icons in the ONT, it will display what the UDE is.

 

 

If you want a more detailed record of the Start/End Events columns, use "Export to Spreadsheet" to get a spreadsheet of the current ONT view along with the contents of any assigned UDEs:

 

Program Order Exported to Spreadsheet.jpg

 

If no UDE is assigned, then the column (in the spreadsheet) simply says "Start Event" or "End Event" - otherwise you see the actual UDE settings.

 

Hope this helps.

 

Regards,

~U

Re: from where UDEs have been applied

Phenom
Phenom

It is not used as commonly, but a lot of people are unaware of how to add UDEs to Methods, Tools and Geometry. Right Click>Object>Start/End Events. 

 

@FredJ You may now this already, but I added this info in case it may help someone who sees this post. 

 

 

Geometry Start End Events.PNG

 

 

 

 

Tools Start End Events.PNGMethod Start End Events.PNG

Glenn Balon
Production: NX 12.0.2 MP10 Primarily CAM

Re: from where UDEs have been applied

Phenom
Phenom
Another option is to look a listing for UDEs and also the review tool. UDEs can be pretty hidden - they are not always start end end of object.
NX12.02
Windows 10 Pro
ITC Inc.

Re: from where UDEs have been applied

Phenom
Phenom

@Study  Your right, you can even use Edit toolpath and place a Machine Control Event within a toolpath between any move you choose. 

 

Still difficult to find. 

 

Interestingly a UDE for tool is preceded by "$$UDE:"

 

An operator message and "Insert Instruction" inside an MCS does not have a "$$UDE:" before it in the listing. 

 

 

TOOL PATH/313-MCS_OP110_SHIFT3_-N-_UP,TOOL,BORE-1.3765
TLDATA/DRILL,MILL,1.3765,0.0000,3.7000,180.0000,3.7000
MSYS/3.1912,-1.8173,-6.2964,0.0109938,-0.9999396,0.0000000,0.9999396,0.0109938,0.0000000
$$ centerline data
PAINT/PATH
PAINT/SPEED,10
LOAD/TOOL,202,ADJUST,202
PAINT/COLOR,186
RAPID
GOTO/0.8290,-5.6000,5.6569,0.0109938,-0.9999396,0.0000000
CYCLE/BORE,DRAG,RAPTO,0.1000,FEDTO,-0.5640,RTRCTO,AUTO,IPM,3.0000
PAINT/COLOR,31
GOTO/0.7849,-1.5892,5.6569
CYCLE/OFF
PAINT/COLOR,186
RAPID
GOTO/0.8290,-5.6000,5.6569
PAINT/SPEED,10
PAINT/TOOL,NOMORE
END-OF-PATH
DISPLY/***** SHIFT OFF *****
INSERT/G52 X0. Y0. Z0.
$$UDE: TOOL BREAK CHECK (ATTACH TO TOOL END EVENT)/TOOL BREAK CHECK=OFF   <<<<<< UDE attached to tool
CLAMP/OFF
DISPLY/***** SHIFT ON *****
INSERT/EXTCALL"G52_SHIFT3"       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< UDE Insert instruction
TOOL PATH/314-MCS_OP110_SHIFT3_-N-_UP,TOOL,BORE-1.3765
TLDATA/DRILL,MILL,1.3765,0.0000,3.7000,180.0000,3.7000
MSYS/3.1912,-1.8173,-6.2964,0.0109938,-0.9999396,0.0000000,0.9999396,0.0109938,0.0000000
$$ centerline data
PAINT/PATH
PAINT/SPEED,10
LOAD/TOOL,202,ADJUST,202
PAINT/COLOR,186
RAPID
GOTO/0.8290,-5.6000,5.6569,0.0109938,-0.9999396,0.0000000
CYCLE/BORE,DRAG,RAPTO,0.1000,FEDTO,-0.5640,RTRCTO,AUTO,IPM,3.0000
PAINT/COLOR,31
GOTO/0.7849,-1.5892,5.6569

 

 

 

 

Glenn Balon
Production: NX 12.0.2 MP10 Primarily CAM

Re: from where UDEs have been applied

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

While it is done external to the post, you can use the journal in this thread to find *most* UDEs in a part:

https://community.plm.automation.siemens.com/t5/Discussion-Forum-NX-Manufacturing/List-almost-all-UD...

There's a couple places you can hide UDEs that I have't gotten to yet (I think I documented them in the thread and/or code)

 

*In* the post, you would have to figure out if there is a variable you can use.

- Get the proc "MOOG_Show_Globals" from this thread:

https://community.plm.automation.siemens.com/t5/Discussion-Forum-NX-Manufacturing/moog-show-globals-...

- Add you your event handler code

- Add your UDE to various places (methods, geometry parents, tools, etc,)

- compare the output for each place, try to find variables that make sense to identify the UDE location

 

I'm guessing mom_event_name will be the UDE itself, but maybe not

 

Out of curiosity, WHY do you want to know where the UDE is placed?

 

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