Modbus Protocol
Strona
8
z
10
Exception code
1 Byte 03 lub 04
3.4 User defined function codes - Read Parameter Chart (0x43)
The function is used in order to get the parameters chart. The parameters chart contains up to 32768 records.
The record with index 0 is the youngest in the database. The size of record is 42 bytes. Records are saved every 5
minutes and they are stored for 113 days. The current number of records should be checked in Input Register at
3136. The maximum records count in the request is 3.
The starting record number and the number of records are sent in the request.
The size of records in bytes and records are sent in the response.
Record:
Position Type Description
Seconds
uin32_t
Time is counted in seconds from the year 2000. The value
0 corresponds to the time 2000.01.01, 00:00:00
Voltage Aux1
uint16_t mV
Voltage Aux1 min
uint16_t mV
Voltage Aux1 max
uint16_t mV
Voltage Aux2
uint16_t mV
Voltage Aux2 min
uint16_t mV
Voltage Aux2 max
uint16_t mV
Battery voltage Ubat
uint16_t mV
Battery voltage Ubat min
uint16_t mV
Battery voltage Ubat max
uint16_t mV
Charging current Ild
uint16_t mA
Charging current Ild min
uint16_t mA
Charging current Ild max
uint16_t mA
Battery current Ibat
uint16_t mA
Battery current Ibat min
uint16_t mA
Battery current Ibat max
uint16_t mA
Battery circuit resistance Rbat
int16_t
mΩ
-1: none
Battery temperature Tbat
int16_t ˚C
Battery temperature Tbat min
int16_t ˚C
Battery temperature Tbat max
int16_t ˚C
Request:
Function code
1 Byte 0x43
Record number
2 Bytes Range: 0 – 32767
Record count
2 Bytes 1 – 3
Response:
Function code
1 Byte 0x43
Byte count
1 Byte The size of records in bytes
Data
42 - 126 Bytes
Errors:
Function code
1 Byte 0xC3