Skip to content

Commit 86e8bd5

Browse files
committed
add en translation
1 parent b4e3485 commit 86e8bd5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • i18n/en/docusaurus-plugin-content-docs/current/reference

i18n/en/docusaurus-plugin-content-docs/current/reference/modbus.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ For this purpose, in addition to the general 'modbus' settings (see above), a `r
192192
The definition of a register requires the following parameters:
193193

194194
- `address`: the register address
195-
- `type`: The register type, allowed are `coil`, `input`, `holding`
195+
- `type`: The register type, allowed read types are `coil`, `input`, `holding`, write types are `writeholding`, `writeholdings`, `writecoil`
196196
- `decode`: The type of encoding of the data. Allowed are: `int16|32|64, uint16|32|64, float32|64 and u|int32s + float32s`. For type `coil` the encoding is ignored, but must still be specified. For type `writecoil`, `bool8` must be specified.
197197
- `bitmask`: An optional specification. The specified value is ANDed with the read value to extract individual bits.
198198

@@ -219,7 +219,8 @@ For the `int32s/uint32s` decodings, the byte order is swapped, which is useful f
219219

220220
### Writing Registers
221221

222-
Both holding registers and coils can be written. For this, either `type: writeholding` for holding registers or `type: writecoil` for coils must be specified.
222+
Both holding registers and coils can be written. For this, either `type: writeholding` for holding registers or `type: writecoil` for coils must be specified. For writing multiple registers (function code 16) the type `writeholdings` is available.
223+
223224
`type: writeholding` always writes a 16-bit register (int or bool16). Therefore, for `decode`, `uint16` must always be specified.
224225
`type: writecoil` writes a coil. For `decode`, `bool8` must be specified.
225226

@@ -230,7 +231,7 @@ source: modbus
230231
---
231232
register:
232233
address: 40070
233-
type: writeholding # writeholding or writecoil
234+
type: writeholding # writeholding, writeholdings or writecoil
234235
```
235236

236237
### Complete Example

0 commit comments

Comments
 (0)