sdg.matiaan
2013-04-04 10:51
Concerning the STATUS of a profile value:
the lower 7 bits are used to represent a NUMBER for the STATUS sample, that can mean different things for different meters.
the higher bits after that have generic meanings, and can be simultaneously set to mean more than one thing at the same time.
status constants. These can be bitwise orred in.
ST_UNDER_VOLTAGE = 128;
ST_OVER_VOLTAGE = 256;
ST_REVERSE_FLOW = 512;
ST_OVER_CURRENT = 1024;
ST_OVER_ENERGY = 2048;
ST_CALC_IMPORTED = 4096;
ST_CALC_INTERPOLATED = 8192;
ST_CALC_ALMOST_INTERPOLATED = 16384;
for the PRI, the lower 7 bits has this meaning:
ST_SET_TIME = 1;
ST_PROGRAMMED = 2;
ST_REVERSERUN = 4;
ST_PHASEFAILED = 8;
sdg.matiaan
2013-04-04 11:27