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.
    • Julien30undefined
      Julien30 @jay_s_uk
      last edited by

      @jay_s_uk I have one 3 colour wire cable (Red Green Black)
      Servodriver
      The Red is connect to pin 2 (PV) of CAN2
      The Green is connect to pin 5 (PD-) of CAN2
      The Black is connect to pin 14 (PP-) of CAN2

      72f1c514-c95f-4e00-821a-bb34c5500e2b-image.png

      Duet EXP1XD
      Red on 5V DRIVER OUT
      Green on D0_DIR (-) DRIVER OUT
      Black on D0_STEP (-) DRIVER OUT

      2d97c407-59f7-4cdc-bc76-0a42ce9727fe-image.png

      1 Reply Last reply Reply Quote 0
      • achrnundefined
        achrn
        last edited by

        I note your config statements don't match the comments. Are the boards all showing up in the object model with the expected addresses (40, 41, 42)? Either the Object Model browser plugin or M409 K"boards" should list them.

        (Though your reference to homing and endstops suggests they probably are).

        Julien30undefined 1 Reply Last reply Reply Quote 0
        • Julien30undefined
          Julien30 @achrn
          last edited by

          @achrn Yes, I'm sorry, I have not change the comments behind the config (noob error) But I confirmed that all addresses are 40,41,42.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @Julien30
            last edited by

            @Julien30 the extract from the manual that you posted is not clear. Can you provide a link to the complete manual?

            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

            Julien30undefined 3 Replies Last reply Reply Quote 0
            • Julien30undefined
              Julien30 @dc42
              last edited by

              Hi @dc42 , here is two manual I've got.2012220141540788030.pdf

              1 Reply Last reply Reply Quote 0
              • Julien30undefined
                Julien30 @dc42
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Julien30undefined
                  Julien30 @dc42
                  last edited by

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

                  dc42undefined 1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @Julien30
                    last edited by dc42

                    @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

                    Julien30undefined 1 Reply Last reply Reply Quote 0
                    • Julien30undefined
                      Julien30 @dc42
                      last edited by

                      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.

                      dc42undefined 1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @Julien30
                        last edited by

                        @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

                        Julien30undefined 1 Reply Last reply Reply Quote 0
                        • Julien30undefined
                          Julien30 @dc42
                          last edited by

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

                          dc42undefined 1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators @Julien30
                            last edited by

                            @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

                            Julien30undefined 1 Reply Last reply Reply Quote 0
                            • Julien30undefined
                              Julien30 @dc42
                              last edited by

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

                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @Julien30
                                last edited by

                                @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

                                Julien30undefined 1 Reply Last reply Reply Quote 0
                                • Julien30undefined
                                  Julien30 @dc42
                                  last edited by

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

                                  dc42undefined 1 Reply Last reply Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators @Julien30
                                    last edited by dc42

                                    @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

                                    Julien30undefined 1 Reply Last reply Reply Quote 0
                                    • Julien30undefined
                                      Julien30 @dc42
                                      last edited by

                                      @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
                                      dc42undefined 1 Reply Last reply Reply Quote 0
                                      • dc42undefined
                                        dc42 administrators @Julien30
                                        last edited by

                                        @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

                                        Julien30undefined 1 Reply Last reply Reply Quote 0
                                        • Julien30undefined
                                          Julien30 @dc42
                                          last edited by

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

                                          dc42undefined 1 Reply Last reply Reply Quote 0
                                          • dc42undefined
                                            dc42 administrators @Julien30
                                            last edited by

                                            @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

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