
Since Dynamic Inline Mode is new to Marlin (Oct 2021) it should still be considered under development and experimental. In these modes, power set with the S parameter doesn’t take effect right away, but applies on the next G1/ G2/ G3/ G5 move. These modes remain set M5 I returns to Standard Mode. M3 I enables Continuous Inline Mode and M4 I selects Dynamic Inline Mode. There are two inline modes, selected using M3/ M4 with the I parameter. Standard Mode can be used in combination with LASER_SYNCHRONOUS_M106_M107 (described below), and can be used to cut or to provide Spindle Feature operations when it is active. This mode is good enough for a spindle and is provided for backward compatibility. In Standard Mode the M3/ M4/ M5 commands wait synchronize the planner (causing a momentary stop) before changing the power. The default operating state for LASER_FEATURE is Standard Mode. Otherwise the cutter will simply be turned on full for any non-zero value and off for zero.


A hardware-enabled PWM pin will provide the best results. If your spindle / laser accepts PWM signals for variable power levels enable the SPINDLE_LASER_USE_PWM option and define a SPINDLE_LASER_PWM_PIN. Laser features and other related options are enabled when LASER_FEATURE is defined in Configuration_adv.h. M306: Model predictive temperature control.
