Macro: Sequence¶
What it does¶
Two distinct things live in this one macro block: toolhead parking (where
the toolhead moves during a toolchange, runout, pause, cancel, or completed
print) and a set of extension hooks that fire at fixed points around every
load and unload. Toolchange Movement already
covers parking in full - worked examples, diagrams, the park-position
tuples, restore_xy_pos - so this page doesn't repeat that. What it adds is
the menuconfig view of the same settings, plus the load/unload hooks that
page only mentions in passing.
Where it's applied¶
Defined in mmu_sequence.cfg. Around every load/unload, five callback
macros fire in order - _MMU_PRE_UNLOAD, _MMU_POST_FORM_TIP,
_MMU_POST_UNLOAD, _MMU_PRE_LOAD, _MMU_POST_LOAD - each with a matching
user_*_extension hook, called after the default handling with the same
parameters. A sixth, user_post_preload_extension, fires after a
successful gate preload rather than a full load. See Custom Load/Unload
Sequences for how these fit around the
_MMU_STEP_* state machine itself.
Configuration¶
_MMU_SEQUENCE_VARS in mmu_macro_vars.cfg, reachable from menuconfig's
Macro Variables → Sequence macros (_MMU_SEQUENCE) screen shown above.
Full variable table: Macro Variables:
Sequence/parking. For the
parking/restore_xy_pos/z-hop settings shown on the same screen, see
Toolchange Movement instead - this page focuses on
what that one doesn't cover:
- The six
user_*_extensionhooks above - see Macro Customization for the extension mechanism they use, anduser_park_move_macro, which replaces the default straight-line park move rather than extending it (called withX=/Y=/F=, and again withRESTORE=1when un-parking). auto_home(on by default) - home XYZ automatically if needed before a parking move, rather than erroring.timelapse(off by default) - take a timelapse frame after every load, if your setup has one configured.
See also¶
- Toolchange Movement - parking positions,
restore_xy_pos, z-hop, and worked configuration examples in full - Custom Load/Unload Sequences - the
deeper
_MMU_STEP_*replacement mechanism this page's hooks sit in front of - Macro Customization - the extension mechanism
every
user_*_extensionhook here uses - Macro Variables: Sequence/parking -
every
_MMU_SEQUENCE_VARSsetting in full