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

    Modbus RTU Sample

    Mervis
    2
    2
    1039
    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.
    • K
      kampfwurst last edited by

      Hi,

      I'm trying to Read over Modbus RTU some register. But i havent success yet. Is there a sample programm?

      I have watched the youtube video but still no success. I would like to read vom Modbus ID 10 ten register with FC3. It sounds easy but it isnt ;-)

      Thanks Chris

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

        @kampfwurst Did you see the in-app help of Mervis IDE? There is a nice exaplanation of it in chapter Modbus driver. Anyway, you first need to create a device on a channel (Modbus, serial, baudrate,etc and address). Then double click it and create a group, set it as a read group and configure the modbus group parameter. Then you need to create datapoint, set its group to the group you previously created and configure the modbus datapoint parameters. Also do not forget to either use autoge, or map the IO=>ST to a global variable. (Btw. Mervis uses the +1 addressing! But some manufactures does not so you should check if the register 10 is not read in mervis like register 11)

        Also, for simple modbus prototypes, check the possibility of importing the definition from a csv file: https://kb.mervis.info/doku.php/en:mervis-ide:30-communication-protocols:30-modbus

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