CNC Router CNC Router CNC Router
 

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.

FRONT sheet FRONT cad
( FRONT gcode - single fixture ) ( T2 tool template ) ( Start Block ) G17 ( X-Y Plane ) G90 ( Absolute ) G20 ( Inches ) G54 ( Work Offset ) ( Tool T2: 1/8" flat nose endmill upcut ) T2 G0 Z0.125 G0 X0 Y0 ( Speed ) S10000 (CW Spindle ON ) M03 ( Feedrate ) F25 ( POCKETRECT ) ( FRONT ) ( Bezel inset hole ) G0 Z0.1250 G1 X-0.4688 Y-0.3906 G1 Z-0.0500 G1 X0.4763 G1 Y-0.2656 G1 X-0.4688 G1 Y-0.1406 G1 X0.4763 G1 Y-0.0156 G1 X-0.4688 G1 Y0.1094 G1 X0.4763 G1 Y0.2344 G1 X-0.4688 G1 Y0.3594 G1 X0.4763 G1 Y0.3844 G1 X-0.4688 G1 Z-0.1000 G1 X0.4763 G1 Y0.2594 G1 X-0.4688 G1 Y0.1344 G1 X0.4763 G1 Y0.0094 G1 X-0.4688 G1 Y-0.1156 G1 X0.4763 G1 Y-0.2406 G1 X-0.4688 G1 Y-0.3656 G1 X0.4763 G1 Y-0.3906 G1 X-0.4688 G1 Z-0.1500 G1 X0.4763 G1 Y-0.2656 G1 X-0.4688 G1 Y-0.1406 G1 X0.4763 G1 Y-0.0156 G1 X-0.4688 G1 Y0.1094 G1 X0.4763 G1 Y0.2344 G1 X-0.4688 G1 Y0.3594 G1 X0.4763 G1 Y0.3844 G1 X-0.4688 G1 Z-0.2000 G1 X0.4763 G1 Y0.2594 G1 X-0.4688 G1 Y0.1344 G1 X0.4763 G1 Y0.0094 G1 X-0.4688 G1 Y-0.1156 G1 X0.4763 G1 Y-0.2406 G1 X-0.4688 G1 Y-0.3656 G1 X0.4763 G1 Y-0.3906 G1 X-0.4688 G1 X-0.4688 Y-0.3906

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.

3040Z-DQ-9 3040Z-DQ-8 3040Z-DQ-6 3040Z-DQ-5 3040Z-DQ-7
3040Z-DQ-1 3040Z-DQ-2 3040Z-DQ-3 3040Z-DQ-4

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.

SLOTCIRCLE SLOTRECT POCKETCIRCLE POCKETRECT HOLECIRCLE HOLERECT DRILL COUNTERSINK

Computer Aided Design (CAD) describes the software for specifying the layout of the milling features for each tool on a face.

Cube AI FACES

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.

SLOTCIRCLE SLOTRECT POCKETCIRCLE POCKETRECT HOLECIRCLE HOLERECT DRILL COUNTERSINK
Modules

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.

FRONT cad FRONT sheet

Tabs for all the sheets used to mill, drill and text carve the cube for The Herbal Cube.

Green tabs Reference information
Gray tabs Templates used to create GCODE
Orange tabs Technique to mount 5 fixtures for one milling session
Brown tabs Feature parameters for 4 faces, cover outside, cover inside, bezel inside
Purple tabs Position information to carve 7 text strings
Yellow tabs Generated GCODE which is exported to .ncc plain text file