Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions source/_integrations/modbus.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1621,19 +1621,6 @@ Description:
| value | (write_register) A single value or an array of 16-bit values. Single value will call modbus function code 0x06. Array will call modbus function code 0x10. Values might need reverse ordering. E.g., to set 0x0004 you might need to set `[4,0]`, this depend on the byte order of your CPU |
Comment thread
frenck marked this conversation as resolved.
| state | (write_coil) A single boolean or an array of booleans. Single boolean will call modbus function code 0x05. Array will call modbus function code 0x0F |
Comment thread
frenck marked this conversation as resolved.

The modbus integration also provides communication stop/restart services. These services will not do any reconfiguring, but simply stop/start the modbus communication layer.

| Service | Description |
| -------------- | --------------------------------------------- |
| modbus.stop | Stop communication |
| modbus.restart | Restart communication (Stop first if running) |

Description:

| Attribute | Description |
| --------- | ------------------------------------------------ |
| hub | Hub name (defaults to 'modbus_hub' when omitted) |

## Example: writing a float32 type register

To write a float32 datatype register use network format like `10.0` == `0x41200000` (network order float hexadecimal).
Comment thread
frenck marked this conversation as resolved.
Expand Down