V1 Setting V2 Setting Description
Whether to activate the laser module at all. All configuration is ignored if false. The laser module is used for laser cutting using a laser diode or CO2 laser tube. When set to `false`, the module is completely unloaded to free system resources. Must be enabled before any other laser settings take effect.
This pin will control the laser. Pulse width will be modulated to vary power output (PWM). The preferred and more descriptive parameter for specifying the PWM control pin for the laser. PWM duty cycle directly controls laser power output percentage. CRITICAL: Only hardware PWM pins are supported: 2.0 to 2.5, 1.18, 1.20, 1.21, 1.23, 1.24, 1.26, 3.25 and 3.26. Using non-PWM pins will disable the laser module with error message. Inverting pin logic with `!` prefix is useful for some laser driver circuits that are active-low.
DEPRECATED: Legacy parameter that specifies the pin controlling the laser through PWM. This setting has been superseded by for improved clarity. If this pin is not connected, the system will check instead. Only specific pins on the Smoothieboard support hardware PWM required for laser control. Use for all new configurations.
This pin turns on when the laser turns on, and off when the laser turns off. Provides a simple on/off signal synchronized with laser firing, independent of the PWM power level. This is a digital on/off signal, NOT PWM - it is either high or low. Commonly used to enable/disable air assist compressors, fume extraction fans, laser power supply enable pins for additional safety, or safety interlocks that monitor when laser is active.
This is the maximum duty cycle that will be applied to the laser. Value is from `0` to `1`. Acts as both a safety limit and calibration parameter - this value represents the highest power output the laser will achieve, even if G-code commands request 100% power. All S-values in G-code are scaled to this maximum. Example: Setting `0.8` means S100% produces 80% actual laser power. Useful for preventing damage to both materials and laser tube/diode. WARNING: Does not provide emergency shutoff - use kill switch for safety.
This duty cycle will be used for travel moves to keep the laser active without actually burning. Useful for some diode setups. Value is from `0` to `1`. Sets the minimum PWM duty cycle (baseline power) for the laser during travel moves and as a floor for all laser operations. Also known as "tickle power" or "keepalive power". Keeps laser diodes thermally stable by preventing complete shutoff and reduces thermal stress from constant on/off cycling. During cutting operations, the actual power is scaled between this minimum and the maximum power setting. WARNING: Non-zero values mean laser is always slightly active when module enabled.
DEPRECATED: This parameter has been deprecated and replaced by . It originally set a small baseline amount of power to keep the laser "tickled" (slightly active) during travel moves. If you have old configuration files using this parameter, it will still work as it provides the fallback default value for , but you should migrate to using instead for clarity and future compatibility.
Maximum S-value accepted from G-code commands. Determines the S-value range: set to `1.0` for S0.0-S1.0 range (standard), `100.0` for S0-S100 range, or `255.0` for S0-S255 range (common in laser software). The S-value is scaled to the 0-1 range internally based on this maximum. Does not affect actual laser power output, only G-code interpretation. Allows using G-code from different CAM packages without modification. Example: With `maximum_s_value=100`, S50 means 50% power.
Whether the laser power should be proportional to the current speed, so as speed of movement ramps up (and down), laser power is proportionally adjusted, so that the amount of laser power/quantity of photons for a given distance/area is always constant, even if speed has to increase/decrease progressively. This is true by default. Enables automatic power scaling based on actual instantaneous movement speed. When enabled (default), power calculation: `actual_power = requested_power × (current_speed / nominal_speed)`. Ensures uniform engraving depth and cutting quality despite speed variations, compensates for machine acceleration and deceleration automatically, prevents over-burning in corners where machine slows down. Can also be controlled at runtime via M221 P command. WARNING: Disabling may cause uneven cuts/engraving due to speed variations.
PWM frequency expressed as the period in microseconds. Sets the PWM period (and thus frequency) for laser control. The PWM frequency equals 1,000,000 divided by this period value. This frequency affects how smoothly the laser power can be controlled and must be appropriate for your specific laser driver electronics. The system uses this period to limit the maximum rate of power adjustments. Default is `20` microseconds.
Default S value for laser operations when no S parameter is specified in G-code. Represents laser power as a fraction from `0.0` (off) to `1.0` (full power). When G-code commands like M3 or M4 don't include an S parameter, this default value is used. Also serves as the initial power level before any S commands are received. Typical laser default is `0.8` (80% power). Set lower for testing, higher for production.
This is a wiki! If you'd like to improve this page, you can edit it on GitHub.