i have 852-8303 edge controller as master and connected to multiple distributed IO (non wago) via modbus tcp, modbus rtu and ethernet/IP. how do is use codesys to monitor whether these IO are having error (no data coming, network connection error, no power etc) and in turn provide alarm or heart beat to the upper system (my edge controller is sending data via mqtt to cloud)
How does those IO are connected. did you use codesys configurators ?
If you have used codesys configurators, there is some variables already available to monitor the master / slaves.
An example for modbus:
With those variable i think you should be able to report what problem is on each network.