Flexy Modbus server comms loss

When my Flexy loses comms with a TCPIP modbus device, the tag holds the last good Value, can I make it so when comms is lost to a device the associated tags show bad data or low / 0, something to indicate a bad state.
Or can I create a tag that show the comms to the device as healthy or not.(I’d rather the first solution).

There’s no built in way to set the values of tags that have lost communications. However, you can easily create a tag that shows whether the comms for a device are healthy using the Status address. Here is an excerpt from the Modbus IO Server reference: