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 laser engraving and cutting, read our Academy article: Templates and Designs for Laser Engraving and Cutting: Great Websites and Software that Will Make You A Better Creator.
Luban supports the following formats of the design file: .stl, .svg, .jaeg, .png, .jpg, .bmp, .dxf, .snaplzr.
Before slicing, always check if you've selected the correct machine model and toolhead via Preferences > Machine Settings.
Launch Luban and click Laser > 3-axis to enter the Laser G-code Generator.
Input the size of the workpiece and choose the mode and position of the work origin coordinates.
Workpiece Size
Work Origin Mode
Work Origin Position
Job Offset Mode
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, then select an object (the smallest independently movable unit in your design) and click Create Toolpath.
Configure the parameters for engraving and cutting in the Toolpath Settings window.
You can use the preset parameters directly or make adjustments based on them.
For more information on configuring engraving and cutting parameters, read our Academy article: Parameter Configuration Guide: How to Set Proper Work Parameters for Laser Engraving and Cutting
Click Generate G-code and Preview.
Click Export to export the G-code file to the local directory or to Workspace.