From the course: G-Code Programming for CNC Foundations
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Safety block - G-Code Tutorial
From the course: G-Code Programming for CNC Foundations
Safety block
- [Instructor] In this movie we're going to be talking about a safety block. Now a safety block is generally in the beginning of a program, and it generally turns everything off and sets it back to its initial values. Now, we talked about earlier our modal commands. So some things will stay active unless you change them to something else. In the same respect, if you turn them on, they will stay on until you turn them off. Now generally the safety block is trying to set the machine back to its original conditions, so when you write your program or it reads through your program, it's not getting any surprises. So let me show you what's involved in that safety block. So right over here you can see it starts off with a G90 command, which is switching back to an absolute coordinate system. We don't want to be using incrementals. This program or a previous program might have left the machine in a G91 state, and we generally don't want to stay in G91, so we want to switch back to a G90…
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.
Contents
-
-
-
(Locked)
Understand work coordinate systems6m 39s
-
(Locked)
Absolute and incremental commands: G90 and G919m 20s
-
(Locked)
Understand tool offsets5m 9s
-
(Locked)
Modal functions2m 50s
-
(Locked)
Safety block2m 49s
-
(Locked)
Safety checks3m 41s
-
(Locked)
G-code editors and simulators3m 19s
-
(Locked)
Programming resources2m 57s
-
(Locked)
-
-
-
-