Qidi Plus 4 macros: Fast start, Safe Y moves, Manual tramming, etc...

A set of macros to make the Plus 4 experience faster and more joyful one. And even a bit safer for the printer itself.
23
147
0
527
updated May 6, 2025

Description

PDF

## SIGNIFICANT improvements in ver. 3! Please update! (Version history at the bottom.) ##

## NEW in v3.5: PRINT_START_COOL to circumvent the common heat based Z issues. ##

There's a lot to improve in the stock Plus 4 behavior. I'm not even a decent coder, but I've messed around with these enough to feel safe to share them with others as well. I've been running these myself for numerous prints and several weeks already. I do not recommend installing these on a firmware older than 1.6.0 since I can't verify if they would work properly.

All macros are installed in "gcode_macro.cfg" that you can open from the slicer's Device tab under "Configuration" (shorcut "x"). BACKUP THE ORIGINAL as a text file on your computer before making any edits! When you're finished editing, click "Save & Restart".

FAST INSTALL: You can replace the whole "gcode_macro.cfg" with the included one that has all the macros in place. Then copy the Machine Start & End g-codes into the slicer's Printer settings, restart Klipper and you're ready to go.

INDIVIDUAL INSTALLS: Follow the following instructions TO THE LETTER. (Do not type anything in "gcode_macro.cfg", only copy and paste! And "Enter" to create empty lines if needed.):

'
INCLUDED MACRO SETS:

'
       SAFE_Y

There are a few situations where the printer can damage itself when the tool head starts moving from the purge/clean area. Replacing filament during print pause is one of these. This macro ensures that the toolhead exits the purge area safely even if you've moved the tool head there manually when powered off.

- Insert the contents of "SAFE_Y.txt" into "gcode_macros.cfg" between any existing macros.
- Replace the "[homing_override]" section with the contents of the "homing_override.txt". I urge you to backup the original first!
- Read "SAFE_Y add to.txt" to insert the macro calls to rest of the correct places.

'
       PRINT_START_FAST

### IMPORTANT: You have 3 choices:
1) SLOW: Run full bed mesh on every print, like stock: Change nothing.
2) MEDIUM: Only run mesh for the print area: Enable KAMP, details below.
3) FAST: Use the same mesh for several prints: Remove the semicolon in  ;G32 in the slicer's Machine start g-code. But if you run a very different bed temperature, you should either:
- SLOW: Run the full bed mesh first by heating the bed, then entering G31 then G29 in the Console field in the slicer's Device view. Next prints can use this mesh for FAST start.
- SLOW: Put the semicolon back in front of the G32.  Next prints can use this mesh for FAST start.
- MEDIUM: Enable KAMP for every print.
###

The stock print start can take over 10 minutes. My fast start can skip automatic bed mesh ( G32 ), and it optimizes several other functions to achieve a start time of 2:30 +heatings. I've had zero problems using the same bed mesh for numerous PLA & PETG prints (55-70°C bed) over several weeks.

- Insert the contents of "PRINT_START_FAST.txt" and "CLEAR_NOZZLE_FAST.txt" into "gcode_macros.cfg" between any existing macros.

- Replace the value in the 3rd line in the [gcode_macro G29] gcode section, originally “{% if temp > 0 %}” with “{% if temp > 100 %}”.
- Replace the slicer's Machine Start g-code with the contents of the "Machine start g-code.txt". I urge you to backup your current start g-code first!

ENABLING KAMP

KAMP only meshes the area around the actual print instead of the whole bed. To use KAMP on every print, leave the semicolon in ;G32 and enable KAMP by:
- Go to Configuration (shortcut X) in the slicer's Device view
- Click "KAMP_Settings.cfg"
- Remove the # in front of the first [include ./KAMP/Adaptive_Meshing.cfg] line.
- Click Save & Restart.

'

       PRINT_START_COOL

Like PRINT_START_FAST, but performs Z Tilt Adjust, Z Offset, and Bed Mesh probing already at 70°C. This is to prevent the common failed Z probings due to high heat. In theory the mesh isn't quite as precise as it would be at print temperature, but the differences are very small and I haven't noticed any differences in the print quality from probing already at 70°C.

Disabled by default. To enable, go to the slicer's “Machine start G-code”, remove the semicolon in front of the PRINT_START_COOL line, AND enter a semicolon in front of the PRINT_START_FAST line.

'

       MANUAL_BED_TRAMMING

Watch my video on Plus 4's manual bed tramming mechanism and methods: https://youtu.be/EYy9Yrn_RMs

A set of macros to make manual bed tramming fast and fluent. Note that Qidi Community's SCREWS_TILT_CALCULATE is a bit more precise method (although still slower to start), as long as you remember to adjust to the opposite direction than it suggests...
https://github.com/qidi-community/Plus4-Wiki/tree/main/content/Screws-Tilt-Adjust

- Insert the contents of "MANUAL_BED_TRAMMING.txt" into "gcode_macros.cfg" between any existing macros.

'
       UNLOAD-LOAD

Optimized filament unload and load operations with less cooling and reheating.

- Replace the [gcode_macro M603] and [gcode_macro M604]  with the contents of "UNLOAD-LOAD.txt". I urge you to backup your current macros first!

'
       PRINT END and CANCEL

These set the Z height and position the tool head for easier printed part access without excessive Z height.

- Replace the [gcode_macro CANCEL_PRINT]  with the contents of "CANCEL_PRINT.txt".
- Replace the slicer's Machine end g-code with the contents of the "Machine end g-code.txt". I urge you to backup your current macro first!

'


There are also many great mods at the Qidi Community's github site:
https://github.com/qidi-community/Plus4-Wiki?tab=readme-ov-file

I recommend installing the "Adaptive mainboard cooling" mod to keep the mainboard safe during idle:
https://github.com/qidi-community/Plus4-Wiki/tree/main/content/adaptive-main-board-cooling

I've currently installed the following, to be added with a few more:
- SCREWS_TILT_ADJUST
- Adaptive mainboard cooling
- Chamber Heater Investigation
- Chamber Heater Issue (calibrated power mod)
- Stepper motor tweaks

'

 

mrelwood's macros version history:

3.2: Small bug fixes that may or may not have caused issues on some systems.

3.3: Included Qidi Slicer compatible Machine gcodes.

3.4 Small generic improvements.

3.5 PRINT_START_COOL, and some small generic improvements.

Model origin

The author marked this model as their own original creation.

License