Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-02132// Views: AA-02132// Created: 2023-02-24 03:03:00// Last Updated: 2023-09-04 08:47:14
HowTo
RT-LAB I/O GUI: How to use IEC 60870-5-104 slave demo to communicate with a simulated master

The IEC 60870-5-104 communication is already prepared in RT-LAB as one of the Communication Protocols, allowing to exchange data over TCP with any industrial devices and SCADA systems to be set according to user needs. More information can be founded in IEC 60870-5-104 Wiki Page

In this case a Slave will be configure and in the end of this KB and example about how to test it with a virtual Master will be presented.

To set the IEC 104 communication on RT-LAB, right click on the I/O Interface and Add New Interface:

Click the communication name and add an I/O Interface:

This will create all the configurations related to IEC 104 communications at the Slave’s folder. At this point adjust the Slave name, the communication protocol and other characteristics.

The IEC 104 slave presents seven different types of data. All of them are initialized with an input and an output that can be changed or excluded during the configurations.

For the inputs it is change the name and the data value, defining the initialization value for the variable.

Specify the simulated Slaves parameters, whose IP will be under the same network of the ethernet port used:

After set all the variables in the IEC 104 communication Slave, connect them to the OpInput/OpOutput blocks by click and drag:


To test the IEC 104 communication it is recommended to download the IEC 60870-5-104 Client Master Simulator, which is a free application available at https://sourceforge.net/projects/iec-104-client-simulator/  (This application is free and each time it is opened, it gives 15 minutes to use it, after that it will closes and it could be reopened).

Open the Client IEC 104 Simulator. Click on Add Client.

It will create some tabs in the top. Go to IEC_104_CLIENT_1 tab and enter the IP address of your simulator. Use the same IP Address that was configured on RT-LAB to run the model in the target.

Before start the communication, start the simulation in RT-LAB. Go to Data_Objects_1 tab and click Start Communication. It will create a list of all the channels available in the communication.

To find the values of the variables that were set, search the IOA address following the corresponding data address on the I/O Interface Configuration from RT-LAB.

To send value from Master to Slave, in the client simulator right click to select "point command"