Close



Results 1 to 5 of 5
  1. #1
    Technologist
    Join Date
    Oct 2014
    Posts
    114

    Gcode in Firmware

    Could a gcode string be saved in the firmware like a G28 or so? I am working on a nozzle cleaning process and would like to not have to do it with a slicer.

  2. #2
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Yes. I do not have an LCD Panel but the way they do their work is they 'inject' GCode commands into the printer's buffer. Basically, they are pretending the printer got the command from PronterFace even though the LCD Panel generated it. Check out one of the LCD Panel's .cpp code and you should be able to find what I'm talking about. Specifically, search for enquecommand and enquecommands_P. The _P version saves memory from being used in the RAM space.

  3. #3
    Senior Engineer
    Join Date
    Jun 2014
    Location
    Burnley, UK
    Posts
    1,662
    If you are talking about a set series of fixed movements on a menu button then bypass the Gcode part altogether and add it to Marlin directly. Marlin is well structured for adding bespoke code.

  4. #4
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Quote Originally Posted by Mjolinor View Post
    If you are talking about a set series of fixed movements on a menu button then bypass the Gcode part altogether and add it to Marlin directly. Marlin is well structured for adding bespoke code.
    Yeah! I agree!

  5. #5
    Technologist
    Join Date
    Oct 2014
    Posts
    114
    Great thanks guys, I will try and sure post more questions here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •