Skip to content
undoz edited this page Aug 2, 2024 · 12 revisions

Contents:



Note

Default macro parameters can be configured in the User Variables section of mymacros.cfg

The LH Stinger Mainsail Theme and Macro layout can be found here: https://github.com/lhndo/LH-Stinger/tree/main/Config/Mainsail_Theme

Important

If the print finishes up very high, close to maximum Z, then you need to use FORCE DOWN macro before homing next time.
This is due to the probe requiring an initial Z Hop movement, which could cause collisions with the rail stops or the top extrusion.


Motion

QD HOME TILT

Homing and Tilt procedure.
This is the most used macro for homing the printer.

QD ATTACH

Attaches probe

QD DOCK

Docks probe

QD LATCH

Locks probe

QD MESH

Performs Bed Mesh Calibration.
A temperature can be set from the dropdown menu. Defaults to 0

Z OFFSET PRINT

Prints the z_offset value from the configuration


Filament

FILAMENT UNLOAD

Temperature can be set from the dropdown menu. Defaults to current temperature.

FILAMENT LOAD

Temperature can be set from the dropdown menu. Defaults to current temperature.

FILAMENT PURGE

Purges filament. Useful after loading filament.

COLD PULL (Experimental)

Performs a semi-automatic Cold Pull procedure.
Requires lowering extruder print min temp in printer.cfg to 60C
When you hear the extruder perform the last fast retraction, go and pull out the filament by hand.

Temperature can be set from the dropdown menu. Default values work well for PLA.


Force Moves

Warning

The following macros force set the axis position without homing and can cause crashes.
Use with caution and double check the toolhead and bed positions before using them.

AWD SYNC

Helper macro for syncing AWD axis.

For more information please consult the Tuning guide

FORCE UP

Moves the Z axis up by 30mm then disables steppers.

FORCE DOWN

Moves the Z axis down by 30mm then disables steppers.

Important

If the print finishes up very high, close to maximum Z, then you need to use FORCE DOWN macro before homing next time.
This is due to the probe requiring an initial Z Hop movement, which could cause collisions with the rail stops or the top extrusion.

FORCE SET POS

Sets the position to the test resonances (ADXL) probing location.
If that is not found, it defaults to X127 Y127 Z0.
Custom values can be set from the dropdown menu.

DISABLE

Disables steppers.


Parking

PARKBED, PARKCENTER, PARKFRONTLOW, PARKFRONT, PARKREAR

Park macros by Ellis.
Parks the toolhead to predefined positions.


Resonance

VIBRATION TEST

Vibrates the printer at a set frequency. See dropdown menu for options.
Useful for debugging stray resonances.

Requires [resonance_holder] to be enabled in printer.cfg, and installing the module linked in the configuration.

RESONANCE TEST X / Y

Performs resonance testing and generates a resonance graph.

Dropdown Options:

  • ACCEL_PER_HZ (APHZ) - Sets the accel per hz value
  • DR - (0/1) Enables damping ratio calculation
    • This procedure is compute intensive and slows down testing. Recommended for final value generation only

Requires ResHelper

TEST SPEED

Used for testing the motion limits. Features individual axis testing and extended set of parameters (See dropdown menu for options).

Note: Ensure your steppers are synced when testing the limits for AWD axis.
If an AWD axis skips, then you are required to perform a sync procedure to ensure full torque delivery.

For more information please consult the Tuning guide

Based on Ellis's macro and optimized for cartesian motion systems.


Klipper

MAX FAN

The MAX_FAN dropdown contains a extensive links of controls that can override the slicer set fan speeds during printing.

Controls:

  • MAX_FAN (0-100%) caps the fan speed to the maximum percentage set
  • FAN_MULTIPLIER (0.0 .. 1.0 .. n) multiplies the slicers set fan speed by a factor.
  • MANUAL_FAN/AUX takes total control over the fan speeds, and has the following behavior:
    • -1 disables the manual fan control
    • 0 turns fan off
    • 1-100% manual fan speed
    • LINK_AUX (0/1) links the Aux fan speeds to the Part fan
    • AUX_RATIO when linked, it sets the ratio between the Part fan and Aux fan. 0.5 equals 50% of the Part fan speed

QMODE

Quiet mode which can be toggled during print, or by setting QUIETMODE=1 in the slicer print start parameters.

The default behaviour can be configured in mymacros.cfg

Sets:

  • Part fan capped at 50%
  • Aux fan disabled
  • Max Velocity capped at 200 mm/s
  • Max Acceleration capped at 10000 mm2/s
  • SCV is set to 5 and Min Cruise Ratio to 0.4

OFF

Turns steppers, heaters and fans off.

RESET

Restarts Klipper.

SET_ACCEL_FACTOR

Scale acceleration value by factor. Default 1.0


Slicers

Print Start G-code

Orca Slicer

If not using the provided LH Stinger- Orca Profiles, then set the following G-code in Printer section:

Machine Start G-Code:

PRINT_START_LHS BED=[bed_temperature_initial_layer_single] HOTEND=[nozzle_temperature_initial_layer] AUTOMESH=1 AUTOPURGE=1 QUIETMODE=0

Machine End G-Code:

PRINT_END


Prusa Slicer

In Printer Settings > Custom G-Code set:

Start G-Code:

PRINT_START_LHS BED=[first_layer_bed_temperature] HOTEND=[first_layer_temperature[initial_extruder]] AUTOMESH=1 AUTOPURGE=1 QUIETMODE=0

End G-Code:

PRINT_END


Bed Origin

The printer supports multiple bed sizes. For ease of use, the bed position is defined in the slicer by changing the Origin Offsets, and not in Klipper's printer.cfg by changing position_endstop and position_min for the X/Y axis.


Calibration:

Move the nozzle manually to the front left corner of the bed, and note the position, eg. X18 Y38.
Add those values in the Origin section as negative values.

Slicer Bed Settings