Sie sind auf Seite 1von 5

10th IFAC Symposium Advances in Control Education

The International Federation of Automatic Control


August 28-30, 2013. Sheffield, UK

Virtual and Remote Laboratories for Industrial Automation E-learning


J.R. Caldas Pinto*, Sá da Costa, J.M.G.*

*IDMEC/,IST, Technical University of Lisbon

Portugal (Tel: 351-218417313; e-mail: jcpinto@dem.ist.utl.pt and sadacosta@dem.ist.utl.pt).

Abstract: Nowadays one of the fundamental aspects of industrial automation concerns modeling discrete
manufacturing processes and their control through Programmable Logic Controllers (PLC). These
subjects, apparently distinct, are indeed related because PLC programming in most cases are based on
these models. Another essential topic is the use of SCADA systems and web panels as part of the
monitoring process. Teaching these subjects require intensive use of laboratories with dedicated equipment
and software. The problem arises when the course has more than one hundred students and the university
policy is not to spend too many resources in teaching labs. This paper presents our last solution to the
problem based on virtual experimental setups and the use of a remote laboratory with web panels and
LabVIEW interfaces. The solution has been tested successfully and very important, using legal software at
free cost for the student.
Keywords: e-learning, PLC, SCADA, LabVIEW, Saia-Burgess

architecture and programming languages of PLC in order


1. INTRODUCTION
to perform control of some manufacturing processes. The
Industrial Automation is one semester course lectured in students involvement with PLC programming lasts less
the 3th year of the Integrated Master of Science course in than 12 weeks.
Mechanical Engineer, at Instituto Superior Técnico,
This Industrial Automation course has been supported for
University of Lisbon. The course has an effective period
more than 30 years by a specific laboratory with the usual
of lectures of about 3 months and runs with about 200
basic components, (Fig. 2). In the past, the presence of
students.
students in this laboratory used to be 3h per week,
This course gives a general overview of industrial currently is allocated an average of half an hour per week.
automation components for sensing, handling and control The reduction in time of the presence of students in the
and technologies behind, namely electric, pneumatic and laboratory is mainly due to the big number of students
hydraulic. During the course students are encouraged to that would imply large number of teaching staff what
participate in visits to factories and are put in contact with would be too expensive. However, students need to
the existing laboratory of Automation where there is a program PLC and consequently to be evaluated with
manufacturing cell with a conveyor, machines tools, demonstrations of required processes control. These have
robots, automated guided vehicles and warehouses. (Fig. to be done during laboratory classes. With a total number
1). of 7 hour per semester in the laboratory and three design
exercises to perform there is only time for evaluation and
not for development.

Fig.1. Industrial cell


After this initialisation students are prepared to study Fig.2. Typical elements of a classroom laboratory
discrete events modelling tools, GRAFCET and Petri (current configuration): conveyor with a web camera,
nets, with special emphasis to the first one, and learn the pneumatic cylinders, lift and several switches and la

978-3-902823-43-4/2013 © IFAC 286 10.3182/20130828-3-UK-2039.00042


10th IFAC ACE
August 28-30, 2013. Sheffield, UK

mps.
The only possible solution is to allow students to work at
home. However, the implementation of this solution
raises a set of practical difficulties. Indeed we need not
only that students learn to program PLC but also that they
manage to write programs that are completely functional
when are run in the laboratory. It means they have to
control exactly the same “setups”. Software licences is
another constraint to deal with, they have to be free to
students during the course duration.
The developed solution corresponds, indeed, to two
complementary solutions that can be used together. They Fig. 3. Remote laboratory: 4 PLC connected to
are the object of the next sections. Section 2 introduces experimental setups and for with no physical connections.
the different hardware and software components of the
solution, Section 3 presents their integration in two For video streaming there exists in the remote lab a
complementary solutions that can be gathered in a third webcam located, approximately, at 2.5 meters of the
solution. Finally in section 4 conclusions are drawn about stations.
the impact of these solutions in the students learning and
evaluation. The 8 PLC and the video camera are connected to a
server and constitute a Virtual Private Network (VPN).
We finally note that this paper does not concern generic The general architecture of this network is represented in
theory about remote and virtual laboratories and their Fig. 4.
architectures. There is a vast literature on this field
included in the area of industrial automation and system
control see e.g. Palma et al. (2011), Gabriel et al. (2011),
Ammari et al. (2006), Domínguez et al. (2008) and
Cardozo et al. (2012).
Fig. 4. Architecture of the remote laboratory network
2. COMPONENTS OF THE SOLUTION
2.3 PLC
2.1 Classroom laboratory
All the PLC used in both labs are Saia-Burgess, Saia-
The classroom laboratory (CL) has eight workbenches. Burgess (2013), covering different models from already
Each workbench has one Personal Computer connected to discontinued models till quite recent ones.
a PLC that allows controlling the following equipment:
The reason to use these PLC is historical and related with
 3 pneumatic cylinders and associated sensors software licences. For over 15 years has been Saia-
Burgess policy to give free licenses of its software PG5 to
 1 linear conveyor connected to a web camera our labs and licences with 3 months validity to students at
home, enough time to run the design exercises. These
 1 elevator (only three benches) PLC are quite robust and the associated software, the
SaiaPG5 project manager, provides from low level to
 1 cross road traffic lights simulator (only 4 benches)
high level GRAFCET based programming languages,
 It is also equipped with different type of pushbuttons, without restrictions related to the licence.
proximity sensors, an alarm and lights.
2.4 Webserver based HMI's
Fig 2. illustrates on of these workbenches.
It is a quite recent trend in the PLC industry the
2.2 Remote laboratory integration of Human-Machine Interfaces (HMI) as web
pages in PLC, acting these as servers. In general these
The remote laboratory (RL) has 8 PLC. Each PLC host pages are hosted in flash memory cards, in general of
web pages acting as web panels. Four of these PLC are type SD, but with proprietary formatting. This
connected to experimental setups (stations) made up of 3 enormously simplifies the PLC interface, because the
pneumatic cylinders and several lights (Fig. 3). The other only thing the user should have is a browser.
four PLC have no physical connections to stations.
Web pages can be designed by any HTML editor.
However, Saia provides a proprietary Web Editor that

287
10th IFAC ACE
August 28-30, 2013. Sheffield, UK

simplifies the web pages design and its connection with complex programming. So we decide to emulate all the
the PLC variables. It presents some limitations but not CL equipment virtually in the PLC hosted web page.
restrictive enough for our purpose. New improvements
are already announced by the Saia-Burgess. With this we have built a hybrid laboratory where the
PLC are remote, some physical devices are present and
The PLC web pages constitute indeed a SCADA then remotely controlled, and other only exist virtually in
(supervisory control and data acquisition) since they a webpage hosted in the PLC (see Fig. 5). This webpage
allow human operators to easily monitor and control the is hosted in the flash drive of the PLC that is locked to
plant. avoid unauthorized modifications of this page. Students
upload the program to the PLC through the Saia program
Saia also provides free licenses to this Web Editor manager.
software to the students. Within our course, with large
number of students, they are not supposed to design their These webpages were designed with the contributions of
own web pages. This can be done in small and more other students of more advanced courses but can also be
specialized courses. easily designed by the teaching staff.
Naturally all these accesses have to be preceded by a
2.5 LabVIEW connection to the VPN.

LabVIEW from National Instruments (NI), LabVIEW Finally, we should note that with SaiaPG5 all the
(2013) is a well-known development environment for variables can be referred by a symbolic name. These
creating custom applications that interact with physical names are organized in a table with the correspondence
world. It can be used to design SCADA systems and between those names and their value defined by their type
indeed it is largely used in industry. LabVIEW is (flag, register, input, output, …) and address. For
installed in the computers of the laboratory and in the example, a device as RedLight will correspond to a flag
students’ personal computers. with a given address in the RL and to an output with
another address in the CL. So, only this table has to be
LAbVIEW is quite complete with modules in the area of swapped when students change from the RL to the CL. A
signals, control systems and automation. In particular we truncated symbol table for the RL and the CL is
will use it to build a SCADA system. Its software illustrated in Fig. 6.
packages respectively, NI Vision Development and NI
Vision Acquisition Software will be used to build a
computer vision application as seen later.
The University has a LabVIEW campus license that
provides not too expensive licences to our laboratory
computers. Students can download free demo full
versions with a validity of 7+45 days, that is compatible
with the student’s need during the course.

3. THE PROPOSED SOLUTION


We remember that our goal is not only to provide a
platform that allows students to practice the PLC
programming at the classroom laboratory and at home, Fig. 5. Web panel for the Remote lab
but also it should be guaranteed that students are able to
completely develop and test the programs to control the
CL experimental setups in a very short time. 3.2 A LabVIEW SCADA for the remote PLC.

With the components defined in the previous section LabVIEW software can communicate with any PLC in a
there are two ways to build SCADA systems that allow variety of ways. OLE for Process Control (OPC) defines
us to design two different solutions. In the following we the standard for communicating real-time plant data
present them as well as a third solution that result from between control devices and human machine interfaces,
the combination of the previous ones. National Instruments (2013). Virtually all the PLC have
OPC servers, what naturally includes the SaiaPLC.
3.1 A webpage based SCADA for the remote PLC. However, they are expensive for the university.
The Saia communication library, SComm, was made
As said before our intention is that students may easily available to us some years ago to build an old C++
run in the CL the programs developed in the remote lab interface reported in Caldas Pinto (2006). Students from
(RL). For that it will be necessary that devices present in the computer science course created another library that
the CL are also present in the RL. For simpler programs encapsulates it. LabVIEW allows the dynamic loading of
we have some cylinders and lights controlled by the libraries compiled in windows for dll files (Dynamic-link
remote PLC. This solution is quite limited for more

288
10th IFAC ACE
August 28-30, 2013. Sheffield, UK

library). Through that library LabVIEW can use its Then our third solution is the more versatile, despite
functions directly so getting full access to the PLC. So no being a little more complex.
OPC is necessary.
Summarizing, the advantages of this solution are:
The SComm based library, loaded by LabVIEW allows
not only communication with physically connected PLC  Students use exactly the same local interface in both
but also via TCP/IP. So, it is possible to use a LabVIEW labs, CL and RL.
SCADA with the remote PLC. The virtual devices
 Students can practice with SCADA software at home
presented in the webpage can be represented in this
adding new virtual devices. As can be foreseen there
SCADA making unnecessary the PLC webpage. The first
are quite a large number of degrees of freedom that
obvious advantage is to give students the possibility to
have to be managed carefully.
modify their interface without jeopardizing the work of
colleagues.  This computer vision module runs different
applications developed within a Computer Vision
course, what means that the available number of
applications may increase every year.

 We have seen above that CL benches do not have


exactly the same equipment. For example only three
benches have lifts. Using this LAbVIEW SCADA,
those can be completed with virtual lifts.
Figure 7 visualize the current interface. It can be
observed a set of pushbuttons and the possibility to
read/write flags, registers and text. These tools are quite
useful for an easy monitoring of the PLC variables in an
academic environment.
We easily observe that there are some redundancy using
both the web panel and this SCADA. One solution is to
build a simplified version of this SCADA to use at home.
Fig. 6. Symbols table (truncated)
With this solution also implemented there is no need to
have web pages hosted on the PLC.
However, it is psychologically more educative to transmit
the idea to students that they are controlling a real plant
using a remote interface. In this case the process although
virtual it is remotely located. Not to speak that some
remote PLC are connected to real devices whose
behaviour can be viewed by a web camera.

3.3 A SCADA for the remote and Classroom


Laboratory

A third solution is to use both the web page and the Fig. 7. LabVIEW SCADA for the classroom laboratory
LabVIEW SCADA. The web page represents a plant that
is remotely installed and the LAbVIEW SCADA 5. WORK ORGANIZATION
represents a local plant that can be modified according to
the problems. Both are controlled by the same PLC. At the beginning of the semester it is assigned to each
group (normally of two or three students) one workbench
This solution has another feature. As described before in the CL and another one in the RL. Then we have ten
there exists in the CL a web camera in a conveyor to groups per Remote PLC, what is affordable. We also
illustrate the use of computer vision in automation. Image encourage students to constitute a forum to be in an easy
processing software was includes in the old C++ interface contact among them to an efficient use of the RL. This
referred above. Currently students from a computer year students decided to organize Facebook groups.
vision course use LabVIEW to train some image
There are about ten groups that correspond to a number
processing applications. This has suggested that
of students between 16 and 24 per group that is still easily
LabVIEW SCADA, that can also be directly connect to manageable.
the PLC, could be extended with a computer vision
module and used in the CL, and even at home with some
imagination.

289
10th IFAC ACE
August 28-30, 2013. Sheffield, UK

Students are instructed how to connect to a VPN and to used in the second semester of 2012/2013 with 230
download the Saia Project Manager. Meanwhile Saia- students.
Burgess representative has provided the students three
months PG5 licence. We think that an access to the remote laboratory
controlled by the students themselves using forums that
The first introductory design exercise should be simple they completely dominate, as Facebook, has advantages
and will use only the PLC web pages. There is no use of as increasing social responsibility and encouraging
LabVIEW. It will be presented in the CL with the same interaction. However a more sophisticated access control
devices. Students are encouraged to use their own should be implemented for utilization outside the scope
computers to minimize the start-up time. Cables are of the school. One possibility is the insertion of our
provided for physical connection with the PLC. interface in the virtual environment Moodle – content
management software for e-learning.
In the second and third design exercise students are
required to install the LabVIEW student package. We
provide the necessary Visual Instruments files. In the
third design exercise students are authorised to change ACKNOWLEDGEMENTS
the LabVIEW SCADA to build their own virtual devices This work was supported by the Strategic Project with
if desired. reference PEst-OE/EME/LA0022/2011, through FCT
Both exercises that are written for the remote laboratory (under the Unit IDMEC - Pole IST, Research Group
will be evaluated in the classroom laboratory. Naturally IDMEC/LAETA/CSI).
students are assisted in all this process.
REFERENCES
At the end of this scholar year an inquiry was made to
161 students concerning the RL. Figure 8 shows the Ammari, A.C., and Slama, J.B.H. (2006) The
Development of a Remote Laboratory for Internet-
answer to some selected questions.
Based Engineering Education. Journal of
Asynchronous Learning Networks 10(4), 3-13.
Caldas Pinto (2006) Guia de utilização do Laboratório
Remoto, Lisbon (in Portuguese).
Cardoso, A., Vieira, M., Gil, P. (2012) “A Remote
and Virtual Lab with Experiments for
Secondary Education, Engineering and Lifelong
Learning Courses, International Journal of
Online Engineering (iJOE), vol.8( S2), pp. 49-
Fig. 8. Some inquiry results (0- Definitively no; 5-
54, 2012.
definitively yes)
Domínguez, M., Fuertes, J. J., Reguera, P., Prada,
M. A., Morán, A. (2008) Inter-University
6. CONCLUSIONS Network of Remote Laboratories, 17th IFAC World
In this paper we presented our own solution to solve the Congress (IFAC’08), pp. 13623-13628, Seoul,
complex problem of conciliating the learning of time Korea.
consuming PLC programming with lack of resources and Gabriel, J., Restivo, T., Reis, J. (2011) Remote Control
short time of permanence of the students in the classroom of a Model Car, 1 stExperiment@ International
laboratories. Based on a set of 8 PLC connected in a Conference – Remote & Virtual Labs -
VPN three solutions were presented: (1) associate web exp.at’11, Lisbon, Portugal.
panels to each PLC with a virtual representation of all the LabVIEW (2013) http://www.ni.com/labview/pt/
equipment presented in the classroom lab (2) Based on a (accessed at January 2013).
LabVIEW SCADA provided with a connection to the National Instruments (2013), Connect LabVIEW to Any
PLC (3) Based on a LabVIEW SCADA together with the PLC Using OPC, http://www.ni.com/white-
web panel. This last solution models the situation where paper/7450/en (accessed at January 2013)
the main plant and the controller are remote but some Palma, L. B., Coito, F. V., Borracha, A. G., Martins, J. F.
other equipment faraway will also be controlled by the (2011), A Platform to Support Remote Automation
same PLC. and Control Laboratories in 1st Experiment@
International Conference – Remote & Virtual Labs –
Besides, the simplicity of the solution and the exp.at’11, Lisbon, Portugal.
standardization of the interface, it allows that the remote Saia-Burgess (2013) http://www.saia-pcd.com/en/Pages-
laboratory to be used inside a network of remote /Home.aspx (accessed at January 2013). F., Harris,
laboratories as long as passwords and LabVIEW files are M.G., and Other, A.N. (1998).
obtained.
This new solution was already tested with full success
with a first group of 10 students and it is currently being

290

Das könnte Ihnen auch gefallen