We have been experiencing some problems with serial MODBUS devices failing to receive data (sending appears to continue functioning, as a deadman switch is properly being written to prevent a hard reset). The simple solution is to re-enable the data source, either by clicking the "save" icon in the data source settings page, or disabling/re-enabling the data source by toggling the green "enabled" button.
I hope to automate this solution with a scripting data source that checks the "Slave 1 Monitor" data point, and if it is 0 (error/failure) reset the serial data source (disable & enable).
The simple question is: Does anyone have experience with this? Please share any helpful information, solutions, caveats.
The longer question is: Where do I find documentation to accomplish this enable/disable of the data source?
Thanks in advance,