Supplemental Gcode for Upgrades on Your Printrboard G2

 

 

ATTENTION: As of April 23, 2018, this article is no longer open for comments.  Please see Printrboard G2 General Information at printrbot.com for the most current and relevant documentation - i.e; start gcode, software settings, control commands, etc.

 

 

--------------------------------------------------------------------------------------------------------------

 

 

If you have installed the Printrboard G2 and have already installed one or more of the upgrades listed below, you will need to add additional lines to the top of your Start Gcode in Cura.

 

ZLead_150x150.jpg

Z Lead Screw 4-Start Upgrade

M100.1 ({{2tr:8}})

GearHeadv2_150x150.jpg

Gear Head Extruder

M100.1 ({{ara:4.28394}})
M100.1 ({{afr:16050}})
M100.1 ({{ajm:162000}})

6x6-Heat-Plate.2.jpg

Heated Bed

M100.1 ({{he3e:t}}) 

 

 

EXAMPLE:

 

Standard Start Gcode

(Cura/Settings/Manage Printers/Machine Settings/Start Gcode)

StandardStart.3.png

Modified Start Gcode for Z Lead Screw 4-Start Upgrade

ZLeadStart.3.png

Modified Start Gcode for Z Lead Screw 4-Start Upgrade and Gear Head Extruder.

ZLead_GearheadStart.4.png

 

Build Volume Upgrades

If you have a build volume upgrade on your X or Y axis, you will need to adjust the probe coordinates in your existing Start Gcode.  To do so, find the G1 coordinate lines in your start code and change the appropriate value.  In the first example, see a standard Simple (model 1403) start code updated to lines for a Simple with the X Axis Upgrade.  To see an example of the Play (1505) with Y Axis Upgrade, scroll further down.

 

Simple (1403) Standard Start Gcode - G1 Coordinate Lines in bold

M100.1 ({{g55z:0.0}}) ;Z-probe offset

M104 S{material_print_temperature}

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

M107 ;start with the fan off

G28 X0 Y0 ;home X/Y

G28 Z0 ;home Z

G92 E0 ;zero the extruded length

M100 ({{"_leds":3}})

G1 X0 Y145 Z6 F10000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":5}})

G1 X140 Y65 F20000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":6}})

G1 X0 Y10 F20000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":3}})

M100 ({{"tram":1}})

G55 ;apply z-offset value

G1 Z15.0 F2000

M109 S{material_print_temperature}

M100 ({{_leds:1}})

G92 E0

G1 F9000

M117 Printing...

 

Modified Start Gcode for Simple (1403) with X Axis Upgrade

In this example, we are going to adjust the X axis build volume as well as change the second probe point. The second probe point has been adjusted from "X140" to "X220" to compensate for the wider X axis.

M100.1 ({{g55z:0.0}}) ;Z-probe offset

M100.1 ({{xtm:254}}) ;change x axis to 254mm

M104 S{material_print_temperature}

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

M107 ;start with the fan off

G28 X0 Y0 ;home X/Y

G28 Z0 ;home Z

G92 E0 ;zero the extruded length

M100 ({{"_leds":3}})

G1 X0 Y145 Z6 F10000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":5}})

G1 X220 Y65 F20000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":6}})

G1 X0 Y10 F20000

G38.2 Z-10 F200

G1 Z5 F8000

M100 ({{"_leds":3}})

M100 ({{"tram":1}})

G55 ;apply z-offset value

G1 Z15.0 F2000

M109 S{material_print_temperature}

M100 ({{_leds:1}})

G92 E0

G1 F9000

M117 Printing...

 

 

Play (1505) Standard Start Gcode - G1 Coordinate Lines in bold

M100.1 ({{g55z:0.0}}) ;Z-probe offset

M104 S{material_print_temperature}

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

M107 ;start with the fan off

G28 X0 Y0 ;home X/Y

G28 Z0 ;home Z

G92 E0 ;zero the extruded length

M100 ({{"_leds":3}})

G1 X0 Y95 Z6 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":5}})

G1 X70 Y45 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":6}})

G1 X0 Y5 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":3}})

M100 ({{"tram":1}})

G55 ;apply z-offset value

G1 Z15.0 F9000

M109 S{material_print_temperature}

M100 ({{_leds:1}})

G92 E0

G1 F9000

M117 Printing...

 

Modified Start Gcode for Play (1505) with Y Axis Upgrade

In this example, we are going to adjust the Y axis build volume as well as change the first and second probe point.  The first probe point will change from "Y95" to "Y195" to compensate for the deeper Y axis.  The second probe point will change from "X70 Y45" to "X95 Y100" to probe the midpoint of the deeper Y axis.

M100.1 ({{g55z:0.0}}) ;Z-probe offset

M100.1 ({{ytm:200}}) ;change y axis to 200mm

M104 S{material_print_temperature}

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

M107 ;start with the fan off

G28 X0 Y0 ;home X/Y

G28 Z0 ;home Z

G92 E0 ;zero the extruded length

M100 ({{"_leds":3}})

G1 X0 Y195 Z6 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":5}})

G1 X95 Y100 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":6}})

G1 X0 Y5 F20000

G38.2 Z-10 F200

G1 Z5 F20000

M100 ({{"_leds":3}})

M100 ({{"tram":1}})

G55 ;apply z-offset value

G1 Z15.0 F9000

M109 S{material_print_temperature}

M100 ({{_leds:1}})

G92 E0

G1 F9000

M117 Printing...

 

Have more questions? Submit a request

19 Comments

  • 0
    Avatar
    Joe Gammon

    That is great, do you still recommend the F6 board over the G2? Because I was going to upgrade to the G2, but you pointed out the loss of heat bed. I sent you an email in regards to the 4 Start as well.

  • 0
    Avatar
    Moses Feliz

    Start and End Gcode for a Plus with Heated Bed, Z Lead Screw 4-Start Upgrade and Gear Head Extruder.???

    Thanks!

     

  • 0
    Avatar
    Moses Feliz

    I get this error in Cura when trying to print.  

     {"er":{"fb":100.26,"st":209,"msg":"209 - Heater temperature failed to rise fast enough. At: 30.138971 Set: 200.000000"}}

     

    Thoughts?

     

  • 1
    Avatar
    ryantmagee

     I can't get my bed to start heating. What firmware should I be using on the G2 for my metal plus? I have added the M100.1 ({he3e:t}) command as well as M104 S{material_print_temperature} and M190 S{material_bed_temperature} commands. Any ideas?

  • 0
    Avatar
    Moses Feliz

    Same here! No luck getting my Bed to heat up on my Plus with new G2.
    The Build Temperature in Cura jumps between 29.2º and 26.9 - back and forth but never get's hot. 

    Edited by Moses Feliz
  • 0
    Avatar
    adolfsson.andreas

    Hi when my heated bed is enabled on my Play then i cant print but when its not enabled i can... what am i doing wrong in my settings? 

    M100.1 ({he3e:t})
    M100.1 ({{2tr:8}})
    M100.1 ({{g55z:0.0}}) ;Z-probe offset
    M100.1 ({{ytm:200}}) ;change y axis to 200mm
    M104 S{material_print_temperature}
    G21 ;metric values
    G90 ;absolute positioning
    M82 ;set extruder to absolute mode
    M107 ;start with the fan off
    G28 X0 Y0 ;home X/Y
    G28 Z0 ;home Z
    G92 E0 ;zero the extruded length
    M100 ({{"_leds":3}})
    G1 X0 Y195 Z6 F20000
    G38.2 Z-10 F200
    G1 Z5 F20000
    M100 ({{"_leds":5}})
    G1 X95 Y100 F20000
    G38.2 Z-10 F200
    G1 Z5 F20000
    M100 ({{"_leds":6}})
    G1 X0 Y5 F20000
    G38.2 Z-10 F200
    G1 Z5 F20000
    M100 ({{"_leds":3}})
    M100 ({{"tram":1}})
    G55 ;apply z-offset value
    G1 Z15.0 F9000
    M109 S{material_print_temperature}
    M100 ({{_leds:1}})
    G92 E0
    G1 F9000
    M117 Printing...

  • 0
    Avatar
    Eodtech1982

    Thanks Danny, I used your Start Gcode but I still cant get my bed to heat at all. I just switched to the G2 board after frying my old one. I thought it would be a simple swap but I guess I was wrong

     

  • 0
    Avatar
    Kirk

    Danny,

    Your code did the trick!  The only thing I changed was the X220 on the 17th line.  My x is only 154mm.  The only thing I would like now is a way to manipulate the x, y, z, and e motors the way Cura 1 let us do.  There are many, MANY times that we printers need to lift the z axis, or check a setting, or want to push out (or pull up) filament, without the computer running a file.  If someone figures that out, my life will be much easier.

    Also Printrbot, your complete lack of response on this issue makes this Fab Lab Director re-think the decision to buy another printrbot.  We got the G2 (like many others) thinking it would be an easy switch, and instead it has been a headache next to a migrane with zero support except for people like Danny Butler.  

     

  • 0
    Avatar
    Danny Butler

    Kirk,

    Thank you for the kind words as well as pointing out the mistake in line 17! I have updated the code in my previous post so now it has the correct X axis for the default bed size. That post went "Pending Approval" after the edit and looks like it is not going to be visible again until that clears... odd. I'll re-post it if it does not come back in a couple days.

    Anyway I have a way for you to send the motor commands to the bot that you are after. However it requires you to use OctoPi as the server for the printer instead of Cura. This is my current setup so I know for a fact that it works with the G2 board. The one caveat is you still have to use Cura as the slicer to ensure this start GCode is in the file. Back to the point: OctoPi has a page which contains buttons for manually driving all the motors in both directions as you requested. If you are willing to make the switch you should have no trouble using the buttons to manipulate your printer while it is not actively printing. In fact there is also a terminal page in OctoPi as well which allows you to capture these commands when you send them using the buttons. This way you could even add them to the GCode directly if that is beneficial for your use case. Hope that helps!

  • 0
    Avatar
    Danny Butler

    Eodtech1982,

    I don't know much about what you have setup and there are a few pieces of information left out with setting up Cura from this site so I'm just going to throw a couple common causes out there to see if they might help you. They might seem pretty "duh" so I hope they don't offend I just don't have much to go off of. :)

    • Do you have the heated bed option checked in the printer's "Machine Settings" page where you entered the starting GCode? Without this checked you will not be able to define a bed temperature on the "Print Setup" page in Cura and subsequently you will not get the "material_bed_temperature" variable set to that value which the start code needs.
    • Do you know if your current firmware supports the heated bed option? It likely does if you purchased in the last few months however I understand the first shipments had firmware that did not support this option. There are options for upgrading the firmware if this might be the case.
    • Are the heated bed contacts securely fastened in the phoenix terminal on the G2? This is actually fairly critical as I've recently experienced personally. If the wires are not connected to the contacts under the screws well enough then they can cause failures in heating the bed and/or overheating the terminal itself which can lead to a melted and malfunctioning connector. :(

    Anyway if these items do not help your current situation and you would like to provide more information as to what you have setup and tried then we can progress into more advanced troubleshooting processes.

  • 0
    Avatar
    Danny Butler

    I was having quite a bit of trouble getting my heated bed to work with the new G2 board as well. After scratching my head for a while I just happened to notice that the setting to enable the heat bed had a different syntax than the others on this page. I added a second pair of curly brackets around the value so it appears like the other settings and suddenly the bed started heating up for me!

    You'll also need to include the M190 S{material_bed_temperature} command mentioned in ryantmagee's post to tell the printer to set the temperature of the bed before it prints. I added the M190 command down near the M109 command as both commands block until the temperature defined in the S parameter is reached. Just to get the printer bed warming up during the leveling process I added the M140 S{material_bed_temperature} command right after enabling the heatbed as this command is not blocking.

    For completeness my Start Gcode is below. I hope this helps anyone else still wrestling with this issue!  :)

    M100.1 ({{g55z:0.0}}) ;Z-probe offset

    M100.1 ({{he3e:t}})

    M140 S{material_bed_temperature}

    M104 S{material_print_temperature}

    G21 ;metric values

    G90 ;absolute positioning

    M82 ;set extruder to absolute mode

    M107 ;start with the fan off

    G28 X0 Y0 ;home X/Y

    G28 Z0 ;home Z

    G92 E0 ;zero the extruded length

    M100 ({{"_leds":3}})

    G1 X0 Y145 Z6 F10000

    G38.2 Z-10 F200

    G1 Z5 F8000

    M100 ({{"_leds":5}})

    G1 x140 Y65 F20000

    G38.2 Z-10 F200

    G1 Z5 F8000

    M100 ({{"_leds":6}})

    G1 X0 Y10 F20000

    G38.2 Z-10 F200

    G1 Z5 F8000

    M100 ({{"_leds":3}})

    M100 ({{"tram":1}})

    G55 ;apply z-offset value

    G1 Z15.0 F2000

    M109 S{material_print_temperature}

    M190 S{material_bed_temperature}

    M100 ({{_leds:1}})

    G92 E0

    G1 F9000

    M117 Printing...
  • 0
    Avatar
    adolfsson.andreas

    Yeah figured that out to :)

  • 0
    Avatar
    Todd Rathier

    Danny,

    Has anybody else had a problem getting the printer to connect via USB? I have tried two laptops, one using Windows 7 Enterprise, one using Windows 8.1 with no luck. I have tried Cura version 15.04.2, version 2.7.0, version 3.0.4.

    I have a Metal Plus/heated bed with the following upgrades:

    • G2 Board
    • Z Lead Screw 4-Start Upgrade
    • Gear Head Extruder v2
    • LED Lights
    • 13S Hot End
    • 50mm fan and Hot End cooling fan

    Ideas?

    My Start g-code is this: 

    M100.1 ({{g55z:0.0}}) ;Z-probe offset

    M100.1 ({{2tr:8}}) ;Z Lead Screw 4-Start Upgrade

    M100.1 ({{ara:4.28394}}) ;Gear Head Extruder

    M100.1 ({{afr:16050}})

    M100.1 ({{ajm:162000}})

    M100.1 ({he3e:t}) ;Enable Heated Bed for G2

    M140 S{material_bed_temperature}

    M104 S{material_print_temperature}

    G21 ;metric values

    G90 ;absolute positioning

    M82 ;set extruder to absolute mode

    M107 ;start with the fan off

    G28 X0 Y0 ;home X/Y

    G28 Z0 ;home Z

    G92 E0 ;zero the extruded length

    M100 ({{"_leds":3}})

    G1 X0 Y245 Z6 F20000

    G38.2 Z-10 F200

    G1 Z5 F20000

    M100 ({{"_leds":5}})

    G1 X225 Y125 F20000

    G38.2 Z-10 F200

    G1 Z5 F20000

    M100 ({{"_leds":6}})

    G1 X0 Y5 F20000

    G38.2 Z-10 F200

    G1 Z5 F20000

    M100 ({{"_leds":3}})

    M100 ({{"tram":1}})

    G55 ;apply z-offset value

    G1 Z15.0 F9000

    M109 S{material_print_temperature}

    M100 ({{_leds:1}})

    G92 E0

    G1 F9000

    M117 Printing...

     

    The End G-code is this:

    M104 S0 ;extruder heater off

    M140 S0 ;heated bed heater off (if you have it)

    M106 S0 ;fan off

    G91 ;relative positioning

    G1 E-1 F300 ;retract the filament a bit

    G1 Z+1 E-5 F9000 ;move Z up a bit and retract even more

    G28 X0 Y0 ;home X/Y, so the head is out of the way

    M84 ;steppers off

    G90 ;absolute positioning

    M355 S0 ;LED Off

    Edited by Todd Rathier
  • 0
    Avatar
    Moses Feliz

    I had the same exact set up. Never got it to work. I did finally get to print blobs but it was trying to fit a windows motherboard on a Mac so I returned the G2 and switched it for a F6 and it made a perfect print at first try.

  • 0
    Avatar
    Todd Rathier

    Moses, did the F6 board support the factory heated bed? I thought there was something that only the G2 supported.

    Where I am right now is that I can connect to Cura 2.7.0 on a Windows 10 laptop, but it is crashing the extruder in every direction on startup and Cura 2.7.0 doesn't seem to have the Pronterface UI available.

    I usually use Mattercontrol which worked great with the old board, but I cannot get the USB to connect to Mattercontrol. There is something weird going on with the com port drivers, it keeps reverting back to the Microsoft driver.

    It's driving me insane.

    Edited by Todd Rathier
  • 0
    Avatar
    Moses Feliz

    Hey Todd! It sure did, the F6 is just a step up from the F5 I spent 2 months monkeying around trying to get the G2 to work with no luck. No to mention having to learn the new G2 commands was a pain.

    I had the same problem with my G2 connecting via USB. The trick was messing with the Braud rate and also the G2 was sensative about what was powered first, the Printer or the Computer also in that variable was unplugging and plunging the usb. I don’t remember exactly the combination and timing but I had to do this every single time to connect. I think what I did was - tum on Printer wait 10 seconds and then plug the usb then change the braudrate. However with Repetier I did it have to monkey with it, it Autodetected the braudrate and connected right away even tho my other Apps also had auto detecting but some how Repetier worked. But even after finally getting my hot end and bed to heat up I went through two crashed hot ends and a scratched up bed. The G2 just did not work, even got the G3 board replaced Incase it was faulty.

  • 0
    Avatar
    Mike Simpson

    Does anybody know how to check the endstop status on the G2 board?  I recently upgraded, and everything seems to work (including the heated bed woohoo!), except that when I try to home the Z axis, my hotend crashes the bed. The probe lights up when I put metal under it, so now I want to make sure the board sees it triggering. With my old F4 board, the M119 command showed the endstop status, but that command is "unsupported" on the G2 and actually causes the board to disconnect.

  • 0
    Avatar
    Charles Elrod

    Anyone out there know where to find a driver for tinyg v2 on Simple Pro with heated bed to work with usb? I have searched and searched. This 70 + year old is becoming a little irritated. Printer works fine when selecting a object odd the console, but not with USB or wifi which I understand it doesn't work with the heated bed on the cloud. Any suggestions much appreciated.

     

  • 0
    Avatar
    PB Support Team

    Charles, I apologize if I misunderstand the question, but you may want to check this article out: Printing with the Heated Bed via USB on Your Simple Pro  

    Also, you may be interested in this video from a few weeks ago.  Brook explains sending heated bed gcode through the cloud at the ~30min mark.

    Printrbot LIVE 12-28-17 youtube

    I really do hope that is helpful.  We certainly don't intend to irritate anyone ...70+ or otherwise :)

    Dave -pb

Article is closed for comments.
Powered by Zendesk