Cancel
Showing results for 
Search instead for 
Did you mean: 

Mom variables

Builder
Builder
Hello friends
I want to some mom variables of following attributes for shop documents
1) XC YC ZC (mcs) block size for workpiece
2) Max&Min Travel from MCS in x y cordinate and z value calculated from top, means how much z will down from top face
3) Put image
4)Total Machining time for all toolpath
9 REPLIES 9

Re: Mom variables

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
1) No vars. I build external lib to know these values
2)You must analyze motions and calculate needed vars
3) impossible.
4)mom_machine_time, but this value = path_legth/feed, not true time

Re: Mom variables

Pioneer
Pioneer

I'm also interested in something similar - a mom variable for the blank workpiece geometry diameter and length (turning application). Is this something that exists, and if not, could you explain how you do this with an external library?

 

Thanks,

John

Re: Mom variables

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

no,  nx has no such variables for blank

 

Libraries - you have to learn something about DLL if you want to create some

(C/C++, Visual Basic, C#, Java, and Python)

 

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_api/#uid:index

 

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Mom variables

Builder
Builder
@Juraj
Thanx
But i think this the way of computer engineering

Re: Mom variables

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

*IF* you are consistant...

I use expressions for things like blank OD & length (turning) and block size/position (milling)

You can then use to define WORKPIECE (Siemens control) or other similar commands to define for on-machine simulation or whatever.

 

The nice thing about expressions is that they are available in the "start of program" event.

 

NOTE: This is for posting, not for shop docs.  I create all my documentation as part of postprocessing (writing to a separate file).

 

Have you looked at the new Work Instructions?  They may have some of the things you want.

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


Re: Mom variables

Pioneer
Pioneer
@Ken - Great idea, I think expressions would be a good way to handle it. I'm mainly concerned with not having the blank as represented in the sim different from what gets posted ... whether it flows from user input to blank def, or blank def to posted values, it doesn't concern me too much. I'm not familiar with these "new Work Instructions" you mentioned. Could you point me in the right direction if you don't mind?

Thanks and regards,
John

Re: Mom variables

Builder
Builder
Then how to put expression and use it in shopdoc

Re: Mom variables

Phenom
Phenom

If you have a expression as name : <Vora> (not tested)

MOM_output_literal [MOM_ask_ess_exp_value Vora]

MOM_ask_ess_exp_value

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Re: Mom variables

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

RE: Work instructions

They started in NX10 (I think).  NX12 docs are here:

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128418:index_mfggeneral:xid11053...

 

They should be able to get the "pictures" you want

 

RE: Expressions

Be careful using MOM_ask_ess_exp_value - test what happens if the expression does not exist, and handle accordingly.

 

I *believe* the only way you will get max/min X/Y/Z values is by posting.  Note your could write data back to attributes or whatever for the "shop docs" to use, if the shop docs are run AFTER posting.  Also note you need to be careful for max/min values for:

- drill cycles (you need use mom_cycle_feed_to_pos, not mom_pos)

- full circle (not quadrant limited) arcs

 

 

 

 

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