Poll 2 Modbus (energy)meters (SMD72) on one bus #22360
Replies: 3 comments 1 reply
-
Asuming both devices are on the same bus, did you assign them a seperate node address? Second, due to the nature of modbus you have to wait for one node to respond in order to poll the second so your script has to be able to work asyncronously. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer! Ah - it might be a needed delay time between polling ID1 and then ID2. Studying the cookbooks today I am unsure where to insert the delay. Do you have a link to an example? |
Beta Was this translation helpful? Give feedback.
-
Wel, the problem with modbus is that the 2 wire version is strictly half duplex so a delay would not necessarily help you a lot, if your devices are very consistent in time it takes them to respond you could probably get away with it though. |
Beta Was this translation helpful? Give feedback.
-
Hello, I ran into following problem: I use a ESP32 connected to a Serial/RS485 converter board, which is connected to 2 energy meters (SMD72). I can successfully poll each meter via a script. But I can't achieve to poll both in one script.
`
`
results in
.
Only the second meter is polled. How can I poll both?
Thanks for you help in advance!
Beta Was this translation helpful? Give feedback.
All reactions