Dear Guys.
I'm use Modbus Read node from default library Modbus to read data from modbus Server.
The connection was established and work Ok.
But there is a small problem.
when Connection is normal, Modbus Read will return layload normally with array result.
But if because some of reasons, the server lost connection with modbus, the payload will hod the last result before lost connection. I don't want like that.
I want, if connection lost., Modbus read will return array with all elements in the results array are zero.
Is that Posible?
Many thank
In your Modbus read node try enabling the option "Empty msg on Modbus fail"
Its not going to do exactly what you need which is all elements to be zero .. but it should produce an empty msg .. which can give you an indication of a failed connection.
That msg can then be manipulated to whatever you need.
I tried your solution, but it l also do not work
Add a debug node after the modbus node and show us what it shows when the connection fails.
