Hello,
I cannot implement the above instruction (WriteMultipleRegistersRequest) TCPModbus in android java.
It seems that I cannot get correctly the syntax of the instruction.
Can somebody post an example ?
Thank you in advance.
Regards Vangelis
Here is an example of a write request for Holding Registers 1 and 2, with values of 1 and 2, respectively, on a Modbus/TCP Server with Unit ID 1:
63 00 00 00 00 0B 01 10 00 00 00 02 04 00 01 00 02
*Note that the Starting Address in the packet is one less than the register number. In other words, the packet uses 0-based register numbering instead of 1-based numbering. Additional details on Modbus register numbering can be found in this thread: https://control.com/forums/threads/modbus-register-numbering.49844/