1
Support Questions / ModbusTCPCom1.write returns a value, what is it?
« on: April 14, 2021, 05:36:55 PM »
When executing:
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.
Code: [Select]
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.