Skip to content

Commit 7963266

Browse files
authored
Comment about addressing when shared=false (#1474)
* Comment about shared=false. * hmm.
1 parent 36ce5f3 commit 7963266

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

doc/source/library/simulator/config.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ Example "setup" configuration:
252252

253253
Defines if the blocks are independent or shared (true)
254254

255+
.. tip::
256+
if shared is set to false, please remember to adjust the addresses, depending on in which group they are.
257+
258+
assuming all sizes are set to 10, the addresses for configuration are as follows:
259+
- coils have addresses 0-9,
260+
- discrete_inputs have addresses 10-19,
261+
- holding_registers have addresses 20-29,
262+
- input_registers have addresses 30-39
263+
264+
when configuring the the datatypes (when calling each block start with 0).
265+
266+
This is needed because the datatypes can be in different blocks.
267+
268+
255269
**"type exception"**
256270

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

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

298-
299-
300312
Write section
301313
^^^^^^^^^^^^^
302314

0 commit comments

Comments
 (0)