Determining NAM and IEC meter types

If a DI agent needs to determine if a meter is a North American meter (NAM) or an International Electrotechnical Commission (IEC) meter type, use the ILID_BASE_METER_TYPE.

AgentApiReturnType ApiGetData(uint32_t lidNumber, ApiVariableType* lidValue )

The values returned for the ILID_BASE_METER_TYPE are shown below:

static value_string_t meter_type_values_strings[] = {

{ 0, "None"},

{ 1, "S-Base"},

{ 2, "A-Base"},

{ 3, "K-Base"},

{ 4, "IEC Bottom Connect (Asymmetric)"},

{ 5, "Switchboard"},

{ 6, "Rackmount"},

{ 7, "B-Base"},

{ 8, "P-Base"},

{ 9, "IEC Bottom Connect (Symmetric)"}

};

The following examples show results from a NAM type meter and an IEC type meter.

NAM Example

ILID_BASE_METER_TYPE 1

static value_string_t meter_type_values_strings[] = {

{ 0, "None"},

{ 1, "S-Base"},

{ 2, "A-Base"},

{ 3, "K-Base"},

{ 4, "IEC Bottom Connect (Asymmetric)"},

{ 5, "Switchboard"},

{ 6, "Rackmount"},

{ 7, "B-Base"},

{ 8, "P-Base"},

{ 9, "IEC Bottom Connect (Symmetric)"}

};

IEC Example

ILID_BASE_METER_TYPE 9

static value_string_t meter_type_values_strings[] = {

{ 0, "None"},

{ 1, "S-Base"},

{ 2, "A-Base"},

{ 3, "K-Base"},

{ 4, "IEC Bottom Connect (Asymmetric)"},

{ 5, "Switchboard"},

{ 6, "Rackmount"},

{ 7, "B-Base"},

{ 8, "P-Base"},

{ 9, "IEC Bottom Connect (Symmetric)"}

};