G00 sets the CNC movement mode to rapid traverse, sometimes called rapid travel.
G00 controls the speed of the machine’s motion.
This code is used to move the CNC table and/or spindle around in a straight line (linearly) at the maximum speed.
When G00 is used, the machine ignores any feed rate set with the F code and instead goes as fast as possible.
Any combination of 1 or more of the machines axes can be moved in rapid mode. This includes the X, Y and Z axes.
G00 vs G0
Some people get confused about whether the extra 0 is required to be included with an G00 code.
To clear this up, there is no need to include the extra zero in the code. The CNC machine will read the code the same. It really is just a matter of preference.
Often you will see the full G00 code used in textbooks or other reference materials. In practice though, many prefer the shortened G0 code in their programs.
If you are working on your own, then go with whichever format you prefer. If you work in a bigger shop, make sure to stick to the format that the business has been using.
When to use a G00 code
G00 codes are used when the CNC programmer wants to move the tool very quickly. This happens at many points throughout a program.
Rapid positioning with G00 moves the machine at full speed. This allows the program to be run faster and decreases the part cycle time which means parts can be made faster.
G00 should only be used when there is no cutting action happening.
Using G00 while cutting your part would not give you good control over the cutting conditions and would most likely damage your part and/or your machine.
Use the G00 code to move the cutter to the location where it will start cutting or to other locations in the CNC such as the tool change position.
Other codes used with G00
The codes below are used with the G00 code or commonly found very close to a G00 command in the CNC program:
Format for using a G00 code
G00 X1.0 Y2.0 Z3.0
G00 is a simple code. You only need to specify the stop location for the movement.
Because G00 is a modal code, you don’t need to specify it on every line of code. If the next line of code after the one above was X4.0 Y5.0 Z6.0 then the machine would still move to the location in rapid mode. Because it’s modal it stays on until switched to another mode.
How to turn off a G00 code
There isn’t a specific cancel command for G00 like there is for canned cycles. Instead to turn G00 off you will need to switch it to another code in the same group of movement codes.
The other codes in the movement group are:
- G01 – Linear interpolation
- G02 – Clockwise circular interpolation
- G03 – Counterclockwise circular interpolation
What to think about when using a G00 code
Absolute vs incremental positioning mode
The second thing to know is how the machine will understand position locations.
Absolute positioning will move from a set zero location such as your machines home location or a specified location on your part.
Incremental positioning will move relative to your current position.
The images below show the difference between the absolute and incremental positioning modes. The numbers in parentheses are the locations given to the the machine to make the move.
Notice how in absolute mode, all locations are relative to a single location, usually either the workpiece zero or machine home location.
In incremental mode, all locations are relative to the machine’s current location.
Know your machine. Some machines will move all 3 axes at once. Some will rapid one at a time.
Others will move a single axis at a time. Most machines will move all 3 at once but make sure you know the path your CNC will take when using the G00 code.
Start and stop locations
Lastly, make sure you understand the path that the tool will take from it’s start location to the new location.
Check where you are currently position wise (X, Y & Z location), where you will be moving to and if there is anything in between the two locations.
The G00 code will move the machine very quickly to the new location. You don’t want anything in the way or to miscalculate your stop point.
Crashing your machine is never a good time.
G00 [Rapid Travel] vs G01 [Linear Interpolation]
G01 is a very similar command. It also controls straight line movement, otherwise known as linear interpolation, of the CNC machine.
The difference between the two is that G01 will not move at maximum speed and will instead move at the last feed rate listed in the CNC program using the F command.
G01 is used for cutting motions. G00 is not.
CNC codes that are similar to G00
Note that all the movement codes listed below are modal. This means they will stay in the movement mode identified by the code until switched to a different mode.