Hope you all had a good Christmas. I am still working with this write procedure.
Unfortunately my ModbusRTU device does not support the 0x06(06) function code for writing.
Here is some code I tried and the results
strAddress="44097"
strValue1(0) = "1"
ModbusRTUCom1.Write(strAddress, strValue1(0))
The data sent to the modbus device by the above code: 01 06 10 00 00 01 4C CA
What I need to be sent is: 01 10 10 00 00 01 02 00 01 76 51
I also tried sending a two register array two registers of data, "44097 - 44098"
Dim strAddress As String = "44097"
Dim strWriteValues2(1) As String
Dim modbusAddress As New MfgControl.AdvancedHMI.Drivers.Modbus.ModbusAddress(strAddress)
strWriteValues2(0) = "1"
strWriteValues2(1) = "0"
ModbusRTUCom1.Write(modbusAddress, strWriteValues2)
What was sent was: 01 06 10 00 00 01 00 00 B4 97
Any more suggestions that would result in a function 0x10 write code?
Thanks!