First, I apologize if this is something that has been answered or could be answered by searching the threads... but I'm on a bit of a time crunch here...
I will be a teaching assistant for a shop class that starts in a couple weeks, and there is a lot of prep that needs to be done before the class. I have setup Mach 3 on the CNC lathes (Syil C6-B's) and everything seems to work fine. But because the spindles are controlled manually, we want the program to check for spindle speed before running the program to help prevent tool crashes.
Basically we want to redefine the M03 command so that it:
- Stops the program cycle (similar to M06 when there is no auto-tool changer)
- Waits until spindle speed is within +/- 10% of speed set with S#
- If/when spindle is at correct speed allows user to press Reset and/or Cycle Start
As you can tell, we don't have any strict requirement other than not allowing the students to run the program until the spindle is up to speed. It is also not a big deal if we have to create/use a custom M-code. Any help you can provide, links to guides, example code (or full code

) would be really helpful!
Thanks!