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

    Error: M260.4: Command is not supported

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    4
    9
    221
    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.
    • audryhomeundefined
      audryhome
      last edited by

      DUET3 6HC 3.6.0-beta.2 CNC mode

      Trying to communicate with a StepperOnline BLD-530S BLDC Motor controller in modbus (spindle).

      Try to send raw modbus message as indicated in the BLD-530S user manual, get this answer....

      Error: M260.4: Command is not supported

      260.1 works but not understandable by BLD-530-S (reason why I try M260.4)

      Any idea of availability? 3.6.0-beta.3? official release? when?

      Many thanks

      Kind Regards

      jay_s_ukundefined droftartsundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @audryhome
        last edited by

        @audryhome M260.4 has only just been added into the code so isn't in any public release yet.
        No ETA on 3.6 beta 3 AFAIK

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @audryhome
          last edited by

          @audryhome If you try the build in this thread (Mini 5+ and 6HC builds available), M260.4 appears to be enabled: https://forum.duet3d.com/post/347634. When I send M260.4 I get Error: M260.4: missing parameter 'B' or 'S' so I guess it's enabled in this build (Mini 5+).

          I had a look at the manual for the BLD-530-S (https://www.stepperonline.co.uk/digital-brushless-dc-motor-driver-24-48vdc-max-30-0a-600w-bld-530s.html). I don't have any experience in setting up Modbus devices, but it would seem that M260.1 should work. Have a look at this thread for ideas: https://forum.duet3d.com/topic/36350/modbus-spindle-control

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          audryhomeundefined 1 Reply Last reply Reply Quote 0
          • audryhomeundefined
            audryhome @droftarts
            last edited by

            @droftarts Works now writing a single register with betaversion from @dc41 excepts that it always say
            "Error: M260.1: no or bad response from Modbus device"

            DUET issues a single register write
            aea81800-0627-48c0-8b1f-406fa2b743f7-image.png

            device's answer in green
            5cebe652-e48b-43f9-98d0-8132945a328a-image.png

            These answers are analyzed by Saleae Logic analyzer.

            The only difference is the device seem to answers with a larger stop bit, while DUET is perfectly
            OK on timing.

            Since I cannot dig more into the error above, I cannot determine what is wrong or if this is just due to beta version.

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

              @audryhome said in Error: M260.4: Command is not supported:

              Works now writing a single register with betaversion from @dc41 excepts that it always say
              "Error: M260.1: no or bad response from Modbus device"

              Have you gone back to using M260.1 then?

              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

              audryhomeundefined 1 Reply Last reply Reply Quote 0
              • audryhomeundefined
                audryhome @dc42
                last edited by

                @dc42 Here is a complete test sequence

                M260.4 P2 A1 B{0x06,0x80,0x05,0xdc,0x05} R5 Note:works with coma separating bytes, not with ':' as separator

                The message is processed, then spindle speed is set correct accordingly.
                Note the glitches in the yellow trace during device answer, they are not systematic, but frequent.

                228a88c8-80c3-4425-9282-862103ce259d-image.png

                M260.1 P2 A1 F6 R{0x8005} B{0xdc05}
                Message is processed, then spindle speed is set correct accordingly.
                Answering time is randomly different, according to mpdbus specs..
                Note the glitches on DUET's yellow trace.

                b777d263-67f8-4420-ba57-521957f6a0eb-image.png

                In both cases, same error
                5dd3310b-3f83-4f44-ae67-9d74b6e88fea-image.png

                I can live with that until further notice, since errors only pollute the UI and this is workable for now.

                If you have more test sequences in mind, will be happy to help with my setup:

                1-Stepperonline BLD-530 S coupled to a biffy BLDC
                2-Waveshare TTL To RS485 (C) Galvanic Isolated Converter, Half-Duplex Communication, Lightningproof & Anti-Surge, Multi-Isolation Protection
                SKU: 27479
                Part Number: TTL TO RS485 (C)
                3-DUET 6HC under 48V power supply in CNC mode

                Thanks for help

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

                  @audryhome where are you picking up the signals for the yellow and green traces?

                  Are you providing 5V or 3.3V power to the RS485 converter? You may get the best results using 5V.

                  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

                  audryhomeundefined 2 Replies Last reply Reply Quote 0
                  • audryhomeundefined
                    audryhome @dc42
                    last edited by

                    @dc42 Saleae logic is connected to the io1 pins.
                    Converter is powered by DUET 3.3v line.
                    Will test 5v supply to the converter and report.

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • audryhomeundefined
                      audryhome @dc42
                      last edited by

                      @dc42 I did change the power to 5V and this is OK now.
                      Many thanks

                      1 Reply Last reply Reply Quote 0
                      • dc42undefined dc42 marked this topic as a question
                      • dc42undefined dc42 has marked this topic as solved
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA