COMTRADE Format

COMTRADE is often used in relay disturbance records, fault investigations, oscillography, relay testing, and post-fault analysis, but engineers don’t always understand how the file is structured or why different COMTRADE versions have different file arrangements.

File Structure, Data Encoding, Standard Versions, Time Synchronization, and Disturbance Analysis

1. Introduction

COMTRADE stands for Common Format for Transient Data Exchange. It is a standardized file format used to exchange recorded electrical signals and event data from power systems.

COMTRADE files are commonly generated by:

  • Protection relays and Intelligent Electronic Devices (IEDs)
  • Digital Fault Recorders (DFRs)
  • Power quality analyzers
  • Substation automation systems
  • Transient recording systems
  • Protection relay test equipment
  • Power system simulation software

The purpose of COMTRADE is to allow disturbance records produced by one manufacturer’s equipment to be analyzed using software from another manufacturer, without requiring proprietary data formats.

For example, during a fault on a transmission line, a protection relay may record:

  • Three-phase currents
  • Three-phase voltages
  • Residual current
  • Distance protection operating signals
  • Line differential protection signals
  • Breaker trip commands
  • Breaker auxiliary contacts
  • Protection element pickup signals
  • Reclosing signals
  • Fault detection and trip timestamps

These recorded quantities can be exported as COMTRADE files and analyzed later to investigate fault conditions, relay operation, breaker performance, and system behavior.

COMTRADE is particularly important in modern protection engineering because it allows engineers to reconstruct what happened before, during, and after a power system disturbance.

2. COMTRADE standards and their evolution

The COMTRADE format has evolved through several revisions. The major revisions encountered in practical engineering are 1991, 1999, and 2013.

As Fascinantes Oscilografias em Relés de Proteção
SEPAM T40 - Função ANSI 50BF

2.1 IEEE C37.111-1991

The original COMTRADE standard was published in 1991.

It established a common method for exchanging transient data between power system recording devices and analysis systems.

The original version introduced the fundamental concept of separating:

  • Configuration information
  • Sampled data
  • Descriptive information

The configuration file describes the recorded channels and how the data should be interpreted, while the data file contains the actual sampled values.

The 1991 format is relatively simple compared with later versions, but it remains relevant when working with older digital fault recorders, historical disturbance records, or legacy software.

2.2 IEEE C37.111-1999

The 1999 revision expanded and clarified the format, introducing additional information necessary for more reliable data exchange.

Important enhancements included:

  • Explicit revision identification in the configuration file
  • Analog channel scaling and conversion information
  • CT and VT primary/secondary information
  • Additional digital channel information
  • Timestamp multiplication factor
  • Improvements in data file encoding
  • Additional metadata support through the INF file
  • Improved support for different recording and sampling arrangements

The 1999 revision became widely used in protection and disturbance recording applications.

2.3 IEEE C37.111-2013 / IEC 60255-24:2013

The 2013 revision introduced several important enhancements to improve interoperability and timestamp handling.

The major additions included:

  • Additional time-related information
  • Time zone and time-quality information
  • New binary data representations
  • 32-bit integer binary data support
  • 32-bit floating-point data support
  • Combined File Format (CFF)
  • Improved handling of time synchronization and data interpretation

This revision is jointly associated with IEEE C37.111-2013 and IEC 60255-24:2013.

The 2013 revision is especially important when analyzing modern disturbance records that require more precise timing, enhanced data encoding, and improved interoperability.

REFERENCE: IEEE C37.111 / IEC 60255-24

3. COMTRADE file structure

A traditional COMTRADE record consists of several files sharing the same base filename.

For example, a disturbance record may contain:

Example disturbance record

FAULT_001.cfg / Configuration file — channel definitions, sampling, scaling and time information

FAULT_001.dat / Data file — actual sampled analog and digital values

FAULT_001.hdr / Header file — optional descriptive text for engineers

FAULT_001.inf / Information file — optional supplementary metadata

The files are not independent. They work together as a single disturbance-record dataset.

The most important files for interpreting a record are the .CFG and .DAT files.

3.1 Configuration file (.CFG)

The configuration file is the main descriptive file of the COMTRADE record. It normally contains:

  • Station name
  • Recording device identification
  • COMTRADE revision
  • Total number of channels
  • Analog channel count
  • Digital channel count
  • Channel identifiers
  • Channel descriptions
  • Phase identification
  • Circuit identification
  • Units
  • Scaling coefficients
  • Analog channel offset
  • Channel skew
  • Channel minimum and maximum
  • Primary and secondary ratios
  • Nominal system frequency
  • Sampling rates
  • Number of samples
  • Start timestamp
  • Trigger timestamp
  • Data encoding type
  • Time multiplier
  • Time quality and synchronization information in supported versions

The CFG file is usually plain text and can be opened using Notepad or another text editor.

However, engineers should not assume that opening a CFG file is sufficient to interpret the record. The actual waveform values are stored in the DAT file, and their correct interpretation depends on the information in the CFG file.

3.2 Data file (.DAT)

The DAT file contains the sampled data recorded during the disturbance. Depending on the selected data format, it may be stored as:

  • ASCII
  • BINARY
  • BINARY32
  • FLOAT32

The DAT file may contain thousands or millions of sample values depending on the number of channels, sampling rate, and recording duration.

For each sample instant, the record contains information associated with the sample number, timestamp, analog channels, and digital channels.

The DAT file must be interpreted together with its CFG file.

3.3 Header file (.HDR)

The HDR file is an optional text file intended for descriptive information.

It may contain details such as:

  • Substation name
  • Bay name
  • Equipment identification
  • Fault description
  • Recording conditions
  • Engineering notes
  • Additional information about the event

The HDR file is mainly intended for human-readable information rather than the core machine interpretation of the waveform.

3.4 Information file (.INF)

The INF file is an optional supplementary information file introduced in the 1999 revision.

It can contain additional structured information that may be relevant to the recording device or analysis application.

Its contents depend on the equipment and implementation. It is not normally the primary source of waveform sample data.

How to Read a Binary COMTRADE Data File | Community
Solved: How to Read a Binary  COMTRADE Data File - PTC Community

4. Understanding the differences between COMTRADE versions

One of the most important things for engineers is recognizing which COMTRADE revision they are dealing with.

Although the purpose of the format remains the same, the internal structure of the configuration file, supported data types, metadata, and timing information have changed.

4.1 Version comparison table

Feature199119992013
Revision identificationNo explicit revision field on first lineRevision specifiedRevision specified
CFG formatBasic structureExpandedFurther expanded
Analog channel definitionsBasicEnhancedEnhanced
CT/VT ratio informationNot supported in the same mannerAddedSupported
Analog channel skewLimited legacy structureSupportedSupported
Digital channel descriptionsBasicExpandedExpanded
INF fileNot defined in original revisionIntroducedSupported
ASCII DATSupportedSupportedSupported
Binary DATLegacy binary formatSupportedSupported
BINARY32Not supportedNot supportedSupported
FLOAT32Not supportedNot supportedSupported
Time multiplier—IntroducedSupported
Time zone / time-code informationNot availableNot availableAdded
Time quality informationNot availableNot availableAdded
CFF single-file formatNot supportedNot supportedIntroduced
Primary/secondary conversion metadataBasic legacy structureAddedSupported

Summary of major changes. Specific supported fields and encodings must be interpreted according to the actual revision and implementation.

The main difference is not merely the filename extension. The later revisions contain additional fields that affect how the data is interpreted, converted, and synchronized.

5. How to identify the COMTRADE version

The easiest method is to open the CFG file using a text editor and inspect its first line.

Example: COMTRADE 1991

First line

STATION_A,RECORDER_01

The first line does not include a revision year, which is characteristic of the original 1991 format.

Example: COMTRADE 1999

STATION_A,RECORDER_01,1999

Example: COMTRADE 2013

STATION_A,RECORDER_01,2013

The revision identifier is a useful initial clue, but engineers should continue reading the configuration file to confirm the data type, channel definitions, and other fields.

Engineering note

Some software and equipment may identify or implement legacy variants differently. A file should not be classified only from its extension or from an assumed manufacturer’s convention. Check its internal configuration fields and validate the actual structure.

6. Anatomy of the COMTRADE configuration file

The CFG file is the most important file to understand when interpreting a COMTRADE dataset.

Its information is organized in a predefined sequence. The order of the lines is important because a software parser reads the file according to the structure defined by the standard.

The following is a simplified example of the structure.

Station_Name,Recorder_ID,2013 6,3A,3D 1,IA, A, BAY1, A, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 2,IB, B, BAY1, A, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 3,IC, C, BAY1, A, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 4,VA, A, BAY1, V, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 5,VB, B, BAY1, V, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 6,VC, C, BAY1, V, 1.0, 0.0, 0, -1000, 1000, 1000, 1, S 1,TRIP, A, BAY1 2,CB_OPEN, A, BAY1 3,CB_CLOSE, A, BAY1 50 1 10000,10000 2026/11/27,18:30:00.000000 2026/11/27,18:30:00.100000 ASCII 1 UTC,0

Illustrative example only — not a complete valid CFG for all COMTRADE revisions or equipment implementations.

The following sections explain the main blocks.

6.1 Station name and recorder identification

Station_Name,Recorder_ID,2013

This line identifies the station and the recording device and may contain the revision identifier.

FieldMeaning
Station_NameName of the substation, station, or recording location
Recorder_IDRecording device or recorder identification
RevisionApplicable COMTRADE revision, when specified

6.2 Total channel count

6,3A,3D

This line indicates the number of channels in the dataset.

ParameterMeaning
6Total channels
3AThree analog channels? No — here it means three analog channels
3DThree digital channels

The total channel count is the sum of the analog and digital channels.

In this example:

  • Analog channels = 3
  • Digital channels = 3
  • Total channels = 6

Note: This example is intended to demonstrate the counting format. The actual channel descriptions in a CFG must agree with the declared counts. In the sample above, the six analog definitions would therefore need to be reduced to three to make the file internally consistent.

6.3 Analog channel definition

Each analog channel is described using a record containing channel identification, phase, circuit information, units, scaling, offset, skew, limits, and ratio information, depending on the revision.

A simplified channel record:

1,IA,A,BAY1,A,1.0,0.0,0,-1000,1000,1000,1,S

ParameterDescription
1Channel index / sequence
IAChannel identifier
APhase identifier
BAY1Circuit or monitored equipment identifier
AMeasurement unit
1.0Scaling coefficient
0.0Offset
0Channel skew
-1000Minimum value
1000Maximum value
1000Primary ratio
1Secondary ratio
SPrimary/secondary scaling flag

The exact field interpretation and availability depend on the revision.

6.4 Digital channel definition

Digital channels represent binary or logical states rather than continuous measurements.

Example:

1,TRIP,A,BAY1

Possible digital signals in a protection system include:

  • Relay trip output
  • Breaker open status
  • Breaker closed status
  • Protection element pickup
  • Protection element operation
  • Reclosing active
  • Reclosing blocked
  • Teleprotection received
  • Circuit breaker failure initiation
  • Circuit breaker failure trip
  • Interlocking permissive
  • VT fuse failure alarm
  • Protection scheme enabled

Digital channels are extremely useful during fault analysis because they allow engineers to correlate analog waveforms with the operation of protection functions and primary equipment.

7. Analog channel scaling: why raw data may not be the actual current or voltage

One of the most common mistakes in COMTRADE analysis is reading the values stored in the DAT file as if they were already the final engineering values.

In many COMTRADE formats, analog samples are stored as digital numbers (raw values). The CFG file contains the information required to convert these raw values into engineering quantities.

The general conversion equation is:

X=a⋅n+bX=a⋅n+b

Where:

  • XX = converted engineering value
  • nn = raw sample value
  • aa = scaling coefficient
  • bb = offset

For example, assume an analog channel has:

a=0.1,b=0a=0.1,b=0

and the recorded raw sample is:

n=250n=250

Then:

X=0.1×250+0=25X=0.1×250+0=25

The engineering value is 25 in the declared channel units, subject to any CT/VT ratio interpretation and primary/secondary selection.

7.1 Why scaling matters in protection analysis

Consider a recorded current waveform:

  • Raw data = 1500
  • Scaling factor = 0.01

The converted value is:

I=1500×0.01=15I=1500×0.01=15

If the analyst mistakenly interprets the raw number as 1500 A, the fault-current calculation will be incorrect by a factor of 100.

This can cause major errors in:

  • Fault current calculations
  • Relay pickup verification
  • Differential current calculations
  • Impedance calculations
  • Distance protection analysis
  • CT saturation analysis
  • Protection coordination studies

Always verify the scaling coefficients and channel units before analyzing the waveform.

8. Analog channel information in more detail

The analog channel section is particularly important because different COMTRADE revisions provide different levels of measurement and conversion information.

8.1 Channel identifier

The channel identifier is the name of the recorded signal.

Examples:

Channel nameTypical meaning
IAPhase A current
IBPhase B current
ICPhase C current
INNeutral current
IGGround current
VAPhase A voltage
VBPhase B voltage
VCPhase C voltage
VABPhase-to-phase voltage
VBCPhase-to-phase voltage
VCAPhase-to-phase voltage
3I0Residual current
3V0Residual voltage

Channel names are determined by the recording device configuration. They are not always standardized across manufacturers, so the engineer should not rely only on the channel name.

8.2 Phase identification

Phase information may identify the phase associated with the channel, such as:

  • A
  • B
  • C
  • N
  • Other applicable identifiers

This allows software to group and display the corresponding phase quantities.

8.3 Circuit identification

The circuit field may identify the monitored equipment or circuit.

Examples:

  • LINE1
  • TRANSFORMER1
  • BUS1
  • FEEDER05
  • GENERATOR1

This information is particularly useful in multi-bay or multi-equipment disturbance records.

8.4 Units

Analog channels can use different units depending on the recorded quantity.

Typical units include:

QuantityUnit
CurrentA
VoltageV
FrequencyHz
Active powerW
Reactive powervar
Temperature°C
Other analog measurementsEquipment-defined

Correct interpretation of the units is essential when comparing waveforms or performing engineering calculations.

9. Digital channel data and status interpretation

Unlike analog channels, digital channels have discrete states.

A digital channel generally represents a binary state, commonly interpreted as 0 or 1.

For example:

SampleTrip signalCB closedCB open
1010
2010
3110
4101

The table illustrates how digital signals can help reconstruct the sequence of protection and breaker operations.

A Importância da Correta Interpretação de Oscilografias na Análise de Faltas em Sistemas Elétricos
Welcome to Softstuf.com - Automation & Process Control

9.1 Digital channels in a disturbance record

A typical line protection disturbance record may contain:

  • Distance protection start
  • Zone 1 pickup
  • Zone 2 pickup
  • Trip command
  • Breaker trip coil energized
  • Breaker open indication
  • Auto-reclose start
  • Auto-reclose command
  • Auto-reclose success
  • Teleprotection send
  • Teleprotection receive
  • Carrier channel failure
  • Breaker failure initiation
  • Breaker failure operation

These signals allow engineers to understand the relay’s decision-making sequence and determine whether the protection scheme operated correctly.

9.2 Digital channels are not always self-explanatory

Engineers must be careful because:

  • The signal name may be vendor-specific.
  • A logical 1 may mean asserted, active, or another defined state.
  • Some signals may be inverted.
  • Contact status may be wired as normally open or normally closed.
  • The channel may represent an internal relay logic state rather than an actual physical contact.
  • The recording may include filtering or signal delay.

Therefore, digital channels should be interpreted using the relay logic, wiring diagrams, and recorder documentation whenever possible.

10. COMTRADE DAT file formats

The DAT file contains the actual recorded samples. One important difference between COMTRADE revisions is the supported data representation.

Power System Monitoring - DIgSILENT
Erdschluss Mittelspannung
Field Experience With Traveling-Wave Protection and Fault Locating

10.1 ASCII format

In ASCII format, the data is stored as readable text.

Example:

1,0,120,230,225,1,0,1 2,100,125,235,228,1,0,1 3,200,130,240,232,1,1,1 4,300,135,245,236,0,1,1

A simplified representation of the fields is:

ColumnDescription
1Sample number
2Sample timestamp
3 onwardsAnalog channel samples followed by digital states

The example is illustrative, not a complete dataset. The number of values and their interpretation depend on the channel counts and DAT format specified in the CFG.

Advantages of ASCII:

  • Easy to open in a text editor
  • Easy to inspect manually
  • Convenient for troubleshooting
  • Easy to convert into CSV or other formats
  • Useful for educational demonstrations

Disadvantages:

  • Larger file size
  • Slower to load for large datasets
  • More storage and processing overhead
  • Less efficient for high-speed recording

10.2 BINARY format

Binary format stores data in a compact representation rather than as text.

Advantages include:

  • Smaller file size
  • Faster reading in suitable software
  • Better efficiency for large disturbance records
  • Reduced storage requirements

The disadvantage is that the file cannot be interpreted directly using a normal text editor.

The binary data must be decoded according to the COMTRADE standard and the file type declared in the CFG.

10.3 BINARY32 format

The 2013 revision supports BINARY32, a 32-bit integer data representation.

Compared with the older binary representation, this allows a wider range of integer values to be represented, which can be useful where higher-resolution or wider-range recording is required.

10.4 FLOAT32 format

FLOAT32 stores analog values using 32-bit floating-point representation.

This allows samples to be represented directly as floating-point values rather than relying only on integer samples with scaling coefficients.

This is useful in applications where:

  • Data is generated by simulation software
  • The recording system uses floating-point measurements
  • Values may include fractional quantities
  • Conversion from integer raw values is not desirable

Important: BINARY32 and FLOAT32 are different. BINARY32 uses 32-bit integer samples, while FLOAT32 uses 32-bit floating-point samples. A parser must not treat these two data types as interchangeable.

10.5 DAT encoding comparison

FormatSample representationMain characteristic
ASCIIText numbersReadable, larger files
BINARYLegacy integer binaryCompact, efficient
BINARY3232-bit integer binaryWider integer representation
FLOAT3232-bit floating-pointFractional real-valued samples

The availability of a specific data encoding depends on the COMTRADE revision and implementation.

11. Sampling rate and sample timestamps

Sampling information is one of the most critical parts of a disturbance record.

A waveform cannot be analyzed correctly without understanding the relationship between the samples and time.

11.1 What is sampling rate?

Sampling rate represents the number of samples captured per second.

For example:

Sampling rateSampling interval
1,000 samples/s1 ms
2,000 samples/s500 µs
4,000 samples/s250 µs
10,000 samples/s100 µs
20,000 samples/s50 µs

The relationship is:

Ts=1fsTs​=fs​1​

Where:

  • TsTs​ = sampling interval
  • fsfs​ = sampling frequency

11.2 Example: 4 kHz sampling

If a recorder samples at 4,000 samples per second:

Ts=14000=0.00025 sTs​=40001​=0.00025 s

Therefore:

Ts=250 μsTs​=250 μs

If the record contains 4,000 samples, the duration represented by 4,000 sampling intervals is approximately one second.

11.3 Multiple sampling rates

COMTRADE supports records that may contain multiple sampling-rate sections.

This is important when recording devices use different sampling arrangements or rates across a recording.

For example, a record may have:

SectionSampling rateNumber of samples
Section 11,000 Hz2,000
Section 24,000 Hz8,000

A reader must correctly interpret the sampling-rate information and the sample counts associated with each section.

Incorrect interpretation of multiple rates can result in:

  • Incorrect waveform duration
  • Incorrect time axis
  • Distorted waveform display
  • Incorrect frequency analysis
  • Incorrect calculation of operating times

11.4 Sample number versus timestamp

The sample number is an index that identifies the sample sequence.

The timestamp identifies the time associated with the sample.

These are not interchangeable.

A sample number alone cannot establish absolute time unless the sampling interval and time reference are known.

12. Time information in COMTRADE files

Time information is essential for analyzing power system disturbances. A COMTRADE file may contain both the start time of the record and the trigger time.

12.1 Start time

The start time indicates when the recording began.

The record may include pre-fault samples before the disturbance. This is essential because engineers need to observe the normal operating condition before the fault.

12.2 Trigger time

The trigger time indicates when the recording system triggered the disturbance record.

The trigger is not necessarily the exact instant of fault inception. Depending on the recorder settings, it may be associated with a threshold crossing, protection operation, digital event, or other recording trigger condition.

12.3 Pre-trigger and post-trigger data

A disturbance record typically contains both pre-trigger and post-trigger data.

Relay performance verification using fault event records | Protection and Control of Modern Power Systems | Springer Nature Link
Field Experience With Traveling-Wave Protection and Fault Locating | Schweitzer Engineering Laboratories
PeriodEngineering purpose
Pre-faultDetermine normal system conditions
Fault inceptionObserve transient response and fault initiation
During faultAnalyze current, voltage, and protection behavior
Protection operationIdentify relay trip and output timing
Breaker operationAnalyze interruption and current extinction
Post-faultConfirm recovery, reclosing, or abnormal conditions

The pre-fault portion is particularly useful for calculating load current, voltage, power, and system operating conditions before the fault.

13. Why the 2013 revision improved time information

Older COMTRADE records may provide timestamps without sufficient information to consistently interpret the time reference and synchronization quality across different recording systems.

The 2013 revision introduced additional fields for time-code information, local time offset, time quality, and leap-second information.

These fields help improve the interpretation of timestamps, especially when records from different IEDs or substations must be compared.

13.1 Time zone

Time zone information helps determine whether a timestamp is expressed relative to UTC or local time and how the time offset should be interpreted.

Without appropriate time-zone information, engineers may see different timestamps for the same physical event when comparing records from different devices.

13.2 Time quality

Time quality information provides additional context about the quality or status of the recorded time reference.

It is particularly relevant when comparing events recorded by:

  • Different protection relays
  • Different disturbance recorders
  • Different substations
  • GPS-synchronized equipment
  • PTP-synchronized systems
  • Systems using different time sources

13.3 Time synchronization and fault investigation

Imagine that a fault occurs on a transmission line connected to two substations.

Substation A records:

  • Phase A current increase
  • Distance protection Zone 1 pickup
  • Trip command
  • Breaker opening

Substation B records:

  • Phase A current increase
  • Remote protection operation
  • Teleprotection received
  • Breaker opening

To investigate the event, the engineer needs to compare the timestamps of both records.

If the recording systems are not properly synchronized, it may be difficult to determine:

  • Which protection operated first
  • Whether teleprotection was received before the local trip
  • The actual sequence of breaker operations
  • The time difference between remote and local events
  • Whether the protection system behaved as expected

COMTRADE timestamps alone do not guarantee accurate synchronization. The actual quality of the time source and the recorder implementation must also be evaluated.

14. COMTRADE Combined File Format (CFF)

One of the important additions in the 2013 revision is the Combined File Format, with the .CFF extension.

Traditional COMTRADE records use separate files, such as:

  • CFG
  • DAT
  • HDR
  • INF

The CFF format combines the contents of the applicable sections into one file.

14.1 Traditional file arrangement

FAULT_001.cfg FAULT_001.dat FAULT_001.hdr FAULT_001.inf

The files are stored separately but share the same base name.

14.2 Combined file arrangement

FAULT_001.cff

The CFF file contains the relevant sections of information corresponding to the traditional files.

The section structure uses identifiers and separators to distinguish the embedded information. The DAT section can use ASCII or an applicable binary encoding.

14.3 Advantages of CFF

  • Simplified file management
  • Easier sharing of a complete record as one file
  • Reduced risk of losing an associated CFG or DAT file
  • Convenient transfer through email or document systems
  • Easier organization of disturbance records
  • Less chance of mismatched filenames

14.4 Limitations

  • Older software may not support CFF.
  • A CFF file cannot be assumed to be a normal text file throughout.
  • The embedded binary data still requires proper decoding.
  • Compatibility depends on the software supporting the relevant COMTRADE revision and encoding.

The CFF format does not replace the traditional separate-file arrangement in all systems. Both approaches remain encountered in practical engineering.

15. How a COMTRADE reader interprets the files

A COMTRADE analysis application does not simply open a waveform file and plot the numbers. It must first decode the dataset.

The process can be summarized as follows:

1. Load the COMTRADE datasetCFG + DAT or CFF

2. Identify the COMTRADE revision1991, 1999, or 2013

3. Read the channel configurationAnalog and digital channels, scaling, units and ratios

4. Decode the DAT formatASCII, BINARY, BINARY32, or FLOAT32

5. Convert samples and construct the time axisScaling, offsets, sample rates and timestamps

6. Display and analyze the recordWaveforms, digital signals, phasors and event timing

15.1 Typical waveform processing

The software generally performs the following operations:

  1. Read the CFG file.
  2. Identify the number of analog and digital channels.
  3. Determine the data encoding declared in the configuration.
  4. Read the DAT file using the appropriate decoder.
  5. Unpack the analog and digital sample values.
  6. Apply analog conversion information where applicable.
  7. Construct the sample time axis.
  8. Interpret timestamp and synchronization information.
  9. Display waveforms and digital states.
  10. Provide tools for waveform analysis, calculations, and exporting.

A mistake in any of these steps can result in an incorrect waveform or incorrect engineering conclusions.

16. Practical example: analyzing a COMTRADE record from a line protection relay

Assume that a transmission line protection relay records the following channels during a fault:

ChannelTypeDescription
IAAnalogPhase A current
IBAnalogPhase B current
ICAnalogPhase C current
VAAnalogPhase A voltage
VBAnalogPhase B voltage
VCAnalogPhase C voltage
DIST_STARTDigitalDistance protection start
Z1_TRIPDigitalZone 1 trip
CB_OPENDigitalBreaker open indication

The engineer receives the COMTRADE files after the event.

Step 1 — Verify the file set

Confirm that the CFG and DAT files are present and correspond to the same record. If a CFF is provided, confirm that the analysis software supports it.

Step 2 — Identify the revision

Check the configuration file for the declared revision.

This is important because the file’s structure and supported data types may differ between revisions.

Step 3 — Verify channel names and units

Confirm that:

  • IA, IB, and IC are current channels.
  • VA, VB, and VC are voltage channels.
  • Digital channels correspond to the expected protection signals.
  • The units and conversion factors are correct.

Step 4 — Verify the time axis

Confirm:

  • Sampling frequency
  • Number of samples
  • Start timestamp
  • Trigger timestamp
  • Time multiplier where applicable
  • Any additional time-quality information

Step 5 — Plot analog waveforms

Display the three-phase current and voltage waveforms.

Look for:

  • Fault inception
  • Current increase
  • Voltage depression
  • Phase involvement
  • Ground fault indications
  • DC offset
  • Current asymmetry
  • Fault clearing
  • Post-fault recovery

Step 6 — Compare digital signals

Correlate the analog waveforms with:

  • Distance protection start
  • Zone 1 trip
  • Trip output
  • Breaker opening

Step 7 — Evaluate the operation

Determine whether the recorded sequence is consistent with the protection philosophy and expected operating times.

This example illustrates how COMTRADE is used as an engineering tool rather than simply a file format.

17. COMTRADE and protection relay testing

COMTRADE is also widely used during relay testing and commissioning.

An engineer may export a fault record from a simulation, convert or prepare it in a suitable waveform format, and replay the waveforms through a relay test set.

A typical workflow is:

  1. Obtain or create a COMTRADE disturbance record.
  2. Verify the channel scaling and units.
  3. Confirm the time axis and sampling arrangement.
  4. Check the waveform and digital states.
  5. Import the file into compatible relay test software.
  6. Assign the current and voltage channels to test-set outputs.
  7. Configure the test-set output magnitudes, phase relationships, and replay behavior as supported by the software.
  8. Replay the waveform into the protection relay.
  9. Observe protection element response.
  10. Compare the relay response with the expected operation.

This application is particularly useful for:

  • Distance protection testing
  • Differential protection testing
  • Overcurrent protection testing
  • Power swing and out-of-step analysis
  • Fault waveform replay
  • Protection logic testing
  • End-to-end protection investigations
  • Post-fault reproduction and troubleshooting

The replay process depends on the capabilities of the test equipment and the selected test software. Not every COMTRADE record can be replayed directly without conversion, channel mapping, or validation.

18. Common COMTRADE problems and mistakes

COMTRADE records may contain errors, inconsistencies, or implementation differences that make analysis difficult.

18.1 Missing files

A traditional COMTRADE record may be incomplete if its CFG or DAT file is missing.

Without the CFG file, the engineer may not have the required information to correctly decode and interpret the DAT samples.

18.2 Incorrect channel scaling

The waveform may look reasonable but have incorrect magnitudes because:

  • Scaling coefficient is incorrect
  • Offset is incorrect
  • Primary/secondary interpretation is wrong
  • CT or VT ratio has been applied twice
  • The channel unit is misunderstood

18.3 Incorrect sampling-rate interpretation

A wrong sampling rate can make the waveform appear stretched or compressed along the time axis.

This can affect:

  • Frequency calculations
  • Fault duration
  • Relay operating time
  • Transient analysis
  • Sequence-of-events investigation

18.4 Incorrect timestamp interpretation

Time-related problems may occur because of:

  • Unsynchronized clocks
  • Incorrect time zone interpretation
  • Different time sources
  • Incorrect local/UTC conversion
  • Time-quality information being ignored
  • Incorrect handling of timestamp multipliers

18.5 Unsupported COMTRADE revision

Some older applications may not support all features of the 2013 revision.

For example, a software package may support legacy integer binary data but may not support FLOAT32, BINARY32, or CFF.

18.6 Inconsistent CFG and DAT files

The CFG and DAT files may not belong to the same record.

Possible consequences include:

  • Wrong channel values
  • Incorrect channel count
  • Unexpected sample count
  • Invalid timestamps
  • Parsing errors
  • Misleading waveform display

18.7 Incorrect digital signal interpretation

A digital channel may be interpreted incorrectly because of:

  • Inverted logic
  • Normally closed contacts
  • Incorrect signal naming
  • Incorrect wiring
  • Internal relay logic versus external contact status

Engineers should always validate important signals against the protection logic and circuit diagrams.

19. COMTRADE format selection: ASCII or Binary?

When exporting a disturbance record, the choice of data format may depend on the intended application.

RequirementRecommended consideration
Manually inspect file contentsASCII
Share with engineers for troubleshootingASCII may be convenient
Large disturbance recordsBinary may be more efficient
High-resolution modern recordingsConsider supported 2013 formats
Floating-point simulation dataFLOAT32, if supported
Legacy analysis softwareVerify compatibility first
File transfer and record archivingValidate the complete dataset
Test-set waveform replayConfirm import and channel compatibility

There is no universally best option for every application. The most important considerations are interoperability, data integrity, supported revisions, and the requirements of the receiving software.

20. COMTRADE files in modern substation engineering

COMTRADE remains an important engineering format across several areas.

Fault analysisAnalyze fault currents, voltages and fault clearance.

Relay testingReplay recorded waveforms into protection devices.

CommissioningVerify protection behavior and signal timing.

Disturbance investigationReconstruct events and identify abnormal behavior.

COMTRADE files help engineers exchange information between different manufacturers, software platforms, and engineering teams.

This is particularly valuable in multi-vendor substations where protection relays, fault recorders, test systems, and analysis tools may come from different suppliers.

21. Engineering checklist for COMTRADE analysis

Before starting a disturbance investigation, use this checklist.

COMTRADE record verificationConfirm CFG and DAT files belong to the same recordIdentify the COMTRADE revisionConfirm the data encoding typeVerify analog and digital channel countsCheck channel names and descriptionsVerify channel units and scaling coefficientsConfirm CT/VT primary and secondary interpretationCheck sampling rate and sample countVerify start time and trigger timeReview time multiplier and synchronization informationConfirm digital channel polarity and meaningValidate waveform magnitudes before calculationsCheck compatibility with the analysis softwareDocument any assumptions or data inconsistencies

22. Recommended software for COMTRADE analysis

COMTRADE files can be analyzed using different engineering software packages, depending on the application.

Common software and tools

  • SIGRA — analysis of fault records and disturbance waveforms.
  • OMICRON Test Universe — relay testing and disturbance replay with supported test equipment.
  • OMICRON TransView — disturbance record analysis and visualization.
  • Wavewin — oscillography and power system fault analysis.
  • MATLAB — customized signal processing and waveform analysis.
  • Python-based COMTRADE parsers — automated data extraction, conversion, and analysis.

The software selected should be capable of interpreting the required COMTRADE revision and data encoding correctly.

23. Summary: what every protection engineer should know about COMTRADE

COMTRADE is more than a waveform file. It is a standardized structure that combines configuration information, sampled data, timing information, and optional descriptive metadata.

An engineer working with disturbance records should understand the following:

  • COMTRADE is used to exchange transient and disturbance data between power system devices and engineering software.
  • The traditional dataset consists primarily of a CFG file and a DAT file, with optional HDR and INF files.
  • The CFG file defines how the data should be interpreted.
  • The DAT file contains the actual sampled data.
  • Analog samples may require scaling and conversion.
  • Digital channels represent recorded logical states.
  • COMTRADE has several revisions, most notably 1991, 1999, and 2013.
  • The 2013 revision introduced important enhancements, including additional time information, new data encodings, and CFF.
  • ASCII and binary files are not interchangeable without a decoder.
  • Sampling rate, sample timestamps, and synchronization are critical to correct analysis.
  • COMTRADE records are essential for protection testing, fault analysis, commissioning, and event investigation.

A protection engineer who understands the COMTRADE structure can more effectively investigate relay operations, validate recorded data, replay disturbance waveforms, and perform accurate post-fault analysis.

24. References and further reading

25. Elec-Engg: Practical training and technical resources

Understanding the COMTRADE format is an essential skill for engineers working in power system protection, relay testing, commissioning, fault analysis, and substation automation.

At Elec-Engg, our technical resources and training programs focus on practical engineering knowledge, helping engineers understand not only how to operate engineering software, but also how to interpret real data, analyze protection behavior, and troubleshoot power system problems.

Explore our technical materials, training courses, and engineering resources:

Elec-Engg — Practical Power System Protection & Substation Automation Training Visit Elec-Engg.com

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top