结束打印时调用 M300 播放提示音,示例来自 CHEP###[gcode_macro START_PRINT] gcode: # chirp to indicate starting to print M300 S1000 P500 # Use absolute coordinates G90 # Reset
All features are configured by settingvariable_values in the[gcode_macro _km_options]section. All available variables and their purpose are listed inglobals.cfg. Note:PRINT_STARTspecific customizations arecovered in more detail below. BED_MESH_CALIBRATE_FAST ...
In slic3r derivatives, you would use: M140 S0 M104 S0 before the macro call. Also note that SuperSlicer has a "custom gcode only" button option, which achieves the same outcome. An example of a START_PRINT macro using these paramaters can be found in config/sample-macros.cfg...
For example, suppose you wanted to implement a new command called G_PURGE to create a purge line (case doesn’t matter, by the way). That’s easy. You just need to put in your configuration file: [gcode_macro g_purge] gcode: # do your purge code here ...
Start printing... I don't get any reasons, but if you still need to adjust the offset from your Slicers start GCode, then add this to your PRINT_START macro after the Z calibration: # Adjust the G-Code Z offset if needed SET_GCODE_OFFSET Z_ADJUST={params.Z_ADJUST|default(0.0)|flo...
[gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: CANCEL_PRINT_BASE variable_park: True gcode: ## Move head and retract only if not already in the pause state and park set to true {% if printer.pause_resume.is_paused|lower == 'false' and park|lowe...
[gcode_macro PAUSE] description: Pause the actual running print rename_existing: PAUSE_BASE # change this if you need more or less extrusion variable_extrude: 1.0 gcode: ### read E from pause macro ### {% set E = printer["gcode_macro PAUSE"].extrude|float %} ### set park positon ...
Execute the ADB_START_SERVER macro to make sure adb-server is running and listening to commands. You can add this macro to your START GCODE if you want Focus and lock exposure to where your print will sit/be parked Print! ⌨️ useful adb commands: adb shell input keyevent CAMERA #th...
Update the slicer start g-code. The START_PRINT macro has been updated/improved: uses your actual bed temperature for meshing etc., does a QGL with home Z, and does a Z_OFFSET_CALIBRATION before each print. Go to OrcaSlicer and edit the printer settings : -> Machine -> G-code -> ...
[gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: CANCEL_PRINT_BASE variable_park: True gcode: ## Move head and retract only if not already in the pause state and park set to true {% if printer.pause_resume.is_paused|lower == 'false' and park|lowe...