Skip to content

Commit

Permalink
Comment about addressing when shared=false (#1474)
Browse files Browse the repository at this point in the history
* Comment about shared=false.

* hmm.
  • Loading branch information
janiversen authored Apr 7, 2023
1 parent 36ce5f3 commit 7963266
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions doc/source/library/simulator/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,20 @@ Example "setup" configuration:

Defines if the blocks are independent or shared (true)

.. tip::
if shared is set to false, please remember to adjust the addresses, depending on in which group they are.

assuming all sizes are set to 10, the addresses for configuration are as follows:
- coils have addresses 0-9,
- discrete_inputs have addresses 10-19,
- holding_registers have addresses 20-29,
- input_registers have addresses 30-39

when configuring the the datatypes (when calling each block start with 0).

This is needed because the datatypes can be in different blocks.


**"type exception"**

Defines is the server returns a modbus exception if a read/write request violates the specified type.
Expand Down Expand Up @@ -295,8 +309,6 @@ In the example registers 5, 10, 11, 12, 13, 14, 15 will produce an exception res

Registers can be singulars (first entry) or arrays (second entry)



Write section
^^^^^^^^^^^^^

Expand Down

0 comments on commit 7963266

Please sign in to comment.