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 hexagon using CNC Milling Machines.
This simple example illustrates the how to mill a hexagon.
%
G00 Z0.5 F70
(raise the tool to the clearance height)
G00 X5 Y-15 F70
(Tool movement to the point of beginning of milling)
G01 Z-1 F50
(lower the tool to the desired cutting depth)
G01 X22.3205 Y-25 F50
G01 X22.3205 Y-45
G01 X5 Y-55
G01 X-12.3205 Y-45
G01 X-12.3205 Y-25
G01 X5 Y-15
G00 Z0.5
(raise the tool to the clearance height)
G00 X0 Y0
(the movement the tool to the starting point)
M30 (end of the control program)
%