Confusion about the simulator setup regarding holding and input registers #2531
Unanswered
saardrimer
asked this question in
Help
Replies: 2 comments
-
You have defined shared false which makes the register setup a lot more complicated. In non shared mode registers are defined with the sizes as offset, that is There are no exception when addressing outside the range, so I assume the problem is that you need to define the size of the input registers. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We are working on a new configuration concept that is a lot easier to use. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make the simulator work for my application, and figure out how to properly use it.
https://pymodbus.readthedocs.io/en/latest/source/library/simulator/config.html
pymodbus 3.8.2
I've changed the setup dict to this:
And ran the following commands:
with the following results:
In terms of the received values, the coils read makes sense. However, I'd expect the the
read_input_registers
request to fail or not read the same register value ofread_holding_registers
. This is what confuses me about the simulator config dict: whilst there is an ability to specify separate holding and input register blocks (and indicate that they are not shared) they seem to map to the same register...?I'd appreciate knowing if this is the intended behaviour, and if there's a way to make the holding and input registers distinct. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions