REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Modbus : converting data from two registers into float

    REXYGEN Studio
    2
    3
    758
    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.
    • B
      bigmanvstrashman
      last edited by

      Hi,

      Wish you happy new year to team and users !

      I have some dificulties to convert the modbus data from a device (here a mass flow).

      I retrieve the data, but i need to convert it.
      Here the configuration :

      • Reading holding register (3)
      • quantity : 2 (u16)

      I need a 32-bit float (SGL) after the conversion.
      I tried different configuration but without success.
      May be need some Swap before join ?

      Thanks for your help

      Emmanuel.

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by

        Hi Emmanuel,

        thanks for your question. Can you share configuration of Modbus in your project (or preferably whole REXYGEN project if possible) so I can have a look at the settings you used?

        There is possibility to Swap Bytes or Swap Words at each Modbus item - did you try that?

        0_1578580522900_cd3523e2-a8bd-412d-8a22-8a81e6486dde-image.png

        Regards, Tomas

        1 Reply Last reply Reply Quote 0
        • B
          bigmanvstrashman
          last edited by

          Thanks Thomas
          I'll try these parameters.

          PS : later, cause a collegue take my device...

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

          This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

          There is also an outdated REXYGEN community forum.

          Powered by NodeBB.