Jump to content

cura restart


awmdaj

Recommended Posts

Posted · cura restart

Please contact us regarding 3D printers.
It often stops while printing.

I want to print from the next line, but I don't know how many codes I have printed.

So I have to print again from the beginning.

I would like to know how many lines have been printed from the printer or how to send G-Code to the computer.

  • Link to post
    Share on other sites

    Posted · cura restart

    It isn't easy to explain.  I wrote my own program to count characters in gcode files using the "Byte Offset" to find the line where a print stopped.   Cura does not have a window that shows printer responses to Gcode commands so you need to use something like Pronterface.  The code snippet below (for Marlin firmware) is to re-start a file at a point 11500750 bytes into the file.

    Notice that there is a G28 line in the code.   If the print is tall or at the front of the bed this can cause a crash.  If the steppers have timed out and become disabled there must be a "Home" move before a restart can occur.

    Send M27 to return the Byte location of the printing file.  This IS SUPPOSED to be where the printer stopped.

    Send M114 to return the XYZE locations for a restart.

    Send M20 to list the files on the SD card in DOS 8.3 format (as the printer sees them)

     

    M21                                 ;Initialize the SD card
    M23 LWRROD~1.GCO  ;File name in DOS 8.3
    M26 S11500750             ;Byte Offset location to start at (from response to M27)
    M140 S50                       ; Bed temp
    M190 S50                       ;Wait for bed temp
    M104 S215                      ;Hot end temp
    M109 S215                      ;Wait for hot end
    M105                                ;Report temperature
    M220 S90                        ; Feed rate at 90%
    M221 S105                      ; Flow rate at 105%
    G28                                  ;Home all axis
    M106 S255                      ;Fan on 100%
    G0 F1200 Z94.8               ; This is the resume Z +10.  The head has to move up above the print so it doesn't crash.
    G0 F2400 X92.442 Y137.203  ; XY resume location
    G92 E2484.26551            ;E resume location as a retraction
    G0 F300 Z84.8                  ;Drop down to the Z where printing will re-start
    G0 F1200 E2492.26551   ;Un-retract to the real E location to prime the nozzle
    M24                                   ;Print

  • 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...