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

Starting GCode Change for using PrintinZ Build Plate

Discussion in 'General Questions' started by Gary Boyce, Jun 12, 2016.

  1. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    I'm looking for some help with figuring out the right starting gcode. I have had a lot of issues with the stock glass bed chipping, so I bought a Zebra PrintinZ build plate to use with the R1+. I saw another thread on here where someone else used a similar build plate and changed the starting gcode so that the hot end heats up after the auto leveling is done. I tried their starting gcode and it homes and levels like its supposed to but after that it doesn't heat the bed or hot end. In the gcode terminal after the homing it just keeps repeating T:(hot end temp) E:(bed temp) W:? (Example... T:25.6 E:26.2 W:?)
    Here is the starting gcode I have right now.

    Code:
    G28 ; home all axes
    G1 Z5 F5000 ; lift Z by 5mm
    M565 Z-0.8 ; set the offset for auto-leveling mechanism
    G29 ; run auto-level
    
    ; This set of code is so that it autolevels before heating so that the BuildTek surface is not damaged
    G1 Z5 F5000 ; lift Z by 5mm so it doesnt rest on the BuildTek while heating.
    M140 S[bed0_temperature] ; Set Bed Temperature
    M190 S[bed0_temperature] ; Wait for Bed Temperature
    M104 S[extruder0_temperature] T0 ; set extruder temperature .
    M109 S[extruder0_temperature] T0 ; set extruder temperature and wait for temp
    
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    What program are you using?
    Those commands that set the temperature are environment specific. In other words :

    M140 S[bed0_temperature] ; Set Bed Temperature

    Is Simplify3D specific I am fairly certain. Each program a slightly different way of getting variables from the print profile. That (bed0_temperature) is not GCode, but a parameter from the slicer...
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    as a further example Standard GCode would be:

    M140 S[80] ;


    The M140 S[bed0_temperature] ;

    tells simplify to get the bed temp from the profile and add it during the slice.
     
  4. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    I am using astroprint. I'll check to see if they just use standard gcode.

    Sent from my SM-G930V using Tapatalk
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    They probably have a way to pass variables from their profile into the GCode, but you will need to research that.
    I am not familiar with that slicer.
     
    Geof likes this.
  6. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    I have slic3r specified as my slicer in astroprint. I got the M109 working
    Code:
    M109 S{first_layer_temperature}
    But I am still trying to figure out the M104.
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    M104 should take the same parameter.
     
  8. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    Even if the layers after the first layer should be a lower temp?

    Sent from my SM-G930V using Tapatalk
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    The slicer should handle that.
    It will send the appropriate command to reset the temperature when it gets to that layer.
     
  10. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    Of course. Thanks.

    Sent from my SM-G930V using Tapatalk
     
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    In all my experimenting though I have yet to see a single type of filament that really had a significant benefit to printing the first layer at a different temperature. Sure, it is there to allow you to get the first layer to adhere better, but personally I have never seen that matter.

    Your Mileage May Vary.
    Void Where Prohibited... etc.
     
  12. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    118
    Likes Received:
    23
    Thanks folks. Everything is working now!
     
    mark tomlinson likes this.

Share This Page