Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
N60 N30 N20 N10 firmware BL0910 energy chip register RAW data structure
#1
   
Reply
#2
>= ARM CPU firmware V20_260305SP data strcut changed, because of energy value support 0.001kwh. the new data struct is :
   

Energy variable update to "float" from "unit32".

new is:

Code:
///modbus data struct
typedef struct
{
    uint32_t RMS_1;        //0    //XX.XXX    A        0.001A/LSB
    uint32_t RMS_2;
    uint32_t RMS_3;
    uint32_t RMS_4;
    uint32_t RMS_5;
    uint32_t RMS_6;
    uint32_t RMS_7;
    uint32_t RMS_8;
    uint32_t RMS_9;
    uint32_t RMS_10;
    int32_t WATT_1;        //20 XXXX.X    W        0.1W/LSB
    int32_t WATT_2;
    int32_t WATT_3;
    int32_t WATT_4;
    int32_t WATT_5;
    int32_t WATT_6;
    int32_t WATT_7;
    int32_t WATT_8;
    int32_t WATT_9;
    int32_t WATT_10;//
//    uint32_t Energy_1;        //40 XXXXXX    kWh   1kwh/LSB,
//    uint32_t Energy_2;
//    uint32_t Energy_3;
//    uint32_t Energy_4;
//    uint32_t Energy_5;
//    uint32_t Energy_6;
//    uint32_t Energy_7;
//    uint32_t Energy_8;
//    uint32_t Energy_9;
//    uint32_t Energy_10; //
//    uint32_t Energy_Sum; //60
    float Energy_1;        //40 XXXXXX    kWh    ,
    float Energy_2;
    float Energy_3;
    float Energy_4;
    float Energy_5;
    float Energy_6;
    float Energy_7;
    float Energy_8;
    float Energy_9;
    float Energy_10; //
    float Energy_Sum; //60
    
    uint16_t RMS_V;            //62 XXX.X    V            0.01v/LSB
    uint16_t Period;        //63 XX.XX    Hz        0.01Hz/LSB
    float TPS1;            //64 XX.XX ℃            0.1℃/LSB
    float PF;  //66
}Elect_StructDef_JKE;
Reply
#3
If you read the entire data structure via Modbus (function code 0x03), you need to read 68 consecutive holding registers.
   

N10: you can read register address 100  just read 1pc of BL0910 chip
N20: you can read register address 100 and 200  just read 2pcs of BL0910  chips
N30: you can read register address 100 and 200 and 300 just read 3pcs of BL0910 chips
N60: you can read register address 100 and 200 and 300 and 400 and 500 and 600 just read 6pcs of BL0910 chips
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)