MODBUS TCP Read Multiple Registers?

klikopc

Member
Join Date
Jun 2009
Location
Ptuj
Posts
64
Hi!

Can anyone help me with ModBus TCP Read Multiple Registers(Function Code 03)?

I have a Master Request:
00 00 00 00 00 06 01 03 64 06 00 07

Can anyone tell me what the response looks like(lets assume that all registers have a value of 9)?

Thanks
 
It would look like this:

00 00 00 00 00 11 01 03 0e 00 09 00 09 00 09 00 09 00 09 00 09 00 09

Explanation:

00 = Transaction ID High byte
00 = Transaction ID Low byte
00 = Protocol ID High byte (always 0)
00 = Protocol ID Low byte (always 0)
00 = Length of bytes following High byte
11 = Length of bytes following Low byte
01 = Unit Identifier
03 = Function Code (03: Read Holding Registers)
0e = Size of data returned
00 = First data register High byte
09 = First data register Low byte
00 = Second data register High byte
09 = Second data register Low byte
Etc...
 

Similar Topics

I am working on a project, inside an AB CLX, I implemented the Modbus TCP Client AOI published on AB website, to interreact with a Modbus ASCII...
Replies
7
Views
3,567
Dear all, glad to be here and I hope that we all can benefit from this great community. I am trying to send and receive data between two Mico850...
Replies
4
Views
2,760
hi there! i am trying to read modbus registers in M340 PLC from a Turck BL20 Gateway. I have done this with a Emerson Gateway and everything...
Replies
1
Views
1,949
Hello! I am using S7-1200 PLC 1212C AC/DC with configured Modbus TCP Server. I can already read/write Inputs/Outputs (Coils) and Memory Words...
Replies
7
Views
3,015
Back
Top Bottom