Notifications
Clear all

G-Code equivalents to menu actions  

  RSS
Craig Trader
(@craig-trader-2)
Eminent Member
G-Code equivalents to menu actions

I use Octoprint as a controller for my Prusa Mk3 + MMU2 (still waiting for the MMU2S upgrade). I would like to write an Octoprint extension to the control tab that run the following menu commands:

  • Load Filament (All, 1, 2, 3, 4, 5).

  • Load to Nozzle (1, 2, 3, 4, 5).

  • Unload Filament.

  • Eject Filament.

  • Select Tool (1, 2, 3, 4, 5).
  • I know that T# manages tool selection. Are there G-Code equivalents for the other menu commands?

    I solve problems, usually with computers ......
    Posted : 02/04/2019 6:48 pm
    --
     --
    (@)
    Illustrious Member
    Re: G-Code equivalents to menu actions

    Prusa supported: https://github.com/prusa3d/Prusa-Firmware/wiki/Supported-G-codes

    Marlin General (many work): http://marlinfw.org/meta/gcode/

    Posted : 02/04/2019 7:16 pm
    Peel
     Peel
    (@peel)
    Eminent Member
    Re: G-Code equivalents to menu actions

    M702 Unloads all filaments

    M702 U Unloads all filaments used during print

    M702 C Unloads filament in currently active extruder

    You could also do T2 M702 C Sets tool to 2 (third filament from the left) then unloads.

    Posted : 02/04/2019 11:09 pm
    --
     --
    (@)
    Illustrious Member
    Re: G-Code equivalents to menu actions


    You could also do T2 M702 C Sets tool to 2 (third filament from the left) then unloads.

    Aren't command separators required for multiple commands on one line? I seem to recall not having much success until I placed : between commands.

    Posted : 03/04/2019 12:17 am
    Craig Trader
    (@craig-trader-2)
    Eminent Member
    Topic starter answered:
    Re: G-Code equivalents to menu actions

    Thanks for the quick responses!

    - Craig -

    I solve problems, usually with computers ......
    Posted : 03/04/2019 1:56 pm
    Share: