Design and Validation of Industrial Distributed Control Systems
Design and Validation of Industrial Distributed Control Systems
T
l T@ l T@c
Sccuritics: SignaIIing:
failInFreqDriver bool ProccssData:
1ntcrIockiugs: ActivateShak bool
autSwNotShoot bool
Shaker
Opcr.Command:
startButPressed bool
stopButPressed bool
xtcruaIData:
T@c
startAutoMode bool
None
stopAutoMode bool
1. Control system validation through the co-simulation
As commented before, FC validations must be performed
following an incremental way fom the lowest levels up to
level . In the development of level N FCs, unitary tests
have to be performed and documented before they are
added to the library using the development tools.
In this sense, if an application requires the development
of a new third level FC, it has to be tested before its
addition to a library. Once the necessay unitay tests have
been successfully done, and all the elementary FCs reside
in libraries, incremental integration tests have to be
perfored fom level N-l up to level 0 using the co
simulation famework. To achieve this:
A program that uses the FC fnctionalit must be
designed within the programming tool.
A model representing the part of the process
controlled by this FC must be defned within the
simulation tool.
A co-simulation configuration fle has to be generated
in order to describe the tool. The simulation of the
process model is divided in sub-steps where inputs
come fom the previous contol system simulation.
In the same way, inputs for a simulation step of the
control system come fom the previous process
simulation.
The co-simulation application interface allows the
generation of the confguration fle.
A prototpe has been developed within FLEXICON
project in which the integration of Matlab / Simulink /
Stateflow and ISaGRAF Enhanced tools has been
perfored through CORA. In order to integrate both
tools the steps defined above have been followed.
In this application Matlab/SimulinkiStatefow is used to
simulate the process dynamics and ISaGRAF Enhanced to
develop the distibuted control system to be in PLCs or
Open Controllers.
1) MatlablSimulink and 1SaGRF models
Fig.5 shows the model of the austenizing face. H
contains a Stateflow diagram that defines the possible
uansitins betwen face operation states. During
sImulatIOn the active state appears highlighted. This state
diagram handles the execution sequence of the models
associated to each state.
The tansitions between operation states are driven by
input ports that may come fom the control system or fom
the Local Operator Station. Information fom the process
environment is modelled as input ports. Field signals are
modelled as output ports. There ae also some other ports
that have been modelled for signalling purposes. Table III
illustrates the austenizing frnace model ports.
The control system has been developed using ISaGRAF
Enhanced tool (Fig.6). An ISaGRAF Enhanced project is
defined through the IEC 1131 standard elements:
confgurations (e.g. PLC), resources (e.g. CPUs), tasks,
programs, fction blocks and functions [23].
Fig.6. Contol system for te HTL developed in ISaGRAPH Enanced
The control system of the austenizing face, developed
in ISaGRAF Enhanced, contains a confguration and two
resources. Resource 1 executes the logic part of the control
system while Resource 2 executes the temperature
regulations.
To achieve the co-simulation between the process model
(in Matlab) and the control system (in ISaGRAF enhanced)
two different types of interaction between them have to be
distinguished.
The logic part of the control system which is in
chage of the fll line operation, fault detection and
alarm generation. Thus, exchange should be as fast
as possible.
4724
The timed pats. In this case it is constituted by the
temperature regulators. Thus, data must be
exchanged each controller sampling period.
In table III the control model input and output variables
are also classifed as logic or timed variables.
2) Conguration of the co-simulation
Data interchange between control system in ISaGRAF
and the process model in Matlab/SimulinkiStatefow must
be confgured. This exchange of information includes both
the logic part of the control system and the timed part
processed at each controller sampling period.
Thus, the Matlab model inputs and oututs must be
associated to the ISaGRAF model input and output
variables (as shown in table III).
bool
bool
bool
bool
bool
bool
bool
bool
real
bool
bool
bool
real
TABLE III
ISAGRAF MATLAB Miil!G8
NaralcNamc ?ar ?0rNam
servovalveOpened logic servovalveOpen
onPurge logic onPurge
purgeDone logic purgeDone
activateElectrovalve logic activateMainElec
alarmBuNotStartd logic buerNotStarted
buerOn logic buerOn
fanCon logic zFanConect
conZoneFan logic cFanConnect
zl AirServovalve timed zl AirServovalve
?0rNam NaralcNamc
servovalveOpened outut mainElectrConLS
mainElectovalvCon output combustionMotorCon
cFanConnected output openServovalve
Tausl output tempZl InputValue
sm
input
input
input
input
input
input
input
input
logic
logic
logic
timed
Fig.7 represents the user interface where the map
between the process input and output ports and the control
variables is performed. In the example there are four inner
cycles that correspond to the logic part. This value means
that logical data interchange will occur four times faster
than control information, interchanged at the sampling
fequency.
Fig. 7. Co-simulation confguration interface
The complete scenario with both tools and the co
simulation application can be shown in Fig 8.
CO-Snu|aIOnP|Ca!On
Fig 8: Co-simulation scenario
During co-simulation, the control loops are closed
through CORBA as stated in the co-simulation
confguration file. But, it is also possible to send direct or
time diven commands to both tools (e.g. to simulate a fault
in a sensor signal or to send an operator order to the control
system).
N. CONCLUSION
In this paper a methodology for designing and validating
industial distributed contol systems has been proposed.
The design, based on IEC 1131 standard and hierarchically
defined, aims component reuse. The co-simulation
famework, developed within the FLEXICON project,
allows incremental validations of the design. The steps to
achieve both the design and the validation have been
detailed with a case study.
Within the FLEXICON project work on automatic IEC
1131 3 ST code generation is on progress. In this sense,
frther research includes incremental design validations
using automatically generated code as well as
automatically generated co-simulation confguration files.
ACKNOWLEDGMENT
The authors grateflly acknowledge the financial support
of the European Union's Information and Science
Technologies programme for the FLEXICON project IST-
2001-37269.
REFERENCES
[1] Lewis R.W. "Programming Industrial Control Systems using IEC
1131-3, lEE Control Engineering series 50. ISBN-O 85296 950 3",
1997.
4725
[2] Berger H. "Automating with STEP 7 in STL and SCL". Ed. Siemens
Akiengesellschaf, Berlin and Munich, 2000.
[3] De Cataldo G. "The Detector Control System for the HPID in the
ALICE Experiment at LHC". 6' Workshop on Electronicsf!)r IHC
Experiments, Cracow, Poland. 2000.
[4] Tolga I., Kurtulan S., Goren L.
"
Supervisory Control of a Pneumatic
System Using PLC". International COl?lerence on Electrical and
Electronics Engineering. 2003.
[5] Albus J.S., Lumia R., McCain H. "Hierarchical contol of intelligent
machines applied to space station telerobots". Aerospace and
Electronic Systems. 1988, Volume 24, pp. 535-541.
[6] Adams J., Paul R. "Human Management of a Hierarchical Contol
System for Multiple Mobile Agents". IEEE Interational
Conference on Systems. Man. and Cybernetics, San Antonio. 1994.
[7] Guldner, J., Utkin V., Bauer U., Bauer R., tree-layered hierarchical
path control system for mobile robots: Algorithms and experiments".
Robotics and Autonomous systems, 1995, Volume 14, Issues 2-3, pp.
133-147.
[8] Shibata T., Abe T., Tanie K., Nose M. "Skill based motion planning
in hierarchical intelligent contol of a redundant manipulator".
Robotics and Autonomous systems, 1996, Volume 18, Issues 1-2,
pp. 65-73.
[9] Popovic D., Popovic M. "Tunning of a Nonanalytical Hierarchical
Control system for Reaching with FES". IEEE Transactions on
Biomedical Engineering, 1998, Volume 45, No. 2, pp. 203-212.
[10] Leonessa A., Haddad W., Chellaboina W. "Nonlinear Robust
Hierarchical Control for Nonlinear Uncertain Systems".
Mathematical Problems in Engineering, 2000, Volume 5, pp. 499-
542.
[11] Roberts P., Becerra V. "Optimal contol of a class of discrete
continuous non-linear systems-decomposition and hierarchical
structure". Automatica, 2001, Volume 37, pp. 1757-1769.
[12] Andrzej J. "Hierarchical Control of Transient Flow in Natural Gas
Pipeline Systems". Int. Tans. Opl Res .. 1998, Volume 5, No. 4, pp.
285-302.
[13] Lee M., Han C., Chang K. "Hierarchical Time-Optimal Control of a
Continuous Copolymerization Reactor dung Start-up or Grade
Operation using Genetic Algorithms". Compo of Chem. Eng., 1997
Volume 21, pp. 1037-1042.
[14] Keung K.W., Ip W.H., Yuen D. "An intelligent hierarchical
workstation contol model for FMS". Journal of Materials
Processing Technology. 2003, Volume 139, pp. 134-139.
[15] Marcos M., Gangoiti U., Estevez E., Portillo J., Calvo !. "A
CORBA-based Co-simulation Framework for Integrating COTS
Tools", submitted to: Sixth Portuguese Conference on Automatic
Control CONTROLO 2004, Faro, Portugal. 2004.
[16] Adriano, B.A and Wager, F.R. "A Standardized Co-simulation
Backbone". Universit of Porto Alegre, Brasil. 2001
[17] Foresign Systems, Inc. "Combining Foresight and Matlab for
Complex System Design", 2002. Available htp://www.Foresight
Systems. com
[18] Extessy AG. (2003) Available htt:// www.extessy.com
[19] The MathWorks (2002), "Using Matlab version 6.5"
[20] Aisan Sofware. "Manual of ARTiSAN Real-Time Studio, Version
4.2", ARTiSAN Sofware tools. 2002.
[21] George N. "Cosimulation of an Automotive Contol System using
ADAMS and Xmath". Interational ADAMS User Conference.
Utrecht, 1998, The Netherlands
[22] OMG "OMG IDL Syntax and Semantics. IDL specifcation". 2002.
Available: www.omg.orgidocs/formal/02-06-07.pdf
[23] PLCopen, "Overview IEC 61131". 2003. Available:
http://www.p1copen.orglintro_iec/overview_oCiec_61131.htm