Jump to content

solve the problem of reprint OBJECTS due to a power outage


dreamworker

Recommended Posts

Posted · solve the problem of reprint OBJECTS due to a power outage

Hello,

I don't know if you had this type of problem, but I hate to repeat to print an object only because I had a electric blackout. To solve this problem you can save in the Rom the number of line of model Gcode and decrement it in the printing phase. In order to tell to the system that the object is not printed yet, for blackout or for power cord accidental removing, I think you can implement a one bit variable, a flag, checked by the system in the startup operations. If the flag is one the system read the actual Gcode line number and continue to print from it else, if the flag is zero, the system display the main menu as usual.

 

  • Like 1
Link to post
Share on other sites

Posted · solve the problem of reprint OBJECTS due to a power outage

Except that the problem would be much more complex then that. As you would lose the whole machine state. After rebooting the machine you no longer know where the head is, what temperature you need to be, and you lost the 16 moves in the movement planner, as well as the exact position in the current movement.

And you would wear out the EEPROM pretty quickly.

 

  • Link to post
    Share on other sites

    • 1 year later...
    Posted · solve the problem of reprint OBJECTS due to a power outage

    Bump

    I am disappointed to have just found that in fact EEPROM does have a limited life.

    http://www.arduino.cc/en/Reference/EEPROMWrite

    Do you have any ideas what that maximum number of prints is before things start to fail - also the maximum number of layers?  If the EEPROM can just outlast some other weakest link then it should be less of a concern.

    It seems that all you would need to store is the file and the Z height to minimize writing too much to EEPROM while being able to resume the print satisfactorily.  The algorithm would be similar to that of OP.  One could optionally only setup resume on prints with print times over X or start recording resume details after some Z height.  By reducing to a Z level granularity, you would significantly reduce the EEPROM stress and at most be off by LAYER_HEIGHT for part of a layer.

    Completion Flag (or this could be encoded into the Z value if space is tight).

    Z Value for layer height.

    File name

    Pseudocode Upon machine on:

    shouldResume() {

       showResumeMenu();

       if (!AUTORESUME) {

           printer.Beep(10);

           while(nothingPressed) {}

           return RESUME; // RESUME is true or false based on the menu selection

       }

       return True;

    }

    resumePrint() {

         lowerTray();

         zeroPrintHead();

         heatBedAndExtruder();

         clearHead();

         fastForwardThroughGCodeUntilZ(ResumeValues.getLastZ());

         startPrinting();

    }

    if (!lastPrintCompleted()  && printer.getBedTemp() > SALVAGABLE_RESUME_BED_TEMP) {

     if (shouldResume()) {

         resumePrint();

     } else {

        clearResumeValues();

     }

    }

    User Options

    It should be something that in the menus can be optionally turned on/off (print tracking that is).

    It should be optionally to automatically resume as default.

    Where to contribute?

    https://github.com/Ultimaker/Ultimaker2Marlin - is this the main firmware repo and if not where is it?  I wouldn't mind taking a crack on a fork/branch.

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