ioBroker / ioBroker.modbus

Modbus adapter for ioBroker
MIT License
50 stars 28 forks source link

How to set Bits by an Holding Register? #225

Open kkeintzel opened 2 years ago

kkeintzel commented 2 years ago

for example: E3/DC S10 - Holding Register 40088 (WallBox_0_CTRL) for controlling a Wallbox via Modbus-TCP, "Bit 0 to Bit 12" can/must be set with Function 05h (write single coil)

How can/must i set this with your iobroker.modbus Adapter

Thanks for advance

GermanBluefox commented 2 years ago

You cannot write Holding Register with Function Code 05. You can only use FC6 or FC16 for that: https://www.simplymodbus.ca/FC06.htm

Do you have link to MODBUS instructions for your device?

kkeintzel commented 2 years ago

Here the actual MODBUS instruction für E3/DC:

Hopefully you can give me a description to set the bits for Holding Register 40088 (WallBox_0_CTRL)

thx in advance

ModBus_E3DC_Speichersysteme_V2.00_2022-03-07.pdf

GermanBluefox commented 2 years ago

Also das ist typisch Modbus. Man darf alles mit allem machen. image

Laut Doku sind die Adressen über 40000 - Holding register und die Holding Register müssen mit FC06, FC16 geschrieben werden. Ich denke es geht hier um eine Art interne Mapping, so dass Die Holding Register intern im Gerät mit Coils verbunden sind.

Ich empfehle eine Simulation software zu nehmen (z.B. https://www.modbusdriver.com/modpoll.html) und mit Try&Error rauszufinden was da gemeint ist. Vielleicht kann man mit FC05 auf Address 87*8 + bit schreiben. Vielleicht wird sogar FC06 auf 40088 gehen man muss nur Bits maskieren.

Keine Ahnung, aber es ist nicht normal im Gerät.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.