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

Modbus: write coils #648

Open
andig opened this issue Oct 21, 2024 · 0 comments
Open

Modbus: write coils #648

andig opened this issue Oct 21, 2024 · 0 comments

Comments

@andig
Copy link
Member

andig commented Oct 21, 2024

Thank you for your help. This was it.

I orientated myself to the reference (https://docs.evcc.io/en/docs/reference/modbus#writing-registers):

Writing Registers
Both holding registers and coils can be written. For this, either type: writeholding for holding registers or type: writecoil for coils must be specified. type: writeholding always writes a 16-bit register (int or bool16). Therefore, for decode, uint16 must always be specified. type: writecoil writes a coil. Specifications for decode are ignored.

Originally posted by @Erik-Holzinger in evcc-io/evcc#16571 (reply in thread)

Note: writing single coil via writecoil requires bool8 data type.

@andig andig changed the title Thank you for your help. This was it. Modbus: write coils Oct 21, 2024
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

No branches or pull requests

1 participant