G01 linear interpolation
Linear interpolation in g-code is done using G00 and G01 commands. G00 is instruction for rapid tool positioning and G01 command is used in process of machining. When G01 command is specified tool moves at specified feedrate. Feedrate depends on machining quality, cutting depth and machine power. As an instruction in g-code feedrate is specified by parameter F. Using smaller feedrate can increase processing quality and tool duration, but processing time is also increased.

On the image you can see tool path formed from red and blue lines. Red lines illustrates material processing and this is where you use G01 interpolation and the blue lines illustrates tool positioning this is where you use G00 interpolation.
| N01 | M216 | Turn on load monitor |
| N02 | G21 | Metric unit mode m / mm |
| N03 | G90 | Absolute coordinates |
| N04 | G00 X50 Z10 | Move tool close to work piece |
| N05 | G50 S2000 | Set the maximum revolution per minute |
| N06 | T0303 M6 | Set tool 3 with tool offset 3, change tool |
| N07 | G96 S280 F0.1 M42 M03 M08 | Constat surface speed, 280 m/min , 0.1 mm feed rate , M03 - Start spindle CW rotation, Turn the mist coolant on |
| N08 | G00 X32 Z0 | Rapid movement to point X32, Z0 |
| N10 | G01 X0 | Linear move to X0 ( and Z0 defined previously) at feed rate 0.1 mm |
| N11 | G01 Z1 | Linear move to Z1 |
| N12 | G00 X28 | Rapid linear move to X28 |
| N13 | G01 Z0 | Linear move to Z0 |
| N14 | G01 X30 Z-2 | Linear move to X30 Z-2 |
| N15 | G01 Z-30 | Linear move to Z-30 |
| N16 | G01 X40 Z-45 | Linear move to X40 Z-45 |
| N17 | G01 X48 | Linear move to X48 Z-45 |
| N18 | G00 X50 Z10 | Move to start point |
| N19 | M215 | Turn the load monitor off |
| N20 | M30 | Program stop |