You can copy G-code
to the clipboard and save as file (*.txt , *.nc , *.cnc ,
*.tap , *.iso, etc).
Off-line version of this program
for generating G-code you can find here .
Example (sample) of the G-code for milling a rectangle using CNC Milling Machines.
This simple example illustrates the how to mill a simple rectangle.
%
G00 Z0.5 (raise the tool to the clearance height)
G00 X0 Y0 (the movement of the tool to the start point of the milling (point 5))
G01 Z-1 F50 (lower the tool to the desired cutting depth)
G01 X0 Y20 F50 (milling side a)
G01 X30 Y20 (milling side b)
G01 X30 Y0 (milling side a)
G01 X0 Y0 (milling side b, return to the start point for milling) G00 Z0.5 F70 (raise the tool to the clearance height)
M30 (end of the control program)
%