• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    paolozampini1973
    last edited by paolozampini1973 20 Apr 2022, 10:15

    @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

    undefined 1 Reply Last reply 21 Apr 2022, 11:57 Reply Quote 0
    • undefined
      oliof @paolozampini1973
      last edited by 21 Apr 2022, 11:57

      @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<>

      undefined 1 Reply Last reply 21 Apr 2022, 20:12 Reply Quote 1
      • undefined
        Phaedrux Moderator
        last edited by 21 Apr 2022, 19:46

        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

        undefined 2 Replies Last reply 21 Apr 2022, 19:46 Reply Quote 0
        • undefined
          paolozampini1973 @Phaedrux
          last edited by 21 Apr 2022, 19:46

          @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

          undefined 1 Reply Last reply 21 Apr 2022, 19:48 Reply Quote 0
          • undefined
            paolozampini1973 @paolozampini1973
            last edited by 21 Apr 2022, 19:48

            @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
            • undefined
              paolozampini1973 @Phaedrux
              last edited by 21 Apr 2022, 19:49

              @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
              • undefined
                Phaedrux Moderator
                last edited by 21 Apr 2022, 19:51

                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

                undefined 1 Reply Last reply 21 Apr 2022, 19:53 Reply Quote 0
                • undefined Phaedrux moved this topic from Documentation 21 Apr 2022, 19:51
                • undefined
                  paolozampini1973 @Phaedrux
                  last edited by 21 Apr 2022, 19:53

                  @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
                  • undefined
                    Phaedrux Moderator
                    last edited by 21 Apr 2022, 19:59

                    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

                    undefined 1 Reply Last reply 21 Apr 2022, 19:59 Reply Quote 0
                    • undefined
                      paolozampini1973 @Phaedrux
                      last edited by paolozampini1973 21 Apr 2022, 19:59

                      @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

                      undefined 1 Reply Last reply 21 Apr 2022, 20:12 Reply Quote 0
                      • undefined
                        paolozampini1973 @oliof
                        last edited by 21 Apr 2022, 20:12

                        @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
                        • undefined
                          oliof @paolozampini1973
                          last edited by 21 Apr 2022, 20:12

                          @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<>

                          undefined 1 Reply Last reply 21 Apr 2022, 20:13 Reply Quote 0
                          • undefined
                            paolozampini1973 @oliof
                            last edited by 21 Apr 2022, 20:13

                            @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

                            undefined 1 Reply Last reply 21 Apr 2022, 20:15 Reply Quote 0
                            • undefined
                              oliof @paolozampini1973
                              last edited by 21 Apr 2022, 20:15

                              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<>

                              undefined 1 Reply Last reply 21 Apr 2022, 20:16 Reply Quote 0
                              • undefined
                                paolozampini1973 @oliof
                                last edited by 21 Apr 2022, 20:16

                                @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

                                undefined 1 Reply Last reply 21 Apr 2022, 20:19 Reply Quote 0
                                • undefined
                                  oliof @paolozampini1973
                                  last edited by 21 Apr 2022, 20:19

                                  @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<>

                                  undefined 1 Reply Last reply 21 Apr 2022, 20:21 Reply Quote 0
                                  • undefined
                                    oliof @oliof
                                    last edited by 21 Apr 2022, 20:21

                                    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<>

                                    undefined 1 Reply Last reply 21 Apr 2022, 20:23 Reply Quote 0
                                    • undefined
                                      paolozampini1973 @oliof
                                      last edited by 21 Apr 2022, 20:23

                                      @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

                                      undefined 1 Reply Last reply 21 Apr 2022, 20:25 Reply Quote 0
                                      • undefined
                                        oliof @paolozampini1973
                                        last edited by 21 Apr 2022, 20:25

                                        @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<>

                                        undefined 1 Reply Last reply 21 Apr 2022, 20:27 Reply Quote 0
                                        • undefined
                                          paolozampini1973 @oliof
                                          last edited by 21 Apr 2022, 20:27

                                          @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

                                          undefined 1 Reply Last reply 21 Apr 2022, 20:29 Reply Quote 0
                                          3 out of 66
                                          • First post
                                            3/66
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA