From the course: G-Code Programming for CNC Foundations

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

M01: Optional stop

M01: Optional stop - G-Code Tutorial

From the course: G-Code Programming for CNC Foundations

Start my 1-month free trial

M01: Optional stop

- [Narrator] The M1 command works exactly like the M0 command. However, the control ignores this code unless you have the optional stop button turned on in the controller. Now, most CAM Packages will automatically output an M1 command at the beginning of each operation. If you're proving at a program it makes a lot of sense to stop after each operation and make sure everything looks good before you progress to the next operation. Go ahead and turn on optional stop on your controller to prove out the program and then turn it off for production. Now on the screen here you can see I've got a very simple program, I'm just going to do a mock drilling cycle. Now after each drilling cycle we have an M1. Now notice this is very similar to the M0 program we just ran. The only difference is we switched the M0's to M1's. This way I can turn optional stop on in the controller and it will stop at each one of those M1's. If I turn it off it should just progress it through the entire program and…

Contents