J
Hi,
I use function 03 to read some registers from a modbus Slave Device, using ModBus/TCP. When using function 16 (write multiple registers), the slave gives no response. I have to build the Protocol myself, so with function 03 I send:
2 Bytes Transaction ID: 00 00h
2 Bytes Protocol ID: 00 00h
1 Byte Length_MSB: 00h
1 Byte Length_LSB: 06h
1 Byte Unit ID: 00h
1 Byte Function Code 03h
2 Byte Address 00 00h
2 Byte requestet # of Words 00 26h
Therefore, I get my data as Response from ModBus Slave Device.
Now I want to send my Data to this device.
2 Byte Transaction-ID: 0000h
2 Byte Protocol ID: 0000h
2 Byte Data Length: 00 17h
1 Byte Unit Code: 00h
1 Byte FunctionCode: 10h
1 Byte AddressHigh 04h
1 Byte AddressLow 01h
1 Byte Word Count High 00h
1 Byte Word Count High 08h
1 Byte Byte Count 10h
and 16 Byte of Data
Therefore, I get NO response. Reading the Spec, it should work properly?
Can you help?
jensencom
I use function 03 to read some registers from a modbus Slave Device, using ModBus/TCP. When using function 16 (write multiple registers), the slave gives no response. I have to build the Protocol myself, so with function 03 I send:
2 Bytes Transaction ID: 00 00h
2 Bytes Protocol ID: 00 00h
1 Byte Length_MSB: 00h
1 Byte Length_LSB: 06h
1 Byte Unit ID: 00h
1 Byte Function Code 03h
2 Byte Address 00 00h
2 Byte requestet # of Words 00 26h
Therefore, I get my data as Response from ModBus Slave Device.
Now I want to send my Data to this device.
2 Byte Transaction-ID: 0000h
2 Byte Protocol ID: 0000h
2 Byte Data Length: 00 17h
1 Byte Unit Code: 00h
1 Byte FunctionCode: 10h
1 Byte AddressHigh 04h
1 Byte AddressLow 01h
1 Byte Word Count High 00h
1 Byte Word Count High 08h
1 Byte Byte Count 10h
and 16 Byte of Data
Therefore, I get NO response. Reading the Spec, it should work properly?
Can you help?
jensencom