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

    Cura & RRF Power Supply (M80)

    Scheduled Pinned Locked Moved Solved
    3D Printing General Chat
    5
    7
    346
    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.
    • CNCModellerundefined
      CNCModeller
      last edited by

      Hi All,
      I've now got power supply management working and wanted to have the gcode turn on the power before a print begins. However if I put M80 in Cura's "Machine Settings", "Start G-code" the generated code try's to set heater temps etc before turning on the PSU, i.e. there is code in the print file before the M80 command.

      Any thoughts on how I sort this? Is there somewhere else in Cura to put pre-printing commands?

      Any constructive thoughts would be much approciated.
      Cheers
      Barry M

      Polar Duet3 Mini + 1HCL
      https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
      Wanhao D4S: Duet2
      https://forum.duet3d.com/post/296755
      K40 Laser, Duet2
      https://forum.duet3d.com/post/312082
      Wanhao D5S
      https://www.youtube.com/CNCModellerUK

      droftartsundefined gloomyandyundefined 2 Replies Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @CNCModeller
        last edited by

        @cncmodeller Can you post the Cura 'start G-code' you are using, and the start of the Gcode file it generates?

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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

          @cncmodeller Perhaps you could place your M80 in a start.g file, I think that gets run before any of the gcode in the file being printed....

          CNCModellerundefined 2 Replies Last reply Reply Quote 2
          • CNCModellerundefined
            CNCModeller @gloomyandy
            last edited by

            @gloomyandy , that's a good idea I'll give it a go, thanks 🙂

            Polar Duet3 Mini + 1HCL
            https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
            Wanhao D4S: Duet2
            https://forum.duet3d.com/post/296755
            K40 Laser, Duet2
            https://forum.duet3d.com/post/312082
            Wanhao D5S
            https://www.youtube.com/CNCModellerUK

            1 Reply Last reply Reply Quote 0
            • CNCModellerundefined
              CNCModeller @droftarts
              last edited by

              @droftarts said in Cura & RRF Power Supply (M80):

              @cncmodeller Can you post the Cura 'start G-code' you are using, and the start of the Gcode file it generates?

              Ian

              Start GCode

              G80
              G28 ;Home
              G1 Z15.0 F6000 ;Move the platform down 15mm
              ;Prime the extruder
              G92 E0
              G1 F200 E3
              G92 E0
              

              Cura Generated file

              ;FLAVOR:RepRap
              ;TIME:14160
              ;Filament used: 17.4632m, 0m
              ;Layer height: 0.2
              ;MINX:-47.024
              ;MINY:-47.02
              ;MINZ:0.3
              ;MAXX:47.026
              ;MAXY:47.03
              ;MAXZ:61.3
              ;Generated with Cura_SteamEngine main
              T0
              M190 S90
              M104 S240
              M109 S240
              M82 ;absolute extrusion mode
              G80
              G28 ;Home
              G1 Z15.0 F6000 ;Move the platform down 15mm
              ;Prime the extruder
              G92 E0
              G1 F200 E3
              G92 E0
              

              As you can see the heaters get triggered before the machine setting Gcode is executed.

              Polar Duet3 Mini + 1HCL
              https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
              Wanhao D4S: Duet2
              https://forum.duet3d.com/post/296755
              K40 Laser, Duet2
              https://forum.duet3d.com/post/312082
              Wanhao D5S
              https://www.youtube.com/CNCModellerUK

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                In order to have Cura move the temp commands later in the file you would have to add some placeholder tokens to your start gcode.

                http://files.fieldofview.com/cura/Replacement_Patterns.html

                When it parses your start gcode and sees you are using temp commands it will stop adding its own temp commands to the start of the file.

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • CNCModellerundefined
                  CNCModeller @gloomyandy
                  last edited by CNCModeller

                  @gloomyandy said in Cura & RRF Power Supply (M80):

                  @cncmodeller Perhaps you could place your M80 in a start.g file, I think that gets run before any of the gcode in the file being printed....

                  For completeness this approach works great.

                  I also have a M81 S1 in my stop.g to shut off power after a print has been completed.

                  Thanks All,
                  Barry M

                  Polar Duet3 Mini + 1HCL
                  https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                  Wanhao D4S: Duet2
                  https://forum.duet3d.com/post/296755
                  K40 Laser, Duet2
                  https://forum.duet3d.com/post/312082
                  Wanhao D5S
                  https://www.youtube.com/CNCModellerUK

                  1 Reply Last reply Reply Quote 1
                  • dc42undefined dc42 marked this topic as a question
                  • dc42undefined dc42 has marked this topic as solved
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA