A Realization Method of Protocol Conversion Betwee
A Realization Method of Protocol Conversion Betwee
Received 2013
ABSTRACT
In order to adapt to the construction needs of the smart grid, smart substation need to solve the problem of protocol
conversion between the conventional non-standardized condition monitoring equipment and the standardized monitor-
ing system. This paper proposed a realization method of conversion method between Modbus and IEC61850. Ob-
ject-oriented technology is used for information model on Modbus. After the analysis of IEC61850 and MMS informa-
tion and service model, to establish the model mapping relationship between IEC61850, MMS and Modbus based on
the principle of minimum information point which is one to one correspondence. Combined with the implementation of
SISCO MMS-EASE LITE software development kit programming, giving a realization method using QT programming
techniques based on the mapping model. Finally, the establishment the interval controller as an example of protocol
scheme verifies the correctness and the feasibility of protocol conversion method.
Keywords: Modbus; IEC 61850; Protocol Conversion; Model Mapping; Consolidated Monitoring Unit
service, but it cannot be used in the standardization of by the function code(FC). We can complete the informa-
equipment condition monitoring access issues. tion model of one ASDU by the object-oriented model-
ing technology easily.
2. The Information Model and Mapping
2.3. The Mapping Model between Modbus, MMS
2.1. The information model of IEC61850 and
and IEC61850
MMS
After the above analysis, the mapping from Modbus to
The actual communication functions and device has been
MMS and IEC61850 is same to the flat-screen informa-
described in an abstract way in IEC61850.It defines the
tion points mapping to three-dimensional data objects.
five basic class model which include the Server, the
Figure 2 gives the mapping relationship between Mod-
logical device(LD),the logical node(LN),the data(Data),
bus, MMS and IEC61850. The correspondence is sepa-
the data attribute(DA).A Server includes multiple LD,
rated by dotted lines. In the figure, the address field is the
and each LD contains multiple LN, as well as each LN
slave address of the Modbus RTU as well as the unit
contains multiple Data. It can be seen that IEC61850
identifier of Modbus TCP.
information model is a hierarchical and three-dimen-
The Information Mapping
sional object-oriented structure.MMS is kind of specific
communication service of IEC61850. The information Modbus address field is used to identify a condition
Model of MMS is consistent with IEC61850. Each MMS monitoring device, so the Modbus address field is
application must contain at least one VMD object. VMD mapped to logical device of IEC61850 and the domain
is the root in the object structure of the entire MMS, and model of MMS.DSA can be uniquely identifies a device
other objects are included in the VMD object. Some measuring point, so DSA is mapped to DA of IEC61850
types are included in the other sub-objects and become and the simple named variables. DS is represented the
deeper sub-object. number of the registers or coils and so on, therefore it
In view of the MMS and IEC61850 model structure will be mapped to the basic data types of IEC61850 and
and its modeling method can carry out a similar analysis that of MMS.
of the information structure of the Modbus protocol to
complete the Modbus information modeling. Modbus RTU Modbus TCP
Transaction identifier
2.2. Modbus and its Information Model (2 bytes)
M
Protocol identifier (2 B
GB/T 19582-2008 national standard gives two commu- Slave Address (1 byte) bytes) A
nication protocols about the Modbus Application proto- Byte Count (2 bytes) P
col and service standards which included the Modbus A
Unit identifier (1 byte)
serial link norms based on the TIA/EIA standard and the S Function Code (1 byte)
Function Code
D (1 byte)
Modbus TCP/IP protocol based on the RFC793 and
U Data Starting Data Starting Address P
RFC791 standard [11,12]. And the Modbus serial link D
Data area
Data area
Address (2 bytes) (2 bytes)
norms can divided into two communication modes of U
Data Size (2 bytes) Data Size (2 bytes)
Modbus RTU and Modbus ASCII. Modbus RTU and
Data Content Data Content
Modbus TCP are mostly supported in substation condi-
CRC error check code
tion monitoring equipment with its simple optimization (2 bytes)
feature. The Modbus parameter type is less, mainly in-
cludes coil, discrete, input registers and holding registers. Figure 1. The ASDU structure of Modbus.
The length of the first two is 1 bit, as the latter two is 2
bytes.
The Modbus data structure of the information is dif-
ferent from the IEC61850 and MMS which is a linear
plane. The information data is defined by a correspond-
ing Application Service Data Unit(ASDU). Figure 1
shows the ASDU structure of two types of Modbus. In
order to more clearly describe it contains information, we
will divide the Protocol Data Unit(PDU) to three parts
which contains the data starting address(DSA), data
size(DS) and data content(DC). DBA and DS here refer
to the read or write the starting address and the length of Figure 2. The mapping relationships between Modbus,
the parameter. The specific parameter type is determined MMS and IEC61850.
MMS MMS
Response Request
Modbus Modbus
Response Request
Figure 3. The system architecture block diagram. Figure 4. The design of software structure diagram.
tables as the mapping model. Table 2 shows the basic 4. Case Study
information mapping table for storage Modbus informa-
MMS-EASE LITE gives the corresponding IED con-
tiong and MMS variable mapping relationship. Table 3
figuration file of the interval controller E1Q1SB1. We
shows the writing services relationship and Table 4
will complete the mapping model of E1Q1SB1 by the
shows the reading services relationship. The initialization
protocol conversion method. First, MMS objects should
of database is to resolve the mapping associated file
be created according to the IED file to complete the
which establish by manual.
mapping from MMS to IEC61850 standard. Then the
Table 2. Basic information mapping table. mapping model should be established from MMS objects
to Modbus information model after the analysis of MMS
Field Type Description objects. In the example, we test a part of data objects and
properties of logical Node MMXU1 and LLN0. The Ta-
MMSVariable VarChar(65) MMS variable name ble 5 shows the testing objects. Finally, we will read or
write the phase current, line voltage and so on from the
SlaveAddress Int Modbus address area
analog interval controller by the IEC61850 standard cli-
StartAddress Int Modbus data starting address ent.
By simulation, we can convert the ACSI or MMS ser-
DataSize Int Modbus data size
vice request to corresponding Modbus request correctly
and return the corresponding Modbus request by the
Table 3. The service relationship of read. analog sub-station of Modbus. The system can parse the
information data integrally and return the response of
Field Type Description
ACSI or MMS correctly. In addition, the pipeline strat-
MMSVariable VarChar(65) MMS variable name egy makes the condition monitoring equipment and sta-
tion-side monitoring device to achieve asynchronous
Modbus Function Code communication and solves the inconsistent problem of
FunctionCode Int
(0x01~0x04) the communication frequency between MMS and Mod-
bus. The process and results of the test results show that
Table 4. The service relationship of write. the system is stable and reliable.
[3] D. W. Wang, Y. L. Zhu and Y. Wang, “Condition Moni- 2009, pp. 63-66.
toring and Integrating Platform for Power Transmission [8] IEC61850-8-1 Communication networks and systems in
and Transformation Equipment Based on IEC61850,” substations, Part 8-1:Specific communication service
Automation of Electric Power Systems , Vol. 34, No. 13,
mapping(SCSM) — Mappings to MMS(ISO9606-1 and
2010, pp. 43-48.
ISO9506-2) and to ISO/IEC8802-3[S].2004.
[4] D. W. Wang, Y. Wang and J. Di, “Design Scheme of
Condition Monitoring System for Smart Substation,” [9] K. Dong, B. Guan and W. Wang, “Research on Mapping
Automation of Electric Power Systems, Vol. 35, No. 18, between IEC61850 and MMS,” Power System Protection
2011, pp. 51-56. and Control, Vol. 38, No. 10, 2010, pp. 92-95.
[5] J. Zhang and S. Z. Hou, “Research on IEC 61850 Sever [10] S. J. Wang, S. R. Ye and L. Zhang, “Analysis of Imple-
Application Based on MMSEASE Lite,” Telecommunica- menting the IEC61850 Model with MMS-EASE Lite,”
tions for Electric Power System, Vol. 32, No, 227, 2011, Instrumentation Technology, No. 6, 2009, pp. 50-53.
pp. 55-58. [11] GB/T19582.1-2008 National Standard of the People's
[6] D. W. Wang, C. Y. Yan and J. G. Bi, “An Approach to Republic of China “The Industrial Automation Network
Mapping Between Modbus and IEC61850 for Condition Specification Based on Modbus Part 1: Modbus Applica-
Monitoring Communication Gateway in Substations,” tion Protocol,” 2008.
Automation of Electric Power Systems, Vol. 36, No. 19, [12] GB/T19582.2-2008 National Standard of the People's
2010, pp. 78-84. Republic of China “The Industrial Automation Network
[7] W. L. Wang, G. H. Xu and Z. H. Zhu, “Research of Pro- Specification Based on Modbus Part 2: Modbus Protocol
tocol Gateway Device Based on CORBA Technology,” on the Serial Link Implementation Guide,” 2008.
Power System Protection and Control, Vol. 37, No. 7,