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

Extended explanation in modbus.md #445

Merged
merged 10 commits into from
Dec 21, 2023
Merged

Extended explanation in modbus.md #445

merged 10 commits into from
Dec 21, 2023

Conversation

kscholty
Copy link
Contributor

Added some more explanation and a comprehensive example oion how to use the modbus plugin in the real world.

docs/reference/modbus.md Outdated Show resolved Hide resolved
docs/reference/modbus.md Outdated Show resolved Hide resolved
Die Definition eines Registers benötigt folgende Parameter:
- `address`: die Registeradresse
- `type`: Der Registertyp, zulässig sind `coil`, `input`, `holding`
- `decode`: Die Art der Codierung der Daten. Zulässig sind: `int16|32|64, uint16|32|64, float32|64 and u|int32s + float32s`. Beim Typ `coil` wird die Codierung ignoriert, muss aber trotzdem angegeben werden.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da gibt es noch mehr. Neben bool8 und bool16 auch z.B. noch diverse xxxxxnan-Varianten, bei denen die NaN-Werte direkt zu 0 decodiert werden.

Vgl. https://github.com/evcc-io/evcc/blob/c920893bf63acf1bf1d0be6e11dfb4273e911d4a/util/modbus/modbus.go#L390-L452

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Könntest du das dann mal beschreiben, ich glaube nicht, dass ich das gut genug verstanden habe, um das zu tun.

@naltatis naltatis merged commit ae36f70 into evcc-io:main Dec 21, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants