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

GCode (Newbie)

Discussion in 'Troubleshooting' started by wuidling, Apr 6, 2020.

  1. wuidling

    wuidling Member

    Joined:
    Mar 29, 2020
    Messages:
    56
    Likes Received:
    27
    Hello,
    a little Questions of understanding.
    If i send a file to the Robo (Upload) created by Cura how does the sequence start ?

    Octoprint - before starting printjob - Gcode ?

    In Cura the Start Sequence is:

    G92 E0 ;zero the extruded length
    G1 X190 Y0 F7000 ;move to priming position
    G1 Z2 ;raise bed
    G1 F200 E10 ;extrude 10 mm of feed stock
    G1 Z15 ;raise bed after priming
    G92 E0 ;zero the extruded length again
    G1 F7000;

    So if the Start Sequence is in the Cura File i think the field "before starting printjob" should be empty or...?
    Some files are resetting the R2 by moving the bed before printing.

    Regards

    (Excuse my School English)
     
    #1 wuidling, Apr 6, 2020
    Last edited: Apr 6, 2020
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    With OctoPrint you can have it include a section of startup GCode, just like your slicer can.
    You probably do not want to have the startup GCode in both places so pick whichever one you wan to use.

    In my case we let OctoPrint handle it because OctoPrint is dedicated to one printer (each printer has its own Raspberry Pi and OctoPrint instance) and the slicer is used for many other printers.
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Bear in mind that EITHER approach is fine, use whichever works best for you.
     
  4. wuidling

    wuidling Member

    Joined:
    Mar 29, 2020
    Messages:
    56
    Likes Received:
    27
    Thanks, for a Newbie its a little bit difficult to handle all these adjustments.
    You're looking to a resetting printer and again the search begins....

    Regards
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    If you are using the OctoPrint that was installed on the Pi for the R2 or C2 you can look at the startup GCode inside of OctoPrint.
    You can see that it is somewhat involved (more than just homing and autoleveling).
    But you can edit that to whatever you need -- including just removing it entirely if you want to have the slicer add the startup GCode.
     
    tkoco likes this.
  6. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    If you decide to use the Cura Start Sequence G-code, add a G29 ; Home the axis right after the G92 E0 G-code

    That way, all movements afterward will start from a known starting point.

    Whichever Start Sequence you decide to use, delete the other Start Sequence. That way, the two Start Sequence scripts will not interfere with each other.

    Example: Use Cura, delete Start in Octoprint; Use Octoprint, delete Start in Cura. Robo recommends using Octoprint and deleting the Start G-code in Cura.

    Do the same for the Ending G-code scripts.
     
    #6 tkoco, Apr 7, 2020
    Last edited: Apr 7, 2020

Share This Page