Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment about addressing when shared=false #1474

Merged
merged 2 commits into from
Apr 7, 2023
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
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