You are on page 1of 2
What is G-code? G-code is just the language used to control CNC machines. This course will be going over some of the basics of G-code and how to use it with CNC machines. If you are involved with CNC machining then you should at least know a litle bit of G-code to understand what is going on. This will allow you to make simple changes to G-code, and understand what the CAM program is doing Understanding Coordinate System Make sure to note the coordinate system of your machine. This is a typical layout but whats important to remember is even though the table may move and tool may be stationary you need to know what respect to what your coordinate system is set up. You may see something as a positive motion but it may actually need to be coded as a negative motion. First order of business should always be to identify the coordinate system. Se Colurnn A (esis) Expressing Coordinates G code expresses coordinates by using X-- Y- Z--. What that means is you place the axis and then the location on that axis. Here is a sample of G-Code that sets a speed and position Rapid Move Nos (GO) XLOYI.O Number of Coordinates Program Line Pretty simple right! Take a look at some of these other letters that indicate something specific (address specifications) in G-Code. 0 - Program number (Used for program identification) N- Sequence number (Used for line identification) G - Preparatory function (See below) X - X-axis designation Y - Y-axis designation Z.- Z-axis designation R- Radius designation F - Feedrate designation S - Spindle speed designation H-- Tool length offset designation D- Tool radius offset designation T - Tool Designation M - Miscellaneous function

You might also like