Solved! Go to Solution.
for simulation with subprograms and cycles it is needed to have each program in a separate file.
One file for the main program with the M98 call and a subprogram file ####.ptp. In the subprogram file the first lien is then O####.
Then it will work.
It will not work if all program are in one file.
Please put in an enchancement request. I don't have much experience using the simulation, but I would think that if the real machine can do something than the one on the computer should be able do it too?
I agree and I will put one in. I was able to get it to work using Tom's method. The main issue that I have is now we are not simulating the actual g-code that is run on the floor. Yes I am only copying and pasting out the subs but there is still some room for error.
On a Fanuc control, when the NC file is loaded it puts the Sub programs into separate files in the control.
So I have define a subprogram file named 71.prg(kept this file in subprogram folder of cse_drivers) in case of M98 P71 but the Simulation gives error :"saying program O071 not found ".
I tried with P1 also not working at all.
And in case it isn't obvious...(it took me a second to realize...)
"letter Oh"-"number zero"-"number zero"-"seven"-"one"
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled