It seems that in NX 12 the macro argument is not set to de sub program parameter p.e. D--> #7 anymore. I can imagine that this is necessary for multi subprogramming. But how shoud I know which Variable contains the Value that I stored with this method?
to check your problem in detail, please let me know which NX version you are using in detail and what is the NC Code of the main program where you do have these problem.
Are you saying that was working in a previous version?
NX 126.96.36.199 MP4
see example below
in the subprog - "ToolChange_B_Head" I can use then #7 and #2 to do something. This was working in NX10, but I don't know in which version this was changing... now #7 has always 0.
Hello, I looked that in our sim15 Fanuc example and it works. So overall this should work.
In this example we are calling a subprogram O0361 and the values from the main program are correctly set insides the subprogram. To do that this is all implemented in the O Metacode first line of the subprogram. I may work if you try to follow that way.
Thank you very much for your answer. But the Problem appears if you set the macro argument (lets say manually) after CallSubProg. To have the Fanuc Arguments in the called sub prog I was able to set the Macro argument (which was recognized with MCParam) with the global Method GMe_SetMacroArgument.
the called subprog starts like this:
O73 (do not remove - important for parameter handling)