Skip to content

Feature Request custom down command #23

Closed

Description

@brycehub

Hey IridiumIO,

Would you consider adding support for a laser cutter?

I invision it would like this, instead of the gcode telling it to lower down to cut it instead issues a custom command.

here what im doing lol

[gcode_macro G1]
rename_existing: G1.1
gcode:
G1.1 {rawparams}
{% if 'Z' in params %}
{% if params.Z|float <= 0 %}
SET_PIN PIN=_spindle_laser VALUE={printer["gcode_macro _LASER_VARIABLES"].power}
{% else %}
SET_PIN PIN=_spindle_laser VALUE=0
{% endif %}
{% endif %}

[gcode_macro G0]
rename_existing: G0.1
gcode:
G0.1 {rawparams}
{% if 'Z' in params %}
{% if params.Z|float <= 0 %}
SET_PIN PIN=_spindle_laser VALUE={printer["gcode_macro _LASER_VARIABLES"].power}
{% else %}
SET_PIN PIN=_spindle_laser VALUE=0
{% endif %}
{% endif %}

[gcode_macro M3]
gcode:
{% set S = params.S|default(255)|float %}
SET_GCODE_VARIABLE MACRO=_LASER_VARIABLES VARIABLE=power VALUE={S / 255.0}

Activity

  1. Iridium-IO commented on Jul 20, 2026

    @Iridium-IO
    Member

    Absolutely can do :) I don't have a laser cutter myself but it should be possible.

  2. brycehub commented on Jul 20, 2026

    @brycehub
    Author

    i don't either i just called the solinod pin that haha

  3. Iridium-IO commented on Oct 19, 2026

    @Iridium-IO
    Member

    I forgot to add this to 0.11, but I've just finished it and will release with 0.12 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions