Hello,
I am running Mori Seiki NV5000 a1 machining centre and I am working on big project right now. As machine have 4th axis which is right now not so good for work on it I am looking into new way of machining. So basicly I have few 4th axis rotations and we will set 4th axis position manualy and then start machining again. I would like to use M0 to stop the program and M82 to open doors so I can change workpiece and then run continue program
Program would look like this

T01M6
G0 G43 H1 M8 T2
....
...
...
...
G0 G53 Z0 M9 M9
G0 G53 X-450 Y0
M0 M82 M511(OPTIONAL STOP AND DOOR OPEN)
;#3000=0 (CHANGE PART FROM NEST 1 TO NEST 2)- THIS IS OPTIONAL
M83 M510 (CLOSE DOORS AND CLAMPING DEVICE
...
...
...


Can this work if I put it like this?
It is urgent so please respond if you have any experiance with this kind of programing