Instruction Manual
78M6612 M-API Library User Guide UG_6612_036
28 Rev. 1.00
Outlets Input parameter
Bit representations of outlet # to be calibrated. For example: 0x03
represents outlet #1 and 2 to be calibrated.
Return Codes MAPI_OK //Calibration passed.
MAPI_ERROR //Calibration failed. Call MAPI_CalStatus() for specifics.
4.4.3 MAPI_MeterStatus()
Purpose Run this function after a failed calibration or periodically to detect any
error/warning. Any non-zero value returned indicates some failure/warning has
occurred. MPU Output Threshold levels and mask settings for the alarms can be
read, modified, and saved using the MAPI_GetSetRegister() API call.
Synopsis void MAPI_MeterStatus ( unsigned long Status);
Parameters Status Output parameter.
A 32-bit word status that indicates statuses as follows:
Min Temperature exceeded Bit 0 = 1 //0000 0001
Max Temperature exceeded Bit 1 = 1 //0000 0002
Min Frequency exceeded Bit 2 = 1 //0000 0004
Max Frequency exceeded Bit 3 = 1 //0000 0008
SAG A detected Bit 4 = 1 //0000 0010
Under Min VA on A Bit 5 = 1 //0000 0020
Over Max Voltage on A Bit 6 = 1 //0000 0040
Over Max I on A – narrow Band Bit 7 = 1 //0000 0080
Over Max I on A – wide Band Bit 8 = 1 //0000 0100
Min Power Factor exceeded on A -NB Bit 9 = 1 //0000 0200
Max Power Factor exceeded on A-NB Bit 10 = 1 //0000 0400
Min Power Factor exceeded on A -WB Bit 11 = 1 //0000 0800
Max Power Factor exceeded on A-WB Bit 12 = 1 //0000 1000
Max Current exceeded on B - NB Bit 13 = 1 //0000 2000
Max Current exceeded on B - WB Bit 14 = 1 //0000 4000
Min Power Factor exceeded on B -NB Bit 15 = 1 //0000 8000
Max Power Factor exceeded on B-NB Bit 16 = 1 //0001 0000
Min Power Factor exceeded on B -WB Bit 17 = 1 //0002 0000
Max Power Factor exceeded on B-WB Bit 18 = 1 //0004 0000
Max Current Total exceeded - NB Bit 19 = 1 //0008 0000
Max Current Total exceeded - WB Bit 20 = 1 //0010 0000
Creep on A Bit 21 = 1 //0020 0000
Creep on B Bit 22 = 1 //0040 0000
_FAULT – Neutral/Line reversal Bit 23 = 1 //0080 0000
Power Register Not Accurate Bit 27 = 1 //0800 0000
Return Codes None.