Replies: 3 comments 2 replies
-
A server can serve multiple slaves by simply defining different data content, BUT the modbus device identification is identical in all slaves because there are only one server instance. So to have different data/registers simply define multiple slaves. To have multiple device identification simply start multiple servers. |
Beta Was this translation helpful? Give feedback.
-
The server examples have 3 slaves. |
Beta Was this translation helpful? Give feedback.
-
We have lately had a couple of requests to allow different identification for each slave, however this is not something currently planned, but we are happy to accept pull requests, Again different context is standard, just specify multiple slaves and single=false, see examples, |
Beta Was this translation helpful? Give feedback.
-
I need to create multiple device emulators, and it's highly preferable for each of them to have a different context, including both different data and identifying information. The documentation examples only provide ModbusServerContext(single=True), indicating that they will share the same context. Are there examples with single=False to create multiple device emulators with different contexts?
A simple change of the key leads to a startup error
Beta Was this translation helpful? Give feedback.
All reactions