Per-cycle DFT frequency and rate of change of frequency (ROCOF) for generator protection and islanding detection.
In Detego
Frequency is one of the most critical parameters in power system operation. It reflects the real-time balance between generation and load: when generation exceeds load, frequency rises; when load exceeds generation, frequency falls. Detego provides two frequency-related computed signals, both DFT-based and restricted to voltage channels for measurement integrity.
System frequency during a generation-load imbalance event. The smooth blue line shows the true frequency; the green staircase shows the per-cycle DFT measurement (one value held per cycle). The dashed amber line shows ROCOF on the right axis. Red dotted lines indicate under/over-frequency relay thresholds.
The frequency signal is computed using a sliding one-cycle DFT that extracts the fundamental phasor angle at every sample. The DFT phase angle is unwrapped to produce a continuous, monotonically increasing angle that eliminates discontinuities. The frequency is then computed as one averaged value per complete cycle, held constant across all samples in that cycle — producing a characteristic stepped (staircase) output.
Per-cycle frequency
Where
One frequency value is computed per cycle and held constant across all samples in that cycle.
Phase unwrapping
Where
Unwrapping ensures the phase angle is continuous and monotonic, preventing discontinuities from corrupting the frequency calculation.
The stepped output produces one value per cycle rather than noisy per-sample estimates. This matches relay-grade cyclic frequency measurement — modern numerical frequency relays also compute frequency on a per-cycle basis to reject transient noise and provide stable readings for protection decisions.
Voltage channels only
The Rate of Change of Frequency (ROCOF) is the time derivative of the cycle-averaged frequency. It is computed as a finite difference between consecutive cycle-averaged frequency values, then smoothed with a multi-cycle moving average to reduce noise.
Rate of change of frequency
Where
The raw finite difference is smoothed with a multi-cycle moving average before output.
Like the frequency signal, ROCOF uses a stepped output — one value held per cycle. This matches the per-cycle update rate of the underlying frequency measurement and avoids amplifying noise through differentiation of per-sample estimates.
ROCOF sensitivity
Frequency relays are classified by their function code and operating direction:
Islanding occurs when a distributed generator continues to operate after being disconnected from the grid. ROCOF relays (ANSI device 81R) are one of the primary methods for detecting islanding — when the island forms, the generation-load imbalance causes a rapid frequency change that the ROCOF relay detects.
ROCOF-based anti-islanding is specified in IEEE 1547 for distributed generation interconnection. The ROCOF signal in Detego can be used to assess whether a ROCOF relay should have operated and to measure the actual seen at the relay location.
| Aspect | Frequency | ROCOF |
|---|---|---|
| Measures | System frequency (Hz) | Rate of change (Hz/s) |
| Method | Per-cycle DFT + phase unwrapping | Finite difference of frequency |
| Output | Stepped (one value per cycle) | Stepped (one value per cycle) |
| Channel | Voltage only | Voltage only |
| Use case | 81U/81O protection, frequency trending | Islanding detection, rate-of-change relays |