Sunteți pe pagina 1din 6

A Low-Cost and Scaled Automation System for

Education in Industrial Automation


1st Alejandro Mejia Rojas 2nd Giacomo Barbieri
Department of Mechanical Engineering Department of Mechanical Engineering
Universidad de Los Andes Universidad de Los Andes
Cra. 1 Este No. 19A-40, Bogotá (CO) Cra. 1 Este No. 19A-40, Bogotá (CO)
a.mejia13@uniandes.edu.co g.barbieri@uniandes.edu.co

Abstract—Modern automation systems consist of assemblies – Physical plant: the plant to be controlled and gener-
of mechanical and electrical components commanded through ally consists of mechanisms that transfer or transform
digital controllers. The physical implementation of automation forces from one form or direction into others;
systems in education is difficult due to the current costs of indus-
trial automation hardware. This constrains automation courses – Power supply: provides to the system the energy nec-
to only theoretical and/or virtual activities. This paper proposes essary to operate. Distribution blocks, transformers,
the implementation of a scaled automation system through circuit breakers, fuses and relays are examples of
the mixing of industrial and prototype hardware. The defined utilized elements.
low-cost architecture allows students to practically experience
fundamental concepts of industrial automation as PLC code IASs have shifted from mainly mechanical-based systems
design and verification, SCADA development, and system remote to aggregations of Mechatronic Systems (MSs) [4]. MSs are
control. defined as systems of collaborating computational elements
Index Terms—Industrial automation, scaled automation sys- controlling physical entities [5]. Mechanics, electrics and com-
tem, education, design pattern, prototype hardware.
puter science must be integrated within courses of industrial
automation.
I. I NTRODUCTION A fundamental part of industrial automation courses is
focused on the computer control since is the main responsible
Automation is the use of various control systems for oper- for the system operation. In particular, concepts of sequential
ating equipment with minimal or reduced human intervention control [6] as the managing of system nominal and exceptional
[1]. Industrial automation deals with the automation of man- behaviour must be dealt, along with software: (i) design
ufacturing, quality control and material handling processes. and verification [7]; (ii) syntax and architecture [8]; (iii)
Current industrial automation systems (IASs) are characterized computation in RTOSs [9].
by the following elements [2]:
In literature, many references introduce the theoretical con-
• Supervisory Control and Data Acquisition (SCADA): al- cepts of computer control [10] and many tools can be found for
lows machine operators to interact with machinery in simulating the behaviour of IASs; e.g. virtual commissioning
order to activate devices or processes and get status tools [11]. However, approaches based on physical case studies
feedback. Human machine interface (HMI) with mem- are necessary in education for illustrating all the available
brane push buttons are mainly utilized, along with touch possibilities for software design and verification. The high cost
screen panels. Remote control may also be implemented of industrial automation hardware makes the implementation
as shown in [3]; of IASs difficult for universities and professional institutes.
• Computer control: performs both sequential and feedback On the other hand, the price of prototype motors, sensors and
control and is in charge of the I/O management part of the controllers has decreased in the last years bringing to new
automation system. Real-time operating systems (RTOSs) educational opportunities [12].
as Programmable Logic Controllers (PLCs) are mainly Within this paper, an architecture for the low-cost imple-
utilized; mentation of a scaled IAS is illustrated. A mix of industrial
• Interface: interface between the computer control, and and prototype hardware is proposed, along with design patterns
the sensors and actuators. Converters are used for trans- for the communication of the different elements. The paper
forming the electrical signals of sensors into digital ones, is structured in this way: state of the art is illustrated in
while drivers for controlling the actuators; Section II, while the proposed architecture and design patterns
• Automation plant: consists of: are introduced in Section III. Section IV applies the approach
– Sensors and actuators: respectively convert physical to a selected case study. Obtained results are summarized in
quantities into electrical signals and displace ele- Section V, while conclusion and future work are discussed in
ments of the physical plant; Section VI.

978-1-7281-0303-7/19/$31.00 ©2019 IEEE 439


II. S TATE OF THE A RT
Different methods can be utilized for the design and veri-
fication of the software of IASs. These methods vary on the
basis of the strategy used for reproducing the behavior of the
automation plant. These can be:
1) PLC Modeling: the differential equations that model the
behavior of the automation plant are discretized and
computed in a PLC program [13];
2) Virtual Commissioning: a virtual prototype is built
through the utilization of a simulation software. Two
possibilities can be implemented according to [14]: (i)
full simulation of machinery: both the automation plant
and the control hardware are simulated; (ii) hardware in
the loop: automation plant is simulated in real-time and
connected to the real controller [15];
3) Physical Implementation: the automation plant is built
and the software is verified through the connection of
the controller to the plant.
The three approaches have pro and cons and should be Fig. 1. Proposed hardware architecture for a scaled industrial automation
system
taught within courses of industrial automation. In fact, modern
design methodologies may implement them at different phases
of the design process [16]. PLC modeling can be easily applied Next, the actors selected for implementing the elements
since free tools for PLC programming can be downloaded that reproduce an IAS in a scaled and low-cost version are
as the programming tool for Codesys PLCs [17]. Whereas, illustrated:
the application of Virtual Commissioning and Physical Im-
plementation approaches in education is complex since: (i) a • SCADA: mySCADA [22] is proposed for the SCADA
licensed simulator is required for virtual commissioning; (ii) system and run in a personal computer (PC). mySCADA
industrial hardware should be utilized for the implementation contains all the features of modern SCADA systems
of the automation plant in order to reproduce the elements of and can be utilized for free. Moreover, the software
modern IASs. Within this paper, a low-cost solution for the offers a multiplatform support (i.e. Windows, Mac, iOS,
physical implementation approach in education is proposed. Android, Linux) and multiple PLC protocols. Addition-
The presented approach is based on the communication of ally, mySCADA has a web-based service that allows the
industrial and prototype hardware. In literature, few works can remote access through a browser;
be found on the topic. For example, [18] illustrates how to • Computer control: since IASs are controlled through
set up a serial communication between a PLC and Arduino PLCs, a PLC is used as computer control actor. This is
through the Modbus Protocol. Whereas, a different approach the only industrial hardware utilized within the proposed
based on the TCP communication is shown in [19]. The use architecture and is necessary in order to provide an
of Arduino as an input expander for a PLC, transmitting education aligned with the practices of the automation
information from a serial sensor through LAN network to industry. Since mySCADA can communicate through
a MySQL server, a PHP web page and a PLC is illustrated multiple PLC protocols, an arbitrary PLC manufacture
in [20]. Eventually, the communication between a PLC and can be selected;
Arduino is shown in [21], along with the use of a Xbee to • Interface: PLCs can read the outputs of sensors and
control and transfer data from sensors. However, a complete command actuators. However, this functionality requires
architecture that reproduces all the elements of IASs has not the acquisition of high cost interface modules, and the
been proposed yet. utilization of industrial sensors and actuators within the
automation plant. Therefore, prototype hardware is pro-
III. P ROPOSED A RCHITECTURE posed. A microcontroller such as Arduino or Raspberry Pi
An architecture for the low-cost implementation of a scaled is used for the communication with the automation plant
IAS is described within this section and shown in Fig. 1. by means of interface elements as electrical drivers. The
A mix of industrial and prototype hardware is proposed, interface elements must be able to communicate with the
along with design patterns for the communication of the selected microcontroller and must be compatible with the
different elements. An important characteristic of the proposed utilized sensors and actuators;
architecture is that can be applied to scaled and simplified • Automation plant: the design of a prototype automation
version of industrial problems. A soft-real time system is plant is proposed in order to generate a low-cost case
implemented in which failures are not going to generate any study that can be controlled through a PLC. Nowadays,
kind of risk. different tools can be used for the implementation of a

440
prototype such as 3D printing and laser cutter. Moreover, require the additional acquisition of PLC analogue
low-cost sensors and actuators are widely diffuse. modules and therefore is discharged. The client-
Once identified the actors constituting the scaled IAS, server architecture is selected since simpler that the
communication must be set in order to operate the proposed serial one.
architecture; i.e. the arrows in Fig. 1. Next, design patterns are • Interface ↔ Automation plant: converters and drivers
proposed for interfacing the selected actors: must be selected able to communicate with the utilized
• SCADA ↔ Computer control: the simplest way to in- microcontroller, and respectively with the sensors and
terface mySCADA with the selected PLC is through a actuators of the prototype automation plant.
client-server architecture [23]. Then, the communication
can be performed in a web-based form in which server IV. C ASE S TUDY
and client lie on the same network. In the same way, The approach proposed in Section III is applied for the
other devices can communicate with the SCADA system development of a scaled IAS for grinding coffee beans. The
in order to allow the remote control and monitoring of utilized actors and the design patterns implemented for their
the system; e.g. mobiles, tablets, etc. communication are next described:
• Computer control ↔ Interface: the selected PLC and • Automation plant: the designed prototype plant is the au-
microcontroller communicate by means of electrical sig- tomated grinding module with blade grinders represented
nals. Two types of signals can be exchanged: (i) digital in Fig. 3. Its main characteristics are:
signals: can assume only one value over a range of – Four degrees of freedom (DoFs) machine: the im-
possible discrete values. Only two values are generally plemented DoFs are: (i) grinder horizontal displace-
utilized: 0V and high voltage; (ii) analogue signals: ment: transport the coffee grinder onto stations for:
assume values within a range. The distance in between receiving toasted coffee, grinding coffee and deliv-
the possible values is a function of different factors such ering the ground coffee to the next module; (ii) lid
as the resolution of the measuring device and the bits vertical displacement: selected grinder operates only
of the controller. Next, a design pattern is proposed for once a lid is on top of it. Therefore, a lid placed
communicating the two types of signal: on the grinder station must be moved vertically; (iii)
– Digital signals: PLC digital signals are characterized grinder rotation: grinder must be able to rotate in or-
with 0V as low value and 24V as high value, whereas der to deliver the ground coffee onto the subsequent
microcontrollers as 0V and 5V respectively. There- module; (iv) blade rotation: rotates the blade in order
fore, a voltage conversion must be performed for to chop the coffee beans for grinding;
implementing the communication. In order to send – Manufacturing: two prototype manufacturing tech-
a digital signal from the PLC to the microcontroller, niques were utilized: (i) laser cutter for the gen-
voltage must be decreased from 24V to 5V. Either eration of the wood structure; (ii) 3D printing for
a potentiometer or a resistance must be placed in the implementation of mechanical parts as gears and
between the communicating pins. The proposed elec- bearing supports;
trical scheme is shown in Fig. 2 in which Arduino – Actuators: three NEMA 17 steppers motors are re-
Uno is used as microcontroller. The potentiometer spectively utilized for the horizontal displacement,
is indicated as R1, while the resistance as R2. The the lid displacement and the grinder rotation. Ad-
value of R1 and R2 can be calculated through the ditionally, a DC motor is responsible for the blade
Ohms Law by knowing the current flowing out the rotation;
PLC: – Sensors: since stepper motors are based on an open-
R = (VP LC −VM icrocontroller
I
)
loop control, limit switch sensors must be utilized
The value of the current can either be measured or in order to set the zero position once the machine
read in the PLC specifications. For the connection is started. Moreover, a thermostat NTC 100K 3950
from the microcontroller to the PLC, a relay is is used to monitor the temperature of the grinding
introduced as shown in Fig. 2. The Arduino 5V station and an infrared sensor to detect once coffee
signal activates the relay letting a 24V signal flow. has been received in the input station.
– Analogue signals: different possibilities can be im- • Interface: Arduino MEGA is selected for interfacing
plemented in order to send analogue signals from digital signals, while Arduino Ethernet for analogue
the PLC to the microcontroller and vice-versa. These signals. Arduino MEGA commands the utilized stepper
are: (i) direct connection: the signal should be am- motors through the Pololu A4988 driver. Moreover, the
plified/reduced in order to allow the communication; drivers, the Arduino MEGA, and the limit switch and
(ii) serial communication: PLC and microcontroller infrared sensors are interfaced through a Ramps 1.4
communicate over a serial line through the Modbus shield. Whereas, the thermistor sensor is connected to
Protocol [18]; (iii) server-client architecture through an Arduino Ethernet since analogue signals are sent to
TCP protocol [19]. The direct connection would the PLC through the TCP protocol. In this first iteration,

441
Fig. 2. Digital signal from the PLC to the microcontroller (left-hand side) and vice-versa (right-hand side)

the Arduino MEGA software contains the target positions


of the stepper motors for each movement. Therefore,
the PLC just sends start/stop digital signals in order to
implement the movements. In a future work, the PLC
may send the target positions to the Arduino Ethernet.
Then, the Arduino Ethernet may pass this information
to the Arduino MEGA through serial communication.
This would allow a complete hardware abstraction, even
if complexity would increase since a protocol must be
established in order to associate each target position to
the corresponding motor.
• Computer control: a SIEMENS Simatic S7 300 PLC is
selected since already available in the university. The PLC
was programmed to control the grinding machine dur-
ing nominal functioning. However, exceptional behaviour Fig. 3. Prototype automation plant of a grinding machine
management can be added in future. Digital signals are
sent to the Arduino MEGA through a 100K potentiometer
Fig. 4. Then, the state-machine was converted into ladder PLC
for each channel, while are read from the Arduino MEGA
code and verified through the physical verification technique.
through 5V Adafruit relays. Whereas, analogue signals
SCADA system was implemented for monitoring and con-
are exchanged with a client-server architecture through
trolling the automation plant. The SCADA system contains
TCP protocol. PLC and Arduino Ethernet are connected
an HMI that can be accessed from PCs and mobile devices
through an Ethernet cable and PLC is set as server, while
making remote control possible.
the microcontroller as client. The Settimino library is
utilized for implementing the Ethernet communication. Eventually, a cost analysis is presented since the main
• SCADA: the implemented HMI consists in: (i) start but- objective of this work was the implementation of a low-cost
ton; (ii) indication of the current state; (iii) temperature architecture. Table I illustrates the total cost for each category.
of the grinder. The communication between the HMI and The cost of the PC in which the SCADA system runs is not
the PLC is performed with a client-server architecture. considered in the analysis since university laboratories are
The PC in which mySCADA runs is set as server host, already equipped with PCs.
while the PLC as client. Moreover, a mobile phone was The following considerations can be performed after the
set as client and was able to remotely control and monitor cost analysis:
the automation plant. • PLC cost was included in the analysis even if universities
and professional institutes are generally equipped with
V. R ESULTS PLCs. Therefore, total implementation cost can be further
The objective of this work was to define a low-cost architec- reduced since the PLC represents the most expensive cost;
ture that allows students to practically experience fundamental • The cost for interfacing the PLC and the automation
concepts of industrial automation as PLC code design and plant is 100USD, while a commercial PLC module costs
verification, SCADA development, and system remote control. about 300USD. Moreover, different modules should be
Within this section, how the proposed architecture can be used acquired as analogue I/Os, digital I/Os and PWM control.
for reaching these purposes is shown. Therefore, the proposed approach is more economic than
A state-machine was implemented for conceptualizing the the acquisition of industrial hardware;
nominal behaviour of the automation plant as shown in • The cost of the automation plant varies on the basis of the

442
Fig. 4. State-machine of the machine nominal behavior

selected application. However, the selected application [3] Kurt Schulz, Corey O’brien, Alex Rozenson, and Mark Smith. Human-
provides an idea of the order of magnitude. machine interface system and method for remotely monitoring and
controlling a machine, 2005. US Patent App. 10/755,170.
[4] László Monostori. Cyber-physical production systems: Roots, expecta-
TABLE I tions and r&d challenges. Procedia Cirp, 17:9–13, 2014.
C OST A NALYSIS FOR THE P ROPOSED S CALED I NDUSTRIAL AUTOMATION [5] Fumio Harashima, Masayoshi Tomizuka, and Toshio Fukuda.
S YSTEM Mechatronics-” what is it, why, and how?” an editorial. IEEE/ASME
Transactions on Mechatronics, 1(1):1–4, 1996.
Category Cost (USD)
[6] Ferdinand Wagner, Ruedi Schmuki, Thomas Wagner, and Peter Wol-
Automation Plant 350
stenholme. Modeling software with finite state machines: a practical
Interface 100
approach. Auerbach Publications, 2006.
Computer Control 1400
TOTAL 1850 [7] Gojko Adzic. Specification by example: how successful teams deliver
the right software. Manning Publications Co., 2011.
[8] Michael Tiegelkamp and Karl-Heinz John. IEC 61131-3: Programming
industrial automation systems. Springer, 1995.
[9] Giorgio C Buttazzo. Hard real-time computing systems: predictable
VI. C ONCLUSIONS AND F UTURE W ORK scheduling algorithms and applications, volume 24. Springer Science
& Business Media, 2011.
An architecture for the low-cost implementation of a scaled [10] Gary A Dunning. Introduction to programmable logic controllers.
IAS has been presented within this paper. The proposed system Cengage Learning, 2005.
allows the design and verification of the PLC code through [11] Giacomo Barbieri, Roberto Borsari, and Cesare Fantuzzi. Configuring
the physical implementation approach. Moreover, it can be the deployment into software-based controllers through hierarchical
simulations. IFAC-PapersOnLine, 50(1):4330–4335, 2017.
utilized for practical applications within courses of industrial [12] Alessandro DAusilio. Arduino: A low-cost multipurpose lab equipment.
automation as the development of SCADA systems and the Behavior research methods, 44(2):305–313, 2012.
remote control of an automation plant. [13] Sang C Park, Chang Mok Park, and Gi-Nam Wang. A plc programming
environment based on a virtual plant. The International Journal of
Future work will implement a serial communication be- Advanced Manufacturing Technology, 39(11-12):1262–1270, 2008.
tween the Arduino MEGA and Arduino Ethernet in order [14] Gunther Reinhart and Georg Wünsch. Economic application of virtual
to allow the PLC to send the target positions for the motor commissioning to mechatronic production systems. Production engi-
movements. Moreover, a distributed system will be designed neering, 1(4):371–379, 2007.
[15] Peter Hoffmann, Reimar Schumann, Talal MA Maksoud, and Giuliano C
in which two scaled automation plants are commanded through Premier. Virtual commissioning of manufacturing systems. In 24th
two different PLCs and are coordinated through a hierarchical European Conference on Modelling and Simulation, pages 175–181,
control. Eventually, a Raspberry Pi and a camera will be inte- 2010.
[16] BYUNG-KWON MIN, Zhengdong Huang, Zbigniew J Pasek, Derek
grated within the proposed architecture in order to investigate Yip-Hoi, Forbes Husted, and Stephen Marker. Integration of real-time
the use of machine vision for quality control. control simulation to a virtual manufacturing environment. Journal of
advanced manufacturing systems, 1(01):67–87, 2002.
R EFERENCES [17] Codesys development system. https://www.codesys.com/products/codesys-
engineering/development-system.html. Accessed: 2018-11-30.
[1] Mikell P Groover. Fundamentals of modern manufacturing: materials [18] Yucong Kuang. Communication between plc and arduino based on
processes, and systems. John Wiley & Sons, 2007. modbus protocol. In Instrumentation and Measurement, Computer,
[2] Frank Lamb. Industrial automation: hands-on. McGraw-Hill Education, Communication and Control (IMCCC), 2014 Fourth International Con-
2013. ference on, pages 370–373. IEEE, 2014.

443
[19] Martin Kajan, Ján Šovčik, František Duchoň, Leo Mrafko, Martin
Florek, and Peter Beňo. Sensoric subsystem of automated guided
vehicle: Tcp communication between simatic s7 plc and arduino. In
Robotics in Alpe-Adria-Danube Region (RAAD), 2014 23rd Interna-
tional Conference on, pages 1–6. IEEE, 2014.
[20] Helmy Rahadian, Waluyo Nugroho, and Dwi Nurul Izzhati. Siemens
cpu1215c input expansion and remote monitoring with arduino bridge.
In Engineering Seminar (InAES), International Annual, pages 159–164.
IEEE, 2016.
[21] Ali Moallim, Jae-Min Lee, and Dong-Seong Kim. Wireless control
and monitoring using programmable logic controller (plc). In Control,
Automation and Systems (ICCAS), 2017 17th International Conference
on, pages 1763–1767. IEEE, 2017.
[22] myscada. https://www.myscada.org. Accessed: 2018-11-30.
[23] Alex Berson. Client-server architecture. Number IEEE-802. McGraw-
Hill, 1992.

444

Powered by TCPDF (www.tcpdf.org)

S-ar putea să vă placă și