Moxa MGate 5119 Reads Modbus Data and Communicates with IEC-61850 Master
The test environment topology is as follows:

Use Modsim software to simulate Modbus TCP slave in the computer, and use IED scout software to simulate IEC 61850 master.
The configuration and testing steps are as follows:
I. Set the parameters in the MGate 5119 gateway
1. First, configure the working mode of the product, read the data of the Modbus TCP slave station, and then act as a slave station of IEC 61850

2. Create a command to read the Modbus TCP slave station

3. Create Modbus commands, as shown in the figure below (note that the configured commands have very recognizable names, which are convenient for mapping to IEC 61850 slaves)

4. Next, create an IEC 61850 SCL file

5. The relationship between the corresponding coils and registers is shown in the figure below. Create a value for each and then save the SCL file.

6. Next, map the Modbus commands to the IEC 61850 slaves one by one.
a. First, the instruction read by the coil is mapped to the stVal point

b. Then the read register is mapped to f

c. The written coil is mapped to ctlVal

d. The written register is mapped to ctlVal in origin, as shown in the following figure

e. After completing the mapping of the above Modbus instructions to the IEC 61850 slave, you should see the following mapping results

7. Next, set the IP address of the current IEC 61850 slave station to connect to the 61850 master station

8. After setting, click Submit to submit all the data. In this way, all configuration work of MGate 5119 is completed.
II. 61850 Master Station Software Configuration
1. Open the IEDScout software and click Discover IED

2. Click Search

3. At this time, you can see the IP address of MGate 5119. Click to enter the product, open GGIO1, and drag AnIn1 (read register) and Ind1 (read coil) to the trial display box on the right to view.

4. The corresponding position of the switch value is as shown in the figure below

5. You can enter the status in Value and click Operate to send it to the Modbus terminal.
6. The corresponding position of the write register is as shown in the following figure:

7. You can write a value in Value and click Operate to send it to the Modbus slave station.
III. Communication test
1. Modsim corresponds to the point data changes read by the IEC 61850 slave, and the data changes can be seen in IED Scourt

2. Change the data written in IED Scourt and see the changes in Modsim

Completing the above tests means that MGate 5119 has completed the configuration as an IEC 61850 slave and has successfully achieved communication with the 61850 master.

