Showing results for 
Search instead for 
Do you mean 
Reply

M30 for CSE

G-code file simulation - How I can "rewind" my programm after M30 to first line?

 

Thanks!

 

 

7 REPLIES

Re: M30 for CSE

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.

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: M30 for CSE

In my case for SWISS TYPE machine M30 is:

Cursor return here is REWIND to first line.

Re: M30 for CSE

Thomas -

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.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: M30 for CSE

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?


 

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: M30 for CSE

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/

 

 

Re: M30 for CSE

Doesn't M99 cause rewind and restart when used in a main program?

George

 

George Bennett
All NX versions
W7 Ultimate
Dell Precision M6700
Spirit of Innovation

Re: M30 for CSE

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.

Learn online





Solution Information