Professional Documents
Culture Documents
Abstract— This article deals with a design of a fuzzy control to PLCs many software applications were developed by
system for robotic arm and its implementation to PLC. PLC manufacturers. Like other manufacturers, the
Fuzzy logic is used to calculate the proper speed of robot company SIEMENS offers the implementation of
tool center point depending on the tilt of the joystick handle intelligent control methods to PLCs. This is the software
in manual operating mode. In fully automatic mode the package FuzzyControl + +, using fuzzy methods and
fuzzy logic is used in form of a fuzzy PI controller to achieve fuzzy logic control and NeuroSystems package, based on
the desired velocity with the load compensation. Fuzzy the theory of artificial neural networks.
system was designed in the Siemes Fuzzy Control ++ and
was implemented to Simatic S7-300 PLC. II. MODEL OF A ROBOTIC ARM
Robotic arm from Fischertechnik is a manipulator
I. INTRODUCTION model with three degrees of freedom. Fig. 1 shows the
robotic arm with the cross-section of its workspace.
During the teaching of courses focused on
programmable logic controllers, the controlled processes
are not only simulated in software environment, but often
using the physical models (e.g. flexible production line,
pallet stacker, continuous stirred tank reactor). Some of
them need more sophisticated control algorithms (PI, PD,
PID) to achieve a desired speed, temperature or other
parameter. To use the algorithms from classic control
theory a mathematical model of the controlled system is
needed [1]. Sometimes is very difficult to describe the
system in this way. In another cases the mathematical Figure 1. Cross-section of the robotic arms workspace
model must not correspond with reality. For these reasons,
using a fuzzy logic in control algorithm may be useful. Anthropomorphic geometry is realized by three
The control of a robotic arm model represents a very good revolute joints. The anthropomorphic structure is the most
example. dexterous one, since all the joints are revolute [4]. On the
other hand, the correspondence between the degrees of
Information processing based on fuzzy logic is
freedom and the Cartesian space variables is lost, and
appropriate, often necessary, where processes are
wrist positioning accuracy varies inside the workspace.
specified by verbally expressed algorithms in the form of
The workspace is approximately a portion of a sphere and
"IF-THEN rules". For example, in complicated
its volume is large compared to manipulator encumbrance.
manufacturing processes it can be observed that operators
Fig. 2 shows the 3D model of the Fischertechnik robotic
take control actions on the basis of their experience using
arm and its 3D workspace.
simple if-then criteria ("If the temperature is high and the
pressure is medium, then I must open the valve halfway.")
and using this way, they often achieve good operation
with quality results. Fuzzy logic makes it possible to
transfer the "experience" of an expert to a computer and
obtain an initial and "automated" - though perhaps not yet
optimal - solution quickly [2].
Programmable logic controllers were mainly used in
standard automatic production. With the increase of
automation field not only the safety functions are
performed, but also the intelligent control is involved to
the process of automation. Many of PLC manufacturers Figure 2. 3D model of Fischertechnik robotic arm
produce so called safety PLC primarily designed to be
used in industrial safety relevant applications [3]. To
support the implementation of intelligent control methods
Joints are actuated by electric motors with 9V DC manual mode. The rotation angle and the velocity of the
supply voltage and with 250 mA current consumption [5]. joints are controlled by the joystick handle. Fuzzy system
Two joints are connected with electric motors via screw was designed to control the velocity depending on the tilt
line. Third joint is connected to the actuator via cog- angle of the joystick handle. The designed fuzzy system is
wheel. Each screw line is permanently linked to the called Fuzzy Linex and performs a task of a transfer
coding wheel, which is a part of an incremental encoder function. In the automatic mode the desired velocity is set
(IRC), working on optical principle. Starting position of by the master control system and not with the joystick
all three joints is ensured with limit switches. The robotic handle as in the manual mode.
arm is equipped with a gripper driven by DC electric The input to the Fuzzy Linex is the tilt of the joystick
motor with 9V DC supply voltage and with 200 mA handle which is represented by voltage from 0 to 10V.
current consumption. Two limit switches are mounted on The fuzzy system compute the proper output signal, which
the gripper to identify the full opening and clamping of an is the desired velocity represented by voltage from 0 to
empty gripper. The third switch is located on the inner 10V. The joystick has two potentiometers and their wipers
edge of gripper and is used to identify the snapping of a are connected to handle. When the handle is tilted to the
manipulated object [5]. left or right, one of the potentiometers changes its value.
Model of the manipulator is controlled by When it is tilted to or apart, the second one changes its
programmable logic controller Siemens Simatic S7-300 value. With the same tilt (towards and apart) two of the
[6]. Motors and encoders can not be connected directly to robot joints are controlled, but not at the same time. The
signal modules. This is because of different supply joints are selected by the switch located on the top of the
voltages for motors and their relatively high current handle. That is the reason why the designed fuzzy system
consumption. Encoders have also different supply has only two inputs and two outputs (one input and output
voltages and they need some other electronic parts for is the same for two joints). The fuzzy system was
their proper functionality. Therefore was necessary to designed in the Fuzzy Control ++. Fig. 4 and Fig. 5 show
design an interface to connect the model to the Simatic’s the membership functions for the input 1 and input 2 of
signal modules. The design of interface and its connection the fuzzy controller. Inputs correspond to the tilt angle of
to Simatic S7-300 was described in more detail in [5]. the handle when it is moved to the left or right (Input 1)
and towards or apart (Input 2).
III. ROBOTIC ARM CONTROL SYSTEM
The control system (Fig. 3) for the above mentioned
robotic arm was implemented in Simatic S7-300 PLC with
CPU 315F-2 PN/DP [7].
– 46 –
ICCC 2013 • IEEE 9th International Conference on Computational Cybernetics • July 8-10, 2013 • Tihany, Hungary
– 47 –
S. Tomas et al. • Fuzzy Control of Robotic Arm Implemented in PLC
IV. RESULTS to slow down (frequency of the pulses are lower) because
of the higher load (without the change of desired speed).
Above mentioned features of the control system were
tested on the model of robotic arm from Fischertechnik.
First experiment which has been done on the control
system was oriented to test the manual mode of the robot
control. Fig. 11 shows dependence of the calculated
velocity of the joints upon a tilt of the joystick handle. The
above mentioned figure was print screened from Curve
Plotter which is a part of the Fuzzy Contol ++. Curve
Plotter plots the actual waveforms of selected input and
output signals from the fuzzy system.
Figure 12. Voltage (blue) signal and IRC signal (red) from motor,
controlled by the fuzzy system without the mass compensation
– 48 –
ICCC 2013 • IEEE 9th International Conference on Computational Cybernetics • July 8-10, 2013 • Tihany, Hungary
overloading. This last feature is provided by the master [2] SIEMENS AG “FuzzyControl++ V. 5.0 User`s manual,“ Siemens
control system. AG, I&S IT PS 213, Erlangen 2003.
[3] K. RÁSTOČNÝ, J. ŽDÁNSKY, “Specificities of safety PLC
based implementation of the safety functions,” Proceedings of
V. CONCLUSION International Conference Applied Electronics 2012, Pilsen, ISBN
This paper shows the advantages of using the fuzzy 978-80-261-0038-6, ISSN 1803-7232, IEEE Catalog Number:
logic when the mathematical model of the controlled CFP1269A-PRT, p. 229-232, 5-7 September 2012.
system is not available. It has been shown that fuzzy [4] B. Siciliano, L. Sciavicco, L. Villani, and G. Oriolo, “Robotics
Modeling, Planning and Control,” Springer, London, 2009.
control can be implemented in PLC Simatic S7-300 with
the help of Fuzzy Control++. From the measured [5] T. Skulavik, and P. Schreiber, “Interface for an robotic arm from
Fischertechnik and Simatic S7-300,” International Doctoral
characteristics can be seen that the designed fuzzy control Seminar, Smolenice Castle, SR, 15–17 May 2011, pp 400–405,
system meets the required criteria (mass compensation AlumniPress Trnava, 2011.
both in manual and automatic mode), which are often used [6] M. Kopček, G. Križanová, “Models used for PID controller and
as the requirements for the robotic arm control systems. It PLC programming teaching,”. Proceedings of the 8th International
is obvious that fuzzy control and PLCs together may be Scientific-Technical Conference. Kouty nad Desnou, Czech
successfully used in other control applications too. Republic, June 9-12, 2008. - Pardubice : University of Pardubice,
2008. - ISBN 978-80-7395-077-4
[7] M. Strémy, “Combined Discrete Control Systems,”. Ilmenau
Universitätsverlag Ilmenau, 2012. Scientific Monographs in
REFERENCES Automation and Computer Science; - ISBN 978-3-86360-014-3
[1] L. F. Lewis, M. D. Dawson, and T. C. Abdallah, “Robot .
Manipulator Control: Theory and Practice,” Marcel Dekker, Inc.
New York, 2004.
– 49 –