Processing COMTRADE oscillograms using MasterSCADA 4D

Oscillograms are an important tool for monitoring and analyzing electrical systems.
They allow power grid operators and engineers to obtain information about temporal changes in the system, which helps optimize its operation and ensure power supply reliability.

The main standard for oscillograms is the COMTRADEformat. According to this standard, an oscillogram consists of two files – a configuration file (cfg file), containing device parameters and the conditions under which the oscillogram was created, and a data file (dat file), which is a binary or ASCII file with normalized values of each channel's parameters at each measurement time point.


Fast View

Oscillograms obtained from devices need to be processed. Application software must read the .cfg file, determine the recording start time and the fault moment, the list of analyzed channels and their parameters from it, then read the .dat file, convert normalized values to real ones, and display the oscillogram on the screen. Specialized software exists for analysis (both commercial and free). For example, the free program FastView.

1.png


In addition to the graph with analog and discrete parameter values, it also allows building vector, circular, and frequency diagrams.
Furthermore, relay automation devices and power quality analyzers can be used as part of a SCADA system – for continuous collection and processing of data from various sources, in which case integration of oscillograms into the system's general interface is necessary.

Integration into MasterSCADA 4D

MasterSCADA 4D allows easy reading and displaying of oscillogram data on a trend using the new Comtrade function block.

Let's consider displaying oscillogram data (alternating current strength and voltage) on a trend, read from a SATEC device.


FBD Configuration.

Create a new Objec → FBD Program. Then, in the FB library / Protocols, find the ФБ Comtrade and drag it into the previously created FBD. Also, add a window to the same object for displaying the Trend.

2.png

3.png

4.png

Input parameters:
FileName - path to the configuration file (.cfg),
Run - start file reading.

Output parameters:
Begin, End, TriggerPoint - time parameters for reading the archive
Error - errors when reading the file.

Possible errors:
- Failed to open configuration file
- Failed to open data file
- Error in configuration file
- Error in data file
- Error in number of sampling frequencies (>1)

To read data, it is required to add parameters of type LREAL with the same names as the channel names in the .cfg file, in the same object to which the Comtrade FB belongs:

5.png

To display data on the trend, create parameters of type TIME - Interval (initial value 200ms) and DT - End.

6.png

Next, link the Start and End parameters to the Begin and End outputs.

7.png

Then link the parameters

8.png

9.png

Next, specify the path to the file in the FileName parameter in .cfg format.

10.png

Trend Configuration.

Place the Trend control in the previously prepared window, then bind the I1-3, V1-3 parameters created for reading data to it.

11.png

Link the End parameter to the trend's End property.

12.png

Link the Interval property to the Interval parameter, setting the value to 1 second.

13.png

In the trend's property, the Interval is set to 1 second.
The pen graph type is selected as - Line.


Execution.

Run the project in Runtime mode. Stop the Trend, press Start.

14.png

Project link: https://support.mps-soft.ru/Site/Projects/oscillogram.zip

Обсуждение

Log in or register to participate in the discussion.

Thanks! You will be contacted soon.

Write to us
Contact person: 

Request topic 
Message:

Thanks! You will be contacted soon.

Contact manager
Contact person:

Describe the project:

Attach file:

1 pdf/doc/docx file, max 10MB

Thank you for contacting us! The download links have been sent to your email

We invite you to cooperate

Contact person:

Request topic

Message:

Thank you! Your application has been accepted!

Cooperation request
Your cooperation goal with us:
University name:

City:

Education form: 
Contact person:

Thanks! You will be contacted soon.

Send resume
Contact person:

Specify education and specialty:

Short motivation letter: test
Resume file:

1 pdf/doc/docx file, max 10MB
Describe work experience:

Thanks! You will be contacted soon.

Event registration
Contact person:

Thanks! You will be contacted soon.

Get consultation
Contact person:

Describe the project:

<

Thanks! You will be contacted soon.

Start training
Contact person:

Thank you for contacting us! The download links have been sent to your email

Try software

Leave your contact information and we will send you a link and instruction.

You will get access to the demo project.

Contact person:

Comment:

Thank you for contacting us! The download links have been sent to your email

Try software on your model

Leave your contact details - we'll send installation link and instructions.

You can test the software on your information model.

Contact person:

Comment:

Thank you! Your application has been accepted!

Request configuration
Contact person:

<

Number of tags for each MasterOPC copy separated by semicolons (e.g. 500;1000):

Automation object:

Details:

Additional wishes:

Additional documents:

Up to 2 pdf/doc/docx/odt files, max 10MB each

Thank you! Your application has been accepted!

Request configuration
Contact person:

Configuration parameters
Number of external I/O points:
Number of server I/O:
Number of additional clients:
Protocols for lower-level communication:
Operating system in the project:
ToR, block diagram, or other documents:

Up to 2 pdf/doc/docx/odt files, max 10MB each
Additional information:

Thank you! You have successfully registered

Registration is successful

Registration
First name

Field is required

Last name

Field is required

Middle name

Field must not contain digits

Phone

Invalid phone number

E-mail

Invalid email

Company

Field is required

Tax ID (INN)

Password

Field is required

Confirm password

Field is required

Письмо для смены пароля отправлено

Восстановление пароля
E-mail

Invalid email

Вернуться к началу страницы