Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: ftec on March 11, 2010, 01:36:35 PM
-
Instead of G4/dwell for a defined period of dwell time - is there a G-code or Mach scripting that could be used to get the machine pause and then continue after pressing 'enter' or Mach 'Run' button?
Thanks
/risto
-
M1 in your code will stop until you press start again. Good thing about it is you can have it in your code for first runs and tests etc then once you have proved the code runs fine you can disable the optional stop and the code will run right through ignoring the M1.
Hood
-
M1 in your code will stop until you press start again. Good thing about it is you can have it in your code for first runs and tests etc then once you have proved the code runs fine you can disable the optional stop and the code will run right through ignoring the M1.
Hood
Beautiful!
Thanks Hood!
-
Not a problem :) I use it all the time on the lathe when threading. After the threading code I have a M1 and that allows me to check the thread, if its not right I just edit and run again and check once more, once its right then I carry on and then any subsequent runs of the code I disable Optional Stop and the programme runs right through :)
Hood
-
Right! In my case this makes it possible to pick up any loose cut out sheet metal parts. Eventhough I'm now able to have bridges to keep the cut out shapes in place the bridges are thin and I now have better control over things. Very happy that it was that simple. :)
/risto
-
You could also use M0, the difference is M0 can not be disabled with a button like the Optional Stop (M1)
Hood
-
Hi Hood,
Please explain methods to put M1 optional stom into Gcode
mrpeja
-
If you have M1 in the code Mach will stop at it if you have the optional stop enabled. If you disable the optional stop then the M1 will be ignored and Mach will run right past it.
You can either use the screen button to turn it on/off or have a panel button like I do.
Hood
-
Hi Hood,
This part about ON or OFF is clear, but I asked about methods to PUT M1 INTO G CODE.
Regards
-
Hi Hood,
This part about ON or OFF is clear, but I asked about methods to PUT M1 INTO G CODE.
Regards
Either insert manually or alter your Post Processor to do it automatically.
Hood