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
      last edited by paolozampini1973

      @DC42 I
      can you please help me
      would like to enable fan F5 when PIN 17 is enabled and disable fan when PIN 17 is disabled

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

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

        <>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 1
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          If you just want a fan active when a print is in progress you can configure a fan on a PWM fan port as thermostatically controlled. The simplest way is to tie it to the hotend heater, such that when the hotend heater is at print temp such as during a print, the fan is enabled, which may work for you as I understand you are trying to cool a stepper motor.

          Please share your config.g if you want a more specific example gcode.

          Z-Bot CoreXY Build | Thingiverse Profile

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

            @phaedrux said in DUEX 0.11 FAN 5:

            If you just want a fan active when a print is in progress you can configure a fan on a PWM fan port as thermostatically controlled. The simplest way is to tie it to the hotend heater, such that when the hotend heater is at print temp such as during a print, the fan is enabled, which may work for you as I understand you are trying to cool a stepper motor.

            Please share your config.g if you want a more specific example gcode.

            config (31).g

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

              @paolozampini1973 Yes I know so it's much simpler but I don't want this because I can keep an extruder at temperature because I have to do something a test anything the modules can be in stand-by I want to create this rule which is very important to me

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

                @phaedrux oliof he was very kind, he explained it to me but I didn't understand how to do it

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

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

                  Z-Bot CoreXY Build | Thingiverse Profile

                  paolozampini1973undefined 1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined Phaedrux moved this topic from Documentation
                  • 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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA