• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    A Bit Stuck on Writing Multiple MODBUS Registers

    User help
    4
    44
    19.4k
    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.
    • danD
      dan
      last edited by

      although might actually currently be a timeout in the network, as it's on the top of a mountain in NZ. at the end of a Mimomax link :/
      I do believe it's snowing up there currently..

      MattFoxM 1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Bugga, still same timeout message when network is responding better.

        com.serotonin.modbus4j.exception.ModbusTransportException: java.net.SocketTimeoutException: connect timed out

        If I interrogate a standard read point it works fine.

        1 Reply Last reply Reply Quote 0
        • MattFoxM
          MattFox @dan
          last edited by MattFox

          although might actually currently be a timeout in the network, as it's on the top of a mountain in NZ. at the end of a Mimomax link :/
          I do believe it's snowing up there currently..

          @dan Sounds like I need to make a roadtrip! Haha

          Do not follow where the path may lead; go instead where there is no path.
          And leave a trail - Muriel Strode

          1 Reply Last reply Reply Quote 0
          • danD
            dan
            last edited by

            With a bloody big hammer.

            1 Reply Last reply Reply Quote 0
            • CraigWebC
              CraigWeb
              last edited by

              Seems like perfect troubleshooting conditions :)
              ye so basically no response from the command. Only thing I can suggest is checking if the actual number is causing the "no response" by sending a different digit. is the modbus request going over the network or do you have a local mango instance there ?

              1 Reply Last reply Reply Quote 0
              • danD
                dan
                last edited by

                Yeh the Mango instance is a few hundred ms away. It seems to work fine reading in voltages and RPM's and the like. Just been playing up a little today probably due to the weather.
                Even when it was working fine the write function still didn't seem to be the correct syntax.

                1 Reply Last reply Reply Quote 0
                • CraigWebC
                  CraigWeb
                  last edited by

                  If I was troubleshooting I would create data points instead of using the modbus tool. It looks like you are using quite an old version of mango and I have had issues with the modbus tool in older versions. I think it would be worth cancelling that out of the troubleshooting.

                  1 Reply Last reply Reply Quote 0
                  • danD
                    dan
                    last edited by

                    OK, thanks Craig. I have a data point I made earlier which I will go back to and see what it does.
                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • danD
                      dan
                      last edited by

                      So I emailed DSE from their website contact form for shits and giggles, not really expecting to hear back... A nice fella from the UK emailed back almost immediately with all the official docs on the thing. I thought that was awesome.. Anyway, here's a more explanatory version of what I had found originally...

                      0_1595416069873_69719d29-dae3-4c8b-adb2-d135b9f6d889-image.png
                      0_1595416123361_de62073f-3f72-412c-a056-53c21c664afa-image.png

                      So looking at that, I should be sending 35702 to 4104 and 29833 to 4105
                      :)
                      I'll give that a go..

                      1 Reply Last reply Reply Quote 0
                      • CraigWebC
                        CraigWeb
                        last edited by

                        I may be wrong here but I am pretty sure that the only way that mango will write them in the same command is if you use 1 x 4-byte data point.

                        1 Reply Last reply Reply Quote 0
                        • danD
                          dan
                          last edited by

                          ok sweet as, thanks for that I'll give it a go

                          1 Reply Last reply Reply Quote 0
                          • CraigWebC
                            CraigWeb
                            last edited by

                            You should capture the command with Wireshark and see if it matches what you are expecting.

                            1 Reply Last reply Reply Quote 0
                            • danD
                              dan
                              last edited by

                              I tried a little bit of script magic to see if it would do it at the same time, but I think still not quick enough..
                              0_1595418651817_c2b6021c-e189-4a1e-8117-28a42226f4b1-image.png

                              0_1595418680470_2482c105-ebe7-4717-bdf9-643997d448b8-image.png

                              I guess I need to combine the two 16 bit values into one 32 bit value, then write that to the single register, which should extend to the second yeh?

                              1 Reply Last reply Reply Quote 0
                              • MattFoxM
                                MattFox
                                last edited by

                                exactly

                                Do not follow where the path may lead; go instead where there is no path.
                                And leave a trail - Muriel Strode

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post