If you can read C, GitHub - Snapmaker/Snapmaker2-Controller: Snapmaker2-Controller is the firmware for Snapmaker 2.0 3-in-1 3D Printers. will answer your questions. If you can’t https://snapmaker.github.io/Documentation/gcode seems to be an up to date reference.