AFTER M30 you can only use the "Reset" button in the simulation panel and start over with play.
Due to the fact I assume this is not what you asking I suggest you add code right before the M30 e.g. jump to a label defined at the beginning of the NC Code file.
As far as I know also on real machine tools M30 stops the machine to an end.
Most machine I am familiar with (Fanuc, Mazak, Okuma) also use:
M2 = program end (I never actually use this, but I would assume the operator would have to do something to get back to the beginning of the program before they can hit "start" for the next piece)
M30 = rewind (i.e. on control all I have to do is hit the "start" button and it will start from the beginning)
I'm not sure if I (personally) would want anything handled differently between them in IS&V, but that is how they are defined on the machine.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
What is your requirement use case, when you press play and the simulation reaches M30?
* Should the simulation stop?
* You like to get back to the first NC code line and simulation stops or continue all over?
* What about IPW status?
* What about mounted objects like tools and workpieces
The status at the end differs from initial start?
Just GOTO first line - I thinking about it like call for M30 main programm as subprogramm..
This is a swiss type cnc, and I want to simulate few part production/
Doesn't M99 cause rewind and restart when used in a main program?
I try M99 - no results.
Just now I see only one way - ignore M30 and insert after M30 exact copy of programm - at least I can close loop for SWIZZ TYPE machine.