Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Power Failure Resume not working - STM32 boards RRF

    Scheduled Pinned Locked Moved
    RepRapFirmware on other controllers
    3
    14
    904
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jay_s_ukundefined
      jay_s_uk @selva_tvi
      last edited by

      @selva_tvi it won't work as that board doesn't monitor the PSU voltage (there are only a small handful that do). You'll have to use the BTT UPS module for that functionality

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      selva_tviundefined 1 Reply Last reply Reply Quote 0
      • selva_tviundefined
        selva_tvi @jay_s_uk
        last edited by

        @jay_s_uk oh..k.

        I hope Marlin is doing without any external circuit also.

        Any chance of going by the same way?

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @selva_tvi
          last edited by

          @selva_tvi there are no plans to add anything like that. We basically track the duet version of RRF and as all duet boards have power monitoring, it won't get added

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          gloomyandyundefined 1 Reply Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy @jay_s_uk
            last edited by

            @jay_s_uk Marlin does it by constantly writing the current resume state to the SD card. No idea how well it works (the save state will pretty much always be behind that actual print state and the constant saving will probably reduce the life of the SD card). As Jay has mentioned, RRF monitors the state of the 12/24V supply and saves the state when it detects a drop in the voltage. But you need a board that has a built in voltage monitor (like the Duet3D boards and some of the Fly boards). You could create a voltage monitor circuit to track the 24V supply state (this needs a couple of resistors hooked up to a free ADC capable pin, take a look at one of the Duet3D board schematics to see what is needed), or you could use one of the external solutions like the board jay mentioned.

            selva_tviundefined 1 Reply Last reply Reply Quote 2
            • selva_tviundefined
              selva_tvi @gloomyandy
              last edited by

              @gloomyandy Thank you. Understood.

              1 Reply Last reply Reply Quote 0
              • selva_tviundefined
                selva_tvi
                last edited by

                @jay_s_uk Hello, as per your suggestions, I am trying to use MKS UPS 24V.

                Connected between the power supply and the MKS module.

                As per this post, I made as T1 in M581
                https://forum.duet3d.com/topic/28967/power-loss-with-ups/2

                In config.g, added the below lines:
                M950 J3 C"e3stop" ; input 1 e3 filament sensor
                M581 P3 T1 S0 R1 ; PLR sensor P1 triggers Trigger3.g always (R0) TRIGGER OFF

                Connected the 3pin from MKS UPS module to BTT Octopus pro e3stop.

                trigger1.g:

                M140 S0 R0 ; set bed temperature to 0C
                M140 S-1 ; set bed temperature to 0K to turn it off
                M104 S0 T0 ; set extruder temperature to 0C
                M107 ; turn off fan
                M913 X0 Y0 Z0.3 ;turn motors off
                M25 ; Pause the print
                G91 ;Set to Relative Positioning
                M83 ;Set extruder to relative mode
                G1 Z5 E-5 F1000 ;raise Extruder 5mm

                When the power is switched off, it didn't show any change. It continued the print, till MKS UPS drains.

                Pls guide me on this. Thanks

                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk @selva_tvi
                  last edited by

                  @selva_tvi that looks in terms of your setup, although you may need to add a pulled using ^ to the pin name.
                  Can you confirm you have it wired like this?
                  442b4422-527d-431e-8af6-1f71327be8f6-image.png

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  selva_tviundefined 1 Reply Last reply Reply Quote 0
                  • selva_tviundefined
                    selva_tvi @jay_s_uk
                    last edited by

                    @jay_s_uk Absolutely the same. Our setup is connected to BTT Octopus Pro board e3stop.

                    'although you may need to add a pulled using ^ to the pin name.'

                    Is it in M950? can you pls point it?
                    M950 J3 C"e3stop" ; input 1 e3 filament sensor

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @selva_tvi
                      last edited by

                      @selva_tvi yes, in M950.

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      selva_tviundefined 1 Reply Last reply Reply Quote 0
                      • selva_tviundefined
                        selva_tvi @jay_s_uk
                        last edited by

                        @jay_s_uk M950 J3 C"^e3stop" ; input 1 e3 filament sensor ?

                        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                        • jay_s_ukundefined
                          jay_s_uk @selva_tvi
                          last edited by

                          @selva_tvi yes

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          selva_tviundefined 1 Reply Last reply Reply Quote 0
                          • selva_tviundefined
                            selva_tvi @jay_s_uk
                            last edited by

                            @jay_s_uk I tried the above 'M950 J3 C"^e3stop"'

                            And switched off the power. The machine just paused. And it didn't show any movement.

                            I changed the trigger1.g :

                            G91;
                            G1 Z5 E-5 F1000 ;raise Extruder 5mm
                            ;M140 S0 R0 ; set bed temperature to 0C
                            ;M140 S-1 ; set bed temperature to 0K to turn it off
                            ;M104 S0 T0 ; set extruder temperature to 0C
                            ;M107 ; turn off fan
                            M913 X0 Y0 Z0.3 ;turn motors off
                            M25 ; Pause the print
                            G91 ;Set to Relative Positioning
                            M83 ;Set extruder to relative mode
                            ;G1 Z5 E-5 F1000 ;raise Extruder 5mm

                            I thought least Z will move by 5mm. But no movements.

                            For M25, will it call the pause.g? I hope it didn't call pause.g also.

                            Once the power in UPS is drained, it will be switched off?

                            How to resume back? by using M916?

                            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                            • jay_s_ukundefined
                              jay_s_uk @selva_tvi
                              last edited by

                              @selva_tvi T1 just pauses so if you want to do more than that you'll have to use a different trigger and create a trigger file accordingly.
                              See here about setting up power resume https://docs.duet3d.com/en/User_manual/Tuning/Resume

                              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA