The G-code file is output of the process during which the geometric information of the design file is translated into instruction information that the machine can read and comprehend. Therefore, you need to prepare a design file first.
For useful websites to find amazing design files for CNC carving and cutting, read our Academy article: Going from Art to Part: Models, Designs and Videos for CNC Carving.
Luban supports the following formats of the design file: .svg, .dxf, .png, .jpg, .jpeg, .bmp, .stl, .amf and .3mf.
Before slicing, always check if you've selected the correct machine model and toolhead via Preferences > Machine Settings.
For details, please refer to - Job setup.
Click the Import button in the toolbar to import the prepared design file, or directly drag the file into Luban.
Adjust the size, angle, orientation, and image density of the design in the Edit panel.
You should put your object within the canvas. The stripe-highlighted area is where the material is clamped by the 3-jaw chuck.
You can click the Lock icon to ensure the width and the height of the design change proportionally or independently.
Click Process, then select an object (the smallest independently movable unit in your design) and click Create Toolpath.
Configure the parameters for carving and cutting in the Toolpath Settings window.
You can use the preset parameters directly or make adjustments based on them.
Click Generate G-code and Preview.
Click Export to export the G-code file to the local directory or to Workspace.