PROFIBUS DP (COM465DP only)
38
COM465IP-COM465DP_D00216_02_M_XXEN/03.2017
5.2.3 Type 3: Writing to registers on devices on the bus
5.2.3.1 Example: Writing to a register on the RCMS490-D
The RCMS490-D has the BMS address 2. The "Prewarning" menu item is written. It has the value "50
%". The value is changed to "60 %". A register has a size of one word.
Request to the gateway:
Response from the gateway:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9
Byte 10
ID Msg
type
System Device Number
of regis-
ters
Address
high
Address
low
Reg. 0
High
Reg. 0
Low
Reg. 1
High
Reg. 1
Low
0x05 0x03 0x02 0x02 0x02 0x22 0x06 0x42 0x70 0x00 0x00
Byte 0: Sequential ID no.
Byte 1: Message type: For this request always 0x03
Byte 2: Subsystem address: 2
Byte 3: BMS device address: 2
Byte 4: Number of registers: 2
Byte 5: Register start address high byte: 0x22
Byte 6: Register start address low byte: 0x06
Byte 7 Register 0 high byte: 0x42
Floating point value 60 = Prewarn-
ing 60 %
Byte 8 Register 0 low byte: 0x70
Byte 9 Register 1 high byte: 0x00
Byte 10 Register 1 low byte: 0x00
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9
ID Numb
er of
regis-
ters
0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x05 0x02 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Byte 0: Sequential ID no.
Byte 1: Number of registers: 2
Byte 2-9 0xFF