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, .bmp.
Before slicing, always check if you've selected the correct machine model and toolhead via Preferences > Machine Settings.
Workpiece Size
Click the Import button in the toolbar to import the prepared design file, or directly drag the file into Luban.
Adjust the size and angle of the design in the Edit panel.
You can click the Lock icon to ensure the width and the height of the design change proportionally or independently.
Click Process, select an object on the canvas, then 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 after previewing the generated G code. Select Load G-code to Workspace or Export G-code to File.