Giter VIP home page Giter VIP logo

Comments (2)

gavinying avatar gavinying commented on June 19, 2024

@digispiders Firstly, congratulate you have actually retrieved data according to your last screenshot.

As you mentioned, instead of polling start from the standard holding_register address 40001,

poll,holding_register,40001,10,BE_BE
ref,objectname,40001,uint16,r

you end up with polling start from address 1,

poll,holding_register,1,10,BE_BE
ref,objectname,1,uint16,r

This happens quite often because Modbus is an open protocol, different vendors have their own interpretation on the standard, that's why we have many different variants, e.g. zero-based vs one-based, big-endian vs small-endian, etc. Usually vendors will provide documents/examples to help developers for integration.

In your case, your device vendor is using relative address (offset address) rather than absolute address for data comm.

Hope that helps for clarification.

from modpoll.

digispiders avatar digispiders commented on June 19, 2024

Okay. It was a little unclear to me based on the documentation in modpoll + what the manufacturer put out, in combination with my poor understanding of modbus addresses. I assumed that an address was an address, and if an 'offset' to an 'address' was specified (e.g. 1 to 40001), I should call the address (40002) which was probably wrong to assume. Feel to close.

from modpoll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.