1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Gcode to power down the printer ?

Discussion in 'Off Topic' started by tonycstech, Dec 31, 2013.

  1. tonycstech

    tonycstech Active Member

    Joined:
    Dec 16, 2013
    Messages:
    606
    Likes Received:
    196
    What is the gcode to turn the printer off ?
    I want to add it to my end code
     
  2. Peter Krska

    Peter Krska Active Member

    Joined:
    Nov 30, 2013
    Messages:
    766
    Likes Received:
    229
    I did a search on google and there are lots of links with code examples.

    My question is, is all Gcode the same for all printers?

    There might be extra libraries you might have to modify. Don't really know that to be true. Maybe someone could chime in on the particular requirements using Gcode for the Robo 3D printer?



    Sent from my iPhone using Tapatalk
     
  3. tonycstech

    tonycstech Active Member

    Joined:
    Dec 16, 2013
    Messages:
    606
    Likes Received:
    196
    I know that some open source applications for printing such as have machine selection for a reason.
    So i would assume code would differ somewhat
     
  4. Printed Solid

    Printed Solid Volunteer Admin
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    1,605
    Likes Received:
    1,003
    It's mostly the same, but there are some different commands by firmware. As long as you're setting Marlin as your firmware in whatever you generate the gcode in, you should be in good shape.
    However if you use something like makerware that is sending commands to a proprietary firmware, you might have issues.
    There isn't a command to turn the power off to the printer because you're powering the printer on and off with a hard wired switch. Are you asking for code to turn off the heaters and disable steppers?
     
  5. tonycstech

    tonycstech Active Member

    Joined:
    Dec 16, 2013
    Messages:
    606
    Likes Received:
    196
    No, not the motors.
    There is an option in my LCD from reprapdiscount to turn it off, so i wondered if there is a command to do it.
     
  6. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,276
    You can't turn off the 12 v supply from g-code. Though you can disconnect the arduino from repetier.
     
  7. Racegrafix

    Racegrafix Active Member

    Joined:
    Nov 18, 2013
    Messages:
    213
    Likes Received:
    62
    It just says "cannot self terminate" when I try it.
     

Share This Page