You are on page 1of 5

International Conference on Renewable Energy Research and Applications Madrid, Spain, 20-23 October 2013

Design and Simulation of a SCADA System using


SysML and Simulink

Dogan GEZER1,2, Hakki Ozgur UNVER1, Yigit TASCIOGLU1, Kutay CELEBIOGLU1, Selin ARADAG1

1 2
TOBB University of Economics and Technology TUBITAK Marmara Research Center
Dept. of Mechanical Engineering Energy Institute
Ankara, Turkey Ankara, Turkey
dgezer@etu.edu.tr, hounver@etu.edu.tr dogan.gezer@tubitak.gov.tr
ytascioglu@etu.edu.tr, kcelebioglu@etu.edu.tr
saradag@etu.edu.tr

Abstract—This paper describes a methodology and a case study purpose graphical modeling language for specifying, analyzing,
through which system architecture and dynamic models of designing and verifying complex projects including hardware,
related system components are gathered in order to design and software, information, communication and interface
simulate the SCADA system of a new hydro turbine test components [4].
laboratory. System architecture model is prepared in System
Modeling Language, a system modeling language based on Dynamic modeling of a system is a very critical link
Unified Modeling Language, while the dynamic model of the between system design and implementation where
laboratory is formed in Matlab/Simulink. Some simulations are computational approaches and mathematical representations
performed in order to verify the preliminary system design are used. Dynamic system models include internal dynamics
studies and system requirements. and memory of past states as distinct from static system models
which focus on time-invariant system features.
Keywords-System Modeling Language (SysML); SCADA
system; A new technology center, named TOBB ETU Hydroturbine
Design and Test Center, is built in Ankara, Turkey to develop
hydropower technology on national level, as the most plentiful
I. INTRODUCTION
and used renewable energy resource in Turkey. This laboratory
System engineering is an engineering approach that focuses is planned to have a 2 MW testing capacity for hydro turbines
on design and management of interdisciplinary and generally which is 25 % greater than the known highest testing capacity
complex projects. System engineering is a top-down process in the world. Design studies for the SCADA system of the
considering the success of the system by concentrating the laboratory continues in coordination with the design of the
whole [1]. As the project gets larger, it becomes more difficult electromechanical components of the test set-up. The SCADA
to deal with coordination and traceability of the project. system is responsible of real-time control, data acquisition and
Therefore, a need of a flexible and standard tool for system the other requirements mentioned in following sections.
engineering has emerged. In 2001, Model Driven System
Design workgroup of International Council on Systems In order to validate the complex system behavior of the
Engineering (INCOSE) decided to adapt Unified Modeling SCADA system which is defined in the SysML model, it is
Language (UML), a modeling language for software necessary to test, verify and simulate the SysML model with
engineering which involves graphical notational techniques to the help of the dynamic model generated in Matlab/Simulink.
model object-oriented software application visually, for the Simulations performed in dynamic model give an idea on
field of system engineering [2]. System engineers who used whether the system preliminary design satisfies the
UML for general-purpose visual modeling had to model requirements or not.
additional concepts in other modeling tools which made The similarities and the differences between SysML and
integration and traceability of these models difficult. In 2003, UML are explored expressing that SysML only provides a set
Object Management Group (OMG) requested proposals for of useful systems engineering extensions to the UML and
customization of UML in order to support modeling of various SysML is simply not a new language [5]. Considering the
systems including hardware, software, data, personnel, system design in SysML, in [6], the design of a packaging
procedures and facilities. Only one proposal based on UML 2.0 machine on a SysML-based methodology is mentioned. An
was submitted to that request. Main aim of this submission was extension to SysML that enables continuous-time behavior
to use UML 2.0 as much as possible and not to make any description and thus enables co-simulation with
changes unless absolutely necessary [3]. Those efforts resulted Matlab/Simulink is proposed in [7]. In [8], control system of a
in System Modeling Language (SysML) which is a general transmission system is designed with SysML and Simulink.

978-1-4799-1464-7/13/$31.00 ©2013 IEEE

ICRERA 2013 1058


International Conference on Renewable Energy Research and Applications Madrid, Spain, 20-23 October 2013

Figure 1. Diagram taxonomy of SysML


Figure 2. Requirement Diagram

The rest of the paper is organized as follows: In Section II operators give setpoints and sequence start and stop commands
the development of the system architecture model using through operator screens. The local control level is composed
SysML is explained. The details of the dynamic model in of the controllers, input/output (I/O) modules, communication
Simulink are presented in Section III. Simulation scenarios and and function modules and the energy analyzers. Data exchange
the results are provided in Section IV. Section V concludes the between site equipment and I/O modules is achieved through
paper. hardwired signals. AC Motors and pumps are controlled in
order to provide desired water pressure and flow conditions.
II. SYSTEM ARCHITECTURE MODELING USING AC Motors are fed through AC bus which is connected to the
SYSML electric grid. The SCADA system controls the amount of water
passing through the turbine under adjusted water pressure
The main aim of SysML is to provide simple however conditions. The turbine being tested and the DC machine are
effective constructs for modeling a wide range of system coupled and the speed of the DC machine is determined by the
engineering problems. In particular, SysML is very powerful turbine. DC power generated by the DC machine is converted
for specifying requirements, structure, behavior, allocations into AC power by an inverter.
and parameters while supporting multiple processes and
methods [9]. A. Requirement Diagram
SysML defines nine types of diagrams included in groups A requirement defines a capability or a condition to be
as Behavior, Requirement and Structure diagram. Diagram satisfied. In a SysML model, it is possible to express text-based
taxonomy of SysML is shown in Figure 1. As noticed, some of requirements on graphics, tables or with the help of a tree
the diagrams are inherited from UML, some are extensions of structure. In a requirement diagram, requirements and their
UML and two of them are new diagram types. relationships with other system elements are defined.
The SCADA system of the laboratory is divided into two Requirements satisfied by the SCADA system and its sub-
levels as station level and local control level. Project servers, components are shown for each requirement block in Figure 2.
data loggers and workstations are at the station level and

Figure 3. Block Definition Diagram of the Laboratory

ICRERA 2013 1059


International Conference on Renewable Energy Research and Applications Madrid, Spain, 20-23 October 2013

Figure 4. Internal Block Diagram of the SCADA System

B. Block Definition Diagram E. Use cases


Block definition diagram is used for defining features of The usage of a component modeled in SysML model by
the block which are modular units of system description and an environmental effect is visualized by use case diagrams
relationships between them including associations, on which selected actors realize a desired goal. Use case
generalizations and dependencies. The block diagram of the diagrams include actors, use case and relationships such as
laboratory is shown in Figure 3, including the system communication, include, extend and generalization. Figure 5
elements and quantities of each element in the system. shows the use cases for the SCADA system.

C. Internal Block Diagram F. Activity Diagram


In SysML, internal block diagram shows the internal Activity diagrams are used for expressing inputs, outputs,
structure of a block in details with properties and sequences and conditions in order to coordinate other
connections between those properties. In Figure 4, internal behaviors and activities in terms of sequence of actions.
block diagram of the SCADA system are seen. I/O modules,
energy analyzer, project server, workstation and time G. State Diagram
synchronization server are all included in the SCADA State diagram is used for modeling discrete behavior in
system and their data exchange media with the main terms of transitions and states. The SCADA system defines
controller are backplane, Profibus (DP) and Ethernet. the state of the laboratory as standstill, no-load operation and
load operation as could be seen in Figure 6.
D. Parametric Diagram
In parametric diagrams, block properties are constrained H. Package Diagram
through constraint blocks. A constraint block defines an Package diagram is composed of packageable elements
objective function by which alternative solutions are and it establishes the relations between these elements.
compared.

Figure 5. Use Case Diagram for Operation and Maintenance Figure 6. State Diagram of the Laboratory

ICRERA 2013 1060


International Conference on Renewable Energy Research and Applications Madrid, Spain, 20-23 October 2013

Figure 7. Sequence Diagram of SCADA System

I. Sequence Diagram
Setpoints are given at the station level. PID controller in
Sequence diagram is a good way of showing interactions
local control level sends position set point to servo drive and
through flow of control between actors and components.
thus controls wicket gates in order to adjust water flow into
Messages or data exchanged through the focused scenario
the turbine. At the same time, the local controller keeps the
are displayed in a chronological order. The sequence
oil pressure in the system at a predefined level by controlling
diagram for unit start-up is shown in Figure 7.
the motor and the pumps of high pressure oil system.

III. DYNAMIC SYSTEM MODELING USING SIMULINK AC motors and the pumps are fed from the AC grid and
controlled by the SCADA system in order to provide
The dynamic system model of the laboratory is generated constant hydraulic pressure to test the turbine [10].
in Matlab/Simulink. Dynamic model is composed of models
of laboratory equipment and interactions between them as DC machine and external excitation of the DC machine is
shown in Figure 8 generically. used for generating DC power and regulating voltage output
of the machine terminals. Through the inverter, DC voltage
is changed into AC voltage which has magnitude and
frequency of the grid.

IV. SIMULATION
The startup of the turbine by controlling the high pressure
oil system and wicket gates in the dynamic model generated
in Simulink is shown in Figure 9.
Startup of Turbine
1

0.9

0.8

0.7
Turbine Speed (pu)

0.6

0.5

0.4

0.3

0.2

0.1

0
0 5 10 15 20 25 30
Time (seconds)

Figure 8. Generic Components of Dynamic Model Figure 9. Startup of the Turbine

ICRERA 2013 1061


International Conference on Renewable Energy Research and Applications Madrid, Spain, 20-23 October 2013

Change in Valve Opening Change in Motor Speed


1 1.05

0.8
Valve Opening (pu)

0.6

Speed (pu)
1

0.4

0.2

0 0.95
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
Time (seconds) Time (seconds)
Change in Pump Pressure Change in Mechanical Power
1.01
1

1.005 0.8

Mechanical Power (pu)


Pressure (pu)

0.6
1

0.4

0.995
0.2

0.99 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
Time (seconds) Time (seconds)

Figure 10. Changes in motor-pump system: a) Change in Valve Opening, b) Change in Pump Pressure, c) Change in Motor Speed, d) Change in Mech. Power

In order to investigate the functionality of the motor and REFERENCES


pump set in the hydraulic system, valve openings are [1] MIT OpenCourseWare, [Online]. Available: http://ocw.mit.edu/cour
changed and the variations in pump pressure, speed and ses/engineering-systems-division/index.htm
mechanical power of the motor which is coupled to the pump [2] SysML Open Source Specification Project, [Online]. Available:
are shown in Figure 10. http://www.sysml.org/
[3] Hause, M.; et al., "Inside SysML," Computing & Control Engineering
Journal , vol.16, no.4, pp.10,15, Aug.-Sept. 2005
V. CONCLUSION
[4] OMG System Modeling Language, [Online]. Available:
In this paper, preliminary design studies of a hydro http://www.omgsysml.org/
turbine design and test laboratory through generation of [5] Holt, J.; Perry, S., "SysML: describing the system [Notebook:
system architecture model in SysML and system dynamic modelling languages]," Information Professional , vol.3, no.4,
model generated in Matlab/Simulink are explained. pp.35,37, August-September 2006
Considering the results of the simulations in Simulink, [6] Bassi, L.; et al., "A SysML-Based Methodology for Manufacturing
Machinery Modeling and Design," Mechatronics, IEEE/ASME
system requirements and electromechanical equipment’s Transactions on , vol.16, no.6, pp.1049,1062, Dec. 2011
specifications are verified as well as successful operation of
[7] Kawahara, R.; et al., "Verification of embedded system's specification
the laboratory equipment individually and as a whole are using collaborative simulation of SysML and simulink models,"
validated. Model-Based Systems Engineering, 2009. MBSE '09. International
Conference on , vol., no., pp.21,28, 2-5 March 2009
ACKNOWLEDGMENTS
[8] Sakairi, T.; et al., "Designing a control system using SysML and
The design and the construction of the Hydroturbine test Simulink," SICE Annual Conference (SICE), 2012 Proceedings of ,
vol., no., pp.2011,2017, 20-23 Aug. 2012
facility is financially supported by Turkish Ministry of
[9] OMG Systems Modeling Language (OMG SysML™), V1.0 Specs,
Development and TOBB. [Online]. Available: http://www.omg.org/spec/Sys ML/1.3/
[10] Demonstration of a hydraulic pump driven by an electric motor using
SimPowerSystem and SimHydraulics, [Online]. Available:
http://www.mathworks.com/matlabcentral/fileexchange/33313

ICRERA 2013 1062

You might also like