Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Wolfgang Kastner
I.
I NTRODUCTION
Model-Driven Engineering (MDE) is a concept from computer science where the modeling of an application is put in
focus [21], [22]. Once the model definition is accomplished it
is transformed into other models or source code is generated.
The main idea is to increase consistency and to minimize
errors. One of the core components of MDE is the model
transformation, which is defined by a set of rules. This can
FB2
FB3
FB4
IV.
IEC 61499 also defines several models for different modeling objectives. Some of these models are shown in Fig. 1
and can be summarized as follows [18]:
Application Model
FB5
M ODEL -T RANSFORMATION
FB6
System model: a collection of devices499 and their connections with each other through network segments499
and links499 ,
Communication Network
Device 1
Device 2
Communication Interface
Resource
A
Resource
B
Communication Interface
Resource
C
Resource
A
Resource
B
System Model
Resource
C
Application 1
Application 2
App. 4
Process Interface
Application 3
Process Interface
Controlled Process
Resource C
Communication Interface
MN
CN1
CN2
POWERL
INK_IO
POWERL
INK_IO
OUT
Resource Model
IN
POWERL
INK_MN
SUBL
PUBL
Process Interface
Scheduling function
Fig. 1.
th
Fig. 2.
Device model: models a hardware device which consists of one or more resources499 ,
Resource model: a resource499 is considered as a functional unit and contains one ore more applications499
or parts of it,
LNode
-inst = i
IEC 61499
Application
Substation2System
System
-name = nSub
-name = nSub
Subapplication
LNode2Subapp
TABLE I.
IEC 61850
Substation
IED
Logical Device
LN
Communication
Abstract Communication
Service Interface (ACSI)
IEC 61499
System & Application
Device
Resource
Subapplication & Adapter
Network segments & Links
SIFB
(client/server and publisher/subscriber)
not covered by IEC 61850, however their interfaces are represented in form of LNs850 . Thus the product model defines a
hierarchical description of the IEDs850 , i.e., each IED850 contains
one or more servers850 , containing one or more logical devices
(LDevice850 ), and so on ending with the data of the LN 850 , as
presented in Fig. 2 [26].
Following this MDE approach of IEC 61499, as described
in Section III all hardware independent parts should be part of
the application499 , whereas any parts related to the hardware
should be covered by the resource499 or the device499 . In the
previous section the LN 850 was defined to be part of the application499 as it describes a hardware independent functionality.
The same applies to the data850 and therefore it is also part of
the application499 .
The IED850 is a hardware device which makes a mapping
to the device499 natural. Each IED850 contains one ore more
LDevices850 which are mapped to resources499 . The servers850
are a special case since they need to be mapped to Service
Interface Function Blocks499 . This mapping is explained in
more detail below.
3) Communication to System Model: The communication
model of IEC 61850 defines logically possible connections between IEDs850 , i.e., which IEDs850 can connect with each other.
This is described using subnetworks850 and access points850 ,
defining where an IED850 is connected to a subnetwork850 [26].
The system model in IEC 61499 has a similar purpose,
since it describes a collection of devices499 connected via
links499 to network segments499 [18]. Thus a logical mapping
is made from subnetworks850 to network segments499 and from
access points850 to links499 .
Even if IEC 61499 provide some possibilities for network
modeling it still lacks in detail. For instance link properties like
delay or statistical package drops cannot be directly modeled.
For such purposes other models are needed.
-name = lC + i
IED
-name = nIED
Server
LNodeType2Adapter
AccessPoint
-name = lC
Device
IED2Device
-name = nAP
Adapter
-name = nIED
Link
AccessPoint2Link
-commResource = iLD
-segmentName = nSunN
SubNetwork
-name = nSubN SubNetwork2NetworkSegment
-type = tSubN
Logical Device
-inst = iLD
Fig. 3.
th
LogicalDevice2Resource
NetworkSegment
-name = nSubN
-type = tSubN
Resource
-name = iLD
Transformation rule
T M/O/C
O
O
MMXU Adapter
Confirmation from Server EVENT
Total Active Power MV
Total Reactive Power MV
Fig. 4.
CNF
REQ
TotW
TotVAr
E NGINEERING P ROCESS
The mappings between IEC 61850 and IEC 61499 described in Section IV define how each object of IEC 61850
is mapped to a correspondent component in IEC 61499. This
section provides some guidelines for the engineering process.
In particular it covers how IEC 61850 configurations (i.e., SCL
files) can be transformed into an IEC 61499 compliant model.
An overview of this engineering process is shown in Fig. 5,
where the important steps are marked in the red circles.
The first step is to generate structured data types499 from
each CDC850 . When they are available, adapters499 can be
generated from the LNs850 . Furthermore, IEC 61850 standard
as well as IEC 61499 reference model both define simple
data types, thus a mapping between them are needed, e.g.,
FLOAT32850 is mapped to REAL499 .
In step 2 an application499 can be generated from the
defined LNs850 . This means a subapplication499 is created for
each LN 850 , with adapters499 used to define the interfaces. The
content of these subapplications499 is a model of the behavior
of the LN 850 , e.g., providing measurements from a process
interface. Since the LNs850 do not define how their functionality
is implemented a semantic mapping is required between each
LN 850 and some functionality defined in IEC 61499 . Such a
logic can be expressed using a FB network499 or be defined in
a single FB499 . However, this is not a main part of this work
but will be a future research topic.
IEC 61850
SCADA : IED
IEC 61499
44
System
AP : AccessPoint
AP : Ethernet
IHMI : LN
Application
DER : IED
DER : Device
AP : AccessPoint
IHMI
IHMI
22
Server
33
55
>> MMXU
DRCC
DRCC
MMXU >>
LDevice
LDevice : Resource
DRCC >>
MMXU : LN
SCADA : Device
LDevice : Resource
MMXU
MMXU
MMXU1
MMXU1
>> DRCC
TotW : MV : CDC
f : FLOAT32
DRCC : LN
66
DRCC
DRCC
mag : AnalogueValue : DA
>> MMXU
DRCC1
DRCC1
MMXU >>
Subapplication
DRCC >>
SERVER
SERVER
OutWSet.ctlVal.f
DRCC >>
>> DRCC
11
Fig. 5.
Engineering process for transformation of IEC 61850 models into IEC 61499 models.
VI.
M ODELING U SE -C ASE
In order to give an idea of how the above defined transformation concept and rules can be implemented, a modeling
use-case is presented where an IEC 61850 configuration is
transformed into an IEC 61499 model. This example is provided in the corresponding Fig. 5.
A SCL file is provided for a power utility application where
two IEDs850 are used, one DER acting as a server and a SCADA
system as a client. The DER has two LNs850 : MMXU and DRCC
for supervisory control. DRCC is used to control the desired
active power output of the DER. Using this SCL specification
an application499 is generated which models the behavior of the
application. Using this application499 , depicted in the middle
of Fig. 5, the power utility application can also be simulated
and validated. If needed, it is also possible to deploy the
application499 to real hardware, i.e., steps 4 to 6 in Fig. 5.
For the use-case Eclipse was used. The meta-models for
IEC 61850 and IEC 61499 were imported into Eclipse, using
Eclipse Modeling Framework. Next the transformations rules
were defined using ATL for Eclipse. Two main transformation processes were defined, first of all the rules defined in
Section IV were implemented for the transformations between
IEC 61850 and IEC 61499 artifacts. Listing 1 shows one of
these rules.
rule DAType2StructuredType {
from
s : iec61850!TDAType
to
t : iec61499!DataTypeType(
name <- s.id,
comment <- s.desc,
structuredType <- strType
),
strType : iec61499!StructuredTypeType(
varDeclaration <- s.bDA
)
}
Listing 1.
th
Application
[9]
Adapter
[10]
Subapplication
[11]
[12]
Fig. 6.
[14]
[15]
[16]
[17]
[18]
[19]
[20]
ACKNOWLEDGMENT
This work is funded by the Austrian Climate and Energy
Fund with the support of the Austrian Research Promotion
Agency (FFG) under the project DG -EV-HIL (No. 827987).
R EFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
th
[21]
[22]
[23]
[24]
[25]
[26]
[27]
[28]
[29]