This code is similar to the Rectangle code above, but uses G41 to offset the tool according to the tool table.
Enter your parameters below to generate G-code for a simple rectangle.