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.
M03, M04, and M05: Spindle on and off - G-Code Tutorial
From the course: G-Code Programming for CNC Foundations
M03, M04, and M05: Spindle on and off
- [Instructor] In this movie, we're going to be learning about the M3, the M4, and the M5 command. Now, M3 is spindle on forward, and M4 is spindle on backwards, and M5 is, just basically, turn the spindle off whether it's going forward or backwards. So, all you really need to call this line is the M3 or M4 and then the RPM. So, in this case, on the very first line, you can see right here it's an M3 s100. So, the spindle should turn on at 100 RPMs going forward. Now, if you want to turn the spindle off, simply call an M5 anywhere in the program that you want to actually turn that spindle off. Same thing if you want to use an M4, that will actually turn the spindle on backward. Now, more than likely, you don't use the M4 all that often unless you happen to be doing something very specific, but it works exactly the same as the M3. Okay, if you turn on the spindle when using an M3 or an M4 and you don't specify a speed, more than likely the machine will turn on at the last RPM that it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.