Protokollaufbau
3.
ADU (Application Data Unit)
MBAP Header
(Modbus Application
Protocol Header)
7 Bytes
3.1
Read
READ Requset
MBAP Header
Description
Byte 0,1:
transaction identifier
Byte 2,3:
Protocol identifier
Byte 4:
Number of Databytes (high byte)
Byte 5:
Number of Databytes (low byte)
Byte 6:
Unit identifier
Functions-Code
Byte 7
Function Code
Data
Byte 8..(8+n)
Databytes, same as Modbus RTU
30.08.2016
PDU (Protocol Data Unit)
Functions-Code
1 Byte
Touch CPR - Request
Byte 0,1:
Byte 2,3:
Byte 4:
Byte 5:
Byte 6:
Byte 7
Byte 8:
Byte 9:
Byte 10:
Byte 11:
Data
n Bytes
0x00, 0x00
0x00, 0x00
0x00
0x06
0xFF
0x01 - read coils
0x02 - read discrete inputs
0x03 - read holding registers
0x04 - read input registers
start
register/state
(high byte)
start
register/state
(low byte)
number of
register/states
(high byte)
number of
register/states
(low byte)
CPR Touch
Modbus TCP
Seite 13 von 19