For each half cycle of the fundamental period, VxRMS is calculated, per phase, and
compared to the value set in SAG_THRESHOLD_Vx: where x = [A, B, C], to determine if
a voltage sag condition exists. For each half cycle that a voltage sag exists, the
associated flag, SWAG_DET_Vx is set to 1.
A threshold is allowed for each phase and is computed using the native phase
voltages, before transformation to implied 4WY service. This allows setting
different thresholds for non-balanced service types.
SAG_THRESHOLD_Vx is stored in uQ0.32 format. So, set the threshold value as
follows: