Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposal - Modbus batch reading #1589

Open
TheSamabo opened this issue Nov 7, 2024 · 0 comments
Open

Feature proposal - Modbus batch reading #1589

TheSamabo opened this issue Nov 7, 2024 · 0 comments
Labels
feature Request to add some feature

Comments

@TheSamabo
Copy link
Contributor

Hello
I have a feature proposal which i would like to discuss. Its about batch reading from modbus devices. I've seen this as a default implementation in multiple PLC IDEs which maps datapoints (Timeseries or attributes) to a a specific "Range" of bytes from the modbus response.
Where the gateway would read for example 16 registers starting at address 1000 (1000,1001, ... 1015) and then map datapoints to timeseries or attributes (example: "Temperature" = Float32 which would translate to value being built from registers 1000 and 1001).

This feature would require to change the configuration structure for the telemetry in the modbus connectors
Example:

"timeseries": [
    {
       "starting_address": 1000,
       "register_count": 16,
       "datapoints": {
             "<KEY_NAME>":  "<DATATYPE>"
             "Temperature" : "Float32'
        }
    }
]

This would reduce the number of requests that have to be made against the modbus device. In othere word it would increase the throughput of data that can be read at higher frequency. The above example is a rough idea, the datapoints each might define the number of registers that the GW should build the output value but its up to discussion.

Thank you
Sam

@imbeacon imbeacon added the feature Request to add some feature label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request to add some feature
Projects
None yet
Development

No branches or pull requests

2 participants