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

    USB-to-RS485 and Power Meter ... can't get it to work

    Scheduled Pinned Locked Moved Mervis
    6 Posts 2 Posters 2.4k Views
    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.
    • D
      DickesC
      last edited by

      Hi

      I have a UniPi 1.1 and a USB to RS485 Adapter.
      With this i would like to meassure values from a SDM120-Modbus power meter.

      But i simply can't get it to work.
      I tried it in Rexygen, and it was way easier.

      In Mervis i don't know where to start.
      e.g. where should i put the "connection parameters" (/dev/ttyUSB0)

      Any help?

      Thanks

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

        Hi @dickesc,
        I would suggest to take at our Connecting to Modbus slave tutorial. You can select USB1 - USB4 in the configuration of the ModbusRTU channel.

        Best regards,
        Martin

        1 Reply Last reply
        Reply Quote 0
        • D
          DickesC
          last edited by

          Thanks for the Link

          So i have tried the following:

          • add a channel

          Protocol "Modbus"
          Link Protocol "Serial"
          Port Number "USB Port1"
          Baud Rate "9600"
          Data Bits "8"
          Parity "None"
          Stop Bits "One"

          • add a device

          Device Address "1"

          • add a group to the device

          Starting Element "30001"
          Quantity of Elements "6"

          • add a Data Point

          Select the right group
          Comm Value "BuiltIn"
          ST Type "real"
          MultiByte Length "4"

          • Set Autogen

          • Build and deploy

          When i debug it i get "Port initialization Failed (status 53)" i the Port Monitor.
          In the Variable Browser i get "Communication Error" and a PLC Value of "0".

          So, what can i do next?

          Thanks

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

            Hi @dickesc,
            did you connect the converter to the correct USB. This is the USB1:

            0_1562067341281_2f7e6aac-0880-48b5-940a-2a849b885266-image.png

            1 Reply Last reply
            Reply Quote 0
            • D
              DickesC
              last edited by

              Hi

              Yes, i have it connected to this port.
              And i have tried all the other ports too.

              1 Reply Last reply
              Reply Quote 0
              • D
                DickesC
                last edited by

                Hi

                In the meantime i got my Neuron M203.
                The UniPi was just for testing.

                With the Neuron i can "communicate" with the SDM120-Modbus, but i can get no values.

                Can someone help me with the configuration for

                • Modbus Group Parameters
                • Comm. Value Mapped Type
                • ST Type
                • Data Offset
                • MultiByte Lenght

                The Modbus register map you can find here:

                https://bg-etech.de/download/manual/SDM120C-Modbus-DE.pdf
                http://www.eastroneurope.com/media/_system/tech_specs/3914/SDM120 PROTOCOL.pdf

                Thanks

                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