1.3 Sag, Swell, and Interrupt
The metrology firmware supports respective sag, swell, interrupt thresholds for all voltage channels x (where x = [A, B, C]):
There are respective flags SAG_DET_Vx, SWELL_DET_Vx, PH_X_ACTIVE to indicate the sag, swell, interrupt status for every voltage channels. The sag and swell flags are updated every half cycle and the interrupt flags are updated every full cycle.
Example:
If VSAG-RMS = 220 * 0.8 = 176V and KVx = 1651, then the result is:
SAG_THRESHOLD_Vx = ((220 * 0.8 / 1651)2) *232 = 0x02E8C044
If VSWELL-RMS = 220 * 1.2 = 264V and KVx = 1651, then the result is:
SWELL_THRESHOLD_Vx = ((220 * 1.2 / 1651)2) * 232 = 0x068BB09A
If VINTERRUPT-RMS = 220 * 0.5 = 110V and KVx = 1651, then the result is:
INTERRUPT_THRESHOLD_Vx = ((220 * 0.5 / 1651)2) *232 = 0x0122EB1B
