• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ModbusTCP Server Real (datatype) Problem

    Scheduled Pinned Locked Moved Mervis
    6 Posts 3 Posters 2.4k Views 1 Watching
    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.
    • _
      _andi_
      last edited by

      Hi,

      I'm using Mervis RT, setting up a modbustcp slave (also called server). When I add a variable of type real and choose "Identity" as conversion method I get one Int on the bus instead of two. Is this a known issue or am I missing some setup?

      Thanks, Andi

      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @_andi_
        last edited by

        Hello @_andi_ ,

        can you please share the project with us? Zip the whole project folder and upload it somewhere if possible so we are clear on what you want to achieve.

        1 Reply Last reply
        Reply Quote 0
        • _
          _andi_
          last edited by

          Hi,

          thats what I'm, doing. Just having the real works fine, adding the int breaks the real.

          0_1548952438398_modbus.PNG

          https://drive.google.com/open?id=1W7ZJpO1MUiSXMdvRWszUj2BQtqj9uxx2

          Thanks, Andi

          Martin KudláčekM 1 Reply Last reply
          Reply Quote 0
          • Martin KudláčekM
            Martin Kudláček @_andi_
            last edited by

            Hi @_andi_ ,
            the real value is 32bits long, that means it will take two registers, in your example registers 1 and 2. By adding register 2 with variable "int1" you have inadvertently overwrite the half of the previous register. To avoid that, set the starting element of the "int1" to 3.

            1 Reply Last reply
            Reply Quote 0
            • _
              _andi_
              last edited by

              Ah, thanks! I just clicked "add variable" and didn't realise I can / have to actually edit the offset afterwards. Might be worth a feature request to change the gui to automatically check the previous value and adjust the starting element accordingly.

              Martin KudláčekM 1 Reply Last reply
              Reply Quote 0
              • Martin KudláčekM
                Martin Kudláček @_andi_
                last edited by

                @_andi_ Noted:)

                1 Reply Last reply
                Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post