8.3.1. FUNCTION 0x03 / 0x04 - READOUT VALUE MEASUREMENTS AND STATUS FROM
INVERTER
8.3.1.1. READOUT OF CURRENT MEASURED VALUE STORED IN 16-BIT REGISTER [4X / 3X-
REFERENCES]
Function 0x03 / 0x04 are used for readout of status and measurement values from the INVERTER.
The measurement values readout form MODBUS-RTU register is presented by a 16-bit register.
The registers with the measurement value are in the integer format of 16-bit sign (in C/C++ type short int).
The actual measurement value is obtained from the read register using the following algorithms, using the appropriate factor value
DW (see table below).
Table of divider values DW
Measurement
Register
Description
Unit of
measure
DW factor value
Solar panel voltage
Usol
[V] DC
10
Solar panel current
Isol
[A] DC
100
AC network voltage frequency
Fac
[Hz]
100
AC network voltage
Uac
[V] AC
1
AC network current
Iac
[A] AC
100
AC network power
Pac
[W] AC
1
AC network energy meter
Eac
[kWh] AC
100
Inverter's internal temperature
Temp
[°C]
1
Operating hour counter
Ton
[h]
60
Time from reclosing
Trec
[s]
1
Network impedance measurement
Rac
[W]
100
Algorithm 1.
Readout register is saved to regular type variable (float) and then divide it by the factor
DW
// Fragment of code in C language (VS6.0) presenting above algorithm
short int siMeasurementReg;
float fMeasurmentValue
......
fMeasurmentValue = (float)siMeasurementRegister;
fMeasurmentValue = fMeasurmentValue /
DW
;
Algorithm 2.
Readout register is saved to regular type variable 16-bit (short int) and then divide by the factor
DW
, received change of
the dividing it is a number of the hundredth parts of the measurement value.
// Fragment of code in C language (VS6.0) presenting above algorithm
short int siMeasurementReg;
div_t div_MeasurmentValue;
......
div_MeasurmentValue = div((int)siMeasurementRegister,
DW
)
printf( "Total measurement value = %d\n, hundredth parts of the measurement value = %d\n",
div_MeasurmentValue.quot, div_MeasurmentValue.rem );
Query of register Usole
Byte no
Designation
Size
Value [hex]
00
Inverter address
1 byte
11 [ 11 to F7]
01
Function code
1 byte
03 / 04
02
Registry address Hi
1 byte
00
03
Registry address Lo
1 byte
02
04
Registry number Hi
1 byte
00
05
Registry number Lo
1 byte
01
06
CRC-Lo
1 byte
---
07
CRC-Hi
1 byte
---
15
ADA-1040PC3
Summary of Contents for ADA-1040PC3
Page 23: ...23 ADA 1040PC3...