You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#15](https://github.com/brainelectronics/micropython-modbus/issues/15). It is
307
-
not possible to write to a specific position within a configured list of multiple coils on a MicroPython Modbus TCP client device. This bug affects only
308
-
devices using this package. Other devices work as expected and can be addressed
309
-
as specified.
321
+
```{eval-rst}
322
+
.. warning::
323
+
Please be aware of `bug #15 <https://github.com/brainelectronics/micropython-modbus/issues/15>`_.
324
+
325
+
It is not possible to write to a specific position within a configured
326
+
list of multiple coils on a MicroPython Modbus TCP client device.
327
+
328
+
This bug affects only devices using this package. Other devices work as
329
+
expected and can be addressed as specified.
330
+
```
310
331
311
332
###### Multiple
312
333
313
-
> The function code `0x0F` is used to force each coil in a sequence of coils to
334
+
```{note}
335
+
The function code `0x0F` is used to force each coil in a sequence of coils to
314
336
either `ON` or `OFF` in a remote device.
337
+
```
315
338
316
339
With the function [`write_multiple_coils`](umodbus.tcp.TCP.write_multiple_coils)
[#35](https://github.com/brainelectronics/micropython-modbus/issues/35). It is
332
-
not possible to write to a specific position within a configured list of multiple coils on a MicroPython Modbus TCP client device. Setting coil 127, which is `1` in the above example will throw an error. This bug affects only
333
-
devices using this package. Other devices work as expected and can be addressed
334
-
as specified.
353
+
```{eval-rst}
354
+
.. warning::
355
+
Please be aware of `bug #35 <https://github.com/brainelectronics/micropython-modbus/issues/35>`_.
356
+
357
+
It is not possible to write to a specific position within a configured
358
+
list of multiple coils on a MicroPython Modbus TCP client device. Setting
359
+
coil `127`, which is `1` in the above example will throw an error.
360
+
361
+
This bug affects only devices using this package. Other devices work as
362
+
expected and can be addressed as specified.
363
+
```
335
364
336
365
#### Discrete inputs
337
366
@@ -340,8 +369,10 @@ or `1` (on). Unlike [coils](#coils), these cannot be set.
340
369
341
370
##### Read
342
371
343
-
> The function code `0x02` is used to read from 1 to 2000 contiguous status of
372
+
```{note}
373
+
The function code `0x02` is used to read from 1 to 2000 contiguous status of
344
374
discrete inputs in a remote device.
375
+
```
345
376
346
377
With the function [`read_discrete_inputs`](umodbus.tcp.TCP.read_discrete_inputs)
347
378
discrete inputs can be read.
@@ -365,8 +396,10 @@ represent `-32768` through `32767`.
365
396
366
397
##### Read
367
398
368
-
> The function code `0x03` is used to read the contents of a contiguous block
399
+
```{note}
400
+
The function code `0x03` is used to read the contents of a contiguous block
369
401
of holding registers in a remote device.
402
+
```
370
403
371
404
With the function
372
405
[`read_holding_registers`](umodbus.tcp.TCP.read_holding_registers) a single
@@ -384,13 +417,18 @@ print('Status of HREG {}: {}'.format(hreg_address, register_value))
384
417
# Status of HREG 94: [29, 38, 0]
385
418
```
386
419
387
-
> :warning: Please be aware of bug
388
-
[#35](https://github.com/brainelectronics/micropython-modbus/issues/35). It is
389
-
not possible to read a specific position within a configured list of multiple
390
-
holding registers on a MicroPython Modbus TCP client device. Reading holding
391
-
register 95, holding the value `38` in the above example will throw an error.
392
-
This bug affects only devices using this package. Other devices work as
393
-
expected and can be addressed as specified.
420
+
```{eval-rst}
421
+
.. warning::
422
+
Please be aware of `bug #35 <https://github.com/brainelectronics/micropython-modbus/issues/35>`_.
423
+
424
+
It is not possible to read a specific position within a configured list of
425
+
multiple holding registers on a MicroPython Modbus TCP client device.
426
+
Reading holding register `95`, holding the value `38` in the above example
427
+
will throw an error.
428
+
429
+
This bug affects only devices using this package. Other devices work as
430
+
expected and can be addressed as specified.
431
+
```
394
432
395
433
##### Write
396
434
@@ -399,8 +437,10 @@ in case signed values are used.
399
437
400
438
###### Single
401
439
402
-
> The function code `0x06` is used to write a single holding register in a
440
+
```{note}
441
+
The function code `0x06` is used to write a single holding register in a
403
442
remote device.
443
+
```
404
444
405
445
With the function
406
446
[`write_single_register`](umodbus.tcp.TCP.write_single_register) a single
0 commit comments