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

    DUEX 0.11 FAN 5

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    66
    2.7k
    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.
    • paolozampini1973undefined
      paolozampini1973 @Phaedrux
      last edited by

      @phaedrux said in DUEX 0.11 FAN 5:

      Perhaps you can share the solution that Oliof was so kind to provide and perhaps we can explain it.

      oliof
      M581 T1 P17 S0 defines trigger 1
      then you need a macro called trigger1.g
      In that Macro you do M106 P5 S0
      M581 T0 P17 S1 defines trigger 0
      then you need a macro called trigger0.g
      In that Macro you do M106 P5 S255

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

        That seems pretty straightforward.

        M581 T1 P17 S0
        M581 T0 P17 S1

        would need to go in config.g

        Then create two macro files in the sys folder: trigger1.g and trigger0.g
        Those are just text files and you can create them in the web interface or on your computer and upload them. Put the M106 commands into those trigger macros respectively.

        Z-Bot CoreXY Build | Thingiverse Profile

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

          @phaedrux said in DUEX 0.11 FAN 5:

          That seems pretty straightforward.

          M581 T1 P17 S0
          M581 T0 P17 S1

          would need to go in config.g

          Then create two macro files in the sys folder: trigger1.g and trigger0.g
          Those are just text files and you can create them in the web interface or on your computer and upload them. Put the M106 commands into those trigger macros respectively.

          trigger0.g trigger1.g

          I did but it doesn't work I don't understand why

          oliofundefined 1 Reply Last reply Reply Quote 0
          • paolozampini1973undefined
            paolozampini1973 @oliof
            last edited by

            @oliof said in DUEX 0.11 FAN 5:

            @paolozampini1973 as I wrote in chat, define triggers using M581 and put the fan control commands in the corresponding trigger macros.

            Could you please tell me the explanation I don't know where to get the macros are created How to do it I don't understand I hope not to bother you too much

            1 Reply Last reply Reply Quote 0
            • oliofundefined
              oliof @paolozampini1973
              last edited by

              @paolozampini1973

              The M581 commands need to go into config.g

              trigger0.g needs to have

              M106 P5 S255

              as its content

              trigger1.g needs to have

              M106 P5 S0

              as its content

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

              paolozampini1973undefined 1 Reply Last reply Reply Quote 0
              • paolozampini1973undefined
                paolozampini1973 @oliof
                last edited by

                @oliof said in DUEX 0.11 FAN 5:

                @paolozampini1973

                The M581 commands need to go into config.g

                trigger0.g needs to have

                M106 P5 S255

                as its content

                trigger1.g needs to have

                M106 P5 S0

                as its content

                trigger0.g trigger1.g config (31).g
                You can see if that's as good as I did

                oliofundefined 1 Reply Last reply Reply Quote 0
                • oliofundefined
                  oliof @paolozampini1973
                  last edited by

                  Your trigger files do not have the M106 commands as their content.

                  <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                  paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                  • paolozampini1973undefined
                    paolozampini1973 @oliof
                    last edited by

                    @oliof said in DUEX 0.11 FAN 5:

                    Your trigger files do not have the M106 commands as their content.

                    Please can you correct me the files I posted I don't want you to spend a lot of time

                    oliofundefined 1 Reply Last reply Reply Quote 0
                    • oliofundefined
                      oliof @paolozampini1973
                      last edited by

                      @paolozampini1973 Add the following two lines at the end of config.g:

                      M581 T1 P17 S0
                      M581 T0 P17 S1
                      

                      put the following into the file /sys/trigger0.g and nothing else

                      M106 P5 S255
                      

                      put the following into the file /sys/trigger1.g and nothing else

                      M106 P5 S0
                      

                      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                      oliofundefined 1 Reply Last reply Reply Quote 0
                      • oliofundefined
                        oliof @oliof
                        last edited by

                        Also, I am assuming you are using a toggle switch like this:

                        https://www.flickr.com/photos/adafruit/29889840241

                        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                        paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                        • paolozampini1973undefined
                          paolozampini1973 @oliof
                          last edited by

                          @oliof said in DUEX 0.11 FAN 5:

                          Also, I am assuming you are using a toggle switch like this:

                          https://www.flickr.com/photos/adafruit/29889840241

                          No I'm not using this SWITCH But what does it have to do with it

                          oliofundefined 1 Reply Last reply Reply Quote 0
                          • oliofundefined
                            oliof @paolozampini1973
                            last edited by

                            @paolozampini1973 what kind of switch do you use? show me a photo. A toggle switch with two positions will work with my example. If you use a momentary / push button switch it will not work like that, another solution is required.

                            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                            paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                            • paolozampini1973undefined
                              paolozampini1973 @oliof
                              last edited by

                              @oliof said in DUEX 0.11 FAN 5:

                              @paolozampini1973 what kind of switch do you use? show me a photo. A toggle switch with two positions will work with my example. If you use a momentary / push button switch it will not work like that, another solution is required.

                              da5ebdfb-a5e6-4de3-843e-678f2cb010c0-image.png
                              AC 17

                              oliofundefined 1 Reply Last reply Reply Quote 0
                              • oliofundefined
                                oliof @paolozampini1973
                                last edited by oliof

                                @paolozampini1973 that kind of switch should work with the solution I provided.

                                But I surely do hope that you are NOT connecting high voltage to the pins!! That would blow up the board.

                                <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                                paolozampini1973undefined 2 Replies Last reply Reply Quote 0
                                • paolozampini1973undefined
                                  paolozampini1973 @oliof
                                  last edited by paolozampini1973

                                  @oliof So the talk is this I have to activate a fan When activating the x axis and the if Y with the external drivers that I connected EN + EN- when enabled Enables also the fan for as long as notified EN + and when EN- is Disable we will also need the fan but honestly the switch has absolutely nothing to do with it Maybe I didn't explain myself

                                  However I did copy and paste and the fan does not turn on

                                  1 Reply Last reply Reply Quote 0
                                  • paolozampini1973undefined
                                    paolozampini1973 @oliof
                                    last edited by

                                    @oliof EN + EN- now they are fully functional. When it starts printing the motors go to on mode at the end of the print they go to unit off and work very well the cooling fan for the engine must also work in the same way

                                    oliofundefined 1 Reply Last reply Reply Quote 0
                                    • oliofundefined
                                      oliof @paolozampini1973
                                      last edited by

                                      @paolozampini1973 So you want to start the fan when a print starts, and stop it when the print is finished? Then you can put the M106 P5 ... commands into your start gcode and end gcode in your slicer.

                                      No need to use pins and triggers.

                                      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                                      paolozampini1973undefined 2 Replies Last reply Reply Quote 0
                                      • paolozampini1973undefined
                                        paolozampini1973 @oliof
                                        last edited by

                                        @oliof said in DUEX 0.11 FAN 5:

                                        @paolozampini1973 So you want to start the fan when a print starts, and stop it when the print is finished? Then you can put the M106 P5 ... commands into your start gcode and end gcode in your slicer.

                                        No need to use pins and triggers.

                                        but in this way if I go to make six prints in 30 minutes each time I have to insert it in the GCODE and so it becomes very cumbersome

                                        oliofundefined 1 Reply Last reply Reply Quote 0
                                        • paolozampini1973undefined
                                          paolozampini1973 @oliof
                                          last edited by

                                          @oliof Anyway I did what you wrote to me and the fan doesn't work it always stays off When the print started or I move the axis manually

                                          1 Reply Last reply Reply Quote 0
                                          • oliofundefined
                                            oliof @paolozampini1973
                                            last edited by

                                            @paolozampini1973 every slicer allows you to define custom start and end gcode that is added to the file automatically during slicing.

                                            That is where you can add the commands to start and stop the fan. You set it up one time, it automatically gets added to the file.

                                            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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