ISA Transactions
journal homepage: www.elsevier.com/locate/isatrans
article
info
Article history:
Received 14 May 2008
Received in revised form
25 July 2008
Accepted 29 July 2008
Available online 30 August 2008
Keywords:
Fieldbus automation systems
Simulator
LabView
a b s t r a c t
This article presents a fieldbus simulation platform and its remote access interface that enables a
wide range of experiments, where users can configure operation sequences and procedures typical of
Foundation Fieldbus systems. The simulation system was developed using LabVIEW, with requisites of
deterministic execution, and a course management work frame web server called Moodle. The results
were obtained through three different evaluations: schedule table execution, simulator functionality
and finally, simulator productivity and achievement. The evaluation attests that this new tool is feasible,
and can be applied for fieldbus automation systems training purposes, considering the robustness and
stability in tests and the positive feedback from users.
2008 ISA. Published by Elsevier Ltd. All rights reserved.
1. Introduction
The use of automatic electronic devices in the process control
industry is nothing new. Since 1970, these devices have been
used first in direct digital control (DDC), and then in distributed
control system (DCS) or programmable logic controllers (PLC).
The spread of microcontrollers technology in the 90s enabled
the development of smart field devices, the main characteristic of
which is having their own intelligence and function [1].
Considering that the intelligence of a control system is
distributed over each smart device on the shop floor or on
the plant, the next step is interconnecting all devices, and
creating an instrument network [2], nowadays called fieldbus, with
requisites of real time systems. Fig. 1 shows the basic architecture
of a fieldbus network, composed of field devices, the fieldbus
communication channel, the controller unit(s) and specialized
engineering host stations.
The great interest in this network model led several manufactures to implement their own communication protocols, to enable communication among their devices, and during the last two
decades, some criteria were defined in order to standardize the
communication model, and enable communication among different models of devices, developed by different manufacturers.
There are several standard and widespread fieldbus protocols
available in the market, such as CAN (Control Area Network),
Interbus, DeviceNet, Hart, Modbus, AS-I (AS-Interface), Profibus
and FOUNDATION Fieldbus. This article refers to the FOUNDATION
0019-0578/$ see front matter 2008 ISA. Published by Elsevier Ltd. All rights reserved.
doi:10.1016/j.isatra.2008.07.005
133
134
not directly related to the control loop cycles, but to configuration actions and data supervision efforts. The unscheduled transmissions are dispatched under a token pass scheme. A token that
circulates among all active nodes on the bus is used in FF protocol.
Once a transmitter receives the token, it is granted the right to send
pending aperiodic messages with a minimum priority for a specific
time period.
Non periodic (or event-triggered) processes are initiated as
soon as specific events are noted [5]. The event-triggered processes
are unpredictable and usually related to alarm notifications,
configuration data and user commands as cited before. Although
acyclic traffic is less frequent than the cyclic one, the acyclic data
should also be delivered prior to a certain time deadline, according
to the system requirements.
For a description of the MAC operation on both cyclic and acyclic
phases, refer to [68].
The FF User Layer is directly related to the process automation
tasks themselves, and it is based on distributed control or
monitoring strategies of Function Blocks. Function Blocks (FBs)
are User Layer elements that encapsulate basic automation
functions and consequently make the configuration of a distributed
industrial application modular and simplified [9]. Distributed
among the transmitters, the FBs have their inputs and outputs
linked to other blocks in order to perform distributed closed
control loop schemes. When blocks from different transmitters are
linked together, a remote link is configured and mapped to a cyclic
message. Considering that all cyclic messages should be released
in a predetermined instant defined on a schedule table, and that
they carry data generated by the FBs, it is adequate to synchronize
the execution of the FB set on the system with the referred cyclic
transmissions schedule table. This solution leads to the concept of
joint scheduling [10].
The Foundation Fieldbus standardized a set of ten basic
function blocks [11], a complementary set of eleven advanced
control blocks [12], and a special flexible function block intended
to be fully configurable, i.e., internal logic and parameter, by
the user [13]. The standard and advanced block sets provide
mathematical and engineering calculations necessary to configure
typical industrial control loop strategies, while the flexible
function block can be applied to custom or advanced controls or to
complex interlocking logics based on ladder nets. It is important to
state, however, that the standard is open at this point, permitting
the integration of user-defined custom function blocks in order
to enhance the capabilities of FF control system, and make the
integration of novel control techniques possible.
3. FBSIMU architecture
3.2. Physical plant simulations
The basic concept of the FBSIMU architecture is to map each
Function Block, as well as the plant, in an independent LabVIEW
application, also named Virtual Instrument (VI). The configuration
of the whole system is centralized in the FBSIMU.CONF module.
This modules front panel (GUI) is inspired by commercial fieldbus
configuration tools.
As mentioned before, the FBSIMU is focused on the function
block application layer and it is composed exclusively of software
according to a modular and extensible architecture. The simulator
was developed in LabVIEW using the G graphical programming
language, native language in this environment. Each FBSIMU
module or software unit simulates an element or a structure of a
real FOUNDATION Fieldbus system [14].
na
X
s=1
Asii Yi1 (k s) +
nb
X
s =1
135
136
Table 1
FBSIMU task set
Module
Priority
Execution
Timeout
Determinism
Lowlow
Highhigh
High
Low
Event driven
Time triggered according to the schedule table
Periodic with configurable period
Periodic with period = 500 ms
1s
No
No
No
No
Yes
Yes
Yes
137
138
Table 2
Schedule table configuration
Task
AI
PID
AO
AI.OUT PID.IN
PID.OUT AO.CAS_IN
PID.BKCAL_OUT AO.BKCAL_IN
Macrocycle period
0
300
600
100
400
700
1000
Table 3
Experimental timing measurements
139
Average period
Standard deviation
Max. value
Min. value
Number of samples
Cond. 1
Cond. 2
Cond. 3
Cond. 4
999.99
0.51
1002
998
500
1000.01
0.74
1002
998
485
1000.00
0.37
1002
999
510
1000.01
0.37
1004
996
450
140
Table 4
Topic evaluated for grade (Students)
Topic
Grade (15)
Satisfaction
Easy to use
Without technical problems
Easy to access
Student Learning
4
3
5
3
4
Table 5
Topic evaluated for grade (Instructors)
Topic
Grade (15)
Satisfaction
Students interaction
Easy to evaluate the students
Easy to manage
Student Learning
4
4
3
5
4
8. Conclusions
The online system architecture can be considered simple to
manage and the use of a complete CMS framework gave the system
a valuable means to promote an efficient communication channel
between users and instructors.
Since the beginning of fieldbus protocols adopted by the
industrial community, there has been a large interest in research
related to the different aspects and functionalities of this
technology. Several research tools for simulation have been
developed to assist training programs and test routines. Besides its
low cost, when compared with real instruments and systems, an
additional advantage of simulation tools is the intrinsic flexibility
and safety, which allows the execution of a broad range of
experiments without security restrictions.
Due to the increasing presence of the Internet in and outside
industrial sites, an evident tendency for using remote access to
simulation tools or even to fieldbus systems with real instruments
is expected.
Considering the implementation architecture of the FBSIMU
simulation tool and its remote access, it has been demonstrated
that it is possible to consider realistic fieldbus simulations, in
an efficient way, by using a CMS system interacting with a local
simulation application in a remote clientserver model over the
Internet. The proposed interaction model between LabVIEW and
Moodle introduces certain complexities once two web servers
(Apache for Moodle and the LabVIEW web server for the FBSIMU
tool) must collaborate locally during simulations. The proposed
collaboration model for this application was successfully tested
and approved.
The satisfaction and the learning experience of the users are
positive results to be noted. This fact can be explained by the
high compatibility degree of the FBSIMU Function Blocks and
scheduling policy with the FF standards, and the intentional
similarity of its GUI to real fieldbus configuration software.
According to the result analysis section, this new tool is feasible
and can be applied for fieldbus automation systems training
purposes, considering the robustness and stability in the tests and
the positive feedback from users.
Acknowledgments
The authors gratefully acknowledge the Brazilian agency
FAPESP for the financial support received through the Kyatera
project, and the academic support and research structure from the
Engineering School of So Carlos - University of So Paulo. The
authors also acknowledge the important technical contributions
from Smar International Corporation.
References
[1] Berge J. Fieldbus for process control: Engineering, operation, and maintenance.
Research Triangle Park: ISA Books. 2002.
[2] Smar International Corporation. Fieldbus tutorial: A FOUNDATION fieldbus
technology overview. Sertozinho: Brazil. 2004.
[3] International organization for standardization. ISO/IEC 7498-1: Information
technology open systems interconnection basic reference model: The basic
model. Switzerland. CD-ROM. 1994.
[4] Cavalieri S, Di Stefano A, Mirabella O. Optimization of acyclic bandwidth
allocation exploiting the priority mechanism in the fieldbus data link layer.
IEEE Transactions on Industrial Electronics 1993;40(3):297306.
[5] Pop T, Eles P, Peng Z. Holistic scheduling and analysis of mixed time/eventtriggered distributed embedded systems. In: 10th international symposium
on Hardware/software codesign. 2002.
[6] Hong SH, Ko SJ. A simulation study on the performance analysis of the data
link layer of IEC/ISA fieldbus. Simulation 2001;76(2):10918.
[7] Wang Z, Yue Z, Chen J, Song Y, Sun Y. Realtime characteristic of FF
like centralized control fieldbus and its state-of-art. In: IEEE international
symposium on industrial electronics. 2002.
[8] Petalidis N, Gill DS. The formal specification of the fieldbus foundation link
scheduler in E-LOTOS. In: International conference on formal engineering
methods. 1998.
[9] Chen J, Wang Z, Sun Y. How to improve control system performance using FF
function blocks. In: IEEE international conference on control application. 2002.
[10] Ferreiro Garcia R, Vidal Paz J, Pardo Martinez XC, Coego Botana J. Fieldbus:
Preliminary design approach to optimal network management. In: IEEE
international workshop on factory communication systems. 1997.
[11] Fieldbus Foundation. FF-890-1.3: Foundation specification function block
application process, part 1. Austin, USA. 1999.
[12] Fieldbus Foundation. Foundation specification function block application
process Part 3: FF-892 FS1.4. Austin, USA. 1999.
[13] Fieldbus Foundation. Foundation specification function block application
process Part 5: FF-894 DPS0.95. Austin, USA. 1999.
[14] Brando D. Ferramenta de simulao para projeto, avaliao e ensino de redes
fieldbus, Doctorate thesis. Escola de Engenharia de So Carlos, USP. 2005.
141