Documente Academic
Documente Profesional
Documente Cultură
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.
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)
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