Add more documentation to modbus services (#7505)

* Add more documentation to modbus services

Useful for people not so familiar with modbus terminology. I had to use Wikipedia to understand the paramters, this should clarify things.

* Update modbus.markdown

* ✏️ Tweaks
This commit is contained in:
wogri 2018-11-26 12:08:49 +01:00 committed by Franck Nijhof
parent 99c0b30427
commit aa3aba59be

View File

@ -112,6 +112,13 @@ timeout:
| ------- | ----------- |
| write_register | Write register. Requires `unit`, `address` and `value` fields. `value` can be either single value or an array |
#### {% linkable_title Service Data Attributes %}
| Attribute | Description |
| --------- | ----------- |
| unit | Slave address (set to 255 you talk to Modbus via TCP) |
| address | Address of the Register (e.g., 138) |
| value | An array of 16-bit values. Might need reverse ordering. E.g., to set 0x0004 you might need to set `[4,0]` |
## {% linkable_title Building on top of Modbus %}