Gcode Variable/Scripts



  • Hi there,

    in the past i missed some Features on Marlin and other Firmwares that allows me to interact with my Printer.
    For Example if i load Filament i wanna safe load it until i reached maybe 400mm and after that slower until the Hotend extrudes Filament.
    The Problem is the Printer donn't know how if it's reached the Hotend or still is on the way. (Bowden Setup)
    So it would be cool if i can say:

    [[language]]
    if(!click_or_interact){
         extrude_Filament();
    }
    
    

    This can be a simple Popu for the Webinterface or a simple click on the LCD.
    Maybe something like this exist already, but i miss Things like this. 😉

    So to ask a Question finaly:
    Is it possible to creat: "Gcode Variable/Scripts"?


  • administrators

    RepRapFirmware has a macro system:

    In the web interface you can add a macro.

    For loads of examples of what you could put in them:

    http://reprap.org/wiki/RepRap_Firmware_macros#Load_filament



  • @T3P3Tony:

    RepRapFirmware has a macro system:

    In the web interface you can add a macro.

    For loads of examples of what you could put in them:

    http://reprap.org/wiki/RepRap_Firmware_macros#Load_filament

    I know that but this isn't what i mean.
    I want more control with a Feature like a descriped. 🙂

    But can the Macrosystem be used by the gcode endscript?


  • administrators

    I don't understand. If you run a macro by clicking on it in the web interface. So you write a macro the extrudes fast for 400, then slow for the remainder.



  • The Marcos got static values that don't fit on eatch situation.
    By the way the Example above was 1 Thing that can be done with that type of gcode scripting
    but there are many more cases where this Feature would be usefull. 😉


Log in to reply