• 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

    Modbus TCP write or settable

    How-To
    3
    8
    1.9k
    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.
    • O
      ORU_david
      last edited by

      Re: {Modbus TCP write or settable](/topic/4560/modbus-tcp-write-or-settable)

      Register 64 (all R/W) points, while using the tool you can see in yellow hi light it will write, but the actual point will reads the value but when I use the "set" command to change the value nothing happens.

      1 Reply Last reply Reply Quote 0
      • ThomasEinastoT
        ThomasEinasto
        last edited by

        Hi @ORU_david

        What does your browser console say?

        i.e do you get any errors there ex: permission rights etc?

        Do any events also happen in events table?

        i.e modbus error exceptions illegal data value or something similar?

        Then we can help more.

        O 1 Reply Last reply Reply Quote 0
        • O
          ORU_david @ThomasEinasto
          last edited by

          @thomaseinasto

          I really don't see anything but I'm limited as to what to look for. I'm using chrome.
          The MC6 Test stat is the device.

          0_1573075160794_83c14dba-2bc0-43d2-ac07-a6088de05a70-image.png

          0_1573075033531_17c863ca-7111-4b21-b4d5-a767cf30c003-image.png

          1 Reply Last reply Reply Quote 0
          • ThomasEinastoT
            ThomasEinasto
            last edited by ThomasEinasto

            If we are talking about MC6 Test Stat: MC6 Stat - Space temp point then following is related.

            Transcript from modbus documentation:
            See here for more info: http://www.simplymodbus.ca/exceptions.htm
            03 (03 hex) Illegal Data Value
            A value contained in the query data field is not an allowable value for the slave. This indicates a fault in the structure of remainder of a complex request, such as that the implied length is incorrect. It specifically does NOT mean that a data item submitted for storage in a register has a value outside the expectation of the application program, since the MODBUS protocol is unaware of the significance of any particular value of any particular register.

            Please see that your multiplier and additive is actually as it should. Device responds to mango that the value you want to write is not allowed.

            Edit: I looked at your previous point and it seems that we are actually talking about the same point. If you click on info icon on the datapoint edit page you can see documentation related to multiplier and additive.

            The Multiplier and Additive fields can be used when trivial value conversions are required. Numeric values read from the network are calculated as follows: (raw value) * multiplier + additive. The reverse is applied when a numeric value is written to the network.

            So generally speaking. You have to consider the multiplier you set to the point and also modbus 2 byte integers take integer values not floating values.

            O 1 Reply Last reply Reply Quote 0
            • O
              ORU_david @ThomasEinasto
              last edited by

              @thomaseinasto
              Thanks Thomas. I think I understand some of this. When I use the write tool I put 740 to get a 74° set point so once I get the right multiplier + additive combo it should work?

              1 Reply Last reply Reply Quote 0
              • ThomasEinastoT
                ThomasEinasto
                last edited by ThomasEinasto

                @ORU_david To put 74 ° you should probably write 740 but I am not sure if the value put into the modbus request is actually a 2 byte integer or a floating point,

                i.e does Mango parseInt the value after multiplier + additive before putting it into the modbus request or not..

                IAS staff could be of more help on that.

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

                  Mango computes the multiplier and additive in reverse when you write a data point. So if the multiplier is 0.1 and you try to set the point with 74 it will write 740 to the Modbus register.

                  Please, can you send the ma.log file to support@infiniteautomation.com

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    ORU_david @CraigWeb
                    last edited by

                    @craigweb

                    Well it turns out, the device required the "Use multiple write commands only" to be turned on. Thanks for the help.

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