We have successfully calibrated
but Our Kwh is not accurate.
WTHR0_var = 0x00AF43B5;
unsigned long int WTHR1_var = 0x000009A5
unsigned long int VLEVEL_var = 0x00000000;
unsigned long int APNOLOAD_var = 0x00056526;
unsigned long int MASK0_var = 0x00000020;
unsigned long int MASK1_var = 0x039FFFFF;
unsigned int CFMODE_var = 0x7000;
unsigned int CF1DEN_var = 0x0002;
unsigned int CF2DEN_var = 0x0002;
unsigned int CF3DEN_var = 0x0002;
unsigned int LINECYC_var = 0x04B0;
unsigned int COMPMODE_var = 0x0111;
unsigned int ZXTOUT_var = 0x0180;
unsigned int APHCAL_var = 0x0000;
unsigned int BPHCAL_var = 0x0000;
unsigned int CPHCAL_var = 0x0000;
unsigned char LCYCMODE_var = 0x78;
unsigned char CONFIGA_var = 0x01;
unsigned char MMODE_var = 0x1C;
unsigned char ACCMODE_var = 0x0F;
unsigned char PEAKCYC_var = 0x00;
unsigned char SAGCYC_var = 0x01;
unsigned char CFCYC_var = 0x01;
unsigned long int HPFDIS_var = 0x00000000;
unsigned int CONFIG_var = 0x0000;
unsigned long int SAGLVL_var = 0x169D50;
We have tried regular accumulation and line accumulation both.
A.> IN REGULAR ACC
1.> In REGULAR accumulation after reading energy register its value not reset to zero ...which caused problem for controller to accumulate.
2.> We tried to read XWATTHR in different interval of time like after 5s, 10s ,20s but its value is not desirable only giving constant value(2) not an accumulated value.
LOAD -> 200W
B.> IN LINE CYCLE MODE
1.> We are not using interrupt.
2.> We are reading STATUS0.5 regularly.
3.> when STATUS0.5 =1
We are accumulating energy.
writing STATUS0.5 =1 to set it to zero.
4.> After accumulating some time data is not matching.
Please guide us:
1.> How to accumulate in regular accumulation mode if RSTREAD not working.
2.> why read with reset not working.
3.> How to accumulate accurate energy.