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

Having the hotend heat up after auto bed leveling sequence?

Discussion in 'General Questions' started by Ozzie Alarcon, Sep 19, 2015.

  1. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    I heard there was a G-code script that would make it to where the hotend would not heat up until after the auto bed leveling sequence was complete. This way I don't have the hot nozzle from my E3D V6 touching on my recently installed PEI surface. I would really like to see this happen because I'm sure it's only a matter of time before the heated nozzle begins to damage the PEI surface every time it auto levels.

    I'm hoping I can do this in Mattercontrol because it's all I have for now.
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Just reorder the startup gcode commands.

    @daniel871 had posted this earlier

    G28 ; home all axes
    G1 Z5 F5000 ; lift Z by 5mm
    M140 S[bed0_temperature] ; Set Bed Temperature
    M190 S[bed0_temperature] ; Wait for Bed Temperature
    M565 Z-1 ; set the offset for auto-leveling mechanism
    G29 ; run auto-level
    G1 Z5 F5000 ; lift Z by 5mm
    M104 S[extruder0_temperature] T0 ; set extruder temperature .
    M109 S[extruder0_temperature] T0 ; set extruder temperature and wait for temp
    G92 E0 ; set extruder distance at zero
    G92 E0 ; reset extruder distance to zero
     
  3. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    That was for Simplify3D, I'm not 100%sure that will work in MC.
     
  4. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    That said, PEI is rated for 500c so you don't have to worry about that.
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    If MC has a startup GCode editor it should work fine. Nothing there is Simplify specific.
    Even repetier host had a way to add custom startup gcode so I (hope?) think MC would too (but I can't attest to that--I don't use it)
     
  6. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    Amazon says the PEI material I bought is rated up to 390F which alarms me because I run my E3D V6 at 210C which is 410F. This would tell me the hotend is going to harm my PEI.
     
  7. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,276
    There's an M109 [temperature] thing in matter controls startup. Just move that to the very end of the startup gcode
     
  8. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    Very nice. I will try that. Thank you so much!
     
  9. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    I tried that last night but something is off. When I go to print, the printer does the auto bed level thing but only once. Then when I try to print something again, it doesn't auto level like it use to with stock G-code settings.

    Any ideas?
     
  10. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That sure sounds like MC doing something weird.*

    My startup GCode includes the auto leveling commands on the auto leveling printer and it executes every print.



    *which is a strong suit for MC
     
  11. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    so this would work in MC right?
     
  12. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    I don't use MatterControl so I can not say for certain, but if it has a place to edit/add startup GCODE to the generated GCODE then yes it will work. There is nothing slicer specific in that sequence. The M565 is version specific to Marlin, but assuming you are running a current Robo provided firmware release it will work perfectly fine.
     
  13. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,276
    MC is weird and for some reason only runs the autoleveling once per "instance" in order to have autoleveling run each time you have to close and reopen. I hated that "feature"
     
  14. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    That's actually not true. MC on my printer will auto level every time w/o closing and reopening the program. However, it won't auto level each time once I mess with the stock G code.
     
  15. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    Is the G29 still there?
     
  16. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    Yes, it's there only because I'm back to using the stock G code commands.
     
  17. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    The G29 never should have been removed. That's the Autolevel command.
     
  18. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    This is the stock G code:

    G28 X0 Y0 Z0 ; home all axes
    G1 Z5 F5000 ; lift nozzle
    M109 S[temperature] ; set the extruder temp and wait
    G28 X0 Y0 Z0 ; Home Z again in case there was filament on nozzle
    G29 ; probe the bed

    So how would you set the G code so the printer heats up the extruder right before it prints? Something like this?

    G28 X0 Y0 Z0 ; home all axes
    G1 Z5 F5000 ; lift nozzle
    G28 X0 Y0 Z0 ; Home Z again in case there was filament on nozzle
    G29 ; probe the bed
    G1 Z5 F5000 ; lift nozzle
    M109 S[temperature] ; set the extruder temp and wait

    * I put the G1 Z5 F5000 line where I did so the print nozzle isn't resting on the bed while it's heating up. Would this setup work?
     
  19. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    That code should work. Just make sure to disable the software autolevel in MatterControl that is separate from the gcode section because I think they fight each other otherwise.
     
  20. Ozzie Alarcon

    Ozzie Alarcon Member

    Joined:
    Aug 7, 2015
    Messages:
    105
    Likes Received:
    7
    I looked in MC settings and it says "has hardware leveling". So I uncheck the box and it will still auto level because it's in the G code, right?
     

Share This Page