Jump to content

G-code help needed


Recommended Posts

Posted · G-code help needed



I am trying to get my Ultimaker 3 to shove the print off the plate and start a new one itself but i get an ER24 (build plate temp value invalid)


Its my first time trying to edit the G-Code so i mostly followed a youtube video but he dont use a UM.  


here´s my end script (from cura)


M104 S0 T0 ; Extruder temp

M104 T1 S0 ; Extruder 2 temp

M140 S1 ; Bed temp

M190 R43 ; wait for bed temp

M106 S0


G1 X105 Y195 Z50 F3000 ; Move up


M300 S3520 P200 ; A7

M300 S4698.63 P200 ; D8

M300 S5274.04 P200 ; E8

M300 S6271.93 P200 ; G8


G1 X105 Y195 Z1 F3000 ; Lower

G1 X105 Y1 Z1 F2400 ; Remove print

G1 X105 Y30 Z1 F8000 ; Shake it

G1 X105 Y1 Z1 F8000 ; Shake it

G1 X105 Y30 Z1 F8000 ; Shake it


G91 ;Relative movement

G0 F15000 X8.0 Z0.5 E-4.5 ;Wiping+material retraction

G0 F10000 Z1.5 E4.5 ;Compensation for the retraction

G90 ;Disable relative movement


What am i doing wrong? ( have allso tryed M140 S0 )


  • Link to post
    Share on other sites

    Posted · G-code help needed

    It's just a guess, but i assume the R parameter for M190 is not supported by the UM3.
    That means the Ultimaker can't wait for the target temperature during cooling.

    The best alternative is probably to add a few minutes pause with the G4 command. You have to test first how long it usually takes to cool down to the target temperature though.

  • Link to post
    Share on other sites

    Posted (edited) · G-code help needed

    tryed switching out M190 R43 with G4 P300 but it now just ignored the command and went straight to pushing the print off the bed witch it could not. Nothing broke since i was ready for it. 

    Ill search for more option tomorrow so if anyone else have a suggestion id appreciate it .


    EDIT. and 1 second after posting i realised that P is milliseconds.. i should have used S... ill try agian tomorrow

    Edited by Ettuf
  • Link to post
    Share on other sites

    Posted · G-code help needed

    I works. Thanks for the help Thinkergnome


    the M300 commands dont seem to work so if anyone know the right command it would be perfect 😛 

  • Link to post
    Share on other sites

    Posted · G-code help needed

    Well, M300 is meant to play a short beeping sound. The command is supposed to be ignored by printers that do not support it.

    I guess these four lines can be omitted without any (other) drawbacks.


    BTW: be aware that the UM3 in general supports only a (small) subset of all possible gcode-commands. More details about the UM3 are to be found in these "inside" articles:



  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    • Create New...