Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Start.g and M80

    Tuning and tweaking
    5
    8
    846
    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.
    • Kimberly
      Kimberly last edited by Kimberly

      Hi all I know that this questions have been asked before,
      but I did not find the solution..

      https://forum.duet3d.com/topic/7828/problem-with-powering-on-with-m80

      My machine:
      Modified CR10S with the Duet3D wi-fi board. Firmware version 1.21 (2018-03-21)
      and a 500W ATX PowerSupply
      (The powersupply is hooked up the the EXT 5V
      (and jumper moved to allow for power on/off)
      (Using Purple Green and black from the ATX powersupply)
      so its always delivers 5V power and Pulles the ATX green wire low to power on...
      )

      I want the M80 command to be run before the print starts..
      my slicer produces this...

      // slicer Inserted before print
      G90
      M82
      M106 S0
      M140 S74
      M190 S74
      M104 S195 T0
      M109 S195 T0

      // My start G-code.
      M80; PowerON ATX
      //as dek pointed out I would properly need to yield for some time for the stepper to power up.
      SO I will insert the G4 S5 ; Dwell for 5 seconds

      as I understand it, the M104 and M109 is yielding for heated nossel and bed.
      Stopping the ATX power from turning on..

      Dc42 pointed out the the post that there a start.g file but my understanding is that the start.g is initialised from sd card prints, and im using the Webinterface

      💕💕💕 Love you 💕💕💕

      1 Reply Last reply Reply Quote 0
      • Kimberly
        Kimberly last edited by

        Hi Again found the solution for a
        Simplify3d

        in my start Code I insert
        M80; Start ATX
        G4 S5 ;Yield 5 sec before continue
        M104 S[extruder0_temperature] ;Preheat Extruder
        M190 S[bed0_temperature] ;Wait for bed to heat
        M140 S[extruder0_temperature] ;Wait for Extruder

        the build in M140 and M109 will be overriden and the variables replaced on build 🥰

        thanks anyways..

        💕💕💕 Love you 💕💕💕

        1 Reply Last reply Reply Quote 0
        • dc42
          dc42 administrators last edited by

          If you are using Duet Web Control to start prints then you are printing from SD card and start.g will be run.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          Kimberly pro3d 2 Replies Last reply Reply Quote 0
          • Kimberly
            Kimberly @dc42 last edited by

            @dc42 hI thanks for the reply and the clarification 😄

            💕💕💕 Love you 💕💕💕

            1 Reply Last reply Reply Quote 0
            • pro3d
              pro3d @dc42 last edited by

              @dc42
              Does this mean we don't have to call the start.g macro in the slicer? Sorry for interfering here but I have a start and end macro called in the slicer printing from the dwc

              Valkyrie DIY High Temp 3D Printer

              R&D - Engineering Designer - Viking 3D Printers
              https://vkingprinter.com/

              Phaedrux Kimberly 2 Replies Last reply Reply Quote 0
              • Phaedrux
                Phaedrux Moderator @pro3d last edited by

                @pro3d That's right, start.g will run before any slicer start gcode when the print is started from the SD card.

                Z-Bot CoreXY Build | Thingiverse Profile

                wilriker 1 Reply Last reply Reply Quote 0
                • wilriker
                  wilriker @Phaedrux last edited by

                  @phaedrux said in Start.g and M80:

                  @pro3d That's right, start.g will run before any slicer start gcode when the print is started from the SD card.

                  It will be even run before the first line of GCode in the file is executed.

                  Manuel
                  Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                  with probably always latest firmware/DWC (incl. betas or self-compiled)
                  My Tool Collection

                  1 Reply Last reply Reply Quote 0
                  • Kimberly
                    Kimberly @pro3d last edited by Kimberly

                    @pro3d
                    I add code to my slicer Simplify 3d
                    to start the ATX power supply

                    my code in Start scripts
                    M80; Start ATX
                    G4 S5 ;Yield 5 sec before continue
                    M104 S[extruder0_temperature] ;Preheat Extruder
                    M190 S[bed0_temperature] ;Wait for bed to heat
                    M140 S[extruder0_temperature] ;Wait for Extruder

                    I should properly not use the M104 command but its fine..
                    heats up the nose but I will properly move it to after 😄

                    The Myyy[xxxxxX_xxxxxxx] tells simplify3D to ignore its own inserted commands.
                    so it will not insert them before you start scripts

                    💕💕💕 Love you 💕💕💕

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