counters

Started by laszlo, December 15, 2013, 10:54:12 PM

Previous topic - Next topic

laszlo

The amp hour counter appears to have rolled over on my classic  on Dec 12. Screen capture from local App below. It seems to have handled it gracefully.

Perhaps there could be a multiplier  counter for the number of times  AH and  KWH counters rolled over? 
4.6KW offgrid PV system, Classic 200, MX60, dual Magnum PAE 4448 inverters, Midnite combiner and disconnect boxes, e-panel,  WBJr, and 8 MN SPDs

boB

Hmmmm...  I will have to look, but it does seem like it has hit that magic 16 bit number...

65,535

It shouldn't do that of course.  I will look to see if that is in the Classic or otherwise.

Rather than showing how many times it has rolled over, it ~should~  just count higher.

Thanks Laszlo for pointing this out !

boB
K7IQ 🌛  He/She/Me

laszlo

Thank you boB.

Firmware version  is 1370  fyi.
4.6KW offgrid PV system, Classic 200, MX60, dual Magnum PAE 4448 inverters, Midnite combiner and disconnect boxes, e-panel,  WBJr, and 8 MN SPDs

boB

Laszlo, can you please check the total amp-hours on the MNGP display inn the LOGS menu ?

Thanks,
boB
K7IQ 🌛  He/She/Me

laszlo

Hi, a/h counter is curently 3322 on mngp. I have done a log clearing around that time frame  because the date on the logs was changed to 2000-0-0 and could not get rid of it. So maybe counter is OK. I will keep an eye out for this  at next 65K cycle.
4.6KW offgrid PV system, Classic 200, MX60, dual Magnum PAE 4448 inverters, Midnite combiner and disconnect boxes, e-panel,  WBJr, and 8 MN SPDs

laszlo

#5
Just recently the amp-hour counter turned over the 65535, and this event reset the Classic's time to Aug 18 2000 (showing the correct day-month  but the year went to 2000).

I have produced 15MWh through this Classic so some 16-bit counters (amp-hour or KWH)  fills every 2-3 months.   It would be nice to have  option of 32-bit counters in the Classic in the future for bigger systems. 

4.6KW offgrid PV system, Classic 200, MX60, dual Magnum PAE 4448 inverters, Midnite combiner and disconnect boxes, e-panel,  WBJr, and 8 MN SPDs

boB

Quote from: laszlo on August 21, 2014, 08:13:47 AM
Just recently the amp-hour counter turned over the 65535, and this event reset the Classic's time to Aug 18 2000 (showing the correct day-month  but the year went to 2000).

I have produced 15MWh through this Classic so some 16-bit counters (amp-hour or KWH)  fills every 2-3 months.   It would be nice to have  option of 32-bit counters in the Classic in the future for bigger systems.

Hmmmm...    Well,  these counters are actually 64 bit internally and the modbus registers reflect 32 bits ~BUT~, I think I see
a problem with the way they are stored in non-vomitable memory...  It appears to be storing only 16 bits worth which would
account for the rollover at 65,535 Amp-Hours and 65,535 kW-Hours.

However, I don't see any reason why the date would go to 0 (2000) when rolling over here.

Will also look into the date reset apparently coinciding with this but the date and time registers are
far removed in memory from statistic variables.

Thank you Laszlo for pointing out a probably bug here.  I will try and get this taken care of ASAP.

The Classic does save all 64 bits for Whizbang Junior data.

boB
K7IQ 🌛  He/She/Me

laszlo

Thank you Bob. Let me know if you want me to try another firmware, I am  at 20K amp hour again so rollover normally would happen in a  couple months.

PS: I concur with your comment, the amp hour counters for the WhizBangJr do not have this problem.
4.6KW offgrid PV system, Classic 200, MX60, dual Magnum PAE 4448 inverters, Midnite combiner and disconnect boxes, e-panel,  WBJr, and 8 MN SPDs

boB


Thanks Laszlo.  Just fixed this in the code so next release should have it all betterized.

boB
K7IQ 🌛  He/She/Me