When executing:
dim strReturn as string
strReturn = ModbusTCPCom1.write(PLCTagAddress,Value)
What does the value returned represent? its typically a varying number between 250 and 300.
I was looking for a way to detect when the target PLC is not communicating.
With a ModbusTCPCom1.read, if there is no communications, there is and exception the can be handled with at Try/Catch.
I haven't been able to figure out how to validate that a ModbusTCPCom1.write is successful.