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

How to send orders to an servo-driver from Duet?

Scheduled Pinned Locked Moved
Duet Hardware and wiring
5
29
1.1k
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
    Julien30 @dc42
    last edited by 17 Feb 2023, 08:20

    @dc42
    Technical Manual for AASD Series Servo Drive-1-60.pdf
    Technical Manual for AASD Series Servo Drive-61-112.pdf

    undefined 1 Reply Last reply 17 Feb 2023, 14:15 Reply Quote 0
    • undefined
      dc42 administrators @Julien30
      last edited by dc42 17 Feb 2023, 14:15

      @Julien30 thanks. Page 20 of the first document indicates that when using the common PV terminal, you need to provide 24V drive, not 5V as provided by the Duet driver outputs. I suggest you don't connect the PV terminal and instead connect the PP+ and PP- pins to the 1XD Step+ and Step- outputs. Similarly, use PD+ and PD-

      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 Feb 2023, 10:19 Reply Quote 0
      • undefined
        Julien30 @dc42
        last edited by 20 Feb 2023, 10:19

        Hi @dc42, I've done what you suggest. I have diconnect the PV and rewire all my pin.
        So now, I have:

        • driver PP+ to 1XD Step+
        • driver PP- to 1XD Step-
        • driver PD+ to 1XD Dir +
        • driver PD- to 1XD Dir -
          I have try to run the motor with DuetWebControl but nothing.
          Do you know how can I see if the correct signal is send by the 1XD to the driver when I send orders from DWC ?
          I want to know if it's an issue due to the wire, the config of the Duet or my parameters of the driver.

        Thank you for your help.

        undefined 1 Reply Last reply 20 Feb 2023, 15:21 Reply Quote 0
        • undefined
          dc42 administrators @Julien30
          last edited by 20 Feb 2023, 15:21

          @Julien30 said in How to send orders to an servo-driver from Duet?:

          Do you know how can I see if the correct signal is send by the 1XD to the driver when I send orders from DWC ?

          For the DIR signal it's easy enough: use a multimeter to measure the voltage between DIR+ and DIR-. The polarity should reverse when you reverse the commanded direction.

          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 Feb 2023, 16:03 Reply Quote 0
          • undefined
            Julien30 @dc42
            last edited by 20 Feb 2023, 16:03

            @dc42 Thank you, I have just check it with my multimeter and when I send a command from DWC for run the motor, there is no voltage change between DIR+ and DIR-. I have 4,4V DC every time. So, I think there is a little prob with my config.g, no?

            undefined 1 Reply Last reply 21 Feb 2023, 10:13 Reply Quote 0
            • undefined
              dc42 administrators @Julien30
              last edited by 21 Feb 2023, 10:13

              @Julien30 said in How to send orders to an servo-driver from Duet?:

              @dc42 Thank you, I have just check it with my multimeter and when I send a command from DWC for run the motor, there is no voltage change between DIR+ and DIR-. I have 4,4V DC every time. So, I think there is a little prob with my config.g, no?

              Perhaps. I suggest you do the following:

              • Check that the red Status LEDs on the 1XD boards are flashing in sync with the Status LED on the main board
              • Send command M584 and check that the XYZ axes are mapped to the 1XD boards
              • To send a movement command, first send G91 to select relative mode. Then send G1 H2 commands, for example G1 H2 X10 to command 10mm of X movement, and G1 H2 X-10 to command 10mm of reverse X movement.

              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 Feb 2023, 10:52 Reply Quote 0
              • undefined
                Julien30 @dc42
                last edited by 21 Feb 2023, 10:52

                @dc42

                • The red status LEDs on the 1XD boards are flashing in sync with the main board
                • After sending M584:
                  "
                  M584
                  Driver assignments: X40.0 Y41.0 Z42.0 E0.1:0.2, 3 axes visible
                  "
                • I send G91 and after that I've send G1 H2 X10.
                  After a while, I've send G1 H2 X50 for testing and G1 H2 X-10.
                  But every time nothing happen.
                  When I send all of this command, I also test the DIR PIN with multimeter but as before the voltage stay at 4,4V.

                No change with the voltage and no move with the motor.

                undefined 1 Reply Last reply 21 Feb 2023, 10:55 Reply Quote 0
                • undefined
                  dc42 administrators @Julien30
                  last edited by 21 Feb 2023, 10:55

                  @Julien30 said in How to send orders to an servo-driver from Duet?:

                  When I send all of this command, I also test the DIR PIN with multimeter but as before the voltage stay at 4,4V.

                  Are you quite certain that it isn't changing between +4.4V and -4.4V?

                  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 Feb 2023, 11:20 Reply Quote 0
                  • undefined
                    Julien30 @dc42
                    last edited by 21 Feb 2023, 11:20

                    @dc42
                    Yes I am, it does not change positiv to negativ or inverse

                    undefined 1 Reply Last reply 21 Feb 2023, 11:34 Reply Quote 0
                    • undefined
                      dc42 administrators @Julien30
                      last edited by dc42 21 Feb 2023, 11:34

                      @Julien30 you can send e.g. M122 B40 to get a diagnostic report for the board with CAN address 40. Included in this report will be "Driver 0: position ...". Does the reported position change after you send a movement command?

                      Which firmware versions are you using, on the main board and on the EXP1XD boards?

                      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 Feb 2023, 12:57 Reply Quote 0
                      • undefined
                        Julien30 @dc42
                        last edited by 21 Feb 2023, 12:57

                        @dc42 when I send M122 B40 it say:
                        "
                        M122 B40
                        Warning: Discarded std reply src=40 RID=4094 exp=18 ""
                        Warning: Discarded std reply src=41 RID=4094 exp=18 ""
                        Error: M122: Board 40 received unknown msg type 51

                        "
                        The firmware version for the Main board:
                        Duet 3 MB6HC v1.01
                        Version: 3.4.5

                        The firmware version for 1XD:

                        • Version 3.2beta3
                        undefined 1 Reply Last reply 21 Feb 2023, 14:23 Reply Quote 0
                        • undefined
                          dc42 administrators @Julien30
                          last edited by 21 Feb 2023, 14:23

                          @Julien30 the problem is that the firmware on the 1XD boards (3.2beta) is too old to work with firmware 3.4.5 on the main board. So you need to upgrade the firmware on the 1XD boards, which you can do by uploading the Duet3Firmware_EXP1XD.bin file from the 3.4.4 or 3.4.5 release through DWC.

                          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 Feb 2023, 15:42 Reply Quote 0
                          • undefined
                            Julien30 @dc42
                            last edited by 21 Feb 2023, 15:42

                            @dc42 Thank you.
                            I upgrade the firware as you suggest. So now, when I send the M122 B40 to get a diagnostic report, then send a movement command and send an other M122 B40, I can see the report position change as it was expected earlier .
                            I also see the voltage with multimeter at pin DIR+ and DIR- change from +4,4 to -4,4 and inverse.
                            But saddly my motor don't move a flinch.

                            undefined 1 Reply Last reply 21 Feb 2023, 15:57 Reply Quote 0
                            • undefined
                              dc42 administrators @Julien30
                              last edited by 21 Feb 2023, 15:57

                              @Julien30 that's progress. I suggest you send M569 P40.0 and check that the response shows similar timings to the ones you specified in config.g.

                              The voltage between STEP+ and STEP- should normally be about -4.4V. It will change to +4.4V when a step pulse is sent, but you probably won't be able to see any change on your multimeter because the step pulse is short (you have configured 5us pulse length, which should be more than enough).

                              Do your drivers require any other input to enable them?

                              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 Feb 2023, 16:34 Reply Quote 0
                              • undefined
                                Julien30 @dc42
                                last edited by 21 Feb 2023, 16:34

                                @dc42
                                The parameters in config.g is:

                                • M569 P40.0 S1 R1 T5:5:10:10
                                  When I send M569 P40.0, I received:
                                • Driver 40.0 runs forwards, active high enable, step timing 5.0:5.7:10.7:11.0us
                                  It look pretty close.

                                @dc42 said in How to send orders to an servo-driver from Duet?:

                                Do your drivers require any other input to enable them?

                                I don't really know. At first I began with only the stock wire send with the driver. It was managed to include the pin PV, the pin PD- and the pin PP-.
                                Maybe if I reconnect as it was at first, It will run. No?

                                undefined 1 Reply Last reply 21 Feb 2023, 16:59 Reply Quote 0
                                • undefined
                                  alankilian @Julien30
                                  last edited by alankilian 21 Feb 2023, 16:59

                                  @Julien30 Do you have a signal going in to the SRV-ON input?

                                  The document you provided shows a 24 Volt DC power supply and a switch connected to the SRV-ON input.

                                  Page 47 says that using the default configuration that the servo will not operate without that signal. You can update that parameter to set it to a "1" so that the servo is always enabled.

                                  SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                  undefined 1 Reply Last reply 22 Feb 2023, 15:51 Reply Quote 0
                                  • undefined
                                    Julien30 @alankilian
                                    last edited by 22 Feb 2023, 15:51

                                    Hi @alankilian
                                    I don't see some 24V DC or switch connected to SRV-ON input (maybe I don't look at the proper place...)
                                    But I have made the configuration of the Pn003 to 1 for set it as "always enabled".

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