FYI: Custom Snapmaker 2 GCODES - Enclosure Control, Customize Parameters, Information & Debugging

In Snapmaker 2 there are custom GCODE commands, not standard in Marlin and not documented, that can be helpful to you:

  • M1005 Displays Machine Information
  • M1006 Displays ToolHead Information
  • M1007 Displays Axis Information
  • M1010 To Control Enclosure:
    • S0: disable door event
    • S1: enable door event
    • S2: release hold of UART for receiving other PC gcodes
    • S3: set light power, P 0-100%, eg.M1010 S3 P100
    • S4: set fan power, P 0-100%, eg.M1010 S4 P100
  • M1028 Configure the customize parameters of Snapmaker
    • S0: show current parameters
    • S1: home feedrate, X Y Z
    • S2: home bump speed divisor
    • S3: max feedrate in calibration, X Y Z
    • S4: feedrate in calibration, X Y Z
    • S5: Z postions in calibration, details please see comments above
    • S6: laser power in calibration
    • S7: z limit in calibration
    • S8: speed in drawing ruler
  • M1999 Restart the MCU
  • M2000 Debugging Information and control:
    • S0 Actual information
    • S1 L0/6 Set PC logging level
    • S2 L0/6 Set SC logging level
    • S3 Shows Exceptions
    • S4 L1/32 Sets extra logging

Let me know if it helps.

Iā€™m assuming you already know how to access the Serial console to issue GCODES if not just ping me :slight_smile:

13 Likes

Hereā€™s a basic question that I havenā€™t been able to figure out - what does SC and PC refer to?
Screen and PC, figured it out finally.

Also, in perfect Snapmaker fashion, here is a link to the ā€œofficialā€ gcode documentation, which is incredibly lacking and I hope they can update. What a shame we have to dig through the firmware to find these functions.

@Snapmaker: could you please provide the link to the g-code reference file for Snapmaker 2 promised here above?
(In case we still need to wait a few days to see it published, could you please at least tell me how to switch the LED light of the laser module?)