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

Turning off servos and M42 interrupting the last pulse

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
12
372
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
    pfn @chrishamm
    last edited by 19 Apr 2023, 16:43

    @chrishamm no, mine is run off the vfd/laser/out6 port on duet3mini5+

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators @pfn
      last edited by 19 Apr 2023, 20:08

      @pfn you can also turn off the servo output using M280 Pnn S0 although you may find that it has the same issue.

      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

      undefined 1 Reply Last reply 19 Apr 2023, 23:36 Reply Quote 0
      • undefined
        pfn @dc42
        last edited by 19 Apr 2023, 23:36

        @dc42 thanks, my concern is actually how to avoid the truncated last pulse. (For that matter, sending M280 S0 rather than M42 S0 seems to send a 500us pulse as the servo always goes to the 500us position when I use M280 S0)

        undefined 1 Reply Last reply 20 Apr 2023, 15:10 Reply Quote 0
        • undefined
          dc42 administrators @pfn
          last edited by 20 Apr 2023, 15:10

          @pfn which version of RepRapFirmware are you using?

          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

          undefined 1 Reply Last reply 20 Apr 2023, 19:48 Reply Quote 0
          • undefined
            pfn @dc42
            last edited by 20 Apr 2023, 19:48

            @dc42 3.4.5

            undefined 1 Reply Last reply 21 Apr 2023, 00:15 Reply Quote 0
            • undefined
              dc42 administrators @pfn
              last edited by 21 Apr 2023, 00:15

              @pfn that's odd because I checked the code to confirm what I thought, which is that M208 Pnn S0 should turn the pin off, just like M42. I'll log this as a potential bug.

              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

              undefined 1 Reply Last reply 21 Apr 2023, 05:49 Reply Quote 0
              • undefined
                pfn @dc42
                last edited by 21 Apr 2023, 05:49

                @dc42 I have this macro: https://github.com/pfn/voron2-rrf-config/blob/master/sys/mmu/lib/engage.g where mmu_servo_engage is set to 0 and it reliably sets the servo position to that of the 500us value.

                undefined 1 Reply Last reply 21 Apr 2023, 14:31 Reply Quote 0
                • undefined
                  dc42 administrators @pfn
                  last edited by 21 Apr 2023, 14:31

                  @pfn said in Turning off servos and M42 interrupting the last pulse:

                  @dc42 I have this macro: https://github.com/pfn/voron2-rrf-config/blob/master/sys/mmu/lib/engage.g where mmu_servo_engage is set to 0 and it reliably sets the servo position to that of the 500us value.

                  Do you mean it does that if you uncomment the M42 line and change M42 to M208 ?

                  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

                  undefined 1 Reply Last reply 21 Apr 2023, 16:06 Reply Quote 0
                  • undefined
                    pfn @dc42
                    last edited by 21 Apr 2023, 16:06

                    @dc42 the macro is just a link to how I have everything setup, if I use M280 P2 S100 and subsequently run M280 P2 S0, the servo 100% reliably goes back to the 500us position.

                    If I use M280 P2 S100 and subsequently run M42 P2 S0 most of the time the servo stays in place, sometimes it will go to a position between S100 and 500us.

                    undefined 1 Reply Last reply 21 Apr 2023, 16:13 Reply Quote 0
                    • undefined
                      dc42 administrators @pfn
                      last edited by 21 Apr 2023, 16:13

                      @pfn thanks for the clarification.

                      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

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