Tiza Group

Home / Tools / COMTRADE records

COMTRADE records: viewer and generator

Viewer: open a relay record (.cfg + .dat, or a .cff) and review waves, digitals and RMS with a cursor; the analysis estimates the fault type, the times and the distance. Generator: create a synthetic record for your test set or for an Easergy P5. The files never leave your computer.

IEEE C37.111COMTRADE 1991, 1999 and 2013IEC 60255-24common format for transient data exchangeIEEE C37.114single-ended fault locationIEC 60909-0feeding network, factor c and DC componentIEC 60909-0§ 5.3.2symmetrical components

Example cases
COMTRADE records: viewer and generator

Only the basic data; the rest is taken with typical values.

ALearn

E1Record

Select the .cfg and the .dat together, or a .cff; you can also drag them here. Revisions 1991, 1999 and 2013 in ASCII, BINARY, BINARY32 and FLOAT32.

Your file stays on your computer. It is read by the browser (FileReader); it is not uploaded to any server or stored.

E2Channels shown

Check the channels you want to see in the plot and in the table of values. Each channel has its own vertical scale.

E3Readout
Hz

Taken from the .cfg when the record is opened.

E4Analysis channels

The viewer identifies the channels by name, phase and unit. If it gets one wrong, select the correct channel here or «Do not use».

E5Line data for the distance

Requires the line impedances. Values are converted to primary with the CT and VT ratios.

km
Ω/km
Ω/km
Ω/km
Ω/km
A
A
V
V

With entered ratios, the viewer takes the values in the file as secondary values.

Download the record

Not checked.

G1Fault
%
Ω
Ω

The location is measured from the relay bus. Rff is split as Rff/2 in each faulted phase.

G2System
kV

Phase-to-phase voltage. The pre-fault voltage at the bus is c·Un/√3.

G3Source at the relay bus
MVA
MVA

Leave the single-phase value empty to use Z0 = Z1.

Ω
Ω
Ω
Ω
G4Line
Ω/km
Ω/km
Ω/km
Ω/km
km

G5Pre-fault load
MW
G6Times
ms
ms
ms
ms
ms

The trip is counted from fault inception; the opening, from the trip to contact separation.

G7Instrument transformers
A
A
kV
V
V
Ω
p.u.
G8File

Hz

Defaults to the current time. Written in UTC.

G9Waveform
°

On the fault reference voltage. 0° is its positive-going zero crossing.

ms
G10Noise and test set range
%
A
V

Optional: with the range of your test set, the tool warns if the secondary peak exceeds it.

Use a decimal point. The calculation runs in your browser and updates as you type.

Fundamental RMS at the cursor

—

Instantaneous value

—

Cursor

— ms

Revision and format

—

Sampling

—

Duration

— ms

Fault current

— A

Residual 3I0

— A

Faulted phase voltage

— V

Apparent loop impedance

— Ω

Loop X/R

—

File

— kB

Waveforms
  • Selected channel
  • Other channels
  • Fundamental RMS
  • Trigger (t = 0)
Tap or move the pointer over the plot to move the cursor (solid yellow line); with the plot focused, the arrow keys move it sample by sample. Time in milliseconds from the trigger time in the .cfg. Each channel has its own vertical scale.

Automatic analysis

Fault type

—

Fault inception

— ms

Fault duration

— ms

Relay time

— ms

Breaker time

— ms

Estimated distance

— km

Sequence of events
  • Fault
  • Current through the pole
  • Events
Times in milliseconds from the trigger time in the .cfg. A pole is taken as open when its current stays below 3 % of its peak for at least three quarters of a cycle.
Record waveforms
    Time in milliseconds from fault inception. The yellow lines mark fault inception, the trip, contact separation and the interruption of each pole. It is exactly what is written to the file, without quantization noise.

    Phasor table

    PhasorPre-faultFaultPost-fault

    Fundamental-frequency RMS values. Angles referred to the pre-fault VA at the bus (0°). Sequence quantities are for phase A.

    Phasor diagram
    Each diagram has its own scale. A in magenta, B in white, C in gray and neutral in dashed gray.

    Values at the cursor

    Cursor: —

    ChannelInstantaneousFundamental RMS (1 cycle)

    What the record shows

      Pre-fault and fault phasors

      —

      QuantityPre-faultFault

      Distance, DC component and X/R

        Step by step

        File contents

          What the record shows

            Relay did not operate as expected? We review its settings and correct them remotely.

            What it is for

            Viewer: read a fault record

            To look at a fault record without installing the manufacturer's software: confirm which phase faulted, how much the current rose and the voltage dropped, when the protection picked up and tripped, and how long the breaker took to open. It works in the field on a phone and in the office when preparing an event report.

            The sample record is synthetic, created by our team: a 13.2 kV feeder with a resistive phase-A-to-ground fault. The phase A current rises to about 600 A and the residual to 420 A; the 51N picks up, trips at about 276 ms and the breaker opens three cycles later, each phase interrupting at its own current zero. You can download the .cfg and the .dat to try them in other programs.

            Generator: create a record to test a relay

            A fault record played back on a test set puts the relay in front of a realistic waveform: DC component, voltage phase shift, interruption of each pole at its current zero. With a synthetic record you can test distance or overcurrent protection without waiting for a real fault, repeat the same case as often as needed and change one parameter at a time.

            • Protection testing: distance zone reach, directionality, ground overcurrent with a resistive fault, and trip and blocking logic.
            • Logic and metering: check the trip, the triggering of the relay's oscillography and its phasor measurement against the table on this page.
            • Training: show a crew how currents and voltages change with the fault type, the location or the inception angle.

            The file is generated in your browser and read back with the same reader as the Viewer tab before you download it. With “View in the viewer” you can review the generated record without downloading it.

            Which preset to choose

            The preset sets the revision, the .dat format, the sampling rate, the side (secondary by default) and the digital channels. It is based on what each manufacturer's documentation states; always confirm the version of your software.

            • OMICRON TransPlay (default): revision 1999, BINARY, 80 samples per cycle (4800 Hz at 60 Hz, 4000 Hz at 50 Hz), a single rate, and trip and 52a digitals. According to the OMICRON catalog, basic TransPlay reads COMTRADE C37.111-1991 and 1999; revision 2013, the .cff and multiple rates require Advanced TransPlay.
            • Easergy P5: revision 1999, ASCII, 48 samples per cycle, no digitals, and channels IA, IB, IC, IN, VA, VB and VC. The PowerLogic P5 manual (P5/EN M/02-502A) describes playback of an ASCII COMTRADE file, editions 1999 and 2013, as an internal virtual injection, with the relay in Test or Test-block mode and from eSetup Easergy Pro. It plays back only the analog channels and does not test the input transformers. We recommend records of 2 s or less: the manual does not state the maximum duration it accepts.
            • Universal: revision 1999 in ASCII, 80 samples per cycle. Practically any viewer opens it; it takes about twice the size of the binary file.
            • IEEE 2013: revision 2013, BINARY32 and a single .cff file. Use it only with devices and software that declare support for the 2013 edition.

            Values are in secondary because what is recorded is what gets injected, without relying on the player applying the .cfg ratios, which are written anyway. OMICRON, TransPlay, Easergy and eSetup are trademarks of their owners; the presets only adapt the file to what their documentation states.

            How it is calculated

            Viewer: reading and analysing the record

            IEEE C37.111a, b, primary, secondary and P/S factorsIEC 60255-24

            value = a · x + bsecondary value = primary value · secondary / primary

            x is the number stored in the .dat, and a and b are the channel factors in the .cfg. The channel's P or S flag says whether the result is in primary or secondary values; to convert to the other side, the primary and secondary factors of the same channel are used.

            Time of each sample

            t = Σ 1 / samp, segment by segment, or t = timestamp · timemult

            If the .cfg has sampling rates (nrates ≥ 1 and samp > 0), each sample follows the previous one with the period of the segment the previous one belongs to: with 1000 Hz up to sample 2 and 500 Hz after it, the times are 0, 1, 2 and 4 ms. The standard does not detail that transition and other readers use the new rate; the difference is one sample at the rate change. If the .dat also has timestamps that depart more than half a sample from that base, the viewer warns. If samp = 0, the timestamp in microseconds is used (or in nanoseconds when the date of a 2013 record has nanosecond resolution). Zero on the plot is the trigger time minus the time of the first sample.

            The sampling skew of each analog channel (skew field, in µs) is added to its time axis: the plot and the cursor read each channel at its own sampling instant.

            Fundamental RMS over the last cycle up to the cursor

            x(tk) ≈ a · cos ωτk + b · sin ωτk + cRMS = √(a² + b²) / √2

            It is a least-squares fit over the samples of exactly one period 1/f0, with τk = tk − tcursor. When the sampling rate is an integer multiple of the fundamental (N = fs/f0 samples per cycle), it gives the same result as the one-cycle discrete Fourier transform used in numerical relays, X = (2/N) · Σ x(k) · e−j2πk/N (Phadke and Thorp, Computer Relaying for Power Systems), and it rejects the DC component and the integer harmonics. When it is not (1000 Hz at 60 Hz is 16.67 samples), a DFT with a rounded N would have up to 1 % error and would oscillate; the fit stays exact for a sinusoid with a DC component.

            Automatic analysis: fault inception and fault type

            Δi(t) = i(t) − i(t − T)ΔI = Ifault − Ipre-fault

            The fault starts at the first sample where the current of any phase (or the residual) departs from that of the previous cycle by more than 5 % of its peak, or six times the channel noise, for at least 1/16 cycle; the voltages refine that instant. The pre-fault phasors are computed over the cycle that ends 1/16 cycle before inception, and the fault phasors over the cycle that ends one and a half cycles after it, with a fit that absorbs the DC component. The superimposed current ΔI removes the load: a phase is faulted if its |ΔI| reaches 50 % of the largest one, and ground is involved if 3|ΔI0| exceeds 10 % (criteria of this viewer, not of a standard). For ground faults the angle of I2 relative to I0 is also checked: close to 0° for A-ground and B-C-ground, −120° for B-ground and C-A-ground, and +120° for C-ground and A-B-ground.

            Relay and breaker times

            trelay = ttrip − tinceptiontbreaker = tfirst pole open − ttrip

            The trip is the first rising edge of a digital channel named TRIP, DISPARO, PTRC, 94 or 86 (pickup channels are not used). A pole is open when its current stays below 3 % of its peak for at least three quarters of a cycle; the fault is cleared when all faulted phases are interrupted. If a pole conducts again, the viewer marks a reclose and checks whether the current returns to fault level. If the fault type changes and holds for three quarters of a cycle, it is marked as an evolving fault.

            IEEE C37.114single-ended fault location

            x = Im(V / I) / X1x = Im(V · ΔI*) / Im(Z1 · I · ΔI*)

            The first is the simple reactance method and the second the Takagi method (Takagi et al., IEEE Trans. PAS-101, 1982), with Z1 and X1 per kilometer and ΔI the phase (or phase-to-phase) current minus its pre-fault value. For a ground fault V = VA and I = IA + k0 · 3I0, with k0 = (Z0 − Z1) / (3Z1); for a phase-to-phase fault, with or without ground, V = VB − VC and I = IB − IC; for a three-phase fault the three loops are averaged. These are the loops of the IEEE C37.114 guide as presented by Zimmerman and Costello (SEL, 2004).

            DC component and X/R

            i(t) ≈ Ip · cos(ωt + φ) + D · e−t/τX/R = ω · τ

            It is fitted over the first fault cycles of each faulted phase, searching τ by least squares, like the DC component of IEC 60909-0. If D is below 10 % of the AC peak, the X/R is not reported.

            Missing data

            −32768 in BINARY, −2147483648 in BINARY32, the minimum float −3.4028235 · 1038 (or a non-numeric value) in FLOAT32, an empty field or 99999 (outside the channel range) in ASCII, and the timestamp 0xFFFFFFFF. The viewer leaves those points undrawn, and the RMS of any cycle that includes them is left empty.

            Generator: network, fault and file

            IEC 60909-0impedance of the feeding network

            ZQ = c·Un² / S″kQ · |2Z1 + Z0| = 3·c·Un² / S″k1

            The source is split into R and X with its X/R; Z0 comes from the single-phase power with the X0/R0 angle, and Z2 = Z1. The line is transposed: z1 and z0 per kilometer, multiplied by the length and by the percentage up to the fault. Without load, the pre-fault condition matches the IEC 60909 equivalent source.

            IEC 60909-0§ 5.3.2symmetrical componentsAndersonsequence networks, ch. 10

            AG: IA = 3E / (Z1 + Z2 + Z0 + 3Rf)BC: |IB| = √3·E / |Z1 + Z2 + Rff|ABC: IA = E / (Z1 + Rff/2)BCG: I1 = E / (Z1 + Z2 ∥ (Z0 + 3Rf))

            Z1, Z2 and Z0 are those of the source plus the line up to the fault. The engine solves in the phase domain, with Zs = (Z0 + 2Z1)/3 and Zm = (Z0 − Z1)/3: the faulted phases go to a common point through Rff/2 and that point goes to ground through Rf. The formulas above are the check in symmetrical components. The pre-fault load is a constant current at the remote end, superimposed.

            IEC 60909-0DC component and factor κ

            i(t) = √2·I·cos(ωt + θ − φ) + D·e−t/τ · τ = X / (ω·R) of the loop

            Each phase gets its own offset D = ibefore(t0) − isteady(t0), so that the current is continuous at fault inception and at each pole opening. The inception angle θ is measured on the fault reference voltage. In the engine tests, the simulated peak matches κ = 1.02 + 0.98·e−3R/X from IEC 60909-0 within 1.5 % at X/R = 30.

            Breaker opening and apparent impedance

            tsep = ttrip + topeningZAG = VA / (IA + k0·3I0) · k0 = (Z0L − Z1L) / (3·Z1L) · ZBC = (VB − VC) / (IB − IC)Zsec = Zprim · CTR / VTR

            Each pole opens at its first current zero after contact separation; after the first pole, the network is solved again with that pole open, so a three-phase fault turns into a two-phase one. The 52a contact drops at contact separation. Post-fault currents are zero; a bus-side VT sees the source and a line-side VT reads zero.

            IEEE C37.1111999 and 2013IEC 60255-242013

            value = a·x + b · b = 0 · a = max|y| / 32767 (16 bits) or / 2147483647 (BINARY32)

            FLOAT32 is written with a = 1. The .cfg has a single rate, timemult 1, timestamps in microseconds, CR/LF line endings and ASCII-only names (no accents or commas). Revision 2013 adds the time zone (UTC) and time quality lines, and the .cff combines the CFG, INF, HDR and DAT sections.

            Limits of the calculation

            Viewer

            • The automatic analysis is indicative. Deciding whether a protection operated correctly takes the settings, the relay logic and the system study.
            • Single-ended fault location assumes a homogeneous, well-modeled line. It is shifted by fault resistance combined with load flow (more for the simple reactance than for Takagi), zero-sequence mutual coupling with parallel lines, infeed from the remote end or from taps, a non-homogeneous system, and errors in the CTs, the VTs and the line parameters. Use it to direct the line patrol, not as an exact location.
            • The classification needs one cycle of pre-fault and one and a half cycles of fault. With CT saturation, a large DC component or faults shorter than one cycle, the phasors and the fault type lose accuracy; the viewer says so in the confidence note.
            • Pole opening is detected from the current, not from the 52a contact. In a phase-to-phase fault without ground, the fault current is interrupted by the first faulted pole that opens. A reclose is only visible if the line carries current again.
            • The one-cycle RMS needs a full cycle of data: right after fault inception or a pole opening it shows a transition. If the actual frequency differs from the one you enter, the value has an error, and a decaying DC component is not fully rejected.
            • The normal state of the digitals and the .hdr and .inf files are not used.
            • Very large records, with millions of samples, can be slow to open on a phone.

            Generator

            • Radial network with a single source: the remote end does not contribute current, so there is no infeed and no power flow between two sources. A relay at the remote end or a line fed from both ends needs another model.
            • Fundamental-frequency phasor model with a single time constant: no traveling waves, line capacitance, harmonics or frequency variation. A real network has several time constants.
            • Restrikes, reclosing, trapped charge on the line and the capacitor voltage transformer (CCVT) transient are not modeled.
            • CT saturation is a simplified flux model, with an ideal core up to the saturation flux and a resistive burden, without hysteresis or an actual excitation curve. For studies, use the IEEE PSRC CT saturation calculator or an electromagnetic transients program.
            • The line is transposed and the pre-fault load is a constant current: the natural unbalance of the line does not appear.
            • The record is synthetic: it is meant for testing and training and does not come from any real installation. Check in your software that the played-back magnitudes match the phasor table.

            Frequently asked questions

            How do I open a COMTRADE file without installing software?

            Open this page, tap «Open files» and select the .cfg and the .dat of the same record together, or a single .cff file. The viewer reads the file in your browser and plots the analog and digital signals; the relay manufacturer's software is not needed.

            What is the difference between ASCII and binary COMTRADE?

            Both hold the same samples. In ASCII each sample is a line of comma-separated text; in binary each value takes 2 bytes (BINARY) or 4 bytes (BINARY32 and FLOAT32), so the file is several times smaller. The format is declared in the .cfg, and the viewer reads all four.

            Is it safe to open my substation records here?

            Yes. The file is read with the browser's FileReader API and processed on your computer: the page does not send it to any server or store it. If you close or reload the page, the record is gone.

            How do I create a COMTRADE file to test a relay?

            Define the network (source and line), the fault type and location, and the relay and breaker times. From these, the pre-fault, fault and post-fault currents and voltages are calculated, the DC component of each phase is added, and the .cfg and .dat are written per IEEE C37.111 (IEC 60255-24). This tool does it in your browser and reads the file back to check that it is well formed. The file is then played back with the test set software or, on some relays, with their virtual injection function.

            Which COMTRADE format does OMICRON TransPlay accept?

            According to the OMICRON catalog, TransPlay plays back IEEE COMTRADE C37.111-1991 and P37.111/D11-1999 files. Revision 2013, records with several sampling rates and other formats such as PL4 or CSV require Advanced TransPlay. That is why the preset of this tool uses revision 1999, binary format, a single rate of 80 samples per cycle and secondary values. Confirm the version of your software before the test.

            Can a COMTRADE file be played back on an Easergy P5 relay?

            Yes. According to the PowerLogic P5 manual (P5/EN M/02-502A), virtual injection plays back the analog channels of an ASCII COMTRADE file, edition 1999 or 2013, with the relay in Test or Test-block mode and from eSetup Easergy Pro. It is an injection inside the relay: it checks the logic and the settings, but not the input transformers or the wiring. That requires secondary injection testing with a test set.

            If the setting is wrong, we correct it remotely

            When the record shows a misoperation or a slow trip, we review the relay settings and logic and load the correction remotely, whatever the relay make and model.

            Related guides

            Other tools

            All tools
            WhatsApp