Description:
This website offers GCODE as a Service. It was created using vibe coding with GPT5.2+Agent and based on the Excel file of sheets and modules that generates GCODE for milling the cube faces, bottom cover, front bezel and carving text for The Herbal Cube – a cannabis vaporizer.
This website is working in a 2D design space. One or more milling features are defined for a single tool on a two dimensional surface (face). The feature GCODE is concatenated together and executed in sequence.
• Create, save and edit GCODE to control the cutting tool of a CNC Router.
• Export the GCODE as a plain text .ncc file.
• Simulate the GCODE on screen. Or use UCCNCdrive.com in demo mode.
• Examine a real world application of milling a cube for a cannabis vaporizer.
• Download the Microsoft Excel file with sheets and modules.
Links:
GCODE – Enter parameters for milling features, create GCODE, run the simulator, export to a .ncc file, save your work.
CNC Router – An inexpensive CNC router and controller.
Features – A catalog of 8 milling features and parameters.
CAD – MS Publisher is used as a 2D layout tool for sizing and positioning the features for a face.
Modules – Visual Basic modules to generate GCODE for a milling feature.
Sheets – Excel sheets specify feature type, position and size parameters.
Excel – All sheets used to mill, drill and text carve the cube for The Herbal Cube www.TheHerbalCube.com.
The 3040Z-DQ is a Chinese designed and manufactured CNC router. The 3040 refers to the bed size being 30 cm (12″) x 40 cm (~16″). There is 2.5″ in Z travel above the bed.
A milling feature specifies how the surface of a work piece, such as a cherry wood cube, is worked by a CNC router tool. Tools include end bits, drill bits, and carving bits. A module creates a GCODE script for a tool to mill the feature with the specified location and dimensions. Several features using the same tool can be executed in sequence in a concatenated GCODE script.
Computer Aided Design (CAD) describes the software for specifying the layout of the milling features for each tool on a face.
The GCODE for a milling feature is generated by a VBA (Visual Basic for Applications) module in Microsoft Excel. The feature type, position and size information is stored in a sheet for a single tool on a milling face.
Each milling feature is defined as an Excel VBA (Visual Basic for Applications) module to generate GCODE scripts. GCODE is a toolpath program. Each instruction in the program specifies action of the tool – raise, lower, or move in the x and y direction on a path.
Tabs for all the sheets used to mill, drill and text carve the cube for The Herbal Cube.
Reference information
Templates used to create GCODE
Technique to mount 5 fixtures for one milling session
Feature parameters for 4 faces, cover outside, cover inside, bezel inside
Position information to carve 7 text strings
Generated GCODE which is exported to .ncc plain text file