Holding register read error when trying to set up the loader as a dynamic code via async serial server? #1471
-
Hi fellows, I am a newbie to modbus and programming the ascynio package. I am able to get my application to send data via modbus when I am sending "static data", however, when I am trying to crate a dynamic data store, I am getting this error message below that I am not able to decipher? Can you kindly give any suggestions as to what is going on (Thank you!). 2023-04-04 11:33:59,255 MainThread ERROR logging :114 Exception response Exception Response(131, 3, SlaveFailure) From other searches it states that it might be related to reset of the register counter? I am just not seeing the issue in my standard code example. I am defining my data store function like below:
The server is packages like this:
The server is set up like this:
I am not able to share the full code, please let me know where I am doing something that is off. Thank you and greatly appreciate your assistance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You should define the different register classes, have a look at our examples. |
Beta Was this translation helpful? Give feedback.
-
start by moving everything into asyncio.run() you are mixing multiple loops that is a nice recipe for disaster. I do sometimes do paid consulting but not tonight. |
Beta Was this translation helpful? Give feedback.
You should define the different register classes, have a look at our examples.