Profile status codes

Avatar

sdg.marinusvz
2023-07-12 09:48

I've had the question sometimes about what the status on the profile means.


Generally, 0 is good, and anything else means estimated or interpolated or 'bad'.

Here is an excerpt of the code to show what the profile status means:

//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.

  //INTEGER?4 bytes?-2147483648?+2147483647 (0x7FFFFFFF)

  //                  therefore the biggest bit usable is 0x40000000

  public static final int ST_UNDER_VOLTAGE ????= 0x00000080;

  public static final int ST_OVER_VOLTAGE ????= 0x00000100;??//256

  public static final int ST_REVERSE_FLOW ????= 0x00000200;??//512

  public static final int ST_OVER_CURRENT ????= 0x00000400;??//1024

  public static final int ST_UNDER_CURRENT ????= 0x00040000;     //the only way to see if a CT has blown

  public static final int ST_OVER_ENERGY ????= 0x00000800;     //2048;

  public static final int ST_CALC_IMPORTED ????= 0x00001000;     //4096;

  public static final int ST_CALC_INTERPOLATED ???= 0x00002000;     //8192;

  public static final int ST_CALC_ALMOST_INTERPOLATED ?= 0x00004000;     //16384;

  public static final int ST_GAPS ??????= 0x00008000; //used for summary meter: where a component has a gap. after maxdate (lose gaps when read in)

  public static final int ST_EMBEDDED_GAPS ????= 0x00010000; //used for summary meter: where a component has a gap, before a maxdate (keep gaps)

  public static final int ST_DISREGARD_FOR_MD ???= 0x00020000; //used for Elster when clock was set

Please log in to post a comment